aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/dumbymap.mjs
Commit message (Collapse)AuthorAge
...
* 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
|
* fix: Use correct way to set initial position of draggable blocksHsieh Chin Fan2024-09-15
| | | | | Otherwise, inline style 'transform' would be set to 0 when first-time dragging, 'left' and 'top' would affect draggable area.
* chore: eslintHsieh Chin Fan2024-09-15
|
* feat(CSS): Make draggable blocks resizableHsieh Chin Fan2024-09-15
|
* feat(markdown): Set line break valid by defaultHsieh Chin Fan2024-09-15
|
* chore: eslintHsieh Chin Fan2024-09-15
|
* feat: Improve draggable behavior in overlay layoutHsieh Chin Fan2024-09-15
| | | | | | | * Set position=absolute on each block, so they won't affect each others' y value when display=none (about Block Formatting Context) * Add title tooltip for removing block * Simple logic to set initial position of block by their width
* feat: Set maps full-width by defaultHsieh Chin Fan2024-09-15
| | | | Use new API "renderWith" with converter
* feat: Add markers by API after map createdHsieh Chin Fan2024-09-15
|
* style: Reformat codeHsieh Chin Fan2024-09-15
|
* style: Reformat codeHsieh Chin Fan2024-09-12
|
* feat: export method createGeoLinks()Hsieh Chin Fan2024-09-12
|
* feat: Use CSS selector on DocLinksHsieh Chin Fan2024-09-11
| | | | | | * Now module export method createDocLinks() * DocLink now decides target by CSS selector in title with prefix "=>", or just by doc fragment
* refactor: Switch to EasyMDEHsieh Chin Fan2024-09-11
| | | | | | | | EasyMDE is based on codemirror, so completion and more features maybe applied later. * Now suggestions also works in EasyMDE * For preview, change return value of markdown2HTML()
* style: Add commentsHsieh Chin Fan2024-09-10
|
* chore: Improve eslintHsieh Chin Fan2024-09-09
|