@dineug/erd-editor 3.4.0 → 3.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +41 -10
- package/dist/components/appContext.d.ts +9 -1
- package/dist/components/customElementRegistry.d.ts +1 -0
- package/dist/components/erd/Erd.d.ts +1 -0
- package/dist/components/erd/Erd.styles.d.ts +1 -0
- package/dist/components/erd/automatic-table-placement/AutomaticTablePlacement.d.ts +16 -0
- package/dist/components/erd/automatic-table-placement/AutomaticTablePlacement.styles.d.ts +1 -0
- package/dist/components/erd/automatic-table-placement/createAutomaticTablePlacement.d.ts +18 -1
- package/dist/components/erd/canvas/Canvas.d.ts +6 -0
- package/dist/components/erd/canvas/Canvas.styles.d.ts +12 -0
- package/dist/components/erd/canvas/CanvasScene.d.ts +19 -0
- package/dist/components/erd/canvas/EditOverlay.d.ts +9 -0
- package/dist/components/erd/canvas/EditOverlay.styles.d.ts +7 -0
- package/dist/components/erd/canvas/SceneIcon.template.d.ts +22 -0
- package/dist/components/erd/canvas/altDragDuplicate.d.ts +1 -0
- package/dist/components/erd/canvas/drag-select/DragSelect.d.ts +12 -0
- package/dist/components/erd/canvas/draw-relationship/DrawRelationship.d.ts +1 -0
- package/dist/components/erd/canvas/duplicate-ghost/DuplicateGhost.d.ts +6 -0
- package/dist/components/erd/canvas/entityDrag.d.ts +7 -0
- package/dist/components/erd/canvas/high-level-table/HighLevelTable.d.ts +5 -0
- package/dist/components/erd/canvas/memo/Memo.d.ts +3 -0
- package/dist/components/erd/canvas/memo/memo-sash/MemoSash.d.ts +12 -1
- package/dist/components/erd/canvas/memo/memoCaret.d.ts +27 -0
- package/dist/components/erd/canvas/memo/memoScroll.d.ts +29 -0
- package/dist/components/erd/canvas/memo/memoText.d.ts +34 -0
- package/dist/components/erd/canvas/memo/useMoveMemo.d.ts +7 -0
- package/dist/components/erd/canvas/relationship-group/RelationshipGroup.d.ts +16 -0
- package/dist/components/erd/canvas/{canvas-svg → relationship-group}/relationship/Relationship.d.ts +1 -0
- package/dist/components/erd/canvas/relationship-group/relationship/Relationship.template.d.ts +18 -0
- package/dist/components/erd/canvas/sceneHit.d.ts +19 -0
- package/dist/components/erd/canvas/sceneKind.d.ts +12 -0
- package/dist/components/erd/canvas/sceneRetention.d.ts +32 -0
- package/dist/components/erd/canvas/sceneTokens.d.ts +68 -0
- package/dist/components/erd/canvas/shared-drag-select/SharedDragSelect.d.ts +5 -0
- package/dist/components/erd/canvas/shared-mouse-tracker/SharedMouseTracker.d.ts +2 -0
- package/dist/components/erd/canvas/shared-mouse-tracker/shared-mouse-cursor/SharedMouseCursor.d.ts +6 -0
- package/dist/components/erd/canvas/table/Table.d.ts +9 -0
- package/dist/components/erd/canvas/table/cellLayout.d.ts +64 -0
- package/dist/components/erd/canvas/table/column/Column.d.ts +17 -6
- package/dist/components/erd/canvas/table/doubleClick.d.ts +15 -0
- package/dist/components/erd/canvas/table/useFocusTable.d.ts +1 -0
- package/dist/components/erd/canvas/table/useMoveTable.d.ts +2 -1
- package/dist/components/erd/canvas/table/useSharedFocusTable.d.ts +1 -0
- package/dist/components/erd/canvas/useMoveEntity.d.ts +19 -0
- package/dist/components/erd/canvas/useSharedSelectEntity.d.ts +1 -0
- package/dist/components/erd/content-compass/ContentCompass.d.ts +10 -0
- package/dist/components/erd/content-compass/ContentCompass.styles.d.ts +3 -0
- package/dist/components/erd/content-compass/compassGeometry.d.ts +24 -0
- package/dist/components/erd/diff-viewer/DiffViewer.d.ts +1 -0
- package/dist/components/erd/diff-viewer/DiffViewer.styles.d.ts +1 -0
- package/dist/components/erd/diff-viewer/diff.d.ts +1 -0
- package/dist/components/erd/diff-viewer/erd-viewer/ErdViewer.d.ts +1 -0
- package/dist/components/erd/diff-viewer/erd-viewer/ErdViewer.styles.d.ts +1 -0
- package/dist/components/erd/diff-viewer/tree-viewer/TreeViewer.d.ts +1 -0
- package/dist/components/erd/diff-viewer/tree-viewer/TreeViewer.styles.d.ts +1 -0
- package/dist/components/erd/erd-context-menu/ErdContextMenu.d.ts +2 -2
- package/dist/components/erd/erd-context-menu/menus/databaseMenus.d.ts +1 -0
- package/dist/components/erd/erd-context-menu/menus/drawRelationshipMenus.d.ts +3 -2
- package/dist/components/erd/erd-context-menu/menus/exportMenus.d.ts +3 -1
- package/dist/components/erd/erd-context-menu/menus/importMenus.d.ts +1 -0
- package/dist/components/erd/erd-context-menu/menus/relationshipMenus.d.ts +1 -0
- package/dist/components/erd/erd-context-menu/menus/showMenus.d.ts +1 -0
- package/dist/components/erd/erdShortcutPerformCheck.d.ts +1 -0
- package/dist/components/erd/floating-toolbar/FloatingToolbar.d.ts +10 -0
- package/dist/components/erd/floating-toolbar/FloatingToolbar.styles.d.ts +4 -0
- package/dist/components/erd/hitTest.d.ts +23 -0
- package/dist/components/erd/minimap/Minimap.d.ts +1 -0
- package/dist/components/erd/minimap/Minimap.styles.d.ts +1 -1
- package/dist/components/erd/minimap/MinimapScene.d.ts +17 -0
- package/dist/components/erd/minimap/memo/Memo.d.ts +8 -0
- package/dist/components/erd/minimap/minimapGeometry.d.ts +100 -0
- package/dist/components/erd/minimap/table/Table.d.ts +8 -0
- package/dist/components/erd/minimap/useMinimapScroll.d.ts +1 -0
- package/dist/components/erd/minimap/viewport/Viewport.d.ts +1 -0
- package/dist/components/erd/minimap/viewport/Viewport.styles.d.ts +1 -0
- package/dist/components/erd/table-properties/TableProperties.d.ts +1 -0
- package/dist/components/erd/table-properties/TableProperties.styles.d.ts +1 -0
- package/dist/components/erd/table-properties/table-properties-indexes/TablePropertiesIndexes.d.ts +1 -0
- package/dist/components/erd/table-properties/table-properties-indexes/TablePropertiesIndexes.styles.d.ts +1 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-checkbox-column/IndexesCheckboxColumn.d.ts +1 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-checkbox-column/IndexesCheckboxColumn.styles.d.ts +1 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-column/IndexesColumn.d.ts +1 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-column/IndexesColumn.styles.d.ts +1 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-index/IndexesIndex.d.ts +1 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-index/IndexesIndex.styles.d.ts +1 -0
- package/dist/components/erd/table-properties/table-properties-tabs/TablePropertiesTabs.d.ts +1 -0
- package/dist/components/erd/table-properties/table-properties-tabs/TablePropertiesTabs.styles.d.ts +1 -0
- package/dist/components/erd/time-travel/TimeTravel.d.ts +1 -0
- package/dist/components/erd/time-travel/TimeTravel.styles.d.ts +1 -0
- package/dist/components/erd/useErdShortcut.d.ts +1 -0
- package/dist/components/erd/virtual-scroll/VirtualScroll.d.ts +1 -0
- package/dist/components/erd/virtual-scroll/VirtualScroll.styles.d.ts +1 -0
- package/dist/components/erd/virtual-scroll/useVirtualScroll.d.ts +26 -0
- package/dist/components/erd-editor/ErdEditor.d.ts +2 -1
- package/dist/components/erd-editor/ErdEditor.styles.d.ts +1 -0
- package/dist/components/erd-editor/useErdEditorAttachElement.d.ts +1 -0
- package/dist/components/generator-code/GeneratorCode.d.ts +1 -0
- package/dist/components/generator-code/GeneratorCode.styles.d.ts +1 -0
- package/dist/components/generator-code/generator-code-context-menu/GeneratorCodeContextMenu.d.ts +1 -0
- package/dist/components/generator-code/generator-code-context-menu/menus/columnNameCaseMenus.d.ts +1 -0
- package/dist/components/generator-code/generator-code-context-menu/menus/languageMenus.d.ts +1 -0
- package/dist/components/generator-code/generator-code-context-menu/menus/tableNameCaseMenus.d.ts +1 -0
- package/dist/components/global-styles/GlobalStyles.d.ts +4 -12
- package/dist/components/primitives/button/Button.d.ts +1 -0
- package/dist/components/primitives/button/Button.styles.d.ts +1 -0
- package/dist/components/primitives/code-block/CodeBlock.d.ts +1 -0
- package/dist/components/primitives/code-block/CodeBlock.styles.d.ts +2 -1
- package/dist/components/primitives/color-picker/ColorPicker.d.ts +1 -0
- package/dist/components/primitives/color-picker/ColorPicker.styles.d.ts +1 -0
- package/dist/components/primitives/context-menu/ContextMenu.d.ts +1 -0
- package/dist/components/primitives/context-menu/context-menu-content/ContextMenuContent.d.ts +1 -0
- package/dist/components/primitives/context-menu/context-menu-content/ContextMenuContent.styles.d.ts +1 -0
- package/dist/components/primitives/context-menu/context-menu-item/ContextMenuItem.d.ts +1 -0
- package/dist/components/primitives/context-menu/context-menu-item/ContextMenuItem.styles.d.ts +1 -0
- package/dist/components/primitives/context-menu/context-menu-root/ContextMenuRoot.d.ts +1 -0
- package/dist/components/primitives/context-menu/context-menu-root/contextMenuRootContext.d.ts +1 -0
- package/dist/components/primitives/context-menu/menu/Menu.d.ts +1 -0
- package/dist/components/primitives/context-menu/menu/Menu.styles.d.ts +1 -0
- package/dist/components/primitives/edit-input/EditInput.d.ts +1 -0
- package/dist/components/primitives/edit-input/EditInput.styles.d.ts +1 -0
- package/dist/components/primitives/highlighted-text/HighlightedText.d.ts +1 -0
- package/dist/components/primitives/highlighted-text/HighlightedText.styles.d.ts +1 -0
- package/dist/components/primitives/icon/Icon.d.ts +1 -0
- package/dist/components/primitives/icon/Icon.styles.d.ts +1 -0
- package/dist/components/primitives/icon/icons.d.ts +55 -26
- package/dist/components/primitives/kbd/Kbd.d.ts +1 -0
- package/dist/components/primitives/kbd/Kbd.styles.d.ts +1 -0
- package/dist/components/primitives/sash/Sash.d.ts +1 -0
- package/dist/components/primitives/sash/Sash.styles.d.ts +1 -0
- package/dist/components/primitives/separator/Separator.d.ts +1 -0
- package/dist/components/primitives/separator/Separator.styles.d.ts +1 -0
- package/dist/components/primitives/slider/Slider.d.ts +1 -0
- package/dist/components/primitives/slider/Slider.styles.d.ts +1 -0
- package/dist/components/primitives/switch/Switch.d.ts +1 -0
- package/dist/components/primitives/switch/Switch.styles.d.ts +1 -0
- package/dist/components/primitives/text-input/TextInput.d.ts +1 -0
- package/dist/components/primitives/toast/Toast.d.ts +5 -0
- package/dist/components/primitives/toast/Toast.styles.d.ts +6 -0
- package/dist/components/quick-search/QuickSearch.d.ts +1 -0
- package/dist/components/quick-search/QuickSearch.styles.d.ts +1 -0
- package/dist/components/quick-search/actions.d.ts +1 -0
- package/dist/components/schema-sql/SchemaSQL.d.ts +1 -0
- package/dist/components/schema-sql/SchemaSQL.styles.d.ts +1 -0
- package/dist/components/schema-sql/schema-sql-context-menu/SchemaSQLContextMenu.d.ts +1 -0
- package/dist/components/schema-sql/schema-sql-context-menu/menus/bracketMenus.d.ts +1 -0
- package/dist/components/settings/Settings.d.ts +1 -0
- package/dist/components/settings/Settings.styles.d.ts +1 -0
- package/dist/components/settings/settings-lnb/SettingsLnb.d.ts +1 -0
- package/dist/components/settings/settings-lnb/SettingsLnb.styles.d.ts +1 -0
- package/dist/components/settings/shortcuts/Shortcuts.d.ts +1 -0
- package/dist/components/settings/shortcuts/Shortcuts.styles.d.ts +1 -0
- package/dist/components/{erd/canvas/table → table-view}/Table.styles.d.ts +1 -0
- package/dist/components/{erd/canvas/draw-relationship/DrawRelationship.styles.d.ts → table-view/column/Column.styles.d.ts} +1 -0
- package/dist/components/{erd/canvas/table → table-view}/column/column-data-type/ColumnDataType.d.ts +2 -1
- package/dist/components/{erd/canvas/table → table-view}/column/column-data-type/ColumnDataType.styles.d.ts +1 -0
- package/dist/components/{erd/canvas/table → table-view}/column/column-key/ColumnKey.d.ts +1 -0
- package/dist/components/{erd/canvas/table → table-view}/column/column-key/ColumnKey.styles.d.ts +1 -0
- package/dist/components/{erd/canvas/table → table-view}/column/column-not-null/ColumnNotNull.d.ts +1 -0
- package/dist/components/{erd/canvas/table → table-view}/column/column-not-null/ColumnNotNull.styles.d.ts +1 -0
- package/dist/components/{erd/canvas/table → table-view}/column/column-option/ColumnOption.d.ts +1 -0
- package/dist/components/{erd/canvas/table → table-view}/column/column-option/ColumnOption.styles.d.ts +1 -0
- package/dist/components/table-view/column/useColumnCell.d.ts +24 -0
- package/dist/components/theme/Theme.d.ts +1 -0
- package/dist/components/theme-builder/ThemeBuilder.d.ts +1 -0
- package/dist/components/theme-builder/ThemeBuilder.styles.d.ts +1 -0
- package/dist/components/themeContext.d.ts +10 -0
- package/dist/components/toast-container/ToastContainer.d.ts +1 -0
- package/dist/components/toast-container/ToastContainer.styles.d.ts +1 -0
- package/dist/components/toast-container/openToastWhileRunning.d.ts +12 -0
- package/dist/components/toolbar/Toolbar.d.ts +1 -0
- package/dist/components/toolbar/Toolbar.styles.d.ts +1 -0
- package/dist/components/visualization/Visualization.d.ts +7 -0
- package/dist/components/visualization/Visualization.styles.d.ts +7 -0
- package/dist/components/visualization/VisualizationScene.d.ts +22 -0
- package/dist/components/visualization/createVisualization.d.ts +68 -8
- package/dist/components/visualization/graph-node/GraphNode.d.ts +24 -0
- package/dist/components/visualization/table/Table.d.ts +1 -1
- package/dist/components/visualization/table/column/Column.d.ts +1 -1
- package/dist/components/visualization/table/column/Column.styles.d.ts +1 -0
- package/dist/components/visualization/visualizationView.d.ts +91 -0
- package/dist/constants/language.d.ts +3 -2
- package/dist/constants/layout.d.ts +7 -13
- package/dist/constants/open.d.ts +1 -0
- package/dist/constants/schema.d.ts +2 -1
- package/dist/constants/sql/dataType/Databricks.d.ts +1 -0
- package/dist/constants/sql/dataType/MSSQL.d.ts +1 -0
- package/dist/constants/sql/dataType/MariaDB.d.ts +1 -0
- package/dist/constants/sql/dataType/MySQL.d.ts +1 -0
- package/dist/constants/sql/dataType/Oracle.d.ts +1 -0
- package/dist/constants/sql/dataType/PostgreSQL.d.ts +1 -0
- package/dist/constants/sql/dataType/SQLite.d.ts +1 -0
- package/dist/constants/sql/dataType/Snowflake.d.ts +1 -0
- package/dist/constants/sql/dataType/index.d.ts +1 -0
- package/dist/constants/sql/database.d.ts +1 -0
- package/dist/engine/actions.d.ts +1 -0
- package/dist/engine/clock.d.ts +1 -0
- package/dist/engine/context.d.ts +1 -0
- package/dist/engine/generator.actions.d.ts +1 -0
- package/dist/engine/history.actions.d.ts +1 -0
- package/dist/engine/history.d.ts +1 -0
- package/dist/engine/hooks.d.ts +1 -0
- package/dist/engine/index.d.ts +1 -0
- package/dist/engine/index.js +44 -0
- package/dist/engine/modules/editor/actions.d.ts +21 -0
- package/dist/engine/modules/editor/atom.actions.d.ts +92 -0
- package/dist/engine/modules/editor/generator.actions.d.ts +1 -0
- package/dist/engine/modules/editor/history.d.ts +1 -0
- package/dist/engine/modules/editor/state.d.ts +31 -0
- package/dist/engine/modules/editor/utils/duplicate.d.ts +5 -2
- package/dist/engine/modules/editor/utils/findRelationshipColumn.d.ts +1 -0
- package/dist/engine/modules/editor/utils/focus.d.ts +1 -0
- package/dist/engine/modules/editor/utils/selectRangeColumn.d.ts +1 -0
- package/dist/engine/modules/index/actions.d.ts +1 -0
- package/dist/engine/modules/index/atom.actions.d.ts +1 -0
- package/dist/engine/modules/index/generator.actions.d.ts +1 -0
- package/dist/engine/modules/index/history.d.ts +1 -0
- package/dist/engine/modules/index-column/actions.d.ts +1 -0
- package/dist/engine/modules/index-column/atom.actions.d.ts +1 -0
- package/dist/engine/modules/index-column/generator.actions.d.ts +1 -0
- package/dist/engine/modules/index-column/history.d.ts +1 -0
- package/dist/engine/modules/memo/actions.d.ts +1 -0
- package/dist/engine/modules/memo/atom.actions.d.ts +1 -0
- package/dist/engine/modules/memo/generator.actions.d.ts +1 -0
- package/dist/engine/modules/memo/history.d.ts +1 -0
- package/dist/engine/modules/relationship/actions.d.ts +1 -0
- package/dist/engine/modules/relationship/atom.actions.d.ts +1 -0
- package/dist/engine/modules/relationship/generator.actions.d.ts +1 -0
- package/dist/engine/modules/relationship/history.d.ts +1 -0
- package/dist/engine/modules/relationship/hooks.d.ts +1 -0
- package/dist/engine/modules/settings/actions.d.ts +3 -7
- package/dist/engine/modules/settings/atom.actions.d.ts +46 -32
- package/dist/engine/modules/settings/generator.actions.d.ts +1 -0
- package/dist/engine/modules/settings/history.d.ts +1 -1
- package/dist/engine/modules/settings/scrollRange.d.ts +18 -0
- package/dist/engine/modules/table/actions.d.ts +1 -0
- package/dist/engine/modules/table/atom.actions.d.ts +1 -0
- package/dist/engine/modules/table/generator.actions.d.ts +1 -0
- package/dist/engine/modules/table/history.d.ts +1 -0
- package/dist/engine/modules/table/hooks.d.ts +1 -0
- package/dist/engine/modules/table-column/actions.d.ts +1 -0
- package/dist/engine/modules/table-column/atom.actions.d.ts +1 -0
- package/dist/engine/modules/table-column/generator.actions.d.ts +1 -0
- package/dist/engine/modules/table-column/history.d.ts +1 -0
- package/dist/engine/modules/table-column/hooks.d.ts +1 -0
- package/dist/engine/modules/table-column/utils/dataType.d.ts +1 -0
- package/dist/engine/replication-store.d.ts +1 -0
- package/dist/engine/rx-operators/actionsFilter.d.ts +1 -0
- package/dist/engine/rx-operators/bufferCircuitBreaker.d.ts +1 -0
- package/dist/engine/rx-operators/groupByStreamActions.d.ts +1 -0
- package/dist/engine/rx-operators/ignoreTagFilter.d.ts +1 -0
- package/dist/engine/rx-operators/index.d.ts +1 -0
- package/dist/engine/rx-operators/notEmptyActions.d.ts +1 -0
- package/dist/engine/rx-operators/readonlyIgnoreFilter.d.ts +1 -0
- package/dist/engine/rx-operators/sharedStreamActionsCompressor.d.ts +1 -0
- package/dist/engine/rx-store.d.ts +1 -0
- package/dist/engine/shared-store.d.ts +1 -0
- package/dist/engine/state.d.ts +1 -0
- package/dist/engine/store-hooks.d.ts +1 -0
- package/dist/engine/store.d.ts +1 -0
- package/dist/engine/tag.d.ts +1 -0
- package/dist/erd-editor.umd.js +5259 -0
- package/dist/hooks/useDarkMode.d.ts +1 -0
- package/dist/hooks/useFlipAnimation.d.ts +1 -0
- package/dist/hooks/useKeyBindingMap.d.ts +1 -0
- package/dist/hooks/useUnmounted.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.dev.d.ts +1 -0
- package/dist/index.js +19991 -0
- package/dist/internal-types/index.d.ts +1 -0
- package/dist/konva/batchDraw.d.ts +42 -0
- package/dist/konva/host.d.ts +30 -0
- package/dist/konva/jsx-types.test-d.d.ts +2 -0
- package/dist/konva/scene/columnDropTarget.d.ts +14 -0
- package/dist/konva/scene/contentBounds.d.ts +29 -0
- package/dist/konva/scene/konvaFlip.d.ts +19 -0
- package/dist/konva/scene/metrics.d.ts +30 -0
- package/dist/konva/scene/renderScene.d.ts +35 -0
- package/dist/konva/scene/viewFreeze.d.ts +20 -0
- package/dist/konva/scene/viewport.d.ts +45 -0
- package/dist/konva/testHandle.d.ts +23 -0
- package/dist/konva/theme.d.ts +32 -0
- package/dist/konva/workerDomStubs.d.ts +2 -0
- package/dist/schemaGCService--wGet5O7.js +9636 -0
- package/dist/services/export-png/ExportScene.d.ts +16 -0
- package/dist/services/export-png/documentScene.d.ts +33 -0
- package/dist/services/export-png/exportBox.d.ts +27 -0
- package/dist/services/export-png/exportPng.shared-worker.d.ts +1 -0
- package/dist/services/export-png/exportPngService.d.ts +25 -0
- package/dist/services/export-png/index.d.ts +55 -0
- package/dist/services/export-png/pixelRatio.d.ts +22 -0
- package/dist/services/export-png/renderPng.d.ts +40 -0
- package/dist/services/export-png/textWidth.d.ts +28 -0
- package/dist/services/schema-gc/index.d.ts +9 -1
- package/dist/services/schema-gc/procGC.d.ts +1 -0
- package/dist/services/schema-gc/schemaGC.shared-worker.d.ts +1 -0
- package/dist/services/schema-gc/schemaGCService.d.ts +1 -0
- package/dist/services/shikiService.d.ts +1 -0
- package/dist/styles/colorPicker.style.d.ts +4 -7
- package/dist/styles/fonts.styles.d.ts +2 -1
- package/dist/styles/reset.styles.d.ts +2 -1
- package/dist/styles/scrollbar.styles.d.ts +4 -3
- package/dist/styles/typography.styles.d.ts +2 -1
- package/dist/themes/radix-ui-theme.config.d.ts +1 -0
- package/dist/themes/radix-ui-theme.d.ts +1 -0
- package/dist/themes/tokens.d.ts +5 -0
- package/dist/utils/arrayHas.d.ts +3 -0
- package/dist/utils/attribute.d.ts +1 -0
- package/dist/utils/bit.d.ts +1 -0
- package/dist/utils/calcMemo.d.ts +1 -0
- package/dist/utils/calcTable.d.ts +2 -1
- package/dist/utils/clipboard.d.ts +1 -0
- package/dist/utils/collection/index.entity.d.ts +1 -0
- package/dist/utils/collection/indexColumn.entity.d.ts +1 -0
- package/dist/utils/collection/memo.entity.d.ts +1 -0
- package/dist/utils/collection/relationship.entity.d.ts +1 -0
- package/dist/utils/collection/sequence.d.ts +1 -0
- package/dist/utils/collection/table.entity.d.ts +1 -0
- package/dist/utils/collection/tableColumn.entity.d.ts +1 -0
- package/dist/utils/device-detect/index.d.ts +1 -0
- package/dist/utils/domEvent.d.ts +1 -0
- package/dist/utils/dragSelect.d.ts +1 -8
- package/dist/utils/draw-relationship/calc.d.ts +1 -0
- package/dist/utils/draw-relationship/chamfer.d.ts +1 -0
- package/dist/utils/draw-relationship/draw.d.ts +1 -0
- package/dist/utils/draw-relationship/incremental.d.ts +71 -0
- package/dist/utils/draw-relationship/index.d.ts +48 -42
- package/dist/utils/draw-relationship/nudge.d.ts +3 -1
- package/dist/utils/draw-relationship/pathFinding.d.ts +4 -5
- package/dist/utils/draw-relationship/route.d.ts +5 -9
- package/dist/utils/draw-relationship/sort.d.ts +1 -0
- package/dist/utils/draw-relationship/stub.d.ts +6 -16
- package/dist/utils/emitter.d.ts +17 -0
- package/dist/utils/file/exportFile.d.ts +11 -1
- package/dist/utils/file/importFile.d.ts +1 -0
- package/dist/utils/flipAnimation.d.ts +1 -0
- package/dist/utils/focus.d.ts +2 -1
- package/dist/utils/generator-code/aml.d.ts +1 -0
- package/dist/utils/generator-code/csharp.d.ts +1 -0
- package/dist/utils/generator-code/dbml.d.ts +1 -0
- package/dist/utils/generator-code/drizzle.d.ts +1 -0
- package/dist/utils/generator-code/go.d.ts +1 -0
- package/dist/utils/generator-code/graphql.d.ts +1 -0
- package/dist/utils/generator-code/index.d.ts +1 -0
- package/dist/utils/generator-code/java.d.ts +1 -0
- package/dist/utils/generator-code/jpa.d.ts +1 -0
- package/dist/utils/generator-code/kotlin.d.ts +1 -0
- package/dist/utils/generator-code/scala.d.ts +1 -0
- package/dist/utils/generator-code/sequelize.d.ts +1 -0
- package/dist/utils/generator-code/sqlalchemy.d.ts +1 -0
- package/dist/utils/generator-code/typeorm.d.ts +1 -0
- package/dist/utils/generator-code/typescript.d.ts +1 -0
- package/dist/utils/generator-code/utils.d.ts +1 -0
- package/dist/utils/globalEmitter.d.ts +1 -0
- package/dist/utils/globalEventObservable.d.ts +14 -12
- package/dist/utils/icon.d.ts +10 -1
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/internalEvents.d.ts +1 -0
- package/dist/utils/keyboard-shortcut/index.d.ts +16 -1
- package/dist/utils/keyboard-shortcut/utils.d.ts +1 -0
- package/dist/utils/promise.d.ts +1 -0
- package/dist/utils/rx-operators/fromCopy.d.ts +1 -0
- package/dist/utils/rx-operators/fromDraggable.d.ts +1 -0
- package/dist/utils/rx-operators/fromPaste.d.ts +1 -0
- package/dist/utils/rx-operators/fromShadowDraggable.d.ts +1 -0
- package/dist/utils/rx-operators/takeUnsubscribe.d.ts +1 -0
- package/dist/utils/safeCallback.d.ts +5 -0
- package/dist/utils/schema-aml-parser/convert.d.ts +1 -0
- package/dist/utils/schema-aml-parser/dataType.d.ts +6 -6
- package/dist/utils/schema-aml-parser/index.d.ts +1 -0
- package/dist/utils/schema-aml-parser/parser.d.ts +1 -0
- package/dist/utils/schema-aml-parser/tokenizer.d.ts +4 -5
- package/dist/utils/schema-aml-parser/types.d.ts +14 -14
- package/dist/utils/schema-dbml-parser/convert.d.ts +1 -0
- package/dist/utils/schema-dbml-parser/dataType.d.ts +3 -2
- package/dist/utils/schema-dbml-parser/index.d.ts +1 -0
- package/dist/utils/schema-dbml-parser/parser.d.ts +1 -0
- package/dist/utils/schema-dbml-parser/tokenizer.d.ts +1 -0
- package/dist/utils/schema-dbml-parser/types.d.ts +6 -5
- package/dist/utils/schema-graphql-parser/convert.d.ts +1 -0
- package/dist/utils/schema-graphql-parser/dataType.d.ts +3 -2
- package/dist/utils/schema-graphql-parser/index.d.ts +1 -0
- package/dist/utils/schema-graphql-parser/parser.d.ts +1 -0
- package/dist/utils/schema-graphql-parser/types.d.ts +8 -7
- package/dist/utils/schema-sql/Databricks.d.ts +1 -0
- package/dist/utils/schema-sql/MSSQL.d.ts +1 -0
- package/dist/utils/schema-sql/MariaDB.d.ts +1 -0
- package/dist/utils/schema-sql/MySQL.d.ts +1 -0
- package/dist/utils/schema-sql/Oracle.d.ts +1 -0
- package/dist/utils/schema-sql/PostgreSQL.d.ts +1 -0
- package/dist/utils/schema-sql/SQLite.d.ts +1 -0
- package/dist/utils/schema-sql/Snowflake.d.ts +1 -0
- package/dist/utils/schema-sql/index.d.ts +1 -0
- package/dist/utils/schema-sql/utils.d.ts +1 -0
- package/dist/utils/schema-sql-parser/index.d.ts +1 -0
- package/dist/utils/schema-sql-parser/utils.d.ts +1 -0
- package/dist/utils/sharedColor.d.ts +1 -0
- package/dist/utils/table-clipboard/copy.d.ts +15 -2
- package/dist/utils/table-clipboard/index.d.ts +1 -0
- package/dist/utils/table-clipboard/paste.d.ts +1 -0
- package/dist/utils/table-clipboard/payload.d.ts +30 -1
- package/dist/utils/table-clipboard/placement.d.ts +1 -0
- package/dist/utils/text.d.ts +1 -0
- package/dist/utils/validation.d.ts +2 -1
- package/dist/workers/exportPng.shared-worker.js +54 -0
- package/dist/workers/schemaGC.shared-worker.js +1 -0
- package/dist/workers/spawn.d.ts +8 -0
- package/dist/workers/spawn.inline.d.ts +8 -0
- package/package.json +53 -51
- package/dist/components/erd/canvas/canvas-svg/CanvasSvg.d.ts +0 -7
- package/dist/components/erd/canvas/canvas-svg/CanvasSvg.styles.d.ts +0 -1
- package/dist/components/erd/canvas/canvas-svg/relationship/Relationship.template.d.ts +0 -3
- package/dist/components/erd/canvas/duplicate-ghost/DuplicateGhost.styles.d.ts +0 -2
- package/dist/components/erd/canvas/high-level-table/HighLevelTable.styles.d.ts +0 -1
- package/dist/components/erd/canvas/memo/Memo.styles.d.ts +0 -6
- package/dist/components/erd/canvas/shared-mouse-tracker/shared-mouse-cursor/SharedMouseCursor.styles.d.ts +0 -1
- package/dist/components/erd/canvas/table/column/Column.styles.d.ts +0 -2
- package/dist/components/erd/drag-select/DragSelect.d.ts +0 -9
- package/dist/components/erd/drag-select/DragSelect.styles.d.ts +0 -1
- package/dist/components/erd/hide-sign/HideSign.d.ts +0 -6
- package/dist/components/erd/hide-sign/HideSign.styles.d.ts +0 -1
- package/dist/components/erd-editor/ErdEditor.stories.d.ts +0 -17
- package/dist/components/primitives/button/Button.stories.d.ts +0 -26
- package/dist/components/primitives/code-block/CodeBlock.stories.d.ts +0 -25
- package/dist/components/primitives/color-picker/ColorPicker.stories.d.ts +0 -26
- package/dist/components/primitives/context-menu/ContextMenu.stories.d.ts +0 -16
- package/dist/components/primitives/edit-input/EditInput.stories.d.ts +0 -36
- package/dist/components/primitives/highlighted-text/HighlightedText.stories.d.ts +0 -23
- package/dist/components/primitives/icon/Icon.stories.d.ts +0 -10
- package/dist/components/primitives/kbd/Kbd.stories.d.ts +0 -17
- package/dist/components/primitives/sash/Sash.stories.d.ts +0 -30
- package/dist/components/primitives/separator/Separator.stories.d.ts +0 -25
- package/dist/components/primitives/slider/Slider.stories.d.ts +0 -23
- package/dist/components/primitives/switch/Switch.stories.d.ts +0 -21
- package/dist/components/primitives/text-input/TextInput.stories.d.ts +0 -41
- package/dist/components/primitives/toast/Toast.stories.d.ts +0 -20
- package/dist/engine.js +0 -42
- package/dist/erd-editor.js +0 -32023
- package/dist/schemaGCService-DAGNq0wk.js +0 -17092
- package/dist/services/schema-gc/schemaGC.worker.d.ts +0 -1
- package/dist/themes/textColor.d.ts +0 -2
|
@@ -94,18 +94,9 @@ export declare const isDirection: (value: string) => boolean;
|
|
|
94
94
|
export declare const PATH_HEIGHT = 30;
|
|
95
95
|
export declare const PATH_END_HEIGHT: number;
|
|
96
96
|
/**
|
|
97
|
-
* The cardinality decoration, measured outward from the anchor.
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
* the ring share a centre at `LINE_SIZE + LINE_HEIGHT`, the guide line starts
|
|
101
|
-
* where the longest stroke ends at `LINE_HEIGHT * 2 + 3`, and the ring has to
|
|
102
|
-
* clear the first tick behind it and the guide line in front of it, which puts
|
|
103
|
-
* its radius between those two.
|
|
104
|
-
*
|
|
105
|
-
* Scaled to 0.7 of what they were, so a decoration reaches 25px out rather than
|
|
106
|
-
* 35px. `RELATIONSHIP_STROKE_WIDTH` thinned the connector; leaving the notation
|
|
107
|
-
* at its old size would have made the crow's foot the heaviest thing on the
|
|
108
|
-
* canvas.
|
|
97
|
+
* The cardinality decoration, measured outward from the anchor. The four are one
|
|
98
|
+
* shape and cannot be set independently: the ring shares a centre with the
|
|
99
|
+
* second tick and has to clear both the first tick and the guide line.
|
|
109
100
|
*/
|
|
110
101
|
export declare const LINE_SIZE = 7;
|
|
111
102
|
export declare const LINE_HEIGHT = 11;
|
|
@@ -114,50 +105,34 @@ export declare const CIRCLE_RADIUS = 6;
|
|
|
114
105
|
export declare const PATH_LINE_HEIGHT: number;
|
|
115
106
|
/**
|
|
116
107
|
* How far apart the corridors of two relationships leaving the same table side
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
* anchors are spread.
|
|
108
|
+
* sit. Without it every path on a side turns at the same coordinate and their
|
|
109
|
+
* first segments run down one another however far the anchors are spread.
|
|
120
110
|
*/
|
|
121
111
|
export declare const STUB_STEP = 12;
|
|
122
112
|
/**
|
|
123
|
-
* Corridors repeat every fourth slot.
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
* four anchor pitches apart — between any two that share a corridor.
|
|
113
|
+
* Corridors repeat every fourth slot. An unbounded stub walks a busy side's
|
|
114
|
+
* paths ever further from the table; wrapping caps the longest one and still
|
|
115
|
+
* leaves four slots between any two that share a corridor.
|
|
127
116
|
*/
|
|
128
117
|
export declare const STUB_CYCLE = 4;
|
|
129
118
|
/**
|
|
130
|
-
* The shortest a stub may be clamped to.
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
* out from the anchor and the guide line is drawn from there to the stub, so a
|
|
134
|
-
* shorter stub draws that line backwards. It is not derived from it. 36 is where
|
|
135
|
-
* the routing was measured, and letting it follow the decorations down to 26
|
|
136
|
-
* when they shrank took the medium corpus from 168px of collinear overlap to
|
|
137
|
-
* 484px — two tables facing each other closer than `2 * MIN_STUB` turn in
|
|
138
|
-
* earlier, and the routing bench found them sharing a corridor for 316px.
|
|
119
|
+
* The shortest a stub may be clamped to. It has to clear PATH_LINE_HEIGHT or the
|
|
120
|
+
* guide line is drawn backwards, but it is not derived from it: this is where
|
|
121
|
+
* the routing was measured, and following the decorations down cost overlap.
|
|
139
122
|
*/
|
|
140
123
|
export declare const MIN_STUB = 36;
|
|
141
124
|
/**
|
|
142
|
-
* The widest gap allowed between two anchors on the same table side.
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
* table splayed hundreds of pixels apart and converged again. Capping the pitch
|
|
146
|
-
* keeps a side's anchors together as a group; the side is only filled when it
|
|
147
|
-
* genuinely has that many relationships.
|
|
125
|
+
* The widest gap allowed between two anchors on the same table side. Capping the
|
|
126
|
+
* pitch keeps a side's anchors together as a group, so a tall table's edge is
|
|
127
|
+
* only filled when it genuinely has that many relationships.
|
|
148
128
|
*/
|
|
149
129
|
export declare const ANCHOR_MAX_PITCH = 120;
|
|
150
130
|
/** Keeps the outermost anchor of a side clear of the table's corners. */
|
|
151
131
|
export declare const ANCHOR_EDGE_INSET = 12;
|
|
152
132
|
/**
|
|
153
|
-
* How far back from a corner a connector turns
|
|
154
|
-
*
|
|
155
|
-
*
|
|
156
|
-
* Each cut is clamped to half of the shorter run it touches, so this is a ceiling
|
|
157
|
-
* rather than a length: a short run keeps its right angle instead of losing the
|
|
158
|
-
* whole of itself to two cuts. Two connectors turning the same way in
|
|
159
|
-
* neighbouring lanes stay `NUDGE_GAP` apart through the corner, so a bundle bends
|
|
160
|
-
* as a set of concentric cuts rather than converging on one.
|
|
133
|
+
* How far back from a corner a connector turns when the corner is cut to 45
|
|
134
|
+
* degrees. A ceiling rather than a length: each cut is clamped to half the
|
|
135
|
+
* shorter run it touches, so a short run keeps its right angle.
|
|
161
136
|
*/
|
|
162
137
|
export declare const ROUTE_CHAMFER = 8;
|
|
163
138
|
export declare function setStubSlots(relationship: Relationship, slots: readonly [number, number]): void;
|
|
@@ -165,3 +140,34 @@ export declare function setStubSlots(relationship: Relationship, slots: readonly
|
|
|
165
140
|
export declare function getStubSlots(relationship: Relationship): readonly [number, number];
|
|
166
141
|
export declare function setRoute(relationship: Relationship, points: Point[]): void;
|
|
167
142
|
export declare function getRoute(relationship: Relationship): Point[] | undefined;
|
|
143
|
+
/**
|
|
144
|
+
* How far a connector reaches past its anchor, whichever decoration is furthest
|
|
145
|
+
* out. The ring shares a centre with the second tick, so its outer edge and the
|
|
146
|
+
* start of the guide line are the two candidates.
|
|
147
|
+
*/
|
|
148
|
+
export declare const ROUTE_BBOX_REACH: number;
|
|
149
|
+
/**
|
|
150
|
+
* The longest stub a slot can ask for. It bounds where the turning points of an
|
|
151
|
+
* unrouted relationship can be, which is the only thing the route itself would
|
|
152
|
+
* have told us.
|
|
153
|
+
*/
|
|
154
|
+
export declare const MAX_STUB: number;
|
|
155
|
+
export type BBox = {
|
|
156
|
+
x: number;
|
|
157
|
+
y: number;
|
|
158
|
+
width: number;
|
|
159
|
+
height: number;
|
|
160
|
+
};
|
|
161
|
+
/**
|
|
162
|
+
* Opens a sort, retiring every route box the previous one wrote. Identity
|
|
163
|
+
* outlives a sort, so the stamp a route carries is what separates a box for the
|
|
164
|
+
* current routes from one the next sort has already replaced.
|
|
165
|
+
*/
|
|
166
|
+
export declare function nextSortEpoch(): void;
|
|
167
|
+
/**
|
|
168
|
+
* Everywhere a relationship can be drawn, for a culling test that must not lose
|
|
169
|
+
* a connector whose anchors are on screen and whose route is not. Without a
|
|
170
|
+
* route from this sort the stub ends are unknown, so the padding carries them.
|
|
171
|
+
*/
|
|
172
|
+
export declare function getRouteBBox(relationship: Relationship, strokeWidth?: number): BBox;
|
|
173
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { Point } from '../../internal-types';
|
|
2
|
+
import { NudgeMemo } from './incremental';
|
|
2
3
|
import { Obstacles } from './route';
|
|
3
|
-
export declare function nudgeRoutes(routes: Map<string, Point[]>, obstacles: Obstacles, endpoints: Map<string, [string, string]
|
|
4
|
+
export declare function nudgeRoutes(routes: Map<string, Point[]>, obstacles: Obstacles, endpoints: Map<string, [string, string]>, memo?: NudgeMemo): void;
|
|
5
|
+
//# sourceMappingURL=nudge.d.ts.map
|
|
@@ -2,10 +2,9 @@ import { Point, Relationship } from '../../internal-types';
|
|
|
2
2
|
import { RelationshipPath } from '.';
|
|
3
3
|
export declare function getRelationshipPath(relationship: Relationship): RelationshipPath;
|
|
4
4
|
/**
|
|
5
|
-
* The routing polyline as one
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* The segments are contiguous by construction — they come from a polyline — so
|
|
9
|
-
* each one contributes its far end and nothing else.
|
|
5
|
+
* The routing polyline as one d, so a connector is a single element whatever the
|
|
6
|
+
* router and the corner cuts made of it. The segments are contiguous by
|
|
7
|
+
* construction, so each contributes its far end and nothing else.
|
|
10
8
|
*/
|
|
11
9
|
export declare function toPathD(segments: Array<[Point, Point]>): string;
|
|
10
|
+
//# sourceMappingURL=pathFinding.d.ts.map
|
|
@@ -15,18 +15,14 @@ export declare function collectObstacles(state: RootState): Obstacles;
|
|
|
15
15
|
/** Liang–Barsky, with no divisions until a slab actually clips. */
|
|
16
16
|
export declare function segmentHitsBox(ax: number, ay: number, bx: number, by: number, left: number, top: number, right: number, bottom: number): boolean;
|
|
17
17
|
/**
|
|
18
|
-
* How many tables a polyline passes through, ignoring the two it connects.
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* it, and the nudge pass calls it twice per lane it tries. The polyline's own
|
|
22
|
-
* bounding box is computed once and used to skip tables outright — a connector
|
|
23
|
-
* spans a small part of the canvas, so most tables fail it. Every segment's box
|
|
24
|
-
* sits inside the polyline's, so a table the polyline's box misses is a table
|
|
25
|
-
* every segment's cheap reject would have missed too; the count is unchanged.
|
|
18
|
+
* How many tables a polyline passes through, ignoring the two it connects. The
|
|
19
|
+
* hot function of the router, so the polyline's own box is computed once to skip
|
|
20
|
+
* tables outright; every segment's box sits inside it, so the count is the same.
|
|
26
21
|
*/
|
|
27
22
|
export declare function countBlocked(points: Point[], obstacles: Obstacles, skipA: string, skipB: string): number;
|
|
28
23
|
/**
|
|
29
|
-
* The cheapest orthogonal polyline from
|
|
24
|
+
* The cheapest orthogonal polyline from m to l, or a two-bend fallback when
|
|
30
25
|
* nothing is feasible — a connector always has to be drawn.
|
|
31
26
|
*/
|
|
32
27
|
export declare function routeOrthogonal(m: Point, mDirection: number, l: Point, lDirection: number, obstacles: Obstacles, skipA: string, skipB: string): Point[];
|
|
28
|
+
//# sourceMappingURL=route.d.ts.map
|
|
@@ -1,28 +1,17 @@
|
|
|
1
1
|
import { Point, Relationship } from '../../internal-types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* Shared because two callers need the same answer: `pathFinding` draws from it,
|
|
6
|
-
* and `relationshipSort` routes from it. Deriving it twice would let the routed
|
|
7
|
-
* polyline and the guide line drift apart by a slot's worth of stub.
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* Slot zero keeps the historical `PATH_END_HEIGHT`, so a relationship that never
|
|
11
|
-
* went through `relationshipSort` draws exactly as it did before.
|
|
3
|
+
* Slot zero keeps the historical PATH_END_HEIGHT, so a relationship that never
|
|
4
|
+
* went through relationshipSort draws exactly as it did before.
|
|
12
5
|
*/
|
|
13
6
|
export declare function stubFor(slot: number): number;
|
|
14
7
|
/**
|
|
15
8
|
* The axis-aligned distance between two anchors that point at each other, or
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* Only this arrangement can collapse: with a stub on each side, a gap of twice
|
|
19
|
-
* the stub puts both turning points on the same spot and the connector vanishes,
|
|
20
|
-
* and a smaller gap inverts it so the path runs backwards through both tables.
|
|
21
|
-
* Nothing stops two tables being that close — the editor allows them to overlap.
|
|
9
|
+
* null when they do not. Only this arrangement can collapse: a gap of twice the
|
|
10
|
+
* stub puts both turning points on one spot, and a smaller gap inverts the path.
|
|
22
11
|
*/
|
|
23
12
|
export declare function facingGap(start: Relationship['start'], end: Relationship['end']): number | null;
|
|
24
13
|
/**
|
|
25
|
-
* Below roughly
|
|
14
|
+
* Below roughly 2 * MIN_STUB the two cardinality decorations already overlap
|
|
26
15
|
* each other, which no stub length can fix; the clamp stops short of making it
|
|
27
16
|
* worse by drawing the guide line backwards.
|
|
28
17
|
*/
|
|
@@ -45,3 +34,4 @@ export declare function stubEnds(relationship: Relationship): StubEnds;
|
|
|
45
34
|
* decorations and the routed polyline.
|
|
46
35
|
*/
|
|
47
36
|
export declare const GUIDE_START: number;
|
|
37
|
+
//# sourceMappingURL=stub.d.ts.map
|
package/dist/utils/emitter.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ declare const InternalActionType: {
|
|
|
18
18
|
readonly mouseTrackerEnd: "mouseTrackerEnd";
|
|
19
19
|
readonly openDiffViewer: "openDiffViewer";
|
|
20
20
|
readonly duplicateDragStart: "duplicateDragStart";
|
|
21
|
+
readonly dragSelectStart: "dragSelectStart";
|
|
21
22
|
};
|
|
22
23
|
type InternalActionType = ValuesType<typeof InternalActionType>;
|
|
23
24
|
type InternalActionMap = {
|
|
@@ -55,6 +56,10 @@ type InternalActionMap = {
|
|
|
55
56
|
tableIds: string[];
|
|
56
57
|
memoIds: string[];
|
|
57
58
|
} | void;
|
|
59
|
+
[InternalActionType.dragSelectStart]: {
|
|
60
|
+
x: number;
|
|
61
|
+
y: number;
|
|
62
|
+
};
|
|
58
63
|
};
|
|
59
64
|
type ListenerRecord = {
|
|
60
65
|
[P in keyof InternalActionMap]: (action: Action<P, InternalActionMap>) => void;
|
|
@@ -181,4 +186,16 @@ export declare const duplicateDragStartAction: {
|
|
|
181
186
|
toString(): string;
|
|
182
187
|
type: string;
|
|
183
188
|
};
|
|
189
|
+
export declare const dragSelectStartAction: {
|
|
190
|
+
(payload: {
|
|
191
|
+
x: number;
|
|
192
|
+
y: number;
|
|
193
|
+
}): AnyAction<{
|
|
194
|
+
x: number;
|
|
195
|
+
y: number;
|
|
196
|
+
}>;
|
|
197
|
+
toString(): string;
|
|
198
|
+
type: string;
|
|
199
|
+
};
|
|
184
200
|
export {};
|
|
201
|
+
//# sourceMappingURL=emitter.d.ts.map
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DocumentPngOptions } from '../../services/export-png';
|
|
1
2
|
type ExportOptions = {
|
|
2
3
|
fileName: string;
|
|
3
4
|
};
|
|
@@ -5,5 +6,14 @@ type ExportFileCallback = (blob: Blob, options: ExportOptions) => void;
|
|
|
5
6
|
export declare function setExportFileCallback(callback: ExportFileCallback | null): void;
|
|
6
7
|
export declare function exportJSON(json: string, name?: string): void;
|
|
7
8
|
export declare function exportSchemaSQL(sql: string, name?: string): void;
|
|
8
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Writes the whole document out as an image, at the zoom the author is reading
|
|
11
|
+
* it at. The scene is rendered again off screen rather than captured, so the
|
|
12
|
+
* file holds the whole document however far it was scrolled away from.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* exportPNG({ doc: toJson(store.state), theme, toWidth, zoomLevel }, databaseName);
|
|
16
|
+
*/
|
|
17
|
+
export declare function exportPNG(options: DocumentPngOptions, name?: string): Promise<void>;
|
|
9
18
|
export {};
|
|
19
|
+
//# sourceMappingURL=exportFile.d.ts.map
|
|
@@ -13,3 +13,4 @@ export declare function importDBML({ store, emitter }: AppContext): void;
|
|
|
13
13
|
export declare function importAML({ store, emitter }: AppContext): void;
|
|
14
14
|
export declare function importDiffJSON({ emitter }: AppContext): void;
|
|
15
15
|
export {};
|
|
16
|
+
//# sourceMappingURL=importFile.d.ts.map
|
package/dist/utils/focus.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { FocusTable, FocusType, SharedFocus } from '../engine/modules/editor/sta
|
|
|
2
2
|
export declare function isFocus(focusTable: Pick<FocusTable, 'tableId' | 'columnId' | 'focusType'> | null, focusType: FocusType, tableId: string, columnId?: string | null): boolean;
|
|
3
3
|
export declare const isSelectColumn: (focusTable: FocusTable | null, tableId: string, columnId: string) => boolean;
|
|
4
4
|
export declare function isEdit(focusTable: FocusTable | null, focusType: FocusType, tableId: string, columnId?: string | null): boolean;
|
|
5
|
-
export declare function lastCursorFocus(input: HTMLInputElement): void;
|
|
5
|
+
export declare function lastCursorFocus(input: HTMLInputElement | HTMLTextAreaElement): void;
|
|
6
6
|
export declare const toSharedFocus: (focusTable: FocusTable | null) => SharedFocus | null;
|
|
7
7
|
export declare const toSharedFocusKey: (focus: SharedFocus | null) => string;
|
|
8
|
+
//# sourceMappingURL=focus.d.ts.map
|
|
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
|
|
|
2
2
|
import { FormatTableOptions } from './utils';
|
|
3
3
|
export declare function createCode(state: RootState): string;
|
|
4
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
5
|
+
//# sourceMappingURL=aml.d.ts.map
|
|
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
|
|
|
2
2
|
import { FormatTableOptions } from './utils';
|
|
3
3
|
export declare function createCode(state: RootState): string;
|
|
4
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
5
|
+
//# sourceMappingURL=csharp.d.ts.map
|
|
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
|
|
|
2
2
|
import { FormatTableOptions } from './utils';
|
|
3
3
|
export declare function createCode(state: RootState): string;
|
|
4
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
5
|
+
//# sourceMappingURL=dbml.d.ts.map
|
|
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
|
|
|
2
2
|
import { FormatTableOptions } from './utils';
|
|
3
3
|
export declare function createCode(state: RootState): string;
|
|
4
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
5
|
+
//# sourceMappingURL=drizzle.d.ts.map
|
|
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
|
|
|
2
2
|
import { FormatTableOptions } from './utils';
|
|
3
3
|
export declare function createCode(state: RootState): string;
|
|
4
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
5
|
+
//# sourceMappingURL=go.d.ts.map
|
|
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
|
|
|
2
2
|
import { FormatTableOptions } from './utils';
|
|
3
3
|
export declare function createCode(state: RootState): string;
|
|
4
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
5
|
+
//# sourceMappingURL=graphql.d.ts.map
|
|
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
|
|
|
2
2
|
import { Table } from '../../internal-types';
|
|
3
3
|
export declare function createGeneratorCode(state: RootState): string;
|
|
4
4
|
export declare function createGeneratorCodeTable(state: RootState, table: Table): string;
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
|
|
|
2
2
|
import { FormatTableOptions } from './utils';
|
|
3
3
|
export declare function createCode(state: RootState): string;
|
|
4
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
5
|
+
//# sourceMappingURL=java.d.ts.map
|
|
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
|
|
|
2
2
|
import { FormatTableOptions } from './utils';
|
|
3
3
|
export declare function createCode(state: RootState): string;
|
|
4
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
5
|
+
//# sourceMappingURL=jpa.d.ts.map
|
|
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
|
|
|
2
2
|
import { FormatTableOptions } from './utils';
|
|
3
3
|
export declare function createCode(state: RootState): string;
|
|
4
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
5
|
+
//# sourceMappingURL=kotlin.d.ts.map
|
|
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
|
|
|
2
2
|
import { FormatTableOptions } from './utils';
|
|
3
3
|
export declare function createCode(state: RootState): string;
|
|
4
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
5
|
+
//# sourceMappingURL=scala.d.ts.map
|
|
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
|
|
|
2
2
|
import { FormatTableOptions } from './utils';
|
|
3
3
|
export declare function createCode(state: RootState): string;
|
|
4
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
5
|
+
//# sourceMappingURL=sequelize.d.ts.map
|
|
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
|
|
|
2
2
|
import { FormatTableOptions } from './utils';
|
|
3
3
|
export declare function createCode(state: RootState): string;
|
|
4
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
5
|
+
//# sourceMappingURL=sqlalchemy.d.ts.map
|
|
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
|
|
|
2
2
|
import { FormatTableOptions } from './utils';
|
|
3
3
|
export declare function createCode(state: RootState): string;
|
|
4
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
5
|
+
//# sourceMappingURL=typeorm.d.ts.map
|
|
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
|
|
|
2
2
|
import { FormatTableOptions } from './utils';
|
|
3
3
|
export declare function createCode(state: RootState): string;
|
|
4
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
5
|
+
//# sourceMappingURL=typescript.d.ts.map
|
|
@@ -17,3 +17,4 @@ export declare const hasNRelationship: (value: number) => boolean;
|
|
|
17
17
|
export declare function getPrimitiveType(dataType: string, database: number): PrimitiveType;
|
|
18
18
|
export declare function getDataTypeHints(database: number): DataTypeHint[];
|
|
19
19
|
export declare function getNameCase(name: string, nameCase: number): string;
|
|
20
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
export declare const keyup$: Observable<KeyboardEvent>;
|
|
3
|
+
export declare const mousedown$: Observable<MouseEvent>;
|
|
4
|
+
export declare const mousemove$: Observable<MouseEvent>;
|
|
5
|
+
export declare const mouseup$: Observable<MouseEvent>;
|
|
6
|
+
export declare const touchstart$: Observable<TouchEvent>;
|
|
7
|
+
export declare const touchmove$: Observable<TouchEvent>;
|
|
8
|
+
export declare const touchend$: Observable<TouchEvent>;
|
|
9
|
+
export declare const animationFrames$: Observable<{
|
|
9
10
|
timestamp: number;
|
|
10
11
|
elapsed: number;
|
|
11
12
|
}>;
|
|
12
|
-
export declare const moveStart$:
|
|
13
|
-
export declare const moveEnd$:
|
|
13
|
+
export declare const moveStart$: Observable<MouseEvent | TouchEvent>;
|
|
14
|
+
export declare const moveEnd$: Observable<MouseEvent | TouchEvent>;
|
|
14
15
|
export type DragMove = {
|
|
15
16
|
movementX: number;
|
|
16
17
|
movementY: number;
|
|
@@ -18,7 +19,7 @@ export type DragMove = {
|
|
|
18
19
|
y: number;
|
|
19
20
|
event: MouseEvent | TouchEvent;
|
|
20
21
|
};
|
|
21
|
-
export declare const move$:
|
|
22
|
+
export declare const move$: Observable<{
|
|
22
23
|
event: MouseEvent;
|
|
23
24
|
movementX: number;
|
|
24
25
|
movementY: number;
|
|
@@ -31,7 +32,7 @@ export declare const move$: import('rxjs').Observable<{
|
|
|
31
32
|
x: number;
|
|
32
33
|
y: number;
|
|
33
34
|
}>;
|
|
34
|
-
export declare const drag$:
|
|
35
|
+
export declare const drag$: Observable<{
|
|
35
36
|
event: MouseEvent;
|
|
36
37
|
movementX: number;
|
|
37
38
|
movementY: number;
|
|
@@ -44,3 +45,4 @@ export declare const drag$: import('rxjs').Observable<{
|
|
|
44
45
|
x: number;
|
|
45
46
|
y: number;
|
|
46
47
|
}>;
|
|
48
|
+
//# sourceMappingURL=globalEventObservable.d.ts.map
|
package/dist/utils/icon.d.ts
CHANGED
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { IconNode } from 'lucide';
|
|
2
|
+
/**
|
|
3
|
+
* An icon node as an svg data uri, which is what css cursor takes. The glyph
|
|
4
|
+
* is drawn twice, the halo under the ink, with the caps and joins Icon.tsx puts
|
|
5
|
+
* on its svg so the cursor matches the menu item.
|
|
6
|
+
*/
|
|
7
|
+
export declare function toCursorImage(node: IconNode, isDarkMode: boolean): string;
|
|
8
|
+
/** The draw-relationship cursor for a relationship type, or null for a type with no glyph. */
|
|
9
|
+
export declare function getRelationshipIcon(relationshipType: number, isDarkMode: boolean): string | null;
|
|
10
|
+
//# sourceMappingURL=icon.d.ts.map
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { EntityMeta, Memo, Point, Settings, Table } from '../internal-types';
|
|
2
2
|
export declare const nextZIndex: (tables: Table[], memos: Memo[]) => number;
|
|
3
|
-
export declare function nextPoint(
|
|
3
|
+
export declare function nextPoint(settings: Settings, tables: Table[], memos: Memo[]): Point;
|
|
4
4
|
export declare const toList: <T>(ids: string[], entities: Record<string, T>) => Array<T>;
|
|
5
5
|
export declare function getDefaultEntityMeta(): EntityMeta;
|
|
6
6
|
export declare function safeRange(a: number, b: number): number[];
|
|
7
7
|
export declare function pascalCase(value?: string): string;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -26,11 +26,26 @@ export declare const KeyBindingName: {
|
|
|
26
26
|
readonly tableProperties: "tableProperties";
|
|
27
27
|
readonly zoomIn: "zoomIn";
|
|
28
28
|
readonly zoomOut: "zoomOut";
|
|
29
|
+
readonly zoomReset: "zoomReset";
|
|
30
|
+
readonly handTool: "handTool";
|
|
31
|
+
readonly zenMode: "zenMode";
|
|
29
32
|
};
|
|
30
33
|
export type KeyBindingName = ValuesType<typeof KeyBindingName>;
|
|
31
|
-
export declare const KeyBindingNameList: ("undo" | "redo" | "selectAllColumn" | "search" | "stop" | "edit" | "addMemo" | "addTable" | "removeTable" | "addColumn" | "removeColumn" | "primaryKey" | "selectAllTable" | "relationshipZeroOne" | "relationshipZeroN" | "relationshipOneOnly" | "relationshipOneN" | "tableProperties" | "zoomIn" | "zoomOut")[];
|
|
34
|
+
export declare const KeyBindingNameList: ("undo" | "redo" | "selectAllColumn" | "search" | "stop" | "edit" | "addMemo" | "addTable" | "removeTable" | "addColumn" | "removeColumn" | "primaryKey" | "selectAllTable" | "relationshipZeroOne" | "relationshipZeroN" | "relationshipOneOnly" | "relationshipOneN" | "tableProperties" | "zoomIn" | "zoomOut" | "zoomReset" | "handTool" | "zenMode")[];
|
|
32
35
|
export type KeyBindingMap = Record<KeyBindingName, ShortcutOption[]>;
|
|
33
36
|
export declare const createKeyBindingMap: () => KeyBindingMap;
|
|
34
37
|
export declare function shortcutToTuple(shortcut?: string): KeyBindingPress[];
|
|
35
38
|
export declare function isMod(event: MouseEvent | TouchEvent | KeyboardEvent): boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Whether the press still belongs to an IME composition. The browser finishes
|
|
41
|
+
* the composition on its own, so a binding that fired here would spend a key
|
|
42
|
+
* the text editor was owed and leave a half-formed syllable behind.
|
|
43
|
+
*/
|
|
44
|
+
export declare function isComposing(event: KeyboardEvent): boolean;
|
|
45
|
+
/**
|
|
46
|
+
* What a button says it is: its name and the first chord bound to it, since a
|
|
47
|
+
* command can carry several and a tooltip naming all of them reads as noise.
|
|
48
|
+
*/
|
|
49
|
+
export declare function toShortcutTitle(keyBindingMap: KeyBindingMap, name: string, keyBindingName: KeyBindingName): string;
|
|
36
50
|
export declare function simpleShortcutToString(shortcut?: string): string;
|
|
51
|
+
//# sourceMappingURL=index.d.ts.map
|
package/dist/utils/promise.d.ts
CHANGED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
type Callback = (...args: any[]) => any;
|
|
2
|
+
/** Calls an optional callback and keeps its exception on the console rather than in the caller. */
|
|
3
|
+
export declare function safeCallback<F extends Callback>(callback?: F | void, ...args: Parameters<F>): any;
|
|
4
|
+
export {};
|
|
5
|
+
//# sourceMappingURL=safeCallback.d.ts.map
|
|
@@ -2,3 +2,4 @@ import { ERDEditorSchemaV3 } from '@dineug/erd-editor-schema';
|
|
|
2
2
|
import { EngineContext } from '../../engine/context';
|
|
3
3
|
import { AMLModel } from './types';
|
|
4
4
|
export declare function convertToSchema(model: AMLModel, ctx: EngineContext, database: number): ERDEditorSchemaV3;
|
|
5
|
+
//# sourceMappingURL=convert.d.ts.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { AMLModel } from './types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* inline members take precedence over anything the name would resolve to.
|
|
3
|
+
* enumValues carries the inline members, which never reach model.types. Both
|
|
4
|
+
* entry points take them as a trailing optional argument, and inline members
|
|
5
|
+
* take precedence over anything the name would resolve to.
|
|
7
6
|
*/
|
|
8
7
|
export declare function resolveDataType(typeName: string, database: number, model: AMLModel, enumValues?: string[]): string;
|
|
9
8
|
/**
|
|
10
|
-
* Keeps the members where the column type cannot hold them. Pass
|
|
11
|
-
* drop it on the dialects whose
|
|
9
|
+
* Keeps the members where the column type cannot hold them. Pass database to
|
|
10
|
+
* drop it on the dialects whose ENUM(...) column already spells them out.
|
|
12
11
|
*/
|
|
13
12
|
export declare function enumCommentSuffix(typeName: string, model: AMLModel, database: number, enumValues?: string[]): string;
|
|
13
|
+
//# sourceMappingURL=dataType.d.ts.map
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { ERDEditorSchemaV3 } from '@dineug/erd-editor-schema';
|
|
2
2
|
import { EngineContext } from '../../engine/context';
|
|
3
3
|
export declare function schemaAMLParserToSchemaJson(aml: string, ctx: EngineContext, prepare?: (schema: ERDEditorSchemaV3) => ERDEditorSchemaV3): string;
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -10,11 +10,9 @@ export declare const TokenKind: {
|
|
|
10
10
|
readonly newline: 9;
|
|
11
11
|
};
|
|
12
12
|
/**
|
|
13
|
-
* AML is indentation-sensitive, so every token carries
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* the stream always starts with a synthetic one (`value: ''`, `line: 0`), so
|
|
17
|
-
* `parser.ts` reads the first line's depth the same way as every other line's.
|
|
13
|
+
* AML is indentation-sensitive, so every token carries its line's depth. A
|
|
14
|
+
* newline token opens the line that follows and holds that line's depth, and a
|
|
15
|
+
* synthetic one starts the stream so the first line reads like every other.
|
|
18
16
|
*/
|
|
19
17
|
export type Token = {
|
|
20
18
|
kind: number;
|
|
@@ -23,3 +21,4 @@ export type Token = {
|
|
|
23
21
|
depth: number;
|
|
24
22
|
};
|
|
25
23
|
export declare function tokenize(source: string): Token[];
|
|
24
|
+
//# sourceMappingURL=tokenizer.d.ts.map
|