@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
@@ -94,18 +94,9 @@ export declare const isDirection: (value: string) => boolean;
94
94
  export declare const PATH_HEIGHT = 30;
95
95
  export declare const PATH_END_HEIGHT: number;
96
96
  /**
97
- * The cardinality decoration, measured outward from the anchor.
98
- *
99
- * The four are one shape and cannot be set independently: the second tick and
100
- * the ring share a centre at `LINE_SIZE + LINE_HEIGHT`, the guide line starts
101
- * where the longest stroke ends at `LINE_HEIGHT * 2 + 3`, and the ring has to
102
- * clear the first tick behind it and the guide line in front of it, which puts
103
- * its radius between those two.
104
- *
105
- * Scaled to 0.7 of what they were, so a decoration reaches 25px out rather than
106
- * 35px. `RELATIONSHIP_STROKE_WIDTH` thinned the connector; leaving the notation
107
- * at its old size would have made the crow's foot the heaviest thing on the
108
- * canvas.
97
+ * The cardinality decoration, measured outward from the anchor. The four are one
98
+ * shape and cannot be set independently: the ring shares a centre with the
99
+ * second tick and has to clear both the first tick and the guide line.
109
100
  */
110
101
  export declare const LINE_SIZE = 7;
111
102
  export declare const LINE_HEIGHT = 11;
@@ -114,50 +105,34 @@ export declare const CIRCLE_RADIUS = 6;
114
105
  export declare const PATH_LINE_HEIGHT: number;
115
106
  /**
116
107
  * How far apart the corridors of two relationships leaving the same table side
117
- * are placed. Without this every path on a side turns at the same `x` (or `y`),
118
- * so their first segments run down one another no matter how far apart the
119
- * anchors are spread.
108
+ * sit. Without it every path on a side turns at the same coordinate and their
109
+ * first segments run down one another however far the anchors are spread.
120
110
  */
121
111
  export declare const STUB_STEP = 12;
122
112
  /**
123
- * Corridors repeat every fourth slot. Growing the stub without limit would walk
124
- * a busy side's paths ever further from the table; wrapping keeps the longest
125
- * stub at `PATH_END_HEIGHT + 3 * STUB_STEP` while leaving four slots — at least
126
- * four anchor pitches apart — between any two that share a corridor.
113
+ * Corridors repeat every fourth slot. An unbounded stub walks a busy side's
114
+ * paths ever further from the table; wrapping caps the longest one and still
115
+ * leaves four slots between any two that share a corridor.
127
116
  */
128
117
  export declare const STUB_CYCLE = 4;
129
118
  /**
130
- * The shortest a stub may be clamped to.
131
- *
132
- * It has to clear `PATH_LINE_HEIGHT`: the cardinality decorations reach that far
133
- * out from the anchor and the guide line is drawn from there to the stub, so a
134
- * shorter stub draws that line backwards. It is not derived from it. 36 is where
135
- * the routing was measured, and letting it follow the decorations down to 26
136
- * when they shrank took the medium corpus from 168px of collinear overlap to
137
- * 484px — two tables facing each other closer than `2 * MIN_STUB` turn in
138
- * earlier, and the routing bench found them sharing a corridor for 316px.
119
+ * The shortest a stub may be clamped to. It has to clear PATH_LINE_HEIGHT or the
120
+ * guide line is drawn backwards, but it is not derived from it: this is where
121
+ * the routing was measured, and following the decorations down cost overlap.
139
122
  */
140
123
  export declare const MIN_STUB = 36;
141
124
  /**
142
- * The widest gap allowed between two anchors on the same table side.
143
- *
144
- * Anchors used to be spread over the whole edge, so two relationships on a tall
145
- * table splayed hundreds of pixels apart and converged again. Capping the pitch
146
- * keeps a side's anchors together as a group; the side is only filled when it
147
- * genuinely has that many relationships.
125
+ * The widest gap allowed between two anchors on the same table side. Capping the
126
+ * pitch keeps a side's anchors together as a group, so a tall table's edge is
127
+ * only filled when it genuinely has that many relationships.
148
128
  */
149
129
  export declare const ANCHOR_MAX_PITCH = 120;
150
130
  /** Keeps the outermost anchor of a side clear of the table's corners. */
151
131
  export declare const ANCHOR_EDGE_INSET = 12;
152
132
  /**
153
- * How far back from a corner a connector turns, when the corner is drawn as a
154
- * 45-degree cut rather than a right angle.
155
- *
156
- * Each cut is clamped to half of the shorter run it touches, so this is a ceiling
157
- * rather than a length: a short run keeps its right angle instead of losing the
158
- * whole of itself to two cuts. Two connectors turning the same way in
159
- * neighbouring lanes stay `NUDGE_GAP` apart through the corner, so a bundle bends
160
- * as a set of concentric cuts rather than converging on one.
133
+ * How far back from a corner a connector turns when the corner is cut to 45
134
+ * degrees. A ceiling rather than a length: each cut is clamped to half the
135
+ * shorter run it touches, so a short run keeps its right angle.
161
136
  */
162
137
  export declare const ROUTE_CHAMFER = 8;
163
138
  export declare function setStubSlots(relationship: Relationship, slots: readonly [number, number]): void;
@@ -165,3 +140,34 @@ export declare function setStubSlots(relationship: Relationship, slots: readonly
165
140
  export declare function getStubSlots(relationship: Relationship): readonly [number, number];
166
141
  export declare function setRoute(relationship: Relationship, points: Point[]): void;
167
142
  export declare function getRoute(relationship: Relationship): Point[] | undefined;
143
+ /**
144
+ * How far a connector reaches past its anchor, whichever decoration is furthest
145
+ * out. The ring shares a centre with the second tick, so its outer edge and the
146
+ * start of the guide line are the two candidates.
147
+ */
148
+ export declare const ROUTE_BBOX_REACH: number;
149
+ /**
150
+ * The longest stub a slot can ask for. It bounds where the turning points of an
151
+ * unrouted relationship can be, which is the only thing the route itself would
152
+ * have told us.
153
+ */
154
+ export declare const MAX_STUB: number;
155
+ export type BBox = {
156
+ x: number;
157
+ y: number;
158
+ width: number;
159
+ height: number;
160
+ };
161
+ /**
162
+ * Opens a sort, retiring every route box the previous one wrote. Identity
163
+ * outlives a sort, so the stamp a route carries is what separates a box for the
164
+ * current routes from one the next sort has already replaced.
165
+ */
166
+ export declare function nextSortEpoch(): void;
167
+ /**
168
+ * Everywhere a relationship can be drawn, for a culling test that must not lose
169
+ * a connector whose anchors are on screen and whose route is not. Without a
170
+ * route from this sort the stub ends are unknown, so the padding carries them.
171
+ */
172
+ export declare function getRouteBBox(relationship: Relationship, strokeWidth?: number): BBox;
173
+ //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,5 @@
1
1
  import { Point } from '../../internal-types';
2
+ import { NudgeMemo } from './incremental';
2
3
  import { Obstacles } from './route';
3
- export declare function nudgeRoutes(routes: Map<string, Point[]>, obstacles: Obstacles, endpoints: Map<string, [string, string]>): void;
4
+ export declare function nudgeRoutes(routes: Map<string, Point[]>, obstacles: Obstacles, endpoints: Map<string, [string, string]>, memo?: NudgeMemo): void;
5
+ //# sourceMappingURL=nudge.d.ts.map
@@ -2,10 +2,9 @@ import { Point, Relationship } from '../../internal-types';
2
2
  import { RelationshipPath } from '.';
3
3
  export declare function getRelationshipPath(relationship: Relationship): RelationshipPath;
4
4
  /**
5
- * The routing polyline as one `d`, so a connector is a single element whatever
6
- * the router and the corner cuts made of it.
7
- *
8
- * The segments are contiguous by construction — they come from a polyline — so
9
- * each one contributes its far end and nothing else.
5
+ * The routing polyline as one d, so a connector is a single element whatever the
6
+ * router and the corner cuts made of it. The segments are contiguous by
7
+ * construction, so each contributes its far end and nothing else.
10
8
  */
11
9
  export declare function toPathD(segments: Array<[Point, Point]>): string;
10
+ //# sourceMappingURL=pathFinding.d.ts.map
@@ -15,18 +15,14 @@ export declare function collectObstacles(state: RootState): Obstacles;
15
15
  /** Liang–Barsky, with no divisions until a slab actually clips. */
16
16
  export declare function segmentHitsBox(ax: number, ay: number, bx: number, by: number, left: number, top: number, right: number, bottom: number): boolean;
17
17
  /**
18
- * How many tables a polyline passes through, ignoring the two it connects.
19
- *
20
- * This is the hot function of the whole router: every candidate is scored with
21
- * it, and the nudge pass calls it twice per lane it tries. The polyline's own
22
- * bounding box is computed once and used to skip tables outright — a connector
23
- * spans a small part of the canvas, so most tables fail it. Every segment's box
24
- * sits inside the polyline's, so a table the polyline's box misses is a table
25
- * every segment's cheap reject would have missed too; the count is unchanged.
18
+ * How many tables a polyline passes through, ignoring the two it connects. The
19
+ * hot function of the router, so the polyline's own box is computed once to skip
20
+ * tables outright; every segment's box sits inside it, so the count is the same.
26
21
  */
27
22
  export declare function countBlocked(points: Point[], obstacles: Obstacles, skipA: string, skipB: string): number;
28
23
  /**
29
- * The cheapest orthogonal polyline from `m` to `l`, or a two-bend fallback when
24
+ * The cheapest orthogonal polyline from m to l, or a two-bend fallback when
30
25
  * nothing is feasible — a connector always has to be drawn.
31
26
  */
32
27
  export declare function routeOrthogonal(m: Point, mDirection: number, l: Point, lDirection: number, obstacles: Obstacles, skipA: string, skipB: string): Point[];
28
+ //# sourceMappingURL=route.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import { RootState } from '../../engine/state';
2
2
  export declare function relationshipSort(state: RootState): void;
3
+ //# sourceMappingURL=sort.d.ts.map
@@ -1,28 +1,17 @@
1
1
  import { Point, Relationship } from '../../internal-types';
2
2
  /**
3
- * Where a connector turns away from its anchor.
4
- *
5
- * Shared because two callers need the same answer: `pathFinding` draws from it,
6
- * and `relationshipSort` routes from it. Deriving it twice would let the routed
7
- * polyline and the guide line drift apart by a slot's worth of stub.
8
- */
9
- /**
10
- * Slot zero keeps the historical `PATH_END_HEIGHT`, so a relationship that never
11
- * went through `relationshipSort` draws exactly as it did before.
3
+ * Slot zero keeps the historical PATH_END_HEIGHT, so a relationship that never
4
+ * went through relationshipSort draws exactly as it did before.
12
5
  */
13
6
  export declare function stubFor(slot: number): number;
14
7
  /**
15
8
  * The axis-aligned distance between two anchors that point at each other, or
16
- * `null` when they do not.
17
- *
18
- * Only this arrangement can collapse: with a stub on each side, a gap of twice
19
- * the stub puts both turning points on the same spot and the connector vanishes,
20
- * and a smaller gap inverts it so the path runs backwards through both tables.
21
- * Nothing stops two tables being that close — the editor allows them to overlap.
9
+ * null when they do not. Only this arrangement can collapse: a gap of twice the
10
+ * stub puts both turning points on one spot, and a smaller gap inverts the path.
22
11
  */
23
12
  export declare function facingGap(start: Relationship['start'], end: Relationship['end']): number | null;
24
13
  /**
25
- * Below roughly `2 * MIN_STUB` the two cardinality decorations already overlap
14
+ * Below roughly 2 * MIN_STUB the two cardinality decorations already overlap
26
15
  * each other, which no stub length can fix; the clamp stops short of making it
27
16
  * worse by drawing the guide line backwards.
28
17
  */
@@ -45,3 +34,4 @@ export declare function stubEnds(relationship: Relationship): StubEnds;
45
34
  * decorations and the routed polyline.
46
35
  */
47
36
  export declare const GUIDE_START: number;
37
+ //# sourceMappingURL=stub.d.ts.map
@@ -18,6 +18,7 @@ declare const InternalActionType: {
18
18
  readonly mouseTrackerEnd: "mouseTrackerEnd";
19
19
  readonly openDiffViewer: "openDiffViewer";
20
20
  readonly duplicateDragStart: "duplicateDragStart";
21
+ readonly dragSelectStart: "dragSelectStart";
21
22
  };
22
23
  type InternalActionType = ValuesType<typeof InternalActionType>;
23
24
  type InternalActionMap = {
@@ -55,6 +56,10 @@ type InternalActionMap = {
55
56
  tableIds: string[];
56
57
  memoIds: string[];
57
58
  } | void;
59
+ [InternalActionType.dragSelectStart]: {
60
+ x: number;
61
+ y: number;
62
+ };
58
63
  };
59
64
  type ListenerRecord = {
60
65
  [P in keyof InternalActionMap]: (action: Action<P, InternalActionMap>) => void;
@@ -181,4 +186,16 @@ export declare const duplicateDragStartAction: {
181
186
  toString(): string;
182
187
  type: string;
183
188
  };
189
+ export declare const dragSelectStartAction: {
190
+ (payload: {
191
+ x: number;
192
+ y: number;
193
+ }): AnyAction<{
194
+ x: number;
195
+ y: number;
196
+ }>;
197
+ toString(): string;
198
+ type: string;
199
+ };
184
200
  export {};
201
+ //# sourceMappingURL=emitter.d.ts.map
@@ -1,3 +1,4 @@
1
+ import { DocumentPngOptions } from '../../services/export-png';
1
2
  type ExportOptions = {
2
3
  fileName: string;
3
4
  };
@@ -5,5 +6,14 @@ type ExportFileCallback = (blob: Blob, options: ExportOptions) => void;
5
6
  export declare function setExportFileCallback(callback: ExportFileCallback | null): void;
6
7
  export declare function exportJSON(json: string, name?: string): void;
7
8
  export declare function exportSchemaSQL(sql: string, name?: string): void;
8
- export declare function exportPNG(root: HTMLElement, name?: string): void;
9
+ /**
10
+ * Writes the whole document out as an image, at the zoom the author is reading
11
+ * it at. The scene is rendered again off screen rather than captured, so the
12
+ * file holds the whole document however far it was scrolled away from.
13
+ *
14
+ * @example
15
+ * exportPNG({ doc: toJson(store.state), theme, toWidth, zoomLevel }, databaseName);
16
+ */
17
+ export declare function exportPNG(options: DocumentPngOptions, name?: string): Promise<void>;
9
18
  export {};
19
+ //# sourceMappingURL=exportFile.d.ts.map
@@ -13,3 +13,4 @@ export declare function importDBML({ store, emitter }: AppContext): void;
13
13
  export declare function importAML({ store, emitter }: AppContext): void;
14
14
  export declare function importDiffJSON({ emitter }: AppContext): void;
15
15
  export {};
16
+ //# sourceMappingURL=importFile.d.ts.map
@@ -8,3 +8,4 @@ export declare class FlipAnimation {
8
8
  snapshot(): void;
9
9
  play(): void;
10
10
  }
11
+ //# sourceMappingURL=flipAnimation.d.ts.map
@@ -2,6 +2,7 @@ import { FocusTable, FocusType, SharedFocus } from '../engine/modules/editor/sta
2
2
  export declare function isFocus(focusTable: Pick<FocusTable, 'tableId' | 'columnId' | 'focusType'> | null, focusType: FocusType, tableId: string, columnId?: string | null): boolean;
3
3
  export declare const isSelectColumn: (focusTable: FocusTable | null, tableId: string, columnId: string) => boolean;
4
4
  export declare function isEdit(focusTable: FocusTable | null, focusType: FocusType, tableId: string, columnId?: string | null): boolean;
5
- export declare function lastCursorFocus(input: HTMLInputElement): void;
5
+ export declare function lastCursorFocus(input: HTMLInputElement | HTMLTextAreaElement): void;
6
6
  export declare const toSharedFocus: (focusTable: FocusTable | null) => SharedFocus | null;
7
7
  export declare const toSharedFocusKey: (focus: SharedFocus | null) => string;
8
+ //# sourceMappingURL=focus.d.ts.map
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
2
2
  import { FormatTableOptions } from './utils';
3
3
  export declare function createCode(state: RootState): string;
4
4
  export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
5
+ //# sourceMappingURL=aml.d.ts.map
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
2
2
  import { FormatTableOptions } from './utils';
3
3
  export declare function createCode(state: RootState): string;
4
4
  export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
5
+ //# sourceMappingURL=csharp.d.ts.map
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
2
2
  import { FormatTableOptions } from './utils';
3
3
  export declare function createCode(state: RootState): string;
4
4
  export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
5
+ //# sourceMappingURL=dbml.d.ts.map
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
2
2
  import { FormatTableOptions } from './utils';
3
3
  export declare function createCode(state: RootState): string;
4
4
  export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
5
+ //# sourceMappingURL=drizzle.d.ts.map
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
2
2
  import { FormatTableOptions } from './utils';
3
3
  export declare function createCode(state: RootState): string;
4
4
  export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
5
+ //# sourceMappingURL=go.d.ts.map
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
2
2
  import { FormatTableOptions } from './utils';
3
3
  export declare function createCode(state: RootState): string;
4
4
  export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
5
+ //# sourceMappingURL=graphql.d.ts.map
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
2
2
  import { Table } from '../../internal-types';
3
3
  export declare function createGeneratorCode(state: RootState): string;
4
4
  export declare function createGeneratorCodeTable(state: RootState, table: Table): string;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
2
2
  import { FormatTableOptions } from './utils';
3
3
  export declare function createCode(state: RootState): string;
4
4
  export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
5
+ //# sourceMappingURL=java.d.ts.map
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
2
2
  import { FormatTableOptions } from './utils';
3
3
  export declare function createCode(state: RootState): string;
4
4
  export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
5
+ //# sourceMappingURL=jpa.d.ts.map
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
2
2
  import { FormatTableOptions } from './utils';
3
3
  export declare function createCode(state: RootState): string;
4
4
  export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
5
+ //# sourceMappingURL=kotlin.d.ts.map
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
2
2
  import { FormatTableOptions } from './utils';
3
3
  export declare function createCode(state: RootState): string;
4
4
  export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
5
+ //# sourceMappingURL=scala.d.ts.map
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
2
2
  import { FormatTableOptions } from './utils';
3
3
  export declare function createCode(state: RootState): string;
4
4
  export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
5
+ //# sourceMappingURL=sequelize.d.ts.map
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
2
2
  import { FormatTableOptions } from './utils';
3
3
  export declare function createCode(state: RootState): string;
4
4
  export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
5
+ //# sourceMappingURL=sqlalchemy.d.ts.map
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
2
2
  import { FormatTableOptions } from './utils';
3
3
  export declare function createCode(state: RootState): string;
4
4
  export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
5
+ //# sourceMappingURL=typeorm.d.ts.map
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
2
2
  import { FormatTableOptions } from './utils';
3
3
  export declare function createCode(state: RootState): string;
4
4
  export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
5
+ //# sourceMappingURL=typescript.d.ts.map
@@ -17,3 +17,4 @@ export declare const hasNRelationship: (value: number) => boolean;
17
17
  export declare function getPrimitiveType(dataType: string, database: number): PrimitiveType;
18
18
  export declare function getDataTypeHints(database: number): DataTypeHint[];
19
19
  export declare function getNameCase(name: string, nameCase: number): string;
20
+ //# sourceMappingURL=utils.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import { Emitter } from './emitter';
2
2
  export declare const globalEmitter: Emitter;
3
+ //# sourceMappingURL=globalEmitter.d.ts.map
@@ -1,16 +1,17 @@
1
- export declare const keyup$: import('rxjs').Observable<KeyboardEvent>;
2
- export declare const mousedown$: import('rxjs').Observable<MouseEvent>;
3
- export declare const mousemove$: import('rxjs').Observable<MouseEvent>;
4
- export declare const mouseup$: import('rxjs').Observable<MouseEvent>;
5
- export declare const touchstart$: import('rxjs').Observable<TouchEvent>;
6
- export declare const touchmove$: import('rxjs').Observable<TouchEvent>;
7
- export declare const touchend$: import('rxjs').Observable<TouchEvent>;
8
- export declare const animationFrames$: import('rxjs').Observable<{
1
+ import { Observable } from 'rxjs';
2
+ export declare const keyup$: Observable<KeyboardEvent>;
3
+ export declare const mousedown$: Observable<MouseEvent>;
4
+ export declare const mousemove$: Observable<MouseEvent>;
5
+ export declare const mouseup$: Observable<MouseEvent>;
6
+ export declare const touchstart$: Observable<TouchEvent>;
7
+ export declare const touchmove$: Observable<TouchEvent>;
8
+ export declare const touchend$: Observable<TouchEvent>;
9
+ export declare const animationFrames$: Observable<{
9
10
  timestamp: number;
10
11
  elapsed: number;
11
12
  }>;
12
- export declare const moveStart$: import('rxjs').Observable<MouseEvent | TouchEvent>;
13
- export declare const moveEnd$: import('rxjs').Observable<MouseEvent | TouchEvent>;
13
+ export declare const moveStart$: Observable<MouseEvent | TouchEvent>;
14
+ export declare const moveEnd$: Observable<MouseEvent | TouchEvent>;
14
15
  export type DragMove = {
15
16
  movementX: number;
16
17
  movementY: number;
@@ -18,7 +19,7 @@ export type DragMove = {
18
19
  y: number;
19
20
  event: MouseEvent | TouchEvent;
20
21
  };
21
- export declare const move$: import('rxjs').Observable<{
22
+ export declare const move$: Observable<{
22
23
  event: MouseEvent;
23
24
  movementX: number;
24
25
  movementY: number;
@@ -31,7 +32,7 @@ export declare const move$: import('rxjs').Observable<{
31
32
  x: number;
32
33
  y: number;
33
34
  }>;
34
- export declare const drag$: import('rxjs').Observable<{
35
+ export declare const drag$: Observable<{
35
36
  event: MouseEvent;
36
37
  movementX: number;
37
38
  movementY: number;
@@ -44,3 +45,4 @@ export declare const drag$: import('rxjs').Observable<{
44
45
  x: number;
45
46
  y: number;
46
47
  }>;
48
+ //# sourceMappingURL=globalEventObservable.d.ts.map
@@ -1 +1,10 @@
1
- export declare function getRelationshipIcon(relationshipType: number): string | null;
1
+ import { IconNode } from 'lucide';
2
+ /**
3
+ * An icon node as an svg data uri, which is what css cursor takes. The glyph
4
+ * is drawn twice, the halo under the ink, with the caps and joins Icon.tsx puts
5
+ * on its svg so the cursor matches the menu item.
6
+ */
7
+ export declare function toCursorImage(node: IconNode, isDarkMode: boolean): string;
8
+ /** The draw-relationship cursor for a relationship type, or null for a type with no glyph. */
9
+ export declare function getRelationshipIcon(relationshipType: number, isDarkMode: boolean): string | null;
10
+ //# sourceMappingURL=icon.d.ts.map
@@ -1,7 +1,8 @@
1
1
  import { EntityMeta, Memo, Point, Settings, Table } from '../internal-types';
2
2
  export declare const nextZIndex: (tables: Table[], memos: Memo[]) => number;
3
- export declare function nextPoint({ width, height, zoomLevel, scrollLeft, scrollTop }: Settings, tables: Table[], memos: Memo[]): Point;
3
+ export declare function nextPoint(settings: Settings, tables: Table[], memos: Memo[]): Point;
4
4
  export declare const toList: <T>(ids: string[], entities: Record<string, T>) => Array<T>;
5
5
  export declare function getDefaultEntityMeta(): EntityMeta;
6
6
  export declare function safeRange(a: number, b: number): number[];
7
7
  export declare function pascalCase(value?: string): string;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -36,3 +36,4 @@ export declare const forwardMoveStartEvent: {
36
36
  type: string;
37
37
  };
38
38
  export {};
39
+ //# sourceMappingURL=internalEvents.d.ts.map
@@ -26,11 +26,26 @@ export declare const KeyBindingName: {
26
26
  readonly tableProperties: "tableProperties";
27
27
  readonly zoomIn: "zoomIn";
28
28
  readonly zoomOut: "zoomOut";
29
+ readonly zoomReset: "zoomReset";
30
+ readonly handTool: "handTool";
31
+ readonly zenMode: "zenMode";
29
32
  };
30
33
  export type KeyBindingName = ValuesType<typeof KeyBindingName>;
31
- export declare const KeyBindingNameList: ("undo" | "redo" | "selectAllColumn" | "search" | "stop" | "edit" | "addMemo" | "addTable" | "removeTable" | "addColumn" | "removeColumn" | "primaryKey" | "selectAllTable" | "relationshipZeroOne" | "relationshipZeroN" | "relationshipOneOnly" | "relationshipOneN" | "tableProperties" | "zoomIn" | "zoomOut")[];
34
+ export declare const KeyBindingNameList: ("undo" | "redo" | "selectAllColumn" | "search" | "stop" | "edit" | "addMemo" | "addTable" | "removeTable" | "addColumn" | "removeColumn" | "primaryKey" | "selectAllTable" | "relationshipZeroOne" | "relationshipZeroN" | "relationshipOneOnly" | "relationshipOneN" | "tableProperties" | "zoomIn" | "zoomOut" | "zoomReset" | "handTool" | "zenMode")[];
32
35
  export type KeyBindingMap = Record<KeyBindingName, ShortcutOption[]>;
33
36
  export declare const createKeyBindingMap: () => KeyBindingMap;
34
37
  export declare function shortcutToTuple(shortcut?: string): KeyBindingPress[];
35
38
  export declare function isMod(event: MouseEvent | TouchEvent | KeyboardEvent): boolean;
39
+ /**
40
+ * Whether the press still belongs to an IME composition. The browser finishes
41
+ * the composition on its own, so a binding that fired here would spend a key
42
+ * the text editor was owed and leave a half-formed syllable behind.
43
+ */
44
+ export declare function isComposing(event: KeyboardEvent): boolean;
45
+ /**
46
+ * What a button says it is: its name and the first chord bound to it, since a
47
+ * command can carry several and a tooltip naming all of them reads as noise.
48
+ */
49
+ export declare function toShortcutTitle(keyBindingMap: KeyBindingMap, name: string, keyBindingName: KeyBindingName): string;
36
50
  export declare function simpleShortcutToString(shortcut?: string): string;
51
+ //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,3 @@
1
1
  export type KeyBindingPress = [string[], string];
2
2
  export declare function parseKeybinding(str: string): KeyBindingPress[];
3
+ //# sourceMappingURL=utils.d.ts.map
@@ -1,2 +1,3 @@
1
1
  export declare const delay: (ms: number) => Promise<void>;
2
2
  export declare function closePromise(): [Promise<void>, () => void];
3
+ //# sourceMappingURL=promise.d.ts.map
@@ -1,3 +1,4 @@
1
1
  import { Observable } from 'rxjs';
2
2
  import { Emitter } from '../emitter';
3
3
  export declare const fromCopy: (emitter: Emitter) => Observable<ClipboardEvent>;
4
+ //# sourceMappingURL=fromCopy.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare const fromDraggable: (elements: Element[]) => import('rxjs').Observable<DragEvent>;
2
+ //# sourceMappingURL=fromDraggable.d.ts.map
@@ -1,3 +1,4 @@
1
1
  import { Observable } from 'rxjs';
2
2
  import { Emitter } from '../emitter';
3
3
  export declare const fromPaste: (emitter: Emitter) => Observable<ClipboardEvent>;
4
+ //# sourceMappingURL=fromPaste.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare const fromShadowDraggable: <R>(elements: HTMLElement[], prepare: (el: HTMLElement) => R) => import('rxjs').Observable<R>;
2
+ //# sourceMappingURL=fromShadowDraggable.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import { Observable } from 'rxjs';
2
2
  export declare const takeUnsubscribe: (callback: () => void) => <T>(source$: Observable<T>) => Observable<T>;
3
+ //# sourceMappingURL=takeUnsubscribe.d.ts.map
@@ -0,0 +1,5 @@
1
+ type Callback = (...args: any[]) => any;
2
+ /** Calls an optional callback and keeps its exception on the console rather than in the caller. */
3
+ export declare function safeCallback<F extends Callback>(callback?: F | void, ...args: Parameters<F>): any;
4
+ export {};
5
+ //# sourceMappingURL=safeCallback.d.ts.map
@@ -2,3 +2,4 @@ import { ERDEditorSchemaV3 } from '@dineug/erd-editor-schema';
2
2
  import { EngineContext } from '../../engine/context';
3
3
  import { AMLModel } from './types';
4
4
  export declare function convertToSchema(model: AMLModel, ctx: EngineContext, database: number): ERDEditorSchemaV3;
5
+ //# sourceMappingURL=convert.d.ts.map
@@ -1,13 +1,13 @@
1
1
  import { AMLModel } from './types';
2
2
  /**
3
- * `enumValues` carries the inline `status post_status(draft, published)`
4
- * members, which never reach `model.types`. Both entry points take them as a
5
- * trailing optional argument so `convert.ts` keeps one call site each, and
6
- * inline members take precedence over anything the name would resolve to.
3
+ * enumValues carries the inline members, which never reach model.types. Both
4
+ * entry points take them as a trailing optional argument, and inline members
5
+ * take precedence over anything the name would resolve to.
7
6
  */
8
7
  export declare function resolveDataType(typeName: string, database: number, model: AMLModel, enumValues?: string[]): string;
9
8
  /**
10
- * Keeps the members where the column type cannot hold them. Pass `database` to
11
- * drop it on the dialects whose `ENUM(...)` column already spells them out.
9
+ * Keeps the members where the column type cannot hold them. Pass database to
10
+ * drop it on the dialects whose ENUM(...) column already spells them out.
12
11
  */
13
12
  export declare function enumCommentSuffix(typeName: string, model: AMLModel, database: number, enumValues?: string[]): string;
13
+ //# sourceMappingURL=dataType.d.ts.map
@@ -1,3 +1,4 @@
1
1
  import { ERDEditorSchemaV3 } from '@dineug/erd-editor-schema';
2
2
  import { EngineContext } from '../../engine/context';
3
3
  export declare function schemaAMLParserToSchemaJson(aml: string, ctx: EngineContext, prepare?: (schema: ERDEditorSchemaV3) => ERDEditorSchemaV3): string;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import { AMLParseResult } from './types';
2
2
  export declare function parseAMLModel(source: string): AMLParseResult;
3
+ //# sourceMappingURL=parser.d.ts.map
@@ -10,11 +10,9 @@ export declare const TokenKind: {
10
10
  readonly newline: 9;
11
11
  };
12
12
  /**
13
- * AML is indentation-sensitive, so every token carries the depth of its line --
14
- * `-1` when the line is unindented, `0` for the first nesting level. A newline
15
- * token opens the line that follows it and already holds that line's depth, and
16
- * the stream always starts with a synthetic one (`value: ''`, `line: 0`), so
17
- * `parser.ts` reads the first line's depth the same way as every other line's.
13
+ * AML is indentation-sensitive, so every token carries its line's depth. A
14
+ * newline token opens the line that follows and holds that line's depth, and a
15
+ * synthetic one starts the stream so the first line reads like every other.
18
16
  */
19
17
  export type Token = {
20
18
  kind: number;
@@ -23,3 +21,4 @@ export type Token = {
23
21
  depth: number;
24
22
  };
25
23
  export declare function tokenize(source: string): Token[];
24
+ //# sourceMappingURL=tokenizer.d.ts.map