@dineug/erd-editor 3.0.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/LICENSE +21 -0
- package/README.md +337 -0
- package/dist/components/appContext.d.ts +22 -0
- package/dist/components/customElementRegistry.d.ts +1 -0
- package/dist/components/erd/Erd.d.ts +6 -0
- package/dist/components/erd/Erd.styles.d.ts +1 -0
- package/dist/components/erd/automatic-table-placement/AutomaticTablePlacement.d.ts +14 -0
- package/dist/components/erd/automatic-table-placement/AutomaticTablePlacement.styles.d.ts +2 -0
- package/dist/components/erd/automatic-table-placement/createAutomaticTablePlacement.d.ts +11 -0
- package/dist/components/erd/canvas/Canvas.d.ts +7 -0
- package/dist/components/erd/canvas/Canvas.styles.d.ts +1 -0
- package/dist/components/erd/canvas/canvas-svg/CanvasSvg.d.ts +7 -0
- package/dist/components/erd/canvas/canvas-svg/CanvasSvg.styles.d.ts +1 -0
- package/dist/components/erd/canvas/canvas-svg/relationship/Relationship.d.ts +8 -0
- package/dist/components/erd/canvas/canvas-svg/relationship/Relationship.template.d.ts +3 -0
- package/dist/components/erd/canvas/draw-relationship/DrawRelationship.d.ts +8 -0
- package/dist/components/erd/canvas/draw-relationship/DrawRelationship.styles.d.ts +1 -0
- package/dist/components/erd/canvas/high-level-table/HighLevelTable.d.ts +7 -0
- package/dist/components/erd/canvas/high-level-table/HighLevelTable.styles.d.ts +1 -0
- package/dist/components/erd/canvas/memo/Memo.d.ts +7 -0
- package/dist/components/erd/canvas/memo/Memo.styles.d.ts +6 -0
- package/dist/components/erd/canvas/memo/memo-sash/MemoSash.d.ts +9 -0
- package/dist/components/erd/canvas/table/Table.d.ts +7 -0
- package/dist/components/erd/canvas/table/Table.styles.d.ts +5 -0
- package/dist/components/erd/canvas/table/column/Column.d.ts +29 -0
- package/dist/components/erd/canvas/table/column/Column.styles.d.ts +2 -0
- package/dist/components/erd/canvas/table/column/column-data-type/ColumnDataType.d.ts +16 -0
- package/dist/components/erd/canvas/table/column/column-data-type/ColumnDataType.styles.d.ts +3 -0
- package/dist/components/erd/canvas/table/column/column-key/ColumnKey.d.ts +6 -0
- package/dist/components/erd/canvas/table/column/column-key/ColumnKey.styles.d.ts +1 -0
- package/dist/components/erd/canvas/table/column/column-not-null/ColumnNotNull.d.ts +7 -0
- package/dist/components/erd/canvas/table/column/column-not-null/ColumnNotNull.styles.d.ts +1 -0
- package/dist/components/erd/canvas/table/column/column-option/ColumnOption.d.ts +11 -0
- package/dist/components/erd/canvas/table/column/column-option/ColumnOption.styles.d.ts +1 -0
- package/dist/components/erd/canvas/table/useFocusTable.d.ts +7 -0
- package/dist/components/erd/canvas/table/useMoveTable.d.ts +6 -0
- package/dist/components/erd/drag-select/DragSelect.d.ts +9 -0
- package/dist/components/erd/drag-select/DragSelect.styles.d.ts +1 -0
- package/dist/components/erd/erd-context-menu/ErdContextMenu.d.ts +17 -0
- package/dist/components/erd/erd-context-menu/menus/databaseMenus.d.ts +12 -0
- package/dist/components/erd/erd-context-menu/menus/drawRelationshipMenus.d.ts +16 -0
- package/dist/components/erd/erd-context-menu/menus/exportMenus.d.ts +9 -0
- package/dist/components/erd/erd-context-menu/menus/importMenus.d.ts +9 -0
- package/dist/components/erd/erd-context-menu/menus/relationshipMenus.d.ts +7 -0
- package/dist/components/erd/erd-context-menu/menus/showMenus.d.ts +6 -0
- package/dist/components/erd/erdShortcutPerformCheck.d.ts +3 -0
- package/dist/components/erd/hide-sign/HideSign.d.ts +6 -0
- package/dist/components/erd/hide-sign/HideSign.styles.d.ts +1 -0
- package/dist/components/erd/minimap/Minimap.d.ts +4 -0
- package/dist/components/erd/minimap/Minimap.styles.d.ts +3 -0
- package/dist/components/erd/minimap/memo/Memo.d.ts +7 -0
- package/dist/components/erd/minimap/table/Table.d.ts +7 -0
- package/dist/components/erd/minimap/useMinimapScroll.d.ts +7 -0
- package/dist/components/erd/minimap/viewport/Viewport.d.ts +6 -0
- package/dist/components/erd/minimap/viewport/Viewport.styles.d.ts +1 -0
- package/dist/components/erd/table-properties/TableProperties.d.ts +9 -0
- package/dist/components/erd/table-properties/TableProperties.styles.d.ts +6 -0
- package/dist/components/erd/table-properties/table-properties-indexes/TablePropertiesIndexes.d.ts +6 -0
- package/dist/components/erd/table-properties/table-properties-indexes/TablePropertiesIndexes.styles.d.ts +3 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-checkbox-column/IndexesCheckboxColumn.d.ts +8 -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 +7 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-column/IndexesColumn.styles.d.ts +3 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-index/IndexesIndex.d.ts +9 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-index/IndexesIndex.styles.d.ts +4 -0
- package/dist/components/erd/table-properties/table-properties-tabs/TablePropertiesTabs.d.ts +14 -0
- package/dist/components/erd/table-properties/table-properties-tabs/TablePropertiesTabs.styles.d.ts +2 -0
- package/dist/components/erd/useErdShortcut.d.ts +2 -0
- package/dist/components/erd-editor/ErdEditor.d.ts +26 -0
- package/dist/components/erd-editor/ErdEditor.stories.d.ts +18 -0
- package/dist/components/erd-editor/ErdEditor.styles.d.ts +2 -0
- package/dist/components/erd-editor/useErdEditorAttachElement.d.ts +21 -0
- package/dist/components/generator-code/GeneratorCode.d.ts +7 -0
- package/dist/components/generator-code/GeneratorCode.styles.d.ts +1 -0
- package/dist/components/generator-code/generator-code-context-menu/GeneratorCodeContextMenu.d.ts +6 -0
- package/dist/components/generator-code/generator-code-context-menu/menus/columnNameCaseMenus.d.ts +12 -0
- package/dist/components/generator-code/generator-code-context-menu/menus/languageMenus.d.ts +12 -0
- package/dist/components/generator-code/generator-code-context-menu/menus/tableNameCaseMenus.d.ts +12 -0
- package/dist/components/global-styles/GlobalStyles.d.ts +4 -0
- package/dist/components/primitives/button/Button.d.ts +9 -0
- package/dist/components/primitives/button/Button.stories.d.ts +26 -0
- package/dist/components/primitives/button/Button.styles.d.ts +6 -0
- package/dist/components/primitives/code-block/CodeBlock.d.ts +10 -0
- package/dist/components/primitives/code-block/CodeBlock.stories.d.ts +25 -0
- package/dist/components/primitives/code-block/CodeBlock.styles.d.ts +3 -0
- package/dist/components/primitives/color-picker/ColorPicker.d.ts +12 -0
- package/dist/components/primitives/color-picker/ColorPicker.stories.d.ts +26 -0
- package/dist/components/primitives/color-picker/ColorPicker.styles.d.ts +1 -0
- package/dist/components/primitives/context-menu/ContextMenu.d.ts +10 -0
- package/dist/components/primitives/context-menu/ContextMenu.stories.d.ts +16 -0
- package/dist/components/primitives/context-menu/context-menu-content/ContextMenuContent.d.ts +9 -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 +8 -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 +6 -0
- package/dist/components/primitives/context-menu/context-menu-root/contextMenuRootContext.d.ts +22 -0
- package/dist/components/primitives/context-menu/menu/Menu.d.ts +8 -0
- package/dist/components/primitives/context-menu/menu/Menu.styles.d.ts +3 -0
- package/dist/components/primitives/edit-input/EditInput.d.ts +16 -0
- package/dist/components/primitives/edit-input/EditInput.stories.d.ts +36 -0
- package/dist/components/primitives/edit-input/EditInput.styles.d.ts +4 -0
- package/dist/components/primitives/highlighted-text/HighlightedText.d.ts +8 -0
- package/dist/components/primitives/highlighted-text/HighlightedText.stories.d.ts +23 -0
- package/dist/components/primitives/highlighted-text/HighlightedText.styles.d.ts +1 -0
- package/dist/components/primitives/icon/Icon.d.ts +14 -0
- package/dist/components/primitives/icon/Icon.stories.d.ts +8 -0
- package/dist/components/primitives/icon/Icon.styles.d.ts +2 -0
- package/dist/components/primitives/icon/icons.d.ts +29 -0
- package/dist/components/primitives/kbd/Kbd.d.ts +7 -0
- package/dist/components/primitives/kbd/Kbd.stories.d.ts +17 -0
- package/dist/components/primitives/kbd/Kbd.styles.d.ts +3 -0
- package/dist/components/primitives/sash/Sash.d.ts +27 -0
- package/dist/components/primitives/sash/Sash.stories.d.ts +30 -0
- package/dist/components/primitives/sash/Sash.styles.d.ts +2 -0
- package/dist/components/primitives/separator/Separator.d.ts +7 -0
- package/dist/components/primitives/separator/Separator.stories.d.ts +25 -0
- package/dist/components/primitives/separator/Separator.styles.d.ts +2 -0
- package/dist/components/primitives/switch/Switch.d.ts +8 -0
- package/dist/components/primitives/switch/Switch.stories.d.ts +21 -0
- package/dist/components/primitives/switch/Switch.styles.d.ts +5 -0
- package/dist/components/primitives/text-input/TextInput.d.ts +19 -0
- package/dist/components/primitives/text-input/TextInput.stories.d.ts +41 -0
- package/dist/components/primitives/toast/Toast.d.ts +8 -0
- package/dist/components/primitives/toast/Toast.stories.d.ts +20 -0
- package/dist/components/primitives/toast/Toast.styles.d.ts +5 -0
- package/dist/components/quick-search/QuickSearch.d.ts +4 -0
- package/dist/components/quick-search/QuickSearch.styles.d.ts +10 -0
- package/dist/components/quick-search/actions.d.ts +14 -0
- package/dist/components/schema-sql/SchemaSQL.d.ts +7 -0
- package/dist/components/schema-sql/SchemaSQL.styles.d.ts +1 -0
- package/dist/components/schema-sql/schema-sql-context-menu/SchemaSQLContextMenu.d.ts +6 -0
- package/dist/components/schema-sql/schema-sql-context-menu/menus/bracketMenus.d.ts +12 -0
- package/dist/components/settings/Settings.d.ts +4 -0
- package/dist/components/settings/Settings.styles.d.ts +10 -0
- package/dist/components/settings/settings-lnb/SettingsLnb.d.ts +13 -0
- package/dist/components/settings/settings-lnb/SettingsLnb.styles.d.ts +3 -0
- package/dist/components/settings/shortcuts/Shortcuts.d.ts +4 -0
- package/dist/components/settings/shortcuts/Shortcuts.styles.d.ts +2 -0
- package/dist/components/theme/Theme.d.ts +7 -0
- package/dist/components/theme-builder/ThemeBuilder.d.ts +7 -0
- package/dist/components/theme-builder/ThemeBuilder.styles.d.ts +8 -0
- package/dist/components/toast-container/ToastContainer.d.ts +4 -0
- package/dist/components/toast-container/ToastContainer.styles.d.ts +1 -0
- package/dist/components/toolbar/Toolbar.d.ts +6 -0
- package/dist/components/toolbar/Toolbar.styles.d.ts +3 -0
- package/dist/components/visualization/Visualization.d.ts +4 -0
- package/dist/components/visualization/Visualization.styles.d.ts +1 -0
- package/dist/components/visualization/createVisualization.d.ts +9 -0
- package/dist/components/visualization/table/Table.d.ts +10 -0
- package/dist/components/visualization/table/Table.styles.d.ts +1 -0
- package/dist/components/visualization/table/column/Column.d.ts +12 -0
- package/dist/components/visualization/table/column/Column.styles.d.ts +1 -0
- package/dist/constants/language.d.ts +1 -0
- package/dist/constants/layout.d.ts +32 -0
- package/dist/constants/open.d.ts +8 -0
- package/dist/constants/schema.d.ts +102 -0
- package/dist/constants/sql/dataType/MSSQL.d.ts +5 -0
- package/dist/constants/sql/dataType/MariaDB.d.ts +5 -0
- package/dist/constants/sql/dataType/MySQL.d.ts +5 -0
- package/dist/constants/sql/dataType/Oracle.d.ts +5 -0
- package/dist/constants/sql/dataType/PostgreSQL.d.ts +5 -0
- package/dist/constants/sql/dataType/SQLite.d.ts +5 -0
- package/dist/constants/sql/dataType/index.d.ts +25 -0
- package/dist/constants/sql/database.d.ts +12 -0
- package/dist/engine/actions.d.ts +35 -0
- package/dist/engine/context.d.ts +5 -0
- package/dist/engine/generator.actions.d.ts +4 -0
- package/dist/engine/history.actions.d.ts +9 -0
- package/dist/engine/history.d.ts +20 -0
- package/dist/engine/hooks.d.ts +8 -0
- package/dist/engine/modules/editor/actions.d.ts +93 -0
- package/dist/engine/modules/editor/atom.actions.d.ts +406 -0
- package/dist/engine/modules/editor/generator.actions.d.ts +31 -0
- package/dist/engine/modules/editor/history.d.ts +5 -0
- package/dist/engine/modules/editor/state.d.ts +63 -0
- package/dist/engine/modules/editor/utils/focus.d.ts +15 -0
- package/dist/engine/modules/editor/utils/selectRangeColumn.d.ts +3 -0
- package/dist/engine/modules/index/actions.d.ts +31 -0
- package/dist/engine/modules/index/atom.actions.d.ts +101 -0
- package/dist/engine/modules/index/generator.actions.d.ts +7 -0
- package/dist/engine/modules/index/history.d.ts +7 -0
- package/dist/engine/modules/index-column/actions.d.ts +37 -0
- package/dist/engine/modules/index-column/atom.actions.d.ts +125 -0
- package/dist/engine/modules/index-column/generator.actions.d.ts +11 -0
- package/dist/engine/modules/index-column/history.d.ts +7 -0
- package/dist/engine/modules/memo/actions.d.ts +59 -0
- package/dist/engine/modules/memo/atom.actions.d.ts +225 -0
- package/dist/engine/modules/memo/generator.actions.d.ts +9 -0
- package/dist/engine/modules/memo/history.d.ts +12 -0
- package/dist/engine/modules/relationship/actions.d.ts +31 -0
- package/dist/engine/modules/relationship/atom.actions.d.ts +102 -0
- package/dist/engine/modules/relationship/generator.actions.d.ts +1 -0
- package/dist/engine/modules/relationship/history.d.ts +6 -0
- package/dist/engine/modules/relationship/hooks.d.ts +2 -0
- package/dist/engine/modules/settings/actions.d.ts +83 -0
- package/dist/engine/modules/settings/atom.actions.d.ts +348 -0
- package/dist/engine/modules/settings/generator.actions.d.ts +7 -0
- package/dist/engine/modules/settings/history.d.ts +11 -0
- package/dist/engine/modules/table/actions.d.ts +57 -0
- package/dist/engine/modules/table/atom.actions.d.ts +224 -0
- package/dist/engine/modules/table/generator.actions.d.ts +12 -0
- package/dist/engine/modules/table/history.d.ts +13 -0
- package/dist/engine/modules/table/hooks.d.ts +2 -0
- package/dist/engine/modules/table-column/actions.d.ts +53 -0
- package/dist/engine/modules/table-column/atom.actions.d.ts +230 -0
- package/dist/engine/modules/table-column/generator.actions.d.ts +19 -0
- package/dist/engine/modules/table-column/history.d.ts +14 -0
- package/dist/engine/modules/table-column/hooks.d.ts +2 -0
- package/dist/engine/modules/table-column/utils/dataType.d.ts +3 -0
- package/dist/engine/rx-operators/actionsFilter.d.ts +3 -0
- package/dist/engine/rx-operators/groupByStreamActions.d.ts +5 -0
- package/dist/engine/rx-operators/ignoreTagFilter.d.ts +3 -0
- package/dist/engine/rx-operators/index.d.ts +4 -0
- package/dist/engine/rx-operators/notEmptyActions.d.ts +2 -0
- package/dist/engine/rx-operators/readonlyIgnoreFilter.d.ts +3 -0
- package/dist/engine/rx-store.d.ts +10 -0
- package/dist/engine/state.d.ts +5 -0
- package/dist/engine/store.d.ts +5 -0
- package/dist/engine/store.hooks.d.ts +4 -0
- package/dist/engine/tag.d.ts +7 -0
- package/dist/erd-editor.js +42402 -0
- package/dist/hooks/useDarkMode.d.ts +5 -0
- package/dist/hooks/useFlipAnimation.d.ts +2 -0
- package/dist/hooks/useKeyBindingMap.d.ts +3 -0
- package/dist/hooks/useUnmounted.d.ts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.dev.d.ts +1 -0
- package/dist/internal-types/index.d.ts +40 -0
- package/dist/services/schema-gc/index.d.ts +10 -0
- package/dist/services/schema-gc/procGC.d.ts +3 -0
- package/dist/services/schema-gc/schemaGCService.d.ts +4 -0
- package/dist/services/shikiService.d.ts +8 -0
- package/dist/styles/colorPicker.style.d.ts +1 -0
- package/dist/styles/fonts.styles.d.ts +3 -0
- package/dist/styles/reset.styles.d.ts +1 -0
- package/dist/styles/scrollbar.styles.d.ts +1 -0
- package/dist/styles/typography.styles.d.ts +14 -0
- package/dist/themes/radix-ui-theme.config.d.ts +2 -0
- package/dist/themes/radix-ui-theme.d.ts +1792 -0
- package/dist/themes/textColor.d.ts +2 -0
- package/dist/themes/tokens.d.ts +63 -0
- package/dist/utils/attribute.d.ts +1 -0
- package/dist/utils/bit.d.ts +1 -0
- package/dist/utils/calcMemo.d.ts +3 -0
- package/dist/utils/calcTable.d.ts +16 -0
- package/dist/utils/clipboard.d.ts +1 -0
- package/dist/utils/collection/index.entity.d.ts +2 -0
- package/dist/utils/collection/indexColumn.entity.d.ts +2 -0
- package/dist/utils/collection/memo.entity.d.ts +2 -0
- package/dist/utils/collection/relationship.entity.d.ts +2 -0
- package/dist/utils/collection/sequence.d.ts +1 -0
- package/dist/utils/collection/table.entity.d.ts +2 -0
- package/dist/utils/collection/tableColumn.entity.d.ts +2 -0
- package/dist/utils/device-detect/index.d.ts +7 -0
- package/dist/utils/domEvent.d.ts +6 -0
- package/dist/utils/dragSelect.d.ts +23 -0
- package/dist/utils/draw-relationship/calc.d.ts +6 -0
- package/dist/utils/draw-relationship/draw.d.ts +4 -0
- package/dist/utils/draw-relationship/index.d.ts +108 -0
- package/dist/utils/draw-relationship/pathFinding.d.ts +3 -0
- package/dist/utils/draw-relationship/sort.d.ts +2 -0
- package/dist/utils/emitter.d.ts +141 -0
- package/dist/utils/file/exportFile.d.ts +9 -0
- package/dist/utils/file/importFile.d.ts +10 -0
- package/dist/utils/flipAnimation.d.ts +10 -0
- package/dist/utils/focus.d.ts +5 -0
- package/dist/utils/generator-code/csharp.d.ts +4 -0
- package/dist/utils/generator-code/graphql.d.ts +4 -0
- package/dist/utils/generator-code/index.d.ts +4 -0
- package/dist/utils/generator-code/java.d.ts +4 -0
- package/dist/utils/generator-code/jpa.d.ts +4 -0
- package/dist/utils/generator-code/kotlin.d.ts +4 -0
- package/dist/utils/generator-code/scala.d.ts +4 -0
- package/dist/utils/generator-code/typescript.d.ts +4 -0
- package/dist/utils/generator-code/utils.d.ts +19 -0
- package/dist/utils/globalEmitter.d.ts +28 -0
- package/dist/utils/globalEventObservable.d.ts +41 -0
- package/dist/utils/icon.d.ts +1 -0
- package/dist/utils/index.d.ts +7 -0
- package/dist/utils/internalEvents.d.ts +38 -0
- package/dist/utils/keyboard-shortcut/index.d.ts +36 -0
- package/dist/utils/keyboard-shortcut/utils.d.ts +2 -0
- package/dist/utils/promise.d.ts +1 -0
- package/dist/utils/rx-operators/fromCopy.d.ts +3 -0
- package/dist/utils/rx-operators/fromDraggable.d.ts +1 -0
- package/dist/utils/rx-operators/fromPaste.d.ts +3 -0
- package/dist/utils/rx-operators/fromShadowDraggable.d.ts +1 -0
- package/dist/utils/rx-operators/takeUnsubscribe.d.ts +2 -0
- package/dist/utils/schema-sql/MSSQL.d.ts +5 -0
- package/dist/utils/schema-sql/MariaDB.d.ts +5 -0
- package/dist/utils/schema-sql/MySQL.d.ts +5 -0
- package/dist/utils/schema-sql/Oracle.d.ts +5 -0
- package/dist/utils/schema-sql/PostgreSQL.d.ts +5 -0
- package/dist/utils/schema-sql/SQLite.d.ts +5 -0
- package/dist/utils/schema-sql/index.d.ts +4 -0
- package/dist/utils/schema-sql/utils.d.ts +53 -0
- package/dist/utils/schema-sql-parser/index.d.ts +3 -0
- package/dist/utils/schema-sql-parser/utils.d.ts +3 -0
- package/dist/utils/table-clipboard/copy.d.ts +3 -0
- package/dist/utils/table-clipboard/index.d.ts +15 -0
- package/dist/utils/table-clipboard/paste.d.ts +4 -0
- package/dist/utils/text.d.ts +4 -0
- package/dist/utils/validation.d.ts +16 -0
- package/dist/workers/schemaGC.shared-worker.d.ts +1 -0
- package/dist/workers/schemaGC.worker.d.ts +1 -0
- package/package.json +101 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export type Theme = {
|
|
2
|
+
grayColor1: string;
|
|
3
|
+
grayColor2: string;
|
|
4
|
+
grayColor3: string;
|
|
5
|
+
grayColor4: string;
|
|
6
|
+
grayColor5: string;
|
|
7
|
+
grayColor6: string;
|
|
8
|
+
grayColor7: string;
|
|
9
|
+
grayColor8: string;
|
|
10
|
+
grayColor9: string;
|
|
11
|
+
grayColor10: string;
|
|
12
|
+
grayColor11: string;
|
|
13
|
+
grayColor12: string;
|
|
14
|
+
accentColor1: string;
|
|
15
|
+
accentColor2: string;
|
|
16
|
+
accentColor3: string;
|
|
17
|
+
accentColor4: string;
|
|
18
|
+
accentColor5: string;
|
|
19
|
+
accentColor6: string;
|
|
20
|
+
accentColor7: string;
|
|
21
|
+
accentColor8: string;
|
|
22
|
+
accentColor9: string;
|
|
23
|
+
accentColor10: string;
|
|
24
|
+
accentColor11: string;
|
|
25
|
+
accentColor12: string;
|
|
26
|
+
canvasBackground: string;
|
|
27
|
+
canvasBoundaryBackground: string;
|
|
28
|
+
tableBackground: string;
|
|
29
|
+
tableSelect: string;
|
|
30
|
+
tableBorder: string;
|
|
31
|
+
memoBackground: string;
|
|
32
|
+
memoSelect: string;
|
|
33
|
+
memoBorder: string;
|
|
34
|
+
columnSelect: string;
|
|
35
|
+
columnHover: string;
|
|
36
|
+
relationshipHover: string;
|
|
37
|
+
toolbarBackground: string;
|
|
38
|
+
contextMenuBackground: string;
|
|
39
|
+
contextMenuSelect: string;
|
|
40
|
+
contextMenuHover: string;
|
|
41
|
+
contextMenuBorder: string;
|
|
42
|
+
minimapBorder: string;
|
|
43
|
+
minimapShadow: string;
|
|
44
|
+
minimapViewportBorder: string;
|
|
45
|
+
minimapViewportBorderHover: string;
|
|
46
|
+
toastBackground: string;
|
|
47
|
+
toastBorder: string;
|
|
48
|
+
dargSelectBackground: string;
|
|
49
|
+
dargSelectBorder: string;
|
|
50
|
+
scrollbarTrack: string;
|
|
51
|
+
scrollbarThumb: string;
|
|
52
|
+
scrollbarThumbHover: string;
|
|
53
|
+
foreground: string;
|
|
54
|
+
active: string;
|
|
55
|
+
placeholder: string;
|
|
56
|
+
focus: string;
|
|
57
|
+
inputActive: string;
|
|
58
|
+
keyPK: string;
|
|
59
|
+
keyFK: string;
|
|
60
|
+
keyPFK: string;
|
|
61
|
+
};
|
|
62
|
+
export declare const ThemeTokens: ReadonlyArray<keyof Theme>;
|
|
63
|
+
export declare const themeToTokensString: (theme: Theme) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function restAttrs(value: Record<string, any>): Record<string, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function bHas(bit: number, value: number): boolean;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EngineContext } from "../engine/context";
|
|
2
|
+
import { RootState } from "../engine/state";
|
|
3
|
+
import { Table } from "../internal-types";
|
|
4
|
+
export declare function calcTableWidths(table: Table, { settings: { show, maxWidthComment }, collections }: RootState): ColumnWidth;
|
|
5
|
+
export type ColumnWidth = {
|
|
6
|
+
width: number;
|
|
7
|
+
name: number;
|
|
8
|
+
comment: number;
|
|
9
|
+
dataType: number;
|
|
10
|
+
default: number;
|
|
11
|
+
notNull: number;
|
|
12
|
+
autoIncrement: number;
|
|
13
|
+
unique: number;
|
|
14
|
+
};
|
|
15
|
+
export declare function calcTableHeight(table: Table): number;
|
|
16
|
+
export declare function recalculateTableWidth({ doc: { tableIds }, collections }: RootState, { toWidth }: EngineContext): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function copyToClipboard(value: string): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function addAndSort(ids: string[], seqIds: string[], id: string): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const isAndroid: boolean;
|
|
2
|
+
export declare const isWindows: boolean;
|
|
3
|
+
export declare const isMacOs: boolean;
|
|
4
|
+
export declare const isIOS: boolean;
|
|
5
|
+
export declare const isChrome: boolean;
|
|
6
|
+
export declare const isFirefox: boolean;
|
|
7
|
+
export declare const isSafari: boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare function onNumberOnly(event: InputEvent): void;
|
|
2
|
+
export declare function onPrevent(event: Event): void;
|
|
3
|
+
export declare function onStop(event: Event): void;
|
|
4
|
+
export declare function onStopImmediate(event: Event): void;
|
|
5
|
+
export declare function isMouseEvent(event: Event): event is MouseEvent;
|
|
6
|
+
export declare function isTouchEvent(event: Event): event is TouchEvent;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Point } from "../internal-types";
|
|
2
|
+
type PointToPoint = {
|
|
3
|
+
x1: number;
|
|
4
|
+
y1: number;
|
|
5
|
+
x2: number;
|
|
6
|
+
y2: number;
|
|
7
|
+
};
|
|
8
|
+
export type Rect = {
|
|
9
|
+
x: number;
|
|
10
|
+
y: number;
|
|
11
|
+
w: number;
|
|
12
|
+
h: number;
|
|
13
|
+
};
|
|
14
|
+
export declare function isOverlapPosition(dragRect: Rect, rect: Rect): boolean;
|
|
15
|
+
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
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { RootState } from "../../engine/state";
|
|
2
|
+
import { Point, Table } from "../../internal-types";
|
|
3
|
+
import { ObjectPoint } from "./";
|
|
4
|
+
export declare function tableToObjectPoint(state: RootState, table: Table): ObjectPoint;
|
|
5
|
+
export declare function euclideanDistance(a: Point, b: Point): number;
|
|
6
|
+
export declare function manhattanDistance(a: Point, b: Point): number;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { Point, RelationshipPoint, ValuesType } from "../../internal-types";
|
|
2
|
+
export declare const DirectionName: {
|
|
3
|
+
readonly left: "left";
|
|
4
|
+
readonly right: "right";
|
|
5
|
+
readonly top: "top";
|
|
6
|
+
readonly bottom: "bottom";
|
|
7
|
+
};
|
|
8
|
+
export type DirectionName = ValuesType<typeof DirectionName>;
|
|
9
|
+
export declare const DirectionNameList: ReadonlyArray<string>;
|
|
10
|
+
export type PointToPoint = {
|
|
11
|
+
x1: number;
|
|
12
|
+
y1: number;
|
|
13
|
+
x2: number;
|
|
14
|
+
y2: number;
|
|
15
|
+
};
|
|
16
|
+
export type DrawPathLine = {
|
|
17
|
+
start: PointToPoint;
|
|
18
|
+
};
|
|
19
|
+
export type DrawLine = {
|
|
20
|
+
start: {
|
|
21
|
+
base: PointToPoint;
|
|
22
|
+
base2: PointToPoint;
|
|
23
|
+
center: PointToPoint;
|
|
24
|
+
center2: PointToPoint;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export type PathPoint = {
|
|
28
|
+
M: Point;
|
|
29
|
+
L: Point;
|
|
30
|
+
Q: Point;
|
|
31
|
+
d(): Array<[Point, Point]>;
|
|
32
|
+
};
|
|
33
|
+
export type Path = {
|
|
34
|
+
M: Point;
|
|
35
|
+
L: Point;
|
|
36
|
+
Q: Point;
|
|
37
|
+
d(): string;
|
|
38
|
+
};
|
|
39
|
+
export type DrawPath = {
|
|
40
|
+
path: {
|
|
41
|
+
path: Path;
|
|
42
|
+
line: DrawPathLine;
|
|
43
|
+
};
|
|
44
|
+
line: DrawLine;
|
|
45
|
+
};
|
|
46
|
+
export type PathLine = {
|
|
47
|
+
start: PointToPoint;
|
|
48
|
+
end: PointToPoint;
|
|
49
|
+
};
|
|
50
|
+
export type Line = {
|
|
51
|
+
start: {
|
|
52
|
+
base: PointToPoint;
|
|
53
|
+
base2: PointToPoint;
|
|
54
|
+
center: PointToPoint;
|
|
55
|
+
center2: PointToPoint;
|
|
56
|
+
};
|
|
57
|
+
end: {
|
|
58
|
+
base: PointToPoint;
|
|
59
|
+
base2: PointToPoint;
|
|
60
|
+
left: PointToPoint;
|
|
61
|
+
center: PointToPoint;
|
|
62
|
+
center2: PointToPoint;
|
|
63
|
+
right: PointToPoint;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
export type Circle = {
|
|
67
|
+
cx: number;
|
|
68
|
+
cy: number;
|
|
69
|
+
};
|
|
70
|
+
export type RelationshipPath = {
|
|
71
|
+
path: {
|
|
72
|
+
path: PathPoint;
|
|
73
|
+
line: PathLine;
|
|
74
|
+
};
|
|
75
|
+
line: {
|
|
76
|
+
line: Line;
|
|
77
|
+
circle: Circle;
|
|
78
|
+
startCircle: Circle;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
export type RelationshipMarginPoint = {
|
|
82
|
+
xArray: number[];
|
|
83
|
+
yArray: number[];
|
|
84
|
+
};
|
|
85
|
+
export type RelationshipOrder = {
|
|
86
|
+
start: RelationshipPoint;
|
|
87
|
+
end: RelationshipPoint;
|
|
88
|
+
distance: number;
|
|
89
|
+
};
|
|
90
|
+
export type ObjectPoint = {
|
|
91
|
+
width: number;
|
|
92
|
+
height: number;
|
|
93
|
+
top: Point;
|
|
94
|
+
bottom: Point;
|
|
95
|
+
left: Point;
|
|
96
|
+
right: Point;
|
|
97
|
+
lt: Point;
|
|
98
|
+
rt: Point;
|
|
99
|
+
lb: Point;
|
|
100
|
+
rb: Point;
|
|
101
|
+
};
|
|
102
|
+
export declare const isDirection: (value: string) => boolean;
|
|
103
|
+
export declare const PATH_HEIGHT = 30;
|
|
104
|
+
export declare const PATH_END_HEIGHT: number;
|
|
105
|
+
export declare const PATH_LINE_HEIGHT = 35;
|
|
106
|
+
export declare const LINE_SIZE = 10;
|
|
107
|
+
export declare const LINE_HEIGHT = 16;
|
|
108
|
+
export declare const CIRCLE_HEIGHT = 26;
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { Action, AnyAction, DOMTemplateLiterals } from '@dineug/r-html';
|
|
2
|
+
import { ValuesType } from "../internal-types";
|
|
3
|
+
import { ThemeOptions } from "../themes/radix-ui-theme";
|
|
4
|
+
declare const InternalActionType: {
|
|
5
|
+
readonly openColorPicker: "openColorPicker";
|
|
6
|
+
readonly closeColorPicker: "closeColorPicker";
|
|
7
|
+
readonly openToast: "openToast";
|
|
8
|
+
readonly loadShikiService: "loadShikiService";
|
|
9
|
+
readonly openTableProperties: "openTableProperties";
|
|
10
|
+
readonly dragendColumnAll: "dragendColumnAll";
|
|
11
|
+
readonly copy: "copy";
|
|
12
|
+
readonly paste: "paste";
|
|
13
|
+
readonly schemaGC: "schemaGC";
|
|
14
|
+
readonly toggleSearch: "toggleSearch";
|
|
15
|
+
readonly openThemeBuilder: "openThemeBuilder";
|
|
16
|
+
readonly setThemeOptions: "setThemeOptions";
|
|
17
|
+
};
|
|
18
|
+
type InternalActionType = ValuesType<typeof InternalActionType>;
|
|
19
|
+
type InternalActionMap = {
|
|
20
|
+
[InternalActionType.openColorPicker]: {
|
|
21
|
+
x: number;
|
|
22
|
+
y: number;
|
|
23
|
+
color: string;
|
|
24
|
+
};
|
|
25
|
+
[InternalActionType.closeColorPicker]: void;
|
|
26
|
+
[InternalActionType.openToast]: {
|
|
27
|
+
message: DOMTemplateLiterals;
|
|
28
|
+
close?: Promise<void>;
|
|
29
|
+
};
|
|
30
|
+
[InternalActionType.loadShikiService]: void;
|
|
31
|
+
[InternalActionType.openTableProperties]: {
|
|
32
|
+
tableId: string;
|
|
33
|
+
};
|
|
34
|
+
[InternalActionType.dragendColumnAll]: void;
|
|
35
|
+
[InternalActionType.copy]: {
|
|
36
|
+
event: ClipboardEvent;
|
|
37
|
+
};
|
|
38
|
+
[InternalActionType.paste]: {
|
|
39
|
+
event: ClipboardEvent;
|
|
40
|
+
};
|
|
41
|
+
[InternalActionType.schemaGC]: void;
|
|
42
|
+
[InternalActionType.toggleSearch]: void;
|
|
43
|
+
[InternalActionType.openThemeBuilder]: void;
|
|
44
|
+
[InternalActionType.setThemeOptions]: Partial<ThemeOptions>;
|
|
45
|
+
};
|
|
46
|
+
type Reducer<K extends keyof M, M> = (action: Action<K, M>) => void;
|
|
47
|
+
type ReducerRecord<K extends keyof M, M> = {
|
|
48
|
+
[P in K]: Reducer<P, M>;
|
|
49
|
+
};
|
|
50
|
+
export declare class Emitter<M extends InternalActionMap = InternalActionMap> {
|
|
51
|
+
#private;
|
|
52
|
+
on(reducers: Partial<ReducerRecord<keyof M, M>>): () => void;
|
|
53
|
+
emit(action: AnyAction): void;
|
|
54
|
+
}
|
|
55
|
+
export declare const openColorPickerAction: {
|
|
56
|
+
(payload: {
|
|
57
|
+
x: number;
|
|
58
|
+
y: number;
|
|
59
|
+
color: string;
|
|
60
|
+
}): AnyAction<{
|
|
61
|
+
x: number;
|
|
62
|
+
y: number;
|
|
63
|
+
color: string;
|
|
64
|
+
}>;
|
|
65
|
+
toString(): string;
|
|
66
|
+
type: string;
|
|
67
|
+
};
|
|
68
|
+
export declare const closeColorPickerAction: {
|
|
69
|
+
(payload: void): AnyAction<void>;
|
|
70
|
+
toString(): string;
|
|
71
|
+
type: string;
|
|
72
|
+
};
|
|
73
|
+
export declare const openToastAction: {
|
|
74
|
+
(payload: {
|
|
75
|
+
message: DOMTemplateLiterals;
|
|
76
|
+
close?: Promise<void> | undefined;
|
|
77
|
+
}): AnyAction<{
|
|
78
|
+
message: DOMTemplateLiterals;
|
|
79
|
+
close?: Promise<void> | undefined;
|
|
80
|
+
}>;
|
|
81
|
+
toString(): string;
|
|
82
|
+
type: string;
|
|
83
|
+
};
|
|
84
|
+
export declare const loadShikiServiceAction: {
|
|
85
|
+
(payload: void): AnyAction<void>;
|
|
86
|
+
toString(): string;
|
|
87
|
+
type: string;
|
|
88
|
+
};
|
|
89
|
+
export declare const openTablePropertiesAction: {
|
|
90
|
+
(payload: {
|
|
91
|
+
tableId: string;
|
|
92
|
+
}): AnyAction<{
|
|
93
|
+
tableId: string;
|
|
94
|
+
}>;
|
|
95
|
+
toString(): string;
|
|
96
|
+
type: string;
|
|
97
|
+
};
|
|
98
|
+
export declare const dragendColumnAllAction: {
|
|
99
|
+
(payload: void): AnyAction<void>;
|
|
100
|
+
toString(): string;
|
|
101
|
+
type: string;
|
|
102
|
+
};
|
|
103
|
+
export declare const copyAction: {
|
|
104
|
+
(payload: {
|
|
105
|
+
event: ClipboardEvent;
|
|
106
|
+
}): AnyAction<{
|
|
107
|
+
event: ClipboardEvent;
|
|
108
|
+
}>;
|
|
109
|
+
toString(): string;
|
|
110
|
+
type: string;
|
|
111
|
+
};
|
|
112
|
+
export declare const pasteAction: {
|
|
113
|
+
(payload: {
|
|
114
|
+
event: ClipboardEvent;
|
|
115
|
+
}): AnyAction<{
|
|
116
|
+
event: ClipboardEvent;
|
|
117
|
+
}>;
|
|
118
|
+
toString(): string;
|
|
119
|
+
type: string;
|
|
120
|
+
};
|
|
121
|
+
export declare const schemaGCAction: {
|
|
122
|
+
(payload: void): AnyAction<void>;
|
|
123
|
+
toString(): string;
|
|
124
|
+
type: string;
|
|
125
|
+
};
|
|
126
|
+
export declare const toggleSearchAction: {
|
|
127
|
+
(payload: void): AnyAction<void>;
|
|
128
|
+
toString(): string;
|
|
129
|
+
type: string;
|
|
130
|
+
};
|
|
131
|
+
export declare const openThemeBuilderAction: {
|
|
132
|
+
(payload: void): AnyAction<void>;
|
|
133
|
+
toString(): string;
|
|
134
|
+
type: string;
|
|
135
|
+
};
|
|
136
|
+
export declare const setThemeOptionsAction: {
|
|
137
|
+
(payload: Partial<ThemeOptions>): AnyAction<Partial<ThemeOptions>>;
|
|
138
|
+
toString(): string;
|
|
139
|
+
type: string;
|
|
140
|
+
};
|
|
141
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type ExportOptions = {
|
|
2
|
+
fileName: string;
|
|
3
|
+
};
|
|
4
|
+
type ExportFileCallback = (blob: Blob, options: ExportOptions) => void;
|
|
5
|
+
export declare function setExportFileCallback(callback: ExportFileCallback | null): void;
|
|
6
|
+
export declare function exportJSON(json: string, name?: string): void;
|
|
7
|
+
export declare function exportSchemaSQL(sql: string, name?: string): void;
|
|
8
|
+
export declare function exportPNG(root: HTMLElement, name?: string): void;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AppContext } from "../../components/appContext";
|
|
2
|
+
type ImportOptions = {
|
|
3
|
+
type: 'json' | 'sql';
|
|
4
|
+
accept: string;
|
|
5
|
+
};
|
|
6
|
+
type ImportFileCallback = (options: ImportOptions) => void;
|
|
7
|
+
export declare function setImportFileCallback(callback: ImportFileCallback | null): void;
|
|
8
|
+
export declare function importJSON({ store, emitter }: AppContext): void;
|
|
9
|
+
export declare function importSchemaSQL({ store, emitter }: AppContext): void;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Ref } from '@dineug/r-html';
|
|
2
|
+
export declare class FlipAnimation {
|
|
3
|
+
private flipSnapshots;
|
|
4
|
+
private root;
|
|
5
|
+
private selector;
|
|
6
|
+
private animationName;
|
|
7
|
+
constructor(root: Ref<HTMLElement | null>, selector: string, animationName: string);
|
|
8
|
+
snapshot(): void;
|
|
9
|
+
play(): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FocusTable, FocusType } from "../engine/modules/editor/state";
|
|
2
|
+
export declare function isFocus(focusTable: FocusTable | null, focusType: FocusType, tableId: string, columnId?: string | null): boolean;
|
|
3
|
+
export declare const isSelectColumn: (focusTable: FocusTable | null, tableId: string, columnId: string) => boolean;
|
|
4
|
+
export declare function isEdit(focusTable: FocusTable | null, focusType: FocusType, tableId: string, columnId?: string | null): boolean;
|
|
5
|
+
export declare function lastCursorFocus(input: HTMLInputElement): void;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DataTypeHint, PrimitiveType } from "../../constants/sql/dataType";
|
|
2
|
+
import { Column, Table } from "../../internal-types";
|
|
3
|
+
export interface FormatTableOptions {
|
|
4
|
+
buffer: string[];
|
|
5
|
+
table: Table;
|
|
6
|
+
}
|
|
7
|
+
export interface FormatColumnOptions {
|
|
8
|
+
buffer: string[];
|
|
9
|
+
column: Column;
|
|
10
|
+
}
|
|
11
|
+
export interface FormatRelationOptions {
|
|
12
|
+
buffer: string[];
|
|
13
|
+
table: Table;
|
|
14
|
+
}
|
|
15
|
+
export declare const hasOneRelationship: (value: number) => boolean;
|
|
16
|
+
export declare const hasNRelationship: (value: number) => boolean;
|
|
17
|
+
export declare function getPrimitiveType(dataType: string, database: number): PrimitiveType;
|
|
18
|
+
export declare function getDataTypeHints(database: number): DataTypeHint[];
|
|
19
|
+
export declare function getNameCase(name: string, nameCase: number): string;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Emitter } from "./emitter";
|
|
2
|
+
export declare const globalEmitter: Emitter<{
|
|
3
|
+
openColorPicker: {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
color: string;
|
|
7
|
+
};
|
|
8
|
+
closeColorPicker: void;
|
|
9
|
+
openToast: {
|
|
10
|
+
message: import("@dineug/r-html").DOMTemplateLiterals;
|
|
11
|
+
close?: Promise<void> | undefined;
|
|
12
|
+
};
|
|
13
|
+
loadShikiService: void;
|
|
14
|
+
openTableProperties: {
|
|
15
|
+
tableId: string;
|
|
16
|
+
};
|
|
17
|
+
dragendColumnAll: void;
|
|
18
|
+
copy: {
|
|
19
|
+
event: ClipboardEvent;
|
|
20
|
+
};
|
|
21
|
+
paste: {
|
|
22
|
+
event: ClipboardEvent;
|
|
23
|
+
};
|
|
24
|
+
schemaGC: void;
|
|
25
|
+
toggleSearch: void;
|
|
26
|
+
openThemeBuilder: void;
|
|
27
|
+
setThemeOptions: Partial<import("../themes/radix-ui-theme").ThemeOptions>;
|
|
28
|
+
}>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export declare const mousedown$: import("rxjs").Observable<MouseEvent>;
|
|
2
|
+
export declare const mousemove$: import("rxjs").Observable<MouseEvent>;
|
|
3
|
+
export declare const mouseup$: import("rxjs").Observable<MouseEvent>;
|
|
4
|
+
export declare const touchstart$: import("rxjs").Observable<TouchEvent>;
|
|
5
|
+
export declare const touchmove$: import("rxjs").Observable<TouchEvent>;
|
|
6
|
+
export declare const touchend$: import("rxjs").Observable<TouchEvent>;
|
|
7
|
+
export declare const moveStart$: import("rxjs").Observable<MouseEvent | TouchEvent>;
|
|
8
|
+
export declare const moveEnd$: import("rxjs").Observable<MouseEvent | TouchEvent>;
|
|
9
|
+
export type DragMove = {
|
|
10
|
+
movementX: number;
|
|
11
|
+
movementY: number;
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
event: MouseEvent | TouchEvent;
|
|
15
|
+
};
|
|
16
|
+
export declare const move$: import("rxjs").Observable<{
|
|
17
|
+
event: MouseEvent;
|
|
18
|
+
movementX: number;
|
|
19
|
+
movementY: number;
|
|
20
|
+
x: number;
|
|
21
|
+
y: number;
|
|
22
|
+
} | {
|
|
23
|
+
event: TouchEvent;
|
|
24
|
+
movementX: number;
|
|
25
|
+
movementY: number;
|
|
26
|
+
x: number;
|
|
27
|
+
y: number;
|
|
28
|
+
}>;
|
|
29
|
+
export declare const drag$: import("rxjs").Observable<{
|
|
30
|
+
event: MouseEvent;
|
|
31
|
+
movementX: number;
|
|
32
|
+
movementY: number;
|
|
33
|
+
x: number;
|
|
34
|
+
y: number;
|
|
35
|
+
} | {
|
|
36
|
+
event: TouchEvent;
|
|
37
|
+
movementX: number;
|
|
38
|
+
movementY: number;
|
|
39
|
+
x: number;
|
|
40
|
+
y: number;
|
|
41
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getRelationshipIcon(relationshipType: number): string | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EntityMeta, Memo, Point, Settings, Table } from "../internal-types";
|
|
2
|
+
export declare const nextZIndex: (tables: Table[], memos: Memo[]) => number;
|
|
3
|
+
export declare function nextPoint({ width, height, zoomLevel, scrollLeft, scrollTop }: Settings, tables: Table[], memos: Memo[]): Point;
|
|
4
|
+
export declare const toList: <T>(ids: string[], entities: Record<string, T>) => T[];
|
|
5
|
+
export declare function getDefaultEntityMeta(): EntityMeta;
|
|
6
|
+
export declare function safeRange(a: number, b: number): number[];
|
|
7
|
+
export declare function pascalCase(value?: string): string;
|