@dineug/erd-editor 3.5.0 → 3.7.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 (444) hide show
  1. package/README.md +51 -23
  2. package/dist/components/appContext.d.ts +1 -0
  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 +21 -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 +1 -0
  9. package/dist/components/erd/automatic-table-placement/runElkPlacement.d.ts +12 -0
  10. package/dist/components/erd/canvas/Canvas.d.ts +1 -0
  11. package/dist/components/erd/canvas/Canvas.styles.d.ts +9 -8
  12. package/dist/components/erd/canvas/CanvasScene.d.ts +1 -0
  13. package/dist/components/erd/canvas/EditOverlay.d.ts +1 -0
  14. package/dist/components/erd/canvas/EditOverlay.styles.d.ts +1 -0
  15. package/dist/components/erd/canvas/SceneIcon.template.d.ts +1 -0
  16. package/dist/components/erd/canvas/altDragDuplicate.d.ts +1 -0
  17. package/dist/components/erd/canvas/drag-select/DragSelect.d.ts +1 -0
  18. package/dist/components/erd/canvas/draw-relationship/DrawRelationship.d.ts +1 -0
  19. package/dist/components/erd/canvas/duplicate-ghost/DuplicateGhost.d.ts +1 -0
  20. package/dist/components/erd/canvas/entityDrag.d.ts +6 -3
  21. package/dist/components/erd/canvas/high-level-table/HighLevelTable.d.ts +1 -0
  22. package/dist/components/erd/canvas/memo/Memo.d.ts +1 -0
  23. package/dist/components/erd/canvas/memo/memo-sash/MemoSash.d.ts +1 -0
  24. package/dist/components/erd/canvas/memo/memoCaret.d.ts +1 -0
  25. package/dist/components/erd/canvas/memo/memoScroll.d.ts +1 -0
  26. package/dist/components/erd/canvas/memo/memoText.d.ts +1 -0
  27. package/dist/components/erd/canvas/memo/useMoveMemo.d.ts +1 -0
  28. package/dist/components/erd/canvas/relationship-group/RelationshipGroup.d.ts +1 -0
  29. package/dist/components/erd/canvas/relationship-group/relationship/Relationship.d.ts +1 -0
  30. package/dist/components/erd/canvas/relationship-group/relationship/Relationship.template.d.ts +1 -0
  31. package/dist/components/erd/canvas/sceneHit.d.ts +1 -0
  32. package/dist/components/erd/canvas/sceneKind.d.ts +1 -0
  33. package/dist/components/erd/canvas/sceneRetention.d.ts +1 -0
  34. package/dist/components/erd/canvas/sceneTokens.d.ts +1 -0
  35. package/dist/components/erd/canvas/shared-drag-select/SharedDragSelect.d.ts +1 -0
  36. package/dist/components/erd/canvas/shared-mouse-tracker/SharedMouseTracker.d.ts +1 -0
  37. package/dist/components/erd/canvas/shared-mouse-tracker/shared-mouse-cursor/SharedMouseCursor.d.ts +1 -0
  38. package/dist/components/erd/canvas/table/Table.d.ts +1 -0
  39. package/dist/components/erd/canvas/table/cellLayout.d.ts +1 -0
  40. package/dist/components/erd/canvas/table/column/Column.d.ts +1 -0
  41. package/dist/components/erd/canvas/table/doubleClick.d.ts +1 -0
  42. package/dist/components/erd/canvas/table/useFocusTable.d.ts +1 -0
  43. package/dist/components/erd/canvas/table/useMoveTable.d.ts +1 -0
  44. package/dist/components/erd/canvas/table/useSharedFocusTable.d.ts +1 -0
  45. package/dist/components/erd/canvas/useMoveEntity.d.ts +1 -0
  46. package/dist/components/erd/canvas/useSharedSelectEntity.d.ts +1 -0
  47. package/dist/components/erd/content-compass/ContentCompass.d.ts +10 -0
  48. package/dist/components/erd/content-compass/ContentCompass.styles.d.ts +3 -0
  49. package/dist/components/erd/content-compass/compassGeometry.d.ts +24 -0
  50. package/dist/components/erd/diff-viewer/DiffViewer.d.ts +1 -0
  51. package/dist/components/erd/diff-viewer/DiffViewer.styles.d.ts +1 -0
  52. package/dist/components/erd/diff-viewer/diff.d.ts +1 -0
  53. package/dist/components/erd/diff-viewer/erd-viewer/ErdViewer.d.ts +1 -0
  54. package/dist/components/erd/diff-viewer/erd-viewer/ErdViewer.styles.d.ts +1 -0
  55. package/dist/components/erd/diff-viewer/tree-viewer/TreeViewer.d.ts +1 -0
  56. package/dist/components/erd/diff-viewer/tree-viewer/TreeViewer.styles.d.ts +1 -0
  57. package/dist/components/erd/erd-context-menu/ErdContextMenu.d.ts +1 -0
  58. package/dist/components/erd/erd-context-menu/menus/databaseMenus.d.ts +1 -0
  59. package/dist/components/erd/erd-context-menu/menus/drawRelationshipMenus.d.ts +1 -0
  60. package/dist/components/erd/erd-context-menu/menus/exportMenus.d.ts +1 -0
  61. package/dist/components/erd/erd-context-menu/menus/importMenus.d.ts +1 -0
  62. package/dist/components/erd/erd-context-menu/menus/relationshipMenus.d.ts +1 -0
  63. package/dist/components/erd/erd-context-menu/menus/showMenus.d.ts +1 -0
  64. package/dist/components/erd/erd-context-menu/menus/tablePlacementMenus.d.ts +24 -0
  65. package/dist/components/erd/erdShortcutPerformCheck.d.ts +1 -0
  66. package/dist/components/erd/floating-toolbar/FloatingToolbar.d.ts +10 -0
  67. package/dist/components/erd/floating-toolbar/FloatingToolbar.styles.d.ts +4 -0
  68. package/dist/components/erd/hitTest.d.ts +1 -0
  69. package/dist/components/erd/minimap/Minimap.d.ts +1 -0
  70. package/dist/components/erd/minimap/Minimap.styles.d.ts +1 -0
  71. package/dist/components/erd/minimap/MinimapScene.d.ts +1 -0
  72. package/dist/components/erd/minimap/memo/Memo.d.ts +6 -3
  73. package/dist/components/erd/minimap/minimapGeometry.d.ts +82 -34
  74. package/dist/components/erd/minimap/table/Table.d.ts +6 -3
  75. package/dist/components/erd/minimap/useMinimapScroll.d.ts +1 -0
  76. package/dist/components/erd/minimap/viewport/Viewport.d.ts +1 -0
  77. package/dist/components/erd/minimap/viewport/Viewport.styles.d.ts +1 -0
  78. package/dist/components/erd/table-properties/TableProperties.d.ts +1 -0
  79. package/dist/components/erd/table-properties/TableProperties.styles.d.ts +1 -0
  80. package/dist/components/erd/table-properties/table-properties-indexes/TablePropertiesIndexes.d.ts +1 -0
  81. package/dist/components/erd/table-properties/table-properties-indexes/TablePropertiesIndexes.styles.d.ts +1 -0
  82. package/dist/components/erd/table-properties/table-properties-indexes/indexes-checkbox-column/IndexesCheckboxColumn.d.ts +1 -0
  83. package/dist/components/erd/table-properties/table-properties-indexes/indexes-checkbox-column/IndexesCheckboxColumn.styles.d.ts +1 -0
  84. package/dist/components/erd/table-properties/table-properties-indexes/indexes-column/IndexesColumn.d.ts +1 -0
  85. package/dist/components/erd/table-properties/table-properties-indexes/indexes-column/IndexesColumn.styles.d.ts +1 -0
  86. package/dist/components/erd/table-properties/table-properties-indexes/indexes-index/IndexesIndex.d.ts +1 -0
  87. package/dist/components/erd/table-properties/table-properties-indexes/indexes-index/IndexesIndex.styles.d.ts +1 -0
  88. package/dist/components/erd/table-properties/table-properties-tabs/TablePropertiesTabs.d.ts +1 -0
  89. package/dist/components/erd/table-properties/table-properties-tabs/TablePropertiesTabs.styles.d.ts +1 -0
  90. package/dist/components/erd/time-travel/TimeTravel.d.ts +1 -0
  91. package/dist/components/erd/time-travel/TimeTravel.styles.d.ts +1 -0
  92. package/dist/components/erd/useErdShortcut.d.ts +1 -0
  93. package/dist/components/erd/virtual-scroll/VirtualScroll.d.ts +1 -0
  94. package/dist/components/erd/virtual-scroll/VirtualScroll.styles.d.ts +1 -0
  95. package/dist/components/erd/virtual-scroll/useVirtualScroll.d.ts +13 -6
  96. package/dist/components/erd-editor/ErdEditor.d.ts +2 -1
  97. package/dist/components/erd-editor/ErdEditor.styles.d.ts +1 -0
  98. package/dist/components/erd-editor/useErdEditorAttachElement.d.ts +1 -0
  99. package/dist/components/generator-code/GeneratorCode.d.ts +1 -0
  100. package/dist/components/generator-code/GeneratorCode.styles.d.ts +1 -0
  101. package/dist/components/generator-code/generator-code-context-menu/GeneratorCodeContextMenu.d.ts +1 -0
  102. package/dist/components/generator-code/generator-code-context-menu/menus/columnNameCaseMenus.d.ts +1 -0
  103. package/dist/components/generator-code/generator-code-context-menu/menus/languageMenus.d.ts +1 -0
  104. package/dist/components/generator-code/generator-code-context-menu/menus/tableNameCaseMenus.d.ts +1 -0
  105. package/dist/components/global-styles/GlobalStyles.d.ts +1 -0
  106. package/dist/components/primitives/button/Button.d.ts +1 -0
  107. package/dist/components/primitives/button/Button.styles.d.ts +1 -0
  108. package/dist/components/primitives/code-block/CodeBlock.d.ts +3 -2
  109. package/dist/components/primitives/code-block/CodeBlock.styles.d.ts +1 -0
  110. package/dist/components/primitives/color-picker/ColorPicker.d.ts +1 -0
  111. package/dist/components/primitives/color-picker/ColorPicker.styles.d.ts +1 -0
  112. package/dist/components/primitives/context-menu/ContextMenu.d.ts +1 -0
  113. package/dist/components/primitives/context-menu/context-menu-content/ContextMenuContent.d.ts +1 -0
  114. package/dist/components/primitives/context-menu/context-menu-content/ContextMenuContent.styles.d.ts +1 -0
  115. package/dist/components/primitives/context-menu/context-menu-item/ContextMenuItem.d.ts +1 -0
  116. package/dist/components/primitives/context-menu/context-menu-item/ContextMenuItem.styles.d.ts +1 -0
  117. package/dist/components/primitives/context-menu/context-menu-root/ContextMenuRoot.d.ts +1 -0
  118. package/dist/components/primitives/context-menu/context-menu-root/contextMenuRootContext.d.ts +1 -0
  119. package/dist/components/primitives/context-menu/menu/Menu.d.ts +1 -0
  120. package/dist/components/primitives/context-menu/menu/Menu.styles.d.ts +1 -0
  121. package/dist/components/primitives/edit-input/EditInput.d.ts +1 -0
  122. package/dist/components/primitives/edit-input/EditInput.styles.d.ts +1 -0
  123. package/dist/components/primitives/highlighted-text/HighlightedText.d.ts +1 -0
  124. package/dist/components/primitives/highlighted-text/HighlightedText.styles.d.ts +1 -0
  125. package/dist/components/primitives/icon/Icon.d.ts +1 -0
  126. package/dist/components/primitives/icon/Icon.styles.d.ts +1 -0
  127. package/dist/components/primitives/icon/icons.d.ts +9 -1
  128. package/dist/components/primitives/kbd/Kbd.d.ts +1 -0
  129. package/dist/components/primitives/kbd/Kbd.styles.d.ts +1 -0
  130. package/dist/components/primitives/sash/Sash.d.ts +1 -0
  131. package/dist/components/primitives/sash/Sash.styles.d.ts +1 -0
  132. package/dist/components/primitives/separator/Separator.d.ts +1 -0
  133. package/dist/components/primitives/separator/Separator.styles.d.ts +1 -0
  134. package/dist/components/primitives/slider/Slider.d.ts +1 -0
  135. package/dist/components/primitives/slider/Slider.styles.d.ts +1 -0
  136. package/dist/components/primitives/switch/Switch.d.ts +1 -0
  137. package/dist/components/primitives/switch/Switch.styles.d.ts +1 -0
  138. package/dist/components/primitives/text-input/TextInput.d.ts +1 -0
  139. package/dist/components/primitives/toast/Toast.d.ts +1 -0
  140. package/dist/components/primitives/toast/Toast.styles.d.ts +1 -0
  141. package/dist/components/quick-search/QuickSearch.d.ts +1 -0
  142. package/dist/components/quick-search/QuickSearch.styles.d.ts +1 -0
  143. package/dist/components/quick-search/actions.d.ts +1 -0
  144. package/dist/components/schema-sql/SchemaSQL.d.ts +1 -0
  145. package/dist/components/schema-sql/SchemaSQL.styles.d.ts +1 -0
  146. package/dist/components/schema-sql/schema-sql-context-menu/SchemaSQLContextMenu.d.ts +1 -0
  147. package/dist/components/schema-sql/schema-sql-context-menu/menus/bracketMenus.d.ts +1 -0
  148. package/dist/components/settings/Settings.d.ts +1 -0
  149. package/dist/components/settings/Settings.styles.d.ts +1 -0
  150. package/dist/components/settings/settings-lnb/SettingsLnb.d.ts +1 -0
  151. package/dist/components/settings/settings-lnb/SettingsLnb.styles.d.ts +1 -0
  152. package/dist/components/settings/shortcuts/Shortcuts.d.ts +1 -0
  153. package/dist/components/settings/shortcuts/Shortcuts.styles.d.ts +1 -0
  154. package/dist/components/table-view/Table.styles.d.ts +1 -0
  155. package/dist/components/table-view/column/Column.styles.d.ts +1 -0
  156. package/dist/components/table-view/column/column-data-type/ColumnDataType.d.ts +1 -0
  157. package/dist/components/table-view/column/column-data-type/ColumnDataType.styles.d.ts +1 -0
  158. package/dist/components/table-view/column/column-key/ColumnKey.d.ts +1 -0
  159. package/dist/components/table-view/column/column-key/ColumnKey.styles.d.ts +1 -0
  160. package/dist/components/table-view/column/column-not-null/ColumnNotNull.d.ts +1 -0
  161. package/dist/components/table-view/column/column-not-null/ColumnNotNull.styles.d.ts +1 -0
  162. package/dist/components/table-view/column/column-option/ColumnOption.d.ts +1 -0
  163. package/dist/components/table-view/column/column-option/ColumnOption.styles.d.ts +1 -0
  164. package/dist/components/table-view/column/useColumnCell.d.ts +1 -0
  165. package/dist/components/theme/Theme.d.ts +1 -0
  166. package/dist/components/theme-builder/ThemeBuilder.d.ts +1 -0
  167. package/dist/components/theme-builder/ThemeBuilder.styles.d.ts +1 -0
  168. package/dist/components/themeContext.d.ts +1 -0
  169. package/dist/components/toast-container/ToastContainer.d.ts +1 -0
  170. package/dist/components/toast-container/ToastContainer.styles.d.ts +1 -0
  171. package/dist/components/toast-container/openToastWhileRunning.d.ts +1 -0
  172. package/dist/components/toolbar/Toolbar.d.ts +1 -0
  173. package/dist/components/toolbar/Toolbar.styles.d.ts +1 -0
  174. package/dist/components/visualization/Visualization.d.ts +1 -0
  175. package/dist/components/visualization/Visualization.styles.d.ts +1 -0
  176. package/dist/components/visualization/VisualizationScene.d.ts +1 -0
  177. package/dist/components/visualization/createVisualization.d.ts +1 -0
  178. package/dist/components/visualization/graph-node/GraphNode.d.ts +1 -0
  179. package/dist/components/visualization/table/Table.d.ts +1 -0
  180. package/dist/components/visualization/table/column/Column.d.ts +1 -0
  181. package/dist/components/visualization/table/column/Column.styles.d.ts +1 -0
  182. package/dist/components/visualization/visualizationView.d.ts +1 -0
  183. package/dist/constants/language.d.ts +1 -0
  184. package/dist/constants/layout.d.ts +1 -0
  185. package/dist/constants/open.d.ts +1 -0
  186. package/dist/constants/schema.d.ts +1 -0
  187. package/dist/constants/sql/dataType/Databricks.d.ts +1 -0
  188. package/dist/constants/sql/dataType/MSSQL.d.ts +1 -0
  189. package/dist/constants/sql/dataType/MariaDB.d.ts +1 -0
  190. package/dist/constants/sql/dataType/MySQL.d.ts +1 -0
  191. package/dist/constants/sql/dataType/Oracle.d.ts +1 -0
  192. package/dist/constants/sql/dataType/PostgreSQL.d.ts +1 -0
  193. package/dist/constants/sql/dataType/SQLite.d.ts +1 -0
  194. package/dist/constants/sql/dataType/Snowflake.d.ts +1 -0
  195. package/dist/constants/sql/dataType/index.d.ts +1 -0
  196. package/dist/constants/sql/database.d.ts +1 -0
  197. package/dist/constants/tablePlacement.d.ts +15 -0
  198. package/dist/engine/actions.d.ts +1 -0
  199. package/dist/engine/clock.d.ts +1 -0
  200. package/dist/engine/context.d.ts +1 -0
  201. package/dist/engine/generator.actions.d.ts +1 -0
  202. package/dist/engine/history.actions.d.ts +1 -0
  203. package/dist/engine/history.d.ts +1 -0
  204. package/dist/engine/hooks.d.ts +1 -0
  205. package/dist/engine/index.d.ts +1 -0
  206. package/dist/engine/index.js +44 -0
  207. package/dist/engine/modules/editor/actions.d.ts +9 -0
  208. package/dist/engine/modules/editor/atom.actions.d.ts +39 -0
  209. package/dist/engine/modules/editor/generator.actions.d.ts +1 -0
  210. package/dist/engine/modules/editor/history.d.ts +1 -0
  211. package/dist/engine/modules/editor/state.d.ts +11 -0
  212. package/dist/engine/modules/editor/utils/duplicate.d.ts +5 -2
  213. package/dist/engine/modules/editor/utils/findRelationshipColumn.d.ts +1 -0
  214. package/dist/engine/modules/editor/utils/focus.d.ts +1 -0
  215. package/dist/engine/modules/editor/utils/selectRangeColumn.d.ts +1 -0
  216. package/dist/engine/modules/index/actions.d.ts +1 -0
  217. package/dist/engine/modules/index/atom.actions.d.ts +1 -0
  218. package/dist/engine/modules/index/generator.actions.d.ts +1 -0
  219. package/dist/engine/modules/index/history.d.ts +1 -0
  220. package/dist/engine/modules/index-column/actions.d.ts +1 -0
  221. package/dist/engine/modules/index-column/atom.actions.d.ts +1 -0
  222. package/dist/engine/modules/index-column/generator.actions.d.ts +1 -0
  223. package/dist/engine/modules/index-column/history.d.ts +1 -0
  224. package/dist/engine/modules/memo/actions.d.ts +1 -0
  225. package/dist/engine/modules/memo/atom.actions.d.ts +1 -0
  226. package/dist/engine/modules/memo/generator.actions.d.ts +1 -0
  227. package/dist/engine/modules/memo/history.d.ts +1 -0
  228. package/dist/engine/modules/relationship/actions.d.ts +1 -0
  229. package/dist/engine/modules/relationship/atom.actions.d.ts +1 -0
  230. package/dist/engine/modules/relationship/generator.actions.d.ts +1 -0
  231. package/dist/engine/modules/relationship/history.d.ts +1 -0
  232. package/dist/engine/modules/relationship/hooks.d.ts +1 -0
  233. package/dist/engine/modules/settings/actions.d.ts +3 -7
  234. package/dist/engine/modules/settings/atom.actions.d.ts +39 -49
  235. package/dist/engine/modules/settings/generator.actions.d.ts +1 -0
  236. package/dist/engine/modules/settings/history.d.ts +1 -1
  237. package/dist/engine/modules/settings/scrollRange.d.ts +18 -0
  238. package/dist/engine/modules/table/actions.d.ts +1 -0
  239. package/dist/engine/modules/table/atom.actions.d.ts +1 -0
  240. package/dist/engine/modules/table/generator.actions.d.ts +1 -0
  241. package/dist/engine/modules/table/history.d.ts +1 -0
  242. package/dist/engine/modules/table/hooks.d.ts +1 -0
  243. package/dist/engine/modules/table-column/actions.d.ts +1 -0
  244. package/dist/engine/modules/table-column/atom.actions.d.ts +1 -0
  245. package/dist/engine/modules/table-column/generator.actions.d.ts +1 -0
  246. package/dist/engine/modules/table-column/history.d.ts +1 -0
  247. package/dist/engine/modules/table-column/hooks.d.ts +1 -0
  248. package/dist/engine/modules/table-column/utils/dataType.d.ts +1 -0
  249. package/dist/engine/replication-store.d.ts +1 -0
  250. package/dist/engine/rx-operators/actionsFilter.d.ts +1 -0
  251. package/dist/engine/rx-operators/bufferCircuitBreaker.d.ts +1 -0
  252. package/dist/engine/rx-operators/groupByStreamActions.d.ts +1 -0
  253. package/dist/engine/rx-operators/ignoreTagFilter.d.ts +1 -0
  254. package/dist/engine/rx-operators/index.d.ts +1 -0
  255. package/dist/engine/rx-operators/notEmptyActions.d.ts +1 -0
  256. package/dist/engine/rx-operators/readonlyIgnoreFilter.d.ts +1 -0
  257. package/dist/engine/rx-operators/sharedStreamActionsCompressor.d.ts +1 -0
  258. package/dist/engine/rx-store.d.ts +1 -0
  259. package/dist/engine/shared-store.d.ts +1 -0
  260. package/dist/engine/state.d.ts +1 -0
  261. package/dist/engine/store-hooks.d.ts +1 -0
  262. package/dist/engine/store.d.ts +1 -0
  263. package/dist/engine/tag.d.ts +1 -0
  264. package/dist/erd-editor.umd.js +5259 -0
  265. package/dist/hooks/useDarkMode.d.ts +1 -0
  266. package/dist/hooks/useFlipAnimation.d.ts +1 -0
  267. package/dist/hooks/useKeyBindingMap.d.ts +1 -0
  268. package/dist/hooks/useUnmounted.d.ts +1 -0
  269. package/dist/index.d.ts +1 -1
  270. package/dist/index.dev.d.ts +1 -1
  271. package/dist/index.js +20210 -0
  272. package/dist/internal-types/index.d.ts +1 -0
  273. package/dist/konva/batchDraw.d.ts +1 -0
  274. package/dist/konva/host.d.ts +1 -0
  275. package/dist/konva/jsx-types.test-d.d.ts +1 -0
  276. package/dist/konva/scene/columnDropTarget.d.ts +1 -0
  277. package/dist/konva/scene/contentBounds.d.ts +29 -0
  278. package/dist/konva/scene/konvaFlip.d.ts +1 -0
  279. package/dist/konva/scene/metrics.d.ts +1 -0
  280. package/dist/konva/scene/renderScene.d.ts +1 -0
  281. package/dist/konva/scene/viewFreeze.d.ts +20 -0
  282. package/dist/konva/scene/viewport.d.ts +14 -7
  283. package/dist/konva/testHandle.d.ts +1 -0
  284. package/dist/konva/theme.d.ts +1 -0
  285. package/dist/konva/workerDomStubs.d.ts +1 -0
  286. package/dist/schemaGCService--wGet5O7.js +9636 -0
  287. package/dist/services/elk-layout/elkGraph.d.ts +44 -0
  288. package/dist/services/elk-layout/elkLayout.shared-worker.d.ts +2 -0
  289. package/dist/services/elk-layout/elkLayoutOptions.d.ts +25 -0
  290. package/dist/services/elk-layout/elkLayoutService.d.ts +21 -0
  291. package/dist/services/elk-layout/elkWorkerRealm.d.ts +2 -0
  292. package/dist/services/elk-layout/index.d.ts +13 -0
  293. package/dist/services/export-png/ExportScene.d.ts +11 -4
  294. package/dist/services/export-png/documentScene.d.ts +16 -3
  295. package/dist/services/export-png/exportBox.d.ts +27 -0
  296. package/dist/services/export-png/exportPng.shared-worker.d.ts +1 -0
  297. package/dist/services/export-png/exportPngService.d.ts +1 -0
  298. package/dist/services/export-png/index.d.ts +11 -4
  299. package/dist/services/export-png/pixelRatio.d.ts +1 -0
  300. package/dist/services/export-png/renderPng.d.ts +4 -1
  301. package/dist/services/export-png/textWidth.d.ts +1 -0
  302. package/dist/services/schema-gc/index.d.ts +6 -3
  303. package/dist/services/schema-gc/procGC.d.ts +1 -0
  304. package/dist/services/schema-gc/schemaGC.shared-worker.d.ts +1 -0
  305. package/dist/services/schema-gc/schemaGCService.d.ts +1 -0
  306. package/dist/services/shiki/index.d.ts +10 -0
  307. package/dist/services/shiki/shiki.shared-worker.d.ts +2 -0
  308. package/dist/services/shiki/shikiService.d.ts +18 -0
  309. package/dist/styles/colorPicker.style.d.ts +1 -0
  310. package/dist/styles/fonts.styles.d.ts +1 -0
  311. package/dist/styles/reset.styles.d.ts +1 -0
  312. package/dist/styles/scrollbar.styles.d.ts +1 -0
  313. package/dist/styles/typography.styles.d.ts +1 -0
  314. package/dist/themes/radix-ui-theme.config.d.ts +1 -0
  315. package/dist/themes/radix-ui-theme.d.ts +1 -0
  316. package/dist/themes/tokens.d.ts +1 -0
  317. package/dist/utils/arrayHas.d.ts +3 -0
  318. package/dist/utils/attribute.d.ts +1 -0
  319. package/dist/utils/bit.d.ts +1 -0
  320. package/dist/utils/calcMemo.d.ts +1 -0
  321. package/dist/utils/calcTable.d.ts +1 -0
  322. package/dist/utils/clipboard.d.ts +1 -0
  323. package/dist/utils/collection/index.entity.d.ts +1 -0
  324. package/dist/utils/collection/indexColumn.entity.d.ts +1 -0
  325. package/dist/utils/collection/memo.entity.d.ts +1 -0
  326. package/dist/utils/collection/relationship.entity.d.ts +1 -0
  327. package/dist/utils/collection/sequence.d.ts +1 -0
  328. package/dist/utils/collection/table.entity.d.ts +1 -0
  329. package/dist/utils/collection/tableColumn.entity.d.ts +1 -0
  330. package/dist/utils/device-detect/index.d.ts +1 -0
  331. package/dist/utils/domEvent.d.ts +7 -0
  332. package/dist/utils/dragSelect.d.ts +1 -8
  333. package/dist/utils/draw-relationship/calc.d.ts +1 -0
  334. package/dist/utils/draw-relationship/chamfer.d.ts +1 -0
  335. package/dist/utils/draw-relationship/draw.d.ts +1 -0
  336. package/dist/utils/draw-relationship/incremental.d.ts +1 -0
  337. package/dist/utils/draw-relationship/index.d.ts +1 -0
  338. package/dist/utils/draw-relationship/nudge.d.ts +1 -0
  339. package/dist/utils/draw-relationship/pathFinding.d.ts +1 -0
  340. package/dist/utils/draw-relationship/route.d.ts +1 -0
  341. package/dist/utils/draw-relationship/sort.d.ts +1 -0
  342. package/dist/utils/draw-relationship/stub.d.ts +1 -0
  343. package/dist/utils/emitter.d.ts +15 -7
  344. package/dist/utils/file/exportFile.d.ts +5 -4
  345. package/dist/utils/file/importFile.d.ts +1 -0
  346. package/dist/utils/flipAnimation.d.ts +1 -0
  347. package/dist/utils/focus.d.ts +1 -0
  348. package/dist/utils/generator-code/aml.d.ts +1 -0
  349. package/dist/utils/generator-code/csharp.d.ts +1 -0
  350. package/dist/utils/generator-code/dbml.d.ts +1 -0
  351. package/dist/utils/generator-code/drizzle.d.ts +1 -0
  352. package/dist/utils/generator-code/go.d.ts +1 -0
  353. package/dist/utils/generator-code/graphql.d.ts +1 -0
  354. package/dist/utils/generator-code/index.d.ts +1 -0
  355. package/dist/utils/generator-code/java.d.ts +1 -0
  356. package/dist/utils/generator-code/jpa.d.ts +1 -0
  357. package/dist/utils/generator-code/kotlin.d.ts +1 -0
  358. package/dist/utils/generator-code/scala.d.ts +1 -0
  359. package/dist/utils/generator-code/sequelize.d.ts +1 -0
  360. package/dist/utils/generator-code/sqlalchemy.d.ts +1 -0
  361. package/dist/utils/generator-code/typeorm.d.ts +1 -0
  362. package/dist/utils/generator-code/typescript.d.ts +1 -0
  363. package/dist/utils/generator-code/utils.d.ts +1 -0
  364. package/dist/utils/globalEmitter.d.ts +1 -0
  365. package/dist/utils/globalEventObservable.d.ts +7 -1
  366. package/dist/utils/icon.d.ts +1 -0
  367. package/dist/utils/index.d.ts +2 -1
  368. package/dist/utils/internalEvents.d.ts +1 -0
  369. package/dist/utils/keyboard-shortcut/index.d.ts +10 -1
  370. package/dist/utils/keyboard-shortcut/utils.d.ts +1 -0
  371. package/dist/utils/promise.d.ts +7 -0
  372. package/dist/utils/rx-operators/fromCopy.d.ts +1 -0
  373. package/dist/utils/rx-operators/fromDraggable.d.ts +1 -0
  374. package/dist/utils/rx-operators/fromPaste.d.ts +1 -0
  375. package/dist/utils/rx-operators/fromShadowDraggable.d.ts +1 -0
  376. package/dist/utils/rx-operators/takeUnsubscribe.d.ts +1 -0
  377. package/dist/utils/safeCallback.d.ts +5 -0
  378. package/dist/utils/schema-aml-parser/convert.d.ts +1 -0
  379. package/dist/utils/schema-aml-parser/dataType.d.ts +1 -0
  380. package/dist/utils/schema-aml-parser/index.d.ts +1 -0
  381. package/dist/utils/schema-aml-parser/parser.d.ts +1 -0
  382. package/dist/utils/schema-aml-parser/tokenizer.d.ts +1 -0
  383. package/dist/utils/schema-aml-parser/types.d.ts +1 -0
  384. package/dist/utils/schema-dbml-parser/convert.d.ts +1 -0
  385. package/dist/utils/schema-dbml-parser/dataType.d.ts +1 -0
  386. package/dist/utils/schema-dbml-parser/index.d.ts +1 -0
  387. package/dist/utils/schema-dbml-parser/parser.d.ts +1 -0
  388. package/dist/utils/schema-dbml-parser/tokenizer.d.ts +1 -0
  389. package/dist/utils/schema-dbml-parser/types.d.ts +1 -0
  390. package/dist/utils/schema-graphql-parser/convert.d.ts +1 -0
  391. package/dist/utils/schema-graphql-parser/dataType.d.ts +1 -0
  392. package/dist/utils/schema-graphql-parser/index.d.ts +1 -0
  393. package/dist/utils/schema-graphql-parser/parser.d.ts +1 -0
  394. package/dist/utils/schema-graphql-parser/types.d.ts +1 -0
  395. package/dist/utils/schema-sql/Databricks.d.ts +1 -0
  396. package/dist/utils/schema-sql/MSSQL.d.ts +1 -0
  397. package/dist/utils/schema-sql/MariaDB.d.ts +1 -0
  398. package/dist/utils/schema-sql/MySQL.d.ts +1 -0
  399. package/dist/utils/schema-sql/Oracle.d.ts +1 -0
  400. package/dist/utils/schema-sql/PostgreSQL.d.ts +1 -0
  401. package/dist/utils/schema-sql/SQLite.d.ts +1 -0
  402. package/dist/utils/schema-sql/Snowflake.d.ts +1 -0
  403. package/dist/utils/schema-sql/index.d.ts +1 -0
  404. package/dist/utils/schema-sql/utils.d.ts +1 -0
  405. package/dist/utils/schema-sql-parser/index.d.ts +1 -0
  406. package/dist/utils/schema-sql-parser/utils.d.ts +1 -0
  407. package/dist/utils/sharedColor.d.ts +1 -0
  408. package/dist/utils/table-clipboard/copy.d.ts +15 -2
  409. package/dist/utils/table-clipboard/index.d.ts +1 -0
  410. package/dist/utils/table-clipboard/paste.d.ts +1 -0
  411. package/dist/utils/table-clipboard/payload.d.ts +30 -1
  412. package/dist/utils/table-clipboard/placement.d.ts +1 -0
  413. package/dist/utils/text.d.ts +1 -0
  414. package/dist/utils/validation.d.ts +2 -1
  415. package/dist/workers/elkLayout.shared-worker.js +1 -0
  416. package/dist/workers/exportPng.shared-worker.js +54 -0
  417. package/dist/workers/schemaGC.shared-worker.js +1 -0
  418. package/dist/workers/shiki.shared-worker.js +1 -0
  419. package/dist/workers/spawn.d.ts +10 -0
  420. package/dist/workers/spawn.inline.d.ts +10 -0
  421. package/package.json +55 -51
  422. package/dist/components/erd/hide-sign/HideSign.d.ts +0 -6
  423. package/dist/components/erd/hide-sign/HideSign.styles.d.ts +0 -1
  424. package/dist/components/erd/hide-sign/hideSignBounds.d.ts +0 -9
  425. package/dist/components/erd-editor/ErdEditor.stories.d.ts +0 -17
  426. package/dist/components/primitives/button/Button.stories.d.ts +0 -26
  427. package/dist/components/primitives/code-block/CodeBlock.stories.d.ts +0 -25
  428. package/dist/components/primitives/color-picker/ColorPicker.stories.d.ts +0 -26
  429. package/dist/components/primitives/context-menu/ContextMenu.stories.d.ts +0 -16
  430. package/dist/components/primitives/edit-input/EditInput.stories.d.ts +0 -36
  431. package/dist/components/primitives/highlighted-text/HighlightedText.stories.d.ts +0 -23
  432. package/dist/components/primitives/icon/Icon.stories.d.ts +0 -10
  433. package/dist/components/primitives/kbd/Kbd.stories.d.ts +0 -17
  434. package/dist/components/primitives/sash/Sash.stories.d.ts +0 -30
  435. package/dist/components/primitives/separator/Separator.stories.d.ts +0 -25
  436. package/dist/components/primitives/slider/Slider.stories.d.ts +0 -23
  437. package/dist/components/primitives/switch/Switch.stories.d.ts +0 -21
  438. package/dist/components/primitives/text-input/TextInput.stories.d.ts +0 -41
  439. package/dist/components/primitives/toast/Toast.stories.d.ts +0 -33
  440. package/dist/engine.js +0 -42
  441. package/dist/erd-editor.js +0 -41824
  442. package/dist/schemaGCService-DrlqIen8.js +0 -17549
  443. package/dist/services/shikiService.d.ts +0 -8
  444. package/dist/themes/textColor.d.ts +0 -2
@@ -0,0 +1,44 @@
1
+ import { RootState } from '../../engine/state';
2
+ import { ElkPlacement } from './elkLayoutOptions';
3
+ export type ElkLayoutNode = {
4
+ id: string;
5
+ width: number;
6
+ height: number;
7
+ };
8
+ export type ElkLayoutEdge = {
9
+ source: string;
10
+ target: string;
11
+ /**
12
+ * Which row of each table the relationship meets, counted from the top, or
13
+ * -1 where the column it names is gone. A placement that hands ELK ports
14
+ * orders them by this, so a layout reads the connectors the editor draws.
15
+ */
16
+ sourceRow: number;
17
+ targetRow: number;
18
+ };
19
+ /**
20
+ * A layout as it crosses a realm boundary. Only the boxes and what joins them
21
+ * travel, so the answering realm measures no text and reads no document.
22
+ */
23
+ export type ElkLayoutRequest = {
24
+ placement: ElkPlacement;
25
+ nodes: ElkLayoutNode[];
26
+ edges: ElkLayoutEdge[];
27
+ };
28
+ /** Where one table's top left corner ended up, in scene units. */
29
+ export type ElkLayoutPoint = {
30
+ id: string;
31
+ x: number;
32
+ y: number;
33
+ };
34
+ export declare function createElkLayoutRequest(state: RootState, placement: ElkPlacement): ElkLayoutRequest;
35
+ /**
36
+ * Where each table lands, over the middle of what the document already draws.
37
+ * ELK lays every graph out from its own origin, so a document placed twice
38
+ * would otherwise walk away from where it was read.
39
+ *
40
+ * @example
41
+ * onChange(toTablePoints(store.state, request, await createElkLayout(request)));
42
+ */
43
+ export declare function toTablePoints(state: RootState, { nodes }: ElkLayoutRequest, points: ElkLayoutPoint[]): ElkLayoutPoint[];
44
+ //# sourceMappingURL=elkGraph.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=elkLayout.shared-worker.d.ts.map
@@ -0,0 +1,25 @@
1
+ import { LayoutOptions } from 'elkjs/lib/elk-api';
2
+ import { TablePlacement } from '../../constants/tablePlacement';
3
+ /** The placements ELK answers, which is every one but the force simulation. */
4
+ export type ElkPlacement = Exclude<TablePlacement, typeof TablePlacement.force>;
5
+ export declare function isElkPlacement(placement: TablePlacement): placement is ElkPlacement;
6
+ /**
7
+ * Whether ELK is handed a port per relationship endpoint rather than a bare
8
+ * box. The layered placements ask only where a table goes; flow also says
9
+ * where each connector meets it, which is what pulls the crossings out.
10
+ */
11
+ export declare function usesPorts(placement: ElkPlacement): boolean;
12
+ /**
13
+ * What ELK is told, for the placement the author picked.
14
+ *
15
+ * @example
16
+ * const graph = { id: 'root', layoutOptions: elkLayoutOptions(placement) };
17
+ */
18
+ export declare function elkLayoutOptions(placement: ElkPlacement): LayoutOptions;
19
+ /**
20
+ * Every algorithm the placements name. ELK registers the metadata of these and
21
+ * no others, so it is read off the options rather than listed: a placement
22
+ * naming an algorithm left out here would be answered with an error.
23
+ */
24
+ export declare const ELK_ALGORITHMS: string[];
25
+ //# sourceMappingURL=elkLayoutOptions.d.ts.map
@@ -0,0 +1,21 @@
1
+ import { ElkNode, ElkPort } from 'elkjs/lib/elk-api';
2
+ import { ElkLayoutEdge, ElkLayoutPoint, ElkLayoutRequest } from './elkGraph';
3
+ /** One port per relationship endpoint, grouped by the table it sits on. */
4
+ export declare function portsByNode(edges: ElkLayoutEdge[]): Map<string, ElkPort[]>;
5
+ /** The graph ELK is handed, which is flat: an ERD nests no table in another. */
6
+ export declare function toElkGraph({ placement, nodes, edges, }: ElkLayoutRequest): ElkNode;
7
+ /**
8
+ * Places tables by an ELK algorithm, off the thread that asked for it. What
9
+ * comes back is a corner per table and nothing else, because the editor routes
10
+ * its own relationship lines and drops the sections ELK computed for them.
11
+ */
12
+ export declare class ElkLayoutService {
13
+ /**
14
+ * Loading ELK at all is what proves this realm can run it. A shared worker
15
+ * that throws while evaluating reports it to the console and to nobody else:
16
+ * its port stays open and every call after it hangs.
17
+ */
18
+ ready(): Promise<boolean>;
19
+ layout(request: ElkLayoutRequest): Promise<ElkLayoutPoint[]>;
20
+ }
21
+ //# sourceMappingURL=elkLayoutService.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=elkWorkerRealm.d.ts.map
@@ -0,0 +1,13 @@
1
+ import { ElkLayoutPoint, ElkLayoutRequest } from './elkGraph';
2
+ export { createElkLayoutRequest, type ElkLayoutPoint, type ElkLayoutRequest, toTablePoints, } from './elkGraph';
3
+ export { type ElkPlacement, isElkPlacement } from './elkLayoutOptions';
4
+ /**
5
+ * Where every table goes under the placement the author picked. ELK runs on a
6
+ * worker and only there, because laying a large schema out holds a thread for
7
+ * long enough to stop the editor drawing.
8
+ *
9
+ * @example
10
+ * const points = await createElkLayout(createElkLayoutRequest(state, placement));
11
+ */
12
+ export declare function createElkLayout(request: ElkLayoutRequest): Promise<ElkLayoutPoint[]>;
13
+ //# sourceMappingURL=index.d.ts.map
@@ -1,9 +1,16 @@
1
1
  import { FC } from '@dineug/r-html';
2
- export type ExportSceneProps = {};
2
+ import { Rect } from '../../konva/scene/metrics';
3
+ export type ExportSceneProps = {
4
+ /** The scene box the image holds, margin included, in scene units. */
5
+ box: Rect;
6
+ /** What the box is scaled by so a canvas can hold the raster of it. */
7
+ scale: number;
8
+ };
3
9
  /**
4
- * The whole canvas box on one layer, with no culling and no zoom. An exported
5
- * image is not a picture of the screen, so nothing here reads the scroll, the
6
- * zoom or the viewport the editor's own scene is placed with.
10
+ * Everything the document draws on one layer, with no culling. The zoom reaches
11
+ * the image, in the scale the layer is placed at and in the spelling a table is
12
+ * drawn with; the scroll and the viewport do not, so the whole document is held.
7
13
  */
8
14
  declare const ExportScene: FC<ExportSceneProps>;
9
15
  export default ExportScene;
16
+ //# sourceMappingURL=ExportScene.d.ts.map
@@ -1,20 +1,33 @@
1
1
  import { Stage } from 'konva/lib/Stage';
2
+ import { Rect } from '../../konva/scene/metrics';
2
3
  import { Theme } from '../../themes/tokens';
3
4
  export type DocumentSceneOptions = {
4
5
  doc: string;
5
6
  theme: Theme;
6
7
  toWidth: (text: string) => number;
8
+ /**
9
+ * The zoom to draw at, for a caller whose editor is at one the document does
10
+ * not carry. Left out, the document's own zoom is what the image is drawn at.
11
+ */
12
+ zoomLevel?: number;
7
13
  };
8
14
  export type DocumentScene = {
9
15
  stage: Stage;
16
+ /** What the Stage holds, in scene units, before it was scaled to fit. */
17
+ box: Rect;
18
+ /** The factor between that box and the Stage the scene was drawn on. */
19
+ scale: number;
20
+ /** The zoom that was asked for, which scale is that cut to what a canvas holds. */
21
+ zoomLevel: number;
10
22
  destroy: () => void;
11
23
  };
12
24
  /**
13
25
  * The whole document on a Stage of its own, off any screen. The store is built
14
- * here rather than borrowed so the editor's scroll, zoom and selection cannot
15
- * reach the image, which is the whole difference between this and a screenshot.
26
+ * here rather than borrowed, so the editor's scroll and selection cannot reach
27
+ * the image and it holds the whole document however it was being looked at.
16
28
  *
17
29
  * @example
18
30
  * const scene = await renderDocumentScene({ doc, theme, toWidth });
19
31
  */
20
- export declare function renderDocumentScene({ doc, theme, toWidth, }: DocumentSceneOptions): Promise<DocumentScene>;
32
+ export declare function renderDocumentScene({ doc, theme, toWidth, zoomLevel, }: DocumentSceneOptions): Promise<DocumentScene>;
33
+ //# sourceMappingURL=documentScene.d.ts.map
@@ -0,0 +1,27 @@
1
+ import { RootState } from '../../engine/state';
2
+ import { Rect } from '../../konva/scene/metrics';
3
+ /**
4
+ * The breathing room around the drawn document, in scene units, and nothing
5
+ * more: a connector measured against a retired sort epoch is already inflated
6
+ * by getRouteBBox itself, and the union below holds that box before this is added.
7
+ */
8
+ export declare const EXPORT_MARGIN = 80;
9
+ /**
10
+ * Everything the image has to hold: every table and memo, every connector the
11
+ * document is set to show, and the margin around the lot. An empty document is
12
+ * the margin on its own, which is a box a canvas can still hold.
13
+ *
14
+ * @example
15
+ * const box = getExportRect(store.state);
16
+ */
17
+ export declare function getExportRect(state: RootState): Rect;
18
+ /**
19
+ * What the box is drawn at: the zoom the image was asked for, cut to whatever a
20
+ * canvas can hold. A document is unbounded now, so this is what keeps the Stage
21
+ * itself inside the ceiling that fitPixelRatio keeps the raster inside.
22
+ *
23
+ * @example
24
+ * const scale = getExportScale(getExportRect(store.state), settings.zoomLevel);
25
+ */
26
+ export declare function getExportScale({ width, height }: Rect, zoomLevel?: number): number;
27
+ //# sourceMappingURL=exportBox.d.ts.map
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=exportPng.shared-worker.d.ts.map
@@ -22,3 +22,4 @@ export declare class ExportPngService {
22
22
  render(request: ExportPngRequest): Promise<RenderPngResult>;
23
23
  private createToWidth;
24
24
  }
25
+ //# sourceMappingURL=exportPngService.d.ts.map
@@ -28,6 +28,12 @@ export type DocumentPngOptions = {
28
28
  */
29
29
  toWidth: ToWidth;
30
30
  pixelRatio?: number;
31
+ /**
32
+ * The zoom the image is drawn at, which is the editor's own rather than the
33
+ * document's whenever the author asked for the zoom not to be saved. Left
34
+ * out, the image is drawn at the zoom the document carries.
35
+ */
36
+ zoomLevel?: number;
31
37
  /**
32
38
  * Called once, after a file exists, when the box outran what a canvas holds
33
39
  * and the image had to be scaled down. A caller with somewhere to put it is
@@ -38,11 +44,12 @@ export type DocumentPngOptions = {
38
44
  onProgress?: (progress: ExportPngProgress) => void;
39
45
  };
40
46
  /**
41
- * A png of the whole canvas box, whatever the editor is scrolled or zoomed to.
42
- * The scene is drawn again from the document rather than read off the screen,
43
- * which is what makes the image the same however the editor is being viewed.
47
+ * A png of everything the document draws, at the zoom it is being read at. The
48
+ * scene is drawn again from the document rather than read off the screen, so
49
+ * the image holds the whole document however far it was scrolled away.
44
50
  *
45
51
  * @example
46
52
  * const blob = await createDocumentPng({ doc: toJson(store.state), theme, toWidth });
47
53
  */
48
- export declare function createDocumentPng({ doc, theme, toWidth, pixelRatio, onResolutionReduced, onProgress, }: DocumentPngOptions): Promise<Blob>;
54
+ export declare function createDocumentPng({ doc, theme, toWidth, pixelRatio, zoomLevel, onResolutionReduced, onProgress, }: DocumentPngOptions): Promise<Blob>;
55
+ //# sourceMappingURL=index.d.ts.map
@@ -19,3 +19,4 @@ export declare const CANVAS_SIDE_MAX = 32767;
19
19
  * fitPixelRatio(1, 20000, 20000);
20
20
  */
21
21
  export declare function fitPixelRatio(pixelRatio: number, width: number, height: number): number;
22
+ //# sourceMappingURL=pixelRatio.d.ts.map
@@ -12,6 +12,8 @@ export type RenderPngRequest = {
12
12
  doc: string;
13
13
  theme: Theme;
14
14
  pixelRatio: number;
15
+ /** The zoom to draw at; the document's own when the caller names none. */
16
+ zoomLevel?: number;
15
17
  };
16
18
  export type RenderPngResult = {
17
19
  blob: Blob;
@@ -32,6 +34,7 @@ export type RenderPngResult = {
32
34
  * @example
33
35
  * const { blob } = await renderDocumentPng({ doc, theme, pixelRatio: 1, toWidth });
34
36
  */
35
- export declare function renderDocumentPng({ doc, theme, pixelRatio, toWidth, }: RenderPngRequest & {
37
+ export declare function renderDocumentPng({ doc, theme, pixelRatio, zoomLevel, toWidth, }: RenderPngRequest & {
36
38
  toWidth: ToWidth;
37
39
  }): Promise<RenderPngResult>;
40
+ //# sourceMappingURL=renderPng.d.ts.map
@@ -25,3 +25,4 @@ export declare function createOffscreenToWidth(): ToWidth | null;
25
25
  export declare function measureFontProbe(toWidth: ToWidth): number[];
26
26
  /** Whether two realms lay the probe strings out to the same pixel. */
27
27
  export declare function sameFontProbe(a: number[], b: number[]): boolean;
28
+ //# sourceMappingURL=textWidth.d.ts.map
@@ -7,9 +7,12 @@ export type GCIds = {
7
7
  indexColumnIds: string[];
8
8
  memoIds: string[];
9
9
  };
10
+ /** What a caller gets: the collector's one method, wherever it runs. */
11
+ export type SchemaGCRunner = Pick<SchemaGCService, 'run'>;
10
12
  /**
11
13
  * Runs the collector off the main thread where a host builds a shared worker.
12
- * There is no dedicated Worker rung between the two, because an inline worker
13
- * import is a second copy of this whole service in the bundle.
14
+ * There is no dedicated Worker rung between the two, because a second worker
15
+ * file is a second copy of this whole service for the consumer to ship.
14
16
  */
15
- export declare function getSchemaGCService(): SchemaGCService | null;
17
+ export declare function getSchemaGCService(): SchemaGCRunner | null;
18
+ //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,4 @@
1
1
  import { ERDEditorSchemaV3 } from '@dineug/erd-editor-schema';
2
2
  import { GCIds } from '.';
3
3
  export declare function procGC({ collections }: ERDEditorSchemaV3, { tableIds, tableColumnIds, relationshipIds, indexIds, indexColumnIds, memoIds, }: GCIds): void;
4
+ //# sourceMappingURL=procGC.d.ts.map
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=schemaGC.shared-worker.d.ts.map
@@ -2,3 +2,4 @@ import { GCIds } from '.';
2
2
  export declare class SchemaGCService {
3
3
  run(source: string): Promise<GCIds>;
4
4
  }
5
+ //# sourceMappingURL=schemaGCService.d.ts.map
@@ -0,0 +1,10 @@
1
+ import { ShikiService } from './shikiService';
2
+ import * as Comlink from 'comlink';
3
+ export type { ShikiService } from './shikiService';
4
+ /**
5
+ * The highlighter the code panels read, built on the first panel that asks for
6
+ * one and kept for the session. Shiki and its grammars live behind the worker
7
+ * boundary, so a host that builds none is answered with null and plain text.
8
+ */
9
+ export declare function getShikiService(): Comlink.Remote<ShikiService> | null;
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=shiki.shared-worker.d.ts.map
@@ -0,0 +1,18 @@
1
+ import { Lang } from '../../constants/language';
2
+ /**
3
+ * Shiki behind the one method the code panels call, instantiated in the shared
4
+ * worker and nowhere else. The grammars are exactly what constants/language.ts
5
+ * maps a Language onto, imported one by one so the worker carries no others.
6
+ *
7
+ * @example
8
+ * const html = await new ShikiService().codeToHtml('select 1', { lang: 'sql' });
9
+ */
10
+ export declare class ShikiService {
11
+ private highlighter;
12
+ constructor();
13
+ codeToHtml(code: string, { lang, theme }: {
14
+ lang: Lang;
15
+ theme?: 'dark' | 'light';
16
+ }): Promise<string>;
17
+ }
18
+ //# sourceMappingURL=shikiService.d.ts.map
@@ -4,3 +4,4 @@
4
4
  * matches literal class names that scoping would rename out from under it.
5
5
  */
6
6
  export declare const colorPickerStyle: import('@dineug/r-html').CSSTemplateLiterals;
7
+ //# sourceMappingURL=colorPicker.style.d.ts.map
@@ -2,3 +2,4 @@ export declare const TextFontFamily: "-apple-system, BlinkMacSystemFont, 'Segoe
2
2
  export declare const CodeFontFamily: "'Menlo', 'Consolas', 'Bitstream Vera Sans Mono', monospace, 'Apple Color Emoji', 'Segoe UI Emoji'";
3
3
  /** Global, not scoped: :host is the shadow host, which no component class matches. */
4
4
  export declare const fontsStyle: import('@dineug/r-html').CSSTemplateLiterals;
5
+ //# sourceMappingURL=fonts.styles.d.ts.map
@@ -3,3 +3,4 @@
3
3
  * none of which survives having a component class prepended to it.
4
4
  */
5
5
  export declare const resetStyle: import('@dineug/r-html').CSSTemplateLiterals;
6
+ //# sourceMappingURL=reset.styles.d.ts.map
@@ -4,3 +4,4 @@
4
4
  * literal name (class=${['scrollbar', ...]}) — scoping it would rename it out from under them.
5
5
  */
6
6
  export declare const scrollbarStyle: import('@dineug/r-html').CSSTemplateLiterals;
7
+ //# sourceMappingURL=scrollbar.styles.d.ts.map
@@ -13,3 +13,4 @@ export declare const typography: {
13
13
  };
14
14
  /** Global, not scoped: :host is the shadow host, which no component class matches. */
15
15
  export declare const typographyStyle: import('@dineug/r-html').CSSTemplateLiterals;
16
+ //# sourceMappingURL=typography.styles.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import { Theme } from './tokens';
2
2
  export declare const ThemeConfig: Theme;
3
+ //# sourceMappingURL=radix-ui-theme.config.d.ts.map
@@ -1790,3 +1790,4 @@ export type ThemeOptions = {
1790
1790
  accentColor: AccentColor;
1791
1791
  };
1792
1792
  export declare const createTheme: ({ grayColor, accentColor, appearance, }: ThemeOptions) => Theme;
1793
+ //# sourceMappingURL=radix-ui-theme.d.ts.map
@@ -71,3 +71,4 @@ export declare const toThemeVariableName: (token: string) => string;
71
71
  /** The custom property a host document overrides that token through. */
72
72
  export declare const toThemeOverrideVariableName: (token: string) => string;
73
73
  export declare const themeToTokensString: (theme: Theme) => string;
74
+ //# sourceMappingURL=tokens.d.ts.map
@@ -0,0 +1,3 @@
1
+ /** A membership test over one array, built once so a hot path asks a Set rather than an array. */
2
+ export declare function arrayHas<T>(arr: Array<T> | ReadonlyArray<T>): (value: T) => boolean;
3
+ //# sourceMappingURL=arrayHas.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare function restAttrs(value: Record<string, any>): Record<string, any>;
2
+ //# sourceMappingURL=attribute.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare function bHas(bit: number, value: number): boolean;
2
+ //# sourceMappingURL=bit.d.ts.map
@@ -1,3 +1,4 @@
1
1
  import { Memo } from '../internal-types';
2
2
  export declare function calcMemoWidth(memo: Memo): number;
3
3
  export declare function calcMemoHeight(memo: Memo): number;
4
+ //# sourceMappingURL=calcMemo.d.ts.map
@@ -21,3 +21,4 @@ export type ColumnWidth = {
21
21
  };
22
22
  export declare function calcTableHeight(table: Table): number;
23
23
  export declare function recalculateTableWidth({ doc: { tableIds }, collections }: RootState, { toWidth }: EngineContext): void;
24
+ //# sourceMappingURL=calcTable.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare function copyToClipboard(value: string): Promise<void>;
2
+ //# sourceMappingURL=clipboard.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import { DeepPartial, Index } from '../../internal-types';
2
2
  export declare const createIndex: (value?: DeepPartial<Index>) => Index;
3
+ //# sourceMappingURL=index.entity.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import { DeepPartial, IndexColumn } from '../../internal-types';
2
2
  export declare const createIndexColumn: (value?: DeepPartial<IndexColumn>) => IndexColumn;
3
+ //# sourceMappingURL=indexColumn.entity.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import { DeepPartial, Memo } from '../../internal-types';
2
2
  export declare const createMemo: (value?: DeepPartial<Memo>) => Memo;
3
+ //# sourceMappingURL=memo.entity.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import { DeepPartial, Relationship } from '../../internal-types';
2
2
  export declare const createRelationship: (value?: DeepPartial<Relationship>) => Relationship;
3
+ //# sourceMappingURL=relationship.entity.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare function addAndSort(ids: string[], seqIds: string[], id: string): void;
2
+ //# sourceMappingURL=sequence.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import { DeepPartial, Table } from '../../internal-types';
2
2
  export declare const createTable: (value?: DeepPartial<Table>) => Table;
3
+ //# sourceMappingURL=table.entity.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import { Column, DeepPartial } from '../../internal-types';
2
2
  export declare const createColumn: (value?: DeepPartial<Column>) => Column;
3
+ //# sourceMappingURL=tableColumn.entity.d.ts.map
@@ -6,3 +6,4 @@ export declare const hasWindows: () => boolean;
6
6
  export declare const hasChrome: () => boolean;
7
7
  export declare const hasSafari: () => boolean;
8
8
  export declare const hasFirefox: () => boolean;
9
+ //# sourceMappingURL=index.d.ts.map
@@ -4,3 +4,10 @@ export declare function onStop(event: Event): void;
4
4
  export declare function onStopImmediate(event: Event): void;
5
5
  export declare function isMouseEvent(event: Event): event is MouseEvent;
6
6
  export declare function isTouchEvent(event: Event): event is TouchEvent;
7
+ /**
8
+ * Takes selection off an element for the length of a gesture and hands back the
9
+ * undo. A press allowed to start one lets the browser promote the drag to a
10
+ * native one, which swallows the mouseup the gesture was waiting for.
11
+ */
12
+ export declare function suppressSelection(el: HTMLElement): () => void;
13
+ //# sourceMappingURL=domEvent.d.ts.map
@@ -1,4 +1,3 @@
1
- import { Point } from '../internal-types';
2
1
  type PointToPoint = {
3
2
  x1: number;
4
3
  y1: number;
@@ -13,11 +12,5 @@ export type Rect = {
13
12
  };
14
13
  export declare function isOverlapPosition(dragRect: Rect, rect: Rect): boolean;
15
14
  export declare function getOverlapPosition(dragRect: Rect, rect: Rect): PointToPoint | null;
16
- export declare function getZoomViewport(width: number, height: number, zoomLevel: number): Rect;
17
- export declare const getAbsolutePosition: (overlapPosition: PointToPoint, zoomViewport: Rect, zoomLevel: number) => PointToPoint;
18
- export declare function getAbsoluteZoomPoint({ x, y }: Point, width: number, height: number, zoomLevel: number): {
19
- x: number;
20
- y: number;
21
- };
22
- export declare function getAbsolutePoint(point: Point, width: number, height: number, zoomLevel: number): Point;
23
15
  export {};
16
+ //# sourceMappingURL=dragSelect.d.ts.map
@@ -4,3 +4,4 @@ import { ObjectPoint } from '.';
4
4
  export declare function tableToObjectPoint(state: RootState, table: Table): ObjectPoint;
5
5
  export declare function euclideanDistance(a: Point, b: Point): number;
6
6
  export declare function manhattanDistance(a: Point, b: Point): number;
7
+ //# sourceMappingURL=calc.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import { Point } from '../../internal-types';
2
2
  export declare function chamferPolyline(points: Point[], size: number): Point[];
3
+ //# sourceMappingURL=chamfer.d.ts.map
@@ -2,3 +2,4 @@ import { DrawRelationship } from '../../engine/modules/editor/state';
2
2
  import { RootState } from '../../engine/state';
3
3
  import { DrawPath } from '.';
4
4
  export declare function getDraw(state: RootState, draw: DrawRelationship): DrawPath;
5
+ //# sourceMappingURL=draw.d.ts.map
@@ -68,3 +68,4 @@ export type NudgeMemo = {
68
68
  * here, so this runs once per sort.
69
69
  */
70
70
  export declare function diffTableBoxes(cache: SortCache, obstacles: Obstacles): DirtyBox[] | null;
71
+ //# sourceMappingURL=incremental.d.ts.map
@@ -170,3 +170,4 @@ export declare function nextSortEpoch(): void;
170
170
  * route from this sort the stub ends are unknown, so the padding carries them.
171
171
  */
172
172
  export declare function getRouteBBox(relationship: Relationship, strokeWidth?: number): BBox;
173
+ //# sourceMappingURL=index.d.ts.map
@@ -2,3 +2,4 @@ import { Point } from '../../internal-types';
2
2
  import { NudgeMemo } from './incremental';
3
3
  import { Obstacles } from './route';
4
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
@@ -7,3 +7,4 @@ export declare function getRelationshipPath(relationship: Relationship): Relatio
7
7
  * construction, so each contributes its far end and nothing else.
8
8
  */
9
9
  export declare function toPathD(segments: Array<[Point, Point]>): string;
10
+ //# sourceMappingURL=pathFinding.d.ts.map
@@ -25,3 +25,4 @@ export declare function countBlocked(points: Point[], obstacles: Obstacles, skip
25
25
  * nothing is feasible — a connector always has to be drawn.
26
26
  */
27
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
@@ -34,3 +34,4 @@ export declare function stubEnds(relationship: Relationship): StubEnds;
34
34
  * decorations and the routed polyline.
35
35
  */
36
36
  export declare const GUIDE_START: number;
37
+ //# sourceMappingURL=stub.d.ts.map