aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/dumbymap.mjs
Commit message (Collapse)AuthorAge
...
* feat: prevent menu show outside of windowHsieh Chin Fan2024-10-02
|
* fix: set default layout for dumbymapHsieh Chin Fan2024-10-02
|
* style: switch to standardjsHsieh Chin Fan2024-10-02
|
* feat: set menu-items by casesHsieh Chin Fan2024-10-02
| | | | | | | * When click on map => show toggle-map and print-result * When click on block => show toggle-block and map/block/layout selection * When click on showcase => show all above execpt toggle-block
* fix: keep data-mode=editing when HTML refreshHsieh Chin Fan2024-10-01
|
* fix: set menu position relative to clickHsieh Chin Fan2024-10-01
| | | | need to calculate offset of parent element
* feat: beautify result reportHsieh Chin Fan2024-10-01
| | | | | | * add color for state string * align extra info to right * apply new mapclay rule, steps result about "prepare" has type="prepare"
* feat: show menu items in casesHsieh Chin Fan2024-10-01
| | | | | If click on map, only show focus/print-results items If not, show focus-block method and other menu-items
* refactor: menu-item only call methods from dumbymap.utilsHsieh Chin Fan2024-10-01
|
* feat: print details of renderer result (finally)Hsieh Chin Fan2024-10-01
|
* feat: improve menu itemsHsieh Chin Fan2024-10-01
| | | | | | * fix editing mode, make it just like layout changes * add plain-modal for renderer results * check selection is within text range for geolink
* refactor: move menu feature from editor to dumbymapHsieh Chin Fan2024-10-01
|
* style: way to manage Element.childrenHsieh Chin Fan2024-10-01
|
* style: commentsHsieh Chin Fan2024-09-30
|
* 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
|
* feat(mapclay): add callback to indicate rendering progressHsieh 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: apply options for generateMaps()Hsieh Chin Fan2024-09-27
|
* refactor: methods about creating geo/doc linksHsieh Chin Fan2024-09-25
| | | | change methods to only create a single link
* chore: reformat codeHsieh Chin Fan2024-09-25
|
* refactor: move utils about dumbymap into moduleHsieh Chin Fan2024-09-24
|
* chore: reformat codeHsieh Chin Fan2024-09-24
|
* feat: add block indicator by peudo elementHsieh Chin Fan2024-09-24
|
* feat: add util "removeBlockFocus"Hsieh Chin Fan2024-09-24
|
* feat: set focus state by CSSHsieh Chin Fan2024-09-24
| | | | data-focus -> class="focus"
* feat: add focusNextBlock utilHsieh Chin Fan2024-09-24
|
* feat: add mapCache for rendered mapHsieh Chin Fan2024-09-24
| | | | | | | | | * apply new config option: "render", just pass function to replace "use" * check configList when render. If ID and config content are the same, use cache otherwise * remove CSS animation to prevent blinking when config changes very quick * fix method about checking showcase is visible. This prevent reused map gain focus.
* refactor: store maps as [HTMLElement, Promise]Hsieh Chin Fan2024-09-23
|
* feat: remove keydown events from dumbymapHsieh Chin Fan2024-09-23
| | | | | | | | | | | | * events now handed by editor * this fix document.onkeydown reset when generatedMaps() called more than one time * apply "bind" to remove methods about user interaction from generateMaps() * refactor focusNextmap(), using array to store rendered maps BREAKING CHANGE: generateMaps() now return dumbymap Object, contains key elements and methods
* feat(layout): transition to reduce height of empty blockHsieh Chin Fan2024-09-23
|
* fix: typoHsieh Chin Fan2024-09-23
|
* feat(utils): return empty Animation, not null for DOMRectHsieh Chin Fan2024-09-22
|
* refactor: remove inline style anyway when layer switchHsieh Chin Fan2024-09-22
|
* feat: remove onlick event for focusing mapHsieh Chin Fan2024-09-22
| | | | | For UX, use may just want to interact with maps but not but them into showcase.
* refactor: class name for content containerHsieh Chin Fan2024-09-22
| | | | | DumbyMap -> Dumby Since maps are inside it!
* fix: focus a map after all renderedHsieh Chin Fan2024-09-22
|
* feat: add resize bar for side-by-side layoutHsieh Chin Fan2024-09-22
| | | | | * SVG comes from maplibre-gl-compare * plain-draggable is awesome!
* fix: 5d0a91d, should handle default aliases nowHsieh Chin Fan2024-09-22
|
* style: reformat codeHsieh Chin Fan2024-09-21
|
* refactor: layout classHsieh Chin Fan2024-09-21
| | | | | | * put class Layout and OverlayLayout together * apply extend on OverlayLayout * rename layouts: "none" -> "normal", "side" -> "side-by-side"
* feat: add throttle for next map by Showcase displayHsieh Chin Fan2024-09-21
|
* fix: typo for event APIHsieh Chin Fan2024-09-21
|
* style: add comment for animationHsieh Chin Fan2024-09-21
|
* style: definition of link methodsHsieh Chin Fan2024-09-21
|
* refactor: apply Layout ClassHsieh Chin Fan2024-09-21
| | | | | * Use {name, enterHandler, leaverHandler} for layout switch * Move "overlay" to another module
* feat: throttle for layout and map focusHsieh Chin Fan2024-09-21
| | | | | | * add throttle for layout switch * apply throttle for 'Tab' key (focus next map) * remove throttle from DOMRect animation
* refactor: setting draggable block in one placeHsieh Chin Fan2024-09-21
|