Commit message (Collapse) | Author | Age | ||
---|---|---|---|---|
... | ||||
* | feat: add util "removeBlockFocus" | Hsieh Chin Fan | 2024-09-24 | |
| | ||||
* | feat: set focus state by CSS | Hsieh Chin Fan | 2024-09-24 | |
| | | | | data-focus -> class="focus" | |||
* | feat: add focusNextBlock util | Hsieh Chin Fan | 2024-09-24 | |
| | ||||
* | feat: add mapCache for rendered map | Hsieh Chin Fan | 2024-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 Fan | 2024-09-23 | |
| | ||||
* | feat: remove keydown events from dumbymap | Hsieh Chin Fan | 2024-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 block | Hsieh Chin Fan | 2024-09-23 | |
| | ||||
* | fix: typo | Hsieh Chin Fan | 2024-09-23 | |
| | ||||
* | feat(utils): return empty Animation, not null for DOMRect | Hsieh Chin Fan | 2024-09-22 | |
| | ||||
* | refactor: remove inline style anyway when layer switch | Hsieh Chin Fan | 2024-09-22 | |
| | ||||
* | feat: remove onlick event for focusing map | Hsieh Chin Fan | 2024-09-22 | |
| | | | | | For UX, use may just want to interact with maps but not but them into showcase. | |||
* | refactor: class name for content container | Hsieh Chin Fan | 2024-09-22 | |
| | | | | | DumbyMap -> Dumby Since maps are inside it! | |||
* | fix: focus a map after all rendered | Hsieh Chin Fan | 2024-09-22 | |
| | ||||
* | feat: add resize bar for side-by-side layout | Hsieh Chin Fan | 2024-09-22 | |
| | | | | | * SVG comes from maplibre-gl-compare * plain-draggable is awesome! | |||
* | fix: 5d0a91d, should handle default aliases now | Hsieh Chin Fan | 2024-09-22 | |
| | ||||
* | style: reformat code | Hsieh Chin Fan | 2024-09-21 | |
| | ||||
* | refactor: layout class | Hsieh Chin Fan | 2024-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 display | Hsieh Chin Fan | 2024-09-21 | |
| | ||||
* | fix: typo for event API | Hsieh Chin Fan | 2024-09-21 | |
| | ||||
* | style: add comment for animation | Hsieh Chin Fan | 2024-09-21 | |
| | ||||
* | style: definition of link methods | Hsieh Chin Fan | 2024-09-21 | |
| | ||||
* | refactor: apply Layout Class | Hsieh Chin Fan | 2024-09-21 | |
| | | | | | * Use {name, enterHandler, leaverHandler} for layout switch * Move "overlay" to another module | |||
* | feat: throttle for layout and map focus | Hsieh Chin Fan | 2024-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 place | Hsieh Chin Fan | 2024-09-21 | |
| | ||||
* | fix: add class name for container | Hsieh Chin Fan | 2024-09-20 | |
| | ||||
* | feat: enable onscroll event from plain-draggable | Hsieh Chin Fan | 2024-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 layout | Hsieh Chin Fan | 2024-09-20 | |
| | ||||
* | feat: add throttle for DOMRect animation | Hsieh Chin Fan | 2024-09-20 | |
| | ||||
* | style: eslint | Hsieh Chin Fan | 2024-09-20 | |
| | ||||
* | refactor: move utils method to new module | Hsieh Chin Fan | 2024-09-20 | |
| | ||||
* | feat: animation for Showcase | Hsieh Chin Fan | 2024-09-20 | |
| | ||||
* | fix: do not change focus map when it is alone | Hsieh Chin Fan | 2024-09-19 | |
| | ||||
* | feat: swith focus map by tab key and click | Hsieh Chin Fan | 2024-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 geoLink | Hsieh Chin Fan | 2024-09-16 | |
| | ||||
* | feat: Add arg or callback for each map rendered | Hsieh Chin Fan | 2024-09-15 | |
| | ||||
* | fix: Use correct way to set initial position of draggable blocks | Hsieh Chin Fan | 2024-09-15 | |
| | | | | | Otherwise, inline style 'transform' would be set to 0 when first-time dragging, 'left' and 'top' would affect draggable area. | |||
* | chore: eslint | Hsieh Chin Fan | 2024-09-15 | |
| | ||||
* | feat(CSS): Make draggable blocks resizable | Hsieh Chin Fan | 2024-09-15 | |
| | ||||
* | feat(markdown): Set line break valid by default | Hsieh Chin Fan | 2024-09-15 | |
| | ||||
* | chore: eslint | Hsieh Chin Fan | 2024-09-15 | |
| | ||||
* | feat: Improve draggable behavior in overlay layout | Hsieh Chin Fan | 2024-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 default | Hsieh Chin Fan | 2024-09-15 | |
| | | | | Use new API "renderWith" with converter | |||
* | feat: Add markers by API after map created | Hsieh Chin Fan | 2024-09-15 | |
| | ||||
* | style: Reformat code | Hsieh Chin Fan | 2024-09-15 | |
| | ||||
* | style: Reformat code | Hsieh Chin Fan | 2024-09-12 | |
| | ||||
* | feat: export method createGeoLinks() | Hsieh Chin Fan | 2024-09-12 | |
| | ||||
* | feat: Use CSS selector on DocLinks | Hsieh Chin Fan | 2024-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 EasyMDE | Hsieh Chin Fan | 2024-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 comments | Hsieh Chin Fan | 2024-09-10 | |
| | ||||
* | chore: Improve eslint | Hsieh Chin Fan | 2024-09-09 | |
| |