aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils.mjs
Commit message (Collapse)AuthorAge
* feat: use bbox to update camera for result of GeocodingHsieh Chin Fan2024-11-03
| | | | | | | | | | * show markers from all Geocoding Results * update mapclay for latest updateCamera method * 3 steps for camera animation: 1. zoom out to bbox which contains all Geocoding Result 2. pan to marker of hovered result 3. zoom in to bbox from nonimatim query * remove markers except selected Geocoding Result
* feat: add menu-item for GeocodingHsieh Chin Fan2024-10-31
| | | | | | | * Use nominatim for API calls * Create multiple GeoLinks for each results in response * Also add menu-item DELETE to remove duplicated GeoLinks from one Geocoding
* feat: add support for full-width digitsHsieh Chin Fan2024-10-23
|
* refactor: set observers for charactorData/childList separatelyHsieh Chin Fan2024-10-23
| | | | | | | * this patches e774e55, make code easier to understanded * use data attribute to initialize content in container * add limitation on method replaceNode(), to prevent GeoLinks generated in pre/code/a element
* refactor: use MuationObserver to update contentsHsieh Chin Fan2024-10-22
| | | | | BREAKING CHANGE: * generateMaps no more called when content changes
* feat: add utils for finding common ancestorHsieh Chin Fan2024-10-17
|
* 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
* chore: apply standardjs with trailing commaHsieh Chin Fan2024-10-09
|
* fix: logic about checking element insideHsieh Chin Fan2024-10-06
|
* 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
|
* feat: prevent menu show outside of windowHsieh Chin Fan2024-10-02
|
* style: switch to standardjsHsieh Chin Fan2024-10-02
|
* style: prettierHsieh Chin Fan2024-09-29
|
* style: prettierHsieh Chin Fan2024-09-28
|
* chore: reformat codeHsieh Chin Fan2024-09-25
|
* refactor: move utils about dumbymap into moduleHsieh Chin Fan2024-09-24
|
* fix: patch 516aab9, this is real Animaiton do nothingHsieh Chin Fan2024-09-23
|
* feat(utils): return empty Animation, not null for DOMRectHsieh Chin Fan2024-09-22
|
* feat(utils): allow rect transition based only on left/topHsieh Chin Fan2024-09-22
|
* feat: allow throttle set delays by functionHsieh Chin Fan2024-09-21
|
* fix: trivial case for DOMRect animationHsieh Chin Fan2024-09-21
|
* fix: trivial case for DOMRect animationHsieh Chin Fan2024-09-20
|
* feat: add throttle for DOMRect animationHsieh Chin Fan2024-09-20
|
* refactor: move utils method to new moduleHsieh Chin Fan2024-09-20