@dineug/erd-editor 3.5.0 → 3.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (444) hide show
  1. package/README.md +51 -23
  2. package/dist/components/appContext.d.ts +1 -0
  3. package/dist/components/customElementRegistry.d.ts +1 -0
  4. package/dist/components/erd/Erd.d.ts +1 -0
  5. package/dist/components/erd/Erd.styles.d.ts +1 -0
  6. package/dist/components/erd/automatic-table-placement/AutomaticTablePlacement.d.ts +21 -0
  7. package/dist/components/erd/automatic-table-placement/AutomaticTablePlacement.styles.d.ts +1 -0
  8. package/dist/components/erd/automatic-table-placement/createAutomaticTablePlacement.d.ts +1 -0
  9. package/dist/components/erd/automatic-table-placement/runElkPlacement.d.ts +12 -0
  10. package/dist/components/erd/canvas/Canvas.d.ts +1 -0
  11. package/dist/components/erd/canvas/Canvas.styles.d.ts +9 -8
  12. package/dist/components/erd/canvas/CanvasScene.d.ts +1 -0
  13. package/dist/components/erd/canvas/EditOverlay.d.ts +1 -0
  14. package/dist/components/erd/canvas/EditOverlay.styles.d.ts +1 -0
  15. package/dist/components/erd/canvas/SceneIcon.template.d.ts +1 -0
  16. package/dist/components/erd/canvas/altDragDuplicate.d.ts +1 -0
  17. package/dist/components/erd/canvas/drag-select/DragSelect.d.ts +1 -0
  18. package/dist/components/erd/canvas/draw-relationship/DrawRelationship.d.ts +1 -0
  19. package/dist/components/erd/canvas/duplicate-ghost/DuplicateGhost.d.ts +1 -0
  20. package/dist/components/erd/canvas/entityDrag.d.ts +6 -3
  21. package/dist/components/erd/canvas/high-level-table/HighLevelTable.d.ts +1 -0
  22. package/dist/components/erd/canvas/memo/Memo.d.ts +1 -0
  23. package/dist/components/erd/canvas/memo/memo-sash/MemoSash.d.ts +1 -0
  24. package/dist/components/erd/canvas/memo/memoCaret.d.ts +1 -0
  25. package/dist/components/erd/canvas/memo/memoScroll.d.ts +1 -0
  26. package/dist/components/erd/canvas/memo/memoText.d.ts +1 -0
  27. package/dist/components/erd/canvas/memo/useMoveMemo.d.ts +1 -0
  28. package/dist/components/erd/canvas/relationship-group/RelationshipGroup.d.ts +1 -0
  29. package/dist/components/erd/canvas/relationship-group/relationship/Relationship.d.ts +1 -0
  30. package/dist/components/erd/canvas/relationship-group/relationship/Relationship.template.d.ts +1 -0
  31. package/dist/components/erd/canvas/sceneHit.d.ts +1 -0
  32. package/dist/components/erd/canvas/sceneKind.d.ts +1 -0
  33. package/dist/components/erd/canvas/sceneRetention.d.ts +1 -0
  34. package/dist/components/erd/canvas/sceneTokens.d.ts +1 -0
  35. package/dist/components/erd/canvas/shared-drag-select/SharedDragSelect.d.ts +1 -0
  36. package/dist/components/erd/canvas/shared-mouse-tracker/SharedMouseTracker.d.ts +1 -0
  37. package/dist/components/erd/canvas/shared-mouse-tracker/shared-mouse-cursor/SharedMouseCursor.d.ts +1 -0
  38. package/dist/components/erd/canvas/table/Table.d.ts +1 -0
  39. package/dist/components/erd/canvas/table/cellLayout.d.ts +1 -0
  40. package/dist/components/erd/canvas/table/column/Column.d.ts +1 -0
  41. package/dist/components/erd/canvas/table/doubleClick.d.ts +1 -0
  42. package/dist/components/erd/canvas/table/useFocusTable.d.ts +1 -0
  43. package/dist/components/erd/canvas/table/useMoveTable.d.ts +1 -0
  44. package/dist/components/erd/canvas/table/useSharedFocusTable.d.ts +1 -0
  45. package/dist/components/erd/canvas/useMoveEntity.d.ts +1 -0
  46. package/dist/components/erd/canvas/useSharedSelectEntity.d.ts +1 -0
  47. package/dist/components/erd/content-compass/ContentCompass.d.ts +10 -0
  48. package/dist/components/erd/content-compass/ContentCompass.styles.d.ts +3 -0
  49. package/dist/components/erd/content-compass/compassGeometry.d.ts +24 -0
  50. package/dist/components/erd/diff-viewer/DiffViewer.d.ts +1 -0
  51. package/dist/components/erd/diff-viewer/DiffViewer.styles.d.ts +1 -0
  52. package/dist/components/erd/diff-viewer/diff.d.ts +1 -0
  53. package/dist/components/erd/diff-viewer/erd-viewer/ErdViewer.d.ts +1 -0
  54. package/dist/components/erd/diff-viewer/erd-viewer/ErdViewer.styles.d.ts +1 -0
  55. package/dist/components/erd/diff-viewer/tree-viewer/TreeViewer.d.ts +1 -0
  56. package/dist/components/erd/diff-viewer/tree-viewer/TreeViewer.styles.d.ts +1 -0
  57. package/dist/components/erd/erd-context-menu/ErdContextMenu.d.ts +1 -0
  58. package/dist/components/erd/erd-context-menu/menus/databaseMenus.d.ts +1 -0
  59. package/dist/components/erd/erd-context-menu/menus/drawRelationshipMenus.d.ts +1 -0
  60. package/dist/components/erd/erd-context-menu/menus/exportMenus.d.ts +1 -0
  61. package/dist/components/erd/erd-context-menu/menus/importMenus.d.ts +1 -0
  62. package/dist/components/erd/erd-context-menu/menus/relationshipMenus.d.ts +1 -0
  63. package/dist/components/erd/erd-context-menu/menus/showMenus.d.ts +1 -0
  64. package/dist/components/erd/erd-context-menu/menus/tablePlacementMenus.d.ts +24 -0
  65. package/dist/components/erd/erdShortcutPerformCheck.d.ts +1 -0
  66. package/dist/components/erd/floating-toolbar/FloatingToolbar.d.ts +10 -0
  67. package/dist/components/erd/floating-toolbar/FloatingToolbar.styles.d.ts +4 -0
  68. package/dist/components/erd/hitTest.d.ts +1 -0
  69. package/dist/components/erd/minimap/Minimap.d.ts +1 -0
  70. package/dist/components/erd/minimap/Minimap.styles.d.ts +1 -0
  71. package/dist/components/erd/minimap/MinimapScene.d.ts +1 -0
  72. package/dist/components/erd/minimap/memo/Memo.d.ts +6 -3
  73. package/dist/components/erd/minimap/minimapGeometry.d.ts +82 -34
  74. package/dist/components/erd/minimap/table/Table.d.ts +6 -3
  75. package/dist/components/erd/minimap/useMinimapScroll.d.ts +1 -0
  76. package/dist/components/erd/minimap/viewport/Viewport.d.ts +1 -0
  77. package/dist/components/erd/minimap/viewport/Viewport.styles.d.ts +1 -0
  78. package/dist/components/erd/table-properties/TableProperties.d.ts +1 -0
  79. package/dist/components/erd/table-properties/TableProperties.styles.d.ts +1 -0
  80. package/dist/components/erd/table-properties/table-properties-indexes/TablePropertiesIndexes.d.ts +1 -0
  81. package/dist/components/erd/table-properties/table-properties-indexes/TablePropertiesIndexes.styles.d.ts +1 -0
  82. package/dist/components/erd/table-properties/table-properties-indexes/indexes-checkbox-column/IndexesCheckboxColumn.d.ts +1 -0
  83. package/dist/components/erd/table-properties/table-properties-indexes/indexes-checkbox-column/IndexesCheckboxColumn.styles.d.ts +1 -0
  84. package/dist/components/erd/table-properties/table-properties-indexes/indexes-column/IndexesColumn.d.ts +1 -0
  85. package/dist/components/erd/table-properties/table-properties-indexes/indexes-column/IndexesColumn.styles.d.ts +1 -0
  86. package/dist/components/erd/table-properties/table-properties-indexes/indexes-index/IndexesIndex.d.ts +1 -0
  87. package/dist/components/erd/table-properties/table-properties-indexes/indexes-index/IndexesIndex.styles.d.ts +1 -0
  88. package/dist/components/erd/table-properties/table-properties-tabs/TablePropertiesTabs.d.ts +1 -0
  89. package/dist/components/erd/table-properties/table-properties-tabs/TablePropertiesTabs.styles.d.ts +1 -0
  90. package/dist/components/erd/time-travel/TimeTravel.d.ts +1 -0
  91. package/dist/components/erd/time-travel/TimeTravel.styles.d.ts +1 -0
  92. package/dist/components/erd/useErdShortcut.d.ts +1 -0
  93. package/dist/components/erd/virtual-scroll/VirtualScroll.d.ts +1 -0
  94. package/dist/components/erd/virtual-scroll/VirtualScroll.styles.d.ts +1 -0
  95. package/dist/components/erd/virtual-scroll/useVirtualScroll.d.ts +13 -6
  96. package/dist/components/erd-editor/ErdEditor.d.ts +2 -1
  97. package/dist/components/erd-editor/ErdEditor.styles.d.ts +1 -0
  98. package/dist/components/erd-editor/useErdEditorAttachElement.d.ts +1 -0
  99. package/dist/components/generator-code/GeneratorCode.d.ts +1 -0
  100. package/dist/components/generator-code/GeneratorCode.styles.d.ts +1 -0
  101. package/dist/components/generator-code/generator-code-context-menu/GeneratorCodeContextMenu.d.ts +1 -0
  102. package/dist/components/generator-code/generator-code-context-menu/menus/columnNameCaseMenus.d.ts +1 -0
  103. package/dist/components/generator-code/generator-code-context-menu/menus/languageMenus.d.ts +1 -0
  104. package/dist/components/generator-code/generator-code-context-menu/menus/tableNameCaseMenus.d.ts +1 -0
  105. package/dist/components/global-styles/GlobalStyles.d.ts +1 -0
  106. package/dist/components/primitives/button/Button.d.ts +1 -0
  107. package/dist/components/primitives/button/Button.styles.d.ts +1 -0
  108. package/dist/components/primitives/code-block/CodeBlock.d.ts +3 -2
  109. package/dist/components/primitives/code-block/CodeBlock.styles.d.ts +1 -0
  110. package/dist/components/primitives/color-picker/ColorPicker.d.ts +1 -0
  111. package/dist/components/primitives/color-picker/ColorPicker.styles.d.ts +1 -0
  112. package/dist/components/primitives/context-menu/ContextMenu.d.ts +1 -0
  113. package/dist/components/primitives/context-menu/context-menu-content/ContextMenuContent.d.ts +1 -0
  114. package/dist/components/primitives/context-menu/context-menu-content/ContextMenuContent.styles.d.ts +1 -0
  115. package/dist/components/primitives/context-menu/context-menu-item/ContextMenuItem.d.ts +1 -0
  116. package/dist/components/primitives/context-menu/context-menu-item/ContextMenuItem.styles.d.ts +1 -0
  117. package/dist/components/primitives/context-menu/context-menu-root/ContextMenuRoot.d.ts +1 -0
  118. package/dist/components/primitives/context-menu/context-menu-root/contextMenuRootContext.d.ts +1 -0
  119. package/dist/components/primitives/context-menu/menu/Menu.d.ts +1 -0
  120. package/dist/components/primitives/context-menu/menu/Menu.styles.d.ts +1 -0
  121. package/dist/components/primitives/edit-input/EditInput.d.ts +1 -0
  122. package/dist/components/primitives/edit-input/EditInput.styles.d.ts +1 -0
  123. package/dist/components/primitives/highlighted-text/HighlightedText.d.ts +1 -0
  124. package/dist/components/primitives/highlighted-text/HighlightedText.styles.d.ts +1 -0
  125. package/dist/components/primitives/icon/Icon.d.ts +1 -0
  126. package/dist/components/primitives/icon/Icon.styles.d.ts +1 -0
  127. package/dist/components/primitives/icon/icons.d.ts +9 -1
  128. package/dist/components/primitives/kbd/Kbd.d.ts +1 -0
  129. package/dist/components/primitives/kbd/Kbd.styles.d.ts +1 -0
  130. package/dist/components/primitives/sash/Sash.d.ts +1 -0
  131. package/dist/components/primitives/sash/Sash.styles.d.ts +1 -0
  132. package/dist/components/primitives/separator/Separator.d.ts +1 -0
  133. package/dist/components/primitives/separator/Separator.styles.d.ts +1 -0
  134. package/dist/components/primitives/slider/Slider.d.ts +1 -0
  135. package/dist/components/primitives/slider/Slider.styles.d.ts +1 -0
  136. package/dist/components/primitives/switch/Switch.d.ts +1 -0
  137. package/dist/components/primitives/switch/Switch.styles.d.ts +1 -0
  138. package/dist/components/primitives/text-input/TextInput.d.ts +1 -0
  139. package/dist/components/primitives/toast/Toast.d.ts +1 -0
  140. package/dist/components/primitives/toast/Toast.styles.d.ts +1 -0
  141. package/dist/components/quick-search/QuickSearch.d.ts +1 -0
  142. package/dist/components/quick-search/QuickSearch.styles.d.ts +1 -0
  143. package/dist/components/quick-search/actions.d.ts +1 -0
  144. package/dist/components/schema-sql/SchemaSQL.d.ts +1 -0
  145. package/dist/components/schema-sql/SchemaSQL.styles.d.ts +1 -0
  146. package/dist/components/schema-sql/schema-sql-context-menu/SchemaSQLContextMenu.d.ts +1 -0
  147. package/dist/components/schema-sql/schema-sql-context-menu/menus/bracketMenus.d.ts +1 -0
  148. package/dist/components/settings/Settings.d.ts +1 -0
  149. package/dist/components/settings/Settings.styles.d.ts +1 -0
  150. package/dist/components/settings/settings-lnb/SettingsLnb.d.ts +1 -0
  151. package/dist/components/settings/settings-lnb/SettingsLnb.styles.d.ts +1 -0
  152. package/dist/components/settings/shortcuts/Shortcuts.d.ts +1 -0
  153. package/dist/components/settings/shortcuts/Shortcuts.styles.d.ts +1 -0
  154. package/dist/components/table-view/Table.styles.d.ts +1 -0
  155. package/dist/components/table-view/column/Column.styles.d.ts +1 -0
  156. package/dist/components/table-view/column/column-data-type/ColumnDataType.d.ts +1 -0
  157. package/dist/components/table-view/column/column-data-type/ColumnDataType.styles.d.ts +1 -0
  158. package/dist/components/table-view/column/column-key/ColumnKey.d.ts +1 -0
  159. package/dist/components/table-view/column/column-key/ColumnKey.styles.d.ts +1 -0
  160. package/dist/components/table-view/column/column-not-null/ColumnNotNull.d.ts +1 -0
  161. package/dist/components/table-view/column/column-not-null/ColumnNotNull.styles.d.ts +1 -0
  162. package/dist/components/table-view/column/column-option/ColumnOption.d.ts +1 -0
  163. package/dist/components/table-view/column/column-option/ColumnOption.styles.d.ts +1 -0
  164. package/dist/components/table-view/column/useColumnCell.d.ts +1 -0
  165. package/dist/components/theme/Theme.d.ts +1 -0
  166. package/dist/components/theme-builder/ThemeBuilder.d.ts +1 -0
  167. package/dist/components/theme-builder/ThemeBuilder.styles.d.ts +1 -0
  168. package/dist/components/themeContext.d.ts +1 -0
  169. package/dist/components/toast-container/ToastContainer.d.ts +1 -0
  170. package/dist/components/toast-container/ToastContainer.styles.d.ts +1 -0
  171. package/dist/components/toast-container/openToastWhileRunning.d.ts +1 -0
  172. package/dist/components/toolbar/Toolbar.d.ts +1 -0
  173. package/dist/components/toolbar/Toolbar.styles.d.ts +1 -0
  174. package/dist/components/visualization/Visualization.d.ts +1 -0
  175. package/dist/components/visualization/Visualization.styles.d.ts +1 -0
  176. package/dist/components/visualization/VisualizationScene.d.ts +1 -0
  177. package/dist/components/visualization/createVisualization.d.ts +1 -0
  178. package/dist/components/visualization/graph-node/GraphNode.d.ts +1 -0
  179. package/dist/components/visualization/table/Table.d.ts +1 -0
  180. package/dist/components/visualization/table/column/Column.d.ts +1 -0
  181. package/dist/components/visualization/table/column/Column.styles.d.ts +1 -0
  182. package/dist/components/visualization/visualizationView.d.ts +1 -0
  183. package/dist/constants/language.d.ts +1 -0
  184. package/dist/constants/layout.d.ts +1 -0
  185. package/dist/constants/open.d.ts +1 -0
  186. package/dist/constants/schema.d.ts +1 -0
  187. package/dist/constants/sql/dataType/Databricks.d.ts +1 -0
  188. package/dist/constants/sql/dataType/MSSQL.d.ts +1 -0
  189. package/dist/constants/sql/dataType/MariaDB.d.ts +1 -0
  190. package/dist/constants/sql/dataType/MySQL.d.ts +1 -0
  191. package/dist/constants/sql/dataType/Oracle.d.ts +1 -0
  192. package/dist/constants/sql/dataType/PostgreSQL.d.ts +1 -0
  193. package/dist/constants/sql/dataType/SQLite.d.ts +1 -0
  194. package/dist/constants/sql/dataType/Snowflake.d.ts +1 -0
  195. package/dist/constants/sql/dataType/index.d.ts +1 -0
  196. package/dist/constants/sql/database.d.ts +1 -0
  197. package/dist/constants/tablePlacement.d.ts +15 -0
  198. package/dist/engine/actions.d.ts +1 -0
  199. package/dist/engine/clock.d.ts +1 -0
  200. package/dist/engine/context.d.ts +1 -0
  201. package/dist/engine/generator.actions.d.ts +1 -0
  202. package/dist/engine/history.actions.d.ts +1 -0
  203. package/dist/engine/history.d.ts +1 -0
  204. package/dist/engine/hooks.d.ts +1 -0
  205. package/dist/engine/index.d.ts +1 -0
  206. package/dist/engine/index.js +44 -0
  207. package/dist/engine/modules/editor/actions.d.ts +9 -0
  208. package/dist/engine/modules/editor/atom.actions.d.ts +39 -0
  209. package/dist/engine/modules/editor/generator.actions.d.ts +1 -0
  210. package/dist/engine/modules/editor/history.d.ts +1 -0
  211. package/dist/engine/modules/editor/state.d.ts +11 -0
  212. package/dist/engine/modules/editor/utils/duplicate.d.ts +5 -2
  213. package/dist/engine/modules/editor/utils/findRelationshipColumn.d.ts +1 -0
  214. package/dist/engine/modules/editor/utils/focus.d.ts +1 -0
  215. package/dist/engine/modules/editor/utils/selectRangeColumn.d.ts +1 -0
  216. package/dist/engine/modules/index/actions.d.ts +1 -0
  217. package/dist/engine/modules/index/atom.actions.d.ts +1 -0
  218. package/dist/engine/modules/index/generator.actions.d.ts +1 -0
  219. package/dist/engine/modules/index/history.d.ts +1 -0
  220. package/dist/engine/modules/index-column/actions.d.ts +1 -0
  221. package/dist/engine/modules/index-column/atom.actions.d.ts +1 -0
  222. package/dist/engine/modules/index-column/generator.actions.d.ts +1 -0
  223. package/dist/engine/modules/index-column/history.d.ts +1 -0
  224. package/dist/engine/modules/memo/actions.d.ts +1 -0
  225. package/dist/engine/modules/memo/atom.actions.d.ts +1 -0
  226. package/dist/engine/modules/memo/generator.actions.d.ts +1 -0
  227. package/dist/engine/modules/memo/history.d.ts +1 -0
  228. package/dist/engine/modules/relationship/actions.d.ts +1 -0
  229. package/dist/engine/modules/relationship/atom.actions.d.ts +1 -0
  230. package/dist/engine/modules/relationship/generator.actions.d.ts +1 -0
  231. package/dist/engine/modules/relationship/history.d.ts +1 -0
  232. package/dist/engine/modules/relationship/hooks.d.ts +1 -0
  233. package/dist/engine/modules/settings/actions.d.ts +3 -7
  234. package/dist/engine/modules/settings/atom.actions.d.ts +39 -49
  235. package/dist/engine/modules/settings/generator.actions.d.ts +1 -0
  236. package/dist/engine/modules/settings/history.d.ts +1 -1
  237. package/dist/engine/modules/settings/scrollRange.d.ts +18 -0
  238. package/dist/engine/modules/table/actions.d.ts +1 -0
  239. package/dist/engine/modules/table/atom.actions.d.ts +1 -0
  240. package/dist/engine/modules/table/generator.actions.d.ts +1 -0
  241. package/dist/engine/modules/table/history.d.ts +1 -0
  242. package/dist/engine/modules/table/hooks.d.ts +1 -0
  243. package/dist/engine/modules/table-column/actions.d.ts +1 -0
  244. package/dist/engine/modules/table-column/atom.actions.d.ts +1 -0
  245. package/dist/engine/modules/table-column/generator.actions.d.ts +1 -0
  246. package/dist/engine/modules/table-column/history.d.ts +1 -0
  247. package/dist/engine/modules/table-column/hooks.d.ts +1 -0
  248. package/dist/engine/modules/table-column/utils/dataType.d.ts +1 -0
  249. package/dist/engine/replication-store.d.ts +1 -0
  250. package/dist/engine/rx-operators/actionsFilter.d.ts +1 -0
  251. package/dist/engine/rx-operators/bufferCircuitBreaker.d.ts +1 -0
  252. package/dist/engine/rx-operators/groupByStreamActions.d.ts +1 -0
  253. package/dist/engine/rx-operators/ignoreTagFilter.d.ts +1 -0
  254. package/dist/engine/rx-operators/index.d.ts +1 -0
  255. package/dist/engine/rx-operators/notEmptyActions.d.ts +1 -0
  256. package/dist/engine/rx-operators/readonlyIgnoreFilter.d.ts +1 -0
  257. package/dist/engine/rx-operators/sharedStreamActionsCompressor.d.ts +1 -0
  258. package/dist/engine/rx-store.d.ts +1 -0
  259. package/dist/engine/shared-store.d.ts +1 -0
  260. package/dist/engine/state.d.ts +1 -0
  261. package/dist/engine/store-hooks.d.ts +1 -0
  262. package/dist/engine/store.d.ts +1 -0
  263. package/dist/engine/tag.d.ts +1 -0
  264. package/dist/erd-editor.umd.js +5259 -0
  265. package/dist/hooks/useDarkMode.d.ts +1 -0
  266. package/dist/hooks/useFlipAnimation.d.ts +1 -0
  267. package/dist/hooks/useKeyBindingMap.d.ts +1 -0
  268. package/dist/hooks/useUnmounted.d.ts +1 -0
  269. package/dist/index.d.ts +1 -1
  270. package/dist/index.dev.d.ts +1 -1
  271. package/dist/index.js +20210 -0
  272. package/dist/internal-types/index.d.ts +1 -0
  273. package/dist/konva/batchDraw.d.ts +1 -0
  274. package/dist/konva/host.d.ts +1 -0
  275. package/dist/konva/jsx-types.test-d.d.ts +1 -0
  276. package/dist/konva/scene/columnDropTarget.d.ts +1 -0
  277. package/dist/konva/scene/contentBounds.d.ts +29 -0
  278. package/dist/konva/scene/konvaFlip.d.ts +1 -0
  279. package/dist/konva/scene/metrics.d.ts +1 -0
  280. package/dist/konva/scene/renderScene.d.ts +1 -0
  281. package/dist/konva/scene/viewFreeze.d.ts +20 -0
  282. package/dist/konva/scene/viewport.d.ts +14 -7
  283. package/dist/konva/testHandle.d.ts +1 -0
  284. package/dist/konva/theme.d.ts +1 -0
  285. package/dist/konva/workerDomStubs.d.ts +1 -0
  286. package/dist/schemaGCService--wGet5O7.js +9636 -0
  287. package/dist/services/elk-layout/elkGraph.d.ts +44 -0
  288. package/dist/services/elk-layout/elkLayout.shared-worker.d.ts +2 -0
  289. package/dist/services/elk-layout/elkLayoutOptions.d.ts +25 -0
  290. package/dist/services/elk-layout/elkLayoutService.d.ts +21 -0
  291. package/dist/services/elk-layout/elkWorkerRealm.d.ts +2 -0
  292. package/dist/services/elk-layout/index.d.ts +13 -0
  293. package/dist/services/export-png/ExportScene.d.ts +11 -4
  294. package/dist/services/export-png/documentScene.d.ts +16 -3
  295. package/dist/services/export-png/exportBox.d.ts +27 -0
  296. package/dist/services/export-png/exportPng.shared-worker.d.ts +1 -0
  297. package/dist/services/export-png/exportPngService.d.ts +1 -0
  298. package/dist/services/export-png/index.d.ts +11 -4
  299. package/dist/services/export-png/pixelRatio.d.ts +1 -0
  300. package/dist/services/export-png/renderPng.d.ts +4 -1
  301. package/dist/services/export-png/textWidth.d.ts +1 -0
  302. package/dist/services/schema-gc/index.d.ts +6 -3
  303. package/dist/services/schema-gc/procGC.d.ts +1 -0
  304. package/dist/services/schema-gc/schemaGC.shared-worker.d.ts +1 -0
  305. package/dist/services/schema-gc/schemaGCService.d.ts +1 -0
  306. package/dist/services/shiki/index.d.ts +10 -0
  307. package/dist/services/shiki/shiki.shared-worker.d.ts +2 -0
  308. package/dist/services/shiki/shikiService.d.ts +18 -0
  309. package/dist/styles/colorPicker.style.d.ts +1 -0
  310. package/dist/styles/fonts.styles.d.ts +1 -0
  311. package/dist/styles/reset.styles.d.ts +1 -0
  312. package/dist/styles/scrollbar.styles.d.ts +1 -0
  313. package/dist/styles/typography.styles.d.ts +1 -0
  314. package/dist/themes/radix-ui-theme.config.d.ts +1 -0
  315. package/dist/themes/radix-ui-theme.d.ts +1 -0
  316. package/dist/themes/tokens.d.ts +1 -0
  317. package/dist/utils/arrayHas.d.ts +3 -0
  318. package/dist/utils/attribute.d.ts +1 -0
  319. package/dist/utils/bit.d.ts +1 -0
  320. package/dist/utils/calcMemo.d.ts +1 -0
  321. package/dist/utils/calcTable.d.ts +1 -0
  322. package/dist/utils/clipboard.d.ts +1 -0
  323. package/dist/utils/collection/index.entity.d.ts +1 -0
  324. package/dist/utils/collection/indexColumn.entity.d.ts +1 -0
  325. package/dist/utils/collection/memo.entity.d.ts +1 -0
  326. package/dist/utils/collection/relationship.entity.d.ts +1 -0
  327. package/dist/utils/collection/sequence.d.ts +1 -0
  328. package/dist/utils/collection/table.entity.d.ts +1 -0
  329. package/dist/utils/collection/tableColumn.entity.d.ts +1 -0
  330. package/dist/utils/device-detect/index.d.ts +1 -0
  331. package/dist/utils/domEvent.d.ts +7 -0
  332. package/dist/utils/dragSelect.d.ts +1 -8
  333. package/dist/utils/draw-relationship/calc.d.ts +1 -0
  334. package/dist/utils/draw-relationship/chamfer.d.ts +1 -0
  335. package/dist/utils/draw-relationship/draw.d.ts +1 -0
  336. package/dist/utils/draw-relationship/incremental.d.ts +1 -0
  337. package/dist/utils/draw-relationship/index.d.ts +1 -0
  338. package/dist/utils/draw-relationship/nudge.d.ts +1 -0
  339. package/dist/utils/draw-relationship/pathFinding.d.ts +1 -0
  340. package/dist/utils/draw-relationship/route.d.ts +1 -0
  341. package/dist/utils/draw-relationship/sort.d.ts +1 -0
  342. package/dist/utils/draw-relationship/stub.d.ts +1 -0
  343. package/dist/utils/emitter.d.ts +15 -7
  344. package/dist/utils/file/exportFile.d.ts +5 -4
  345. package/dist/utils/file/importFile.d.ts +1 -0
  346. package/dist/utils/flipAnimation.d.ts +1 -0
  347. package/dist/utils/focus.d.ts +1 -0
  348. package/dist/utils/generator-code/aml.d.ts +1 -0
  349. package/dist/utils/generator-code/csharp.d.ts +1 -0
  350. package/dist/utils/generator-code/dbml.d.ts +1 -0
  351. package/dist/utils/generator-code/drizzle.d.ts +1 -0
  352. package/dist/utils/generator-code/go.d.ts +1 -0
  353. package/dist/utils/generator-code/graphql.d.ts +1 -0
  354. package/dist/utils/generator-code/index.d.ts +1 -0
  355. package/dist/utils/generator-code/java.d.ts +1 -0
  356. package/dist/utils/generator-code/jpa.d.ts +1 -0
  357. package/dist/utils/generator-code/kotlin.d.ts +1 -0
  358. package/dist/utils/generator-code/scala.d.ts +1 -0
  359. package/dist/utils/generator-code/sequelize.d.ts +1 -0
  360. package/dist/utils/generator-code/sqlalchemy.d.ts +1 -0
  361. package/dist/utils/generator-code/typeorm.d.ts +1 -0
  362. package/dist/utils/generator-code/typescript.d.ts +1 -0
  363. package/dist/utils/generator-code/utils.d.ts +1 -0
  364. package/dist/utils/globalEmitter.d.ts +1 -0
  365. package/dist/utils/globalEventObservable.d.ts +7 -1
  366. package/dist/utils/icon.d.ts +1 -0
  367. package/dist/utils/index.d.ts +2 -1
  368. package/dist/utils/internalEvents.d.ts +1 -0
  369. package/dist/utils/keyboard-shortcut/index.d.ts +10 -1
  370. package/dist/utils/keyboard-shortcut/utils.d.ts +1 -0
  371. package/dist/utils/promise.d.ts +7 -0
  372. package/dist/utils/rx-operators/fromCopy.d.ts +1 -0
  373. package/dist/utils/rx-operators/fromDraggable.d.ts +1 -0
  374. package/dist/utils/rx-operators/fromPaste.d.ts +1 -0
  375. package/dist/utils/rx-operators/fromShadowDraggable.d.ts +1 -0
  376. package/dist/utils/rx-operators/takeUnsubscribe.d.ts +1 -0
  377. package/dist/utils/safeCallback.d.ts +5 -0
  378. package/dist/utils/schema-aml-parser/convert.d.ts +1 -0
  379. package/dist/utils/schema-aml-parser/dataType.d.ts +1 -0
  380. package/dist/utils/schema-aml-parser/index.d.ts +1 -0
  381. package/dist/utils/schema-aml-parser/parser.d.ts +1 -0
  382. package/dist/utils/schema-aml-parser/tokenizer.d.ts +1 -0
  383. package/dist/utils/schema-aml-parser/types.d.ts +1 -0
  384. package/dist/utils/schema-dbml-parser/convert.d.ts +1 -0
  385. package/dist/utils/schema-dbml-parser/dataType.d.ts +1 -0
  386. package/dist/utils/schema-dbml-parser/index.d.ts +1 -0
  387. package/dist/utils/schema-dbml-parser/parser.d.ts +1 -0
  388. package/dist/utils/schema-dbml-parser/tokenizer.d.ts +1 -0
  389. package/dist/utils/schema-dbml-parser/types.d.ts +1 -0
  390. package/dist/utils/schema-graphql-parser/convert.d.ts +1 -0
  391. package/dist/utils/schema-graphql-parser/dataType.d.ts +1 -0
  392. package/dist/utils/schema-graphql-parser/index.d.ts +1 -0
  393. package/dist/utils/schema-graphql-parser/parser.d.ts +1 -0
  394. package/dist/utils/schema-graphql-parser/types.d.ts +1 -0
  395. package/dist/utils/schema-sql/Databricks.d.ts +1 -0
  396. package/dist/utils/schema-sql/MSSQL.d.ts +1 -0
  397. package/dist/utils/schema-sql/MariaDB.d.ts +1 -0
  398. package/dist/utils/schema-sql/MySQL.d.ts +1 -0
  399. package/dist/utils/schema-sql/Oracle.d.ts +1 -0
  400. package/dist/utils/schema-sql/PostgreSQL.d.ts +1 -0
  401. package/dist/utils/schema-sql/SQLite.d.ts +1 -0
  402. package/dist/utils/schema-sql/Snowflake.d.ts +1 -0
  403. package/dist/utils/schema-sql/index.d.ts +1 -0
  404. package/dist/utils/schema-sql/utils.d.ts +1 -0
  405. package/dist/utils/schema-sql-parser/index.d.ts +1 -0
  406. package/dist/utils/schema-sql-parser/utils.d.ts +1 -0
  407. package/dist/utils/sharedColor.d.ts +1 -0
  408. package/dist/utils/table-clipboard/copy.d.ts +15 -2
  409. package/dist/utils/table-clipboard/index.d.ts +1 -0
  410. package/dist/utils/table-clipboard/paste.d.ts +1 -0
  411. package/dist/utils/table-clipboard/payload.d.ts +30 -1
  412. package/dist/utils/table-clipboard/placement.d.ts +1 -0
  413. package/dist/utils/text.d.ts +1 -0
  414. package/dist/utils/validation.d.ts +2 -1
  415. package/dist/workers/elkLayout.shared-worker.js +1 -0
  416. package/dist/workers/exportPng.shared-worker.js +54 -0
  417. package/dist/workers/schemaGC.shared-worker.js +1 -0
  418. package/dist/workers/shiki.shared-worker.js +1 -0
  419. package/dist/workers/spawn.d.ts +10 -0
  420. package/dist/workers/spawn.inline.d.ts +10 -0
  421. package/package.json +55 -51
  422. package/dist/components/erd/hide-sign/HideSign.d.ts +0 -6
  423. package/dist/components/erd/hide-sign/HideSign.styles.d.ts +0 -1
  424. package/dist/components/erd/hide-sign/hideSignBounds.d.ts +0 -9
  425. package/dist/components/erd-editor/ErdEditor.stories.d.ts +0 -17
  426. package/dist/components/primitives/button/Button.stories.d.ts +0 -26
  427. package/dist/components/primitives/code-block/CodeBlock.stories.d.ts +0 -25
  428. package/dist/components/primitives/color-picker/ColorPicker.stories.d.ts +0 -26
  429. package/dist/components/primitives/context-menu/ContextMenu.stories.d.ts +0 -16
  430. package/dist/components/primitives/edit-input/EditInput.stories.d.ts +0 -36
  431. package/dist/components/primitives/highlighted-text/HighlightedText.stories.d.ts +0 -23
  432. package/dist/components/primitives/icon/Icon.stories.d.ts +0 -10
  433. package/dist/components/primitives/kbd/Kbd.stories.d.ts +0 -17
  434. package/dist/components/primitives/sash/Sash.stories.d.ts +0 -30
  435. package/dist/components/primitives/separator/Separator.stories.d.ts +0 -25
  436. package/dist/components/primitives/slider/Slider.stories.d.ts +0 -23
  437. package/dist/components/primitives/switch/Switch.stories.d.ts +0 -21
  438. package/dist/components/primitives/text-input/TextInput.stories.d.ts +0 -41
  439. package/dist/components/primitives/toast/Toast.stories.d.ts +0 -33
  440. package/dist/engine.js +0 -42
  441. package/dist/erd-editor.js +0 -41824
  442. package/dist/schemaGCService-DrlqIen8.js +0 -17549
  443. package/dist/services/shikiService.d.ts +0 -8
  444. package/dist/themes/textColor.d.ts +0 -2
package/README.md CHANGED
@@ -32,6 +32,14 @@ and the [IntelliJ plugin](https://plugins.jetbrains.com/plugin/23594-erd-editor)
32
32
  npm install @dineug/erd-editor
33
33
  ```
34
34
 
35
+ The package ships ES modules with its dependencies left as bare imports, so any bundler
36
+ (Vite, webpack, Rspack, esbuild, …) resolves, dedupes and tree-shakes them like the rest of
37
+ your app. Four features run in shared workers — schema garbage collection, the PNG export, the
38
+ automatic table placement and the syntax highlighting — constructed as
39
+ `new SharedWorker(new URL('./workers/…', import.meta.url))`, which those bundlers emit as worker
40
+ files beside your chunks; a strict CSP needs `worker-src 'self'`. Without a bundler, use the UMD
41
+ file described under [Script tag](#script-tag) instead.
42
+
35
43
  ## Usage
36
44
 
37
45
  ```js
@@ -62,6 +70,35 @@ useEffect(() => {
62
70
  }, []);
63
71
  ```
64
72
 
73
+ ### Vite
74
+
75
+ In development Vite pre-bundles dependencies into its cache directory, and the worker files
76
+ would then be looked up there rather than beside the package. Exclude the editor packages from
77
+ that step; a production build needs nothing.
78
+
79
+ ```js
80
+ // vite.config.js
81
+ export default {
82
+ optimizeDeps: {
83
+ exclude: ['@dineug/erd-editor'],
84
+ },
85
+ };
86
+ ```
87
+
88
+ ### Script tag
89
+
90
+ `dist/erd-editor.umd.js` is a self-contained build for a plain `<script>` tag: every
91
+ dependency and all four workers are inside it, and it registers `<erd-editor>` and exposes the
92
+ two file callbacks as `window.ErdEditor`. It is what `unpkg` and `jsdelivr` serve.
93
+
94
+ ```html
95
+ <erd-editor style="display: block; width: 100%; height: 100vh"></erd-editor>
96
+ <script src="https://cdn.jsdelivr.net/npm/@dineug/erd-editor/dist/erd-editor.umd.js"></script>
97
+ ```
98
+
99
+ The workers travel inside the file as `data:` URLs, so a strict CSP needs `worker-src data:`
100
+ for this build. Pin a version in the URL for anything beyond a demo.
101
+
65
102
  ### HTML
66
103
 
67
104
  ```html
@@ -81,15 +118,6 @@ erd-editor {
81
118
  }
82
119
  ```
83
120
 
84
- ### CDN
85
-
86
- ```html
87
- <erd-editor style="display: block; width: 100%; height: 100vh"></erd-editor>
88
- <script type="module">
89
- import 'https://esm.run/@dineug/erd-editor';
90
- </script>
91
- ```
92
-
93
121
  ## API
94
122
 
95
123
  ### Attributes
@@ -119,7 +147,7 @@ erd-editor {
119
147
  | `setDiffValue(value: string)` | Open the diff viewer against another document. |
120
148
  | `setPresetTheme(options)` | Set `appearance`, `grayColor` and `accentColor`. |
121
149
  | `setTheme(theme)` | Override individual theme tokens. |
122
- | `setKeyBindingMap(map)` | Remap shortcuts. `edit`, `stop`, `search`, `undo`, `redo`, `zoomIn` and `zoomOut` are reserved. |
150
+ | `setKeyBindingMap(map)` | Remap shortcuts. `edit`, `stop`, `search`, `undo`, `redo`, `zoomIn`, `zoomOut` and `zoomReset` are reserved. |
123
151
  | `getSharedStore(config?)` | Returns `{ subscribe, dispatch, dispatchSync, connection, disconnect, destroy }`. `subscribe` gives you this editor's actions to relay; `dispatch` applies a peer's. You supply the transport. `config` is `{ getNickname?, mouseTracker?, focusTracker? }`; both trackers default to `true` and broadcast this editor's cursor and table focus to peers. |
124
152
  | `focus()` / `blur()` | Move focus in and out of the editor. |
125
153
  | `clear()` | Empty the document. |
@@ -134,22 +162,22 @@ erd-editor {
134
162
 
135
163
  ## Syntax highlighting
136
164
 
137
- The SQL and code-generation panels render as plain text unless a highlighter is supplied.
138
- [`@dineug/erd-editor-shiki-worker`](https://www.npmjs.com/package/@dineug/erd-editor-shiki-worker)
139
- runs one in a shared worker. It is a separate install:
165
+ The SQL and code-generation panels are highlighted by [Shiki](https://shiki.style), in a shared
166
+ worker of its own. There is nothing to install or register: the worker is built the first time a
167
+ code panel renders, so a page that opens none never fetches the grammars.
140
168
 
141
- ```sh
142
- npm install @dineug/erd-editor-shiki-worker
143
- ```
169
+ | | |
170
+ | --- | --- |
171
+ | Languages | SQL, TypeScript, GraphQL, C#, Java, Kotlin, Scala, Go, Python |
172
+ | Themes | `github-dark`, `github-light`, picked from the editor's light / dark appearance |
144
173
 
145
- ```js
146
- import { setGetShikiServiceCallback } from '@dineug/erd-editor';
174
+ Those are exactly the languages the panels emit — the JPA generator emits Java, the SQLAlchemy
175
+ generator emits Python, the TypeORM, Sequelize and Drizzle generators emit TypeScript, and the
176
+ DBML and AML generators are highlighted as SQL, the closest grammar shiki ships.
147
177
 
148
- // deferred, so the highlighter never lands in your main chunk
149
- import('@dineug/erd-editor-shiki-worker').then(({ getShikiService }) => {
150
- setGetShikiServiceCallback(getShikiService);
151
- });
152
- ```
178
+ Where `SharedWorker` is missing — Chrome on Android, Safari before 16.4 the underlying error is
179
+ logged and the panels render as plain text; nothing else is affected. The regex engine is plain
180
+ JavaScript, so no host CSP needs `wasm-unsafe-eval`.
153
181
 
154
182
  ## File dialogs
155
183
 
@@ -28,3 +28,4 @@ export declare function createAppContext(ctx: InjectAppContext, options?: AppCon
28
28
  export declare const appContext: import('@dineug/r-html').Context<AppContext>;
29
29
  export declare const useAppContext: (ctx: Ctx, fallback?: AppContext) => import('@dineug/r-html').Ref<AppContext>;
30
30
  export declare function appDestroy(app: AppContext): void;
31
+ //# sourceMappingURL=appContext.d.ts.map
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=customElementRegistry.d.ts.map
@@ -5,3 +5,4 @@ export type ErdProps = {
5
5
  };
6
6
  declare const Erd: FC<ErdProps>;
7
7
  export default Erd;
8
+ //# sourceMappingURL=Erd.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare const root: import('@dineug/r-html').CSSTemplateLiterals;
2
+ //# sourceMappingURL=Erd.styles.d.ts.map
@@ -1,5 +1,7 @@
1
1
  import { FC, Ref } from '@dineug/r-html';
2
2
  import { AppContext } from '../../appContext';
3
+ import { Viewport } from '../../../engine/modules/editor/state';
4
+ import { Rect } from '../../../konva/scene/metrics';
3
5
  export type AutomaticTablePlacementProps = {
4
6
  app: Ref<AppContext>;
5
7
  onChange: (tables: TablePoint[]) => void;
@@ -9,5 +11,24 @@ export type TablePoint = {
9
11
  x: number;
10
12
  y: number;
11
13
  };
14
+ /**
15
+ * Scene units left around the content when the preview fits it, so a table at
16
+ * the edge of the document is not flush against the edge of the screen.
17
+ */
18
+ export declare const FIT_PADDING = 200;
19
+ /** The closest the preview opens at: the whole document is what it is for. */
20
+ export declare const PREVIEW_ZOOM_MAX = 0.7;
21
+ /**
22
+ * The zoom the preview opens at: the content with its padding fitted into the
23
+ * screen on both axes, rounded to the two places a zoom is kept to, and held
24
+ * between the floor every zoom has and the ceiling above.
25
+ */
26
+ export declare function previewZoomLevel(content: Rect, viewport: Viewport): number;
27
+ /** How far the simulation has cooled, from 0 to 1. */
28
+ export type PlacementToastState = {
29
+ progress: number;
30
+ };
31
+ export declare function placementDescription({ progress, }: PlacementToastState): string;
12
32
  declare const AutomaticTablePlacement: FC<AutomaticTablePlacementProps>;
13
33
  export default AutomaticTablePlacement;
34
+ //# sourceMappingURL=AutomaticTablePlacement.d.ts.map
@@ -1,2 +1,3 @@
1
1
  export declare const root: import('@dineug/r-html').CSSTemplateLiterals;
2
2
  export declare const container: import('@dineug/r-html').CSSTemplateLiterals;
3
+ //# sourceMappingURL=AutomaticTablePlacement.styles.d.ts.map
@@ -25,3 +25,4 @@ type Cooling = {
25
25
  export declare function placementProgress(simulation: Cooling): number;
26
26
  export declare function createAutomaticTablePlacement(state: RootState): import('d3-force').Simulation<Node, undefined>;
27
27
  export {};
28
+ //# sourceMappingURL=createAutomaticTablePlacement.d.ts.map
@@ -0,0 +1,12 @@
1
+ import { AppContext } from '../../appContext';
2
+ import { ElkLayoutPoint, ElkPlacement } from '../../../services/elk-layout';
3
+ /**
4
+ * Places every table by ELK and hands the layout straight over. No preview
5
+ * overlay: one layout arrives at once, there is nothing to weigh before it
6
+ * lands, and a single undo puts every table back.
7
+ *
8
+ * @example
9
+ * runElkPlacement(app.value, placement, handleChangeAutomaticTablePlacement);
10
+ */
11
+ export declare function runElkPlacement(app: AppContext, placement: ElkPlacement, onChange: (tables: ElkLayoutPoint[]) => void): Promise<void>;
12
+ //# sourceMappingURL=runElkPlacement.d.ts.map
@@ -11,3 +11,4 @@ export type CanvasProps = {
11
11
  */
12
12
  declare const Canvas: FC<CanvasProps>;
13
13
  export default Canvas;
14
+ //# sourceMappingURL=Canvas.d.ts.map
@@ -1,13 +1,14 @@
1
1
  /**
2
- * A document box, painted with the canvas background. The minimap's thumbnail
3
- * is one of these; the editor's own document box is a konva rect on the scene's
4
- * bottom layer, because the stage container below is the screen, not the box.
2
+ * The stage container, which is viewport sized and is the canvas. The document
3
+ * has no edge to draw any more, so the colour the scene used to paint on a
4
+ * document sized rect is painted here instead and reaches every corner.
5
5
  */
6
- export declare const root: import('@dineug/r-html').CSSTemplateLiterals;
6
+ export declare const stage: import('@dineug/r-html').CSSTemplateLiterals;
7
7
  /**
8
- * The stage container, which is viewport sized. It paints nothing of its own so
9
- * that the boundary background of whatever holds the editor shows through
10
- * wherever the scene has drawn no document.
8
+ * The minimap's thumbnail, which is a picture of that same canvas and so is
9
+ * painted by the very same rules. It keeps a name of its own because the
10
+ * minimap asks for it by one.
11
11
  */
12
- export declare const stage: import('@dineug/r-html').CSSTemplateLiterals;
12
+ export declare const root: import('@dineug/r-html').CSSTemplateLiterals;
13
13
  export declare const controller: import('@dineug/r-html').CSSTemplateLiterals;
14
+ //# sourceMappingURL=Canvas.styles.d.ts.map
@@ -16,3 +16,4 @@ declare const CanvasScene: FC<CanvasSceneProps>;
16
16
  */
17
17
  export declare function renderCanvasScene(stage: Stage, props: CanvasSceneProps): void;
18
18
  export default CanvasScene;
19
+ //# sourceMappingURL=CanvasScene.d.ts.map
@@ -6,3 +6,4 @@ import { FC } from '@dineug/r-html';
6
6
  */
7
7
  declare const EditOverlay: FC;
8
8
  export default EditOverlay;
9
+ //# sourceMappingURL=EditOverlay.d.ts.map
@@ -4,3 +4,4 @@
4
4
  * paints no underline of its own: the scene's rect keeps running under it.
5
5
  */
6
6
  export declare const cell: import('@dineug/r-html').CSSTemplateLiterals;
7
+ //# sourceMappingURL=EditOverlay.styles.d.ts.map
@@ -19,3 +19,4 @@ export type SceneIconOptions = {
19
19
  * scene rendered at that size.
20
20
  */
21
21
  export declare function sceneIcon({ icon, name, kind, size, color, x, y, click, mouseenter, mouseleave, }: SceneIconOptions): DOMTemplateLiterals | null;
22
+ //# sourceMappingURL=SceneIcon.template.d.ts.map
@@ -1,3 +1,4 @@
1
1
  import { AppContext } from '../../appContext';
2
2
  import { SelectType } from '../../../engine/modules/editor/state';
3
3
  export declare function tryStartAltDragDuplicate(app: AppContext, event: MouseEvent | TouchEvent, entityId: string, selectType: SelectType): boolean;
4
+ //# sourceMappingURL=altDragDuplicate.d.ts.map
@@ -9,3 +9,4 @@ export type DragSelectProps = {
9
9
  */
10
10
  declare const DragSelect: FC<DragSelectProps>;
11
11
  export default DragSelect;
12
+ //# sourceMappingURL=DragSelect.d.ts.map
@@ -6,3 +6,4 @@ export type DrawRelationshipProps = {
6
6
  };
7
7
  declare const DrawRelationship: FC<DrawRelationshipProps>;
8
8
  export default DrawRelationship;
9
+ //# sourceMappingURL=DrawRelationship.d.ts.map
@@ -7,3 +7,4 @@ export type DuplicateGhostProps = {};
7
7
  */
8
8
  declare const DuplicateGhost: FC<DuplicateGhostProps>;
9
9
  export default DuplicateGhost;
10
+ //# sourceMappingURL=DuplicateGhost.d.ts.map
@@ -1,4 +1,7 @@
1
- export declare function beginEntityDrag(): void;
2
- export declare function endEntityDrag(): void;
1
+ import { RootState } from '../../../engine/state';
2
+ /** Raises the flag and holds the view as it stands until endEntityDrag. */
3
+ export declare function beginEntityDrag(root: RootState): void;
4
+ export declare function endEntityDrag(root: RootState): void;
3
5
  /** Reads the flag through the observable, so a scene render tracks it. */
4
- export declare function isEntityDragActive(): boolean;
6
+ export declare function isEntityDragActive(root: RootState): boolean;
7
+ //# sourceMappingURL=entityDrag.d.ts.map
@@ -9,3 +9,4 @@ export type HighLevelTableProps = {
9
9
  };
10
10
  declare const HighLevelTable: FC<HighLevelTableProps>;
11
11
  export default HighLevelTable;
12
+ //# sourceMappingURL=HighLevelTable.d.ts.map
@@ -7,3 +7,4 @@ export type MemoProps = {
7
7
  };
8
8
  declare const Memo: FC<MemoProps>;
9
9
  export default Memo;
10
+ //# sourceMappingURL=Memo.d.ts.map
@@ -17,3 +17,4 @@ export declare const MemoSashPosition: {
17
17
  export type MemoSashPosition = ValuesType<typeof MemoSashPosition>;
18
18
  declare const MemoSash: FC<MemoSashProps>;
19
19
  export default MemoSash;
20
+ //# sourceMappingURL=MemoSash.d.ts.map
@@ -24,3 +24,4 @@ export declare function requestMemoCaret(memoId: string, offset: number): void;
24
24
  * const offset = takeMemoCaret(target.memoId);
25
25
  */
26
26
  export declare function takeMemoCaret(memoId: string): number;
27
+ //# sourceMappingURL=memoCaret.d.ts.map
@@ -26,3 +26,4 @@ export declare function clampMemoScrollTop(memo: Memo, scrollTop: number): numbe
26
26
  * const scrollTop = getMemoScrollTop(store.state.editor, memo);
27
27
  */
28
28
  export declare function getMemoScrollTop(editor: Editor, memo: Memo): number;
29
+ //# sourceMappingURL=memoScroll.d.ts.map
@@ -31,3 +31,4 @@ export declare function getMemoTextBaseline(): number;
31
31
  * const text = layoutMemoLines(memo.value, memo.ui.width).join('\n');
32
32
  */
33
33
  export declare function layoutMemoLines(value: string, width: number): readonly string[];
34
+ //# sourceMappingURL=memoText.d.ts.map
@@ -4,3 +4,4 @@ export declare function useMoveMemo(ctx: Ctx, props: {
4
4
  }): {
5
5
  onMoveStart: (event: import('../sceneTokens').ScenePointerEvent) => void;
6
6
  };
7
+ //# sourceMappingURL=useMoveMemo.d.ts.map
@@ -13,3 +13,4 @@ export type RelationshipGroupProps = {
13
13
  */
14
14
  declare const RelationshipGroup: FC<RelationshipGroupProps>;
15
15
  export default RelationshipGroup;
16
+ //# sourceMappingURL=RelationshipGroup.d.ts.map
@@ -6,3 +6,4 @@ export type RelationshipProps = {
6
6
  };
7
7
  declare const Relationship: FC<RelationshipProps>;
8
8
  export default Relationship;
9
+ //# sourceMappingURL=Relationship.d.ts.map
@@ -15,3 +15,4 @@ export declare function decorationLine(points: PointToPoint, stroke: string): DO
15
15
  /** The optional ring of a cardinality marker, at either anchor. */
16
16
  export declare function decorationRing({ cx, cy }: Circle, stroke: string): DOMTemplateLiterals;
17
17
  export declare function relationshipShape(relationshipType: number, { path, line }: RelationshipPath, stroke: string): DOMTemplateLiterals | null;
18
+ //# sourceMappingURL=Relationship.template.d.ts.map
@@ -16,3 +16,4 @@ export declare const headerCellHit: HitFunc;
16
16
  * back at the icon's corner.
17
17
  */
18
18
  export declare const iconHit: HitFunc;
19
+ //# sourceMappingURL=sceneHit.d.ts.map
@@ -9,3 +9,4 @@ export type SceneKindNode = {
9
9
  };
10
10
  /** Whether the node itself or any ancestor of it carries one of the kinds. */
11
11
  export declare function hasKindAncestor(node: SceneKindNode | null | undefined, kinds: readonly string[]): boolean;
12
+ //# sourceMappingURL=sceneKind.d.ts.map
@@ -29,3 +29,4 @@ export type RetentionPool = {
29
29
  * const retainedIds = retention.retain(drawnIds, new Set(tableIds));
30
30
  */
31
31
  export declare function createRetentionPool({ perDrawn, atLeast, }?: Partial<RetentionOptions>): RetentionPool;
32
+ //# sourceMappingURL=sceneRetention.d.ts.map
@@ -65,3 +65,4 @@ export declare const CURSOR_INHERIT = "";
65
65
  * on:mouseenter={(event) => setSceneCursor(event, CURSOR_POINTER)}
66
66
  */
67
67
  export declare function setSceneCursor(event: ScenePointerEvent, cursor: string): void;
68
+ //# sourceMappingURL=sceneTokens.d.ts.map
@@ -6,3 +6,4 @@ export type SharedDragSelectProps = {};
6
6
  */
7
7
  declare const SharedDragSelect: FC<SharedDragSelectProps>;
8
8
  export default SharedDragSelect;
9
+ //# sourceMappingURL=SharedDragSelect.d.ts.map
@@ -3,3 +3,4 @@ export type SharedMouseTrackerProps = {};
3
3
  /** One cursor per peer sharing a pointer, on the presence layer. */
4
4
  declare const SharedMouseTracker: FC<SharedMouseTrackerProps>;
5
5
  export default SharedMouseTracker;
6
+ //# sourceMappingURL=SharedMouseTracker.d.ts.map
@@ -10,3 +10,4 @@ export type SharedMouseCursorProps = {
10
10
  */
11
11
  declare const SharedMouseCursor: FC<SharedMouseCursorProps>;
12
12
  export default SharedMouseCursor;
13
+ //# sourceMappingURL=SharedMouseCursor.d.ts.map
@@ -13,3 +13,4 @@ export type TableProps = {
13
13
  };
14
14
  declare const Table: FC<TableProps>;
15
15
  export default Table;
16
+ //# sourceMappingURL=Table.d.ts.map
@@ -61,3 +61,4 @@ export declare function getHeaderCellSlots(state: RootState, table: Table): Cell
61
61
  * each lands on once the ones before it have taken their width.
62
62
  */
63
63
  export declare function getColumnCellSlots(state: RootState, widths: ColumnCellWidths): ColumnCellSlot[];
64
+ //# sourceMappingURL=cellLayout.d.ts.map
@@ -44,3 +44,4 @@ export type ColumnProps = {
44
44
  };
45
45
  declare const Column: FC<ColumnProps>;
46
46
  export default Column;
47
+ //# sourceMappingURL=Column.d.ts.map
@@ -12,3 +12,4 @@ export type DoubleClickGuard = {
12
12
  * the first one was, so the cell that opened the pair is remembered here.
13
13
  */
14
14
  export declare function createDoubleClickGuard(): DoubleClickGuard;
15
+ //# sourceMappingURL=doubleClick.d.ts.map
@@ -5,3 +5,4 @@ export declare function useFocusTable(ctx: Ctx, tableId: string): {
5
5
  hasEdit: (focusType: FocusType, columnId?: string) => boolean;
6
6
  hasSelectColumn: (columnId: string) => boolean;
7
7
  };
8
+ //# sourceMappingURL=useFocusTable.d.ts.map
@@ -4,3 +4,4 @@ export declare function useMoveTable(ctx: Ctx, props: {
4
4
  }): {
5
5
  onMoveStart: (event: import('../sceneTokens').ScenePointerEvent) => void;
6
6
  };
7
+ //# sourceMappingURL=useMoveTable.d.ts.map
@@ -4,3 +4,4 @@ export declare function useSharedFocusTable(ctx: Ctx, tableId: string): {
4
4
  sharedFocusTableColor: () => string | null;
5
5
  sharedFocusColor: (focusType: FocusType, columnId?: string) => string | null;
6
6
  };
7
+ //# sourceMappingURL=useSharedFocusTable.d.ts.map
@@ -16,3 +16,4 @@ export type MoveEntityOptions = {
16
16
  export declare function useMoveEntity(ctx: Ctx, options: MoveEntityOptions): {
17
17
  onMoveStart: (event: ScenePointerEvent) => void;
18
18
  };
19
+ //# sourceMappingURL=useMoveEntity.d.ts.map
@@ -2,3 +2,4 @@ import { Ctx } from '../../../internal-types';
2
2
  export declare function useSharedSelectEntity(ctx: Ctx, entityId: string): {
3
3
  sharedSelectColor: () => string | null;
4
4
  };
5
+ //# sourceMappingURL=useSharedSelectEntity.d.ts.map
@@ -0,0 +1,10 @@
1
+ import { FC } from '@dineug/r-html';
2
+ export type ContentCompassProps = {};
3
+ /**
4
+ * The one thing on a screen that has been panned off every table and memo: an
5
+ * arrow at the nearest of them, how far off it lies, and a press that puts it
6
+ * back in the middle of the screen.
7
+ */
8
+ declare const ContentCompass: FC<ContentCompassProps>;
9
+ export default ContentCompass;
10
+ //# sourceMappingURL=ContentCompass.d.ts.map
@@ -0,0 +1,3 @@
1
+ export declare const compass: import('@dineug/r-html').CSSTemplateLiterals;
2
+ export declare const distance: import('@dineug/r-html').CSSTemplateLiterals;
3
+ //# sourceMappingURL=ContentCompass.styles.d.ts.map
@@ -0,0 +1,24 @@
1
+ import { RootState } from '../../../engine/state';
2
+ import { Point } from '../../../internal-types';
3
+ /** Which way the nearest entity lies and how far, while the screen holds none. */
4
+ export type ContentCompass = {
5
+ /** Degrees clockwise from east, which is the rotation the arrow is drawn at. */
6
+ angle: number;
7
+ /** The gap between the screen and that entity, in scene units. */
8
+ distance: number;
9
+ /** Its middle, which is the scene point a press centres the screen on. */
10
+ target: Point;
11
+ };
12
+ /**
13
+ * Where the nearest entity stands when the screen shows none of them, measured
14
+ * from the screen's own middle. Null while any table or memo reaches the screen,
15
+ * touching it counting as reaching it, and null while nobody has measured one.
16
+ */
17
+ export declare function getContentCompass(state: RootState): ContentCompass | null;
18
+ /**
19
+ * The gap as the pill prints it: whole scene units under a thousand, then
20
+ * thousands, millions and billions carrying one decimal under ten, so the label
21
+ * stays four characters wide however far the view has been carried.
22
+ */
23
+ export declare function formatDistance(distance: number): string;
24
+ //# sourceMappingURL=compassGeometry.d.ts.map
@@ -7,3 +7,4 @@ export type DiffViewerProps = {
7
7
  };
8
8
  declare const DiffViewer: FC<DiffViewerProps>;
9
9
  export default DiffViewer;
10
+ //# sourceMappingURL=DiffViewer.d.ts.map
@@ -1,3 +1,4 @@
1
1
  export declare const root: import('@dineug/r-html').CSSTemplateLiterals;
2
2
  export declare const container: import('@dineug/r-html').CSSTemplateLiterals;
3
3
  export declare const viewport: import('@dineug/r-html').CSSTemplateLiterals;
4
+ //# sourceMappingURL=DiffViewer.styles.d.ts.map
@@ -17,3 +17,4 @@ export declare function diffState(prevState: RootState, state: RootState): [Diff
17
17
  export declare function getNameToTableMap({ doc: { tableIds }, collections, }: RootState): NameToTableMap;
18
18
  export declare function getDiffStyle(diff: number, diffMap: DiffMap): HTMLStyleElement;
19
19
  export {};
20
+ //# sourceMappingURL=diff.d.ts.map
@@ -8,3 +8,4 @@ export type ErdViewerProps = {
8
8
  };
9
9
  declare const ErdViewer: FC<ErdViewerProps>;
10
10
  export default ErdViewer;
11
+ //# sourceMappingURL=ErdViewer.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare const root: import('@dineug/r-html').CSSTemplateLiterals;
2
+ //# sourceMappingURL=ErdViewer.styles.d.ts.map
@@ -9,3 +9,4 @@ export type TreeViewerProps = {
9
9
  };
10
10
  declare const TreeViewer: FC<TreeViewerProps>;
11
11
  export default TreeViewer;
12
+ //# sourceMappingURL=TreeViewer.d.ts.map
@@ -3,3 +3,4 @@ export declare const icon: import('@dineug/r-html').CSSTemplateLiterals;
3
3
  export declare const table: import('@dineug/r-html').CSSTemplateLiterals;
4
4
  export declare const column: import('@dineug/r-html').CSSTemplateLiterals;
5
5
  export declare const ellipsis: import('@dineug/r-html').CSSTemplateLiterals;
6
+ //# sourceMappingURL=TreeViewer.styles.d.ts.map
@@ -14,3 +14,4 @@ export type ErdContextMenuProps = {
14
14
  };
15
15
  declare const ErdContextMenu: FC<ErdContextMenuProps>;
16
16
  export default ErdContextMenu;
17
+ //# sourceMappingURL=ErdContextMenu.d.ts.map
@@ -10,3 +10,4 @@ export declare function createDatabaseMenus({ store }: AppContext): {
10
10
  onClick: () => void;
11
11
  }[];
12
12
  export {};
13
+ //# sourceMappingURL=databaseMenus.d.ts.map
@@ -15,3 +15,4 @@ export declare function createDrawRelationshipMenus({ store, keyBindingMap }: Ap
15
15
  onClick: () => void;
16
16
  }[];
17
17
  export {};
18
+ //# sourceMappingURL=drawRelationshipMenus.d.ts.map
@@ -8,3 +8,4 @@ type Menu = {
8
8
  };
9
9
  export declare function createExportMenus(app: AppContext, onClose: () => void, theme: Theme): Menu[];
10
10
  export {};
11
+ //# sourceMappingURL=exportMenus.d.ts.map
@@ -7,3 +7,4 @@ type Menu = {
7
7
  };
8
8
  export declare function createImportMenus(app: AppContext, onClose: () => void): Menu[];
9
9
  export {};
10
+ //# sourceMappingURL=importMenus.d.ts.map
@@ -5,3 +5,4 @@ export declare function createRelationshipMenus({ store }: AppContext, relations
5
5
  name: string;
6
6
  onClick: () => void;
7
7
  }[];
8
+ //# sourceMappingURL=relationshipMenus.d.ts.map
@@ -4,3 +4,4 @@ export declare function createShowMenus({ store }: AppContext): {
4
4
  name: string;
5
5
  onClick: () => void;
6
6
  }[];
7
+ //# sourceMappingURL=showMenus.d.ts.map
@@ -0,0 +1,24 @@
1
+ import { AppContext } from '../../../appContext';
2
+ import { IconName } from '../../../primitives/icon/icons';
3
+ import { TablePlacement } from '../../../../constants/tablePlacement';
4
+ type Menu = {
5
+ name: string;
6
+ iconName: IconName;
7
+ placement: TablePlacement;
8
+ };
9
+ export declare const menus: Menu[];
10
+ /**
11
+ * The placements the author can ask for. Each one emits the same action, and
12
+ * the editor reads the placement to decide between the preview it watches
13
+ * settle and the layout ELK answers in one go.
14
+ *
15
+ * @example
16
+ * createTablePlacementMenus(app.value, props.onClose).map(menu => ...);
17
+ */
18
+ export declare function createTablePlacementMenus({ emitter }: AppContext, onClose: () => void): {
19
+ name: string;
20
+ iconName: IconName;
21
+ onClick: () => void;
22
+ }[];
23
+ export {};
24
+ //# sourceMappingURL=tablePlacementMenus.d.ts.map
@@ -1,3 +1,4 @@
1
1
  import { Observable } from 'rxjs';
2
2
  import { RootState } from '../../engine/state';
3
3
  export declare const erdShortcutPerformCheck: ({ editor, settings }: RootState) => <T>(source$: Observable<T>) => Observable<T>;
4
+ //# sourceMappingURL=erdShortcutPerformCheck.d.ts.map