@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
@@ -0,0 +1,16 @@
1
+ import { FC } from '@dineug/r-html';
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
+ };
9
+ /**
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.
13
+ */
14
+ declare const ExportScene: FC<ExportSceneProps>;
15
+ export default ExportScene;
16
+ //# sourceMappingURL=ExportScene.d.ts.map
@@ -0,0 +1,33 @@
1
+ import { Stage } from 'konva/lib/Stage';
2
+ import { Rect } from '../../konva/scene/metrics';
3
+ import { Theme } from '../../themes/tokens';
4
+ export type DocumentSceneOptions = {
5
+ doc: string;
6
+ theme: Theme;
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;
13
+ };
14
+ export type DocumentScene = {
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;
22
+ destroy: () => void;
23
+ };
24
+ /**
25
+ * The whole document on a Stage of its own, off any screen. The store is built
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.
28
+ *
29
+ * @example
30
+ * const scene = await renderDocumentScene({ doc, theme, toWidth });
31
+ */
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
@@ -0,0 +1,25 @@
1
+ import { RenderPngRequest, RenderPngResult } from './renderPng';
2
+ /**
3
+ * A png request as it crosses a realm boundary. The measurement itself cannot
4
+ * cross, so what travels is the widths the asking realm read for the probe
5
+ * strings and the answering realm has to reproduce them.
6
+ */
7
+ export type ExportPngRequest = RenderPngRequest & {
8
+ fontProbe: number[];
9
+ };
10
+ /**
11
+ * Draws a document off the thread that asked for it. Text is measured here
12
+ * rather than sent, because a table's reserved widths were laid out by a
13
+ * measurement, and a picture drawn by a different one does not fit them.
14
+ */
15
+ export declare class ExportPngService {
16
+ /**
17
+ * What this realm lays the probe strings out to. Answering it at all proves
18
+ * the module graph evaluated here, which is the failure a shared worker
19
+ * reports to nobody: its port stays open and every call after it hangs.
20
+ */
21
+ probeFontWidths(): Promise<number[]>;
22
+ render(request: ExportPngRequest): Promise<RenderPngResult>;
23
+ private createToWidth;
24
+ }
25
+ //# sourceMappingURL=exportPngService.d.ts.map
@@ -0,0 +1,55 @@
1
+ import { Theme } from '../../themes/tokens';
2
+ import { ResolutionReduction } from './renderPng';
3
+ import { ToWidth } from './textWidth';
4
+ export type { ResolutionReduction };
5
+ /** Which thread drew the image, which is the one thing a Promise cannot say. */
6
+ export type ExportPngRealm = 'worker' | 'main';
7
+ /**
8
+ * Where an export has got to. Started fires before any drawing begins, and
9
+ * again naming the main thread if the worker it first named gave way; finished
10
+ * fires once, and only after a blob exists.
11
+ */
12
+ export type ExportPngProgress = {
13
+ phase: 'started';
14
+ realm: ExportPngRealm;
15
+ } | {
16
+ phase: 'finished';
17
+ realm: ExportPngRealm;
18
+ width: number;
19
+ height: number;
20
+ };
21
+ export type DocumentPngOptions = {
22
+ doc: string;
23
+ theme: Theme;
24
+ /**
25
+ * How the editor measures a string. A realm that draws the document has to
26
+ * reproduce this to the pixel, so it is passed to be compared against rather
27
+ * than to be called across a boundary a function does not cross.
28
+ */
29
+ toWidth: ToWidth;
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;
37
+ /**
38
+ * Called once, after a file exists, when the box outran what a canvas holds
39
+ * and the image had to be scaled down. A caller with somewhere to put it is
40
+ * what turns a silent loss of resolution into something the author is told.
41
+ */
42
+ onResolutionReduced?: (reduction: ResolutionReduction) => void;
43
+ /** Called as the export moves, for a caller that shows it is running. */
44
+ onProgress?: (progress: ExportPngProgress) => void;
45
+ };
46
+ /**
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.
50
+ *
51
+ * @example
52
+ * const blob = await createDocumentPng({ doc: toJson(store.state), theme, toWidth });
53
+ */
54
+ export declare function createDocumentPng({ doc, theme, toWidth, pixelRatio, zoomLevel, onResolutionReduced, onProgress, }: DocumentPngOptions): Promise<Blob>;
55
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,22 @@
1
+ /**
2
+ * The largest raster a browser canvas will hold, as area rather than as one
3
+ * side. Chromium and WebKit both stop at exactly this many pixels however the
4
+ * box is shaped, and Firefox stops well above it, so this is the shared floor.
5
+ */
6
+ export declare const CANVAS_AREA_MAX: number;
7
+ /**
8
+ * The longest single side, kept at half of the 65535 every engine measured here
9
+ * accepted. The margin is spent on the side rather than the area because no box
10
+ * the schema allows reaches it at one image pixel per canvas unit.
11
+ */
12
+ export declare const CANVAS_SIDE_MAX = 32767;
13
+ /**
14
+ * The ratio that keeps a raster of that box inside what a canvas can hold. A
15
+ * tall box is bounded by its area, so a document narrow enough to fit under the
16
+ * ceiling keeps every pixel it was written with instead of being scaled down.
17
+ *
18
+ * @example
19
+ * fitPixelRatio(1, 20000, 20000);
20
+ */
21
+ export declare function fitPixelRatio(pixelRatio: number, width: number, height: number): number;
22
+ //# sourceMappingURL=pixelRatio.d.ts.map
@@ -0,0 +1,40 @@
1
+ import { Theme } from '../../themes/tokens';
2
+ import { ToWidth } from './textWidth';
3
+ /** The box that was asked for and the raster that fitted inside a canvas. */
4
+ export type ResolutionReduction = {
5
+ documentWidth: number;
6
+ documentHeight: number;
7
+ width: number;
8
+ height: number;
9
+ };
10
+ /** Everything a png needs that survives a structured clone to another realm. */
11
+ export type RenderPngRequest = {
12
+ doc: string;
13
+ theme: Theme;
14
+ pixelRatio: number;
15
+ /** The zoom to draw at; the document's own when the caller names none. */
16
+ zoomLevel?: number;
17
+ };
18
+ export type RenderPngResult = {
19
+ blob: Blob;
20
+ width: number;
21
+ height: number;
22
+ /**
23
+ * Null when the box kept every pixel it was written with. A realm that drew
24
+ * the image is the only one that knows this, so it is carried back rather
25
+ * than recomputed by whoever asked for the file.
26
+ */
27
+ reduction: ResolutionReduction | null;
28
+ };
29
+ /**
30
+ * The whole document rastered, in whichever realm calls it. Nothing here reads
31
+ * a window, a screen or a stylesheet, so the same code answers on the main
32
+ * thread and inside the worker that keeps the main thread free.
33
+ *
34
+ * @example
35
+ * const { blob } = await renderDocumentPng({ doc, theme, pixelRatio: 1, toWidth });
36
+ */
37
+ export declare function renderDocumentPng({ doc, theme, pixelRatio, zoomLevel, toWidth, }: RenderPngRequest & {
38
+ toWidth: ToWidth;
39
+ }): Promise<RenderPngResult>;
40
+ //# sourceMappingURL=renderPng.d.ts.map
@@ -0,0 +1,28 @@
1
+ /** How the editor measures a string, which is what a table reserves room by. */
2
+ export type ToWidth = (text: string) => number;
3
+ /** The shorthand utils/text.ts sets on the context it measures with. */
4
+ export declare const SCENE_FONT: string;
5
+ /**
6
+ * Strings a divergence in font resolution shows up in. Latin covers the head of
7
+ * the family list, the ideographs cover whatever the host falls through to for
8
+ * them, and the punctuation covers a face that carries only part of the range.
9
+ */
10
+ export declare const FONT_PROBE_TEXTS: readonly ["ERD editor 0123456789", "가나다 漢字 テスト", "—…€· iIlL1"];
11
+ /**
12
+ * The same measurement utils/text.ts makes, on a canvas no document holds. A
13
+ * realm off the screen has no element to fall back to, so a realm with no 2d
14
+ * context has no way to lay a document out and says so rather than guessing.
15
+ */
16
+ export declare function createOffscreenToWidth(): ToWidth | null;
17
+ /**
18
+ * What the probe strings measure under one realm's font resolution. Comparing
19
+ * two of these is the only gate that fires: a worker's fonts.load resolves for
20
+ * a family it does not have, and fonts.check answers true for one nobody has.
21
+ *
22
+ * @example
23
+ * measureFontProbe(toWidth);
24
+ */
25
+ export declare function measureFontProbe(toWidth: ToWidth): number[];
26
+ /** Whether two realms lay the probe strings out to the same pixel. */
27
+ export declare function sameFontProbe(a: number[], b: number[]): boolean;
28
+ //# sourceMappingURL=textWidth.d.ts.map
@@ -7,4 +7,12 @@ export type GCIds = {
7
7
  indexColumnIds: string[];
8
8
  memoIds: string[];
9
9
  };
10
- export declare function getSchemaGCService(): SchemaGCService | null;
10
+ /** What a caller gets: the collector's one method, wherever it runs. */
11
+ export type SchemaGCRunner = Pick<SchemaGCService, 'run'>;
12
+ /**
13
+ * Runs the collector off the main thread where a host builds a shared worker.
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.
16
+ */
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
@@ -6,3 +6,4 @@ export type ShikiService = {
6
6
  };
7
7
  export declare function setGetShikiServiceCallback(callback: () => ShikiService | null): void;
8
8
  export declare function getShikiService(): ShikiService | null;
9
+ //# sourceMappingURL=shikiService.d.ts.map
@@ -1,10 +1,7 @@
1
1
  /**
2
- * Vendored from https://github.com/easylogic/colorpicker.
3
- *
4
- * Global, not scoped. The picker's markup is built by the upstream library at runtime, outside
5
- * anything r-html renders, so there is no element here to hang a generated component class on —
6
- * every selector below matches by the literal class names that library writes
7
- * (`.easylogic-colorpicker`, `.colorsets-contextmenu`), and scoping them would rename them out
8
- * from under it. Last in `setGlobalStyleOrder`, which is where it sat when it was a tree `<style>`.
2
+ * Vendored from https://github.com/easylogic/colorpicker. Global, not scoped:
3
+ * the upstream library builds its own markup at runtime, so every selector below
4
+ * matches literal class names that scoping would rename out from under it.
9
5
  */
10
6
  export declare const colorPickerStyle: import('@dineug/r-html').CSSTemplateLiterals;
7
+ //# sourceMappingURL=colorPicker.style.d.ts.map
@@ -1,4 +1,5 @@
1
1
  export declare const TextFontFamily: "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Open Sans', system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'";
2
2
  export declare const CodeFontFamily: "'Menlo', 'Consolas', 'Bitstream Vera Sans Mono', monospace, 'Apple Color Emoji', 'Segoe UI Emoji'";
3
- /** Global, not scoped: `:host` is the shadow host, which no component class matches. */
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
@@ -1,5 +1,6 @@
1
1
  /**
2
- * Global, not scoped: every selector here is a type selector, the universal selector or `:host`,
2
+ * Global, not scoped: every selector here is a type selector, the universal selector or :host,
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
@@ -1,6 +1,7 @@
1
1
  /**
2
- * Global, not scoped. The `::-webkit-scrollbar*` pseudo elements have no element of their own to
3
- * hang a component class on, and `.scrollbar` is a hook class seven components opt into by
4
- * literal name (`class=${['scrollbar', ...]}`) — scoping it would rename it out from under them.
2
+ * Global, not scoped. The ::-webkit-scrollbar* pseudo elements have no element of their own to
3
+ * hang a component class on, and .scrollbar is a hook class seven components opt into by
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
@@ -11,5 +11,6 @@ export declare const typography: {
11
11
  readonly normal: import('@dineug/r-html').CSSTemplateLiterals;
12
12
  readonly paragraph: import('@dineug/r-html').CSSTemplateLiterals;
13
13
  };
14
- /** Global, not scoped: `:host` is the shadow host, which no component class matches. */
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
@@ -66,4 +66,9 @@ export type Theme = {
66
66
  diffCrossForeground: string;
67
67
  };
68
68
  export declare const ThemeTokens: ReadonlyArray<keyof Theme>;
69
+ /** The custom property one token is published under on :host. */
70
+ export declare const toThemeVariableName: (token: string) => string;
71
+ /** The custom property a host document overrides that token through. */
72
+ export declare const toThemeOverrideVariableName: (token: string) => string;
69
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
@@ -3,7 +3,7 @@ import { RootState } from '../engine/state';
3
3
  import { Table } from '../internal-types';
4
4
  export declare function getWidthGeneration(): number;
5
5
  /**
6
- * Invalidates every cached table size. Called from `recalculateTableWidth`,
6
+ * Invalidates every cached table size. Called from recalculateTableWidth,
7
7
  * which rewrites widths without dispatching an action, and from the
8
8
  * relationship-sort hook for any action that is not a pure move.
9
9
  */
@@ -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,4 @@ 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
+ //# 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
@@ -0,0 +1,71 @@
1
+ import { RootState } from '../../engine/state';
2
+ import { Point } from '../../internal-types';
3
+ import { Obstacles } from './route';
4
+ export type DirtyBox = {
5
+ left: number;
6
+ top: number;
7
+ right: number;
8
+ bottom: number;
9
+ };
10
+ /**
11
+ * A route and the inputs it was computed from, so the next sort can tell whether
12
+ * anything it reads has moved. Anchors are recomputed in full every sort, so the
13
+ * turning points below are what a changed anchor shows up as.
14
+ */
15
+ export type RouteEntry = {
16
+ mx: number;
17
+ my: number;
18
+ mDirection: number;
19
+ lx: number;
20
+ ly: number;
21
+ lDirection: number;
22
+ startTableId: string;
23
+ endTableId: string;
24
+ /** The router's own output, before nudgeRoutes pushed anything apart. */
25
+ pristine: Point[];
26
+ /** What was finally drawn, which is what a reused group is put back onto. */
27
+ nudged: Point[];
28
+ bounds: DirtyBox;
29
+ };
30
+ export type SortCache = {
31
+ boxes: Map<string, DirtyBox>;
32
+ entries: Map<string, RouteEntry>;
33
+ };
34
+ export declare function getSortCache(state: RootState): SortCache;
35
+ export declare function boundsOfPoints(points: Point[]): DirtyBox;
36
+ /**
37
+ * Whether a moved table can change a route. The bounding box rather than the
38
+ * runs inside it: the router picks its lanes from every table reaching into the
39
+ * band between the two anchors, not only from the ones the route passes.
40
+ */
41
+ export declare function routeTouches(bounds: DirtyBox, boxes: DirtyBox[]): boolean;
42
+ /**
43
+ * Where this sort changed something, as lanes rather than as areas. Everything
44
+ * nudgeRoutes decides is decided one axis at a time, so a change is only ever
45
+ * felt by segments sharing that axis within a few lanes of it.
46
+ */
47
+ export type DirtyLanes = {
48
+ markSpan(vertical: boolean, from: number, to: number, low: number, high: number): void;
49
+ markBox(box: DirtyBox): void;
50
+ hits(vertical: boolean, from: number, to: number, low: number, high: number): boolean;
51
+ };
52
+ export declare function createDirtyLanes(): DirtyLanes;
53
+ /** Marks every axis-aligned run of a polyline as changed. */
54
+ export declare function markRoute(lanes: DirtyLanes, points: Point[]): void;
55
+ /**
56
+ * What nudgeRoutes needs to leave an untouched group where it already was: the
57
+ * routes this sort re-routed, the lanes they and the moved tables changed, and
58
+ * the coordinate every segment was last drawn at.
59
+ */
60
+ export type NudgeMemo = {
61
+ dirty: Set<string>;
62
+ lanes: DirtyLanes;
63
+ coordinate(relationshipId: string, index: number, vertical: boolean): number | undefined;
64
+ };
65
+ /**
66
+ * Which table boxes moved since the last sort, or null when so much changed that
67
+ * filtering costs more than re-routing. The cache's own snapshot is replaced
68
+ * here, so this runs once per sort.
69
+ */
70
+ export declare function diffTableBoxes(cache: SortCache, obstacles: Obstacles): DirtyBox[] | null;
71
+ //# sourceMappingURL=incremental.d.ts.map