@dineug/erd-editor 3.5.0 → 3.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (444) hide show
  1. package/README.md +51 -23
  2. package/dist/components/appContext.d.ts +1 -0
  3. package/dist/components/customElementRegistry.d.ts +1 -0
  4. package/dist/components/erd/Erd.d.ts +1 -0
  5. package/dist/components/erd/Erd.styles.d.ts +1 -0
  6. package/dist/components/erd/automatic-table-placement/AutomaticTablePlacement.d.ts +21 -0
  7. package/dist/components/erd/automatic-table-placement/AutomaticTablePlacement.styles.d.ts +1 -0
  8. package/dist/components/erd/automatic-table-placement/createAutomaticTablePlacement.d.ts +1 -0
  9. package/dist/components/erd/automatic-table-placement/runElkPlacement.d.ts +12 -0
  10. package/dist/components/erd/canvas/Canvas.d.ts +1 -0
  11. package/dist/components/erd/canvas/Canvas.styles.d.ts +9 -8
  12. package/dist/components/erd/canvas/CanvasScene.d.ts +1 -0
  13. package/dist/components/erd/canvas/EditOverlay.d.ts +1 -0
  14. package/dist/components/erd/canvas/EditOverlay.styles.d.ts +1 -0
  15. package/dist/components/erd/canvas/SceneIcon.template.d.ts +1 -0
  16. package/dist/components/erd/canvas/altDragDuplicate.d.ts +1 -0
  17. package/dist/components/erd/canvas/drag-select/DragSelect.d.ts +1 -0
  18. package/dist/components/erd/canvas/draw-relationship/DrawRelationship.d.ts +1 -0
  19. package/dist/components/erd/canvas/duplicate-ghost/DuplicateGhost.d.ts +1 -0
  20. package/dist/components/erd/canvas/entityDrag.d.ts +6 -3
  21. package/dist/components/erd/canvas/high-level-table/HighLevelTable.d.ts +1 -0
  22. package/dist/components/erd/canvas/memo/Memo.d.ts +1 -0
  23. package/dist/components/erd/canvas/memo/memo-sash/MemoSash.d.ts +1 -0
  24. package/dist/components/erd/canvas/memo/memoCaret.d.ts +1 -0
  25. package/dist/components/erd/canvas/memo/memoScroll.d.ts +1 -0
  26. package/dist/components/erd/canvas/memo/memoText.d.ts +1 -0
  27. package/dist/components/erd/canvas/memo/useMoveMemo.d.ts +1 -0
  28. package/dist/components/erd/canvas/relationship-group/RelationshipGroup.d.ts +1 -0
  29. package/dist/components/erd/canvas/relationship-group/relationship/Relationship.d.ts +1 -0
  30. package/dist/components/erd/canvas/relationship-group/relationship/Relationship.template.d.ts +1 -0
  31. package/dist/components/erd/canvas/sceneHit.d.ts +1 -0
  32. package/dist/components/erd/canvas/sceneKind.d.ts +1 -0
  33. package/dist/components/erd/canvas/sceneRetention.d.ts +1 -0
  34. package/dist/components/erd/canvas/sceneTokens.d.ts +1 -0
  35. package/dist/components/erd/canvas/shared-drag-select/SharedDragSelect.d.ts +1 -0
  36. package/dist/components/erd/canvas/shared-mouse-tracker/SharedMouseTracker.d.ts +1 -0
  37. package/dist/components/erd/canvas/shared-mouse-tracker/shared-mouse-cursor/SharedMouseCursor.d.ts +1 -0
  38. package/dist/components/erd/canvas/table/Table.d.ts +1 -0
  39. package/dist/components/erd/canvas/table/cellLayout.d.ts +1 -0
  40. package/dist/components/erd/canvas/table/column/Column.d.ts +1 -0
  41. package/dist/components/erd/canvas/table/doubleClick.d.ts +1 -0
  42. package/dist/components/erd/canvas/table/useFocusTable.d.ts +1 -0
  43. package/dist/components/erd/canvas/table/useMoveTable.d.ts +1 -0
  44. package/dist/components/erd/canvas/table/useSharedFocusTable.d.ts +1 -0
  45. package/dist/components/erd/canvas/useMoveEntity.d.ts +1 -0
  46. package/dist/components/erd/canvas/useSharedSelectEntity.d.ts +1 -0
  47. package/dist/components/erd/content-compass/ContentCompass.d.ts +10 -0
  48. package/dist/components/erd/content-compass/ContentCompass.styles.d.ts +3 -0
  49. package/dist/components/erd/content-compass/compassGeometry.d.ts +24 -0
  50. package/dist/components/erd/diff-viewer/DiffViewer.d.ts +1 -0
  51. package/dist/components/erd/diff-viewer/DiffViewer.styles.d.ts +1 -0
  52. package/dist/components/erd/diff-viewer/diff.d.ts +1 -0
  53. package/dist/components/erd/diff-viewer/erd-viewer/ErdViewer.d.ts +1 -0
  54. package/dist/components/erd/diff-viewer/erd-viewer/ErdViewer.styles.d.ts +1 -0
  55. package/dist/components/erd/diff-viewer/tree-viewer/TreeViewer.d.ts +1 -0
  56. package/dist/components/erd/diff-viewer/tree-viewer/TreeViewer.styles.d.ts +1 -0
  57. package/dist/components/erd/erd-context-menu/ErdContextMenu.d.ts +1 -0
  58. package/dist/components/erd/erd-context-menu/menus/databaseMenus.d.ts +1 -0
  59. package/dist/components/erd/erd-context-menu/menus/drawRelationshipMenus.d.ts +1 -0
  60. package/dist/components/erd/erd-context-menu/menus/exportMenus.d.ts +1 -0
  61. package/dist/components/erd/erd-context-menu/menus/importMenus.d.ts +1 -0
  62. package/dist/components/erd/erd-context-menu/menus/relationshipMenus.d.ts +1 -0
  63. package/dist/components/erd/erd-context-menu/menus/showMenus.d.ts +1 -0
  64. package/dist/components/erd/erd-context-menu/menus/tablePlacementMenus.d.ts +24 -0
  65. package/dist/components/erd/erdShortcutPerformCheck.d.ts +1 -0
  66. package/dist/components/erd/floating-toolbar/FloatingToolbar.d.ts +10 -0
  67. package/dist/components/erd/floating-toolbar/FloatingToolbar.styles.d.ts +4 -0
  68. package/dist/components/erd/hitTest.d.ts +1 -0
  69. package/dist/components/erd/minimap/Minimap.d.ts +1 -0
  70. package/dist/components/erd/minimap/Minimap.styles.d.ts +1 -0
  71. package/dist/components/erd/minimap/MinimapScene.d.ts +1 -0
  72. package/dist/components/erd/minimap/memo/Memo.d.ts +6 -3
  73. package/dist/components/erd/minimap/minimapGeometry.d.ts +82 -34
  74. package/dist/components/erd/minimap/table/Table.d.ts +6 -3
  75. package/dist/components/erd/minimap/useMinimapScroll.d.ts +1 -0
  76. package/dist/components/erd/minimap/viewport/Viewport.d.ts +1 -0
  77. package/dist/components/erd/minimap/viewport/Viewport.styles.d.ts +1 -0
  78. package/dist/components/erd/table-properties/TableProperties.d.ts +1 -0
  79. package/dist/components/erd/table-properties/TableProperties.styles.d.ts +1 -0
  80. package/dist/components/erd/table-properties/table-properties-indexes/TablePropertiesIndexes.d.ts +1 -0
  81. package/dist/components/erd/table-properties/table-properties-indexes/TablePropertiesIndexes.styles.d.ts +1 -0
  82. package/dist/components/erd/table-properties/table-properties-indexes/indexes-checkbox-column/IndexesCheckboxColumn.d.ts +1 -0
  83. package/dist/components/erd/table-properties/table-properties-indexes/indexes-checkbox-column/IndexesCheckboxColumn.styles.d.ts +1 -0
  84. package/dist/components/erd/table-properties/table-properties-indexes/indexes-column/IndexesColumn.d.ts +1 -0
  85. package/dist/components/erd/table-properties/table-properties-indexes/indexes-column/IndexesColumn.styles.d.ts +1 -0
  86. package/dist/components/erd/table-properties/table-properties-indexes/indexes-index/IndexesIndex.d.ts +1 -0
  87. package/dist/components/erd/table-properties/table-properties-indexes/indexes-index/IndexesIndex.styles.d.ts +1 -0
  88. package/dist/components/erd/table-properties/table-properties-tabs/TablePropertiesTabs.d.ts +1 -0
  89. package/dist/components/erd/table-properties/table-properties-tabs/TablePropertiesTabs.styles.d.ts +1 -0
  90. package/dist/components/erd/time-travel/TimeTravel.d.ts +1 -0
  91. package/dist/components/erd/time-travel/TimeTravel.styles.d.ts +1 -0
  92. package/dist/components/erd/useErdShortcut.d.ts +1 -0
  93. package/dist/components/erd/virtual-scroll/VirtualScroll.d.ts +1 -0
  94. package/dist/components/erd/virtual-scroll/VirtualScroll.styles.d.ts +1 -0
  95. package/dist/components/erd/virtual-scroll/useVirtualScroll.d.ts +13 -6
  96. package/dist/components/erd-editor/ErdEditor.d.ts +2 -1
  97. package/dist/components/erd-editor/ErdEditor.styles.d.ts +1 -0
  98. package/dist/components/erd-editor/useErdEditorAttachElement.d.ts +1 -0
  99. package/dist/components/generator-code/GeneratorCode.d.ts +1 -0
  100. package/dist/components/generator-code/GeneratorCode.styles.d.ts +1 -0
  101. package/dist/components/generator-code/generator-code-context-menu/GeneratorCodeContextMenu.d.ts +1 -0
  102. package/dist/components/generator-code/generator-code-context-menu/menus/columnNameCaseMenus.d.ts +1 -0
  103. package/dist/components/generator-code/generator-code-context-menu/menus/languageMenus.d.ts +1 -0
  104. package/dist/components/generator-code/generator-code-context-menu/menus/tableNameCaseMenus.d.ts +1 -0
  105. package/dist/components/global-styles/GlobalStyles.d.ts +1 -0
  106. package/dist/components/primitives/button/Button.d.ts +1 -0
  107. package/dist/components/primitives/button/Button.styles.d.ts +1 -0
  108. package/dist/components/primitives/code-block/CodeBlock.d.ts +3 -2
  109. package/dist/components/primitives/code-block/CodeBlock.styles.d.ts +1 -0
  110. package/dist/components/primitives/color-picker/ColorPicker.d.ts +1 -0
  111. package/dist/components/primitives/color-picker/ColorPicker.styles.d.ts +1 -0
  112. package/dist/components/primitives/context-menu/ContextMenu.d.ts +1 -0
  113. package/dist/components/primitives/context-menu/context-menu-content/ContextMenuContent.d.ts +1 -0
  114. package/dist/components/primitives/context-menu/context-menu-content/ContextMenuContent.styles.d.ts +1 -0
  115. package/dist/components/primitives/context-menu/context-menu-item/ContextMenuItem.d.ts +1 -0
  116. package/dist/components/primitives/context-menu/context-menu-item/ContextMenuItem.styles.d.ts +1 -0
  117. package/dist/components/primitives/context-menu/context-menu-root/ContextMenuRoot.d.ts +1 -0
  118. package/dist/components/primitives/context-menu/context-menu-root/contextMenuRootContext.d.ts +1 -0
  119. package/dist/components/primitives/context-menu/menu/Menu.d.ts +1 -0
  120. package/dist/components/primitives/context-menu/menu/Menu.styles.d.ts +1 -0
  121. package/dist/components/primitives/edit-input/EditInput.d.ts +1 -0
  122. package/dist/components/primitives/edit-input/EditInput.styles.d.ts +1 -0
  123. package/dist/components/primitives/highlighted-text/HighlightedText.d.ts +1 -0
  124. package/dist/components/primitives/highlighted-text/HighlightedText.styles.d.ts +1 -0
  125. package/dist/components/primitives/icon/Icon.d.ts +1 -0
  126. package/dist/components/primitives/icon/Icon.styles.d.ts +1 -0
  127. package/dist/components/primitives/icon/icons.d.ts +9 -1
  128. package/dist/components/primitives/kbd/Kbd.d.ts +1 -0
  129. package/dist/components/primitives/kbd/Kbd.styles.d.ts +1 -0
  130. package/dist/components/primitives/sash/Sash.d.ts +1 -0
  131. package/dist/components/primitives/sash/Sash.styles.d.ts +1 -0
  132. package/dist/components/primitives/separator/Separator.d.ts +1 -0
  133. package/dist/components/primitives/separator/Separator.styles.d.ts +1 -0
  134. package/dist/components/primitives/slider/Slider.d.ts +1 -0
  135. package/dist/components/primitives/slider/Slider.styles.d.ts +1 -0
  136. package/dist/components/primitives/switch/Switch.d.ts +1 -0
  137. package/dist/components/primitives/switch/Switch.styles.d.ts +1 -0
  138. package/dist/components/primitives/text-input/TextInput.d.ts +1 -0
  139. package/dist/components/primitives/toast/Toast.d.ts +1 -0
  140. package/dist/components/primitives/toast/Toast.styles.d.ts +1 -0
  141. package/dist/components/quick-search/QuickSearch.d.ts +1 -0
  142. package/dist/components/quick-search/QuickSearch.styles.d.ts +1 -0
  143. package/dist/components/quick-search/actions.d.ts +1 -0
  144. package/dist/components/schema-sql/SchemaSQL.d.ts +1 -0
  145. package/dist/components/schema-sql/SchemaSQL.styles.d.ts +1 -0
  146. package/dist/components/schema-sql/schema-sql-context-menu/SchemaSQLContextMenu.d.ts +1 -0
  147. package/dist/components/schema-sql/schema-sql-context-menu/menus/bracketMenus.d.ts +1 -0
  148. package/dist/components/settings/Settings.d.ts +1 -0
  149. package/dist/components/settings/Settings.styles.d.ts +1 -0
  150. package/dist/components/settings/settings-lnb/SettingsLnb.d.ts +1 -0
  151. package/dist/components/settings/settings-lnb/SettingsLnb.styles.d.ts +1 -0
  152. package/dist/components/settings/shortcuts/Shortcuts.d.ts +1 -0
  153. package/dist/components/settings/shortcuts/Shortcuts.styles.d.ts +1 -0
  154. package/dist/components/table-view/Table.styles.d.ts +1 -0
  155. package/dist/components/table-view/column/Column.styles.d.ts +1 -0
  156. package/dist/components/table-view/column/column-data-type/ColumnDataType.d.ts +1 -0
  157. package/dist/components/table-view/column/column-data-type/ColumnDataType.styles.d.ts +1 -0
  158. package/dist/components/table-view/column/column-key/ColumnKey.d.ts +1 -0
  159. package/dist/components/table-view/column/column-key/ColumnKey.styles.d.ts +1 -0
  160. package/dist/components/table-view/column/column-not-null/ColumnNotNull.d.ts +1 -0
  161. package/dist/components/table-view/column/column-not-null/ColumnNotNull.styles.d.ts +1 -0
  162. package/dist/components/table-view/column/column-option/ColumnOption.d.ts +1 -0
  163. package/dist/components/table-view/column/column-option/ColumnOption.styles.d.ts +1 -0
  164. package/dist/components/table-view/column/useColumnCell.d.ts +1 -0
  165. package/dist/components/theme/Theme.d.ts +1 -0
  166. package/dist/components/theme-builder/ThemeBuilder.d.ts +1 -0
  167. package/dist/components/theme-builder/ThemeBuilder.styles.d.ts +1 -0
  168. package/dist/components/themeContext.d.ts +1 -0
  169. package/dist/components/toast-container/ToastContainer.d.ts +1 -0
  170. package/dist/components/toast-container/ToastContainer.styles.d.ts +1 -0
  171. package/dist/components/toast-container/openToastWhileRunning.d.ts +1 -0
  172. package/dist/components/toolbar/Toolbar.d.ts +1 -0
  173. package/dist/components/toolbar/Toolbar.styles.d.ts +1 -0
  174. package/dist/components/visualization/Visualization.d.ts +1 -0
  175. package/dist/components/visualization/Visualization.styles.d.ts +1 -0
  176. package/dist/components/visualization/VisualizationScene.d.ts +1 -0
  177. package/dist/components/visualization/createVisualization.d.ts +1 -0
  178. package/dist/components/visualization/graph-node/GraphNode.d.ts +1 -0
  179. package/dist/components/visualization/table/Table.d.ts +1 -0
  180. package/dist/components/visualization/table/column/Column.d.ts +1 -0
  181. package/dist/components/visualization/table/column/Column.styles.d.ts +1 -0
  182. package/dist/components/visualization/visualizationView.d.ts +1 -0
  183. package/dist/constants/language.d.ts +1 -0
  184. package/dist/constants/layout.d.ts +1 -0
  185. package/dist/constants/open.d.ts +1 -0
  186. package/dist/constants/schema.d.ts +1 -0
  187. package/dist/constants/sql/dataType/Databricks.d.ts +1 -0
  188. package/dist/constants/sql/dataType/MSSQL.d.ts +1 -0
  189. package/dist/constants/sql/dataType/MariaDB.d.ts +1 -0
  190. package/dist/constants/sql/dataType/MySQL.d.ts +1 -0
  191. package/dist/constants/sql/dataType/Oracle.d.ts +1 -0
  192. package/dist/constants/sql/dataType/PostgreSQL.d.ts +1 -0
  193. package/dist/constants/sql/dataType/SQLite.d.ts +1 -0
  194. package/dist/constants/sql/dataType/Snowflake.d.ts +1 -0
  195. package/dist/constants/sql/dataType/index.d.ts +1 -0
  196. package/dist/constants/sql/database.d.ts +1 -0
  197. package/dist/constants/tablePlacement.d.ts +15 -0
  198. package/dist/engine/actions.d.ts +1 -0
  199. package/dist/engine/clock.d.ts +1 -0
  200. package/dist/engine/context.d.ts +1 -0
  201. package/dist/engine/generator.actions.d.ts +1 -0
  202. package/dist/engine/history.actions.d.ts +1 -0
  203. package/dist/engine/history.d.ts +1 -0
  204. package/dist/engine/hooks.d.ts +1 -0
  205. package/dist/engine/index.d.ts +1 -0
  206. package/dist/engine/index.js +44 -0
  207. package/dist/engine/modules/editor/actions.d.ts +9 -0
  208. package/dist/engine/modules/editor/atom.actions.d.ts +39 -0
  209. package/dist/engine/modules/editor/generator.actions.d.ts +1 -0
  210. package/dist/engine/modules/editor/history.d.ts +1 -0
  211. package/dist/engine/modules/editor/state.d.ts +11 -0
  212. package/dist/engine/modules/editor/utils/duplicate.d.ts +5 -2
  213. package/dist/engine/modules/editor/utils/findRelationshipColumn.d.ts +1 -0
  214. package/dist/engine/modules/editor/utils/focus.d.ts +1 -0
  215. package/dist/engine/modules/editor/utils/selectRangeColumn.d.ts +1 -0
  216. package/dist/engine/modules/index/actions.d.ts +1 -0
  217. package/dist/engine/modules/index/atom.actions.d.ts +1 -0
  218. package/dist/engine/modules/index/generator.actions.d.ts +1 -0
  219. package/dist/engine/modules/index/history.d.ts +1 -0
  220. package/dist/engine/modules/index-column/actions.d.ts +1 -0
  221. package/dist/engine/modules/index-column/atom.actions.d.ts +1 -0
  222. package/dist/engine/modules/index-column/generator.actions.d.ts +1 -0
  223. package/dist/engine/modules/index-column/history.d.ts +1 -0
  224. package/dist/engine/modules/memo/actions.d.ts +1 -0
  225. package/dist/engine/modules/memo/atom.actions.d.ts +1 -0
  226. package/dist/engine/modules/memo/generator.actions.d.ts +1 -0
  227. package/dist/engine/modules/memo/history.d.ts +1 -0
  228. package/dist/engine/modules/relationship/actions.d.ts +1 -0
  229. package/dist/engine/modules/relationship/atom.actions.d.ts +1 -0
  230. package/dist/engine/modules/relationship/generator.actions.d.ts +1 -0
  231. package/dist/engine/modules/relationship/history.d.ts +1 -0
  232. package/dist/engine/modules/relationship/hooks.d.ts +1 -0
  233. package/dist/engine/modules/settings/actions.d.ts +3 -7
  234. package/dist/engine/modules/settings/atom.actions.d.ts +39 -49
  235. package/dist/engine/modules/settings/generator.actions.d.ts +1 -0
  236. package/dist/engine/modules/settings/history.d.ts +1 -1
  237. package/dist/engine/modules/settings/scrollRange.d.ts +18 -0
  238. package/dist/engine/modules/table/actions.d.ts +1 -0
  239. package/dist/engine/modules/table/atom.actions.d.ts +1 -0
  240. package/dist/engine/modules/table/generator.actions.d.ts +1 -0
  241. package/dist/engine/modules/table/history.d.ts +1 -0
  242. package/dist/engine/modules/table/hooks.d.ts +1 -0
  243. package/dist/engine/modules/table-column/actions.d.ts +1 -0
  244. package/dist/engine/modules/table-column/atom.actions.d.ts +1 -0
  245. package/dist/engine/modules/table-column/generator.actions.d.ts +1 -0
  246. package/dist/engine/modules/table-column/history.d.ts +1 -0
  247. package/dist/engine/modules/table-column/hooks.d.ts +1 -0
  248. package/dist/engine/modules/table-column/utils/dataType.d.ts +1 -0
  249. package/dist/engine/replication-store.d.ts +1 -0
  250. package/dist/engine/rx-operators/actionsFilter.d.ts +1 -0
  251. package/dist/engine/rx-operators/bufferCircuitBreaker.d.ts +1 -0
  252. package/dist/engine/rx-operators/groupByStreamActions.d.ts +1 -0
  253. package/dist/engine/rx-operators/ignoreTagFilter.d.ts +1 -0
  254. package/dist/engine/rx-operators/index.d.ts +1 -0
  255. package/dist/engine/rx-operators/notEmptyActions.d.ts +1 -0
  256. package/dist/engine/rx-operators/readonlyIgnoreFilter.d.ts +1 -0
  257. package/dist/engine/rx-operators/sharedStreamActionsCompressor.d.ts +1 -0
  258. package/dist/engine/rx-store.d.ts +1 -0
  259. package/dist/engine/shared-store.d.ts +1 -0
  260. package/dist/engine/state.d.ts +1 -0
  261. package/dist/engine/store-hooks.d.ts +1 -0
  262. package/dist/engine/store.d.ts +1 -0
  263. package/dist/engine/tag.d.ts +1 -0
  264. package/dist/erd-editor.umd.js +5259 -0
  265. package/dist/hooks/useDarkMode.d.ts +1 -0
  266. package/dist/hooks/useFlipAnimation.d.ts +1 -0
  267. package/dist/hooks/useKeyBindingMap.d.ts +1 -0
  268. package/dist/hooks/useUnmounted.d.ts +1 -0
  269. package/dist/index.d.ts +1 -1
  270. package/dist/index.dev.d.ts +1 -1
  271. package/dist/index.js +20210 -0
  272. package/dist/internal-types/index.d.ts +1 -0
  273. package/dist/konva/batchDraw.d.ts +1 -0
  274. package/dist/konva/host.d.ts +1 -0
  275. package/dist/konva/jsx-types.test-d.d.ts +1 -0
  276. package/dist/konva/scene/columnDropTarget.d.ts +1 -0
  277. package/dist/konva/scene/contentBounds.d.ts +29 -0
  278. package/dist/konva/scene/konvaFlip.d.ts +1 -0
  279. package/dist/konva/scene/metrics.d.ts +1 -0
  280. package/dist/konva/scene/renderScene.d.ts +1 -0
  281. package/dist/konva/scene/viewFreeze.d.ts +20 -0
  282. package/dist/konva/scene/viewport.d.ts +14 -7
  283. package/dist/konva/testHandle.d.ts +1 -0
  284. package/dist/konva/theme.d.ts +1 -0
  285. package/dist/konva/workerDomStubs.d.ts +1 -0
  286. package/dist/schemaGCService--wGet5O7.js +9636 -0
  287. package/dist/services/elk-layout/elkGraph.d.ts +44 -0
  288. package/dist/services/elk-layout/elkLayout.shared-worker.d.ts +2 -0
  289. package/dist/services/elk-layout/elkLayoutOptions.d.ts +25 -0
  290. package/dist/services/elk-layout/elkLayoutService.d.ts +21 -0
  291. package/dist/services/elk-layout/elkWorkerRealm.d.ts +2 -0
  292. package/dist/services/elk-layout/index.d.ts +13 -0
  293. package/dist/services/export-png/ExportScene.d.ts +11 -4
  294. package/dist/services/export-png/documentScene.d.ts +16 -3
  295. package/dist/services/export-png/exportBox.d.ts +27 -0
  296. package/dist/services/export-png/exportPng.shared-worker.d.ts +1 -0
  297. package/dist/services/export-png/exportPngService.d.ts +1 -0
  298. package/dist/services/export-png/index.d.ts +11 -4
  299. package/dist/services/export-png/pixelRatio.d.ts +1 -0
  300. package/dist/services/export-png/renderPng.d.ts +4 -1
  301. package/dist/services/export-png/textWidth.d.ts +1 -0
  302. package/dist/services/schema-gc/index.d.ts +6 -3
  303. package/dist/services/schema-gc/procGC.d.ts +1 -0
  304. package/dist/services/schema-gc/schemaGC.shared-worker.d.ts +1 -0
  305. package/dist/services/schema-gc/schemaGCService.d.ts +1 -0
  306. package/dist/services/shiki/index.d.ts +10 -0
  307. package/dist/services/shiki/shiki.shared-worker.d.ts +2 -0
  308. package/dist/services/shiki/shikiService.d.ts +18 -0
  309. package/dist/styles/colorPicker.style.d.ts +1 -0
  310. package/dist/styles/fonts.styles.d.ts +1 -0
  311. package/dist/styles/reset.styles.d.ts +1 -0
  312. package/dist/styles/scrollbar.styles.d.ts +1 -0
  313. package/dist/styles/typography.styles.d.ts +1 -0
  314. package/dist/themes/radix-ui-theme.config.d.ts +1 -0
  315. package/dist/themes/radix-ui-theme.d.ts +1 -0
  316. package/dist/themes/tokens.d.ts +1 -0
  317. package/dist/utils/arrayHas.d.ts +3 -0
  318. package/dist/utils/attribute.d.ts +1 -0
  319. package/dist/utils/bit.d.ts +1 -0
  320. package/dist/utils/calcMemo.d.ts +1 -0
  321. package/dist/utils/calcTable.d.ts +1 -0
  322. package/dist/utils/clipboard.d.ts +1 -0
  323. package/dist/utils/collection/index.entity.d.ts +1 -0
  324. package/dist/utils/collection/indexColumn.entity.d.ts +1 -0
  325. package/dist/utils/collection/memo.entity.d.ts +1 -0
  326. package/dist/utils/collection/relationship.entity.d.ts +1 -0
  327. package/dist/utils/collection/sequence.d.ts +1 -0
  328. package/dist/utils/collection/table.entity.d.ts +1 -0
  329. package/dist/utils/collection/tableColumn.entity.d.ts +1 -0
  330. package/dist/utils/device-detect/index.d.ts +1 -0
  331. package/dist/utils/domEvent.d.ts +7 -0
  332. package/dist/utils/dragSelect.d.ts +1 -8
  333. package/dist/utils/draw-relationship/calc.d.ts +1 -0
  334. package/dist/utils/draw-relationship/chamfer.d.ts +1 -0
  335. package/dist/utils/draw-relationship/draw.d.ts +1 -0
  336. package/dist/utils/draw-relationship/incremental.d.ts +1 -0
  337. package/dist/utils/draw-relationship/index.d.ts +1 -0
  338. package/dist/utils/draw-relationship/nudge.d.ts +1 -0
  339. package/dist/utils/draw-relationship/pathFinding.d.ts +1 -0
  340. package/dist/utils/draw-relationship/route.d.ts +1 -0
  341. package/dist/utils/draw-relationship/sort.d.ts +1 -0
  342. package/dist/utils/draw-relationship/stub.d.ts +1 -0
  343. package/dist/utils/emitter.d.ts +15 -7
  344. package/dist/utils/file/exportFile.d.ts +5 -4
  345. package/dist/utils/file/importFile.d.ts +1 -0
  346. package/dist/utils/flipAnimation.d.ts +1 -0
  347. package/dist/utils/focus.d.ts +1 -0
  348. package/dist/utils/generator-code/aml.d.ts +1 -0
  349. package/dist/utils/generator-code/csharp.d.ts +1 -0
  350. package/dist/utils/generator-code/dbml.d.ts +1 -0
  351. package/dist/utils/generator-code/drizzle.d.ts +1 -0
  352. package/dist/utils/generator-code/go.d.ts +1 -0
  353. package/dist/utils/generator-code/graphql.d.ts +1 -0
  354. package/dist/utils/generator-code/index.d.ts +1 -0
  355. package/dist/utils/generator-code/java.d.ts +1 -0
  356. package/dist/utils/generator-code/jpa.d.ts +1 -0
  357. package/dist/utils/generator-code/kotlin.d.ts +1 -0
  358. package/dist/utils/generator-code/scala.d.ts +1 -0
  359. package/dist/utils/generator-code/sequelize.d.ts +1 -0
  360. package/dist/utils/generator-code/sqlalchemy.d.ts +1 -0
  361. package/dist/utils/generator-code/typeorm.d.ts +1 -0
  362. package/dist/utils/generator-code/typescript.d.ts +1 -0
  363. package/dist/utils/generator-code/utils.d.ts +1 -0
  364. package/dist/utils/globalEmitter.d.ts +1 -0
  365. package/dist/utils/globalEventObservable.d.ts +7 -1
  366. package/dist/utils/icon.d.ts +1 -0
  367. package/dist/utils/index.d.ts +2 -1
  368. package/dist/utils/internalEvents.d.ts +1 -0
  369. package/dist/utils/keyboard-shortcut/index.d.ts +10 -1
  370. package/dist/utils/keyboard-shortcut/utils.d.ts +1 -0
  371. package/dist/utils/promise.d.ts +7 -0
  372. package/dist/utils/rx-operators/fromCopy.d.ts +1 -0
  373. package/dist/utils/rx-operators/fromDraggable.d.ts +1 -0
  374. package/dist/utils/rx-operators/fromPaste.d.ts +1 -0
  375. package/dist/utils/rx-operators/fromShadowDraggable.d.ts +1 -0
  376. package/dist/utils/rx-operators/takeUnsubscribe.d.ts +1 -0
  377. package/dist/utils/safeCallback.d.ts +5 -0
  378. package/dist/utils/schema-aml-parser/convert.d.ts +1 -0
  379. package/dist/utils/schema-aml-parser/dataType.d.ts +1 -0
  380. package/dist/utils/schema-aml-parser/index.d.ts +1 -0
  381. package/dist/utils/schema-aml-parser/parser.d.ts +1 -0
  382. package/dist/utils/schema-aml-parser/tokenizer.d.ts +1 -0
  383. package/dist/utils/schema-aml-parser/types.d.ts +1 -0
  384. package/dist/utils/schema-dbml-parser/convert.d.ts +1 -0
  385. package/dist/utils/schema-dbml-parser/dataType.d.ts +1 -0
  386. package/dist/utils/schema-dbml-parser/index.d.ts +1 -0
  387. package/dist/utils/schema-dbml-parser/parser.d.ts +1 -0
  388. package/dist/utils/schema-dbml-parser/tokenizer.d.ts +1 -0
  389. package/dist/utils/schema-dbml-parser/types.d.ts +1 -0
  390. package/dist/utils/schema-graphql-parser/convert.d.ts +1 -0
  391. package/dist/utils/schema-graphql-parser/dataType.d.ts +1 -0
  392. package/dist/utils/schema-graphql-parser/index.d.ts +1 -0
  393. package/dist/utils/schema-graphql-parser/parser.d.ts +1 -0
  394. package/dist/utils/schema-graphql-parser/types.d.ts +1 -0
  395. package/dist/utils/schema-sql/Databricks.d.ts +1 -0
  396. package/dist/utils/schema-sql/MSSQL.d.ts +1 -0
  397. package/dist/utils/schema-sql/MariaDB.d.ts +1 -0
  398. package/dist/utils/schema-sql/MySQL.d.ts +1 -0
  399. package/dist/utils/schema-sql/Oracle.d.ts +1 -0
  400. package/dist/utils/schema-sql/PostgreSQL.d.ts +1 -0
  401. package/dist/utils/schema-sql/SQLite.d.ts +1 -0
  402. package/dist/utils/schema-sql/Snowflake.d.ts +1 -0
  403. package/dist/utils/schema-sql/index.d.ts +1 -0
  404. package/dist/utils/schema-sql/utils.d.ts +1 -0
  405. package/dist/utils/schema-sql-parser/index.d.ts +1 -0
  406. package/dist/utils/schema-sql-parser/utils.d.ts +1 -0
  407. package/dist/utils/sharedColor.d.ts +1 -0
  408. package/dist/utils/table-clipboard/copy.d.ts +15 -2
  409. package/dist/utils/table-clipboard/index.d.ts +1 -0
  410. package/dist/utils/table-clipboard/paste.d.ts +1 -0
  411. package/dist/utils/table-clipboard/payload.d.ts +30 -1
  412. package/dist/utils/table-clipboard/placement.d.ts +1 -0
  413. package/dist/utils/text.d.ts +1 -0
  414. package/dist/utils/validation.d.ts +2 -1
  415. package/dist/workers/elkLayout.shared-worker.js +1 -0
  416. package/dist/workers/exportPng.shared-worker.js +54 -0
  417. package/dist/workers/schemaGC.shared-worker.js +1 -0
  418. package/dist/workers/shiki.shared-worker.js +1 -0
  419. package/dist/workers/spawn.d.ts +10 -0
  420. package/dist/workers/spawn.inline.d.ts +10 -0
  421. package/package.json +55 -51
  422. package/dist/components/erd/hide-sign/HideSign.d.ts +0 -6
  423. package/dist/components/erd/hide-sign/HideSign.styles.d.ts +0 -1
  424. package/dist/components/erd/hide-sign/hideSignBounds.d.ts +0 -9
  425. package/dist/components/erd-editor/ErdEditor.stories.d.ts +0 -17
  426. package/dist/components/primitives/button/Button.stories.d.ts +0 -26
  427. package/dist/components/primitives/code-block/CodeBlock.stories.d.ts +0 -25
  428. package/dist/components/primitives/color-picker/ColorPicker.stories.d.ts +0 -26
  429. package/dist/components/primitives/context-menu/ContextMenu.stories.d.ts +0 -16
  430. package/dist/components/primitives/edit-input/EditInput.stories.d.ts +0 -36
  431. package/dist/components/primitives/highlighted-text/HighlightedText.stories.d.ts +0 -23
  432. package/dist/components/primitives/icon/Icon.stories.d.ts +0 -10
  433. package/dist/components/primitives/kbd/Kbd.stories.d.ts +0 -17
  434. package/dist/components/primitives/sash/Sash.stories.d.ts +0 -30
  435. package/dist/components/primitives/separator/Separator.stories.d.ts +0 -25
  436. package/dist/components/primitives/slider/Slider.stories.d.ts +0 -23
  437. package/dist/components/primitives/switch/Switch.stories.d.ts +0 -21
  438. package/dist/components/primitives/text-input/TextInput.stories.d.ts +0 -41
  439. package/dist/components/primitives/toast/Toast.stories.d.ts +0 -33
  440. package/dist/engine.js +0 -42
  441. package/dist/erd-editor.js +0 -41824
  442. package/dist/schemaGCService-DrlqIen8.js +0 -17549
  443. package/dist/services/shikiService.d.ts +0 -8
  444. package/dist/themes/textColor.d.ts +0 -2
@@ -0,0 +1,10 @@
1
+ import { FC } from '@dineug/r-html';
2
+ export type FloatingToolbarProps = {};
3
+ /**
4
+ * The tools over the canvas: which of the two a press means, the notation the
5
+ * next relationship is drawn in, and zen mode. It is the one surface zen mode
6
+ * leaves standing, because the way out of zen mode is in it.
7
+ */
8
+ declare const FloatingToolbar: FC<FloatingToolbarProps>;
9
+ export default FloatingToolbar;
10
+ //# sourceMappingURL=FloatingToolbar.d.ts.map
@@ -0,0 +1,4 @@
1
+ export declare const root: import('@dineug/r-html').CSSTemplateLiterals;
2
+ export declare const menu: import('@dineug/r-html').CSSTemplateLiterals;
3
+ export declare const divider: import('@dineug/r-html').CSSTemplateLiterals;
4
+ //# sourceMappingURL=FloatingToolbar.styles.d.ts.map
@@ -20,3 +20,4 @@ export declare function trackSceneHits(stage: Stage): () => void;
20
20
  * because the press has re-rendered the scene by the time this is asked.
21
21
  */
22
22
  export declare function sceneHit(container: HTMLElement | null | undefined, event: MouseEvent | TouchEvent): SceneHit | null;
23
+ //# sourceMappingURL=hitTest.d.ts.map
@@ -2,3 +2,4 @@ import { FC } from '@dineug/r-html';
2
2
  export type MinimapProps = {};
3
3
  declare const Minimap: FC<MinimapProps>;
4
4
  export default Minimap;
5
+ //# sourceMappingURL=Minimap.d.ts.map
@@ -1,2 +1,3 @@
1
1
  export declare const minimap: import('@dineug/r-html').CSSTemplateLiterals;
2
2
  export declare const border: import('@dineug/r-html').CSSTemplateLiterals;
3
+ //# sourceMappingURL=Minimap.styles.d.ts.map
@@ -14,3 +14,4 @@ declare const MinimapScene: FC<MinimapSceneProps>;
14
14
  */
15
15
  export declare function renderMinimapScene(stage: Stage): void;
16
16
  export default MinimapScene;
17
+ //# sourceMappingURL=MinimapScene.d.ts.map
@@ -2,11 +2,14 @@ import { FC } from '@dineug/r-html';
2
2
  import { Memo } from '../../../../internal-types';
3
3
  export type MemoProps = {
4
4
  memo: Memo;
5
+ /** Thumbnail pixels per scene unit, which is what the box is floored at. */
6
+ ratio: number;
5
7
  };
6
8
  /**
7
- * A memo as the minimap draws it: the box and nothing in it. The id rides in
8
- * the name, the way a relationship carries its own, because an id on a second
9
- * stage would make an id scan over the live stages ambiguous.
9
+ * A memo as the minimap draws it: the box and nothing in it, no smaller than a
10
+ * mark however far the map is folded. The id rides in the name, the way a
11
+ * relationship carries its own, as an id on a second stage would make an id scan ambiguous.
10
12
  */
11
13
  declare const Memo: FC<MemoProps>;
12
14
  export default Memo;
15
+ //# sourceMappingURL=Memo.d.ts.map
@@ -1,52 +1,100 @@
1
+ import { ScrollRanges } from '../../../engine/modules/settings/atom.actions';
2
+ import { RootState } from '../../../engine/state';
1
3
  import { Point } from '../../../internal-types';
4
+ import { Rect } from '../../../konva/scene/metrics';
2
5
  import { SceneTransform } from '../../../konva/scene/viewport';
3
- /** The canvas box the minimap draws, plus the screen that is looking at it. */
4
- export type MinimapTransform = SceneTransform & {
6
+ /** The scene placement plus the screen looking at it, which is all a visible rect is read from. */
7
+ export type ViewTransform = SceneTransform & {
5
8
  viewportWidth: number;
6
9
  viewportHeight: number;
7
10
  };
8
- export type MinimapRect = {
9
- x: number;
10
- y: number;
11
- width: number;
12
- height: number;
13
- };
14
11
  /**
15
- * The whole canvas box scaled into the minimap square, with no zoom term. Fixed
16
- * on purpose: the thumbnail stays a map of the document at one size, and the
17
- * zoom shows up in the rectangle drawn over it instead.
12
+ * Scene units kept clear around what the map holds, so a box at the edge of the
13
+ * content never touches the edge of the thumbnail.
18
14
  */
19
- export declare function getMinimapRatio(width: number): number;
15
+ export declare const MINIMAP_MAP_MARGIN = 100;
20
16
  /**
21
- * The canvas the screen actually covers, read back through the very origin
22
- * getSceneOrigin places the scene layer at. One screen pixel buys one over the
23
- * zoom in canvas units, so zooming out widens this with the scroll standing still.
24
- */
25
- export declare function getVisibleCanvasRect(transform: MinimapTransform): MinimapRect;
26
- /** That same rectangle in the minimap's own pixels, which is where it is drawn. */
27
- export declare function getMinimapViewportRect(transform: MinimapTransform): MinimapRect;
28
- /** The thumbnail's own box: the canvas box at the minimap ratio, 150 wide. */
29
- export declare function getMinimapBoxSize(width: number, height: number): {
30
- width: number;
31
- height: number;
17
+ * The grid the map's edges snap outward to, in scene units. A table nudged a
18
+ * few pixels then leaves the map where it is, where a map cut to the content
19
+ * would rescale the thumbnail under every move.
20
+ */
21
+ export declare const MINIMAP_MAP_STEP = 500;
22
+ /**
23
+ * The thumbnail's shorter side never draws thinner than this, in pixels. Two
24
+ * tables fifty thousand units apart would fold it into a hairline otherwise,
25
+ * so the map is widened about its middle along that axis until it fits.
26
+ */
27
+ export declare const MINIMAP_BOX_MIN_SIDE = 30;
28
+ /**
29
+ * The smallest anything drawn on the thumbnail may be, in pixels: a table or
30
+ * memo box, or the handle. At the ratio a far flung document folds into, a
31
+ * box would draw sub-pixel and the map would show nothing of what it maps.
32
+ */
33
+ export declare const MINIMAP_MARK_MIN = 3;
34
+ /** How the thumbnail lays the document out: the scene rect it maps and the box that draws it. */
35
+ export type MinimapLayout = {
36
+ /** The scene rect the thumbnail is a map of, in scene units. */
37
+ map: Rect;
38
+ /** Thumbnail pixels per scene unit: the map's longer side folded into MINIMAP_SIZE. */
39
+ ratio: number;
40
+ /** The thumbnail's own box, the map at the ratio, so its longer side is MINIMAP_SIZE. */
41
+ box: {
42
+ width: number;
43
+ height: number;
44
+ };
45
+ /** Where the box sits inside the MINIMAP_SIZE square, centred along its shorter side. */
46
+ offset: Point;
32
47
  };
48
+ /** The view as the store holds it, for every reader that maps the screen onto the thumbnail. */
49
+ export declare function getViewTransform(state: RootState): ViewTransform;
50
+ /**
51
+ * The scene the screen actually covers, read back through the very origin
52
+ * getSceneOrigin places the scene layer at. One screen pixel buys one over the
53
+ * zoom in scene units, so zooming out widens this with the origin standing still.
54
+ */
55
+ export declare function getVisibleCanvasRect(view: ViewTransform): Rect;
56
+ /**
57
+ * The scene the screen can be scrolled over: what it shows at either end of
58
+ * the travel, and everything between. The far end of the travel puts the near
59
+ * edge of the content on the far edge of the screen, and the other way about.
60
+ */
61
+ export declare function getReachRect(view: ViewTransform, { left, top }: ScrollRanges): Rect;
62
+ /**
63
+ * The map is everything the screen can be scrolled over, with the margin
64
+ * around it, snapped to the grid, then widened along its shorter side where
65
+ * that would draw under MINIMAP_BOX_MIN_SIDE. A drag holds its content still.
66
+ */
67
+ export declare function getMinimapLayout(state: RootState): MinimapLayout;
68
+ /** A scene point in the thumbnail's own pixels; scene zero lands where the layer is placed. */
69
+ export declare function toMinimapPoint({ map, ratio }: MinimapLayout, point: Point): Point;
70
+ /** The scene point under a thumbnail pixel, the mapping above inverted. */
71
+ export declare function fromMinimapPoint({ map, ratio }: MinimapLayout, point: Point): Point;
72
+ /** The screen's own footprint in thumbnail pixels, the visible rect mapped and untrimmed. */
73
+ export declare function getMinimapViewportRect(layout: MinimapLayout, view: ViewTransform): Rect;
74
+ /**
75
+ * A scene rect as the thumbnail draws it: the rect itself, or one grown about
76
+ * its middle to MINIMAP_MARK_MIN pixels at the map's ratio where it would draw
77
+ * smaller. In scene units, since the layer it lands on carries the ratio.
78
+ */
79
+ export declare function getMinimapMarkRect(ratio: number, rect: Rect): Rect;
33
80
  /**
34
- * The rectangle as drawn, trimmed to the thumbnail box. Zooming out far enough
35
- * makes the screen reach past the canvas on every side, and this box is a
36
- * pointer target, so what leaves the map is dropped instead of laid over it.
81
+ * The rectangle as drawn, no smaller than a mark and trimmed to the thumbnail
82
+ * box. A map laid out for the view holds its screen whole; the trim is for one
83
+ * drawn against another view's map, since a pointer target must not hang over the canvas.
37
84
  */
38
- export declare function getMinimapHandleRect(transform: MinimapTransform): MinimapRect;
85
+ export declare function getMinimapHandleRect(layout: MinimapLayout, view: ViewTransform): Rect;
39
86
  /**
40
- * A canvas distance as the scroll that travels it. Scroll is measured in screen
41
- * pixels and moves the view the opposite way, so it carries both the zoom and
42
- * the sign that a minimap coordinate does not.
87
+ * A scene distance as the origin travel that covers it. The origin is measured
88
+ * in screen pixels and moves the view the opposite way, so it carries both the
89
+ * zoom and the sign that a minimap coordinate does not.
43
90
  */
44
91
  export declare function toScrollDistance(distance: number, zoomLevel: number): number;
45
- /** Minimap travel as the scroll that keeps the rectangle under the pointer. */
92
+ /** Minimap travel as the origin travel that keeps the rectangle under the pointer. */
46
93
  export declare function toScrollMovement(movement: number, ratio: number, zoomLevel: number): number;
47
94
  /**
48
- * The scroll that puts a canvas point in the middle of the screen. Stated as a
49
- * step away from where the scroll stands now, so the origin is read once through
95
+ * The origin that puts a scene point in the middle of the screen. Stated as a
96
+ * step away from where the origin stands now, so it is read once through
50
97
  * getVisibleCanvasRect rather than restated inverted here.
51
98
  */
52
- export declare function getScrollToCenter(transform: MinimapTransform, center: Point): Point;
99
+ export declare function getScrollToCenter(view: ViewTransform, center: Point): Point;
100
+ //# sourceMappingURL=minimapGeometry.d.ts.map
@@ -2,11 +2,14 @@ import { FC } from '@dineug/r-html';
2
2
  import { Table } from '../../../../internal-types';
3
3
  export type TableProps = {
4
4
  table: Table;
5
+ /** Thumbnail pixels per scene unit, which is what the box is floored at. */
6
+ ratio: number;
5
7
  };
6
8
  /**
7
- * A table as the minimap draws it: the box and nothing in it. The id stays off
8
- * the node because two stages spelling one id make an id scan ambiguous, so a
9
- * minimap node is found by its name and the table it carries.
9
+ * A table as the minimap draws it: the box and nothing in it, no smaller than a
10
+ * mark however far the map is folded. The id stays off the node because two
11
+ * stages spelling one id make an id scan ambiguous, so it is found by name and table.
10
12
  */
11
13
  declare const Table: FC<TableProps>;
12
14
  export default Table;
15
+ //# sourceMappingURL=Table.d.ts.map
@@ -5,3 +5,4 @@ export declare function useMinimapScroll(ctx: Ctx): {
5
5
  };
6
6
  onScrollStart: (event: MouseEvent | TouchEvent) => void;
7
7
  };
8
+ //# sourceMappingURL=useMinimapScroll.d.ts.map
@@ -4,3 +4,4 @@ export type ViewportProps = {
4
4
  };
5
5
  declare const Viewport: FC<ViewportProps>;
6
6
  export default Viewport;
7
+ //# sourceMappingURL=Viewport.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare const viewport: import('@dineug/r-html').CSSTemplateLiterals;
2
+ //# sourceMappingURL=Viewport.styles.d.ts.map
@@ -7,3 +7,4 @@ export type TablePropertiesProps = {
7
7
  };
8
8
  declare const TableProperties: FC<TablePropertiesProps>;
9
9
  export default TableProperties;
10
+ //# sourceMappingURL=TableProperties.d.ts.map
@@ -4,3 +4,4 @@ export declare const scrollbarArea: import('@dineug/r-html').CSSTemplateLiterals
4
4
  export declare const header: import('@dineug/r-html').CSSTemplateLiterals;
5
5
  export declare const tab: import('@dineug/r-html').CSSTemplateLiterals;
6
6
  export declare const scope: import('@dineug/r-html').CSSTemplateLiterals;
7
+ //# sourceMappingURL=TableProperties.styles.d.ts.map
@@ -4,3 +4,4 @@ export type TablePropertiesIndexesProps = {
4
4
  };
5
5
  declare const TablePropertiesIndexes: FC<TablePropertiesIndexesProps>;
6
6
  export default TablePropertiesIndexes;
7
+ //# sourceMappingURL=TablePropertiesIndexes.d.ts.map
@@ -1,3 +1,4 @@
1
1
  export declare const leftArea: import('@dineug/r-html').CSSTemplateLiterals;
2
2
  export declare const rightArea: import('@dineug/r-html').CSSTemplateLiterals;
3
3
  export declare const addIndexButtonArea: import('@dineug/r-html').CSSTemplateLiterals;
4
+ //# sourceMappingURL=TablePropertiesIndexes.styles.d.ts.map
@@ -6,3 +6,4 @@ export type IndexesCheckboxColumnProps = {
6
6
  };
7
7
  declare const IndexesCheckboxColumn: FC<IndexesCheckboxColumnProps>;
8
8
  export default IndexesCheckboxColumn;
9
+ //# sourceMappingURL=IndexesCheckboxColumn.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare const root: import('@dineug/r-html').CSSTemplateLiterals;
2
+ //# sourceMappingURL=IndexesCheckboxColumn.styles.d.ts.map
@@ -5,3 +5,4 @@ export type IndexesColumnProps = {
5
5
  };
6
6
  declare const IndexesColumn: FC<IndexesColumnProps>;
7
7
  export default IndexesColumn;
8
+ //# sourceMappingURL=IndexesColumn.d.ts.map
@@ -1,3 +1,4 @@
1
1
  export declare const root: import('@dineug/r-html').CSSTemplateLiterals;
2
2
  export declare const row: import('@dineug/r-html').CSSTemplateLiterals;
3
3
  export declare const orderType: import('@dineug/r-html').CSSTemplateLiterals;
4
+ //# sourceMappingURL=IndexesColumn.styles.d.ts.map
@@ -7,3 +7,4 @@ export type IndexesIndexProps = {
7
7
  };
8
8
  declare const IndexesIndex: FC<IndexesIndexProps>;
9
9
  export default IndexesIndex;
10
+ //# sourceMappingURL=IndexesIndex.d.ts.map
@@ -2,3 +2,4 @@ export declare const row: import('@dineug/r-html').CSSTemplateLiterals;
2
2
  export declare const input: import('@dineug/r-html').CSSTemplateLiterals;
3
3
  export declare const unique: import('@dineug/r-html').CSSTemplateLiterals;
4
4
  export declare const iconButton: import('@dineug/r-html').CSSTemplateLiterals;
5
+ //# sourceMappingURL=IndexesIndex.styles.d.ts.map
@@ -12,3 +12,4 @@ export type TablePropertiesTabsProps = {
12
12
  };
13
13
  declare const TablePropertiesTabs: FC<TablePropertiesTabsProps>;
14
14
  export default TablePropertiesTabs;
15
+ //# sourceMappingURL=TablePropertiesTabs.d.ts.map
@@ -1,2 +1,3 @@
1
1
  export declare const tabs: import('@dineug/r-html').CSSTemplateLiterals;
2
2
  export declare const tab: import('@dineug/r-html').CSSTemplateLiterals;
3
+ //# sourceMappingURL=TablePropertiesTabs.styles.d.ts.map
@@ -7,3 +7,4 @@ export type TimeTravelProps = {
7
7
  };
8
8
  declare const TimeTravel: FC<TimeTravelProps>;
9
9
  export default TimeTravel;
10
+ //# sourceMappingURL=TimeTravel.d.ts.map
@@ -2,3 +2,4 @@ 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 slider: import('@dineug/r-html').CSSTemplateLiterals;
4
4
  export declare const vertical: import('@dineug/r-html').CSSTemplateLiterals;
5
+ //# sourceMappingURL=TimeTravel.styles.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import { Ctx } from '../../internal-types';
2
2
  export declare function useErdShortcut(ctx: Ctx): void;
3
+ //# sourceMappingURL=useErdShortcut.d.ts.map
@@ -2,3 +2,4 @@ import { FC } from '@dineug/r-html';
2
2
  export type VirtualScrollProps = {};
3
3
  declare const VirtualScroll: FC<VirtualScrollProps>;
4
4
  export default VirtualScroll;
5
+ //# sourceMappingURL=VirtualScroll.d.ts.map
@@ -3,3 +3,4 @@ export declare const horizontal: import('@dineug/r-html').CSSTemplateLiterals;
3
3
  export declare const ghostThumb: import('@dineug/r-html').CSSTemplateLiterals;
4
4
  export declare const verticalThumb: import('@dineug/r-html').CSSTemplateLiterals;
5
5
  export declare const horizontalThumb: import('@dineug/r-html').CSSTemplateLiterals;
6
+ //# sourceMappingURL=VirtualScroll.styles.d.ts.map
@@ -1,21 +1,27 @@
1
1
  import { ScrollRange } from '../../../engine/modules/settings/atom.actions';
2
2
  import { Ctx } from '../../../internal-types';
3
- /** One scrollbar as drawn: a track a viewport wide over the content behind it. */
3
+ /** The thumb never draws thinner than this, however long the travel behind it. */
4
+ export declare const SCROLLBAR_THUMB_MIN = 24;
5
+ /** One scrollbar as drawn: a track a viewport long over the travel behind it. */
4
6
  export type ScrollbarTrack = {
5
7
  range: ScrollRange;
8
+ /** Thumb pixels per origin pixel: the room the thumb has over the travel. */
6
9
  ratio: number;
7
10
  thumb: number;
8
11
  offset: number;
9
12
  scrollable: boolean;
10
13
  };
11
14
  /**
12
- * The bar for one axis, sized from the travel the engine allows rather than from
13
- * the canvas box. The content behind the track is a viewport plus that travel,
14
- * which is the only place the zoom enters, and at zoom 1 the two read the same.
15
+ * The bar for one axis, sized from the travel the engine allows. The thumb is
16
+ * the screen's share of a screen plus that travel, floored so a long travel
17
+ * still leaves something to grab, and slides over the room the floor leaves it.
15
18
  */
16
19
  export declare function getScrollbarTrack(range: ScrollRange, scroll: number, viewportLength: number): ScrollbarTrack;
17
- /** The scroll that centres the viewport on a point pressed on a track. */
18
- export declare function trackPointToScroll({ range, ratio }: ScrollbarTrack, point: number, viewportLength: number): number;
20
+ /**
21
+ * The origin that centres the thumb on a point pressed on the track, kept to
22
+ * the travel: a press at either end parks the thumb against it.
23
+ */
24
+ export declare function trackPointToScroll({ range, ratio, thumb }: ScrollbarTrack, point: number, viewportLength: number): number;
19
25
  export declare function useVirtualScroll(ctx: Ctx): {
20
26
  state: {
21
27
  selected: null | "horizontal" | "vertical";
@@ -27,3 +33,4 @@ export declare function useVirtualScroll(ctx: Ctx): {
27
33
  getHorizontalTrack: () => ScrollbarTrack;
28
34
  getVerticalTrack: () => ScrollbarTrack;
29
35
  };
36
+ //# sourceMappingURL=useVirtualScroll.d.ts.map
@@ -22,7 +22,7 @@ export interface ErdEditorElement extends ErdEditorProps, HTMLElement {
22
22
  setInitialValue: (value: string) => void;
23
23
  setPresetTheme: (themeOptions: Partial<ThemeOptions>) => void;
24
24
  setTheme: (theme: Partial<ThemeType>) => void;
25
- setKeyBindingMap: (keyBindingMap: Partial<Omit<KeyBindingMap, typeof KeyBindingName.edit | typeof KeyBindingName.stop | typeof KeyBindingName.search | typeof KeyBindingName.undo | typeof KeyBindingName.redo | typeof KeyBindingName.zoomIn | typeof KeyBindingName.zoomOut>>) => void;
25
+ setKeyBindingMap: (keyBindingMap: Partial<Omit<KeyBindingMap, typeof KeyBindingName.edit | typeof KeyBindingName.stop | typeof KeyBindingName.search | typeof KeyBindingName.undo | typeof KeyBindingName.redo | typeof KeyBindingName.zoomIn | typeof KeyBindingName.zoomOut | typeof KeyBindingName.zoomReset>>) => void;
26
26
  setSchemaSQL: (value: string) => void;
27
27
  setSchemaGraphQL: (value: string) => void;
28
28
  setSchemaDBML: (value: string) => void;
@@ -34,3 +34,4 @@ export interface ErdEditorElement extends ErdEditorProps, HTMLElement {
34
34
  }) => SharedStore;
35
35
  setDiffValue: (value: string) => void;
36
36
  }
37
+ //# sourceMappingURL=ErdEditor.d.ts.map
@@ -1,2 +1,3 @@
1
1
  export declare const root: import('@dineug/r-html').CSSTemplateLiterals;
2
2
  export declare const scope: import('@dineug/r-html').CSSTemplateLiterals;
3
+ //# sourceMappingURL=ErdEditor.styles.d.ts.map
@@ -21,3 +21,4 @@ export declare function useErdEditorAttachElement({ props, ctx, app, root }: Pro
21
21
  hasDarkMode: () => boolean;
22
22
  };
23
23
  export {};
24
+ //# sourceMappingURL=useErdEditorAttachElement.d.ts.map
@@ -5,3 +5,4 @@ export type GeneratorCodeProps = {
5
5
  };
6
6
  declare const GeneratorCode: FC<GeneratorCodeProps>;
7
7
  export default GeneratorCode;
8
+ //# sourceMappingURL=GeneratorCode.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare const root: import('@dineug/r-html').CSSTemplateLiterals;
2
+ //# sourceMappingURL=GeneratorCode.styles.d.ts.map
@@ -4,3 +4,4 @@ export type GeneratorCodeContextMenuProps = {
4
4
  };
5
5
  declare const GeneratorCodeContextMenu: FC<GeneratorCodeContextMenuProps>;
6
6
  export default GeneratorCodeContextMenu;
7
+ //# sourceMappingURL=GeneratorCodeContextMenu.d.ts.map
@@ -10,3 +10,4 @@ export declare function createColumnNameCaseMenus({ store }: AppContext): {
10
10
  onClick: () => void;
11
11
  }[];
12
12
  export {};
13
+ //# sourceMappingURL=columnNameCaseMenus.d.ts.map
@@ -10,3 +10,4 @@ export declare function createLanguageMenus({ store }: AppContext): {
10
10
  onClick: () => void;
11
11
  }[];
12
12
  export {};
13
+ //# sourceMappingURL=languageMenus.d.ts.map
@@ -10,3 +10,4 @@ export declare function createTableNameCaseMenus({ store }: AppContext): {
10
10
  onClick: () => void;
11
11
  }[];
12
12
  export {};
13
+ //# sourceMappingURL=tableNameCaseMenus.d.ts.map
@@ -7,3 +7,4 @@ export type GlobalStylesProps = {};
7
7
  */
8
8
  declare const GlobalStyles: FC<GlobalStylesProps>;
9
9
  export default GlobalStyles;
10
+ //# sourceMappingURL=GlobalStyles.d.ts.map
@@ -7,3 +7,4 @@ export type ButtonProps = {
7
7
  };
8
8
  declare const Button: FC<ButtonProps>;
9
9
  export default Button;
10
+ //# sourceMappingURL=Button.d.ts.map
@@ -4,3 +4,4 @@ export declare const solid: import('@dineug/r-html').CSSTemplateLiterals;
4
4
  export declare const size1: import('@dineug/r-html').CSSTemplateLiterals;
5
5
  export declare const size2: import('@dineug/r-html').CSSTemplateLiterals;
6
6
  export declare const size3: import('@dineug/r-html').CSSTemplateLiterals;
7
+ //# sourceMappingURL=Button.styles.d.ts.map
@@ -1,10 +1,11 @@
1
1
  import { FC } from '@dineug/r-html';
2
- import { ShikiService } from '../../../services/shikiService';
2
+ import { Lang } from '../../../constants/language';
3
3
  export type CodeBlockProps = {
4
4
  value: string;
5
- lang: Parameters<ShikiService['codeToHtml']>[1]['lang'];
5
+ lang: Lang;
6
6
  theme?: 'dark' | 'light';
7
7
  onCopy?: (value: string) => void;
8
8
  };
9
9
  declare const CodeBlock: FC<CodeBlockProps>;
10
10
  export default CodeBlock;
11
+ //# sourceMappingURL=CodeBlock.d.ts.map
@@ -6,3 +6,4 @@ export declare const scroller: import('@dineug/r-html').CSSTemplateLiterals;
6
6
  export declare const layers: import('@dineug/r-html').CSSTemplateLiterals;
7
7
  export declare const preview: import('@dineug/r-html').CSSTemplateLiterals;
8
8
  export declare const textarea: import('@dineug/r-html').CSSTemplateLiterals;
9
+ //# sourceMappingURL=CodeBlock.styles.d.ts.map
@@ -10,3 +10,4 @@ export type ColorPickerProps = {
10
10
  };
11
11
  declare const ColorPicker: FC<ColorPickerProps>;
12
12
  export default ColorPicker;
13
+ //# sourceMappingURL=ColorPicker.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare const container: import('@dineug/r-html').CSSTemplateLiterals;
2
+ //# sourceMappingURL=ColorPicker.styles.d.ts.map
@@ -8,3 +8,4 @@ type CompositionContextMenu = {
8
8
  };
9
9
  declare const ContextMenu: CompositionContextMenu;
10
10
  export default ContextMenu;
11
+ //# sourceMappingURL=ContextMenu.d.ts.map
@@ -7,3 +7,4 @@ export type ContextMenuContentProps = {
7
7
  };
8
8
  declare const ContextMenuContent: FC<ContextMenuContentProps>;
9
9
  export default ContextMenuContent;
10
+ //# sourceMappingURL=ContextMenuContent.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare const content: import('@dineug/r-html').CSSTemplateLiterals;
2
+ //# sourceMappingURL=ContextMenuContent.styles.d.ts.map
@@ -6,3 +6,4 @@ export type ContextMenuItemProps = {
6
6
  };
7
7
  declare const ContextMenuItem: FC<ContextMenuItemProps>;
8
8
  export default ContextMenuItem;
9
+ //# sourceMappingURL=ContextMenuItem.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare const item: import('@dineug/r-html').CSSTemplateLiterals;
2
+ //# sourceMappingURL=ContextMenuItem.styles.d.ts.map
@@ -4,3 +4,4 @@ export type ContextMenuRootProps = {
4
4
  };
5
5
  declare const ContextMenuRoot: FC<ContextMenuRootProps>;
6
6
  export default ContextMenuRoot;
7
+ //# sourceMappingURL=ContextMenuRoot.d.ts.map
@@ -20,3 +20,4 @@ export declare function useContextMenuRootProvider(ctx: Ctx): {
20
20
  onContextmenu: (event: MouseEvent) => void;
21
21
  onMousedown: (event: MouseEvent) => void;
22
22
  };
23
+ //# sourceMappingURL=contextMenuRootContext.d.ts.map
@@ -6,3 +6,4 @@ export type MenuProps = {
6
6
  };
7
7
  declare const Menu: FC<MenuProps>;
8
8
  export default Menu;
9
+ //# sourceMappingURL=Menu.d.ts.map
@@ -1,3 +1,4 @@
1
1
  export declare const menu: import('@dineug/r-html').CSSTemplateLiterals;
2
2
  export declare const icon: import('@dineug/r-html').CSSTemplateLiterals;
3
3
  export declare const right: import('@dineug/r-html').CSSTemplateLiterals;
4
+ //# sourceMappingURL=Menu.styles.d.ts.map
@@ -14,3 +14,4 @@ export type EditInputProps = {
14
14
  };
15
15
  declare const EditInput: FC<EditInputProps>;
16
16
  export default EditInput;
17
+ //# sourceMappingURL=EditInput.d.ts.map
@@ -2,3 +2,4 @@ export declare const root: import('@dineug/r-html').CSSTemplateLiterals;
2
2
  export declare const cursor: import('@dineug/r-html').CSSTemplateLiterals;
3
3
  export declare const userSelect: import('@dineug/r-html').CSSTemplateLiterals;
4
4
  export declare const ellipsis: import('@dineug/r-html').CSSTemplateLiterals;
5
+ //# sourceMappingURL=EditInput.styles.d.ts.map
@@ -6,3 +6,4 @@ export type HighlightedTextProps = Parameters<typeof findAll>[0] & {
6
6
  };
7
7
  declare const HighlightedText: FC<HighlightedTextProps>;
8
8
  export default HighlightedText;
9
+ //# sourceMappingURL=HighlightedText.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare const highlighted: import('@dineug/r-html').CSSTemplateLiterals;
2
+ //# sourceMappingURL=HighlightedText.styles.d.ts.map
@@ -13,3 +13,4 @@ export type IconProps = {
13
13
  };
14
14
  declare const Icon: FC<IconProps>;
15
15
  export default Icon;
16
+ //# sourceMappingURL=Icon.d.ts.map
@@ -1,2 +1,3 @@
1
1
  export declare const wrap: import('@dineug/r-html').CSSTemplateLiterals;
2
2
  export declare const icon: import('@dineug/r-html').CSSTemplateLiterals;
3
+ //# sourceMappingURL=Icon.styles.d.ts.map