Skip to content

Commit cc6c72e

Browse files
committed
notes
1 parent f3f22a2 commit cc6c72e

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

packages/docs/src/content/docs/other/pan-zoom.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -182,4 +182,8 @@ Be aware that some CSS will cause pixelation of SVG on zoom (bug in Safari), for
182182

183183
## TODO
184184

185-
- [ ] some kind of threshold for small images (pan-zoom UI looks weird for small images)
185+
- [ ] Do not stretch images if they are smaller than viewport
186+
- [ ] Do not show PanZoom UI for small images
187+
- [ ] Prevent clicks on drag or pan
188+
- [ ] minimap and full-screen mode, like in [reactflow](https://reactflow.dev/examples/nodes/custom-node)
189+
- [ ] Create a Rehype plugin to wrap images in a container (`<figure class="beoe"></figure>`) to avoid creating it on the client side.

packages/docs/src/content/docs/start-here/interactivity.mdx

+9
Original file line numberDiff line numberDiff line change
@@ -455,3 +455,12 @@ document.querySelectorAll(".vizdom.ants").forEach((container) => {
455455
- JS and CSS for those examples are not included in Vizdom Rehype plugin, but feel free to copy (from this website) and modify them
456456
- Graphviz Rehype plugin also provides option for `data` (`graphFormat=dagre`), but ids in SVG are not consistent with ids in JSON. So it doesn't really work
457457
- [Request to support JSON representation for D2](https://github.com/terrastruct/d2/discussions/2224)
458+
459+
### TODO
460+
461+
- [ ] Search/filter by labels
462+
463+
See for inspiration:
464+
465+
- [tintinweb.graphviz-interactive-preview](https://marketplace.visualstudio.com/items?itemName=tintinweb.graphviz-interactive-preview)
466+
- [SVG Zoom To Element](https://bettertyped.github.io/react-zoom-pan-pinch/?path=/story/examples-svg-zoom-to-element--svg-zoom-to-element)

0 commit comments

Comments
 (0)