@dineug/erd-editor 3.10.0 → 4.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/README.md +316 -147
- package/dist/components/appContext.d.ts +4 -0
- package/dist/components/erd/Erd.d.ts +3 -0
- package/dist/components/erd/automatic-table-placement/AutomaticTablePlacement.d.ts +2 -1
- package/dist/components/erd/automatic-table-placement/createAutomaticTablePlacement.d.ts +38 -2
- package/dist/components/erd/automatic-table-placement/elkPlacement.d.ts +42 -0
- package/dist/components/erd/automatic-table-placement/flowPlacement.d.ts +21 -0
- package/dist/components/erd/automatic-table-placement/placementActions.d.ts +14 -0
- package/dist/components/erd/automatic-table-placement/runElkPlacement.d.ts +0 -11
- package/dist/components/erd/canvas/SceneIcon.template.d.ts +2 -2
- package/dist/components/erd/canvas/entityDrag.d.ts +17 -1
- package/dist/components/erd/canvas/middleButtonPan.d.ts +11 -0
- package/dist/components/erd/canvas/sceneTokens.d.ts +38 -0
- package/dist/components/erd/canvas/table/Table.d.ts +9 -1
- package/dist/components/erd/canvas/table/doubleClick.d.ts +3 -4
- package/dist/components/erd/canvas/table-group/TableGroup.d.ts +17 -0
- package/dist/components/erd/canvas/table-group/TableGroupBody.d.ts +17 -0
- package/dist/components/erd/canvas/table-group/TableGroupDropTarget.d.ts +10 -0
- package/dist/components/erd/canvas/table-group/TableGroupSash.d.ts +35 -0
- package/dist/components/erd/canvas/table-group/TableGroups.d.ts +10 -0
- package/dist/components/erd/canvas/table-group/tableGroupBox.d.ts +40 -0
- package/dist/components/erd/canvas/table-group/titleLayout.d.ts +45 -0
- package/dist/components/erd/canvas/useMoveEntity.d.ts +2 -0
- package/dist/components/erd/draw-target/DrawTargetButtons.d.ts +16 -0
- package/dist/components/erd/draw-target/DrawTargetButtons.styles.d.ts +14 -0
- package/dist/components/erd/draw-target/drawTargetState.d.ts +26 -0
- package/dist/components/erd/draw-target/findDrawTarget.d.ts +29 -0
- package/dist/components/erd/draw-target/placePill.d.ts +49 -0
- package/dist/components/erd/erd-context-menu/ErdContextMenu.d.ts +6 -0
- package/dist/components/erd/erd-context-menu/menus/drawRelationshipMenus.d.ts +3 -0
- package/dist/components/erd/erd-context-menu/menus/exportMenus.d.ts +7 -2
- package/dist/components/erd/erd-context-menu/menus/importMenus.d.ts +5 -1
- package/dist/components/erd/erd-context-menu/menus/relationshipMenus.d.ts +6 -2
- package/dist/components/erd/erd-context-menu/menus/showMenus.d.ts +3 -1
- package/dist/components/erd/erd-context-menu/menus/tablePlacementMenus.d.ts +3 -0
- package/dist/components/erd/floating-toolbar/ToolbarCompass.template.d.ts +3 -1
- package/dist/components/erd/hitTest.d.ts +16 -1
- package/dist/components/erd/minimap/MinimapScene.d.ts +1 -1
- package/dist/components/erd/minimap/table/Table.d.ts +3 -3
- package/dist/components/erd/minimap/table-group/TableGroup.d.ts +17 -0
- package/dist/components/erd/table-group/TableGroupDraft.d.ts +15 -0
- package/dist/components/erd/table-group/TableGroupDraft.styles.d.ts +6 -0
- package/dist/components/erd/table-group/tableGroupName.d.ts +21 -0
- package/dist/components/erd/table-group/useTableGroupDraw.d.ts +25 -0
- package/dist/components/erd/table-properties/TableProperties.styles.d.ts +2 -2
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-key/IndexesKey.d.ts +6 -0
- package/dist/components/erd/table-properties/table-properties-tabs/TablePropertiesTabs.d.ts +3 -0
- package/dist/components/erd/welcome-screen/WelcomeScreen.d.ts +17 -0
- package/dist/components/erd/welcome-screen/WelcomeScreen.styles.d.ts +17 -0
- package/dist/components/erd/welcome-screen/welcome-hints/WelcomeHints.d.ts +21 -0
- package/dist/components/erd/welcome-screen/welcome-hints/WelcomeHints.styles.d.ts +14 -0
- package/dist/components/erd/welcome-screen/welcome-hints/hintArrows.d.ts +10 -0
- package/dist/components/erd/welcome-screen/welcomeLayout.d.ts +87 -0
- package/dist/components/erd-editor/ErdEditor.d.ts +66 -6
- package/dist/components/erd-editor/useErdEditorAttachElement.d.ts +14 -1
- package/dist/components/export-image/ExportImage.d.ts +23 -0
- package/dist/components/export-image/ExportImage.styles.d.ts +34 -0
- package/dist/components/export-image/exportImageActions.d.ts +48 -0
- package/dist/components/find-replace/panelLayout.d.ts +4 -1
- package/dist/components/generator-code/GeneratorCode.d.ts +1 -0
- package/dist/components/generator-code/generator-code-context-menu/GeneratorCodeContextMenu.d.ts +3 -0
- package/dist/components/generator-code/generator-code-context-menu/menus/columnNameCaseMenus.d.ts +3 -0
- package/dist/components/generator-code/generator-code-context-menu/menus/languageMenus.d.ts +8 -0
- package/dist/components/generator-code/generator-code-context-menu/menus/tableNameCaseMenus.d.ts +3 -0
- package/dist/components/generator-code/generator-code-options/GeneratorCodeOptions.d.ts +17 -0
- package/dist/components/generator-code/generator-code-options/GeneratorCodeOptions.styles.d.ts +5 -0
- package/dist/components/generator-code/generatorCodeView.d.ts +12 -0
- package/dist/components/generator-code/languageSettings.d.ts +14 -0
- package/dist/components/locale-picker/LocalePicker.d.ts +13 -0
- package/dist/components/locale-picker/LocalePicker.styles.d.ts +19 -0
- package/dist/components/localeContext.d.ts +10 -0
- package/dist/components/localized/Localized.d.ts +18 -0
- package/dist/components/map-columns/MapColumnsBody.d.ts +24 -0
- package/dist/components/map-columns/MapColumnsDialog.d.ts +13 -0
- package/dist/components/map-columns/MapColumnsDialog.styles.d.ts +38 -0
- package/dist/components/map-columns/mapColumnsAction.d.ts +13 -0
- package/dist/components/map-columns/nameOf.d.ts +6 -0
- package/dist/components/map-columns/openMapColumns.d.ts +9 -0
- package/dist/components/primitives/code-block/CodeBlock.d.ts +6 -1
- package/dist/components/primitives/code-block/CodeBlock.styles.d.ts +2 -0
- package/dist/components/primitives/color-picker/ColorPicker.d.ts +10 -1
- package/dist/components/primitives/color-picker/ColorPicker.styles.d.ts +25 -0
- package/dist/components/primitives/color-picker/colorModel.d.ts +36 -0
- package/dist/components/primitives/color-picker/presetColors.d.ts +13 -0
- package/dist/components/primitives/color-picker/resolveColor.d.ts +7 -0
- package/dist/components/primitives/context-menu/ContextMenu.d.ts +2 -0
- package/dist/components/primitives/context-menu/context-menu-content/ContextMenuContent.d.ts +1 -0
- package/dist/components/primitives/context-menu/context-menu-content/fitMenu.d.ts +4 -4
- package/dist/components/primitives/context-menu/context-menu-separator/ContextMenuSeparator.d.ts +8 -0
- package/dist/components/primitives/context-menu/context-menu-separator/ContextMenuSeparator.styles.d.ts +2 -0
- package/dist/components/primitives/context-menu/menu/Menu.d.ts +2 -0
- package/dist/components/primitives/context-menu/submenu-chevron/SubmenuChevron.d.ts +5 -0
- package/dist/components/primitives/dialog/Dialog.d.ts +21 -0
- package/dist/components/primitives/dialog/Dialog.styles.d.ts +12 -0
- package/dist/components/primitives/highlighted-text/HighlightedText.d.ts +2 -5
- package/dist/components/primitives/icon/icons.d.ts +17 -0
- package/dist/components/primitives/select/Select.d.ts +18 -0
- package/dist/components/primitives/select/Select.styles.d.ts +13 -0
- package/dist/components/primitives/text-input/TextInput.d.ts +2 -0
- package/dist/components/primitives/toast/Toast.d.ts +5 -1
- package/dist/components/primitives/toast/Toast.styles.d.ts +2 -2
- package/dist/components/quick-search/QuickSearch.d.ts +2 -1
- package/dist/components/quick-search/actions.d.ts +40 -5
- package/dist/components/quick-search/hangul.d.ts +16 -10
- package/dist/components/quick-search/paletteQuery.d.ts +5 -4
- package/dist/components/quick-search/scopedActions.d.ts +6 -5
- package/dist/components/schema-sql/SchemaSQL.d.ts +2 -0
- package/dist/components/schema-sql/SchemaSQL.styles.d.ts +7 -0
- package/dist/components/schema-sql/schema-sql-context-menu/SchemaSQLContextMenu.d.ts +3 -0
- package/dist/components/schema-sql/schema-sql-context-menu/menus/bracketMenus.d.ts +3 -0
- package/dist/components/schema-sql/schema-sql-context-menu/menus/headerMenus.d.ts +29 -0
- package/dist/components/schema-sql/schema-sql-context-menu/menus/statementsMenus.d.ts +27 -0
- package/dist/components/schema-sql/schema-sql-options/SchemaSQLOptions.d.ts +24 -0
- package/dist/components/schema-sql/schema-sql-options/SchemaSQLOptions.styles.d.ts +45 -0
- package/dist/components/schema-sql/schema-sql-options/ScriptEditor.d.ts +20 -0
- package/dist/components/schema-sql/schema-sql-options/ScriptEditor.styles.d.ts +13 -0
- package/dist/components/schema-sql/schema-sql-options/dropWarning.d.ts +8 -0
- package/dist/components/schema-sql/schemaSQLView.d.ts +71 -0
- package/dist/components/settings/Settings.styles.d.ts +7 -0
- package/dist/components/settings/columnTypeLabels.d.ts +8 -0
- package/dist/components/settings/lockSettingRows.d.ts +16 -0
- package/dist/components/settings/settings-lnb/SettingsLnb.d.ts +3 -0
- package/dist/components/settings/settingsPage.d.ts +10 -0
- package/dist/components/theme-builder/ThemeBuilder.d.ts +9 -1
- package/dist/components/theme-builder/ThemeBuilder.styles.d.ts +8 -5
- package/dist/components/toast-container/openStatusToast.d.ts +29 -0
- package/dist/components/toast-container/openToastWhileRunning.d.ts +1 -1
- package/dist/components/toolbar/Toolbar.d.ts +1 -0
- package/dist/components/visualization/graph-node/GraphNode.d.ts +2 -2
- package/dist/components/visualization/graphPan.d.ts +12 -0
- package/dist/components/visualization/visualizationView.d.ts +2 -2
- package/dist/constants/language.d.ts +1 -1
- package/dist/constants/layout.d.ts +34 -0
- package/dist/constants/open.d.ts +3 -0
- package/dist/constants/schema.d.ts +25 -4
- package/dist/constants/sql/dataType/PostgreSQL.d.ts +2 -1
- package/dist/constants/sql/dataType/SQLite.d.ts +3 -1
- package/dist/engine/actions.d.ts +20 -2
- package/dist/engine/context.d.ts +6 -0
- package/dist/engine/index.js +26 -21
- package/dist/engine/modules/editor/actions.d.ts +10 -2
- package/dist/engine/modules/editor/atom.actions.d.ts +49 -11
- package/dist/engine/modules/editor/generator.actions.d.ts +107 -8
- package/dist/engine/modules/editor/state.d.ts +16 -3
- package/dist/engine/modules/editor/utils/color.d.ts +21 -0
- package/dist/engine/modules/editor/utils/duplicate.d.ts +28 -1
- package/dist/engine/modules/editor/utils/focus.d.ts +16 -0
- package/dist/engine/modules/editor/utils/releaseHidden.d.ts +16 -0
- package/dist/engine/modules/editor/utils/selection.d.ts +12 -0
- package/dist/engine/modules/relationship/actions.d.ts +6 -0
- package/dist/engine/modules/relationship/atom.actions.d.ts +57 -1
- package/dist/engine/modules/relationship/endFlags.d.ts +14 -0
- package/dist/engine/modules/relationship/fkColumns.d.ts +25 -6
- package/dist/engine/modules/relationship/history.d.ts +1 -0
- package/dist/engine/modules/relationship/hooks.d.ts +0 -11
- package/dist/engine/modules/relationship/referenceType.d.ts +12 -0
- package/dist/engine/modules/settings/actions.d.ts +17 -4
- package/dist/engine/modules/settings/atom.actions.d.ts +63 -19
- package/dist/engine/modules/settings/generator.actions.d.ts +7 -0
- package/dist/engine/modules/settings/history.d.ts +1 -0
- package/dist/engine/modules/table/actions.d.ts +8 -0
- package/dist/engine/modules/table/atom.actions.d.ts +31 -0
- package/dist/engine/modules/table/generator.actions.d.ts +3 -3
- package/dist/engine/modules/table/history.d.ts +1 -0
- package/dist/engine/modules/table-column/generator.actions.d.ts +8 -0
- package/dist/engine/modules/table-column/hooks.d.ts +0 -6
- package/dist/engine/modules/table-column/keys.d.ts +14 -0
- package/dist/engine/modules/table-column/utils/dataType.d.ts +19 -1
- package/dist/engine/modules/table-group/actions.d.ts +63 -0
- package/dist/engine/modules/table-group/atom.actions.d.ts +238 -0
- package/dist/engine/modules/table-group/generator.actions.d.ts +111 -0
- package/dist/engine/modules/table-group/history.d.ts +13 -0
- package/dist/engine/peer-store.d.ts +9 -3
- package/dist/engine/replication-store.d.ts +6 -3
- package/dist/engine/rx-operators/groupByStreamActions.d.ts +5 -1
- package/dist/engine/rx-operators/lockIgnoreFilter.d.ts +8 -0
- package/dist/engine/rx-store.d.ts +2 -0
- package/dist/engine/settle.d.ts +9 -0
- package/dist/engine/store-hooks.d.ts +0 -8
- package/dist/erd-editor.umd.js +2100 -4194
- package/dist/hooks/useNavigatorLanguages.d.ts +7 -0
- package/dist/i18n/locales.d.ts +126 -0
- package/dist/i18n/menuLabel.d.ts +12 -0
- package/dist/i18n/messages/ar-SA.d.ts +399 -0
- package/dist/i18n/messages/de-DE.d.ts +375 -0
- package/dist/i18n/messages/en/code.d.ts +17 -0
- package/dist/i18n/messages/en/colorPicker.d.ts +35 -0
- package/dist/i18n/messages/en/common.d.ts +65 -0
- package/dist/i18n/messages/en/contextMenu.d.ts +29 -0
- package/dist/i18n/messages/en/exportImage.d.ts +25 -0
- package/dist/i18n/messages/en/feedback.d.ts +11 -0
- package/dist/i18n/messages/en/findReplace.d.ts +36 -0
- package/dist/i18n/messages/en/floatingToolbar.d.ts +12 -0
- package/dist/i18n/messages/en/index.d.ts +378 -0
- package/dist/i18n/messages/en/mapColumns.d.ts +39 -0
- package/dist/i18n/messages/en/palette.d.ts +40 -0
- package/dist/i18n/messages/en/schemaSql.d.ts +28 -0
- package/dist/i18n/messages/en/settings.d.ts +22 -0
- package/dist/i18n/messages/en/shortcuts.d.ts +32 -0
- package/dist/i18n/messages/en/tableProperties.d.ts +34 -0
- package/dist/i18n/messages/en/themeBuilder.d.ts +7 -0
- package/dist/i18n/messages/en/toolbar.d.ts +9 -0
- package/dist/i18n/messages/en/visualization.d.ts +12 -0
- package/dist/i18n/messages/en/welcome.d.ts +13 -0
- package/dist/i18n/messages/es-ES.d.ts +381 -0
- package/dist/i18n/messages/eu-ES.d.ts +375 -0
- package/dist/i18n/messages/fa-IR.d.ts +375 -0
- package/dist/i18n/messages/fr-FR.d.ts +381 -0
- package/dist/i18n/messages/he-IL.d.ts +381 -0
- package/dist/i18n/messages/id-ID.d.ts +369 -0
- package/dist/i18n/messages/index.d.ts +11 -0
- package/dist/i18n/messages/it-IT.d.ts +381 -0
- package/dist/i18n/messages/ja-JP.d.ts +369 -0
- package/dist/i18n/messages/ko-KR.d.ts +369 -0
- package/dist/i18n/messages/nl-NL.d.ts +375 -0
- package/dist/i18n/messages/pl-PL.d.ts +387 -0
- package/dist/i18n/messages/pt-BR.d.ts +381 -0
- package/dist/i18n/messages/pt-PT.d.ts +381 -0
- package/dist/i18n/messages/ro-RO.d.ts +381 -0
- package/dist/i18n/messages/ru-RU.d.ts +387 -0
- package/dist/i18n/messages/sk-SK.d.ts +387 -0
- package/dist/i18n/messages/sl-SI.d.ts +387 -0
- package/dist/i18n/messages/sv-SE.d.ts +375 -0
- package/dist/i18n/messages/tr-TR.d.ts +375 -0
- package/dist/i18n/messages/uk-UA.d.ts +387 -0
- package/dist/i18n/messages/zh-CN.d.ts +369 -0
- package/dist/i18n/messages/zh-TW.d.ts +369 -0
- package/dist/i18n/resolveLocale.d.ts +11 -0
- package/dist/i18n/source.d.ts +7 -0
- package/dist/i18n/translate.d.ts +58 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +29797 -13894
- package/dist/internal-types/index.d.ts +2 -4
- package/dist/konva/scene/contentBounds.d.ts +18 -12
- package/dist/konva/scene/metrics.d.ts +2 -0
- package/dist/konva/scene/renderScene.d.ts +10 -4
- package/dist/konva/scene/stacking.d.ts +21 -0
- package/dist/konva/scene/viewLayout.d.ts +2 -1
- package/dist/loadValue-B3EFSe9k.js +12925 -0
- package/dist/peer/index.d.ts +6 -3
- package/dist/peer/index.js +83 -76
- package/dist/services/elk-layout/elkGraph.d.ts +6 -4
- package/dist/services/elk-layout/elkLayoutOptions.d.ts +20 -0
- package/dist/services/elk-layout/elkLayoutService.d.ts +3 -3
- package/dist/services/export-png/ExportScene.d.ts +3 -3
- package/dist/services/export-png/documentScene.d.ts +14 -9
- package/dist/services/export-png/exportBox.d.ts +40 -5
- package/dist/services/export-png/exportPngService.d.ts +15 -0
- package/dist/services/export-png/exportTheme.d.ts +26 -0
- package/dist/services/export-png/index.d.ts +44 -11
- package/dist/services/export-png/renderPng.d.ts +18 -10
- package/dist/services/export-png/renderSvg.d.ts +22 -0
- package/dist/services/export-png/sceneSvg.d.ts +54 -0
- package/dist/services/shiki/graphqlGrammar.d.ts +8 -0
- package/dist/shared-store-fUggY7sI.js +1341 -0
- package/dist/themes/radix-ui-theme.d.ts +11 -3
- package/dist/themes/tokens.d.ts +9 -0
- package/dist/utils/calcTable.d.ts +9 -0
- package/dist/utils/clipboard.d.ts +9 -0
- package/dist/utils/collection/tableGroup.entity.d.ts +3 -0
- package/dist/utils/contrastText.d.ts +21 -0
- package/dist/utils/deepMerge.d.ts +8 -0
- package/dist/utils/device-detect/index.d.ts +2 -6
- package/dist/utils/domEvent.d.ts +18 -0
- package/dist/utils/dragSelect.d.ts +2 -0
- package/dist/utils/draw-relationship/bezier.d.ts +2 -0
- package/dist/utils/draw-relationship/corner.d.ts +9 -0
- package/dist/utils/draw-relationship/index.d.ts +18 -18
- package/dist/utils/draw-relationship/loop.d.ts +29 -0
- package/dist/utils/draw-relationship/pathFinding.d.ts +1 -1
- package/dist/utils/draw-relationship/sort.d.ts +8 -1
- package/dist/utils/draw-relationship/stub.d.ts +4 -3
- package/dist/utils/emitter.d.ts +53 -6
- package/dist/utils/file/exportFile.d.ts +15 -5
- package/dist/utils/file/importFile.d.ts +9 -5
- package/dist/utils/file/importSchema.d.ts +45 -0
- package/dist/utils/find-replace/findMatches.d.ts +1 -1
- package/dist/utils/find-replace/present.d.ts +5 -3
- package/dist/utils/generator-code/columnTypes.d.ts +99 -0
- package/dist/utils/generator-code/doctrine.d.ts +6 -0
- package/dist/utils/generator-code/doctrineReservedWords.d.ts +7 -0
- package/dist/utils/generator-code/graphql.d.ts +6 -0
- package/dist/utils/generator-code/heck.d.ts +5 -0
- package/dist/utils/generator-code/java.d.ts +28 -0
- package/dist/utils/generator-code/jsonSchema.d.ts +50 -0
- package/dist/utils/generator-code/jsonShape.d.ts +37 -0
- package/dist/utils/generator-code/kotlin.d.ts +1 -0
- package/dist/utils/generator-code/mermaid.d.ts +5 -0
- package/dist/utils/generator-code/php.d.ts +28 -0
- package/dist/utils/generator-code/rust.d.ts +13 -0
- package/dist/utils/generator-code/rustTypes.d.ts +44 -0
- package/dist/utils/generator-code/scala.d.ts +1 -0
- package/dist/utils/generator-code/seaorm.d.ts +22 -0
- package/dist/utils/generator-code/swift.d.ts +44 -0
- package/dist/utils/generator-code/utils.d.ts +19 -0
- package/dist/utils/generator-code/zod.d.ts +25 -0
- package/dist/utils/globalEventObservable.d.ts +10 -1
- package/dist/utils/highlightWords.d.ts +29 -0
- package/dist/utils/index.d.ts +1 -2
- package/dist/utils/keyboard-shortcut/bindKeys.d.ts +9 -0
- package/dist/utils/keyboard-shortcut/index.d.ts +11 -4
- package/dist/utils/keyboard-shortcut/utils.d.ts +21 -0
- package/dist/utils/map-columns/alignTypes.d.ts +37 -0
- package/dist/utils/map-columns/buildRows.d.ts +102 -0
- package/dist/utils/map-columns/candidateKeys.d.ts +24 -0
- package/dist/utils/map-columns/index.d.ts +8 -0
- package/dist/utils/map-columns/mapping.d.ts +67 -0
- package/dist/utils/map-columns/prefill.d.ts +26 -0
- package/dist/utils/map-columns/toMapColumnsActions.d.ts +10 -0
- package/dist/utils/map-columns/validate.d.ts +45 -0
- package/dist/utils/memo.d.ts +4 -0
- package/dist/utils/schema-aml-parser/types.d.ts +2 -0
- package/dist/utils/schema-dbml-parser/tokenizer.d.ts +2 -0
- package/dist/utils/schema-dbml-parser/types.d.ts +11 -0
- package/dist/utils/schema-sql/Databricks.d.ts +8 -3
- package/dist/utils/schema-sql/MSSQL.d.ts +14 -2
- package/dist/utils/schema-sql/MariaDB.d.ts +6 -5
- package/dist/utils/schema-sql/MySQL.d.ts +13 -4
- package/dist/utils/schema-sql/Oracle.d.ts +19 -5
- package/dist/utils/schema-sql/PostgreSQL.d.ts +16 -4
- package/dist/utils/schema-sql/SQLite.d.ts +16 -4
- package/dist/utils/schema-sql/Snowflake.d.ts +8 -3
- package/dist/utils/schema-sql/index.d.ts +16 -1
- package/dist/utils/schema-sql/options.d.ts +57 -0
- package/dist/utils/schema-sql/utils.d.ts +101 -2
- package/dist/utils/stageCursor.d.ts +20 -0
- package/dist/utils/table-clipboard/placement.d.ts +2 -0
- package/dist/utils/tableColor.d.ts +29 -0
- package/dist/utils/tableGroup.d.ts +142 -0
- package/dist/utils/tableKeys.d.ts +11 -3
- package/dist/workers/elkLayout.shared-worker.js +1 -1
- package/dist/workers/exportPng.shared-worker.js +30 -30
- package/dist/workers/shiki.shared-worker.js +1 -1
- package/dist/workers/spawn.d.ts +1 -2
- package/dist/workers/spawn.inline.d.ts +0 -1
- package/package.json +6 -13
- package/dist/components/generator-code/GeneratorCode.styles.d.ts +0 -2
- package/dist/loadValue-Mdc5K4qO.js +0 -10858
- package/dist/schemaGCService-CZtGFh2z.js +0 -42
- package/dist/services/schema-gc/index.d.ts +0 -18
- package/dist/services/schema-gc/procGC.d.ts +0 -4
- package/dist/services/schema-gc/schemaGC.shared-worker.d.ts +0 -2
- package/dist/services/schema-gc/schemaGCService.d.ts +0 -10
- package/dist/shared-store-D82WVL5a.js +0 -1129
- package/dist/styles/colorPicker.style.d.ts +0 -7
- package/dist/utils/draw-relationship/chamfer.d.ts +0 -3
- package/dist/workers/schemaGC.shared-worker.js +0 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { LocaleMessages } from '../../i18n/translate';
|
|
1
2
|
import { Theme } from '../../themes/tokens';
|
|
2
3
|
import { ResolutionReduction } from './renderPng';
|
|
3
4
|
import { ToWidth } from './textWidth';
|
|
@@ -27,29 +28,61 @@ export type DocumentPngOptions = {
|
|
|
27
28
|
* than to be called across a boundary a function does not cross.
|
|
28
29
|
*/
|
|
29
30
|
toWidth: ToWidth;
|
|
31
|
+
/** Image pixels per scene unit: the scale a dialog picks, 1 when left out. */
|
|
30
32
|
pixelRatio?: number;
|
|
31
33
|
/**
|
|
32
|
-
* The
|
|
33
|
-
*
|
|
34
|
-
* out, the image is drawn at the zoom the document carries.
|
|
34
|
+
* The language the scene's own words are drawn in, a table with no name say.
|
|
35
|
+
* Left out, the scene draws them in English.
|
|
35
36
|
*/
|
|
36
|
-
|
|
37
|
+
i18n?: LocaleMessages;
|
|
37
38
|
/**
|
|
38
|
-
* Called once, after a file exists, when the
|
|
39
|
-
*
|
|
40
|
-
*
|
|
39
|
+
* Called once, after a file exists, when the pixels the scale asked for
|
|
40
|
+
* outran what a canvas holds, with those and the pixels written. A caller
|
|
41
|
+
* with somewhere to put it tells the author of a loss that is otherwise silent.
|
|
41
42
|
*/
|
|
42
43
|
onResolutionReduced?: (reduction: ResolutionReduction) => void;
|
|
43
44
|
/** Called as the export moves, for a caller that shows it is running. */
|
|
44
45
|
onProgress?: (progress: ExportPngProgress) => void;
|
|
45
46
|
};
|
|
46
47
|
/**
|
|
47
|
-
* A png of everything the document draws, at
|
|
48
|
-
* scene is drawn again from the document rather than read off the
|
|
49
|
-
* the image holds the whole document however far it was scrolled away.
|
|
48
|
+
* A png of everything the document draws, at 100% whatever zoom it is being
|
|
49
|
+
* read at. The scene is drawn again from the document rather than read off the
|
|
50
|
+
* screen, so the image holds the whole document however far it was scrolled away.
|
|
50
51
|
*
|
|
51
52
|
* @example
|
|
52
53
|
* const blob = await createDocumentPng({ doc: toJson(store.state), theme, toWidth });
|
|
53
54
|
*/
|
|
54
|
-
export declare function createDocumentPng({ doc, theme, toWidth, pixelRatio,
|
|
55
|
+
export declare function createDocumentPng({ doc, theme, toWidth, pixelRatio, i18n, onResolutionReduced, onProgress, }: DocumentPngOptions): Promise<Blob>;
|
|
56
|
+
export type DocumentPreviewOptions = Pick<DocumentPngOptions, 'doc' | 'theme' | 'toWidth' | 'i18n'> & {
|
|
57
|
+
/** The longest side the preview may take, in pixels. */
|
|
58
|
+
maxSide: number;
|
|
59
|
+
};
|
|
60
|
+
/** A small png of the export, and the box the export itself is measured by. */
|
|
61
|
+
export type DocumentPreview = {
|
|
62
|
+
blob: Blob;
|
|
63
|
+
width: number;
|
|
64
|
+
height: number;
|
|
65
|
+
/** The box the export holds, in scene units, margin included. */
|
|
66
|
+
documentWidth: number;
|
|
67
|
+
documentHeight: number;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* The export drawn small, for a dialog to show before any file is written. It
|
|
71
|
+
* takes the same path as the export, worker first, so the picture is the one
|
|
72
|
+
* the file will hold, its scale capped at the side it is given.
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* const preview = await createDocumentPreview({ doc, theme, toWidth, maxSide: 1280 });
|
|
76
|
+
*/
|
|
77
|
+
export declare function createDocumentPreview({ doc, theme, toWidth, maxSide, i18n, }: DocumentPreviewOptions): Promise<DocumentPreview>;
|
|
78
|
+
export type DocumentSvgOptions = Pick<DocumentPngOptions, 'doc' | 'theme' | 'toWidth' | 'i18n'>;
|
|
79
|
+
/**
|
|
80
|
+
* An svg of everything the document draws, at 100% as the png is. It takes
|
|
81
|
+
* the png's path, worker first, and leaves the scale out, since a vector is
|
|
82
|
+
* sized by the box alone and holds no canvas ceiling to cut it.
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* const svg = await createDocumentSvg({ doc, theme, toWidth });
|
|
86
|
+
*/
|
|
87
|
+
export declare function createDocumentSvg({ doc, theme, toWidth, i18n, }: DocumentSvgOptions): Promise<string>;
|
|
55
88
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,24 +1,32 @@
|
|
|
1
|
+
import { LocaleMessages } from '../../i18n/translate';
|
|
1
2
|
import { Theme } from '../../themes/tokens';
|
|
3
|
+
import { ExportSize } from './exportBox';
|
|
2
4
|
import { ToWidth } from './textWidth';
|
|
3
|
-
/**
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
height: number;
|
|
9
|
-
};
|
|
5
|
+
/**
|
|
6
|
+
* The raster the scale asked for and the one that fitted inside a canvas, in
|
|
7
|
+
* the very fields the export dialog reads its warning from.
|
|
8
|
+
*/
|
|
9
|
+
export type ResolutionReduction = Omit<ExportSize, 'reduced'>;
|
|
10
10
|
/** Everything a png needs that survives a structured clone to another realm. */
|
|
11
11
|
export type RenderPngRequest = {
|
|
12
12
|
doc: string;
|
|
13
13
|
theme: Theme;
|
|
14
14
|
pixelRatio: number;
|
|
15
|
-
/**
|
|
16
|
-
|
|
15
|
+
/**
|
|
16
|
+
* The longest side the drawn box may take, in pixels, for an image that only
|
|
17
|
+
* previews an export. Left out, the box is drawn at the export's zoom.
|
|
18
|
+
*/
|
|
19
|
+
maxSide?: number;
|
|
20
|
+
/** The language the scene's own words are drawn in; English when left out. */
|
|
21
|
+
i18n?: LocaleMessages;
|
|
17
22
|
};
|
|
18
23
|
export type RenderPngResult = {
|
|
19
24
|
blob: Blob;
|
|
20
25
|
width: number;
|
|
21
26
|
height: number;
|
|
27
|
+
/** The box the image holds, in scene units, margin included. */
|
|
28
|
+
documentWidth: number;
|
|
29
|
+
documentHeight: number;
|
|
22
30
|
/**
|
|
23
31
|
* Null when the box kept every pixel it was written with. A realm that drew
|
|
24
32
|
* the image is the only one that knows this, so it is carried back rather
|
|
@@ -34,7 +42,7 @@ export type RenderPngResult = {
|
|
|
34
42
|
* @example
|
|
35
43
|
* const { blob } = await renderDocumentPng({ doc, theme, pixelRatio: 1, toWidth });
|
|
36
44
|
*/
|
|
37
|
-
export declare function renderDocumentPng({ doc, theme, pixelRatio,
|
|
45
|
+
export declare function renderDocumentPng({ doc, theme, pixelRatio, maxSide, i18n, toWidth, }: RenderPngRequest & {
|
|
38
46
|
toWidth: ToWidth;
|
|
39
47
|
}): Promise<RenderPngResult>;
|
|
40
48
|
//# sourceMappingURL=renderPng.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { LocaleMessages } from '../../i18n/translate';
|
|
2
|
+
import { Theme } from '../../themes/tokens';
|
|
3
|
+
import { ToWidth } from './textWidth';
|
|
4
|
+
/** Everything an svg needs that survives a structured clone to another realm. */
|
|
5
|
+
export type RenderSvgRequest = {
|
|
6
|
+
doc: string;
|
|
7
|
+
theme: Theme;
|
|
8
|
+
/** The language the scene's own words are drawn in; English when left out. */
|
|
9
|
+
i18n?: LocaleMessages;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* The whole document as an svg, at the export's zoom and with no scale, since
|
|
13
|
+
* a vector has no pixels to multiply. It draws the scene the png draws, in
|
|
14
|
+
* whichever realm calls it, and reads the svg off that scene's nodes.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* const svg = await renderDocumentSvg({ doc, theme, toWidth });
|
|
18
|
+
*/
|
|
19
|
+
export declare function renderDocumentSvg({ doc, theme, i18n, toWidth, }: RenderSvgRequest & {
|
|
20
|
+
toWidth: ToWidth;
|
|
21
|
+
}): Promise<string>;
|
|
22
|
+
//# sourceMappingURL=renderSvg.d.ts.map
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Stage } from 'konva/lib/Stage';
|
|
2
|
+
import { Rect } from '../../konva/scene/metrics';
|
|
3
|
+
/** The seven node kinds the scene is built of, by the class name konva gives each. */
|
|
4
|
+
export declare const SVG_NODE_KINDS: readonly ["Layer", "Group", "Rect", "Text", "Path", "Line", "Circle"];
|
|
5
|
+
export type SvgNodeKind = (typeof SVG_NODE_KINDS)[number];
|
|
6
|
+
/**
|
|
7
|
+
* What the writer reads off each kind. A layer is placed past the box mapped
|
|
8
|
+
* onto the Stage, which the viewBox maps instead, and a text is written in the
|
|
9
|
+
* lines konva wrapped and cut it to.
|
|
10
|
+
*/
|
|
11
|
+
export declare const SVG_WRITTEN_ATTRIBUTES: Record<SvgNodeKind, readonly string[]>;
|
|
12
|
+
/**
|
|
13
|
+
* What the writer leaves out on purpose: names and the editor's bookkeeping,
|
|
14
|
+
* what only the hit canvas reads, and the shadows an exported svg draws none of.
|
|
15
|
+
*/
|
|
16
|
+
export declare const SVG_SKIPPED_ATTRIBUTES: readonly string[];
|
|
17
|
+
export type SceneSvgOptions = {
|
|
18
|
+
/**
|
|
19
|
+
* What the image holds, in scene units, which the viewBox is and, an export
|
|
20
|
+
* being drawn at 100%, its width and height too.
|
|
21
|
+
*/
|
|
22
|
+
box: Rect;
|
|
23
|
+
/** The factor the layers place that box onto the Stage by. */
|
|
24
|
+
scale: number;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* A colour as the file writes it: an opaque colour, and the alpha it carried
|
|
28
|
+
* apart from it, rounded to the digits an opacity is written in.
|
|
29
|
+
*/
|
|
30
|
+
export type Paint = {
|
|
31
|
+
color: string;
|
|
32
|
+
opacity: number;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Whether a colour paints anything at all, and how. A hit box answers the
|
|
36
|
+
* pointer with a transparent fill, which the svg has no pointer to answer, so
|
|
37
|
+
* it is left out, as is a colour whose alpha rounds to none.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* toPaint('transparent'); // null
|
|
41
|
+
* toPaint('#00071b7f'); // { color: '#00071b', opacity: 0.498 }
|
|
42
|
+
*/
|
|
43
|
+
export declare function toPaint(color: unknown): Paint | null;
|
|
44
|
+
/**
|
|
45
|
+
* The scene on a Stage as one svg document, walked node by node, so it runs
|
|
46
|
+
* wherever the Stage was drawn, a worker included. The fonts are named, never
|
|
47
|
+
* embedded, and the shadows are left out, as the export dialog promises.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* const { stage, box, scale } = scene;
|
|
51
|
+
* const svg = toSceneSvg(stage, { box, scale });
|
|
52
|
+
*/
|
|
53
|
+
export declare function toSceneSvg(stage: Stage, options: SceneSvgOptions): string;
|
|
54
|
+
//# sourceMappingURL=sceneSvg.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LanguageRegistration } from 'shiki/core';
|
|
2
|
+
/**
|
|
3
|
+
* Shiki's GraphQL grammar without its embeddedLangs, the JavaScript, TypeScript,
|
|
4
|
+
* JSX and TSX of a GraphQL string inside a script, which no generated schema
|
|
5
|
+
* holds: they took the inlined shiki worker past Chromium's 2 MiB url limit.
|
|
6
|
+
*/
|
|
7
|
+
export declare const graphqlGrammar: LanguageRegistration;
|
|
8
|
+
//# sourceMappingURL=graphqlGrammar.d.ts.map
|