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