@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
@@ -37,3 +37,4 @@ export type Ctx = Parameters<typeof useContext>[0];
37
37
  export type DeepPartial<T> = T extends string | number | bigint | boolean | null | undefined | symbol ? T | undefined : T extends Array<infer ArrayType> ? Array<DeepPartial<ArrayType>> : T extends ReadonlyArray<infer ArrayType> ? ReadonlyArray<ArrayType> : {
38
38
  [K in keyof T]?: DeepPartial<T[K]>;
39
39
  };
40
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,42 @@
1
+ import { Layer } from 'konva/lib/Layer';
2
+ /**
3
+ * The commit counter the host's epoch scoped reconcile reads. It advances once
4
+ * per flush and never on a deferred hop, so one commit reconciles a parent at
5
+ * most once however many hops the fixed point took.
6
+ */
7
+ export declare function currentEpoch(): number;
8
+ /**
9
+ * Registers work that settles the scene before a commit draws it. The host
10
+ * reconciles its ledger here, which is what makes the flush the one boundary
11
+ * where the konva tree and the ledger are known to agree.
12
+ */
13
+ export declare function onBeforeFlush(listener: () => void): () => void;
14
+ /**
15
+ * Arms the gate without naming a layer, for a change that has to reach the
16
+ * fixed point but nothing to draw yet. The arming mark counts as dirt itself,
17
+ * so the commit always lands at least one hop later than the write.
18
+ */
19
+ export declare function requestFlush(): void;
20
+ /**
21
+ * Records that a layer needs redrawing and arms the gate. A layer a Tween has
22
+ * claimed is parked instead, and the end of that window hands it back.
23
+ */
24
+ export declare function markDirty(layer: Layer): void;
25
+ /**
26
+ * Hands the draw authority for one layer to a Tween, whose animation frame
27
+ * draws it. Windows count rather than latch, because one FLIP tweens many
28
+ * nodes of a layer and each of them opens and closes its own.
29
+ */
30
+ export declare function beginAnimation(layer: Layer): void;
31
+ /**
32
+ * Closes one Tween window and, with the last one on a layer, hands the marks
33
+ * parked meanwhile back to the gate as a single re-arm.
34
+ */
35
+ export declare function endAnimation(layer: Layer): void;
36
+ /**
37
+ * Resolves once the scene has settled. An open Tween window anywhere defers
38
+ * the answer to the end of that window, an armed gate to its flush, and an
39
+ * idle gate answers at once so a call after a flush never hangs.
40
+ */
41
+ export declare function whenDrawn(): Promise<void>;
42
+ //# sourceMappingURL=batchDraw.d.ts.map
@@ -0,0 +1,30 @@
1
+ import { DOMTemplateLiterals, HostAdapter } from '@dineug/r-html';
2
+ import { Stage } from 'konva/lib/Stage';
3
+ /**
4
+ * The name the minimap Stage carries, and the whole reach of the id ban below.
5
+ * An id scan over Konva.stages is ambiguous the moment two stages spell one id,
6
+ * so ids belong to the main canvas and the minimap locates by name.
7
+ */
8
+ export declare const MINIMAP_STAGE_NAME = "minimap";
9
+ /**
10
+ * What the marker bench reads. A reconcile gone quadratic is invisible from
11
+ * outside the host, so the counters name the shape of the work itself rather
12
+ * than a wall clock.
13
+ */
14
+ export interface HostStats {
15
+ reconcile: number;
16
+ scan: number;
17
+ attach: number;
18
+ drop: number;
19
+ order: number;
20
+ setZIndex: number;
21
+ }
22
+ export declare const hostStats: HostStats;
23
+ export declare function resetHostStats(): void;
24
+ export declare const konvaAdapter: HostAdapter;
25
+ /** Spelt out rather than inferred: the inferred one names an r-html internal. */
26
+ type KonvaTag = (strings: TemplateStringsArray, ...values: any[]) => DOMTemplateLiterals;
27
+ export declare const konva: KonvaTag;
28
+ export declare function renderKonva(stage: Stage, templateLiterals?: DOMTemplateLiterals | null): void;
29
+ export {};
30
+ //# sourceMappingURL=host.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=jsx-types.test-d.d.ts.map
@@ -0,0 +1,14 @@
1
+ import { RootState } from '../../engine/state';
2
+ import { Point } from '../../internal-types';
3
+ export type ColumnDropTarget = {
4
+ tableId: string;
5
+ columnId: string;
6
+ index: number;
7
+ };
8
+ /**
9
+ * The row a column drag would drop on, in canvas coordinates, or null over a
10
+ * header, over bare canvas and past the last row. Arithmetic on the rects the
11
+ * scene lays rows out with, never a hit canvas read, which costs a frame.
12
+ */
13
+ export declare function findColumnDropTarget(state: RootState, point: Point): ColumnDropTarget | null;
14
+ //# sourceMappingURL=columnDropTarget.d.ts.map
@@ -0,0 +1,29 @@
1
+ import { RootState } from '../../engine/state';
2
+ import { Rect } from './metrics';
3
+ /** The smallest box holding both. */
4
+ export declare function unionRect(a: Rect, b: Rect): Rect;
5
+ /** A table and the point it is about to be moved to, named before the move is dispatched. */
6
+ export type TableMove = {
7
+ id: string;
8
+ x: number;
9
+ y: number;
10
+ };
11
+ /**
12
+ * The box every table and memo of the document fits inside, in scene units, or
13
+ * null for a document holding none. Computed afresh on every call: the state is
14
+ * one mutable proxy written in place, so a cache keyed on it never sees a move.
15
+ */
16
+ export declare function getContentRect(state: RootState): Rect | null;
17
+ /**
18
+ * One box per table and memo, each table at the point named for it. The reader
19
+ * that asks which entity is nearest needs them apart, where the box below folds
20
+ * them together, and both are the same pass over the document.
21
+ */
22
+ export declare function getContentRects(state: RootState, moves?: ReadonlyArray<TableMove>): Rect[];
23
+ /**
24
+ * The content rect as it will stand once each table named is at its point. The
25
+ * placement centres the view on where its tables land in the very dispatch that
26
+ * moves them, so it has to know the box before any reducer has run.
27
+ */
28
+ export declare function getContentRectAfter(state: RootState, moves: ReadonlyArray<TableMove>): Rect | null;
29
+ //# sourceMappingURL=contentBounds.d.ts.map
@@ -0,0 +1,19 @@
1
+ import { Node as KonvaNode } from 'konva/lib/Node';
2
+ /** The 0.3s transform transition Table.styles gave the dom column-row-move. */
3
+ export declare const FLIP_DURATION = 0.3;
4
+ export type KonvaFlip = {
5
+ /**
6
+ * Records where the nodes are now and arms the invert for the commit that
7
+ * follows. Called before dispatching the change that moves them.
8
+ */
9
+ snapshot(): void;
10
+ /** Ends every running tween at once and hands its layer back to the gate. */
11
+ cancel(): void;
12
+ };
13
+ /**
14
+ * FLIP over konva's own Tween, for a reorder the scene has already committed.
15
+ * The tween owns the draw for the layer it runs on, and every way one can end —
16
+ * finish, reset, cancel, timeout — hands that authority back exactly once.
17
+ */
18
+ export declare function createKonvaFlip(nodes: () => KonvaNode[]): KonvaFlip;
19
+ //# sourceMappingURL=konvaFlip.d.ts.map
@@ -0,0 +1,30 @@
1
+ import { RootState } from '../../engine/state';
2
+ import { Memo, Table } from '../../internal-types';
3
+ import { ColumnWidth } from '../../utils/calcTable';
4
+ export type Rect = {
5
+ x: number;
6
+ y: number;
7
+ width: number;
8
+ height: number;
9
+ };
10
+ /**
11
+ * The box a table occupies in schema coordinates. The size is the one the
12
+ * relationship sort measures anchors against, so a scene node and the connectors
13
+ * reaching it cannot disagree about where an edge is.
14
+ */
15
+ export declare function getTableRect(state: RootState, table: Table): Rect;
16
+ /**
17
+ * The cell widths a table's rows are laid out against. The total here and the
18
+ * width in getTableRect are the same sum reached by two routes, the box through
19
+ * the sort's cache and this fresh, which is the split the DOM scene drew with.
20
+ */
21
+ export declare function getTableWidths(state: RootState, table: Table): ColumnWidth;
22
+ /**
23
+ * One column row, taken apart from the same sum calcTableHeight adds up: the
24
+ * rows start below the header inside the table's inset, and each is one
25
+ * COLUMN_HEIGHT tall.
26
+ */
27
+ export declare function getColumnRect(state: RootState, table: Table, index: number): Rect;
28
+ /** The box a memo occupies, sash and header included. */
29
+ export declare function getMemoRect(memo: Memo): Rect;
30
+ //# sourceMappingURL=metrics.d.ts.map
@@ -0,0 +1,35 @@
1
+ import { DOMTemplateLiterals } from '@dineug/r-html';
2
+ import { Stage } from 'konva/lib/Stage';
3
+ import { AppContext } from '../../components/appContext';
4
+ import { Theme } from '../../themes/tokens';
5
+ /**
6
+ * What konva accepts as a Stage container. Read off the constructor so this
7
+ * module names no DOM type of its own, which is what lets it be imported in a
8
+ * realm that has none.
9
+ */
10
+ type StageContainer = NonNullable<ConstructorParameters<typeof Stage>[0]['container']>;
11
+ export type RenderSceneOptions = {
12
+ app: AppContext;
13
+ container: StageContainer;
14
+ scene: DOMTemplateLiterals;
15
+ width: number;
16
+ height: number;
17
+ /**
18
+ * The palette to install for this Stage. Left out, the scene resolves the
19
+ * theme through whatever DOM ancestor the container hangs under, which is
20
+ * what an editor's own canvas wants and what a realm without one has none of.
21
+ */
22
+ theme?: Theme;
23
+ };
24
+ export type RenderedScene = {
25
+ stage: Stage;
26
+ destroy: () => void;
27
+ };
28
+ /**
29
+ * One Stage, one scene, one provider. The provider goes up before the render
30
+ * because a component resolves its context on its first pass, and it targets
31
+ * what the host resolves to, so provider and consumers meet on one object.
32
+ */
33
+ export declare function renderScene({ app, container, scene, width, height, theme, }: RenderSceneOptions): RenderedScene;
34
+ export {};
35
+ //# sourceMappingURL=renderScene.d.ts.map
@@ -0,0 +1,20 @@
1
+ import { RootState } from '../../engine/state';
2
+ import { Point } from '../../internal-types';
3
+ import { Rect } from './metrics';
4
+ /**
5
+ * Holds the content rect and the origin where they stand, so everything a drag
6
+ * is watched against, the scroll ranges, both scrollbars and the minimap,
7
+ * stands still together while it lasts and moves together on the drop.
8
+ */
9
+ export declare function freezeView(root: RootState): void;
10
+ export declare function thawView(root: RootState): void;
11
+ export declare function isViewFrozen(root: RootState): boolean;
12
+ /** The content rect a drag began with while one holds this store's view, else the live one. */
13
+ export declare function getViewContentRect(root: RootState): Rect | null;
14
+ /**
15
+ * The origin a drag began from while one holds this store's view, else null.
16
+ * The scroll range keeps it inside its hull for the drag's duration, so the
17
+ * thumb a drag scales against cannot shrink under the pointer as the origin closes in.
18
+ */
19
+ export declare function getFrozenOrigin(root: RootState): Point | null;
20
+ //# sourceMappingURL=viewFreeze.d.ts.map
@@ -0,0 +1,45 @@
1
+ import { RootState } from '../../engine/state';
2
+ import { Memo, Point, Relationship, Settings, Table } from '../../internal-types';
3
+ import { Rect } from './metrics';
4
+ export type CullingRect = Rect;
5
+ /** The origin and the zoom every scene layer is placed with. */
6
+ export type SceneTransform = Pick<Settings, 'originX' | 'originY' | 'zoomLevel'>;
7
+ export type CullingRectOptions = SceneTransform & {
8
+ viewportWidth: number;
9
+ viewportHeight: number;
10
+ };
11
+ /**
12
+ * Where a scene layer sits on the stage, so screen equals scene times the zoom
13
+ * plus this. The document stores it directly: settings.originX and originY are
14
+ * the screen point scene (0, 0) lands on, and nothing else enters.
15
+ */
16
+ export declare function getSceneOrigin({ originX, originY }: SceneTransform): Point;
17
+ /** Where a scene point lands on the stage, the placement above read forwards. */
18
+ export declare function toScreenPoint(transform: SceneTransform, point: Point): Point;
19
+ /** The scene point under a point on the stage, that same placement inverted. */
20
+ export declare function toScenePoint(transform: SceneTransform, point: Point): Point;
21
+ /**
22
+ * The origin that puts a scene point under a point on the stage, the placement
23
+ * solved for its own offset. A jump to a table names where the table should
24
+ * land and asks this for the view that lands it there.
25
+ */
26
+ export declare function getOriginToPlace(zoomLevel: number, scene: Point, screen: Point): Point;
27
+ /**
28
+ * What is on screen with a screen's worth of margin on every side, read back
29
+ * through the very origin getSceneOrigin places the layer at. The margin is
30
+ * measured in viewport pixels, never in the document, which is not the screen.
31
+ */
32
+ export declare function createCullingRect(options: CullingRectOptions): CullingRect;
33
+ /** The culling rect for the editor's current origin, zoom and viewport. */
34
+ export declare function getCullingRect(state: RootState): CullingRect;
35
+ /** Inclusive overlap: a box touching the rect along an edge is still drawn. */
36
+ export declare function intersects(rect: Rect, other: Rect): boolean;
37
+ export declare function isTableVisible(rect: CullingRect, state: RootState, table: Table): boolean;
38
+ export declare function isMemoVisible(rect: CullingRect, memo: Memo): boolean;
39
+ /**
40
+ * A connector is kept for its whole reach, not for its routed polyline: the
41
+ * route holds neither the anchors nor the cardinality decorations, and either
42
+ * can be on screen with every routed point off it.
43
+ */
44
+ export declare function isRelationshipVisible(rect: CullingRect, relationship: Relationship, strokeWidth?: number): boolean;
45
+ //# sourceMappingURL=viewport.d.ts.map
@@ -0,0 +1,23 @@
1
+ import { Stage } from 'konva/lib/Stage';
2
+ /**
3
+ * Live Konva stages keyed by the role their owner registers them under, so a
4
+ * spec can reach the main canvas and the minimap independently.
5
+ */
6
+ export type StageRegistry = Record<string, Stage>;
7
+ /**
8
+ * Publishes the registry as __erdStages on the global object and returns it,
9
+ * so the e2e fixture and the browser-mode specs can read a stage before the
10
+ * first one mounts. Returns undefined outside dev and test.
11
+ */
12
+ export declare function installStageTestHandle(): StageRegistry | undefined;
13
+ /**
14
+ * Adds a stage to the registry under name, creating the registry first when a
15
+ * stage mounts before the fixture installs the handle.
16
+ */
17
+ export declare function registerStage(name: string, stage: Stage): void;
18
+ /**
19
+ * Drops one stage's claim on a name on unmount. The name goes with the last
20
+ * claim on it, and until then it names whichever stage is still up.
21
+ */
22
+ export declare function unregisterStage(name: string, stage: Stage): void;
23
+ //# sourceMappingURL=testHandle.d.ts.map
@@ -0,0 +1,32 @@
1
+ import { Theme } from '../themes/tokens';
2
+ /**
3
+ * What one theme token resolved to, looked up by its custom property name. The
4
+ * type names no dom, so the same resolution runs off a computed style here and
5
+ * off a posted record in a realm that has none.
6
+ */
7
+ export type ThemeVariableReader = (name: string) => string | null | undefined;
8
+ /** One palette as custom property names to values, plain enough to post. */
9
+ export type ThemeVariables = Record<string, string>;
10
+ /**
11
+ * The palette a scene paints from. A token the reader has no answer for keeps
12
+ * the fallback, which is the same rule the emitted var() carries, so a stage
13
+ * without a stylesheet above it paints the preset rather than nothing.
14
+ */
15
+ export declare function resolveTheme(fallback: Theme, read: ThemeVariableReader): Theme;
16
+ /** Reads a palette back out of a record some dom realm captured. */
17
+ export declare const fromThemeVariables: (variables: ThemeVariables) => ThemeVariableReader;
18
+ /**
19
+ * What the cascade settled each token on, captured off one element. Custom
20
+ * properties inherit and substitute at computed value time, so an override from
21
+ * a rule anywhere above the host arrives here already applied.
22
+ */
23
+ export declare function readThemeVariables(host: Element): ThemeVariables;
24
+ /** The palette the host element resolves to, css overrides included. */
25
+ export declare const resolveHostTheme: (host: Element, fallback: Theme) => Theme;
26
+ /**
27
+ * Calls back when a css override above the host could have moved. It watches
28
+ * the two vectors that leave a dom trace, a stylesheet in head and a class or
29
+ * inline style on the host or an ancestor; a cssom insertRule leaves none.
30
+ */
31
+ export declare function observeThemeOverrides(host: Element, onChange: () => void): () => void;
32
+ //# sourceMappingURL=theme.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=workerDomStubs.d.ts.map