@formicoidea/labre-core 0.32.0 → 0.34.1
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/dist/_pkgs/affine-block-attachment/attachment-block.js +3 -3
- package/dist/_pkgs/affine-block-attachment/configs/toolbar.d.ts +2 -2
- package/dist/_pkgs/affine-block-attachment/configs/toolbar.js +9 -7
- package/dist/_pkgs/affine-block-bookmark/configs/toolbar.js +12 -12
- package/dist/_pkgs/affine-block-callout/callout-block.js +1 -1
- package/dist/_pkgs/affine-block-code/code-block-inline.js +1 -1
- package/dist/_pkgs/affine-block-code/code-block.js +2 -2
- package/dist/_pkgs/affine-block-code/code-toolbar/config.js +9 -1
- package/dist/_pkgs/affine-block-code/code-toolbar/index.js +1 -1
- package/dist/_pkgs/affine-block-database/data-source.js +1 -2
- package/dist/_pkgs/affine-block-database/database-block.js +2 -2
- package/dist/_pkgs/affine-block-database/external-data-source.js +1 -1
- package/dist/_pkgs/affine-block-edgeless-text/edgeless-text-block.js +1 -1
- package/dist/_pkgs/affine-block-edgeless-text/edgeless-toolbar/config.js +1 -1
- package/dist/_pkgs/affine-block-embed/common/render-linked-doc.js +3 -3
- package/dist/_pkgs/affine-block-embed/configs/toolbar.js +11 -11
- package/dist/_pkgs/affine-block-embed/embed-figma-block/embed-figma-service.js +1 -1
- package/dist/_pkgs/affine-block-embed/embed-html-block/configs/toolbar.js +5 -5
- package/dist/_pkgs/affine-block-embed/embed-iframe-block/configs/toolbar.d.ts +7 -7
- package/dist/_pkgs/affine-block-embed/embed-iframe-block/configs/toolbar.js +14 -14
- package/dist/_pkgs/affine-block-embed/embed-iframe-block/embed-iframe-block.js +2 -2
- package/dist/_pkgs/affine-block-embed-doc/embed-linked-doc-block/configs/toolbar.js +10 -10
- package/dist/_pkgs/affine-block-embed-doc/embed-linked-doc-block/embed-linked-doc-block.js +4 -4
- package/dist/_pkgs/affine-block-embed-doc/embed-linked-doc-block/utils.js +1 -1
- package/dist/_pkgs/affine-block-embed-doc/embed-synced-doc-block/components/embed-synced-doc-card.js +5 -4
- package/dist/_pkgs/affine-block-embed-doc/embed-synced-doc-block/configs/toolbar.js +10 -10
- package/dist/_pkgs/affine-block-embed-doc/embed-synced-doc-block/embed-synced-doc-block.js +1 -1
- package/dist/_pkgs/affine-block-frame/frame-manager.js +3 -1
- package/dist/_pkgs/affine-block-frame/frame-tool.js +1 -1
- package/dist/_pkgs/affine-block-frame/frame-toolbar.js +2 -2
- package/dist/_pkgs/affine-block-image/components/page-image-block.js +1 -1
- package/dist/_pkgs/affine-block-image/configs/toolbar.js +4 -4
- package/dist/_pkgs/affine-block-image/image-edgeless-block.js +1 -1
- package/dist/_pkgs/affine-block-list/utils/forward-delete.js +1 -1
- package/dist/_pkgs/affine-block-note/commands/select-block.js +1 -1
- package/dist/_pkgs/affine-block-note/commands/select-blocks-between.js +1 -1
- package/dist/_pkgs/affine-block-note/configs/toolbar.js +2 -2
- package/dist/_pkgs/affine-block-note/move-block.js +1 -1
- package/dist/_pkgs/affine-block-paragraph/utils/forward-delete.js +2 -2
- package/dist/_pkgs/affine-block-paragraph/utils/merge-with-prev.js +1 -1
- package/dist/_pkgs/affine-block-root/configs/toolbar.d.ts +6 -4
- package/dist/_pkgs/affine-block-root/configs/toolbar.js +6 -6
- package/dist/_pkgs/affine-block-root/edgeless/configs/toolbar/misc.d.ts +10 -10
- package/dist/_pkgs/affine-block-root/edgeless/configs/toolbar/misc.js +4 -4
- package/dist/_pkgs/affine-block-root/edgeless/configs/toolbar/more.d.ts +7 -7
- package/dist/_pkgs/affine-block-root/edgeless/configs/toolbar/more.js +9 -9
- package/dist/_pkgs/affine-block-root/edgeless/edgeless-keyboard.js +1 -1
- package/dist/_pkgs/affine-block-root/edgeless/edgeless-root-block.js +3 -1
- package/dist/_pkgs/affine-block-root/edgeless/utils/clipboard-utils.js +1 -1
- package/dist/_pkgs/affine-block-surface/adapters/markdown/element-adapter/type.js +1 -1
- package/dist/_pkgs/affine-block-surface/adapters/plain-text/element-adapter/type.js +1 -1
- package/dist/_pkgs/affine-block-surface/element-model/index.d.ts +18 -3
- package/dist/_pkgs/affine-block-surface/element-model/index.js +12 -2
- package/dist/_pkgs/affine-block-surface/extensions/audit.js +23 -6
- package/dist/_pkgs/affine-block-surface/extensions/crud-extension.js +10 -5
- package/dist/_pkgs/affine-block-surface/extensions/editor-anchored-panel.js +2 -1
- package/dist/_pkgs/affine-block-surface/extensions/element-renderer.js +1 -1
- package/dist/_pkgs/affine-block-surface/extensions/export-manager/export-manager.js +1 -1
- package/dist/_pkgs/affine-block-surface/extensions/index.d.ts +4 -0
- package/dist/_pkgs/affine-block-surface/extensions/index.js +4 -0
- package/dist/_pkgs/affine-block-surface/extensions/interchange-import.d.ts +172 -0
- package/dist/_pkgs/affine-block-surface/extensions/interchange-import.js +404 -0
- package/dist/_pkgs/affine-block-surface/extensions/interchange.d.ts +323 -0
- package/dist/_pkgs/affine-block-surface/extensions/interchange.js +64 -0
- package/dist/_pkgs/affine-block-surface/extensions/map-quality-widget.js +61 -61
- package/dist/_pkgs/affine-block-surface/extensions/morph-toolbar.d.ts +248 -0
- package/dist/_pkgs/affine-block-surface/extensions/morph-toolbar.js +248 -0
- package/dist/_pkgs/affine-block-surface/extensions/reading-widget.js +78 -80
- package/dist/_pkgs/affine-block-surface/extensions/reading.js +2 -2
- package/dist/_pkgs/affine-block-surface/extensions/spotlight.d.ts +21 -0
- package/dist/_pkgs/affine-block-surface/extensions/spotlight.js +17 -3
- package/dist/_pkgs/affine-block-surface/extensions/svg-sketch.d.ts +107 -0
- package/dist/_pkgs/affine-block-surface/extensions/svg-sketch.js +958 -0
- package/dist/_pkgs/affine-block-surface/extensions/validation.d.ts +809 -20
- package/dist/_pkgs/affine-block-surface/extensions/validation.js +1661 -50
- package/dist/_pkgs/affine-block-surface/extensions/violation-detail-widget.d.ts +50 -6
- package/dist/_pkgs/affine-block-surface/extensions/violation-detail-widget.js +129 -32
- package/dist/_pkgs/affine-block-surface/framework-background/def.d.ts +289 -0
- package/dist/_pkgs/affine-block-surface/framework-background/def.js +126 -1
- package/dist/_pkgs/affine-block-surface/framework-background/labels.d.ts +42 -2
- package/dist/_pkgs/affine-block-surface/framework-background/labels.js +80 -4
- package/dist/_pkgs/affine-block-surface/framework-background/renderer.js +172 -11
- package/dist/_pkgs/affine-block-surface/index.d.ts +1 -0
- package/dist/_pkgs/affine-block-surface/index.js +1 -0
- package/dist/_pkgs/affine-block-surface/renderer/element-highlight-overlay.d.ts +17 -0
- package/dist/_pkgs/affine-block-surface/renderer/element-highlight-overlay.js +66 -0
- package/dist/_pkgs/affine-block-surface/renderer/overlay.js +1 -1
- package/dist/_pkgs/affine-block-surface/view.js +5 -0
- package/dist/_pkgs/affine-block-surface-ref/configs/toolbar.js +4 -4
- package/dist/_pkgs/affine-block-surface-ref/portal/note.js +2 -2
- package/dist/_pkgs/affine-block-table/commands.js +1 -1
- package/dist/_pkgs/affine-components/edgeless-shape-color-picker/color-picker.js +1 -1
- package/dist/_pkgs/affine-components/embed-card-modal/embed-card-edit-modal.js +1 -1
- package/dist/_pkgs/affine-components/filterable-list/styles.js +1 -1
- package/dist/_pkgs/affine-components/highlight-dropdown-menu/highlight-duotone-icon.js +8 -8
- package/dist/_pkgs/affine-components/highlight-dropdown-menu/text-duotone-icon.js +11 -11
- package/dist/_pkgs/affine-components/icons/text.js +426 -426
- package/dist/_pkgs/affine-components/open-doc-dropdown-menu/dropdown-menu.d.ts +2 -0
- package/dist/_pkgs/affine-components/peek/peekable.js +1 -1
- package/dist/_pkgs/affine-components/resource/resource.js +2 -0
- package/dist/_pkgs/affine-components/toolbar/index.d.ts +1 -0
- package/dist/_pkgs/affine-components/toolbar/index.js +1 -0
- package/dist/_pkgs/affine-components/toolbar/menu-button.js +1 -1
- package/dist/_pkgs/affine-components/toolbar/picker-menu.d.ts +55 -0
- package/dist/_pkgs/affine-components/toolbar/picker-menu.js +47 -0
- package/dist/_pkgs/affine-components/view-dropdown-menu/dropdown-menu.js +27 -14
- package/dist/_pkgs/affine-fragment-frame-panel/body/frame-panel-body.js +2 -2
- package/dist/_pkgs/affine-fragment-frame-panel/header/frame-panel-header.js +2 -2
- package/dist/_pkgs/affine-fragment-frame-panel/header/frames-setting-menu.js +1 -1
- package/dist/_pkgs/affine-fragment-outline/mobile-outline-panel.js +1 -1
- package/dist/_pkgs/affine-gfx-brush/toolbar/components/pen/pen-tool-button.js +1 -1
- package/dist/_pkgs/affine-gfx-connector/connector-manager.js +7 -10
- package/dist/_pkgs/affine-gfx-connector/connector-tool.d.ts +19 -1
- package/dist/_pkgs/affine-gfx-connector/connector-tool.js +10 -2
- package/dist/_pkgs/affine-gfx-connector/connector-watcher.js +1 -4
- package/dist/_pkgs/affine-gfx-connector/direction/direction-reveal.js +2 -1
- package/dist/_pkgs/affine-gfx-connector/direction/invert-direction.js +1 -3
- package/dist/_pkgs/affine-gfx-connector/element-renderer/index.js +1 -1
- package/dist/_pkgs/affine-gfx-connector/element-renderer/utils.js +1 -1
- package/dist/_pkgs/affine-gfx-connector/toolbar/config.js +1 -1
- package/dist/_pkgs/affine-gfx-mindmap/adapter/markdown/index.js +1 -1
- package/dist/_pkgs/affine-gfx-mindmap/adapter/utils.js +1 -1
- package/dist/_pkgs/affine-gfx-mindmap/templates/index.js +583 -4
- package/dist/_pkgs/affine-gfx-mindmap/toolbar/mindmap-menu.js +23 -23
- package/dist/_pkgs/affine-gfx-mindmap/toolbar/mindmap-tool-button.js +5 -1
- package/dist/_pkgs/affine-gfx-mindmap/view/utils.js +1 -1
- package/dist/_pkgs/affine-gfx-note/overlay/overlay.js +1 -1
- package/dist/_pkgs/affine-gfx-note/toolbar/note-senior-button.js +1 -1
- package/dist/_pkgs/affine-gfx-shape/consts.js +1 -1
- package/dist/_pkgs/affine-gfx-shape/draggable/shape-draggable.js +1 -1
- package/dist/_pkgs/affine-gfx-shape/element-renderer/shape/polygon.js +17 -9
- package/dist/_pkgs/affine-gfx-shape/element-renderer/shape/utils.js +8 -3
- package/dist/_pkgs/affine-gfx-shape/element-view.js +19 -12
- package/dist/_pkgs/affine-gfx-shape/overlay/polygon-drawing-overlay.js +1 -1
- package/dist/_pkgs/affine-gfx-shape/overlay/polygon-vertex-editing-overlay.js +12 -7
- package/dist/_pkgs/affine-gfx-shape/overlay/shape-overlay.js +1 -1
- package/dist/_pkgs/affine-gfx-shape/polygon-tool.js +4 -2
- package/dist/_pkgs/affine-gfx-shape/shape-tool.js +1 -1
- package/dist/_pkgs/affine-gfx-shape/text/edgeless-shape-text-editor.js +1 -3
- package/dist/_pkgs/affine-gfx-template/builtin/other.js +66 -17
- package/dist/_pkgs/affine-gfx-template/toolbar/overlay-scrollbar.js +1 -1
- package/dist/_pkgs/affine-gfx-template/toolbar/template-panel.js +1 -1
- package/dist/_pkgs/affine-gfx-text/toolbar/actions.js +1 -1
- package/dist/_pkgs/affine-inline-link/command.js +1 -1
- package/dist/_pkgs/affine-inline-link/link-node/configs/toolbar.d.ts +4 -4
- package/dist/_pkgs/affine-inline-link/link-node/configs/toolbar.js +6 -6
- package/dist/_pkgs/affine-inline-preset/command/format-block.js +1 -1
- package/dist/_pkgs/affine-inline-preset/command/format-native.js +2 -2
- package/dist/_pkgs/affine-inline-preset/command/format-text.js +1 -1
- package/dist/_pkgs/affine-inline-preset/inline-spec.js +1 -1
- package/dist/_pkgs/affine-inline-reference/reference-node/configs/toolbar.d.ts +4 -4
- package/dist/_pkgs/affine-inline-reference/reference-node/configs/toolbar.js +6 -6
- package/dist/_pkgs/affine-inline-reference/reference-node/reference-node.js +1 -1
- package/dist/_pkgs/affine-model/elements/bpmn/node.d.ts +40 -7
- package/dist/_pkgs/affine-model/elements/bpmn/node.js +4 -2
- package/dist/_pkgs/affine-model/elements/bpmn/pool.d.ts +135 -17
- package/dist/_pkgs/affine-model/elements/bpmn/pool.js +148 -26
- package/dist/_pkgs/affine-model/elements/c4/board.d.ts +88 -0
- package/dist/_pkgs/affine-model/elements/c4/board.js +128 -0
- package/dist/_pkgs/affine-model/elements/c4/boundary.d.ts +63 -0
- package/dist/_pkgs/affine-model/elements/c4/boundary.js +134 -0
- package/dist/_pkgs/affine-model/elements/c4/index.d.ts +3 -0
- package/dist/_pkgs/affine-model/elements/c4/index.js +3 -0
- package/dist/_pkgs/affine-model/elements/c4/node.d.ts +97 -0
- package/dist/_pkgs/affine-model/elements/c4/node.js +130 -0
- package/dist/_pkgs/affine-model/elements/connector/connector.js +1 -1
- package/dist/_pkgs/affine-model/elements/context-map/context-map.d.ts +27 -0
- package/dist/_pkgs/affine-model/elements/context-map/context-map.js +94 -0
- package/dist/_pkgs/affine-model/elements/context-map/index.d.ts +1 -0
- package/dist/_pkgs/affine-model/elements/context-map/index.js +1 -0
- package/dist/_pkgs/affine-model/elements/core-domain/core-domain.d.ts +34 -17
- package/dist/_pkgs/affine-model/elements/core-domain/core-domain.js +28 -26
- package/dist/_pkgs/affine-model/elements/cynefin/cynefin.d.ts +7 -2
- package/dist/_pkgs/affine-model/elements/cynefin/cynefin.js +9 -4
- package/dist/_pkgs/affine-model/elements/edgy/board.d.ts +7 -2
- package/dist/_pkgs/affine-model/elements/edgy/board.js +9 -4
- package/dist/_pkgs/affine-model/elements/edgy/facets.d.ts +20 -3
- package/dist/_pkgs/affine-model/elements/edgy/facets.js +13 -4
- package/dist/_pkgs/affine-model/elements/estuarine/estuarine.d.ts +7 -2
- package/dist/_pkgs/affine-model/elements/estuarine/estuarine.js +9 -4
- package/dist/_pkgs/affine-model/elements/event-storming/event-storming.d.ts +36 -0
- package/dist/_pkgs/affine-model/elements/event-storming/event-storming.js +103 -0
- package/dist/_pkgs/affine-model/elements/event-storming/index.d.ts +1 -0
- package/dist/_pkgs/affine-model/elements/event-storming/index.js +1 -0
- package/dist/_pkgs/affine-model/elements/framework-background/background.d.ts +7 -2
- package/dist/_pkgs/affine-model/elements/framework-background/background.js +9 -4
- package/dist/_pkgs/affine-model/elements/framework-background/hit-test.d.ts +48 -0
- package/dist/_pkgs/affine-model/elements/framework-background/hit-test.js +55 -0
- package/dist/_pkgs/affine-model/elements/framework-background/index.d.ts +1 -0
- package/dist/_pkgs/affine-model/elements/framework-background/index.js +1 -0
- package/dist/_pkgs/affine-model/elements/index.d.ts +11 -0
- package/dist/_pkgs/affine-model/elements/index.js +3 -0
- package/dist/_pkgs/affine-model/elements/shape/api/polygon.js +2 -8
- package/dist/_pkgs/affine-shared/adapters/html/block-adapter.js +1 -1
- package/dist/_pkgs/affine-shared/adapters/markdown/block-adapter.js +1 -1
- package/dist/_pkgs/affine-shared/adapters/markdown/delta-converter.js +1 -1
- package/dist/_pkgs/affine-shared/adapters/notion-html/block-adapter.js +1 -1
- package/dist/_pkgs/affine-shared/adapters/notion-html/delta-converter.js +1 -1
- package/dist/_pkgs/affine-shared/adapters/plain-text/block-adapter.js +1 -1
- package/dist/_pkgs/affine-shared/adapters/plain-text/delta-converter.js +1 -1
- package/dist/_pkgs/affine-shared/adapters/utils/color.js +5 -2
- package/dist/_pkgs/affine-shared/commands/model-crud/draft-selected-models.js +1 -1
- package/dist/_pkgs/affine-shared/commands/selection/focus-block-end.js +1 -1
- package/dist/_pkgs/affine-shared/commands/selection/focus-block-start.js +1 -1
- package/dist/_pkgs/affine-shared/consts/index.d.ts +10 -0
- package/dist/_pkgs/affine-shared/consts/index.js +10 -0
- package/dist/_pkgs/affine-shared/services/artefact-catalogue-service.d.ts +55 -0
- package/dist/_pkgs/affine-shared/services/artefact-catalogue-service.js +35 -0
- package/dist/_pkgs/affine-shared/services/audit-service.d.ts +11 -0
- package/dist/_pkgs/affine-shared/services/command-usage-service.d.ts +31 -0
- package/dist/_pkgs/affine-shared/services/command-usage-service.js +109 -0
- package/dist/_pkgs/affine-shared/services/comment-service/block-comment-manager.js +1 -1
- package/dist/_pkgs/affine-shared/services/doc-display-meta-service.js +1 -1
- package/dist/_pkgs/affine-shared/services/edit-props-store.d.ts +11 -0
- package/dist/_pkgs/affine-shared/services/edit-props-store.js +15 -0
- package/dist/_pkgs/affine-shared/services/embed-iframe/embed-iframe-config.js +1 -1
- package/dist/_pkgs/affine-shared/services/index.d.ts +2 -0
- package/dist/_pkgs/affine-shared/services/index.js +2 -0
- package/dist/_pkgs/affine-shared/services/pivot-materiality-publisher.js +2 -1
- package/dist/_pkgs/affine-shared/services/telemetry-service/lifecycle.d.ts +73 -1
- package/dist/_pkgs/affine-shared/services/toolbar-service/action.d.ts +32 -0
- package/dist/_pkgs/affine-shared/services/toolbar-service/action.js +16 -0
- package/dist/_pkgs/affine-shared/services/toolbar-service/flags.d.ts +10 -0
- package/dist/_pkgs/affine-shared/services/toolbar-service/flags.js +32 -1
- package/dist/_pkgs/affine-shared/services/toolbar-service/registry.d.ts +44 -0
- package/dist/_pkgs/affine-shared/services/toolbar-service/registry.js +161 -3
- package/dist/_pkgs/affine-shared/services/translation-service/chrome.d.ts +106 -0
- package/dist/_pkgs/affine-shared/services/translation-service/chrome.js +201 -0
- package/dist/_pkgs/affine-shared/services/translation-service/index.d.ts +1 -0
- package/dist/_pkgs/affine-shared/services/translation-service/index.js +1 -0
- package/dist/_pkgs/affine-shared/services/universe-tag-defs-service.js +5 -3
- package/dist/_pkgs/affine-shared/test-utils/affine-template.js +1 -1
- package/dist/_pkgs/affine-shared/utils/edgeless.js +1 -1
- package/dist/_pkgs/affine-shared/utils/file/filesys.d.ts +34 -0
- package/dist/_pkgs/affine-shared/utils/file/filesys.js +48 -7
- package/dist/_pkgs/affine-shared/utils/zod-schema.js +1 -3
- package/dist/_pkgs/affine-widget-drag-handle/utils.js +1 -1
- package/dist/_pkgs/affine-widget-edgeless-auto-connect/index.js +1 -1
- package/dist/_pkgs/affine-widget-edgeless-dragging-area/edgeless-dragging-area-rect.js +1 -1
- package/dist/_pkgs/affine-widget-edgeless-toolbar/catalogue/artefact-catalogue-default.d.ts +14 -0
- package/dist/_pkgs/affine-widget-edgeless-toolbar/catalogue/artefact-catalogue-default.js +40 -0
- package/dist/_pkgs/affine-widget-edgeless-toolbar/catalogue/artefact-catalogue-widget.d.ts +158 -0
- package/dist/_pkgs/affine-widget-edgeless-toolbar/catalogue/artefact-catalogue-widget.js +572 -0
- package/dist/_pkgs/affine-widget-edgeless-toolbar/catalogue/catalogue-groups.d.ts +41 -0
- package/dist/_pkgs/affine-widget-edgeless-toolbar/catalogue/catalogue-groups.js +49 -0
- package/dist/_pkgs/affine-widget-edgeless-toolbar/catalogue/chord-format.d.ts +13 -0
- package/dist/_pkgs/affine-widget-edgeless-toolbar/catalogue/chord-format.js +50 -0
- package/dist/_pkgs/affine-widget-edgeless-toolbar/edgeless-toolbar.d.ts +6 -0
- package/dist/_pkgs/affine-widget-edgeless-toolbar/edgeless-toolbar.js +15 -5
- package/dist/_pkgs/affine-widget-edgeless-toolbar/effects.d.ts +2 -0
- package/dist/_pkgs/affine-widget-edgeless-toolbar/effects.js +2 -0
- package/dist/_pkgs/affine-widget-edgeless-toolbar/extension/index.d.ts +7 -0
- package/dist/_pkgs/affine-widget-edgeless-toolbar/index.d.ts +4 -0
- package/dist/_pkgs/affine-widget-edgeless-toolbar/index.js +4 -0
- package/dist/_pkgs/affine-widget-edgeless-toolbar/menu/command-menu.d.ts +19 -0
- package/dist/_pkgs/affine-widget-edgeless-toolbar/menu/command-menu.js +51 -10
- package/dist/_pkgs/affine-widget-edgeless-toolbar/view.js +9 -0
- package/dist/_pkgs/affine-widget-keyboard-toolbar/config.js +2 -1
- package/dist/_pkgs/affine-widget-keyboard-toolbar/icons.js +98 -98
- package/dist/_pkgs/affine-widget-keyboard-toolbar/keyboard-tool-panel.js +1 -1
- package/dist/_pkgs/affine-widget-linked-doc/import-doc/import-doc.js +1 -1
- package/dist/_pkgs/affine-widget-linked-doc/linked-doc-popover.js +1 -1
- package/dist/_pkgs/affine-widget-page-dragging-area/index.js +1 -1
- package/dist/_pkgs/affine-widget-remote-selection/doc/doc-remote-selection.js +1 -1
- package/dist/_pkgs/affine-widget-slash-menu/config.js +2 -1
- package/dist/_pkgs/affine-widget-toolbar/toolbar.js +11 -2
- package/dist/_pkgs/affine-widget-toolbar/utils.d.ts +19 -2
- package/dist/_pkgs/affine-widget-toolbar/utils.js +28 -9
- package/dist/_pkgs/data-view/core/group-by/renderer/boolean-group.js +11 -11
- package/dist/_pkgs/data-view/core/utils/menu-title.js +17 -17
- package/dist/_pkgs/data-view/view-presets/calendar/pc/actions.js +8 -12
- package/dist/_pkgs/data-view/view-presets/calendar/pc/view.js +52 -40
- package/dist/_pkgs/data-view/view-presets/table/mobile/group.js +3 -1
- package/dist/_pkgs/data-view/view-presets/table/pc/group.js +3 -1
- package/dist/_pkgs/data-view/view-presets/table/pc-virtual/group/top/group-title.js +18 -18
- package/dist/_pkgs/std/clipboard/utils.js +4 -1
- package/dist/_pkgs/std/extension/command-registry.d.ts +195 -5
- package/dist/_pkgs/std/extension/command-registry.js +218 -4
- package/dist/_pkgs/std/extension/shortcut.js +2 -1
- package/dist/_pkgs/std/extension/translation-manifest.d.ts +46 -1
- package/dist/_pkgs/std/extension/translation-manifest.js +58 -0
- package/dist/_pkgs/std/gfx/grid.js +1 -1
- package/dist/_pkgs/std/gfx/highlight.d.ts +84 -0
- package/dist/_pkgs/std/gfx/highlight.js +112 -0
- package/dist/_pkgs/std/gfx/index.d.ts +2 -1
- package/dist/_pkgs/std/gfx/index.js +1 -0
- package/dist/_pkgs/std/gfx/interactivity/gfx-view-event-handler.js +17 -3
- package/dist/_pkgs/std/gfx/model/surface/element-model.d.ts +160 -0
- package/dist/_pkgs/std/gfx/model/surface/element-model.js +75 -1
- package/dist/_pkgs/std/gfx/model/surface/role.js +5 -3
- package/dist/_pkgs/std/gfx/model/surface/surface-model.js +2 -1
- package/dist/_pkgs/std/gfx/selection.js +1 -1
- package/dist/_pkgs/std/gfx/viewport.js +1 -1
- package/dist/_pkgs/std/inline/extensions/inline-manager.js +1 -1
- package/dist/_pkgs/std/inline/extensions/markdown-matcher.js +1 -1
- package/dist/_pkgs/std/scope/std-scope.d.ts +2 -1
- package/dist/_pkgs/std/scope/std-scope.js +2 -0
- package/dist/_pkgs/std/utils/gfx.js +2 -0
- package/dist/_pkgs/store/model/store/crud.js +4 -1
- package/dist/commands.js +1 -1
- package/dist/extensions/command-usage.d.ts +23 -0
- package/dist/extensions/command-usage.js +37 -0
- package/dist/extensions/view.js +12 -0
- package/dist/frameworks.js +32 -0
- package/dist/shortcuts.d.ts +20 -6
- package/dist/shortcuts.js +7 -9
- package/dist/translations.js +98 -3
- package/package.json +13 -1
|
@@ -33,7 +33,7 @@ var __runInitializers = (this && this.__runInitializers) || function (thisArg, i
|
|
|
33
33
|
return useValue ? value : void 0;
|
|
34
34
|
};
|
|
35
35
|
import { Bound, curveIntersects, getBezierNearestPoint, getBezierNearestTime, getBezierParameters, getBezierPoint, linePolylineIntersects, PointLocation, Polyline, polyLineNearestPoint, Vec, } from '../../../global/gfx/index.js';
|
|
36
|
-
import { derive, field, GfxPrimitiveElementModel, local
|
|
36
|
+
import { derive, field, GfxPrimitiveElementModel, local } from '../../../std/gfx/index.js';
|
|
37
37
|
import * as Y from 'yjs';
|
|
38
38
|
import { CONNECTOR_LABEL_MAX_WIDTH, ConnectorLabelOffsetAnchor, ConnectorMode, DEFAULT_CONNECTOR_MODE, DEFAULT_ROUGHNESS, FontFamily, FontStyle, FontWeight, StrokeStyle, TextAlign, } from '../../consts/index.js';
|
|
39
39
|
import { DefaultTheme } from '../../themes/index.js';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { SerializedXYWH } from '../../../global/gfx/index.js';
|
|
2
|
+
import { FrameworkBackgroundElementModel } from '../framework-background/index.js';
|
|
3
|
+
import type { FrameworkBackgroundProps } from '../framework-background/index.js';
|
|
4
|
+
export type ContextMapBoardProps = FrameworkBackgroundProps;
|
|
5
|
+
/**
|
|
6
|
+
* The Context Map board: the white card a Context Map is drawn ON.
|
|
7
|
+
*
|
|
8
|
+
* Deliberately the emptiest background in the library — no axis, no zone, no
|
|
9
|
+
* label. A Context Map has no frame of reference: nothing about where a bounded
|
|
10
|
+
* context sits on the sheet means anything, and drawing graduations would invent
|
|
11
|
+
* a semantic the framework does not have. What the board IS for is the FRAME:
|
|
12
|
+
* it carries the `context-map:board` role, which is what lets a rule say "this
|
|
13
|
+
* context is off the map" and what gives a per-map validation profile something
|
|
14
|
+
* to be written on.
|
|
15
|
+
*
|
|
16
|
+
* Adds no field of its own beyond the primitive's `resizeEnabled`, so a board is
|
|
17
|
+
* byte-identical to what {@link FrameworkBackgroundElementModel} already
|
|
18
|
+
* persists. It is created 1400 × 900 and freely resizable in both directions —
|
|
19
|
+
* a context map grows sideways as contexts are found, and locking its
|
|
20
|
+
* proportion would fight the hand.
|
|
21
|
+
*/
|
|
22
|
+
export declare class ContextMapBoardElementModel extends FrameworkBackgroundElementModel<ContextMapBoardProps> {
|
|
23
|
+
get type(): string;
|
|
24
|
+
accessor resizeEnabled: boolean;
|
|
25
|
+
accessor rotate: number;
|
|
26
|
+
accessor xywh: SerializedXYWH;
|
|
27
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
2
|
+
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
3
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
4
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
5
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
6
|
+
var _, done = false;
|
|
7
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
8
|
+
var context = {};
|
|
9
|
+
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
10
|
+
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
11
|
+
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
12
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
13
|
+
if (kind === "accessor") {
|
|
14
|
+
if (result === void 0) continue;
|
|
15
|
+
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
16
|
+
if (_ = accept(result.get)) descriptor.get = _;
|
|
17
|
+
if (_ = accept(result.set)) descriptor.set = _;
|
|
18
|
+
if (_ = accept(result.init)) initializers.unshift(_);
|
|
19
|
+
}
|
|
20
|
+
else if (_ = accept(result)) {
|
|
21
|
+
if (kind === "field") initializers.unshift(_);
|
|
22
|
+
else descriptor[key] = _;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
26
|
+
done = true;
|
|
27
|
+
};
|
|
28
|
+
var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
|
|
29
|
+
var useValue = arguments.length > 2;
|
|
30
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
31
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
32
|
+
}
|
|
33
|
+
return useValue ? value : void 0;
|
|
34
|
+
};
|
|
35
|
+
import { field } from '../../../std/gfx/index.js';
|
|
36
|
+
import { FrameworkBackgroundElementModel } from '../framework-background/index.js';
|
|
37
|
+
/**
|
|
38
|
+
* The Context Map board: the white card a Context Map is drawn ON.
|
|
39
|
+
*
|
|
40
|
+
* Deliberately the emptiest background in the library — no axis, no zone, no
|
|
41
|
+
* label. A Context Map has no frame of reference: nothing about where a bounded
|
|
42
|
+
* context sits on the sheet means anything, and drawing graduations would invent
|
|
43
|
+
* a semantic the framework does not have. What the board IS for is the FRAME:
|
|
44
|
+
* it carries the `context-map:board` role, which is what lets a rule say "this
|
|
45
|
+
* context is off the map" and what gives a per-map validation profile something
|
|
46
|
+
* to be written on.
|
|
47
|
+
*
|
|
48
|
+
* Adds no field of its own beyond the primitive's `resizeEnabled`, so a board is
|
|
49
|
+
* byte-identical to what {@link FrameworkBackgroundElementModel} already
|
|
50
|
+
* persists. It is created 1400 × 900 and freely resizable in both directions —
|
|
51
|
+
* a context map grows sideways as contexts are found, and locking its
|
|
52
|
+
* proportion would fight the hand.
|
|
53
|
+
*/
|
|
54
|
+
let ContextMapBoardElementModel = (() => {
|
|
55
|
+
let _classSuper = FrameworkBackgroundElementModel;
|
|
56
|
+
let _resizeEnabled_decorators;
|
|
57
|
+
let _resizeEnabled_initializers = [];
|
|
58
|
+
let _resizeEnabled_extraInitializers = [];
|
|
59
|
+
let _rotate_decorators;
|
|
60
|
+
let _rotate_initializers = [];
|
|
61
|
+
let _rotate_extraInitializers = [];
|
|
62
|
+
let _xywh_decorators;
|
|
63
|
+
let _xywh_initializers = [];
|
|
64
|
+
let _xywh_extraInitializers = [];
|
|
65
|
+
return class ContextMapBoardElementModel extends _classSuper {
|
|
66
|
+
static {
|
|
67
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
68
|
+
_resizeEnabled_decorators = [field(true)];
|
|
69
|
+
_rotate_decorators = [field(0)];
|
|
70
|
+
_xywh_decorators = [field()];
|
|
71
|
+
__esDecorate(this, null, _resizeEnabled_decorators, { kind: "accessor", name: "resizeEnabled", static: false, private: false, access: { has: obj => "resizeEnabled" in obj, get: obj => obj.resizeEnabled, set: (obj, value) => { obj.resizeEnabled = value; } }, metadata: _metadata }, _resizeEnabled_initializers, _resizeEnabled_extraInitializers);
|
|
72
|
+
__esDecorate(this, null, _rotate_decorators, { kind: "accessor", name: "rotate", static: false, private: false, access: { has: obj => "rotate" in obj, get: obj => obj.rotate, set: (obj, value) => { obj.rotate = value; } }, metadata: _metadata }, _rotate_initializers, _rotate_extraInitializers);
|
|
73
|
+
__esDecorate(this, null, _xywh_decorators, { kind: "accessor", name: "xywh", static: false, private: false, access: { has: obj => "xywh" in obj, get: obj => obj.xywh, set: (obj, value) => { obj.xywh = value; } }, metadata: _metadata }, _xywh_initializers, _xywh_extraInitializers);
|
|
74
|
+
if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
75
|
+
}
|
|
76
|
+
get type() {
|
|
77
|
+
return 'contextMap';
|
|
78
|
+
}
|
|
79
|
+
#resizeEnabled_accessor_storage = __runInitializers(this, _resizeEnabled_initializers, true);
|
|
80
|
+
get resizeEnabled() { return this.#resizeEnabled_accessor_storage; }
|
|
81
|
+
set resizeEnabled(value) { this.#resizeEnabled_accessor_storage = value; }
|
|
82
|
+
#rotate_accessor_storage = (__runInitializers(this, _resizeEnabled_extraInitializers), __runInitializers(this, _rotate_initializers, 0));
|
|
83
|
+
get rotate() { return this.#rotate_accessor_storage; }
|
|
84
|
+
set rotate(value) { this.#rotate_accessor_storage = value; }
|
|
85
|
+
#xywh_accessor_storage = (__runInitializers(this, _rotate_extraInitializers), __runInitializers(this, _xywh_initializers, '[0,0,1400,900]'));
|
|
86
|
+
get xywh() { return this.#xywh_accessor_storage; }
|
|
87
|
+
set xywh(value) { this.#xywh_accessor_storage = value; }
|
|
88
|
+
constructor() {
|
|
89
|
+
super(...arguments);
|
|
90
|
+
__runInitializers(this, _xywh_extraInitializers);
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
})();
|
|
94
|
+
export { ContextMapBoardElementModel };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './context-map.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './context-map.js';
|
|
@@ -1,14 +1,23 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import {
|
|
3
|
-
import type {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import type { SerializedXYWH } from '../../../global/gfx/index.js';
|
|
2
|
+
import { FrameworkBackgroundElementModel } from '../framework-background/index.js';
|
|
3
|
+
import type { FrameworkBackgroundProps } from '../framework-background/index.js';
|
|
4
|
+
/**
|
|
5
|
+
* Which READING of the chart this instance is turned to.
|
|
6
|
+
*
|
|
7
|
+
* `classic` is the DDD Crew chart everybody knows — Generic / Supporting / Core
|
|
8
|
+
* over Complexity × Business differentiation. `migration` keeps the very same
|
|
9
|
+
* frame and names its four quadrants after the migration conversation instead
|
|
10
|
+
* (low-hanging fruit, risk-seeking, risk-averse, last toothpaste), which is why
|
|
11
|
+
* it is a variant of one background and not a second element type.
|
|
12
|
+
*/
|
|
13
|
+
export type CoreDomainVariant = 'classic' | 'migration';
|
|
14
|
+
export type CoreDomainChartProps = FrameworkBackgroundProps & {
|
|
8
15
|
/** When false the translucent Core / Supporting / Generic zone bands are hidden. */
|
|
9
16
|
showZones?: boolean;
|
|
10
17
|
/** When false the axis titles, Low/High ticks and zone names are hidden. */
|
|
11
18
|
showLabels?: boolean;
|
|
19
|
+
/** Which reading of the chart is drawn. */
|
|
20
|
+
variant?: CoreDomainVariant;
|
|
12
21
|
};
|
|
13
22
|
/**
|
|
14
23
|
* The Core Domain Chart background (DDD Crew): the two axes (Complexity ×
|
|
@@ -16,21 +25,29 @@ export type CoreDomainChartProps = BaseElementProps & {
|
|
|
16
25
|
* Generic / Supporting / Core zone bands. The user places sub-domain dots,
|
|
17
26
|
* movement arrows and the Notation legend on top of it.
|
|
18
27
|
*
|
|
19
|
-
*
|
|
20
|
-
* {@link
|
|
21
|
-
*
|
|
22
|
-
*
|
|
28
|
+
* An INSTANCE of the framework-background primitive
|
|
29
|
+
* ({@link FrameworkBackgroundElementModel}): the geometry and the passive-canvas
|
|
30
|
+
* behaviour come from the primitive — which declares the very same
|
|
31
|
+
* `connectable` getter and the very same four geometry overrides this class
|
|
32
|
+
* used to spell out — and what the chart LOOKS like comes from the
|
|
33
|
+
* `CORE_DOMAIN_BACKGROUND` declaration in `@labre/affine-gfx-ddd-core-domain`.
|
|
34
|
+
*
|
|
35
|
+
* The fields below are the persisted document and are NOT the primitive's
|
|
36
|
+
* business: the base swap adds no field, renames none and changes no default,
|
|
37
|
+
* so a chart authored before it is byte-identical to one authored after.
|
|
23
38
|
*/
|
|
24
|
-
export declare class CoreDomainChartElementModel extends
|
|
39
|
+
export declare class CoreDomainChartElementModel extends FrameworkBackgroundElementModel<CoreDomainChartProps> {
|
|
25
40
|
get type(): string;
|
|
26
|
-
get connectable(): boolean;
|
|
27
|
-
containsBound(bounds: Bound): boolean;
|
|
28
|
-
getLineIntersections(start: IVec, end: IVec): import("../../../global/gfx/index.js").PointLocation[] | null;
|
|
29
|
-
getNearestPoint(point: IVec): IVec;
|
|
30
|
-
includesPoint(x: number, y: number): boolean;
|
|
31
41
|
accessor resizeEnabled: boolean;
|
|
32
42
|
accessor showZones: boolean;
|
|
33
43
|
accessor showLabels: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* A HARD default, on the Wardley `variant` pattern: `classic` is written into
|
|
46
|
+
* the Y.Map at creation and is also what an older chart — which carries no
|
|
47
|
+
* such key at all — reads back as. Both roads lead to the chart the user has
|
|
48
|
+
* always seen, so the field ships with no migration and no backfill.
|
|
49
|
+
*/
|
|
50
|
+
accessor variant: CoreDomainVariant;
|
|
34
51
|
accessor rotate: number;
|
|
35
52
|
accessor xywh: SerializedXYWH;
|
|
36
53
|
}
|
|
@@ -32,21 +32,27 @@ var __runInitializers = (this && this.__runInitializers) || function (thisArg, i
|
|
|
32
32
|
}
|
|
33
33
|
return useValue ? value : void 0;
|
|
34
34
|
};
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
35
|
+
import { field } from '../../../std/gfx/index.js';
|
|
36
|
+
import { FrameworkBackgroundElementModel } from '../framework-background/index.js';
|
|
37
37
|
/**
|
|
38
38
|
* The Core Domain Chart background (DDD Crew): the two axes (Complexity ×
|
|
39
39
|
* Business differentiation) with their Low/High ticks and the translucent
|
|
40
40
|
* Generic / Supporting / Core zone bands. The user places sub-domain dots,
|
|
41
41
|
* movement arrows and the Notation legend on top of it.
|
|
42
42
|
*
|
|
43
|
-
*
|
|
44
|
-
* {@link
|
|
45
|
-
*
|
|
46
|
-
*
|
|
43
|
+
* An INSTANCE of the framework-background primitive
|
|
44
|
+
* ({@link FrameworkBackgroundElementModel}): the geometry and the passive-canvas
|
|
45
|
+
* behaviour come from the primitive — which declares the very same
|
|
46
|
+
* `connectable` getter and the very same four geometry overrides this class
|
|
47
|
+
* used to spell out — and what the chart LOOKS like comes from the
|
|
48
|
+
* `CORE_DOMAIN_BACKGROUND` declaration in `@labre/affine-gfx-ddd-core-domain`.
|
|
49
|
+
*
|
|
50
|
+
* The fields below are the persisted document and are NOT the primitive's
|
|
51
|
+
* business: the base swap adds no field, renames none and changes no default,
|
|
52
|
+
* so a chart authored before it is byte-identical to one authored after.
|
|
47
53
|
*/
|
|
48
54
|
let CoreDomainChartElementModel = (() => {
|
|
49
|
-
let _classSuper =
|
|
55
|
+
let _classSuper = FrameworkBackgroundElementModel;
|
|
50
56
|
let _resizeEnabled_decorators;
|
|
51
57
|
let _resizeEnabled_initializers = [];
|
|
52
58
|
let _resizeEnabled_extraInitializers = [];
|
|
@@ -56,6 +62,9 @@ let CoreDomainChartElementModel = (() => {
|
|
|
56
62
|
let _showLabels_decorators;
|
|
57
63
|
let _showLabels_initializers = [];
|
|
58
64
|
let _showLabels_extraInitializers = [];
|
|
65
|
+
let _variant_decorators;
|
|
66
|
+
let _variant_initializers = [];
|
|
67
|
+
let _variant_extraInitializers = [];
|
|
59
68
|
let _rotate_decorators;
|
|
60
69
|
let _rotate_initializers = [];
|
|
61
70
|
let _rotate_extraInitializers = [];
|
|
@@ -68,11 +77,13 @@ let CoreDomainChartElementModel = (() => {
|
|
|
68
77
|
_resizeEnabled_decorators = [field(true)];
|
|
69
78
|
_showZones_decorators = [field(true)];
|
|
70
79
|
_showLabels_decorators = [field(true)];
|
|
80
|
+
_variant_decorators = [field('classic')];
|
|
71
81
|
_rotate_decorators = [field(0)];
|
|
72
82
|
_xywh_decorators = [field()];
|
|
73
83
|
__esDecorate(this, null, _resizeEnabled_decorators, { kind: "accessor", name: "resizeEnabled", static: false, private: false, access: { has: obj => "resizeEnabled" in obj, get: obj => obj.resizeEnabled, set: (obj, value) => { obj.resizeEnabled = value; } }, metadata: _metadata }, _resizeEnabled_initializers, _resizeEnabled_extraInitializers);
|
|
74
84
|
__esDecorate(this, null, _showZones_decorators, { kind: "accessor", name: "showZones", static: false, private: false, access: { has: obj => "showZones" in obj, get: obj => obj.showZones, set: (obj, value) => { obj.showZones = value; } }, metadata: _metadata }, _showZones_initializers, _showZones_extraInitializers);
|
|
75
85
|
__esDecorate(this, null, _showLabels_decorators, { kind: "accessor", name: "showLabels", static: false, private: false, access: { has: obj => "showLabels" in obj, get: obj => obj.showLabels, set: (obj, value) => { obj.showLabels = value; } }, metadata: _metadata }, _showLabels_initializers, _showLabels_extraInitializers);
|
|
86
|
+
__esDecorate(this, null, _variant_decorators, { kind: "accessor", name: "variant", static: false, private: false, access: { has: obj => "variant" in obj, get: obj => obj.variant, set: (obj, value) => { obj.variant = value; } }, metadata: _metadata }, _variant_initializers, _variant_extraInitializers);
|
|
76
87
|
__esDecorate(this, null, _rotate_decorators, { kind: "accessor", name: "rotate", static: false, private: false, access: { has: obj => "rotate" in obj, get: obj => obj.rotate, set: (obj, value) => { obj.rotate = value; } }, metadata: _metadata }, _rotate_initializers, _rotate_extraInitializers);
|
|
77
88
|
__esDecorate(this, null, _xywh_decorators, { kind: "accessor", name: "xywh", static: false, private: false, access: { has: obj => "xywh" in obj, get: obj => obj.xywh, set: (obj, value) => { obj.xywh = value; } }, metadata: _metadata }, _xywh_initializers, _xywh_extraInitializers);
|
|
78
89
|
if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
@@ -80,24 +91,6 @@ let CoreDomainChartElementModel = (() => {
|
|
|
80
91
|
get type() {
|
|
81
92
|
return 'coreDomain';
|
|
82
93
|
}
|
|
83
|
-
get connectable() {
|
|
84
|
-
return false;
|
|
85
|
-
}
|
|
86
|
-
containsBound(bounds) {
|
|
87
|
-
const points = getPointsFromBoundWithRotation(this);
|
|
88
|
-
return points.some(point => bounds.containsPoint(point));
|
|
89
|
-
}
|
|
90
|
-
getLineIntersections(start, end) {
|
|
91
|
-
const points = getPointsFromBoundWithRotation(this);
|
|
92
|
-
return linePolygonIntersects(start, end, points);
|
|
93
|
-
}
|
|
94
|
-
getNearestPoint(point) {
|
|
95
|
-
return polygonNearestPoint(Bound.deserialize(this.xywh).points, point);
|
|
96
|
-
}
|
|
97
|
-
includesPoint(x, y) {
|
|
98
|
-
const points = getPointsFromBoundWithRotation(this);
|
|
99
|
-
return pointInPolygon([x, y], points);
|
|
100
|
-
}
|
|
101
94
|
#resizeEnabled_accessor_storage = __runInitializers(this, _resizeEnabled_initializers, true);
|
|
102
95
|
get resizeEnabled() { return this.#resizeEnabled_accessor_storage; }
|
|
103
96
|
set resizeEnabled(value) { this.#resizeEnabled_accessor_storage = value; }
|
|
@@ -107,7 +100,16 @@ let CoreDomainChartElementModel = (() => {
|
|
|
107
100
|
#showLabels_accessor_storage = (__runInitializers(this, _showZones_extraInitializers), __runInitializers(this, _showLabels_initializers, true));
|
|
108
101
|
get showLabels() { return this.#showLabels_accessor_storage; }
|
|
109
102
|
set showLabels(value) { this.#showLabels_accessor_storage = value; }
|
|
110
|
-
#
|
|
103
|
+
#variant_accessor_storage = (__runInitializers(this, _showLabels_extraInitializers), __runInitializers(this, _variant_initializers, 'classic'));
|
|
104
|
+
/**
|
|
105
|
+
* A HARD default, on the Wardley `variant` pattern: `classic` is written into
|
|
106
|
+
* the Y.Map at creation and is also what an older chart — which carries no
|
|
107
|
+
* such key at all — reads back as. Both roads lead to the chart the user has
|
|
108
|
+
* always seen, so the field ships with no migration and no backfill.
|
|
109
|
+
*/
|
|
110
|
+
get variant() { return this.#variant_accessor_storage; }
|
|
111
|
+
set variant(value) { this.#variant_accessor_storage = value; }
|
|
112
|
+
#rotate_accessor_storage = (__runInitializers(this, _variant_extraInitializers), __runInitializers(this, _rotate_initializers, 0));
|
|
111
113
|
get rotate() { return this.#rotate_accessor_storage; }
|
|
112
114
|
set rotate(value) { this.#rotate_accessor_storage = value; }
|
|
113
115
|
#xywh_accessor_storage = (__runInitializers(this, _rotate_extraInitializers), __runInitializers(this, _xywh_initializers, '[0,0,900,820]'));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IVec, SerializedXYWH } from '../../../global/gfx/index.js';
|
|
2
2
|
import { Bound } from '../../../global/gfx/index.js';
|
|
3
|
-
import type { BaseElementProps } from '../../../std/gfx/index.js';
|
|
3
|
+
import type { BaseElementProps, PointTestOptions } from '../../../std/gfx/index.js';
|
|
4
4
|
import { GfxPrimitiveElementModel } from '../../../std/gfx/index.js';
|
|
5
5
|
export type CynefinProps = BaseElementProps & {
|
|
6
6
|
/** When false the resize handles are hidden — toggled from the toolbar. */
|
|
@@ -28,7 +28,12 @@ export declare class CynefinElementModel extends GfxPrimitiveElementModel<Cynefi
|
|
|
28
28
|
containsBound(bounds: Bound): boolean;
|
|
29
29
|
getLineIntersections(start: IVec, end: IVec): import("../../../global/gfx/index.js").PointLocation[] | null;
|
|
30
30
|
getNearestPoint(point: IVec): IVec;
|
|
31
|
-
|
|
31
|
+
/**
|
|
32
|
+
* Picked by its BORDER band — see {@link backgroundIncludesPoint}. The five
|
|
33
|
+
* domains are a picture the user drops elements onto, so the clicks inside
|
|
34
|
+
* the frame belong to those elements.
|
|
35
|
+
*/
|
|
36
|
+
includesPoint(x: number, y: number, options?: PointTestOptions): boolean;
|
|
32
37
|
accessor resizeEnabled: boolean;
|
|
33
38
|
accessor showTitles: boolean;
|
|
34
39
|
accessor showDescriptions: boolean;
|
|
@@ -32,8 +32,9 @@ var __runInitializers = (this && this.__runInitializers) || function (thisArg, i
|
|
|
32
32
|
}
|
|
33
33
|
return useValue ? value : void 0;
|
|
34
34
|
};
|
|
35
|
-
import { Bound, getPointsFromBoundWithRotation, linePolygonIntersects,
|
|
35
|
+
import { Bound, getPointsFromBoundWithRotation, linePolygonIntersects, polygonNearestPoint, } from '../../../global/gfx/index.js';
|
|
36
36
|
import { field, GfxPrimitiveElementModel } from '../../../std/gfx/index.js';
|
|
37
|
+
import { backgroundIncludesPoint } from '../framework-background/index.js';
|
|
37
38
|
/**
|
|
38
39
|
* A static "Liminal Cynefin" framework diagram: the hand-drawn five-domain
|
|
39
40
|
* boundary (Complex / Complicated / Chaotic / Clear + central Confusion), the
|
|
@@ -98,9 +99,13 @@ let CynefinElementModel = (() => {
|
|
|
98
99
|
getNearestPoint(point) {
|
|
99
100
|
return polygonNearestPoint(Bound.deserialize(this.xywh).points, point);
|
|
100
101
|
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
/**
|
|
103
|
+
* Picked by its BORDER band — see {@link backgroundIncludesPoint}. The five
|
|
104
|
+
* domains are a picture the user drops elements onto, so the clicks inside
|
|
105
|
+
* the frame belong to those elements.
|
|
106
|
+
*/
|
|
107
|
+
includesPoint(x, y, options) {
|
|
108
|
+
return backgroundIncludesPoint(this, x, y, options);
|
|
104
109
|
}
|
|
105
110
|
#resizeEnabled_accessor_storage = __runInitializers(this, _resizeEnabled_initializers, true);
|
|
106
111
|
get resizeEnabled() { return this.#resizeEnabled_accessor_storage; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IVec } from '../../../global/gfx/index.js';
|
|
2
2
|
import { Bound } from '../../../global/gfx/index.js';
|
|
3
3
|
import type { SerializedXYWH } from '../../../global/gfx/index.js';
|
|
4
|
-
import type { BaseElementProps } from '../../../std/gfx/index.js';
|
|
4
|
+
import type { BaseElementProps, PointTestOptions } from '../../../std/gfx/index.js';
|
|
5
5
|
import { GfxPrimitiveElementModel } from '../../../std/gfx/index.js';
|
|
6
6
|
export type EdgyBoardProps = BaseElementProps & {
|
|
7
7
|
/** When false the resize handles are hidden — toggled from the toolbar. */
|
|
@@ -24,7 +24,12 @@ export declare class EdgyBoardElementModel extends GfxPrimitiveElementModel<Edgy
|
|
|
24
24
|
containsBound(bounds: Bound): boolean;
|
|
25
25
|
getLineIntersections(start: IVec, end: IVec): import("../../../global/gfx/index.js").PointLocation[] | null;
|
|
26
26
|
getNearestPoint(point: IVec): IVec;
|
|
27
|
-
|
|
27
|
+
/**
|
|
28
|
+
* Picked by its BORDER band: a board is a passive canvas and the clicks over
|
|
29
|
+
* its area belong to what the user laid on it. Same test every framework
|
|
30
|
+
* background runs — see {@link backgroundIncludesPoint}.
|
|
31
|
+
*/
|
|
32
|
+
includesPoint(x: number, y: number, options?: PointTestOptions): boolean;
|
|
28
33
|
accessor resizeEnabled: boolean;
|
|
29
34
|
accessor spotlightEnabled: boolean;
|
|
30
35
|
accessor rotate: number;
|
|
@@ -32,8 +32,9 @@ var __runInitializers = (this && this.__runInitializers) || function (thisArg, i
|
|
|
32
32
|
}
|
|
33
33
|
return useValue ? value : void 0;
|
|
34
34
|
};
|
|
35
|
-
import { Bound, getPointsFromBoundWithRotation, linePolygonIntersects,
|
|
35
|
+
import { Bound, getPointsFromBoundWithRotation, linePolygonIntersects, polygonNearestPoint, } from '../../../global/gfx/index.js';
|
|
36
36
|
import { field, GfxPrimitiveElementModel } from '../../../std/gfx/index.js';
|
|
37
|
+
import { backgroundIncludesPoint } from '../framework-background/index.js';
|
|
37
38
|
/**
|
|
38
39
|
* A blank white board for free-form EDGY modelling: the user places EDGY base
|
|
39
40
|
* shapes and connectors on top of it and the board grants them the dependency
|
|
@@ -87,9 +88,13 @@ let EdgyBoardElementModel = (() => {
|
|
|
87
88
|
getNearestPoint(point) {
|
|
88
89
|
return polygonNearestPoint(Bound.deserialize(this.xywh).points, point);
|
|
89
90
|
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
/**
|
|
92
|
+
* Picked by its BORDER band: a board is a passive canvas and the clicks over
|
|
93
|
+
* its area belong to what the user laid on it. Same test every framework
|
|
94
|
+
* background runs — see {@link backgroundIncludesPoint}.
|
|
95
|
+
*/
|
|
96
|
+
includesPoint(x, y, options) {
|
|
97
|
+
return backgroundIncludesPoint(this, x, y, options);
|
|
93
98
|
}
|
|
94
99
|
#resizeEnabled_accessor_storage = __runInitializers(this, _resizeEnabled_initializers, true);
|
|
95
100
|
get resizeEnabled() { return this.#resizeEnabled_accessor_storage; }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IVec, SerializedXYWH } from '../../../global/gfx/index.js';
|
|
2
2
|
import { Bound } from '../../../global/gfx/index.js';
|
|
3
|
-
import type { BaseElementProps } from '../../../std/gfx/index.js';
|
|
3
|
+
import type { BaseElementProps, PointTestOptions } from '../../../std/gfx/index.js';
|
|
4
4
|
import { GfxPrimitiveElementModel } from '../../../std/gfx/index.js';
|
|
5
5
|
export type EdgyFacetsProps = BaseElementProps & {
|
|
6
6
|
/** When false the resize handles are hidden — toggled from the toolbar. */
|
|
@@ -14,7 +14,15 @@ export type EdgyFacetsProps = BaseElementProps & {
|
|
|
14
14
|
* margins only exist for the facet name labels — pointless when hidden).
|
|
15
15
|
*/
|
|
16
16
|
cropToCircles?: boolean;
|
|
17
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* INERT since #195 — kept for backward compatibility only.
|
|
19
|
+
*
|
|
20
|
+
* The hover spotlight is board logic: it is granted by the EDGY board
|
|
21
|
+
* (`edgyBoard`), never by this drawing, so nothing reads this field on a
|
|
22
|
+
* facets Venn any more. It stays declared because documents written before
|
|
23
|
+
* the change carry it, and an undeclared property would not survive a load
|
|
24
|
+
* (see the schema red zone in `CLAUDE.md`). Do not read it, do not remove it.
|
|
25
|
+
*/
|
|
18
26
|
spotlightEnabled?: boolean;
|
|
19
27
|
identityLabel?: string;
|
|
20
28
|
architectureLabel?: string;
|
|
@@ -41,11 +49,20 @@ export declare class EdgyFacetsElementModel extends GfxPrimitiveElementModel<Edg
|
|
|
41
49
|
containsBound(bounds: Bound): boolean;
|
|
42
50
|
getLineIntersections(start: IVec, end: IVec): import("../../../global/gfx/index.js").PointLocation[] | null;
|
|
43
51
|
getNearestPoint(point: IVec): IVec;
|
|
44
|
-
|
|
52
|
+
/**
|
|
53
|
+
* Picked by its BORDER band — see {@link backgroundIncludesPoint}.
|
|
54
|
+
*
|
|
55
|
+
* The facet LABELS stay double-clickable all the same: their zones are added
|
|
56
|
+
* by `EdgyView.includesPoint`, which is what the pointer router consults, so
|
|
57
|
+
* the rename target lives with the code that draws it and the model layer
|
|
58
|
+
* stays free of it.
|
|
59
|
+
*/
|
|
60
|
+
includesPoint(x: number, y: number, options?: PointTestOptions): boolean;
|
|
45
61
|
accessor resizeEnabled: boolean;
|
|
46
62
|
accessor showLabels: boolean;
|
|
47
63
|
accessor showPictos: boolean;
|
|
48
64
|
accessor cropToCircles: boolean;
|
|
65
|
+
/** Inert — see {@link EdgyFacetsProps.spotlightEnabled} (#195). */
|
|
49
66
|
accessor spotlightEnabled: boolean;
|
|
50
67
|
accessor identityLabel: string;
|
|
51
68
|
accessor architectureLabel: string;
|
|
@@ -32,8 +32,9 @@ var __runInitializers = (this && this.__runInitializers) || function (thisArg, i
|
|
|
32
32
|
}
|
|
33
33
|
return useValue ? value : void 0;
|
|
34
34
|
};
|
|
35
|
-
import { Bound, getPointsFromBoundWithRotation, linePolygonIntersects,
|
|
35
|
+
import { Bound, getPointsFromBoundWithRotation, linePolygonIntersects, polygonNearestPoint, } from '../../../global/gfx/index.js';
|
|
36
36
|
import { field, GfxPrimitiveElementModel } from '../../../std/gfx/index.js';
|
|
37
|
+
import { backgroundIncludesPoint } from '../framework-background/index.js';
|
|
37
38
|
/**
|
|
38
39
|
* A static "EDGY Enterprise Design Facets" diagram: three overlapping circles
|
|
39
40
|
* (Identity / Architecture / Experience) with their three pairwise
|
|
@@ -123,9 +124,16 @@ let EdgyFacetsElementModel = (() => {
|
|
|
123
124
|
getNearestPoint(point) {
|
|
124
125
|
return polygonNearestPoint(Bound.deserialize(this.xywh).points, point);
|
|
125
126
|
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
127
|
+
/**
|
|
128
|
+
* Picked by its BORDER band — see {@link backgroundIncludesPoint}.
|
|
129
|
+
*
|
|
130
|
+
* The facet LABELS stay double-clickable all the same: their zones are added
|
|
131
|
+
* by `EdgyView.includesPoint`, which is what the pointer router consults, so
|
|
132
|
+
* the rename target lives with the code that draws it and the model layer
|
|
133
|
+
* stays free of it.
|
|
134
|
+
*/
|
|
135
|
+
includesPoint(x, y, options) {
|
|
136
|
+
return backgroundIncludesPoint(this, x, y, options);
|
|
129
137
|
}
|
|
130
138
|
#resizeEnabled_accessor_storage = __runInitializers(this, _resizeEnabled_initializers, true);
|
|
131
139
|
get resizeEnabled() { return this.#resizeEnabled_accessor_storage; }
|
|
@@ -140,6 +148,7 @@ let EdgyFacetsElementModel = (() => {
|
|
|
140
148
|
get cropToCircles() { return this.#cropToCircles_accessor_storage; }
|
|
141
149
|
set cropToCircles(value) { this.#cropToCircles_accessor_storage = value; }
|
|
142
150
|
#spotlightEnabled_accessor_storage = (__runInitializers(this, _cropToCircles_extraInitializers), __runInitializers(this, _spotlightEnabled_initializers, true));
|
|
151
|
+
/** Inert — see {@link EdgyFacetsProps.spotlightEnabled} (#195). */
|
|
143
152
|
get spotlightEnabled() { return this.#spotlightEnabled_accessor_storage; }
|
|
144
153
|
set spotlightEnabled(value) { this.#spotlightEnabled_accessor_storage = value; }
|
|
145
154
|
#identityLabel_accessor_storage = (__runInitializers(this, _spotlightEnabled_extraInitializers), __runInitializers(this, _identityLabel_initializers, 'Identity'));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IVec, SerializedXYWH } from '../../../global/gfx/index.js';
|
|
2
2
|
import { Bound } from '../../../global/gfx/index.js';
|
|
3
|
-
import type { BaseElementProps } from '../../../std/gfx/index.js';
|
|
3
|
+
import type { BaseElementProps, PointTestOptions } from '../../../std/gfx/index.js';
|
|
4
4
|
import { GfxPrimitiveElementModel } from '../../../std/gfx/index.js';
|
|
5
5
|
export type EstuarineProps = BaseElementProps & {
|
|
6
6
|
/** When false the resize handles are hidden — toggled from the toolbar. */
|
|
@@ -26,7 +26,12 @@ export declare class EstuarineElementModel extends GfxPrimitiveElementModel<Estu
|
|
|
26
26
|
containsBound(bounds: Bound): boolean;
|
|
27
27
|
getLineIntersections(start: IVec, end: IVec): import("../../../global/gfx/index.js").PointLocation[] | null;
|
|
28
28
|
getNearestPoint(point: IVec): IVec;
|
|
29
|
-
|
|
29
|
+
/**
|
|
30
|
+
* Picked by its BORDER band — see {@link backgroundIncludesPoint}. The map is
|
|
31
|
+
* a space constraint nodes are dropped into, so the clicks inside it are
|
|
32
|
+
* theirs.
|
|
33
|
+
*/
|
|
34
|
+
includesPoint(x: number, y: number, options?: PointTestOptions): boolean;
|
|
30
35
|
accessor resizeEnabled: boolean;
|
|
31
36
|
accessor showLiminal: boolean;
|
|
32
37
|
accessor showVolatile: boolean;
|
|
@@ -32,8 +32,9 @@ var __runInitializers = (this && this.__runInitializers) || function (thisArg, i
|
|
|
32
32
|
}
|
|
33
33
|
return useValue ? value : void 0;
|
|
34
34
|
};
|
|
35
|
-
import { Bound, getPointsFromBoundWithRotation, linePolygonIntersects,
|
|
35
|
+
import { Bound, getPointsFromBoundWithRotation, linePolygonIntersects, polygonNearestPoint, } from '../../../global/gfx/index.js';
|
|
36
36
|
import { field, GfxPrimitiveElementModel } from '../../../std/gfx/index.js';
|
|
37
|
+
import { backgroundIncludesPoint } from '../framework-background/index.js';
|
|
37
38
|
/**
|
|
38
39
|
* A static "Estuarine framework" map: the 2D energy (e, vertical, double-headed)
|
|
39
40
|
* / time (t, horizontal) space with the three reference curves — Liminal (green),
|
|
@@ -101,9 +102,13 @@ let EstuarineElementModel = (() => {
|
|
|
101
102
|
getNearestPoint(point) {
|
|
102
103
|
return polygonNearestPoint(Bound.deserialize(this.xywh).points, point);
|
|
103
104
|
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
/**
|
|
106
|
+
* Picked by its BORDER band — see {@link backgroundIncludesPoint}. The map is
|
|
107
|
+
* a space constraint nodes are dropped into, so the clicks inside it are
|
|
108
|
+
* theirs.
|
|
109
|
+
*/
|
|
110
|
+
includesPoint(x, y, options) {
|
|
111
|
+
return backgroundIncludesPoint(this, x, y, options);
|
|
107
112
|
}
|
|
108
113
|
#resizeEnabled_accessor_storage = __runInitializers(this, _resizeEnabled_initializers, true);
|
|
109
114
|
get resizeEnabled() { return this.#resizeEnabled_accessor_storage; }
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { SerializedXYWH } from '../../../global/gfx/index.js';
|
|
2
|
+
import { FrameworkBackgroundElementModel } from '../framework-background/index.js';
|
|
3
|
+
import type { FrameworkBackgroundProps } from '../framework-background/index.js';
|
|
4
|
+
export type EventStormingBoardProps = FrameworkBackgroundProps;
|
|
5
|
+
/**
|
|
6
|
+
* The Event Storming board: the paper roll a Big Picture is stormed on.
|
|
7
|
+
*
|
|
8
|
+
* One axis and nothing else — TIME, running left to right along the bottom.
|
|
9
|
+
* That is the whole frame of reference Event Storming has: an event drawn to
|
|
10
|
+
* the left of another happened before it, and how HIGH a sticky sits means
|
|
11
|
+
* nothing at all (the vertical is where a workshop parks its unknowns, not a
|
|
12
|
+
* scale). Declaring the one axis and no zones is therefore the honest
|
|
13
|
+
* declaration, and it is what lets `es.against-timeline` say "this flow runs
|
|
14
|
+
* backwards" without inventing a second dimension nobody drew against.
|
|
15
|
+
*
|
|
16
|
+
* **Swimlanes are cut from v1** (plan § Coupes v1). A lane is a horizontal
|
|
17
|
+
* BAND with a name, which on this element would be a variant declaration
|
|
18
|
+
* (`variantProp: 'lanes'`) and a rule family that measures membership per lane.
|
|
19
|
+
* Neither exists yet, and shipping half of it — bands that paint but that no
|
|
20
|
+
* rule can read — would put a semantic on the vertical the framework does not
|
|
21
|
+
* have. The v2 note lives here so the day lanes land, the reason they were not
|
|
22
|
+
* here is on the record.
|
|
23
|
+
*
|
|
24
|
+
* Adds no field of its own beyond the primitive's `resizeEnabled`, so a board
|
|
25
|
+
* is byte-identical to what {@link FrameworkBackgroundElementModel} already
|
|
26
|
+
* persists. It is created 3200 × 1400 — a Big Picture is WIDE, because the
|
|
27
|
+
* timeline is the point — and freely resizable in both directions: the roll
|
|
28
|
+
* grows sideways all morning as events are remembered, and locking its
|
|
29
|
+
* proportion would fight the hand.
|
|
30
|
+
*/
|
|
31
|
+
export declare class EventStormingBoardElementModel extends FrameworkBackgroundElementModel<EventStormingBoardProps> {
|
|
32
|
+
get type(): string;
|
|
33
|
+
accessor resizeEnabled: boolean;
|
|
34
|
+
accessor rotate: number;
|
|
35
|
+
accessor xywh: SerializedXYWH;
|
|
36
|
+
}
|