@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
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Rr as e, Wt as t, b as n, g as r, jn as i, l as a, m as o, n as s, on as c, q as l, r as u, t as d, ui as f } from "../schemaGCService--wGet5O7.js";
|
|
2
|
+
import { isEmpty as p } from "es-toolkit/compat";
|
|
3
|
+
import { omit as m } from "es-toolkit";
|
|
4
|
+
import { Observable as h, Subject as g, debounceTime as _, map as v } from "rxjs";
|
|
5
|
+
//#region src/engine/replication-store.ts
|
|
6
|
+
var y = { change: "change" };
|
|
7
|
+
function b(b) {
|
|
8
|
+
let x = /* @__PURE__ */ new Set(), S = r(b), C = a(S, !1);
|
|
9
|
+
C.dispatchSync(c({
|
|
10
|
+
width: 0,
|
|
11
|
+
height: 0
|
|
12
|
+
}));
|
|
13
|
+
let w = u(C), T = new g(), E = new h((e) => C.subscribe((t) => e.next(t))).pipe(o(n), _(200)), D = /* @__PURE__ */ new Set(), O = new d(), k = (e) => (D.has(e) || D.add(e), () => {
|
|
14
|
+
D.delete(e);
|
|
15
|
+
}), A = (e, n) => {
|
|
16
|
+
D.forEach((r) => {
|
|
17
|
+
let i = Reflect.get(r, e);
|
|
18
|
+
t(i, n);
|
|
19
|
+
});
|
|
20
|
+
}, j = (t) => {
|
|
21
|
+
let n = e(t);
|
|
22
|
+
C.dispatchSync(l(p(n) ? "{}" : n)), O.run(f(C.state)).then((e) => {
|
|
23
|
+
(e.tableIds.length || e.tableColumnIds.length || e.relationshipIds.length || e.indexIds.length || e.indexColumnIds.length || e.memoIds.length) && (s(C.state, e), C.dispatchSync(i()));
|
|
24
|
+
});
|
|
25
|
+
}, M = (e) => {
|
|
26
|
+
T.next([e].flat());
|
|
27
|
+
};
|
|
28
|
+
return x.add(E.subscribe(() => A(y.change, void 0))).add(T.pipe(o(n), v((e) => e.map((e) => m(e, ["tags"])))).subscribe(C.dispatchSync)), Object.freeze({
|
|
29
|
+
get value() {
|
|
30
|
+
return f(C.state);
|
|
31
|
+
},
|
|
32
|
+
on: k,
|
|
33
|
+
setInitialValue: j,
|
|
34
|
+
dispatch: (e) => {
|
|
35
|
+
queueMicrotask(() => M(e));
|
|
36
|
+
},
|
|
37
|
+
dispatchSync: M,
|
|
38
|
+
destroy: () => {
|
|
39
|
+
Array.from(x).forEach((e) => e.unsubscribe()), x.clear(), D.clear(), C.destroy(), w.destroy();
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
//#endregion
|
|
44
|
+
export { b as createReplicationStore };
|
|
@@ -20,6 +20,9 @@ export declare const ActionType: {
|
|
|
20
20
|
readonly focusMoveTable: "editor.focusMoveTable";
|
|
21
21
|
readonly editTable: "editor.editTable";
|
|
22
22
|
readonly editTableEnd: "editor.editTableEnd";
|
|
23
|
+
readonly editMemo: "editor.editMemo";
|
|
24
|
+
readonly editMemoEnd: "editor.editMemoEnd";
|
|
25
|
+
readonly scrollMemo: "editor.scrollMemo";
|
|
23
26
|
readonly selectAllColumn: "editor.selectAllColumn";
|
|
24
27
|
readonly drawStartRelationship: "editor.drawStartRelationship";
|
|
25
28
|
readonly drawStartAddRelationship: "editor.drawStartAddRelationship";
|
|
@@ -28,6 +31,8 @@ export declare const ActionType: {
|
|
|
28
31
|
readonly hoverColumnMap: "editor.hoverColumnMap";
|
|
29
32
|
readonly hoverRelationshipMap: "editor.hoverRelationshipMap";
|
|
30
33
|
readonly changeOpenMap: "editor.changeOpenMap";
|
|
34
|
+
readonly changeHandTool: "editor.changeHandTool";
|
|
35
|
+
readonly changeZenMode: "editor.changeZenMode";
|
|
31
36
|
readonly dragstartColumn: "editor.dragstartColumn";
|
|
32
37
|
readonly dragendColumn: "editor.dragendColumn";
|
|
33
38
|
readonly sharedMouseTracker: "editor.sharedMouseTracker";
|
|
@@ -78,6 +83,15 @@ export type ActionMap = {
|
|
|
78
83
|
};
|
|
79
84
|
[ActionType.editTable]: void;
|
|
80
85
|
[ActionType.editTableEnd]: void;
|
|
86
|
+
[ActionType.editMemo]: {
|
|
87
|
+
id: string;
|
|
88
|
+
};
|
|
89
|
+
[ActionType.editMemoEnd]: void;
|
|
90
|
+
[ActionType.scrollMemo]: {
|
|
91
|
+
id: string;
|
|
92
|
+
/** How far down its body the memo is shown from, in body px. */
|
|
93
|
+
scrollTop: number;
|
|
94
|
+
};
|
|
81
95
|
[ActionType.selectAllColumn]: void;
|
|
82
96
|
[ActionType.drawStartRelationship]: {
|
|
83
97
|
relationshipType: number;
|
|
@@ -97,6 +111,12 @@ export type ActionMap = {
|
|
|
97
111
|
relationshipIds: string[];
|
|
98
112
|
};
|
|
99
113
|
[ActionType.changeOpenMap]: Record<string, boolean>;
|
|
114
|
+
[ActionType.changeHandTool]: {
|
|
115
|
+
value: boolean;
|
|
116
|
+
};
|
|
117
|
+
[ActionType.changeZenMode]: {
|
|
118
|
+
value: boolean;
|
|
119
|
+
};
|
|
100
120
|
[ActionType.dragstartColumn]: {
|
|
101
121
|
tableId: string;
|
|
102
122
|
columnIds: string[];
|
|
@@ -125,3 +145,4 @@ export type ActionMap = {
|
|
|
125
145
|
};
|
|
126
146
|
};
|
|
127
147
|
export type ReducerType<T extends keyof ActionMap> = Reducer<RootState, T, ActionMap, EngineContext>;
|
|
148
|
+
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -121,6 +121,31 @@ export declare const editTableEndAction: {
|
|
|
121
121
|
toString(): string;
|
|
122
122
|
type: string;
|
|
123
123
|
};
|
|
124
|
+
export declare const editMemoAction: {
|
|
125
|
+
(payload: {
|
|
126
|
+
id: string;
|
|
127
|
+
}): import('@dineug/r-html').AnyAction<{
|
|
128
|
+
id: string;
|
|
129
|
+
}>;
|
|
130
|
+
toString(): string;
|
|
131
|
+
type: string;
|
|
132
|
+
};
|
|
133
|
+
export declare const editMemoEndAction: {
|
|
134
|
+
(payload: void): import('@dineug/r-html').AnyAction<void>;
|
|
135
|
+
toString(): string;
|
|
136
|
+
type: string;
|
|
137
|
+
};
|
|
138
|
+
export declare const scrollMemoAction: {
|
|
139
|
+
(payload: {
|
|
140
|
+
id: string;
|
|
141
|
+
scrollTop: number;
|
|
142
|
+
}): import('@dineug/r-html').AnyAction<{
|
|
143
|
+
id: string;
|
|
144
|
+
scrollTop: number;
|
|
145
|
+
}>;
|
|
146
|
+
toString(): string;
|
|
147
|
+
type: string;
|
|
148
|
+
};
|
|
124
149
|
export declare const selectAllColumnAction: {
|
|
125
150
|
(payload: void): import('@dineug/r-html').AnyAction<void>;
|
|
126
151
|
toString(): string;
|
|
@@ -183,6 +208,24 @@ export declare const changeOpenMapAction: {
|
|
|
183
208
|
toString(): string;
|
|
184
209
|
type: string;
|
|
185
210
|
};
|
|
211
|
+
export declare const changeHandToolAction: {
|
|
212
|
+
(payload: {
|
|
213
|
+
value: boolean;
|
|
214
|
+
}): import('@dineug/r-html').AnyAction<{
|
|
215
|
+
value: boolean;
|
|
216
|
+
}>;
|
|
217
|
+
toString(): string;
|
|
218
|
+
type: string;
|
|
219
|
+
};
|
|
220
|
+
export declare const changeZenModeAction: {
|
|
221
|
+
(payload: {
|
|
222
|
+
value: boolean;
|
|
223
|
+
}): import('@dineug/r-html').AnyAction<{
|
|
224
|
+
value: boolean;
|
|
225
|
+
}>;
|
|
226
|
+
toString(): string;
|
|
227
|
+
type: string;
|
|
228
|
+
};
|
|
186
229
|
export declare const dragstartColumnAction: {
|
|
187
230
|
(payload: {
|
|
188
231
|
tableId: string;
|
|
@@ -281,6 +324,9 @@ export declare const editorReducers: {
|
|
|
281
324
|
"editor.focusMoveTable": ReducerType<"editor.focusMoveTable">;
|
|
282
325
|
"editor.editTable": ReducerType<"editor.editTable">;
|
|
283
326
|
"editor.editTableEnd": ReducerType<"editor.editTableEnd">;
|
|
327
|
+
"editor.editMemo": ReducerType<"editor.editMemo">;
|
|
328
|
+
"editor.editMemoEnd": ReducerType<"editor.editMemoEnd">;
|
|
329
|
+
"editor.scrollMemo": ReducerType<"editor.scrollMemo">;
|
|
284
330
|
"editor.selectAllColumn": ReducerType<"editor.selectAllColumn">;
|
|
285
331
|
"editor.drawStartRelationship": ReducerType<"editor.drawStartRelationship">;
|
|
286
332
|
"editor.drawStartAddRelationship": ReducerType<"editor.drawStartAddRelationship">;
|
|
@@ -289,6 +335,8 @@ export declare const editorReducers: {
|
|
|
289
335
|
"editor.hoverColumnMap": ReducerType<"editor.hoverColumnMap">;
|
|
290
336
|
"editor.hoverRelationshipMap": ReducerType<"editor.hoverRelationshipMap">;
|
|
291
337
|
"editor.changeOpenMap": ReducerType<"editor.changeOpenMap">;
|
|
338
|
+
"editor.changeHandTool": ReducerType<"editor.changeHandTool">;
|
|
339
|
+
"editor.changeZenMode": ReducerType<"editor.changeZenMode">;
|
|
292
340
|
"editor.dragstartColumn": ReducerType<"editor.dragstartColumn">;
|
|
293
341
|
"editor.dragendColumn": ReducerType<"editor.dragendColumn">;
|
|
294
342
|
"editor.sharedMouseTracker": ReducerType<"editor.sharedMouseTracker">;
|
|
@@ -420,6 +468,31 @@ export declare const actions: {
|
|
|
420
468
|
toString(): string;
|
|
421
469
|
type: string;
|
|
422
470
|
};
|
|
471
|
+
editMemoAction: {
|
|
472
|
+
(payload: {
|
|
473
|
+
id: string;
|
|
474
|
+
}): import('@dineug/r-html').AnyAction<{
|
|
475
|
+
id: string;
|
|
476
|
+
}>;
|
|
477
|
+
toString(): string;
|
|
478
|
+
type: string;
|
|
479
|
+
};
|
|
480
|
+
editMemoEndAction: {
|
|
481
|
+
(payload: void): import('@dineug/r-html').AnyAction<void>;
|
|
482
|
+
toString(): string;
|
|
483
|
+
type: string;
|
|
484
|
+
};
|
|
485
|
+
scrollMemoAction: {
|
|
486
|
+
(payload: {
|
|
487
|
+
id: string;
|
|
488
|
+
scrollTop: number;
|
|
489
|
+
}): import('@dineug/r-html').AnyAction<{
|
|
490
|
+
id: string;
|
|
491
|
+
scrollTop: number;
|
|
492
|
+
}>;
|
|
493
|
+
toString(): string;
|
|
494
|
+
type: string;
|
|
495
|
+
};
|
|
423
496
|
selectAllColumnAction: {
|
|
424
497
|
(payload: void): import('@dineug/r-html').AnyAction<void>;
|
|
425
498
|
toString(): string;
|
|
@@ -482,6 +555,24 @@ export declare const actions: {
|
|
|
482
555
|
toString(): string;
|
|
483
556
|
type: string;
|
|
484
557
|
};
|
|
558
|
+
changeHandToolAction: {
|
|
559
|
+
(payload: {
|
|
560
|
+
value: boolean;
|
|
561
|
+
}): import('@dineug/r-html').AnyAction<{
|
|
562
|
+
value: boolean;
|
|
563
|
+
}>;
|
|
564
|
+
toString(): string;
|
|
565
|
+
type: string;
|
|
566
|
+
};
|
|
567
|
+
changeZenModeAction: {
|
|
568
|
+
(payload: {
|
|
569
|
+
value: boolean;
|
|
570
|
+
}): import('@dineug/r-html').AnyAction<{
|
|
571
|
+
value: boolean;
|
|
572
|
+
}>;
|
|
573
|
+
toString(): string;
|
|
574
|
+
type: string;
|
|
575
|
+
};
|
|
485
576
|
dragstartColumnAction: {
|
|
486
577
|
(payload: {
|
|
487
578
|
tableId: string;
|
|
@@ -565,3 +656,4 @@ export declare const actions: {
|
|
|
565
656
|
type: string;
|
|
566
657
|
};
|
|
567
658
|
};
|
|
659
|
+
//# sourceMappingURL=atom.actions.d.ts.map
|
|
@@ -6,11 +6,29 @@ export type Editor = {
|
|
|
6
6
|
hasUndo: boolean;
|
|
7
7
|
hasRedo: boolean;
|
|
8
8
|
viewport: Viewport;
|
|
9
|
+
/**
|
|
10
|
+
* Whether a loaded origin still waits to be pulled into the content's travel
|
|
11
|
+
* because the host had not measured a screen when the document arrived. The
|
|
12
|
+
* first changeViewport that reports one applies the pull and clears this.
|
|
13
|
+
*/
|
|
14
|
+
scrollPullPending: boolean;
|
|
9
15
|
focusTable: FocusTable | null;
|
|
16
|
+
/** The memo whose body an overlay editor is open on, and null while none is. */
|
|
17
|
+
editMemoId: string | null;
|
|
18
|
+
/**
|
|
19
|
+
* How far down its body each memo is shown from, by memo id. The scene and
|
|
20
|
+
* the overlay editor both read it, so the lines a body shows survive the
|
|
21
|
+
* editor opening and closing over it. Local to this client, never the file.
|
|
22
|
+
*/
|
|
23
|
+
memoScrollTopMap: Record<string, number>;
|
|
10
24
|
drawRelationship: DrawRelationship | null;
|
|
11
25
|
hoverColumnMap: Record<string, boolean>;
|
|
12
26
|
hoverRelationshipMap: Record<string, boolean>;
|
|
13
27
|
openMap: Record<string, boolean>;
|
|
28
|
+
/** Whether the pointer pans the canvas instead of reaching the scene under it. */
|
|
29
|
+
handTool: boolean;
|
|
30
|
+
/** Whether the editor is drawn without its scrollbars, its map and its toolbar. */
|
|
31
|
+
zenMode: boolean;
|
|
14
32
|
draggableColumn: DraggableColumn | null;
|
|
15
33
|
draggingColumnMap: Record<string, boolean>;
|
|
16
34
|
sharedMouseTrackerMap: Record<string, SharedMouseTracker>;
|
|
@@ -93,4 +111,17 @@ export declare const MoveKey: {
|
|
|
93
111
|
};
|
|
94
112
|
export type MoveKey = ValuesType<typeof MoveKey>;
|
|
95
113
|
export declare const hasMoveKeys: (value: string) => boolean;
|
|
114
|
+
/**
|
|
115
|
+
* Whether the memo body editor owns the keyboard. Its textarea covers no grid,
|
|
116
|
+
* so the traversal and edit keys a focused table would otherwise answer belong
|
|
117
|
+
* to the caret for as long as it is open.
|
|
118
|
+
*/
|
|
119
|
+
export declare const isEditingMemo: ({ editMemoId }: Editor) => boolean;
|
|
120
|
+
/**
|
|
121
|
+
* Whether a live text editor owns the keyboard. A memo body and a table cell
|
|
122
|
+
* both open a real input over the scene, so a canvas shortcut stands down for
|
|
123
|
+
* either of them rather than for the cell alone.
|
|
124
|
+
*/
|
|
125
|
+
export declare const isEditingText: (editor: Editor) => boolean;
|
|
96
126
|
export declare const createEditor: () => Editor;
|
|
127
|
+
//# sourceMappingURL=state.d.ts.map
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { AnyAction } from '@dineug/r-html';
|
|
2
|
-
import { ClipboardColumn, ClipboardMemo, ClipboardTable, PlacementPoint } from '../../../../utils/table-clipboard';
|
|
2
|
+
import { ClipboardColumn, ClipboardIndex, ClipboardMemo, ClipboardRelationship, ClipboardTable, PlacementPoint } from '../../../../utils/table-clipboard';
|
|
3
3
|
export type CreateEntityInput = {
|
|
4
4
|
tables: ClipboardTable[];
|
|
5
5
|
columns: ClipboardColumn[];
|
|
6
6
|
memos: ClipboardMemo[];
|
|
7
|
+
relationships: ClipboardRelationship[];
|
|
8
|
+
indexes: ClipboardIndex[];
|
|
7
9
|
};
|
|
8
10
|
export type CreateEntityActions = {
|
|
9
11
|
actions: AnyAction[];
|
|
10
12
|
tableIds: string[];
|
|
11
13
|
memoIds: string[];
|
|
12
14
|
};
|
|
13
|
-
export declare function toCreateEntityActions({ tables, columns, memos }: CreateEntityInput, placement: Map<string, PlacementPoint>): CreateEntityActions;
|
|
15
|
+
export declare function toCreateEntityActions({ tables, columns, memos, relationships, indexes }: CreateEntityInput, placement: Map<string, PlacementPoint>): CreateEntityActions;
|
|
16
|
+
//# sourceMappingURL=duplicate.d.ts.map
|
|
@@ -13,3 +13,4 @@ export declare function arrowDown(state: RootState, payload: Payload): void;
|
|
|
13
13
|
export declare function arrowLeft(state: RootState, payload: Payload): void;
|
|
14
14
|
export declare function arrowRight(state: RootState, payload: Payload): void;
|
|
15
15
|
export {};
|
|
16
|
+
//# sourceMappingURL=focus.d.ts.map
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export declare function appendSelectColumns(columnIds: string[], columnId: string): string[];
|
|
2
2
|
export declare function selectRangeColumns(columnIds: string[], fromColumnId: string | null, toColumnId: string): string[];
|
|
3
3
|
export declare function appendSelectRangeColumns(columnIds: string[], selectColumnIds: string[], fromColumnId: string | null, toColumnId: string): string[];
|
|
4
|
+
//# sourceMappingURL=selectRangeColumn.d.ts.map
|
|
@@ -4,7 +4,6 @@ import { RootState } from '../../state';
|
|
|
4
4
|
import { ValuesType } from '../../../internal-types';
|
|
5
5
|
export declare const ActionType: {
|
|
6
6
|
readonly changeDatabaseName: "settings.changeDatabaseName";
|
|
7
|
-
readonly resize: "settings.resize";
|
|
8
7
|
readonly changeZoomLevel: "settings.changeZoomLevel";
|
|
9
8
|
readonly streamZoomLevel: "settings.streamZoomLevel";
|
|
10
9
|
readonly scrollTo: "settings.scrollTo";
|
|
@@ -27,10 +26,6 @@ export type ActionMap = {
|
|
|
27
26
|
[ActionType.changeDatabaseName]: {
|
|
28
27
|
value: string;
|
|
29
28
|
};
|
|
30
|
-
[ActionType.resize]: {
|
|
31
|
-
width: number;
|
|
32
|
-
height: number;
|
|
33
|
-
};
|
|
34
29
|
[ActionType.changeZoomLevel]: {
|
|
35
30
|
value: number;
|
|
36
31
|
};
|
|
@@ -38,8 +33,8 @@ export type ActionMap = {
|
|
|
38
33
|
value: number;
|
|
39
34
|
};
|
|
40
35
|
[ActionType.scrollTo]: {
|
|
41
|
-
|
|
42
|
-
|
|
36
|
+
originX: number;
|
|
37
|
+
originY: number;
|
|
43
38
|
};
|
|
44
39
|
[ActionType.streamScrollTo]: {
|
|
45
40
|
movementX: number;
|
|
@@ -86,3 +81,4 @@ export type ActionMap = {
|
|
|
86
81
|
};
|
|
87
82
|
};
|
|
88
83
|
export type ReducerType<T extends keyof ActionMap> = Reducer<RootState, T, ActionMap, EngineContext>;
|
|
84
|
+
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Viewport } from '../editor/state';
|
|
2
|
+
import { RootState } from '../../state';
|
|
3
|
+
import { Point } from '../../../internal-types';
|
|
4
|
+
import { ActionMap, ActionType, ReducerType } from './actions';
|
|
5
|
+
import { ScrollRange } from './scrollRange';
|
|
6
|
+
export type { ScrollRange } from './scrollRange';
|
|
2
7
|
export declare const changeDatabaseNameAction: {
|
|
3
8
|
(payload: {
|
|
4
9
|
value: string;
|
|
@@ -8,17 +13,6 @@ export declare const changeDatabaseNameAction: {
|
|
|
8
13
|
toString(): string;
|
|
9
14
|
type: string;
|
|
10
15
|
};
|
|
11
|
-
export declare const resizeAction: {
|
|
12
|
-
(payload: {
|
|
13
|
-
width: number;
|
|
14
|
-
height: number;
|
|
15
|
-
}): import('@dineug/r-html').AnyAction<{
|
|
16
|
-
width: number;
|
|
17
|
-
height: number;
|
|
18
|
-
}>;
|
|
19
|
-
toString(): string;
|
|
20
|
-
type: string;
|
|
21
|
-
};
|
|
22
16
|
export declare const changeZoomLevelAction: {
|
|
23
17
|
(payload: {
|
|
24
18
|
value: number;
|
|
@@ -37,13 +31,44 @@ export declare const streamZoomLevelAction: {
|
|
|
37
31
|
toString(): string;
|
|
38
32
|
type: string;
|
|
39
33
|
};
|
|
34
|
+
export type ScrollRanges = {
|
|
35
|
+
left: ScrollRange;
|
|
36
|
+
top: ScrollRange;
|
|
37
|
+
};
|
|
38
|
+
/** Whether the host has measured a screen; a hidden one and a headless replica report none. */
|
|
39
|
+
export declare const hasViewport: ({ width, height }: Viewport) => boolean;
|
|
40
|
+
/**
|
|
41
|
+
* The travel the content alone allows on each axis: from the content's far
|
|
42
|
+
* edge meeting the near edge of the screen to its near edge meeting the far
|
|
43
|
+
* one. An empty document and an unmeasured screen have no travel to offer.
|
|
44
|
+
*/
|
|
45
|
+
export declare function getContentScrollRanges(state: RootState): ScrollRanges;
|
|
46
|
+
/**
|
|
47
|
+
* The origin a load settles on: kept where the file put it while any of the
|
|
48
|
+
* content is drawn there, else pulled to where a screen's worth of it, or all
|
|
49
|
+
* of it, is. An empty document and an unmeasured screen leave it as it is.
|
|
50
|
+
*/
|
|
51
|
+
export declare function getOpeningOrigin(state: RootState): Point;
|
|
52
|
+
/**
|
|
53
|
+
* The travel every aid is drawn from and the two drags are gated by: the
|
|
54
|
+
* content's own range widened to hold the origin where it stands and, while a
|
|
55
|
+
* drag holds the view, the origin it started from, so it never shifts under the drag.
|
|
56
|
+
*/
|
|
57
|
+
export declare function getScrollRanges(state: RootState): ScrollRanges;
|
|
58
|
+
export type ScrollMovement = ActionMap[typeof ActionType.streamScrollTo];
|
|
59
|
+
/**
|
|
60
|
+
* The step of a thumb or handle drag cut to the hull it is drawn over, so the
|
|
61
|
+
* origin lands on the end of the travel rather than a step past it. An
|
|
62
|
+
* unmeasured screen has no travel to cut against and hands the step back as it is.
|
|
63
|
+
*/
|
|
64
|
+
export declare function clampScrollMovement(state: RootState, { movementX, movementY }: ScrollMovement): ScrollMovement;
|
|
40
65
|
export declare const scrollToAction: {
|
|
41
66
|
(payload: {
|
|
42
|
-
|
|
43
|
-
|
|
67
|
+
originX: number;
|
|
68
|
+
originY: number;
|
|
44
69
|
}): import('@dineug/r-html').AnyAction<{
|
|
45
|
-
|
|
46
|
-
|
|
70
|
+
originX: number;
|
|
71
|
+
originY: number;
|
|
47
72
|
}>;
|
|
48
73
|
toString(): string;
|
|
49
74
|
type: string;
|
|
@@ -175,7 +200,6 @@ export declare const changeIgnoreSaveSettingsAction: {
|
|
|
175
200
|
};
|
|
176
201
|
export declare const settingsReducers: {
|
|
177
202
|
"settings.changeDatabaseName": ReducerType<"settings.changeDatabaseName">;
|
|
178
|
-
"settings.resize": ReducerType<"settings.resize">;
|
|
179
203
|
"settings.changeZoomLevel": ReducerType<"settings.changeZoomLevel">;
|
|
180
204
|
"settings.streamZoomLevel": ReducerType<"settings.streamZoomLevel">;
|
|
181
205
|
"settings.scrollTo": ReducerType<"settings.scrollTo">;
|
|
@@ -203,17 +227,6 @@ export declare const actions: {
|
|
|
203
227
|
toString(): string;
|
|
204
228
|
type: string;
|
|
205
229
|
};
|
|
206
|
-
resizeAction: {
|
|
207
|
-
(payload: {
|
|
208
|
-
width: number;
|
|
209
|
-
height: number;
|
|
210
|
-
}): import('@dineug/r-html').AnyAction<{
|
|
211
|
-
width: number;
|
|
212
|
-
height: number;
|
|
213
|
-
}>;
|
|
214
|
-
toString(): string;
|
|
215
|
-
type: string;
|
|
216
|
-
};
|
|
217
230
|
changeZoomLevelAction: {
|
|
218
231
|
(payload: {
|
|
219
232
|
value: number;
|
|
@@ -234,11 +247,11 @@ export declare const actions: {
|
|
|
234
247
|
};
|
|
235
248
|
scrollToAction: {
|
|
236
249
|
(payload: {
|
|
237
|
-
|
|
238
|
-
|
|
250
|
+
originX: number;
|
|
251
|
+
originY: number;
|
|
239
252
|
}): import('@dineug/r-html').AnyAction<{
|
|
240
|
-
|
|
241
|
-
|
|
253
|
+
originX: number;
|
|
254
|
+
originY: number;
|
|
242
255
|
}>;
|
|
243
256
|
toString(): string;
|
|
244
257
|
type: string;
|
|
@@ -369,3 +382,4 @@ export declare const actions: {
|
|
|
369
382
|
type: string;
|
|
370
383
|
};
|
|
371
384
|
};
|
|
385
|
+
//# sourceMappingURL=atom.actions.d.ts.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PushStreamHistory, PushUndoHistory } from '../../history.actions';
|
|
2
2
|
export declare const settingsPushUndoHistoryMap: {
|
|
3
|
-
"settings.resize": PushUndoHistory;
|
|
4
3
|
"settings.scrollTo": PushUndoHistory;
|
|
5
4
|
"settings.changeShow": PushUndoHistory;
|
|
6
5
|
"settings.changeZoomLevel": PushUndoHistory;
|
|
@@ -9,3 +8,4 @@ export declare const settingsPushStreamHistoryMap: {
|
|
|
9
8
|
"settings.streamScrollTo": PushStreamHistory;
|
|
10
9
|
"settings.streamZoomLevel": PushStreamHistory;
|
|
11
10
|
};
|
|
11
|
+
//# sourceMappingURL=history.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** How far the origin may travel on one axis, measured in screen pixels. */
|
|
2
|
+
export type ScrollRange = {
|
|
3
|
+
min: number;
|
|
4
|
+
max: number;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* One axis of travel over content spanning near to far in scene units: at the
|
|
8
|
+
* minimum the content's far edge meets the screen's near edge, at the maximum
|
|
9
|
+
* its near edge meets the screen's far edge. A leaf, so the bench can import it.
|
|
10
|
+
*/
|
|
11
|
+
export declare function contentScrollRange(near: number, far: number, viewportLength: number, zoomLevel: number): ScrollRange;
|
|
12
|
+
/**
|
|
13
|
+
* Where a loaded origin settles on one axis: kept while it draws any of the
|
|
14
|
+
* content, which is strictly inside the pure range, else pulled to the nearest
|
|
15
|
+
* origin drawing all of it, or a screen's worth of it when it does not fit.
|
|
16
|
+
*/
|
|
17
|
+
export declare function openingOrigin(origin: number, near: number, far: number, viewportLength: number, zoomLevel: number): number;
|
|
18
|
+
//# sourceMappingURL=scrollRange.d.ts.map
|