@dineug/erd-editor 3.4.0 → 3.6.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 (440) hide show
  1. package/README.md +41 -10
  2. package/dist/components/appContext.d.ts +9 -1
  3. package/dist/components/customElementRegistry.d.ts +1 -0
  4. package/dist/components/erd/Erd.d.ts +1 -0
  5. package/dist/components/erd/Erd.styles.d.ts +1 -0
  6. package/dist/components/erd/automatic-table-placement/AutomaticTablePlacement.d.ts +16 -0
  7. package/dist/components/erd/automatic-table-placement/AutomaticTablePlacement.styles.d.ts +1 -0
  8. package/dist/components/erd/automatic-table-placement/createAutomaticTablePlacement.d.ts +18 -1
  9. package/dist/components/erd/canvas/Canvas.d.ts +6 -0
  10. package/dist/components/erd/canvas/Canvas.styles.d.ts +12 -0
  11. package/dist/components/erd/canvas/CanvasScene.d.ts +19 -0
  12. package/dist/components/erd/canvas/EditOverlay.d.ts +9 -0
  13. package/dist/components/erd/canvas/EditOverlay.styles.d.ts +7 -0
  14. package/dist/components/erd/canvas/SceneIcon.template.d.ts +22 -0
  15. package/dist/components/erd/canvas/altDragDuplicate.d.ts +1 -0
  16. package/dist/components/erd/canvas/drag-select/DragSelect.d.ts +12 -0
  17. package/dist/components/erd/canvas/draw-relationship/DrawRelationship.d.ts +1 -0
  18. package/dist/components/erd/canvas/duplicate-ghost/DuplicateGhost.d.ts +6 -0
  19. package/dist/components/erd/canvas/entityDrag.d.ts +7 -0
  20. package/dist/components/erd/canvas/high-level-table/HighLevelTable.d.ts +5 -0
  21. package/dist/components/erd/canvas/memo/Memo.d.ts +3 -0
  22. package/dist/components/erd/canvas/memo/memo-sash/MemoSash.d.ts +12 -1
  23. package/dist/components/erd/canvas/memo/memoCaret.d.ts +27 -0
  24. package/dist/components/erd/canvas/memo/memoScroll.d.ts +29 -0
  25. package/dist/components/erd/canvas/memo/memoText.d.ts +34 -0
  26. package/dist/components/erd/canvas/memo/useMoveMemo.d.ts +7 -0
  27. package/dist/components/erd/canvas/relationship-group/RelationshipGroup.d.ts +16 -0
  28. package/dist/components/erd/canvas/{canvas-svg → relationship-group}/relationship/Relationship.d.ts +1 -0
  29. package/dist/components/erd/canvas/relationship-group/relationship/Relationship.template.d.ts +18 -0
  30. package/dist/components/erd/canvas/sceneHit.d.ts +19 -0
  31. package/dist/components/erd/canvas/sceneKind.d.ts +12 -0
  32. package/dist/components/erd/canvas/sceneRetention.d.ts +32 -0
  33. package/dist/components/erd/canvas/sceneTokens.d.ts +68 -0
  34. package/dist/components/erd/canvas/shared-drag-select/SharedDragSelect.d.ts +5 -0
  35. package/dist/components/erd/canvas/shared-mouse-tracker/SharedMouseTracker.d.ts +2 -0
  36. package/dist/components/erd/canvas/shared-mouse-tracker/shared-mouse-cursor/SharedMouseCursor.d.ts +6 -0
  37. package/dist/components/erd/canvas/table/Table.d.ts +9 -0
  38. package/dist/components/erd/canvas/table/cellLayout.d.ts +64 -0
  39. package/dist/components/erd/canvas/table/column/Column.d.ts +17 -6
  40. package/dist/components/erd/canvas/table/doubleClick.d.ts +15 -0
  41. package/dist/components/erd/canvas/table/useFocusTable.d.ts +1 -0
  42. package/dist/components/erd/canvas/table/useMoveTable.d.ts +2 -1
  43. package/dist/components/erd/canvas/table/useSharedFocusTable.d.ts +1 -0
  44. package/dist/components/erd/canvas/useMoveEntity.d.ts +19 -0
  45. package/dist/components/erd/canvas/useSharedSelectEntity.d.ts +1 -0
  46. package/dist/components/erd/content-compass/ContentCompass.d.ts +10 -0
  47. package/dist/components/erd/content-compass/ContentCompass.styles.d.ts +3 -0
  48. package/dist/components/erd/content-compass/compassGeometry.d.ts +24 -0
  49. package/dist/components/erd/diff-viewer/DiffViewer.d.ts +1 -0
  50. package/dist/components/erd/diff-viewer/DiffViewer.styles.d.ts +1 -0
  51. package/dist/components/erd/diff-viewer/diff.d.ts +1 -0
  52. package/dist/components/erd/diff-viewer/erd-viewer/ErdViewer.d.ts +1 -0
  53. package/dist/components/erd/diff-viewer/erd-viewer/ErdViewer.styles.d.ts +1 -0
  54. package/dist/components/erd/diff-viewer/tree-viewer/TreeViewer.d.ts +1 -0
  55. package/dist/components/erd/diff-viewer/tree-viewer/TreeViewer.styles.d.ts +1 -0
  56. package/dist/components/erd/erd-context-menu/ErdContextMenu.d.ts +2 -2
  57. package/dist/components/erd/erd-context-menu/menus/databaseMenus.d.ts +1 -0
  58. package/dist/components/erd/erd-context-menu/menus/drawRelationshipMenus.d.ts +3 -2
  59. package/dist/components/erd/erd-context-menu/menus/exportMenus.d.ts +3 -1
  60. package/dist/components/erd/erd-context-menu/menus/importMenus.d.ts +1 -0
  61. package/dist/components/erd/erd-context-menu/menus/relationshipMenus.d.ts +1 -0
  62. package/dist/components/erd/erd-context-menu/menus/showMenus.d.ts +1 -0
  63. package/dist/components/erd/erdShortcutPerformCheck.d.ts +1 -0
  64. package/dist/components/erd/floating-toolbar/FloatingToolbar.d.ts +10 -0
  65. package/dist/components/erd/floating-toolbar/FloatingToolbar.styles.d.ts +4 -0
  66. package/dist/components/erd/hitTest.d.ts +23 -0
  67. package/dist/components/erd/minimap/Minimap.d.ts +1 -0
  68. package/dist/components/erd/minimap/Minimap.styles.d.ts +1 -1
  69. package/dist/components/erd/minimap/MinimapScene.d.ts +17 -0
  70. package/dist/components/erd/minimap/memo/Memo.d.ts +8 -0
  71. package/dist/components/erd/minimap/minimapGeometry.d.ts +100 -0
  72. package/dist/components/erd/minimap/table/Table.d.ts +8 -0
  73. package/dist/components/erd/minimap/useMinimapScroll.d.ts +1 -0
  74. package/dist/components/erd/minimap/viewport/Viewport.d.ts +1 -0
  75. package/dist/components/erd/minimap/viewport/Viewport.styles.d.ts +1 -0
  76. package/dist/components/erd/table-properties/TableProperties.d.ts +1 -0
  77. package/dist/components/erd/table-properties/TableProperties.styles.d.ts +1 -0
  78. package/dist/components/erd/table-properties/table-properties-indexes/TablePropertiesIndexes.d.ts +1 -0
  79. package/dist/components/erd/table-properties/table-properties-indexes/TablePropertiesIndexes.styles.d.ts +1 -0
  80. package/dist/components/erd/table-properties/table-properties-indexes/indexes-checkbox-column/IndexesCheckboxColumn.d.ts +1 -0
  81. package/dist/components/erd/table-properties/table-properties-indexes/indexes-checkbox-column/IndexesCheckboxColumn.styles.d.ts +1 -0
  82. package/dist/components/erd/table-properties/table-properties-indexes/indexes-column/IndexesColumn.d.ts +1 -0
  83. package/dist/components/erd/table-properties/table-properties-indexes/indexes-column/IndexesColumn.styles.d.ts +1 -0
  84. package/dist/components/erd/table-properties/table-properties-indexes/indexes-index/IndexesIndex.d.ts +1 -0
  85. package/dist/components/erd/table-properties/table-properties-indexes/indexes-index/IndexesIndex.styles.d.ts +1 -0
  86. package/dist/components/erd/table-properties/table-properties-tabs/TablePropertiesTabs.d.ts +1 -0
  87. package/dist/components/erd/table-properties/table-properties-tabs/TablePropertiesTabs.styles.d.ts +1 -0
  88. package/dist/components/erd/time-travel/TimeTravel.d.ts +1 -0
  89. package/dist/components/erd/time-travel/TimeTravel.styles.d.ts +1 -0
  90. package/dist/components/erd/useErdShortcut.d.ts +1 -0
  91. package/dist/components/erd/virtual-scroll/VirtualScroll.d.ts +1 -0
  92. package/dist/components/erd/virtual-scroll/VirtualScroll.styles.d.ts +1 -0
  93. package/dist/components/erd/virtual-scroll/useVirtualScroll.d.ts +26 -0
  94. package/dist/components/erd-editor/ErdEditor.d.ts +2 -1
  95. package/dist/components/erd-editor/ErdEditor.styles.d.ts +1 -0
  96. package/dist/components/erd-editor/useErdEditorAttachElement.d.ts +1 -0
  97. package/dist/components/generator-code/GeneratorCode.d.ts +1 -0
  98. package/dist/components/generator-code/GeneratorCode.styles.d.ts +1 -0
  99. package/dist/components/generator-code/generator-code-context-menu/GeneratorCodeContextMenu.d.ts +1 -0
  100. package/dist/components/generator-code/generator-code-context-menu/menus/columnNameCaseMenus.d.ts +1 -0
  101. package/dist/components/generator-code/generator-code-context-menu/menus/languageMenus.d.ts +1 -0
  102. package/dist/components/generator-code/generator-code-context-menu/menus/tableNameCaseMenus.d.ts +1 -0
  103. package/dist/components/global-styles/GlobalStyles.d.ts +4 -12
  104. package/dist/components/primitives/button/Button.d.ts +1 -0
  105. package/dist/components/primitives/button/Button.styles.d.ts +1 -0
  106. package/dist/components/primitives/code-block/CodeBlock.d.ts +1 -0
  107. package/dist/components/primitives/code-block/CodeBlock.styles.d.ts +2 -1
  108. package/dist/components/primitives/color-picker/ColorPicker.d.ts +1 -0
  109. package/dist/components/primitives/color-picker/ColorPicker.styles.d.ts +1 -0
  110. package/dist/components/primitives/context-menu/ContextMenu.d.ts +1 -0
  111. package/dist/components/primitives/context-menu/context-menu-content/ContextMenuContent.d.ts +1 -0
  112. package/dist/components/primitives/context-menu/context-menu-content/ContextMenuContent.styles.d.ts +1 -0
  113. package/dist/components/primitives/context-menu/context-menu-item/ContextMenuItem.d.ts +1 -0
  114. package/dist/components/primitives/context-menu/context-menu-item/ContextMenuItem.styles.d.ts +1 -0
  115. package/dist/components/primitives/context-menu/context-menu-root/ContextMenuRoot.d.ts +1 -0
  116. package/dist/components/primitives/context-menu/context-menu-root/contextMenuRootContext.d.ts +1 -0
  117. package/dist/components/primitives/context-menu/menu/Menu.d.ts +1 -0
  118. package/dist/components/primitives/context-menu/menu/Menu.styles.d.ts +1 -0
  119. package/dist/components/primitives/edit-input/EditInput.d.ts +1 -0
  120. package/dist/components/primitives/edit-input/EditInput.styles.d.ts +1 -0
  121. package/dist/components/primitives/highlighted-text/HighlightedText.d.ts +1 -0
  122. package/dist/components/primitives/highlighted-text/HighlightedText.styles.d.ts +1 -0
  123. package/dist/components/primitives/icon/Icon.d.ts +1 -0
  124. package/dist/components/primitives/icon/Icon.styles.d.ts +1 -0
  125. package/dist/components/primitives/icon/icons.d.ts +55 -26
  126. package/dist/components/primitives/kbd/Kbd.d.ts +1 -0
  127. package/dist/components/primitives/kbd/Kbd.styles.d.ts +1 -0
  128. package/dist/components/primitives/sash/Sash.d.ts +1 -0
  129. package/dist/components/primitives/sash/Sash.styles.d.ts +1 -0
  130. package/dist/components/primitives/separator/Separator.d.ts +1 -0
  131. package/dist/components/primitives/separator/Separator.styles.d.ts +1 -0
  132. package/dist/components/primitives/slider/Slider.d.ts +1 -0
  133. package/dist/components/primitives/slider/Slider.styles.d.ts +1 -0
  134. package/dist/components/primitives/switch/Switch.d.ts +1 -0
  135. package/dist/components/primitives/switch/Switch.styles.d.ts +1 -0
  136. package/dist/components/primitives/text-input/TextInput.d.ts +1 -0
  137. package/dist/components/primitives/toast/Toast.d.ts +5 -0
  138. package/dist/components/primitives/toast/Toast.styles.d.ts +6 -0
  139. package/dist/components/quick-search/QuickSearch.d.ts +1 -0
  140. package/dist/components/quick-search/QuickSearch.styles.d.ts +1 -0
  141. package/dist/components/quick-search/actions.d.ts +1 -0
  142. package/dist/components/schema-sql/SchemaSQL.d.ts +1 -0
  143. package/dist/components/schema-sql/SchemaSQL.styles.d.ts +1 -0
  144. package/dist/components/schema-sql/schema-sql-context-menu/SchemaSQLContextMenu.d.ts +1 -0
  145. package/dist/components/schema-sql/schema-sql-context-menu/menus/bracketMenus.d.ts +1 -0
  146. package/dist/components/settings/Settings.d.ts +1 -0
  147. package/dist/components/settings/Settings.styles.d.ts +1 -0
  148. package/dist/components/settings/settings-lnb/SettingsLnb.d.ts +1 -0
  149. package/dist/components/settings/settings-lnb/SettingsLnb.styles.d.ts +1 -0
  150. package/dist/components/settings/shortcuts/Shortcuts.d.ts +1 -0
  151. package/dist/components/settings/shortcuts/Shortcuts.styles.d.ts +1 -0
  152. package/dist/components/{erd/canvas/table → table-view}/Table.styles.d.ts +1 -0
  153. package/dist/components/{erd/canvas/draw-relationship/DrawRelationship.styles.d.ts → table-view/column/Column.styles.d.ts} +1 -0
  154. package/dist/components/{erd/canvas/table → table-view}/column/column-data-type/ColumnDataType.d.ts +2 -1
  155. package/dist/components/{erd/canvas/table → table-view}/column/column-data-type/ColumnDataType.styles.d.ts +1 -0
  156. package/dist/components/{erd/canvas/table → table-view}/column/column-key/ColumnKey.d.ts +1 -0
  157. package/dist/components/{erd/canvas/table → table-view}/column/column-key/ColumnKey.styles.d.ts +1 -0
  158. package/dist/components/{erd/canvas/table → table-view}/column/column-not-null/ColumnNotNull.d.ts +1 -0
  159. package/dist/components/{erd/canvas/table → table-view}/column/column-not-null/ColumnNotNull.styles.d.ts +1 -0
  160. package/dist/components/{erd/canvas/table → table-view}/column/column-option/ColumnOption.d.ts +1 -0
  161. package/dist/components/{erd/canvas/table → table-view}/column/column-option/ColumnOption.styles.d.ts +1 -0
  162. package/dist/components/table-view/column/useColumnCell.d.ts +24 -0
  163. package/dist/components/theme/Theme.d.ts +1 -0
  164. package/dist/components/theme-builder/ThemeBuilder.d.ts +1 -0
  165. package/dist/components/theme-builder/ThemeBuilder.styles.d.ts +1 -0
  166. package/dist/components/themeContext.d.ts +10 -0
  167. package/dist/components/toast-container/ToastContainer.d.ts +1 -0
  168. package/dist/components/toast-container/ToastContainer.styles.d.ts +1 -0
  169. package/dist/components/toast-container/openToastWhileRunning.d.ts +12 -0
  170. package/dist/components/toolbar/Toolbar.d.ts +1 -0
  171. package/dist/components/toolbar/Toolbar.styles.d.ts +1 -0
  172. package/dist/components/visualization/Visualization.d.ts +7 -0
  173. package/dist/components/visualization/Visualization.styles.d.ts +7 -0
  174. package/dist/components/visualization/VisualizationScene.d.ts +22 -0
  175. package/dist/components/visualization/createVisualization.d.ts +68 -8
  176. package/dist/components/visualization/graph-node/GraphNode.d.ts +24 -0
  177. package/dist/components/visualization/table/Table.d.ts +1 -1
  178. package/dist/components/visualization/table/column/Column.d.ts +1 -1
  179. package/dist/components/visualization/table/column/Column.styles.d.ts +1 -0
  180. package/dist/components/visualization/visualizationView.d.ts +91 -0
  181. package/dist/constants/language.d.ts +3 -2
  182. package/dist/constants/layout.d.ts +7 -13
  183. package/dist/constants/open.d.ts +1 -0
  184. package/dist/constants/schema.d.ts +2 -1
  185. package/dist/constants/sql/dataType/Databricks.d.ts +1 -0
  186. package/dist/constants/sql/dataType/MSSQL.d.ts +1 -0
  187. package/dist/constants/sql/dataType/MariaDB.d.ts +1 -0
  188. package/dist/constants/sql/dataType/MySQL.d.ts +1 -0
  189. package/dist/constants/sql/dataType/Oracle.d.ts +1 -0
  190. package/dist/constants/sql/dataType/PostgreSQL.d.ts +1 -0
  191. package/dist/constants/sql/dataType/SQLite.d.ts +1 -0
  192. package/dist/constants/sql/dataType/Snowflake.d.ts +1 -0
  193. package/dist/constants/sql/dataType/index.d.ts +1 -0
  194. package/dist/constants/sql/database.d.ts +1 -0
  195. package/dist/engine/actions.d.ts +1 -0
  196. package/dist/engine/clock.d.ts +1 -0
  197. package/dist/engine/context.d.ts +1 -0
  198. package/dist/engine/generator.actions.d.ts +1 -0
  199. package/dist/engine/history.actions.d.ts +1 -0
  200. package/dist/engine/history.d.ts +1 -0
  201. package/dist/engine/hooks.d.ts +1 -0
  202. package/dist/engine/index.d.ts +1 -0
  203. package/dist/engine/index.js +44 -0
  204. package/dist/engine/modules/editor/actions.d.ts +21 -0
  205. package/dist/engine/modules/editor/atom.actions.d.ts +92 -0
  206. package/dist/engine/modules/editor/generator.actions.d.ts +1 -0
  207. package/dist/engine/modules/editor/history.d.ts +1 -0
  208. package/dist/engine/modules/editor/state.d.ts +31 -0
  209. package/dist/engine/modules/editor/utils/duplicate.d.ts +5 -2
  210. package/dist/engine/modules/editor/utils/findRelationshipColumn.d.ts +1 -0
  211. package/dist/engine/modules/editor/utils/focus.d.ts +1 -0
  212. package/dist/engine/modules/editor/utils/selectRangeColumn.d.ts +1 -0
  213. package/dist/engine/modules/index/actions.d.ts +1 -0
  214. package/dist/engine/modules/index/atom.actions.d.ts +1 -0
  215. package/dist/engine/modules/index/generator.actions.d.ts +1 -0
  216. package/dist/engine/modules/index/history.d.ts +1 -0
  217. package/dist/engine/modules/index-column/actions.d.ts +1 -0
  218. package/dist/engine/modules/index-column/atom.actions.d.ts +1 -0
  219. package/dist/engine/modules/index-column/generator.actions.d.ts +1 -0
  220. package/dist/engine/modules/index-column/history.d.ts +1 -0
  221. package/dist/engine/modules/memo/actions.d.ts +1 -0
  222. package/dist/engine/modules/memo/atom.actions.d.ts +1 -0
  223. package/dist/engine/modules/memo/generator.actions.d.ts +1 -0
  224. package/dist/engine/modules/memo/history.d.ts +1 -0
  225. package/dist/engine/modules/relationship/actions.d.ts +1 -0
  226. package/dist/engine/modules/relationship/atom.actions.d.ts +1 -0
  227. package/dist/engine/modules/relationship/generator.actions.d.ts +1 -0
  228. package/dist/engine/modules/relationship/history.d.ts +1 -0
  229. package/dist/engine/modules/relationship/hooks.d.ts +1 -0
  230. package/dist/engine/modules/settings/actions.d.ts +3 -7
  231. package/dist/engine/modules/settings/atom.actions.d.ts +46 -32
  232. package/dist/engine/modules/settings/generator.actions.d.ts +1 -0
  233. package/dist/engine/modules/settings/history.d.ts +1 -1
  234. package/dist/engine/modules/settings/scrollRange.d.ts +18 -0
  235. package/dist/engine/modules/table/actions.d.ts +1 -0
  236. package/dist/engine/modules/table/atom.actions.d.ts +1 -0
  237. package/dist/engine/modules/table/generator.actions.d.ts +1 -0
  238. package/dist/engine/modules/table/history.d.ts +1 -0
  239. package/dist/engine/modules/table/hooks.d.ts +1 -0
  240. package/dist/engine/modules/table-column/actions.d.ts +1 -0
  241. package/dist/engine/modules/table-column/atom.actions.d.ts +1 -0
  242. package/dist/engine/modules/table-column/generator.actions.d.ts +1 -0
  243. package/dist/engine/modules/table-column/history.d.ts +1 -0
  244. package/dist/engine/modules/table-column/hooks.d.ts +1 -0
  245. package/dist/engine/modules/table-column/utils/dataType.d.ts +1 -0
  246. package/dist/engine/replication-store.d.ts +1 -0
  247. package/dist/engine/rx-operators/actionsFilter.d.ts +1 -0
  248. package/dist/engine/rx-operators/bufferCircuitBreaker.d.ts +1 -0
  249. package/dist/engine/rx-operators/groupByStreamActions.d.ts +1 -0
  250. package/dist/engine/rx-operators/ignoreTagFilter.d.ts +1 -0
  251. package/dist/engine/rx-operators/index.d.ts +1 -0
  252. package/dist/engine/rx-operators/notEmptyActions.d.ts +1 -0
  253. package/dist/engine/rx-operators/readonlyIgnoreFilter.d.ts +1 -0
  254. package/dist/engine/rx-operators/sharedStreamActionsCompressor.d.ts +1 -0
  255. package/dist/engine/rx-store.d.ts +1 -0
  256. package/dist/engine/shared-store.d.ts +1 -0
  257. package/dist/engine/state.d.ts +1 -0
  258. package/dist/engine/store-hooks.d.ts +1 -0
  259. package/dist/engine/store.d.ts +1 -0
  260. package/dist/engine/tag.d.ts +1 -0
  261. package/dist/erd-editor.umd.js +5259 -0
  262. package/dist/hooks/useDarkMode.d.ts +1 -0
  263. package/dist/hooks/useFlipAnimation.d.ts +1 -0
  264. package/dist/hooks/useKeyBindingMap.d.ts +1 -0
  265. package/dist/hooks/useUnmounted.d.ts +1 -0
  266. package/dist/index.d.ts +1 -0
  267. package/dist/index.dev.d.ts +1 -0
  268. package/dist/index.js +19991 -0
  269. package/dist/internal-types/index.d.ts +1 -0
  270. package/dist/konva/batchDraw.d.ts +42 -0
  271. package/dist/konva/host.d.ts +30 -0
  272. package/dist/konva/jsx-types.test-d.d.ts +2 -0
  273. package/dist/konva/scene/columnDropTarget.d.ts +14 -0
  274. package/dist/konva/scene/contentBounds.d.ts +29 -0
  275. package/dist/konva/scene/konvaFlip.d.ts +19 -0
  276. package/dist/konva/scene/metrics.d.ts +30 -0
  277. package/dist/konva/scene/renderScene.d.ts +35 -0
  278. package/dist/konva/scene/viewFreeze.d.ts +20 -0
  279. package/dist/konva/scene/viewport.d.ts +45 -0
  280. package/dist/konva/testHandle.d.ts +23 -0
  281. package/dist/konva/theme.d.ts +32 -0
  282. package/dist/konva/workerDomStubs.d.ts +2 -0
  283. package/dist/schemaGCService--wGet5O7.js +9636 -0
  284. package/dist/services/export-png/ExportScene.d.ts +16 -0
  285. package/dist/services/export-png/documentScene.d.ts +33 -0
  286. package/dist/services/export-png/exportBox.d.ts +27 -0
  287. package/dist/services/export-png/exportPng.shared-worker.d.ts +1 -0
  288. package/dist/services/export-png/exportPngService.d.ts +25 -0
  289. package/dist/services/export-png/index.d.ts +55 -0
  290. package/dist/services/export-png/pixelRatio.d.ts +22 -0
  291. package/dist/services/export-png/renderPng.d.ts +40 -0
  292. package/dist/services/export-png/textWidth.d.ts +28 -0
  293. package/dist/services/schema-gc/index.d.ts +9 -1
  294. package/dist/services/schema-gc/procGC.d.ts +1 -0
  295. package/dist/services/schema-gc/schemaGC.shared-worker.d.ts +1 -0
  296. package/dist/services/schema-gc/schemaGCService.d.ts +1 -0
  297. package/dist/services/shikiService.d.ts +1 -0
  298. package/dist/styles/colorPicker.style.d.ts +4 -7
  299. package/dist/styles/fonts.styles.d.ts +2 -1
  300. package/dist/styles/reset.styles.d.ts +2 -1
  301. package/dist/styles/scrollbar.styles.d.ts +4 -3
  302. package/dist/styles/typography.styles.d.ts +2 -1
  303. package/dist/themes/radix-ui-theme.config.d.ts +1 -0
  304. package/dist/themes/radix-ui-theme.d.ts +1 -0
  305. package/dist/themes/tokens.d.ts +5 -0
  306. package/dist/utils/arrayHas.d.ts +3 -0
  307. package/dist/utils/attribute.d.ts +1 -0
  308. package/dist/utils/bit.d.ts +1 -0
  309. package/dist/utils/calcMemo.d.ts +1 -0
  310. package/dist/utils/calcTable.d.ts +2 -1
  311. package/dist/utils/clipboard.d.ts +1 -0
  312. package/dist/utils/collection/index.entity.d.ts +1 -0
  313. package/dist/utils/collection/indexColumn.entity.d.ts +1 -0
  314. package/dist/utils/collection/memo.entity.d.ts +1 -0
  315. package/dist/utils/collection/relationship.entity.d.ts +1 -0
  316. package/dist/utils/collection/sequence.d.ts +1 -0
  317. package/dist/utils/collection/table.entity.d.ts +1 -0
  318. package/dist/utils/collection/tableColumn.entity.d.ts +1 -0
  319. package/dist/utils/device-detect/index.d.ts +1 -0
  320. package/dist/utils/domEvent.d.ts +1 -0
  321. package/dist/utils/dragSelect.d.ts +1 -8
  322. package/dist/utils/draw-relationship/calc.d.ts +1 -0
  323. package/dist/utils/draw-relationship/chamfer.d.ts +1 -0
  324. package/dist/utils/draw-relationship/draw.d.ts +1 -0
  325. package/dist/utils/draw-relationship/incremental.d.ts +71 -0
  326. package/dist/utils/draw-relationship/index.d.ts +48 -42
  327. package/dist/utils/draw-relationship/nudge.d.ts +3 -1
  328. package/dist/utils/draw-relationship/pathFinding.d.ts +4 -5
  329. package/dist/utils/draw-relationship/route.d.ts +5 -9
  330. package/dist/utils/draw-relationship/sort.d.ts +1 -0
  331. package/dist/utils/draw-relationship/stub.d.ts +6 -16
  332. package/dist/utils/emitter.d.ts +17 -0
  333. package/dist/utils/file/exportFile.d.ts +11 -1
  334. package/dist/utils/file/importFile.d.ts +1 -0
  335. package/dist/utils/flipAnimation.d.ts +1 -0
  336. package/dist/utils/focus.d.ts +2 -1
  337. package/dist/utils/generator-code/aml.d.ts +1 -0
  338. package/dist/utils/generator-code/csharp.d.ts +1 -0
  339. package/dist/utils/generator-code/dbml.d.ts +1 -0
  340. package/dist/utils/generator-code/drizzle.d.ts +1 -0
  341. package/dist/utils/generator-code/go.d.ts +1 -0
  342. package/dist/utils/generator-code/graphql.d.ts +1 -0
  343. package/dist/utils/generator-code/index.d.ts +1 -0
  344. package/dist/utils/generator-code/java.d.ts +1 -0
  345. package/dist/utils/generator-code/jpa.d.ts +1 -0
  346. package/dist/utils/generator-code/kotlin.d.ts +1 -0
  347. package/dist/utils/generator-code/scala.d.ts +1 -0
  348. package/dist/utils/generator-code/sequelize.d.ts +1 -0
  349. package/dist/utils/generator-code/sqlalchemy.d.ts +1 -0
  350. package/dist/utils/generator-code/typeorm.d.ts +1 -0
  351. package/dist/utils/generator-code/typescript.d.ts +1 -0
  352. package/dist/utils/generator-code/utils.d.ts +1 -0
  353. package/dist/utils/globalEmitter.d.ts +1 -0
  354. package/dist/utils/globalEventObservable.d.ts +14 -12
  355. package/dist/utils/icon.d.ts +10 -1
  356. package/dist/utils/index.d.ts +2 -1
  357. package/dist/utils/internalEvents.d.ts +1 -0
  358. package/dist/utils/keyboard-shortcut/index.d.ts +16 -1
  359. package/dist/utils/keyboard-shortcut/utils.d.ts +1 -0
  360. package/dist/utils/promise.d.ts +1 -0
  361. package/dist/utils/rx-operators/fromCopy.d.ts +1 -0
  362. package/dist/utils/rx-operators/fromDraggable.d.ts +1 -0
  363. package/dist/utils/rx-operators/fromPaste.d.ts +1 -0
  364. package/dist/utils/rx-operators/fromShadowDraggable.d.ts +1 -0
  365. package/dist/utils/rx-operators/takeUnsubscribe.d.ts +1 -0
  366. package/dist/utils/safeCallback.d.ts +5 -0
  367. package/dist/utils/schema-aml-parser/convert.d.ts +1 -0
  368. package/dist/utils/schema-aml-parser/dataType.d.ts +6 -6
  369. package/dist/utils/schema-aml-parser/index.d.ts +1 -0
  370. package/dist/utils/schema-aml-parser/parser.d.ts +1 -0
  371. package/dist/utils/schema-aml-parser/tokenizer.d.ts +4 -5
  372. package/dist/utils/schema-aml-parser/types.d.ts +14 -14
  373. package/dist/utils/schema-dbml-parser/convert.d.ts +1 -0
  374. package/dist/utils/schema-dbml-parser/dataType.d.ts +3 -2
  375. package/dist/utils/schema-dbml-parser/index.d.ts +1 -0
  376. package/dist/utils/schema-dbml-parser/parser.d.ts +1 -0
  377. package/dist/utils/schema-dbml-parser/tokenizer.d.ts +1 -0
  378. package/dist/utils/schema-dbml-parser/types.d.ts +6 -5
  379. package/dist/utils/schema-graphql-parser/convert.d.ts +1 -0
  380. package/dist/utils/schema-graphql-parser/dataType.d.ts +3 -2
  381. package/dist/utils/schema-graphql-parser/index.d.ts +1 -0
  382. package/dist/utils/schema-graphql-parser/parser.d.ts +1 -0
  383. package/dist/utils/schema-graphql-parser/types.d.ts +8 -7
  384. package/dist/utils/schema-sql/Databricks.d.ts +1 -0
  385. package/dist/utils/schema-sql/MSSQL.d.ts +1 -0
  386. package/dist/utils/schema-sql/MariaDB.d.ts +1 -0
  387. package/dist/utils/schema-sql/MySQL.d.ts +1 -0
  388. package/dist/utils/schema-sql/Oracle.d.ts +1 -0
  389. package/dist/utils/schema-sql/PostgreSQL.d.ts +1 -0
  390. package/dist/utils/schema-sql/SQLite.d.ts +1 -0
  391. package/dist/utils/schema-sql/Snowflake.d.ts +1 -0
  392. package/dist/utils/schema-sql/index.d.ts +1 -0
  393. package/dist/utils/schema-sql/utils.d.ts +1 -0
  394. package/dist/utils/schema-sql-parser/index.d.ts +1 -0
  395. package/dist/utils/schema-sql-parser/utils.d.ts +1 -0
  396. package/dist/utils/sharedColor.d.ts +1 -0
  397. package/dist/utils/table-clipboard/copy.d.ts +15 -2
  398. package/dist/utils/table-clipboard/index.d.ts +1 -0
  399. package/dist/utils/table-clipboard/paste.d.ts +1 -0
  400. package/dist/utils/table-clipboard/payload.d.ts +30 -1
  401. package/dist/utils/table-clipboard/placement.d.ts +1 -0
  402. package/dist/utils/text.d.ts +1 -0
  403. package/dist/utils/validation.d.ts +2 -1
  404. package/dist/workers/exportPng.shared-worker.js +54 -0
  405. package/dist/workers/schemaGC.shared-worker.js +1 -0
  406. package/dist/workers/spawn.d.ts +8 -0
  407. package/dist/workers/spawn.inline.d.ts +8 -0
  408. package/package.json +53 -51
  409. package/dist/components/erd/canvas/canvas-svg/CanvasSvg.d.ts +0 -7
  410. package/dist/components/erd/canvas/canvas-svg/CanvasSvg.styles.d.ts +0 -1
  411. package/dist/components/erd/canvas/canvas-svg/relationship/Relationship.template.d.ts +0 -3
  412. package/dist/components/erd/canvas/duplicate-ghost/DuplicateGhost.styles.d.ts +0 -2
  413. package/dist/components/erd/canvas/high-level-table/HighLevelTable.styles.d.ts +0 -1
  414. package/dist/components/erd/canvas/memo/Memo.styles.d.ts +0 -6
  415. package/dist/components/erd/canvas/shared-mouse-tracker/shared-mouse-cursor/SharedMouseCursor.styles.d.ts +0 -1
  416. package/dist/components/erd/canvas/table/column/Column.styles.d.ts +0 -2
  417. package/dist/components/erd/drag-select/DragSelect.d.ts +0 -9
  418. package/dist/components/erd/drag-select/DragSelect.styles.d.ts +0 -1
  419. package/dist/components/erd/hide-sign/HideSign.d.ts +0 -6
  420. package/dist/components/erd/hide-sign/HideSign.styles.d.ts +0 -1
  421. package/dist/components/erd-editor/ErdEditor.stories.d.ts +0 -17
  422. package/dist/components/primitives/button/Button.stories.d.ts +0 -26
  423. package/dist/components/primitives/code-block/CodeBlock.stories.d.ts +0 -25
  424. package/dist/components/primitives/color-picker/ColorPicker.stories.d.ts +0 -26
  425. package/dist/components/primitives/context-menu/ContextMenu.stories.d.ts +0 -16
  426. package/dist/components/primitives/edit-input/EditInput.stories.d.ts +0 -36
  427. package/dist/components/primitives/highlighted-text/HighlightedText.stories.d.ts +0 -23
  428. package/dist/components/primitives/icon/Icon.stories.d.ts +0 -10
  429. package/dist/components/primitives/kbd/Kbd.stories.d.ts +0 -17
  430. package/dist/components/primitives/sash/Sash.stories.d.ts +0 -30
  431. package/dist/components/primitives/separator/Separator.stories.d.ts +0 -25
  432. package/dist/components/primitives/slider/Slider.stories.d.ts +0 -23
  433. package/dist/components/primitives/switch/Switch.stories.d.ts +0 -21
  434. package/dist/components/primitives/text-input/TextInput.stories.d.ts +0 -41
  435. package/dist/components/primitives/toast/Toast.stories.d.ts +0 -20
  436. package/dist/engine.js +0 -42
  437. package/dist/erd-editor.js +0 -32023
  438. package/dist/schemaGCService-DAGNq0wk.js +0 -17092
  439. package/dist/services/schema-gc/schemaGC.worker.d.ts +0 -1
  440. package/dist/themes/textColor.d.ts +0 -2
@@ -2,3 +2,4 @@ import { FC } from '@dineug/r-html';
2
2
  export type ShortcutsProps = {};
3
3
  declare const Shortcuts: FC<ShortcutsProps>;
4
4
  export default Shortcuts;
5
+ //# sourceMappingURL=Shortcuts.d.ts.map
@@ -1,2 +1,3 @@
1
1
  export declare const table: import('@dineug/r-html').CSSTemplateLiterals;
2
2
  export declare const shortcutGroup: import('@dineug/r-html').CSSTemplateLiterals;
3
+ //# sourceMappingURL=Shortcuts.styles.d.ts.map
@@ -3,3 +3,4 @@ export declare const header: import('@dineug/r-html').CSSTemplateLiterals;
3
3
  export declare const headerColor: import('@dineug/r-html').CSSTemplateLiterals;
4
4
  export declare const headerButtonWrap: import('@dineug/r-html').CSSTemplateLiterals;
5
5
  export declare const headerInputWrap: import('@dineug/r-html').CSSTemplateLiterals;
6
+ //# sourceMappingURL=Table.styles.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare const root: import('@dineug/r-html').CSSTemplateLiterals;
2
+ //# sourceMappingURL=Column.styles.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { FC, Ref } from '@dineug/r-html';
2
- import { AppContext } from '../../../../../appContext';
2
+ import { AppContext } from '../../../appContext';
3
3
  export type ColumnDataTypeProps = {
4
4
  app?: Ref<AppContext>;
5
5
  tableId: string;
@@ -14,3 +14,4 @@ export type ColumnDataTypeProps = {
14
14
  };
15
15
  declare const ColumnDataType: FC<ColumnDataTypeProps>;
16
16
  export default ColumnDataType;
17
+ //# sourceMappingURL=ColumnDataType.d.ts.map
@@ -1,3 +1,4 @@
1
1
  export declare const root: import('@dineug/r-html').CSSTemplateLiterals;
2
2
  export declare const hint: import('@dineug/r-html').CSSTemplateLiterals;
3
3
  export declare const hintItem: import('@dineug/r-html').CSSTemplateLiterals;
4
+ //# sourceMappingURL=ColumnDataType.styles.d.ts.map
@@ -6,3 +6,4 @@ export type ColumnKeyProps = {
6
6
  };
7
7
  declare const ColumnKey: FC<ColumnKeyProps>;
8
8
  export default ColumnKey;
9
+ //# sourceMappingURL=ColumnKey.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare const key: import('@dineug/r-html').CSSTemplateLiterals;
2
+ //# sourceMappingURL=ColumnKey.styles.d.ts.map
@@ -5,3 +5,4 @@ export type ColumnNotNullProps = {
5
5
  };
6
6
  declare const ColumnNotNull: FC<ColumnNotNullProps>;
7
7
  export default ColumnNotNull;
8
+ //# sourceMappingURL=ColumnNotNull.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare const notNull: import('@dineug/r-html').CSSTemplateLiterals;
2
+ //# sourceMappingURL=ColumnNotNull.styles.d.ts.map
@@ -9,3 +9,4 @@ export type ColumnOptionProps = {
9
9
  };
10
10
  declare const ColumnOption: FC<ColumnOptionProps>;
11
11
  export default ColumnOption;
12
+ //# sourceMappingURL=ColumnOption.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare const option: import('@dineug/r-html').CSSTemplateLiterals;
2
+ //# sourceMappingURL=ColumnOption.styles.d.ts.map
@@ -0,0 +1,24 @@
1
+ import { Ref } from '@dineug/r-html';
2
+ import { AppContext } from '../../appContext';
3
+ import { DataTypeHint } from '../../../constants/sql/dataType';
4
+ export type ColumnCellProps = {
5
+ tableId: string;
6
+ columnId: string;
7
+ edit?: boolean;
8
+ value: string;
9
+ onEditEnd?: () => void;
10
+ };
11
+ /**
12
+ * Data type autocomplete state and key handling for a column cell, shared by
13
+ * the DOM cell and by the Konva cell that replaces it.
14
+ */
15
+ export declare function useColumnCell(props: ColumnCellProps, app: Ref<AppContext>): {
16
+ state: {
17
+ hints: DataTypeHint[];
18
+ index: number;
19
+ };
20
+ setHints: (value: string) => void;
21
+ handleSelectHint: (index: number) => void;
22
+ handleKeydown: (event: KeyboardEvent) => void;
23
+ };
24
+ //# sourceMappingURL=useColumnCell.d.ts.map
@@ -5,3 +5,4 @@ export type ThemeProps = {
5
5
  };
6
6
  declare const Theme: FC<ThemeProps>;
7
7
  export default Theme;
8
+ //# sourceMappingURL=Theme.d.ts.map
@@ -5,3 +5,4 @@ export type ThemeBuilderProps = {
5
5
  };
6
6
  declare const ThemeBuilder: FC<ThemeBuilderProps>;
7
7
  export default ThemeBuilder;
8
+ //# sourceMappingURL=ThemeBuilder.d.ts.map
@@ -6,3 +6,4 @@ export declare const color: import('@dineug/r-html').CSSTemplateLiterals;
6
6
  export declare const lightDarkButtonGroup: import('@dineug/r-html').CSSTemplateLiterals;
7
7
  export declare const lightDarkButton: import('@dineug/r-html').CSSTemplateLiterals;
8
8
  export declare const vertical: import('@dineug/r-html').CSSTemplateLiterals;
9
+ //# sourceMappingURL=ThemeBuilder.styles.d.ts.map
@@ -0,0 +1,10 @@
1
+ import { Ctx } from '../internal-types';
2
+ import { Theme } from '../themes/tokens';
3
+ /**
4
+ * The scene's colours as values. A stylesheet resolved a custom property per
5
+ * node and konva resolves none, so the whole palette reaches every scene node
6
+ * through one context and a theme change is one provider set away from a repaint.
7
+ */
8
+ export declare const themeContext: import('@dineug/r-html').Context<Theme>;
9
+ export declare const useThemeContext: (ctx: Ctx) => import('@dineug/r-html').Ref<Theme>;
10
+ //# sourceMappingURL=themeContext.d.ts.map
@@ -2,3 +2,4 @@ import { FC } from '@dineug/r-html';
2
2
  export type ToastContainerProps = {};
3
3
  declare const ToastContainer: FC<ToastContainerProps>;
4
4
  export default ToastContainer;
5
+ //# sourceMappingURL=ToastContainer.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare const root: import('@dineug/r-html').CSSTemplateLiterals;
2
+ //# sourceMappingURL=ToastContainer.styles.d.ts.map
@@ -0,0 +1,12 @@
1
+ import { DOMTemplateLiterals } from '@dineug/r-html';
2
+ import { Emitter } from '../../utils/emitter';
3
+ /**
4
+ * Says that something is running, but only when it runs long enough to be
5
+ * worth a message. Resolves once nothing is left on screen for it, which lets
6
+ * a caller report the outcome after this toast rather than on top of it.
7
+ *
8
+ * @example
9
+ * await openToastWhileRunning(emitter, running, html`<${Toast} description=${'Working'} />`);
10
+ */
11
+ export declare function openToastWhileRunning(emitter: Emitter, running: Promise<unknown>, message: DOMTemplateLiterals): Promise<void>;
12
+ //# sourceMappingURL=openToastWhileRunning.d.ts.map
@@ -5,3 +5,4 @@ export type ToolbarProps = {
5
5
  };
6
6
  declare const Toolbar: FC<ToolbarProps>;
7
7
  export default Toolbar;
8
+ //# sourceMappingURL=Toolbar.d.ts.map
@@ -2,3 +2,4 @@ export declare const root: import('@dineug/r-html').CSSTemplateLiterals;
2
2
  export declare const vertical: import('@dineug/r-html').CSSTemplateLiterals;
3
3
  export declare const menu: import('@dineug/r-html').CSSTemplateLiterals;
4
4
  export declare const tableCount: import('@dineug/r-html').CSSTemplateLiterals;
5
+ //# sourceMappingURL=Toolbar.styles.d.ts.map
@@ -1,4 +1,11 @@
1
1
  import { FC } from '@dineug/r-html';
2
+ import { Visualization } from './createVisualization';
2
3
  export type VisualizationProps = {};
4
+ /**
5
+ * The dom shell around the graph: the Stage container, the wheel that zooms
6
+ * it, and the table preview that opens over a hovered table dot. The layout,
7
+ * the view and the hover live in one observable here and never reach the store.
8
+ */
3
9
  declare const Visualization: FC<VisualizationProps>;
4
10
  export default Visualization;
11
+ //# sourceMappingURL=Visualization.d.ts.map
@@ -1 +1,8 @@
1
+ /**
2
+ * Overflow is hidden rather than scrolled: the graph pans and zooms on its own
3
+ * Stage, so nothing here is ever larger than the box it sits in.
4
+ */
1
5
  export declare const root: import('@dineug/r-html').CSSTemplateLiterals;
6
+ /** The Stage container, viewport sized, which konva fills with its own canvas. */
7
+ export declare const stage: import('@dineug/r-html').CSSTemplateLiterals;
8
+ //# sourceMappingURL=Visualization.styles.d.ts.map
@@ -0,0 +1,22 @@
1
+ import { FC } from '@dineug/r-html';
2
+ import { Stage } from 'konva/lib/Stage';
3
+ import { Visualization } from './createVisualization';
4
+ import { VisualizationState } from './visualizationView';
5
+ export type VisualizationSceneProps = {
6
+ graph: Visualization;
7
+ state: VisualizationState;
8
+ };
9
+ /**
10
+ * The graph on two layers: a stage sized box that takes a pan, and the scene
11
+ * itself under the view transform, links below dots below labels. Only a table
12
+ * carries a name, and a hovered table lights its neighbourhood over the rest.
13
+ */
14
+ declare const VisualizationScene: FC<VisualizationSceneProps>;
15
+ /**
16
+ * Renders the graph as the root of its Stage. Named in lower case on purpose:
17
+ * an all-upper-case export list makes r-html's refresh treat this as a
18
+ * component module and self-accept it, which kills hmr for the whole scene.
19
+ */
20
+ export declare function renderVisualizationScene(stage: Stage, props: VisualizationSceneProps): void;
21
+ export default VisualizationScene;
22
+ //# sourceMappingURL=VisualizationScene.d.ts.map
@@ -1,9 +1,69 @@
1
+ import { Simulation } from 'd3-force';
1
2
  import { RootState } from '../../engine/state';
2
- type Props = {
3
- onDragStart: () => void;
4
- onDragEnd: () => void;
5
- onStartPreview: (event: MouseEvent, tableId: string | null, columnId: string | null) => void;
6
- onEndPreview: () => void;
7
- };
8
- export declare function createVisualization(state: RootState, props: Props): import('d3-selection').Selection<SVGSVGElement, undefined, null, undefined>;
9
- export {};
3
+ import { ValuesType } from '../../internal-types';
4
+ export declare const Group: {
5
+ readonly table: "table";
6
+ readonly column: "column";
7
+ };
8
+ export type Group = ValuesType<typeof Group>;
9
+ /**
10
+ * One dot of the graph. d3 owns the position fields from the first step on,
11
+ * and a pinned node is one whose fixed pair is set, which is how a drag holds
12
+ * it against the forces the way the svg drag did.
13
+ */
14
+ export type VisualizationNode = {
15
+ id: string;
16
+ group: Group;
17
+ name: string;
18
+ /** The table a column hangs off; a table node has none. */
19
+ tableId: string | null;
20
+ x: number;
21
+ y: number;
22
+ fx: number | null;
23
+ fy: number | null;
24
+ };
25
+ export declare const LinkKind: {
26
+ readonly column: "column";
27
+ readonly relationship: "relationship";
28
+ };
29
+ export type LinkKind = ValuesType<typeof LinkKind>;
30
+ /**
31
+ * One line of the graph. Each end is an id when the link is built and the node
32
+ * it named once the link force has resolved it, which createVisualization does
33
+ * before it returns; linkEnds is the read that takes that for granted.
34
+ */
35
+ export type VisualizationLink = {
36
+ id: string;
37
+ kind: LinkKind;
38
+ source: VisualizationNode | string;
39
+ target: VisualizationNode | string;
40
+ };
41
+ export type VisualizationGraph = {
42
+ nodes: VisualizationNode[];
43
+ links: VisualizationLink[];
44
+ };
45
+ export type Visualization = VisualizationGraph & {
46
+ simulation: Simulation<VisualizationNode, VisualizationLink>;
47
+ };
48
+ /**
49
+ * The document as a graph: a node per table and per column, a link from each
50
+ * column to its table and one per pair of tables a relationship joins. The
51
+ * pair is ordered, so the same two tables joined both ways draw two lines.
52
+ */
53
+ export declare function convertVisualization({ doc: { tableIds, relationshipIds }, collections, }: RootState): VisualizationGraph;
54
+ /**
55
+ * Both ends of a link as nodes. The link force rewrote each id to its node when
56
+ * createVisualization installed it, and no link reaches a scene before that.
57
+ */
58
+ export declare function linkEnds(link: VisualizationLink): [VisualizationNode, VisualizationNode];
59
+ /**
60
+ * The graph with the force layout running over it. The forces are the ones the
61
+ * svg graph ran, links holding their length, nodes repelling and both axes
62
+ * pulling toward the origin, which the view puts at the middle of the stage.
63
+ *
64
+ * @example
65
+ * const { nodes, links, simulation } = createVisualization(store.state);
66
+ * simulation.on('tick', redraw);
67
+ */
68
+ export declare function createVisualization(state: RootState): Visualization;
69
+ //# sourceMappingURL=createVisualization.d.ts.map
@@ -0,0 +1,24 @@
1
+ import { FC } from '@dineug/r-html';
2
+ import { Visualization, VisualizationNode } from '../createVisualization';
3
+ import { VisualizationState } from '../visualizationView';
4
+ export type GraphNodeProps = {
5
+ node: VisualizationNode;
6
+ /**
7
+ * The node's place, handed down rather than read off the node, so a step of
8
+ * the simulation the scene saw reaches this dot as a changed prop.
9
+ */
10
+ x: number;
11
+ y: number;
12
+ /** Outside the neighbourhood of the hovered table, which the scene decides. */
13
+ dimmed: boolean;
14
+ graph: Visualization;
15
+ state: VisualizationState;
16
+ };
17
+ /**
18
+ * One dot, owning its own hover and drag. A hovered table opens its preview
19
+ * and lights its neighbourhood, a hovered column only wears a ring, and a
20
+ * press pins the node under the pointer and reheats the layout around it.
21
+ */
22
+ declare const GraphNode: FC<GraphNodeProps>;
23
+ export default GraphNode;
24
+ //# sourceMappingURL=GraphNode.d.ts.map
@@ -2,9 +2,9 @@ import { FC } from '@dineug/r-html';
2
2
  import { Table } from '../../../internal-types';
3
3
  export type TableProps = {
4
4
  table: Table;
5
- columnId: string | null;
6
5
  x: number;
7
6
  y: number;
8
7
  };
9
8
  declare const Table: FC<TableProps>;
10
9
  export default Table;
10
+ //# sourceMappingURL=Table.d.ts.map
@@ -2,7 +2,6 @@ import { FC } from '@dineug/r-html';
2
2
  import { Column } from '../../../../internal-types';
3
3
  export type ColumnProps = {
4
4
  column: Column;
5
- selected: boolean;
6
5
  widthName: number;
7
6
  widthDataType: number;
8
7
  widthDefault: number;
@@ -10,3 +9,4 @@ export type ColumnProps = {
10
9
  };
11
10
  declare const Column: FC<ColumnProps>;
12
11
  export default Column;
12
+ //# sourceMappingURL=Column.d.ts.map
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=Column.styles.d.ts.map
@@ -0,0 +1,91 @@
1
+ import { Point } from '../../internal-types';
2
+ import { Group, VisualizationLink, VisualizationNode } from './createVisualization';
3
+ /** The most of a table name a label shows before it is cut. */
4
+ export declare const NAME_MAX_LENGTH = 15;
5
+ /**
6
+ * A name as its label shows it. The cut counts code points rather than UTF-16
7
+ * units, so a name ending in an emoji or a CJK glyph is never split inside one.
8
+ *
9
+ * @example
10
+ * truncateName('a_very_long_table_name'); // 'a_very_long_tab…'
11
+ */
12
+ export declare function truncateName(name: string): string;
13
+ /** The text a table's label draws: its name cut to length, or a placeholder. */
14
+ export declare function labelOf(node: Pick<VisualizationNode, 'name'>): string;
15
+ /** Whether a table has a name of its own, which is what its label is painted by. */
16
+ export declare const hasName: (node: Pick<VisualizationNode, "name">) => boolean;
17
+ export declare const TABLE_RADIUS = 8;
18
+ export declare const COLUMN_RADIUS = 4;
19
+ /** A table draws larger than the columns that hang off it. */
20
+ export declare const nodeRadius: (group: Group) => number;
21
+ /**
22
+ * What a dot, a line or a name fades to while it sits outside the lit
23
+ * neighbourhood of a hovered table, so that neighbourhood reads on its own.
24
+ */
25
+ export declare const DIM_OPACITY = 0.2;
26
+ /** The ids a hovered table lights up: nodes on one side, links on the other. */
27
+ export type Highlight = {
28
+ nodeIds: Set<string>;
29
+ linkIds: Set<string>;
30
+ };
31
+ /**
32
+ * What a hovered table lights: itself, every link at it and whatever sits at
33
+ * the other end of each, which is its own columns and the tables its
34
+ * relationships join either way round. The rest is what the scene fades.
35
+ *
36
+ * @example
37
+ * const { nodeIds, linkIds } = highlightOf(graph.links, 't1');
38
+ */
39
+ export declare function highlightOf(links: VisualizationLink[], tableId: string): Highlight;
40
+ /**
41
+ * The scale a table name is fully gone below and the one it is whole from,
42
+ * fading between the two: the graph reads as shapes from afar and as names at
43
+ * rest, as Obsidian's graph does. A column carries no name at any scale.
44
+ */
45
+ export declare const LABEL_FADE_START = 0.5;
46
+ export declare const LABEL_FADE_END = 1;
47
+ export declare function labelOpacity(scale: number): number;
48
+ export declare const ZOOM_MIN = 0.1;
49
+ export declare const ZOOM_MAX = 4;
50
+ /** Where the scene's origin sits on the stage, and how large a scene unit is. */
51
+ export type VisualizationView = {
52
+ x: number;
53
+ y: number;
54
+ scale: number;
55
+ };
56
+ /** The origin at the middle of the stage, where the forces gather the graph. */
57
+ export declare function createView(width: number, height: number): VisualizationView;
58
+ /**
59
+ * The view after a zoom about a stage point. The scene point under that point
60
+ * is held still, so whatever the pointer is over grows or shrinks around it.
61
+ *
62
+ * @example
63
+ * const next = zoomAt(view, { x: event.offsetX, y: event.offsetY }, 1.2);
64
+ */
65
+ export declare function zoomAt(view: VisualizationView, point: Point, factor: number): VisualizationView;
66
+ /**
67
+ * How much a wheel event scales the view, above one for a wheel rolled away
68
+ * from the user. Exponential in the travel, so a notch each way cancels out.
69
+ */
70
+ export declare function wheelZoomFactor(deltaY: number, deltaMode?: number): number;
71
+ /**
72
+ * Everything the panel keeps between renders, and none of it in the store: the
73
+ * view is this client's alone and a force layout is not part of the document.
74
+ */
75
+ export type VisualizationState = VisualizationView & {
76
+ /** Bumped by every simulation step, which is what redraws the moved graph. */
77
+ tick: number;
78
+ /** A node or the view is being dragged, which is when no preview opens. */
79
+ drag: boolean;
80
+ /** The dot under the pointer, table or column, the one that wears the ring. */
81
+ hoveredId: string | null;
82
+ /**
83
+ * The hovered dot when it is a table, and null over a column: the preview
84
+ * opens for it, and the graph fades around its neighbourhood.
85
+ */
86
+ hoveredTableId: string | null;
87
+ previewX: number;
88
+ previewY: number;
89
+ };
90
+ export declare function createVisualizationState(width: number, height: number): VisualizationState;
91
+ //# sourceMappingURL=visualizationView.d.ts.map
@@ -1,7 +1,8 @@
1
1
  /**
2
- * Shiki grammar names. Spelled out rather than left as `string`, which is what
3
- * the annotation used to widen them to — `CodeBlock`'s `lang` is a union, and
2
+ * Shiki grammar names. Spelled out rather than left as string, which is what
3
+ * the annotation used to widen them to — CodeBlock's lang is a union, and
4
4
  * widening here meant nothing checked that these were members of it.
5
5
  */
6
6
  export type Lang = 'csharp' | 'go' | 'graphql' | 'java' | 'kotlin' | 'python' | 'scala' | 'sql' | 'typescript';
7
7
  export declare const LanguageToLangMap: Record<number, Lang>;
8
+ //# sourceMappingURL=language.d.ts.map
@@ -33,21 +33,15 @@ export declare const MINIMAP_MARGIN = 20;
33
33
  export declare const TOOLBAR_HEIGHT = 30;
34
34
  export declare const DIFF_TREE_WIDTH = 200;
35
35
  /**
36
- * How thick a relationship connector is drawn.
37
- *
38
- * Down from 3: the thick line ate the gap between neighbouring tables and made a
39
- * busy diagram read as a mass of strokes rather than as connections. A whole
40
- * number rather than 1.5, so the stroke lands on pixel boundaries instead of
41
- * being spread across two rows at partial alpha on a 1x display.
36
+ * How thick a relationship connector is drawn. A whole number rather than a
37
+ * fraction, so the stroke lands on pixel boundaries instead of spreading across
38
+ * two rows at partial alpha on a 1x display.
42
39
  */
43
40
  export declare const RELATIONSHIP_STROKE_WIDTH = 2;
44
41
  /**
45
- * The width of the invisible band that catches the pointer for a connector.
46
- *
47
- * Hit-testing an SVG path follows its painted stroke, so halving the stroke
48
- * would otherwise halve the target the user has to hit to hover a relationship
49
- * or open its context menu. `NUDGE_GAP` is 10, so a band this wide stays clear
50
- * of the neighbouring corridor except where the router had to fall back to a
51
- * narrower gap.
42
+ * The invisible band that catches the pointer for a connector, because
43
+ * hit-testing follows the painted stroke. Narrower than NUDGE_GAP, so it stays
44
+ * clear of the neighbouring corridor at the router's usual separation.
52
45
  */
53
46
  export declare const RELATIONSHIP_HIT_STROKE_WIDTH = 8;
47
+ //# sourceMappingURL=layout.d.ts.map
@@ -8,3 +8,4 @@ export declare const Open: {
8
8
  readonly timeTravel: "timeTravel";
9
9
  };
10
10
  export type Open = ValuesType<typeof Open>;
11
+ //# sourceMappingURL=open.d.ts.map
@@ -109,7 +109,8 @@ export declare const SaveSettingType: {
109
109
  };
110
110
  export declare const CANVAS_SIZE_MAX: 20000;
111
111
  export declare const CANVAS_SIZE_MIN: 2000;
112
- export declare const CANVAS_ZOOM_MAX: 1;
112
+ export declare const CANVAS_ZOOM_MAX: 1.5;
113
113
  export declare const CANVAS_ZOOM_MIN: 0.1;
114
114
  export declare const BracketTypeMap: Record<number, string>;
115
115
  export declare const ColumnTypeToName: Record<number, string>;
116
+ //# sourceMappingURL=schema.d.ts.map
@@ -3,3 +3,4 @@ import { DataTypeHint } from '.';
3
3
  * https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-datatypes
4
4
  */
5
5
  export declare const DatabricksTypes: DataTypeHint[];
6
+ //# sourceMappingURL=Databricks.d.ts.map
@@ -3,3 +3,4 @@ import { DataTypeHint } from '.';
3
3
  * https://learn.microsoft.com/en-us/sql/t-sql/data-types/data-types-transact-sql
4
4
  */
5
5
  export declare const MSSQLTypes: DataTypeHint[];
6
+ //# sourceMappingURL=MSSQL.d.ts.map
@@ -3,3 +3,4 @@ import { DataTypeHint } from '.';
3
3
  * https://mariadb.com/kb/en/data-types/
4
4
  */
5
5
  export declare const MariaDBTypes: DataTypeHint[];
6
+ //# sourceMappingURL=MariaDB.d.ts.map
@@ -3,3 +3,4 @@ import { DataTypeHint } from '.';
3
3
  * https://dev.mysql.com/doc/refman/8.4/en/data-types.html
4
4
  */
5
5
  export declare const MySQLTypes: DataTypeHint[];
6
+ //# sourceMappingURL=MySQL.d.ts.map
@@ -3,3 +3,4 @@ import { DataTypeHint } from '.';
3
3
  * https://docs.oracle.com/en/database/oracle/oracle-database/23/sqlrf/Data-Types.html
4
4
  */
5
5
  export declare const OracleTypes: DataTypeHint[];
6
+ //# sourceMappingURL=Oracle.d.ts.map
@@ -3,3 +3,4 @@ import { DataTypeHint } from '.';
3
3
  * https://www.postgresql.org/docs/current/datatype.html
4
4
  */
5
5
  export declare const PostgreSQLTypes: DataTypeHint[];
6
+ //# sourceMappingURL=PostgreSQL.d.ts.map
@@ -3,3 +3,4 @@ import { DataTypeHint } from '.';
3
3
  * https://www.sqlite.org/datatype3.html
4
4
  */
5
5
  export declare const SQLiteTypes: DataTypeHint[];
6
+ //# sourceMappingURL=SQLite.d.ts.map
@@ -3,3 +3,4 @@ import { DataTypeHint } from '.';
3
3
  * https://docs.snowflake.com/en/sql-reference-data-types
4
4
  */
5
5
  export declare const SnowflakeTypes: DataTypeHint[];
6
+ //# sourceMappingURL=Snowflake.d.ts.map
@@ -23,3 +23,4 @@ export type DatabaseHint = {
23
23
  dataTypeHints: DataTypeHint[];
24
24
  };
25
25
  export declare const DatabaseHintMap: Record<number, Array<DataTypeHint>>;
26
+ //# sourceMappingURL=index.d.ts.map
@@ -12,3 +12,4 @@ export declare const DatabaseVendor: {
12
12
  export type DatabaseVendor = ValuesType<typeof DatabaseVendor>;
13
13
  export declare const DatabaseVendorList: ReadonlyArray<string>;
14
14
  export declare const DatabaseVendorToDatabase: Record<DatabaseVendor, number>;
15
+ //# sourceMappingURL=database.d.ts.map
@@ -36,3 +36,4 @@ export declare const StreamRegroupColorActionTypes: ReadonlyArray<ActionType>;
36
36
  export declare const StreamRegroupScrollActionTypes: ReadonlyArray<ActionType>;
37
37
  export declare const StreamActionTypes: ReadonlyArray<ActionType>;
38
38
  export declare const HistoryActionTypes: ReadonlyArray<ActionType>;
39
+ //# sourceMappingURL=actions.d.ts.map
@@ -4,3 +4,4 @@ export declare class Clock {
4
4
  readonly getNextVersion: () => number;
5
5
  readonly merge: (remoteVersion?: number) => this;
6
6
  }
7
+ //# sourceMappingURL=clock.d.ts.map
@@ -5,3 +5,4 @@ export type EngineContext = {
5
5
  };
6
6
  export type InjectEngineContext = Omit<EngineContext, 'clock'>;
7
7
  export declare function createEngineContext(ctx: InjectEngineContext): EngineContext;
8
+ //# sourceMappingURL=context.d.ts.map
@@ -2,3 +2,4 @@ import { AnyAction, GeneratorActionCreator } from '@dineug/r-html';
2
2
  import { EngineContext } from './context';
3
3
  import { RootState } from './state';
4
4
  export type GeneratorAction = GeneratorActionCreator<AnyAction, RootState, EngineContext>;
5
+ //# sourceMappingURL=generator.actions.d.ts.map
@@ -7,3 +7,4 @@ export type PushStreamHistory = (undoActions: AnyAction[], redoActions: AnyActio
7
7
  export declare const pushUndoHistoryMap: Record<string, PushUndoHistory>;
8
8
  export declare const pushStreamHistoryMap: Record<string, PushStreamHistory>;
9
9
  export declare const pushHistory: (store: Store, history: History) => (actions: AnyAction[]) => void;
10
+ //# sourceMappingURL=history.actions.d.ts.map
@@ -34,3 +34,4 @@ type HistoryState = {
34
34
  };
35
35
  export declare function createHistory({ notify, dispatch, getNextVersion }: HistoryOptions, initialState?: HistoryState): History;
36
36
  export {};
37
+ //# sourceMappingURL=history.d.ts.map
@@ -6,3 +6,4 @@ type ActionCreator = ReturnType<typeof createAction<any>>;
6
6
  export type HookEffect = (action$: Observable<AnyAction>, getState: () => RootState, ctx: EngineContext) => Subscription;
7
7
  export type Hook = [Array<ActionCreator | string>, HookEffect];
8
8
  export {};
9
+ //# sourceMappingURL=hooks.d.ts.map
@@ -1 +1,2 @@
1
1
  export { createReplicationStore, type ReplicationStore, } from './replication-store';
2
+ //# sourceMappingURL=index.d.ts.map