@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
@@ -1,4 +1,6 @@
1
1
  import { FC } from '@dineug/r-html';
2
2
  export type SharedMouseTrackerProps = {};
3
+ /** One cursor per peer sharing a pointer, on the presence layer. */
3
4
  declare const SharedMouseTracker: FC<SharedMouseTrackerProps>;
4
5
  export default SharedMouseTracker;
6
+ //# sourceMappingURL=SharedMouseTracker.d.ts.map
@@ -3,5 +3,11 @@ import { SharedMouseTracker } from '../../../../../engine/modules/editor/state';
3
3
  export type SharedMouseCursorProps = {
4
4
  tracker: SharedMouseTracker;
5
5
  };
6
+ /**
7
+ * One peer's pointer and nickname, eased toward the position they last shared.
8
+ * The colour identifies the editor rather than the theme, so it comes from the
9
+ * shared palette instead of a resolved token.
10
+ */
6
11
  declare const SharedMouseCursor: FC<SharedMouseCursorProps>;
7
12
  export default SharedMouseCursor;
13
+ //# sourceMappingURL=SharedMouseCursor.d.ts.map
@@ -2,6 +2,15 @@ import { FC } from '@dineug/r-html';
2
2
  import { Table } from '../../../../internal-types';
3
3
  export type TableProps = {
4
4
  table: Table;
5
+ /** A drawn copy rather than the table itself, so nothing in it takes an id. */
6
+ preview?: boolean;
7
+ hovered?: boolean;
8
+ hoveredColumnId?: string | null;
9
+ ghostColumnId?: string | null;
10
+ editorFocused?: boolean;
11
+ /** Off while the table is kept built but scrolled out of the culling rect. */
12
+ visible?: boolean;
5
13
  };
6
14
  declare const Table: FC<TableProps>;
7
15
  export default Table;
16
+ //# sourceMappingURL=Table.d.ts.map
@@ -0,0 +1,64 @@
1
+ import { FocusType } from '../../../../engine/modules/editor/state';
2
+ import { RootState } from '../../../../engine/state';
3
+ import { Table } from '../../../../internal-types';
4
+ import { Theme } from '../../../../themes/tokens';
5
+ import { ColumnWidth } from '../../../../utils/calcTable';
6
+ /** The four widths a column row measures from its table; the rest are fixed. */
7
+ export type ColumnCellWidths = Pick<ColumnWidth, 'comment' | 'dataType' | 'default' | 'name'>;
8
+ /** One editable box on a table, positioned inside the table's own group. */
9
+ export type CellSlot = {
10
+ focusType: FocusType;
11
+ x: number;
12
+ width: number;
13
+ };
14
+ export type ColumnCellSlot = CellSlot & {
15
+ columnType: number;
16
+ };
17
+ /** Where the header cell row starts inside a table group. */
18
+ export declare const HEADER_CELLS_X: number;
19
+ export declare const HEADER_CELLS_Y: number;
20
+ /** The text line inside a header cell and inside a column cell. */
21
+ export declare const HEADER_TEXT_Y = 2;
22
+ export declare const COLUMN_TEXT_Y = 2;
23
+ /** Where the scene runs its focus rect inside a cell, header and column both. */
24
+ export declare const CELL_UNDERLINE_Y: number;
25
+ /**
26
+ * The paint that focus rect takes, header and column both: the input colour
27
+ * while the cell is being edited, and greyed out with the rest of the focus
28
+ * while the editor is not the one holding the keyboard.
29
+ */
30
+ export declare function focusBorderFill(theme: Theme, edit: boolean, editorFocused: boolean | undefined): string;
31
+ /**
32
+ * The baseline one line of cell text is drawn on, down from the top of the
33
+ * cell. Blink puts a painted baseline on the device grid before the zoom scales
34
+ * it, so only a whole pixel survives both rasterisers unchanged.
35
+ *
36
+ * @example
37
+ * const baseline = getCellTextBaseline();
38
+ */
39
+ export declare function getCellTextBaseline(): number;
40
+ /**
41
+ * The box one line of cell text is centred in. The scene hands konva this
42
+ * height with verticalAlign middle and the editor gives its input the same one,
43
+ * which is what puts the two baselines on one whole pixel instead of two.
44
+ *
45
+ * @example
46
+ * const height = getCellTextHeight();
47
+ */
48
+ export declare function getCellTextHeight(): number;
49
+ /** Where a column row's cells start, past the key badge. */
50
+ export declare const COLUMN_CELLS_X: number;
51
+ /** The comment width a table draws at, clamped by the setting when it is set. */
52
+ export declare function getWidthComment(state: RootState, table: Table): number;
53
+ /**
54
+ * The name and comment boxes across a table header. One list feeds both the
55
+ * scene that draws them and the overlay that edits them, so an editor can never
56
+ * sit anywhere but on the text it replaces.
57
+ */
58
+ export declare function getHeaderCellSlots(state: RootState, table: Table): CellSlot[];
59
+ /**
60
+ * The cells of one column row, in the order the settings put them and at the x
61
+ * each lands on once the ones before it have taken their width.
62
+ */
63
+ export declare function getColumnCellSlots(state: RootState, widths: ColumnCellWidths): ColumnCellSlot[];
64
+ //# sourceMappingURL=cellLayout.d.ts.map
@@ -1,9 +1,10 @@
1
- import { FC, Ref } from '@dineug/r-html';
2
- import { AppContext } from '../../../../appContext';
1
+ import { FC } from '@dineug/r-html';
2
+ import { SceneMouseEvent } from '../../sceneTokens';
3
3
  import { Column } from '../../../../../internal-types';
4
4
  export type ColumnProps = {
5
- app: Ref<AppContext>;
6
5
  column: Column;
6
+ y: number;
7
+ width: number;
7
8
  selected: boolean;
8
9
  widthName: number;
9
10
  widthDataType: number;
@@ -27,10 +28,20 @@ export type ColumnProps = {
27
28
  editDataType: boolean;
28
29
  editDefault: boolean;
29
30
  editComment: boolean;
30
- draggable?: boolean;
31
+ hovered?: boolean;
32
+ /** The placeholder row for a column dragged in from another table. */
31
33
  ghost?: boolean;
32
- onDragstart?: (event: DragEvent) => void;
33
- onDragend?: (event: DragEvent) => void;
34
+ /** Drawn inside a copy of the table, which owns none of its ids. */
35
+ preview?: boolean;
36
+ editorFocused?: boolean;
37
+ /**
38
+ * The one pair of callbacks the scene keeps. A drop lands between siblings,
39
+ * so the table that owns the order is the only thing that can judge one, and
40
+ * the row can only say that a drag of it started and that it ended.
41
+ */
42
+ onDragstart?: (columnId: string, event: SceneMouseEvent) => void;
43
+ onDragend?: () => void;
34
44
  };
35
45
  declare const Column: FC<ColumnProps>;
36
46
  export default Column;
47
+ //# sourceMappingURL=Column.d.ts.map
@@ -0,0 +1,15 @@
1
+ import { SceneMouseEvent } from '../sceneTokens';
2
+ import { FocusType } from '../../../../engine/modules/editor/state';
3
+ export type DoubleClickGuard = {
4
+ /** Records the cell a click opened a pair on. */
5
+ track(cell: FocusType, event: SceneMouseEvent): void;
6
+ /** Whether a konva dblclick closes a pair that began on this same cell. */
7
+ isDouble(cell: FocusType, event: SceneMouseEvent): boolean;
8
+ };
9
+ /**
10
+ * Tells a real double click from the one konva invents. Konva fires dblclick on
11
+ * whatever the second click of any pair inside its window lands on, wherever
12
+ * the first one was, so the cell that opened the pair is remembered here.
13
+ */
14
+ export declare function createDoubleClickGuard(): DoubleClickGuard;
15
+ //# sourceMappingURL=doubleClick.d.ts.map
@@ -5,3 +5,4 @@ export declare function useFocusTable(ctx: Ctx, tableId: string): {
5
5
  hasEdit: (focusType: FocusType, columnId?: string) => boolean;
6
6
  hasSelectColumn: (columnId: string) => boolean;
7
7
  };
8
+ //# sourceMappingURL=useFocusTable.d.ts.map
@@ -2,5 +2,6 @@ import { Ctx, Table } from '../../../../internal-types';
2
2
  export declare function useMoveTable(ctx: Ctx, props: {
3
3
  table: Table;
4
4
  }): {
5
- onMoveStart: (event: MouseEvent | TouchEvent) => void;
5
+ onMoveStart: (event: import('../sceneTokens').ScenePointerEvent) => void;
6
6
  };
7
+ //# sourceMappingURL=useMoveTable.d.ts.map
@@ -4,3 +4,4 @@ export declare function useSharedFocusTable(ctx: Ctx, tableId: string): {
4
4
  sharedFocusTableColor: () => string | null;
5
5
  sharedFocusColor: (focusType: FocusType, columnId?: string) => string | null;
6
6
  };
7
+ //# sourceMappingURL=useSharedFocusTable.d.ts.map
@@ -0,0 +1,19 @@
1
+ import { ScenePointerEvent } from './sceneTokens';
2
+ import { SelectType } from '../../../engine/modules/editor/state';
3
+ import { Ctx } from '../../../internal-types';
4
+ export type MoveEntityOptions = {
5
+ /** Read late, because repeat hands a component a new entity in place. */
6
+ entityId: () => string;
7
+ selectType: SelectType;
8
+ /** The scene kinds a drag never starts from, as closest read their classes. */
9
+ blockedKinds: readonly string[];
10
+ };
11
+ /**
12
+ * The pointer start every draggable entity shares: select it, hand an Alt drag
13
+ * to the duplicate ghost, and otherwise move the whole selection with the
14
+ * pointer. Only the entity kind and the blocked areas differ between them.
15
+ */
16
+ export declare function useMoveEntity(ctx: Ctx, options: MoveEntityOptions): {
17
+ onMoveStart: (event: ScenePointerEvent) => void;
18
+ };
19
+ //# sourceMappingURL=useMoveEntity.d.ts.map
@@ -2,3 +2,4 @@ import { Ctx } from '../../../internal-types';
2
2
  export declare function useSharedSelectEntity(ctx: Ctx, entityId: string): {
3
3
  sharedSelectColor: () => string | null;
4
4
  };
5
+ //# sourceMappingURL=useSharedSelectEntity.d.ts.map
@@ -0,0 +1,10 @@
1
+ import { FC } from '@dineug/r-html';
2
+ export type ContentCompassProps = {};
3
+ /**
4
+ * The one thing on a screen that has been panned off every table and memo: an
5
+ * arrow at the nearest of them, how far off it lies, and a press that puts it
6
+ * back in the middle of the screen.
7
+ */
8
+ declare const ContentCompass: FC<ContentCompassProps>;
9
+ export default ContentCompass;
10
+ //# sourceMappingURL=ContentCompass.d.ts.map
@@ -0,0 +1,3 @@
1
+ export declare const compass: import('@dineug/r-html').CSSTemplateLiterals;
2
+ export declare const distance: import('@dineug/r-html').CSSTemplateLiterals;
3
+ //# sourceMappingURL=ContentCompass.styles.d.ts.map
@@ -0,0 +1,24 @@
1
+ import { RootState } from '../../../engine/state';
2
+ import { Point } from '../../../internal-types';
3
+ /** Which way the nearest entity lies and how far, while the screen holds none. */
4
+ export type ContentCompass = {
5
+ /** Degrees clockwise from east, which is the rotation the arrow is drawn at. */
6
+ angle: number;
7
+ /** The gap between the screen and that entity, in scene units. */
8
+ distance: number;
9
+ /** Its middle, which is the scene point a press centres the screen on. */
10
+ target: Point;
11
+ };
12
+ /**
13
+ * Where the nearest entity stands when the screen shows none of them, measured
14
+ * from the screen's own middle. Null while any table or memo reaches the screen,
15
+ * touching it counting as reaching it, and null while nobody has measured one.
16
+ */
17
+ export declare function getContentCompass(state: RootState): ContentCompass | null;
18
+ /**
19
+ * The gap as the pill prints it: whole scene units under a thousand, then
20
+ * thousands, millions and billions carrying one decimal under ten, so the label
21
+ * stays four characters wide however far the view has been carried.
22
+ */
23
+ export declare function formatDistance(distance: number): string;
24
+ //# sourceMappingURL=compassGeometry.d.ts.map
@@ -7,3 +7,4 @@ export type DiffViewerProps = {
7
7
  };
8
8
  declare const DiffViewer: FC<DiffViewerProps>;
9
9
  export default DiffViewer;
10
+ //# sourceMappingURL=DiffViewer.d.ts.map
@@ -1,3 +1,4 @@
1
1
  export declare const root: import('@dineug/r-html').CSSTemplateLiterals;
2
2
  export declare const container: import('@dineug/r-html').CSSTemplateLiterals;
3
3
  export declare const viewport: import('@dineug/r-html').CSSTemplateLiterals;
4
+ //# sourceMappingURL=DiffViewer.styles.d.ts.map
@@ -17,3 +17,4 @@ export declare function diffState(prevState: RootState, state: RootState): [Diff
17
17
  export declare function getNameToTableMap({ doc: { tableIds }, collections, }: RootState): NameToTableMap;
18
18
  export declare function getDiffStyle(diff: number, diffMap: DiffMap): HTMLStyleElement;
19
19
  export {};
20
+ //# sourceMappingURL=diff.d.ts.map
@@ -8,3 +8,4 @@ export type ErdViewerProps = {
8
8
  };
9
9
  declare const ErdViewer: FC<ErdViewerProps>;
10
10
  export default ErdViewer;
11
+ //# sourceMappingURL=ErdViewer.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare const root: import('@dineug/r-html').CSSTemplateLiterals;
2
+ //# sourceMappingURL=ErdViewer.styles.d.ts.map
@@ -9,3 +9,4 @@ export type TreeViewerProps = {
9
9
  };
10
10
  declare const TreeViewer: FC<TreeViewerProps>;
11
11
  export default TreeViewer;
12
+ //# sourceMappingURL=TreeViewer.d.ts.map
@@ -3,3 +3,4 @@ export declare const icon: import('@dineug/r-html').CSSTemplateLiterals;
3
3
  export declare const table: import('@dineug/r-html').CSSTemplateLiterals;
4
4
  export declare const column: import('@dineug/r-html').CSSTemplateLiterals;
5
5
  export declare const ellipsis: import('@dineug/r-html').CSSTemplateLiterals;
6
+ //# sourceMappingURL=TreeViewer.styles.d.ts.map
@@ -1,4 +1,4 @@
1
- import { FC, Ref } from '@dineug/r-html';
1
+ import { FC } from '@dineug/r-html';
2
2
  import { ValuesType } from '../../../internal-types';
3
3
  export declare const ErdContextMenuType: {
4
4
  readonly ERD: "ERD";
@@ -8,10 +8,10 @@ export declare const ErdContextMenuType: {
8
8
  export type ErdContextMenuType = ValuesType<typeof ErdContextMenuType>;
9
9
  export type ErdContextMenuProps = {
10
10
  type: ErdContextMenuType;
11
- canvas: Ref<HTMLDivElement>;
12
11
  relationshipId?: string;
13
12
  tableId?: string;
14
13
  onClose: () => void;
15
14
  };
16
15
  declare const ErdContextMenu: FC<ErdContextMenuProps>;
17
16
  export default ErdContextMenu;
17
+ //# sourceMappingURL=ErdContextMenu.d.ts.map
@@ -10,3 +10,4 @@ export declare function createDatabaseMenus({ store }: AppContext): {
10
10
  onClick: () => void;
11
11
  }[];
12
12
  export {};
13
+ //# sourceMappingURL=databaseMenus.d.ts.map
@@ -1,8 +1,8 @@
1
1
  import { AppContext } from '../../../appContext';
2
- import { Base64IconName } from '../../../primitives/icon/icons';
2
+ import { NotationIconName } from '../../../primitives/icon/icons';
3
3
  import { KeyBindingName } from '../../../../utils/keyboard-shortcut';
4
4
  type Menu = {
5
- iconName: Base64IconName;
5
+ iconName: NotationIconName;
6
6
  name: string;
7
7
  keyBindingName: KeyBindingName;
8
8
  relationshipType: number;
@@ -15,3 +15,4 @@ export declare function createDrawRelationshipMenus({ store, keyBindingMap }: Ap
15
15
  onClick: () => void;
16
16
  }[];
17
17
  export {};
18
+ //# sourceMappingURL=drawRelationshipMenus.d.ts.map
@@ -1,9 +1,11 @@
1
1
  import { AppContext } from '../../../appContext';
2
2
  import { IconName } from '../../../primitives/icon/icons';
3
+ import { Theme } from '../../../../themes/tokens';
3
4
  type Menu = {
4
5
  icon: IconName;
5
6
  name: string;
6
7
  onClick: () => void;
7
8
  };
8
- export declare function createExportMenus(app: AppContext, onClose: () => void, root: HTMLElement): Menu[];
9
+ export declare function createExportMenus(app: AppContext, onClose: () => void, theme: Theme): Menu[];
9
10
  export {};
11
+ //# sourceMappingURL=exportMenus.d.ts.map
@@ -7,3 +7,4 @@ type Menu = {
7
7
  };
8
8
  export declare function createImportMenus(app: AppContext, onClose: () => void): Menu[];
9
9
  export {};
10
+ //# sourceMappingURL=importMenus.d.ts.map
@@ -5,3 +5,4 @@ export declare function createRelationshipMenus({ store }: AppContext, relations
5
5
  name: string;
6
6
  onClick: () => void;
7
7
  }[];
8
+ //# sourceMappingURL=relationshipMenus.d.ts.map
@@ -4,3 +4,4 @@ export declare function createShowMenus({ store }: AppContext): {
4
4
  name: string;
5
5
  onClick: () => void;
6
6
  }[];
7
+ //# sourceMappingURL=showMenus.d.ts.map
@@ -1,3 +1,4 @@
1
1
  import { Observable } from 'rxjs';
2
2
  import { RootState } from '../../engine/state';
3
3
  export declare const erdShortcutPerformCheck: ({ editor, settings }: RootState) => <T>(source$: Observable<T>) => Observable<T>;
4
+ //# sourceMappingURL=erdShortcutPerformCheck.d.ts.map
@@ -0,0 +1,10 @@
1
+ import { FC } from '@dineug/r-html';
2
+ export type FloatingToolbarProps = {};
3
+ /**
4
+ * The tools over the canvas: which of the two a press means, the notation the
5
+ * next relationship is drawn in, and zen mode. It is the one surface zen mode
6
+ * leaves standing, because the way out of zen mode is in it.
7
+ */
8
+ declare const FloatingToolbar: FC<FloatingToolbarProps>;
9
+ export default FloatingToolbar;
10
+ //# sourceMappingURL=FloatingToolbar.d.ts.map
@@ -0,0 +1,4 @@
1
+ export declare const root: import('@dineug/r-html').CSSTemplateLiterals;
2
+ export declare const menu: import('@dineug/r-html').CSSTemplateLiterals;
3
+ export declare const divider: import('@dineug/r-html').CSSTemplateLiterals;
4
+ //# sourceMappingURL=FloatingToolbar.styles.d.ts.map
@@ -0,0 +1,23 @@
1
+ import { Stage } from 'konva/lib/Stage';
2
+ /** The scene entities the erd routing tells apart from one another. */
3
+ export type SceneEntityKind = 'table' | 'memo' | 'relationship';
4
+ export type SceneHit = {
5
+ kind: SceneEntityKind;
6
+ id: string;
7
+ };
8
+ /**
9
+ * Records the entity konva hit for every press a stage dispatches, and returns
10
+ * the teardown. Konva resolves the node while the hit canvas still matches the
11
+ * scene, so the walk up to the entity runs there too.
12
+ *
13
+ * @example
14
+ * addUnsubscribe(trackSceneHits(stage));
15
+ */
16
+ export declare function trackSceneHits(stage: Stage): () => void;
17
+ /**
18
+ * The scene entity a pointer event landed on, or null for bare canvas and for a
19
+ * target outside the stage. Konva resolved it as it dispatched that same event,
20
+ * because the press has re-rendered the scene by the time this is asked.
21
+ */
22
+ export declare function sceneHit(container: HTMLElement | null | undefined, event: MouseEvent | TouchEvent): SceneHit | null;
23
+ //# sourceMappingURL=hitTest.d.ts.map
@@ -2,3 +2,4 @@ import { FC } from '@dineug/r-html';
2
2
  export type MinimapProps = {};
3
3
  declare const Minimap: FC<MinimapProps>;
4
4
  export default Minimap;
5
+ //# sourceMappingURL=Minimap.d.ts.map
@@ -1,3 +1,3 @@
1
1
  export declare const minimap: import('@dineug/r-html').CSSTemplateLiterals;
2
2
  export declare const border: import('@dineug/r-html').CSSTemplateLiterals;
3
- export declare const canvasSvg: import('@dineug/r-html').CSSTemplateLiterals;
3
+ //# sourceMappingURL=Minimap.styles.d.ts.map
@@ -0,0 +1,17 @@
1
+ import { FC } from '@dineug/r-html';
2
+ import { Stage } from 'konva/lib/Stage';
3
+ export type MinimapSceneProps = {};
4
+ /**
5
+ * The whole document on one layer, with no culling: a thumbnail that dropped
6
+ * what is off screen would stop being a map of where the rest of it is. Boxes
7
+ * only, because a connector between two of them is noise at this size.
8
+ */
9
+ declare const MinimapScene: FC<MinimapSceneProps>;
10
+ /**
11
+ * Renders the minimap scene as the root of its Stage. Named in lower case on
12
+ * purpose: an all-upper-case export list makes r-html's refresh treat this as a
13
+ * component module and self-accept it, which kills hmr for the whole scene.
14
+ */
15
+ export declare function renderMinimapScene(stage: Stage): void;
16
+ export default MinimapScene;
17
+ //# sourceMappingURL=MinimapScene.d.ts.map
@@ -2,6 +2,14 @@ import { FC } from '@dineug/r-html';
2
2
  import { Memo } from '../../../../internal-types';
3
3
  export type MemoProps = {
4
4
  memo: Memo;
5
+ /** Thumbnail pixels per scene unit, which is what the box is floored at. */
6
+ ratio: number;
5
7
  };
8
+ /**
9
+ * A memo as the minimap draws it: the box and nothing in it, no smaller than a
10
+ * mark however far the map is folded. The id rides in the name, the way a
11
+ * relationship carries its own, as an id on a second stage would make an id scan ambiguous.
12
+ */
6
13
  declare const Memo: FC<MemoProps>;
7
14
  export default Memo;
15
+ //# sourceMappingURL=Memo.d.ts.map
@@ -0,0 +1,100 @@
1
+ import { ScrollRanges } from '../../../engine/modules/settings/atom.actions';
2
+ import { RootState } from '../../../engine/state';
3
+ import { Point } from '../../../internal-types';
4
+ import { Rect } from '../../../konva/scene/metrics';
5
+ import { SceneTransform } from '../../../konva/scene/viewport';
6
+ /** The scene placement plus the screen looking at it, which is all a visible rect is read from. */
7
+ export type ViewTransform = SceneTransform & {
8
+ viewportWidth: number;
9
+ viewportHeight: number;
10
+ };
11
+ /**
12
+ * Scene units kept clear around what the map holds, so a box at the edge of the
13
+ * content never touches the edge of the thumbnail.
14
+ */
15
+ export declare const MINIMAP_MAP_MARGIN = 100;
16
+ /**
17
+ * The grid the map's edges snap outward to, in scene units. A table nudged a
18
+ * few pixels then leaves the map where it is, where a map cut to the content
19
+ * would rescale the thumbnail under every move.
20
+ */
21
+ export declare const MINIMAP_MAP_STEP = 500;
22
+ /**
23
+ * The thumbnail's shorter side never draws thinner than this, in pixels. Two
24
+ * tables fifty thousand units apart would fold it into a hairline otherwise,
25
+ * so the map is widened about its middle along that axis until it fits.
26
+ */
27
+ export declare const MINIMAP_BOX_MIN_SIDE = 30;
28
+ /**
29
+ * The smallest anything drawn on the thumbnail may be, in pixels: a table or
30
+ * memo box, or the handle. At the ratio a far flung document folds into, a
31
+ * box would draw sub-pixel and the map would show nothing of what it maps.
32
+ */
33
+ export declare const MINIMAP_MARK_MIN = 3;
34
+ /** How the thumbnail lays the document out: the scene rect it maps and the box that draws it. */
35
+ export type MinimapLayout = {
36
+ /** The scene rect the thumbnail is a map of, in scene units. */
37
+ map: Rect;
38
+ /** Thumbnail pixels per scene unit: the map's longer side folded into MINIMAP_SIZE. */
39
+ ratio: number;
40
+ /** The thumbnail's own box, the map at the ratio, so its longer side is MINIMAP_SIZE. */
41
+ box: {
42
+ width: number;
43
+ height: number;
44
+ };
45
+ /** Where the box sits inside the MINIMAP_SIZE square, centred along its shorter side. */
46
+ offset: Point;
47
+ };
48
+ /** The view as the store holds it, for every reader that maps the screen onto the thumbnail. */
49
+ export declare function getViewTransform(state: RootState): ViewTransform;
50
+ /**
51
+ * The scene the screen actually covers, read back through the very origin
52
+ * getSceneOrigin places the scene layer at. One screen pixel buys one over the
53
+ * zoom in scene units, so zooming out widens this with the origin standing still.
54
+ */
55
+ export declare function getVisibleCanvasRect(view: ViewTransform): Rect;
56
+ /**
57
+ * The scene the screen can be scrolled over: what it shows at either end of
58
+ * the travel, and everything between. The far end of the travel puts the near
59
+ * edge of the content on the far edge of the screen, and the other way about.
60
+ */
61
+ export declare function getReachRect(view: ViewTransform, { left, top }: ScrollRanges): Rect;
62
+ /**
63
+ * The map is everything the screen can be scrolled over, with the margin
64
+ * around it, snapped to the grid, then widened along its shorter side where
65
+ * that would draw under MINIMAP_BOX_MIN_SIDE. A drag holds its content still.
66
+ */
67
+ export declare function getMinimapLayout(state: RootState): MinimapLayout;
68
+ /** A scene point in the thumbnail's own pixels; scene zero lands where the layer is placed. */
69
+ export declare function toMinimapPoint({ map, ratio }: MinimapLayout, point: Point): Point;
70
+ /** The scene point under a thumbnail pixel, the mapping above inverted. */
71
+ export declare function fromMinimapPoint({ map, ratio }: MinimapLayout, point: Point): Point;
72
+ /** The screen's own footprint in thumbnail pixels, the visible rect mapped and untrimmed. */
73
+ export declare function getMinimapViewportRect(layout: MinimapLayout, view: ViewTransform): Rect;
74
+ /**
75
+ * A scene rect as the thumbnail draws it: the rect itself, or one grown about
76
+ * its middle to MINIMAP_MARK_MIN pixels at the map's ratio where it would draw
77
+ * smaller. In scene units, since the layer it lands on carries the ratio.
78
+ */
79
+ export declare function getMinimapMarkRect(ratio: number, rect: Rect): Rect;
80
+ /**
81
+ * The rectangle as drawn, no smaller than a mark and trimmed to the thumbnail
82
+ * box. A map laid out for the view holds its screen whole; the trim is for one
83
+ * drawn against another view's map, since a pointer target must not hang over the canvas.
84
+ */
85
+ export declare function getMinimapHandleRect(layout: MinimapLayout, view: ViewTransform): Rect;
86
+ /**
87
+ * A scene distance as the origin travel that covers it. The origin is measured
88
+ * in screen pixels and moves the view the opposite way, so it carries both the
89
+ * zoom and the sign that a minimap coordinate does not.
90
+ */
91
+ export declare function toScrollDistance(distance: number, zoomLevel: number): number;
92
+ /** Minimap travel as the origin travel that keeps the rectangle under the pointer. */
93
+ export declare function toScrollMovement(movement: number, ratio: number, zoomLevel: number): number;
94
+ /**
95
+ * The origin that puts a scene point in the middle of the screen. Stated as a
96
+ * step away from where the origin stands now, so it is read once through
97
+ * getVisibleCanvasRect rather than restated inverted here.
98
+ */
99
+ export declare function getScrollToCenter(view: ViewTransform, center: Point): Point;
100
+ //# sourceMappingURL=minimapGeometry.d.ts.map
@@ -2,6 +2,14 @@ import { FC } from '@dineug/r-html';
2
2
  import { Table } from '../../../../internal-types';
3
3
  export type TableProps = {
4
4
  table: Table;
5
+ /** Thumbnail pixels per scene unit, which is what the box is floored at. */
6
+ ratio: number;
5
7
  };
8
+ /**
9
+ * A table as the minimap draws it: the box and nothing in it, no smaller than a
10
+ * mark however far the map is folded. The id stays off the node because two
11
+ * stages spelling one id make an id scan ambiguous, so it is found by name and table.
12
+ */
6
13
  declare const Table: FC<TableProps>;
7
14
  export default Table;
15
+ //# sourceMappingURL=Table.d.ts.map
@@ -5,3 +5,4 @@ export declare function useMinimapScroll(ctx: Ctx): {
5
5
  };
6
6
  onScrollStart: (event: MouseEvent | TouchEvent) => void;
7
7
  };
8
+ //# sourceMappingURL=useMinimapScroll.d.ts.map
@@ -4,3 +4,4 @@ export type ViewportProps = {
4
4
  };
5
5
  declare const Viewport: FC<ViewportProps>;
6
6
  export default Viewport;
7
+ //# sourceMappingURL=Viewport.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare const viewport: import('@dineug/r-html').CSSTemplateLiterals;
2
+ //# sourceMappingURL=Viewport.styles.d.ts.map
@@ -7,3 +7,4 @@ export type TablePropertiesProps = {
7
7
  };
8
8
  declare const TableProperties: FC<TablePropertiesProps>;
9
9
  export default TableProperties;
10
+ //# sourceMappingURL=TableProperties.d.ts.map
@@ -4,3 +4,4 @@ export declare const scrollbarArea: import('@dineug/r-html').CSSTemplateLiterals
4
4
  export declare const header: import('@dineug/r-html').CSSTemplateLiterals;
5
5
  export declare const tab: import('@dineug/r-html').CSSTemplateLiterals;
6
6
  export declare const scope: import('@dineug/r-html').CSSTemplateLiterals;
7
+ //# sourceMappingURL=TableProperties.styles.d.ts.map
@@ -4,3 +4,4 @@ export type TablePropertiesIndexesProps = {
4
4
  };
5
5
  declare const TablePropertiesIndexes: FC<TablePropertiesIndexesProps>;
6
6
  export default TablePropertiesIndexes;
7
+ //# sourceMappingURL=TablePropertiesIndexes.d.ts.map
@@ -1,3 +1,4 @@
1
1
  export declare const leftArea: import('@dineug/r-html').CSSTemplateLiterals;
2
2
  export declare const rightArea: import('@dineug/r-html').CSSTemplateLiterals;
3
3
  export declare const addIndexButtonArea: import('@dineug/r-html').CSSTemplateLiterals;
4
+ //# sourceMappingURL=TablePropertiesIndexes.styles.d.ts.map
@@ -6,3 +6,4 @@ export type IndexesCheckboxColumnProps = {
6
6
  };
7
7
  declare const IndexesCheckboxColumn: FC<IndexesCheckboxColumnProps>;
8
8
  export default IndexesCheckboxColumn;
9
+ //# sourceMappingURL=IndexesCheckboxColumn.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare const root: import('@dineug/r-html').CSSTemplateLiterals;
2
+ //# sourceMappingURL=IndexesCheckboxColumn.styles.d.ts.map