aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/editor.mjs
Commit message (Collapse)AuthorAge
* refactor: remove custom elementsHsieh Chin Fan2024-10-31
| | | | | | REASON: apply custom elements in content script may change globalThis which is not equal to window. This makes type check in maplibregl always fails!
* feat: add menu-item for edit map without editorHsieh Chin Fan2024-10-28
|
* feat: add menu item for add markerHsieh Chin Fan2024-10-28
| | | | | * remove code about adding reference link in editor.mjs * TODO: use local storage to access reference about marker
* style: standardjsHsieh Chin Fan2024-10-23
|
* feat: patch 5cb442c, observer for layoutHsieh 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
* fix: patch 4dd0fa8Hsieh Chin Fan2024-10-18
|
* feat: set "sticky" as one of default layoutsHsieh Chin Fan2024-10-17
| | | | | | | * move function addDraggable() into module scope * showcase in sticky layout is draggable now * add query paramerter for "use" * FIX: set initialLayout after observer is set
* feat: set data attribute for editor to disable HTML updateHsieh Chin Fan2024-10-17
|
* feat: patch 2c9ffa2Hsieh Chin Fan2024-10-15
| | | | | | * addAnchorByPoint -> addMarkerByPoint just return newly created marker * Add pointByArrow as general element in container
* fix: only update scroll line by user inputHsieh Chin Fan2024-10-15
|
* 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: migrate drag feature to dumbymapHsieh Chin Fan2024-10-14
|
* docs: jsdocHsieh Chin Fan2024-10-14
|
* refactor: add <main> for contentsHsieh Chin Fan2024-10-14
|
* fix: compare anchor name by lower-caseHsieh Chin Fan2024-10-13
|
* refactor: don't re-render HTML by draggingHsieh Chin Fan2024-10-13
|
* fix: sync scroll from HTML to CodeMirrorHsieh Chin Fan2024-10-13
| | | | | * fix initial for lineEnd * sync horizontal scroll
* feat: use selection as default name of anchorHsieh Chin Fan2024-10-12
|
* feat: add query param for layoutHsieh Chin Fan2024-10-12
|
* feat: set cursor at begining when reset by tutorialHsieh Chin Fan2024-10-11
|
* feat: update tutorial content for adding GeoLinkHsieh Chin Fan2024-10-11
| | | | | * add new module for hoding contents * also add settings for linkify
* feat: add query params for crsHsieh Chin Fan2024-10-11
|
* docs: fix typo in READMEHsieh Chin Fan2024-10-10
|
* fix: the way check scroll line is clearHsieh Chin Fan2024-10-10
|
* docs(jsdoc): update jsdocHsieh 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: patch a11cbe8Hsieh Chin Fan2024-10-09
| | | | shame that didn't notice layout initial issue...
* feat: add new option for custom layoutHsieh Chin Fan2024-10-09
|
* fix: path for default yaml fileHsieh Chin Fan2024-10-09
|
* feat: update default contents and used CSSHsieh Chin Fan2024-10-09
|
* feat: patch 5aede26Hsieh Chin Fan2024-10-09
| | | | | | | | * use callback to disable scroll * only allow action with left click * disable selection when dragging * gray-out elements except of maps * only sync scroll when cm has focus
* fix: proper timing to adjust scroll of HTML contentsHsieh Chin Fan2024-10-09
|
* chore: apply standardjs with trailing commaHsieh Chin Fan2024-10-09
|
* feat: patch 5aede26, set crosshair for mapsHsieh Chin Fan2024-10-09
|
* feat: create GeoLink by drag/dropHsieh Chin Fan2024-10-09
|
* refactor: move addAnchorByEvent into dumbyUtilsHsieh Chin Fan2024-10-08
|
* fix: path of resources for gh-pagesHsieh Chin Fan2024-10-08
|
* fix: typo in 283b2c9Hsieh Chin Fan2024-10-08
|
* feat: add search params 'content' for tutorialHsieh Chin Fan2024-10-08
|
* fix: don't show 'Add Link' when no range selectoinHsieh Chin Fan2024-10-08
|
* style: reformat codeHsieh Chin Fan2024-10-08
|
* feat: update default contentsHsieh Chin Fan2024-10-08
|
* feat: also sync scroll when content changesHsieh Chin Fan2024-10-08
|
* feat: add editor action for default contentHsieh Chin Fan2024-10-08
|
* feat: sync selection from HTML to CodeMirrorHsieh Chin Fan2024-10-08
| | | | This is for adding reference style links
* refactor: method of setting context menuHsieh Chin Fan2024-10-08
|