aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/dumbymap.mjs
Commit message (Collapse)AuthorAge
...
* 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
|
* fix: add class name for containerHsieh Chin Fan2024-09-20
|
* feat: enable onscroll event from plain-draggableHsieh Chin Fan2024-09-20
| | | | | | | ref: https://github.com/anseki/plain-draggable/issues/148 * put CSS properties resize and overflow-y to content of draggable item * refine CSS for handle animation
* feat: draggable elements only appears in overlay layoutHsieh Chin Fan2024-09-20
|
* feat: add throttle for DOMRect animationHsieh Chin Fan2024-09-20
|
* style: eslintHsieh Chin Fan2024-09-20
|
* refactor: move utils method to new moduleHsieh Chin Fan2024-09-20
|
* feat: animation for ShowcaseHsieh Chin Fan2024-09-20
|
* fix: do not change focus map when it is aloneHsieh Chin Fan2024-09-19
|
* feat: swith focus map by tab key and clickHsieh Chin Fan2024-09-18
| | | | | | | | | | * Use data-focus attribute and MutationObserver to move map-container between Sementic HTML and Showcase. * Currently set return value of docuement.onkeydown in editor, then reset onkeydown function in dumbymap. Maybe there is a better way? * CSS to make placeholder not so obvious
* fix: method call about geoLinkHsieh Chin Fan2024-09-16
|
* feat: Add arg or callback for each map renderedHsieh Chin Fan2024-09-15
|