diff options
Diffstat (limited to 'src/MenuItem.mjs')
-rw-r--r-- | src/MenuItem.mjs | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/MenuItem.mjs b/src/MenuItem.mjs index 2fcb144..61ed33e 100644 --- a/src/MenuItem.mjs +++ b/src/MenuItem.mjs | |||
@@ -2,9 +2,9 @@ import { shiftByWindow } from './utils.mjs' | |||
2 | 2 | ||
3 | /** | 3 | /** |
4 | * @typedef {Object} RefLink | 4 | * @typedef {Object} RefLink |
5 | * @property {string} ref -- name of link | 5 | * @property {string} ref - name of link |
6 | * @property {string} link -- content of link | 6 | * @property {string} link - content of link |
7 | * @property {string|null} title -- title of link | 7 | * @property {string|null} title - title of link |
8 | */ | 8 | */ |
9 | 9 | ||
10 | /** | 10 | /** |
@@ -204,7 +204,9 @@ export class Suggestion extends Item { | |||
204 | /** | 204 | /** |
205 | * constructor. | 205 | * constructor. |
206 | * | 206 | * |
207 | * @param {} | 207 | * @param {String} options.text |
208 | * @param {String} options.replace - new text content | ||
209 | * @param {CodeMirror} options.cm | ||
208 | */ | 210 | */ |
209 | constructor ({ text, replace, cm }) { | 211 | constructor ({ text, replace, cm }) { |
210 | super({ text }) | 212 | super({ text }) |
@@ -235,9 +237,9 @@ window.customElements.define('menu-item-suggestion', Suggestion, { extends: 'div | |||
235 | /** | 237 | /** |
236 | * renderResults. return a menu item for reporting render results | 238 | * renderResults. return a menu item for reporting render results |
237 | * | 239 | * |
238 | * @param {Object} options.modal -- Ojbect of plain-modal | 240 | * @param {Object} options.modal - Ojbect of plain-modal |
239 | * @param {HTMLElement} options.modalContent | 241 | * @param {HTMLElement} options.modalContent |
240 | * @param {HTMLElement} map -- Rendered map element | 242 | * @param {HTMLElement} map - Rendered map element |
241 | */ | 243 | */ |
242 | export const renderResults = ({ modal, modalContent }, map) => | 244 | export const renderResults = ({ modal, modalContent }, map) => |
243 | new Item({ | 245 | new Item({ |
@@ -366,7 +368,7 @@ export const toggleMapFocus = map => | |||
366 | * getCoordinatesByPixels. | 368 | * getCoordinatesByPixels. |
367 | * | 369 | * |
368 | * @param {HTMLElement} map instance | 370 | * @param {HTMLElement} map instance |
369 | * @param {Number[]} xy -- pixel of window | 371 | * @param {Number[]} xy - pixel of window |
370 | */ | 372 | */ |
371 | export const getCoordinatesByPixels = (map, xy) => | 373 | export const getCoordinatesByPixels = (map, xy) => |
372 | new Item({ | 374 | new Item({ |