aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/dumbyUtils.mjs
Commit message (Collapse)AuthorAge
* feat: patch 2c9ffa2Hsieh Chin Fan2024-10-15
| | | | | | * addAnchorByPoint -> addMarkerByPoint just return newly created marker * Add pointByArrow as general element in container
* feat: improve GeoLink generationHsieh Chin Fan2024-10-14
| | | | | | | * Stop searching pattern by linkify, Add links with geo URI scheme by async function instead * Search text nodes with patterns, and replace them with links * Add checker for valid degree/meter coordinated * Add query string "xy" anyway
* feat: add tooltip for GeoLinkHsieh Chin Fan2024-10-14
|
* docs: jsdocHsieh Chin Fan2024-10-14
|
* feat: remove trailing 0 in GeoLinkHsieh Chin Fan2024-10-14
|
* refactor: find marker by "data-xy"Hsieh Chin Fan2024-10-14
|
* feat: use middle click to remove markerHsieh Chin Fan2024-10-13
|
* fix: remove leader lines anywayHsieh Chin Fan2024-10-13
| | | | in case content refresh when link is hovered
* feat: highlight targets when hovering DocLinkHsieh Chin Fan2024-10-12
|
* feat: use selection as default name of anchorHsieh Chin Fan2024-10-12
|
* feat: add handler for invlid coordinatesHsieh Chin Fan2024-10-11
| | | | | | * prvent default onmouseover/onclick handler * set bg-color of GeoLink as gray * add title to suggest another CRS
* feat: implement crs in GeoLinkHsieh Chin Fan2024-10-11
| | | | | | | | Now GeoLink has the following format: geo:<LON>,<LAT>?q=<LON>,<LAT>&xy=<x,y>,crs=<EPSG:CODE> When calling addMarker or updateCamera, only use [lon,lat] format
* feat: only show map id when select manuallyHsieh Chin Fan2024-10-10
|
* fix: href pattern for GeoLinkHsieh Chin Fan2024-10-10
|
* feat: use "type" to decide marker appearance for GeoLinkHsieh Chin Fan2024-10-09
|
* feat: use "title" to set leader-line label for GeoLinkHsieh Chin Fan2024-10-09
|
* refactor: Attribute -> datasetHsieh Chin Fan2024-10-09
|
* fix: text format breaks reference-style-linkHsieh Chin Fan2024-10-09
|
* chore: apply standardjs with trailing commaHsieh Chin Fan2024-10-09
|
* fix: title for markerHsieh Chin Fan2024-10-09
|
* feat: create GeoLink by drag/dropHsieh Chin Fan2024-10-09
|
* refactor: move addAnchorByEvent into dumbyUtilsHsieh Chin Fan2024-10-08
|
* feat: remove leader line when GeoLink clickedHsieh Chin Fan2024-10-08
|
* feat: include map ids in marker titleHsieh Chin Fan2024-10-08
|
* fix: patch 9a0fdb9Hsieh Chin Fan2024-10-05
| | | | | * use attribute "xy" as title of marker * fix config for linkify
* style: reformat codeHsieh Chin Fan2024-10-04
|
* refactor: add GeoLinksHsieh Chin Fan2024-10-04
| | | | | * In current implementation, marks are generated in the first time link is hovered. This prevent complexity since rendering maps is async.
* docs: add jsdocHsieh Chin Fan2024-10-04
|
* style: reformat codeHsieh Chin Fan2024-10-02
|
* style: switch to standardjsHsieh Chin Fan2024-10-02
|
* style: reformat codeHsieh Chin Fan2024-10-01
|
* refactor: menu-item only call methods from dumbymap.utilsHsieh Chin Fan2024-10-01
|
* feat: improve actions in sub-menuHsieh Chin Fan2024-09-30
| | | | | | * scroll to focus map/block * refactor methods in dumbyUtils * refactor MutationObserver for map
* feat: add submenu for map/block/layout switchingHsieh Chin Fan2024-09-29
| | | | | | | | | | | * Add general classes into MenuItem * Use MutationObserver for data-mode * Automatically unfocus other maps when one is focused TODO: * hover effect on submenu item doesn't work, why? * shorcuts hint in selector ".folder.menu-item" not looks great
* style: prettierHsieh Chin Fan2024-09-29
|
* style: prettierHsieh Chin Fan2024-09-28
|
* refactor: mapclay v0.8.2Hsieh Chin Fan2024-09-28
| | | | | | | | | | * class name from 'map-container' -> 'mapclay' * Just append rendered element when semantic HTML is generated from markdown. Reuse logic is handed by mapclay * Move logic about geolinks into afterMapRendered for each rendering (afterEachMapLoaded -> afterMapRendered)
* feat: improve focus utilsHsieh Chin Fan2024-09-24
| | | | | | * use block height to determine behavior of scrollIntoView() * change color of indicator for focused block * make indicator always visible
* refactor: move utils about dumbymap into moduleHsieh Chin Fan2024-09-24