@dineug/erd-editor 3.8.0 → 3.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/README.md +1 -1
  2. package/dist/components/erd/canvas/column-drag-ghost/ColumnDragGhost.d.ts +10 -0
  3. package/dist/components/erd/canvas/column-drag-ghost/columnDragPointer.d.ts +28 -0
  4. package/dist/components/erd/canvas/sceneTokens.d.ts +31 -5
  5. package/dist/components/erd/canvas/table/cellLayout.d.ts +6 -6
  6. package/dist/components/erd/canvas/table/colorEdge.d.ts +10 -0
  7. package/dist/components/erd/canvas/table/column/Column.d.ts +12 -3
  8. package/dist/components/erd/canvas/useMoveEntity.d.ts +6 -0
  9. package/dist/components/erd/diff-viewer/diff.d.ts +9 -2
  10. package/dist/components/erd/diff-viewer/diffContext.d.ts +9 -0
  11. package/dist/components/primitives/context-menu/context-menu-content/ContextMenuContent.d.ts +2 -0
  12. package/dist/components/primitives/context-menu/context-menu-content/fitMenu.d.ts +20 -0
  13. package/dist/components/table-view/Table.styles.d.ts +6 -1
  14. package/dist/components/table-view/column/useColumnCell.d.ts +5 -0
  15. package/dist/components/visualization/Visualization.styles.d.ts +4 -1
  16. package/dist/components/visualization/captureDrag.d.ts +14 -0
  17. package/dist/components/visualization/useViewGestures.d.ts +2 -2
  18. package/dist/constants/layout.d.ts +29 -6
  19. package/dist/engine/index.js +8 -8
  20. package/dist/engine/modules/editor/generator.actions.d.ts +3 -2
  21. package/dist/engine/modules/settings/generator.actions.d.ts +15 -0
  22. package/dist/engine/rx-store.d.ts +1 -0
  23. package/dist/engine/tag.d.ts +2 -0
  24. package/dist/erd-editor.umd.js +328 -314
  25. package/dist/hooks/usePinchZoom.d.ts +27 -0
  26. package/dist/index.js +5893 -5427
  27. package/dist/konva/scene/columnDropTarget.d.ts +10 -3
  28. package/dist/konva/scene/viewLayout.d.ts +10 -5
  29. package/dist/konva/scene/viewport.d.ts +6 -0
  30. package/dist/{schemaGCService-CXVjeF9p.js → schemaGCService-CFiz1xOG.js} +3089 -2986
  31. package/dist/styles/elevation.styles.d.ts +7 -0
  32. package/dist/themes/radix-ui-theme.config.d.ts +12 -0
  33. package/dist/themes/tokens.d.ts +7 -0
  34. package/dist/utils/calcTable.d.ts +1 -5
  35. package/dist/utils/domEvent.d.ts +2 -0
  36. package/dist/utils/pinch.d.ts +34 -0
  37. package/dist/utils/validation.d.ts +1 -0
  38. package/dist/workers/exportPng.shared-worker.js +26 -26
  39. package/package.json +3 -3
@@ -0,0 +1,27 @@
1
+ import { Ref } from '@dineug/r-html';
2
+ import { AppContext } from '../components/appContext';
3
+ import { GeometrySource } from '../utils/draw-relationship/geometrySource';
4
+ export type PinchZoomOptions = {
5
+ /** The editor whose store the zoom lands in. */
6
+ app: () => AppContext;
7
+ /** The box the scene hangs in, which a pinch is measured against. */
8
+ root: Ref<HTMLDivElement>;
9
+ /** The scene zoomed, else the one the zoom chords reach. */
10
+ source?: GeometrySource;
11
+ /** Whether the scene zooms by a pinch now; an overlay over it does not. */
12
+ enabled?: () => boolean;
13
+ };
14
+ /**
15
+ * The pinches a store scene zooms by: a trackpad's about the pointer, and two
16
+ * fingers about their midpoint, which also pans as it travels. The caller hands
17
+ * each its wheel and its press first and leaves the one spent here alone.
18
+ *
19
+ * @example
20
+ * const pinch = usePinchZoom({ app: () => app.value, root });
21
+ * if (pinch.handleWheel(event)) return;
22
+ */
23
+ export declare function usePinchZoom({ app, root, source, enabled, }: PinchZoomOptions): {
24
+ handleWheel: (event: WheelEvent) => boolean;
25
+ handleTouchstart: (event: MouseEvent | TouchEvent) => boolean;
26
+ };
27
+ //# sourceMappingURL=usePinchZoom.d.ts.map