@univerjs-pro/boards-ui 1.0.0-alpha.3
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 +46 -0
- package/lib/cjs/index.js +1 -0
- package/lib/cjs/locale/ar-SA.js +1 -0
- package/lib/cjs/locale/ca-ES.js +1 -0
- package/lib/cjs/locale/de-DE.js +1 -0
- package/lib/cjs/locale/en-US.js +1 -0
- package/lib/cjs/locale/es-ES.js +1 -0
- package/lib/cjs/locale/fa-IR.js +1 -0
- package/lib/cjs/locale/fr-FR.js +1 -0
- package/lib/cjs/locale/id-ID.js +1 -0
- package/lib/cjs/locale/it-IT.js +1 -0
- package/lib/cjs/locale/ja-JP.js +1 -0
- package/lib/cjs/locale/ko-KR.js +1 -0
- package/lib/cjs/locale/pl-PL.js +1 -0
- package/lib/cjs/locale/pt-BR.js +1 -0
- package/lib/cjs/locale/ru-RU.js +1 -0
- package/lib/cjs/locale/sk-SK.js +1 -0
- package/lib/cjs/locale/vi-VN.js +1 -0
- package/lib/cjs/locale/zh-CN.js +1 -0
- package/lib/cjs/locale/zh-HK.js +1 -0
- package/lib/cjs/locale/zh-TW.js +1 -0
- package/lib/cjs/shape-preset-labels-C4G0G9GI.js +1 -0
- package/lib/es/index.js +1 -0
- package/lib/es/locale/ar-SA.js +1 -0
- package/lib/es/locale/ca-ES.js +1 -0
- package/lib/es/locale/de-DE.js +1 -0
- package/lib/es/locale/en-US.js +1 -0
- package/lib/es/locale/es-ES.js +1 -0
- package/lib/es/locale/fa-IR.js +1 -0
- package/lib/es/locale/fr-FR.js +1 -0
- package/lib/es/locale/id-ID.js +1 -0
- package/lib/es/locale/it-IT.js +1 -0
- package/lib/es/locale/ja-JP.js +1 -0
- package/lib/es/locale/ko-KR.js +1 -0
- package/lib/es/locale/pl-PL.js +1 -0
- package/lib/es/locale/pt-BR.js +1 -0
- package/lib/es/locale/ru-RU.js +1 -0
- package/lib/es/locale/sk-SK.js +1 -0
- package/lib/es/locale/vi-VN.js +1 -0
- package/lib/es/locale/zh-CN.js +1 -0
- package/lib/es/locale/zh-HK.js +1 -0
- package/lib/es/locale/zh-TW.js +1 -0
- package/lib/es/shape-preset-labels-092BdVw3.js +1 -0
- package/lib/index.css +1229 -0
- package/lib/index.js +1 -0
- package/lib/locale/ar-SA.js +1 -0
- package/lib/locale/ca-ES.js +1 -0
- package/lib/locale/de-DE.js +1 -0
- package/lib/locale/en-US.js +1 -0
- package/lib/locale/es-ES.js +1 -0
- package/lib/locale/fa-IR.js +1 -0
- package/lib/locale/fr-FR.js +1 -0
- package/lib/locale/id-ID.js +1 -0
- package/lib/locale/it-IT.js +1 -0
- package/lib/locale/ja-JP.js +1 -0
- package/lib/locale/ko-KR.js +1 -0
- package/lib/locale/pl-PL.js +1 -0
- package/lib/locale/pt-BR.js +1 -0
- package/lib/locale/ru-RU.js +1 -0
- package/lib/locale/sk-SK.js +1 -0
- package/lib/locale/vi-VN.js +1 -0
- package/lib/locale/zh-CN.js +1 -0
- package/lib/locale/zh-HK.js +1 -0
- package/lib/locale/zh-TW.js +1 -0
- package/lib/shape-preset-labels-092BdVw3.js +1 -0
- package/lib/types/commands/operations/board-container-child-contextmenu.operation.d.ts +18 -0
- package/lib/types/commands/operations/board-container-contextmenu.operation.d.ts +18 -0
- package/lib/types/commands/operations/board-selection.operation.d.ts +14 -0
- package/lib/types/commands/operations/board-swimlane-contextmenu.operation.d.ts +23 -0
- package/lib/types/common/board-shortcuts.d.ts +98 -0
- package/lib/types/common/connector-presets.d.ts +22 -0
- package/lib/types/common/connector-routing-preference.d.ts +11 -0
- package/lib/types/common/settings-actions.d.ts +26 -0
- package/lib/types/common/shape-presets.d.ts +58 -0
- package/lib/types/common/sticky-colors.d.ts +4 -0
- package/lib/types/common/theme-presets.d.ts +2 -0
- package/lib/types/common/toolbar-tools.d.ts +17 -0
- package/lib/types/components/object-list-panel/board-object-list-state.d.ts +27 -0
- package/lib/types/config/config.d.ts +92 -0
- package/lib/types/const.d.ts +26 -0
- package/lib/types/controllers/board-clipboard-shortcut.controller.d.ts +25 -0
- package/lib/types/controllers/board-connector-floating-toolbar.render-controller.d.ts +30 -0
- package/lib/types/controllers/board-connector-interaction.render-controller.d.ts +158 -0
- package/lib/types/controllers/board-container-membership.render-controller.d.ts +27 -0
- package/lib/types/controllers/board-element-selection.controller.d.ts +63 -0
- package/lib/types/controllers/board-element-transform.controller.d.ts +52 -0
- package/lib/types/controllers/board-element-transformer-config.util.d.ts +27 -0
- package/lib/types/controllers/board-grid.render-controller.d.ts +14 -0
- package/lib/types/controllers/board-grouping-shortcut.controller.d.ts +20 -0
- package/lib/types/controllers/board-history-shortcut.controller.d.ts +16 -0
- package/lib/types/controllers/board-ink-interaction.render-controller.d.ts +124 -0
- package/lib/types/controllers/board-layout-shortcut.controller.d.ts +20 -0
- package/lib/types/controllers/board-mermaid-import.controller.d.ts +9 -0
- package/lib/types/controllers/board-order-shortcut.controller.d.ts +16 -0
- package/lib/types/controllers/board-pending-insert.render-controller.d.ts +27 -0
- package/lib/types/controllers/board-render-object-cleanup.util.d.ts +7 -0
- package/lib/types/controllers/board-render.controller.d.ts +36 -0
- package/lib/types/controllers/board-selection-overlay.render-controller.d.ts +30 -0
- package/lib/types/controllers/board-selection-shortcut.controller.d.ts +20 -0
- package/lib/types/controllers/board-settings-shortcut.controller.d.ts +20 -0
- package/lib/types/controllers/board-shape-adjust.render-controller.d.ts +68 -0
- package/lib/types/controllers/board-shape-floating-toolbar.render-controller.d.ts +29 -0
- package/lib/types/controllers/board-shape-text-float-menu.render-controller.d.ts +9 -0
- package/lib/types/controllers/board-swimlane-lane-shortcut.controller.d.ts +23 -0
- package/lib/types/controllers/board-swimlane-resize.render-controller.d.ts +33 -0
- package/lib/types/controllers/board-text-editing.render-controller.d.ts +46 -0
- package/lib/types/controllers/board-theme-follow-univer.controller.d.ts +10 -0
- package/lib/types/controllers/board-tool-shortcut.controller.d.ts +22 -0
- package/lib/types/controllers/board-ui.controller.d.ts +9 -0
- package/lib/types/controllers/board-view-shortcut.controller.d.ts +29 -0
- package/lib/types/controllers/board-viewport-input.render-controller.d.ts +27 -0
- package/lib/types/index.d.ts +27 -0
- package/lib/types/locale/ar-SA.d.ts +3 -0
- package/lib/types/locale/ca-ES.d.ts +3 -0
- package/lib/types/locale/de-DE.d.ts +3 -0
- package/lib/types/locale/en-US.d.ts +659 -0
- package/lib/types/locale/es-ES.d.ts +3 -0
- package/lib/types/locale/fa-IR.d.ts +3 -0
- package/lib/types/locale/fr-FR.d.ts +3 -0
- package/lib/types/locale/id-ID.d.ts +3 -0
- package/lib/types/locale/it-IT.d.ts +3 -0
- package/lib/types/locale/ja-JP.d.ts +3 -0
- package/lib/types/locale/ko-KR.d.ts +3 -0
- package/lib/types/locale/pl-PL.d.ts +3 -0
- package/lib/types/locale/pt-BR.d.ts +3 -0
- package/lib/types/locale/ru-RU.d.ts +3 -0
- package/lib/types/locale/shared/shape-preset-labels.d.ts +153 -0
- package/lib/types/locale/sk-SK.d.ts +3 -0
- package/lib/types/locale/types.d.ts +3 -0
- package/lib/types/locale/vi-VN.d.ts +3 -0
- package/lib/types/locale/zh-CN.d.ts +3 -0
- package/lib/types/locale/zh-HK.d.ts +3 -0
- package/lib/types/locale/zh-TW.d.ts +3 -0
- package/lib/types/menu/board-container-child-contextmenu.menu.d.ts +5 -0
- package/lib/types/menu/board-container-child-contextmenu.schema.d.ts +2 -0
- package/lib/types/menu/board-container-contextmenu.menu.d.ts +9 -0
- package/lib/types/menu/board-container-contextmenu.schema.d.ts +2 -0
- package/lib/types/menu/board-contextmenu.d.ts +7 -0
- package/lib/types/menu/board-swimlane-contextmenu.menu.d.ts +8 -0
- package/lib/types/menu/board-swimlane-contextmenu.schema.d.ts +2 -0
- package/lib/types/plugin.d.ts +21 -0
- package/lib/types/render-adapters/board-element-render-adapter.d.ts +63 -0
- package/lib/types/render-objects/board-adjust-point-object.d.ts +27 -0
- package/lib/types/render-objects/board-connector-affordance-object.d.ts +21 -0
- package/lib/types/render-objects/board-connector-endpoint-object.d.ts +29 -0
- package/lib/types/render-objects/board-connector-object.d.ts +58 -0
- package/lib/types/render-objects/board-connector-quick-connect-preview-object.d.ts +22 -0
- package/lib/types/render-objects/board-connector-snap-object.d.ts +16 -0
- package/lib/types/render-objects/board-connector-waypoint-object.d.ts +51 -0
- package/lib/types/render-objects/board-container-membership-object.d.ts +19 -0
- package/lib/types/render-objects/board-document-text-render.util.d.ts +61 -0
- package/lib/types/render-objects/board-grid-object.d.ts +17 -0
- package/lib/types/render-objects/board-guide-object.d.ts +29 -0
- package/lib/types/render-objects/board-image-object.d.ts +16 -0
- package/lib/types/render-objects/board-ink-draft-object.d.ts +16 -0
- package/lib/types/render-objects/board-ink-eraser-draft-object.d.ts +18 -0
- package/lib/types/render-objects/board-ink-pen-editor-object.d.ts +39 -0
- package/lib/types/render-objects/board-ink-stage-action-button-object.d.ts +32 -0
- package/lib/types/render-objects/board-ink-tool-cursor-object.d.ts +19 -0
- package/lib/types/render-objects/board-pending-insert-object.d.ts +35 -0
- package/lib/types/render-objects/board-selection-marquee-object.d.ts +28 -0
- package/lib/types/render-objects/board-shape-object.d.ts +75 -0
- package/lib/types/render-objects/board-swimlane-resize-object.d.ts +33 -0
- package/lib/types/services/board-canvas-pop-manager.service.d.ts +22 -0
- package/lib/types/services/board-clipboard-resource-adapter.service.d.ts +54 -0
- package/lib/types/services/board-clipboard.service.d.ts +54 -0
- package/lib/types/services/board-connector-tool.service.d.ts +11 -0
- package/lib/types/services/board-container-rename.service.d.ts +20 -0
- package/lib/types/services/board-container-tool.service.d.ts +12 -0
- package/lib/types/services/board-dom-layer.service.d.ts +31 -0
- package/lib/types/services/board-element-edit.service.d.ts +124 -0
- package/lib/types/services/board-element-insert.service.d.ts +40 -0
- package/lib/types/services/board-element-state.service.d.ts +83 -0
- package/lib/types/services/board-find.service.d.ts +22 -0
- package/lib/types/services/board-image-insert.service.d.ts +23 -0
- package/lib/types/services/board-ink-edit.service.d.ts +33 -0
- package/lib/types/services/board-ink-pen-adapter.service.d.ts +22 -0
- package/lib/types/services/board-mermaid-import.service.d.ts +82 -0
- package/lib/types/services/board-render-scene.service.d.ts +9 -0
- package/lib/types/services/board-selection-overlay.service.d.ts +13 -0
- package/lib/types/services/board-selection.service.d.ts +18 -0
- package/lib/types/services/board-settings-action.service.d.ts +21 -0
- package/lib/types/services/board-settings.service.d.ts +13 -0
- package/lib/types/services/board-shape-intrinsic-size.service.d.ts +34 -0
- package/lib/types/services/board-side-panel.service.d.ts +37 -0
- package/lib/types/services/board-swimlane-lane-rename.service.d.ts +18 -0
- package/lib/types/services/board-text-editing.service.d.ts +45 -0
- package/lib/types/services/board-tool.service.d.ts +85 -0
- package/lib/types/services/board-ui-state.service.d.ts +98 -0
- package/lib/types/services/board-viewport.service.d.ts +15 -0
- package/lib/types/utils/board-alignment-guides.util.d.ts +27 -0
- package/lib/types/utils/board-clipboard.util.d.ts +40 -0
- package/lib/types/utils/board-connector-adjacency.util.d.ts +7 -0
- package/lib/types/utils/board-connector-affordance.util.d.ts +15 -0
- package/lib/types/utils/board-connector-hit-test.util.d.ts +14 -0
- package/lib/types/utils/board-connector-label.util.d.ts +17 -0
- package/lib/types/utils/board-connector-marker-anchor.util.d.ts +17 -0
- package/lib/types/utils/board-connector-marker.util.d.ts +13 -0
- package/lib/types/utils/board-connector-move.util.d.ts +8 -0
- package/lib/types/utils/board-connector-quick-connect.util.d.ts +22 -0
- package/lib/types/utils/board-connector-render-bounds.util.d.ts +11 -0
- package/lib/types/utils/board-connector-router.util.d.ts +62 -0
- package/lib/types/utils/board-connector-routing.util.d.ts +53 -0
- package/lib/types/utils/board-connector-selection.util.d.ts +10 -0
- package/lib/types/utils/board-connector-snap-highlight.util.d.ts +10 -0
- package/lib/types/utils/board-connector-snap.util.d.ts +25 -0
- package/lib/types/utils/board-connector-waypoint.util.d.ts +71 -0
- package/lib/types/utils/board-container-membership-overlay.util.d.ts +19 -0
- package/lib/types/utils/board-container-membership-update.util.d.ts +10 -0
- package/lib/types/utils/board-container-spatial-index.util.d.ts +16 -0
- package/lib/types/utils/board-container-target.util.d.ts +17 -0
- package/lib/types/utils/board-container-title-label.util.d.ts +20 -0
- package/lib/types/utils/board-container-toolbar.util.d.ts +40 -0
- package/lib/types/utils/board-draft-insert-position.util.d.ts +13 -0
- package/lib/types/utils/board-find.util.d.ts +25 -0
- package/lib/types/utils/board-floating-toolbar-anchor.util.d.ts +2 -0
- package/lib/types/utils/board-free-polyline-draft.util.d.ts +24 -0
- package/lib/types/utils/board-grid.util.d.ts +21 -0
- package/lib/types/utils/board-image-file.util.d.ts +11 -0
- package/lib/types/utils/board-image.util.d.ts +31 -0
- package/lib/types/utils/board-insert-config.util.d.ts +32 -0
- package/lib/types/utils/board-insert.util.d.ts +23 -0
- package/lib/types/utils/board-interaction-config.util.d.ts +19 -0
- package/lib/types/utils/board-mermaid-preview.util.d.ts +4 -0
- package/lib/types/utils/board-render-dirty.util.d.ts +8 -0
- package/lib/types/utils/board-render-page.util.d.ts +19 -0
- package/lib/types/utils/board-scene-input-lock.util.d.ts +7 -0
- package/lib/types/utils/board-selection-delete.util.d.ts +20 -0
- package/lib/types/utils/board-selection-geometry.util.d.ts +31 -0
- package/lib/types/utils/board-selection-hit-test.util.d.ts +17 -0
- package/lib/types/utils/board-selection-interaction.util.d.ts +23 -0
- package/lib/types/utils/board-selection-move.util.d.ts +17 -0
- package/lib/types/utils/board-selection-normalize.util.d.ts +3 -0
- package/lib/types/utils/board-selection-overlay.util.d.ts +15 -0
- package/lib/types/utils/board-selection-resize.util.d.ts +6 -0
- package/lib/types/utils/board-shape-editor.util.d.ts +9 -0
- package/lib/types/utils/board-shape-outline.util.d.ts +53 -0
- package/lib/types/utils/board-shape-text-document.util.d.ts +20 -0
- package/lib/types/utils/board-shape-theme.util.d.ts +4 -0
- package/lib/types/utils/board-shortcut-preconditions.util.d.ts +3 -0
- package/lib/types/utils/board-snap-session.util.d.ts +62 -0
- package/lib/types/utils/board-spacing-guides.util.d.ts +24 -0
- package/lib/types/utils/board-swimlane-focus.util.d.ts +11 -0
- package/lib/types/utils/board-swimlane-resize.util.d.ts +25 -0
- package/lib/types/utils/board-view-shortcut.util.d.ts +40 -0
- package/lib/types/utils/board-viewport-input.util.d.ts +35 -0
- package/lib/types/utils/board-viewport.util.d.ts +45 -0
- package/lib/types/views/BoardCanvasView.d.ts +1 -0
- package/lib/types/views/BoardConnectorFloatingToolbar.d.ts +17 -0
- package/lib/types/views/BoardConnectorQuickShapeMenu.d.ts +12 -0
- package/lib/types/views/BoardContainerRenamePopup.d.ts +6 -0
- package/lib/types/views/BoardDomLayerView.d.ts +8 -0
- package/lib/types/views/BoardFloatingPanelLayer.d.ts +1 -0
- package/lib/types/views/BoardFloatingToolPanel.d.ts +98 -0
- package/lib/types/views/BoardLeftToolbar.d.ts +1 -0
- package/lib/types/views/BoardMermaidImportDialog.d.ts +1 -0
- package/lib/types/views/BoardMindMapTemplateThumbnailIcon.d.ts +8 -0
- package/lib/types/views/BoardObjectListPanel.d.ts +1 -0
- package/lib/types/views/BoardSettingsMenu.d.ts +2 -0
- package/lib/types/views/BoardShapeFloatingToolbar.d.ts +16 -0
- package/lib/types/views/BoardShapePanel.d.ts +1 -0
- package/lib/types/views/BoardShapeTextEditorContainer.d.ts +24 -0
- package/lib/types/views/BoardShapeTextFloatToolbar.d.ts +1 -0
- package/lib/types/views/BoardShortcutHelpDrawer.d.ts +1 -0
- package/lib/types/views/BoardSwimlaneLaneRenamePopup.d.ts +6 -0
- package/lib/types/views/BoardTableSizePicker.d.ts +18 -0
- package/lib/types/views/BoardWorkbench.d.ts +1 -0
- package/lib/types/views/BoardZoomControls.d.ts +1 -0
- package/lib/types/views/board-floating-panel-layout.d.ts +33 -0
- package/lib/types/views/use-board-palette-pending-insert-drag.d.ts +9 -0
- package/lib/types/views/use-board-panel-outside-pointer-down.d.ts +5 -0
- package/lib/umd/index.js +1 -0
- package/lib/umd/locale/ar-SA.js +1 -0
- package/lib/umd/locale/ca-ES.js +1 -0
- package/lib/umd/locale/de-DE.js +1 -0
- package/lib/umd/locale/en-US.js +1 -0
- package/lib/umd/locale/es-ES.js +1 -0
- package/lib/umd/locale/fa-IR.js +1 -0
- package/lib/umd/locale/fr-FR.js +1 -0
- package/lib/umd/locale/id-ID.js +1 -0
- package/lib/umd/locale/it-IT.js +1 -0
- package/lib/umd/locale/ja-JP.js +1 -0
- package/lib/umd/locale/ko-KR.js +1 -0
- package/lib/umd/locale/pl-PL.js +1 -0
- package/lib/umd/locale/pt-BR.js +1 -0
- package/lib/umd/locale/ru-RU.js +1 -0
- package/lib/umd/locale/sk-SK.js +1 -0
- package/lib/umd/locale/vi-VN.js +1 -0
- package/lib/umd/locale/zh-CN.js +1 -0
- package/lib/umd/locale/zh-HK.js +1 -0
- package/lib/umd/locale/zh-TW.js +1 -0
- package/package.json +97 -0
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import type { UnitModel } from '@univerjs/core';
|
|
2
|
+
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
3
|
+
import { IBoardElementService } from '@univerjs-pro/boards';
|
|
4
|
+
import { IInkHostAdapterService } from '@univerjs-pro/ink';
|
|
5
|
+
import { IInkUIStateService } from '@univerjs-pro/ink-ui';
|
|
6
|
+
import { IUniverInstanceService, LocaleService, RxDisposable } from '@univerjs/core';
|
|
7
|
+
import { BoardElementEditService } from '../services/board-element-edit.service';
|
|
8
|
+
import { IBoardElementStateService } from '../services/board-element-state.service';
|
|
9
|
+
import { IBoardInkEditService } from '../services/board-ink-edit.service';
|
|
10
|
+
import { IBoardUIStateService } from '../services/board-ui-state.service';
|
|
11
|
+
export declare class BoardInkInteractionRenderController extends RxDisposable implements IRenderModule {
|
|
12
|
+
private readonly _renderContext;
|
|
13
|
+
private readonly _instanceSrv;
|
|
14
|
+
private readonly _inkStateService;
|
|
15
|
+
private readonly _inkHostAdapterService;
|
|
16
|
+
private readonly _boardUIStateService;
|
|
17
|
+
private readonly _boardElementService;
|
|
18
|
+
private readonly _boardElementEditService;
|
|
19
|
+
private readonly _inkEditService;
|
|
20
|
+
private readonly _localeService;
|
|
21
|
+
private readonly _boardElementStateService;
|
|
22
|
+
private _draft;
|
|
23
|
+
private _draftObject;
|
|
24
|
+
private _eraserDraftObject;
|
|
25
|
+
private _penEditorObject;
|
|
26
|
+
private _stageActionButtonObject;
|
|
27
|
+
private _toolCursorObject;
|
|
28
|
+
private _penEditSession;
|
|
29
|
+
private _lastInkSession;
|
|
30
|
+
private _penExitButtonHovered;
|
|
31
|
+
private _stageActionButtonTarget;
|
|
32
|
+
private _stageActionButtonRect;
|
|
33
|
+
private _stageActionBoundsRect;
|
|
34
|
+
private _stageActionButtonHovered;
|
|
35
|
+
private _stage2PenEditCandidate;
|
|
36
|
+
private _suppressNextPointerDownPoint;
|
|
37
|
+
private _suppressNextPointerUp;
|
|
38
|
+
private _hiddenPenEditSourceObject;
|
|
39
|
+
private _pendingPenEditSourceRestore;
|
|
40
|
+
private readonly _erasedElementIds;
|
|
41
|
+
constructor(_renderContext: IRenderContext<UnitModel>, _instanceSrv: IUniverInstanceService, _inkStateService: IInkUIStateService, _inkHostAdapterService: IInkHostAdapterService, _boardUIStateService: IBoardUIStateService, _boardElementService: IBoardElementService, _boardElementEditService: BoardElementEditService, _inkEditService: IBoardInkEditService, _localeService: LocaleService, _boardElementStateService: IBoardElementStateService);
|
|
42
|
+
private _init;
|
|
43
|
+
private _subscribeToKeyboardEvents;
|
|
44
|
+
private _isPenKeyboardInteractionActive;
|
|
45
|
+
private _handleKeyDown;
|
|
46
|
+
private _handleWindowPointerMove;
|
|
47
|
+
private _isInkDrawingActiveForThisBoard;
|
|
48
|
+
private _isPenEditingActiveForThisBoard;
|
|
49
|
+
private _isInkInteractionModeActiveForThisBoard;
|
|
50
|
+
private _getInkInteractionStageForThisBoard;
|
|
51
|
+
private _syncSceneInputMode;
|
|
52
|
+
private _suppressBoardSelectionAffordances;
|
|
53
|
+
private _getBoardPointFromEvent;
|
|
54
|
+
private _getPenCloseTolerance;
|
|
55
|
+
private _getPenHandleHitTolerance;
|
|
56
|
+
private _getPenPathInsertTolerance;
|
|
57
|
+
private _getInkStyle;
|
|
58
|
+
private _getToolCursorRadius;
|
|
59
|
+
private _getToolCursorState;
|
|
60
|
+
private _syncToolCursor;
|
|
61
|
+
private _getPenExitButtonLabel;
|
|
62
|
+
private _getStageActionButtonLabel;
|
|
63
|
+
private _getPenExitButtonModel;
|
|
64
|
+
private _isPenExitButtonHit;
|
|
65
|
+
private _setPenExitButtonHovered;
|
|
66
|
+
private _isStageActionButtonTool;
|
|
67
|
+
private _getElementBoundsRect;
|
|
68
|
+
private _isPointInElementBounds;
|
|
69
|
+
private _pickInkEditTargetFromEvent;
|
|
70
|
+
private _getInkStyleFromShapeElement;
|
|
71
|
+
private _getBoardElementById;
|
|
72
|
+
private _setPenEditSourceObjectHidden;
|
|
73
|
+
private _syncPenEditSessionFromService;
|
|
74
|
+
private _tryBeginPenEditFromEvent;
|
|
75
|
+
private _createBrushSample;
|
|
76
|
+
private _handlePointerDown;
|
|
77
|
+
private _handlePointerMove;
|
|
78
|
+
private _handlePointerUp;
|
|
79
|
+
private _handlePointerCancel;
|
|
80
|
+
private _handleDoubleClick;
|
|
81
|
+
private _captureStage2PenEditCandidate;
|
|
82
|
+
private _invalidateStage2PenEditCandidate;
|
|
83
|
+
private _handlePenPointerDown;
|
|
84
|
+
private _tryClosePenDraft;
|
|
85
|
+
private _handleClosedPenDraftPointerDown;
|
|
86
|
+
private _createPenAnchor;
|
|
87
|
+
private _updatePenDraftPointerMove;
|
|
88
|
+
private _updateClosedPenDraftHover;
|
|
89
|
+
private _handlePenEditPointerDown;
|
|
90
|
+
private _handlePenEditPointerMove;
|
|
91
|
+
private _commitPenEditIfDirty;
|
|
92
|
+
private _commitModel;
|
|
93
|
+
private _commitPenDraftOnExit;
|
|
94
|
+
private _commitPenEditSafely;
|
|
95
|
+
private _commitModelSafely;
|
|
96
|
+
private _finishCurrentPenPath;
|
|
97
|
+
private _exitPenDraftStage;
|
|
98
|
+
private _exitPenEditStage;
|
|
99
|
+
private _tryBeginStageActionButtonEdit;
|
|
100
|
+
private _isPointInStageActionKeepAliveArea;
|
|
101
|
+
private _updateStageActionButtonFromEvent;
|
|
102
|
+
private _isEraserPointInBounds;
|
|
103
|
+
private _doesEraserHitBounds;
|
|
104
|
+
private _isInkCustomElement;
|
|
105
|
+
private _commitEraserDraft;
|
|
106
|
+
private _eraseAtEvent;
|
|
107
|
+
private _syncStageActionButtonObject;
|
|
108
|
+
private _ensureStageActionButtonObject;
|
|
109
|
+
private _clearStageActionButton;
|
|
110
|
+
private _syncDraftObject;
|
|
111
|
+
private _ensureDraftObject;
|
|
112
|
+
private _syncPenEditorObject;
|
|
113
|
+
private _ensurePenEditorObject;
|
|
114
|
+
private _removePenEditorObject;
|
|
115
|
+
private _removeStageActionButtonObject;
|
|
116
|
+
private _ensureToolCursorObject;
|
|
117
|
+
private _removeToolCursorObject;
|
|
118
|
+
private _ensureEraserDraftObject;
|
|
119
|
+
private _syncEraserDraftObject;
|
|
120
|
+
private _removeEraserDraftObject;
|
|
121
|
+
private _removeDraftObject;
|
|
122
|
+
private _clearDraft;
|
|
123
|
+
private _consumeEvent;
|
|
124
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IBoardElementService } from '@univerjs-pro/boards';
|
|
2
|
+
import { ICommandService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
3
|
+
import { IShortcutService } from '@univerjs/ui';
|
|
4
|
+
import { BoardElementEditService } from '../services/board-element-edit.service';
|
|
5
|
+
import { IBoardElementStateService } from '../services/board-element-state.service';
|
|
6
|
+
export declare const BOARD_LAYOUT_SHORTCUT_OPERATION_ID = "board.operation.layout-shortcut";
|
|
7
|
+
export declare class BoardLayoutShortcutController extends RxDisposable {
|
|
8
|
+
private readonly _instanceService;
|
|
9
|
+
private readonly _boardElementService;
|
|
10
|
+
private readonly _elementStateService;
|
|
11
|
+
private readonly _elementEditService;
|
|
12
|
+
private readonly _commandService;
|
|
13
|
+
private readonly _shortcutService;
|
|
14
|
+
constructor(_instanceService: IUniverInstanceService, _boardElementService: IBoardElementService, _elementStateService: IBoardElementStateService, _elementEditService: BoardElementEditService, _commandService: ICommandService, _shortcutService: IShortcutService);
|
|
15
|
+
private _init;
|
|
16
|
+
private _createLayoutShortcutOperation;
|
|
17
|
+
private _createShortcutItem;
|
|
18
|
+
private _handleShortcut;
|
|
19
|
+
private _getCurrentBoardModel;
|
|
20
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IBoardImportAdapterService } from '@univerjs-pro/boards';
|
|
2
|
+
import { Disposable } from '@univerjs/core';
|
|
3
|
+
import { IBoardMermaidImportService } from '../services/board-mermaid-import.service';
|
|
4
|
+
export declare class BoardMermaidImportController extends Disposable {
|
|
5
|
+
private readonly _importAdapterService;
|
|
6
|
+
private readonly _mermaidImportService;
|
|
7
|
+
constructor(_importAdapterService: IBoardImportAdapterService, _mermaidImportService: IBoardMermaidImportService);
|
|
8
|
+
private _initAdapter;
|
|
9
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ICommandService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
2
|
+
import { IShortcutService } from '@univerjs/ui';
|
|
3
|
+
import { IBoardElementStateService } from '../services/board-element-state.service';
|
|
4
|
+
export declare const BOARD_ORDER_SHORTCUT_OPERATION_ID = "board.operation.order-shortcut";
|
|
5
|
+
export declare class BoardOrderShortcutController extends RxDisposable {
|
|
6
|
+
private readonly _instanceService;
|
|
7
|
+
private readonly _elementStateService;
|
|
8
|
+
private readonly _commandService;
|
|
9
|
+
private readonly _shortcutService;
|
|
10
|
+
constructor(_instanceService: IUniverInstanceService, _elementStateService: IBoardElementStateService, _commandService: ICommandService, _shortcutService: IShortcutService);
|
|
11
|
+
private _init;
|
|
12
|
+
private _createOrderShortcutOperation;
|
|
13
|
+
private _createShortcutItem;
|
|
14
|
+
private _handleShortcut;
|
|
15
|
+
private _getCurrentBoardModel;
|
|
16
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { UnitModel } from '@univerjs/core';
|
|
2
|
+
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
3
|
+
import { IConfigService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
4
|
+
import { BoardElementInsertService } from '../services/board-element-insert.service';
|
|
5
|
+
import { IBoardUIStateService } from '../services/board-ui-state.service';
|
|
6
|
+
export declare class BoardPendingInsertRenderController extends RxDisposable implements IRenderModule {
|
|
7
|
+
private readonly _renderContext;
|
|
8
|
+
private readonly _instanceSrv;
|
|
9
|
+
private readonly _configService;
|
|
10
|
+
private readonly _stateService;
|
|
11
|
+
private readonly _insertService;
|
|
12
|
+
private _previewObject;
|
|
13
|
+
private _lastPoint;
|
|
14
|
+
private _lastRect;
|
|
15
|
+
private _containerDraftStartPoint;
|
|
16
|
+
constructor(_renderContext: IRenderContext<UnitModel>, _instanceSrv: IUniverInstanceService, _configService: IConfigService, _stateService: IBoardUIStateService, _insertService: BoardElementInsertService);
|
|
17
|
+
private _init;
|
|
18
|
+
private _cancelPendingInsertDraft;
|
|
19
|
+
private _syncSceneInputMode;
|
|
20
|
+
private _syncPreviewObject;
|
|
21
|
+
private _ensurePreviewObject;
|
|
22
|
+
private _getPreviewAlpha;
|
|
23
|
+
private _removePreviewObject;
|
|
24
|
+
private _handlePointerMove;
|
|
25
|
+
private _handlePointerDown;
|
|
26
|
+
private _handlePointerUp;
|
|
27
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { BaseObject } from '@univerjs/engine-render';
|
|
2
|
+
interface ISceneObjectLookup {
|
|
3
|
+
getAllObjects?: () => BaseObject[];
|
|
4
|
+
}
|
|
5
|
+
export declare function detachBoardRenderObjectsFromGroups(objects: BaseObject[]): BaseObject[];
|
|
6
|
+
export declare function collectBoardRenderObjectsForCleanup(scene: ISceneObjectLookup, unitId: string, renderedObjectKeys: Set<string>): BaseObject[];
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { UnitModel } from '@univerjs/core';
|
|
2
|
+
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
3
|
+
import { IBoardElementService } from '@univerjs-pro/boards';
|
|
4
|
+
import { IConfigService, IImageIoService, IUniverInstanceService, LocaleService, RxDisposable, ThemeService } from '@univerjs/core';
|
|
5
|
+
import { IBoardElementStateService } from '../services/board-element-state.service';
|
|
6
|
+
import { IBoardUIStateService } from '../services/board-ui-state.service';
|
|
7
|
+
export declare const BOARD_MAIN_VIEWPORT_KEY = "viewMain";
|
|
8
|
+
export declare const BOARD_BG_RECT_KEY = "board-bg-rect";
|
|
9
|
+
export declare class BoardRenderController extends RxDisposable implements IRenderModule {
|
|
10
|
+
private readonly _renderContext;
|
|
11
|
+
private readonly _instanceSrv;
|
|
12
|
+
private readonly _boardElementService;
|
|
13
|
+
private readonly _configService;
|
|
14
|
+
private readonly _boardElementStateService;
|
|
15
|
+
private readonly _boardUIStateService;
|
|
16
|
+
private readonly _localeService;
|
|
17
|
+
private readonly _themeService;
|
|
18
|
+
private readonly _imageIoService?;
|
|
19
|
+
private readonly _renderedObjectKeys;
|
|
20
|
+
private _renderedObjectLayerIndexes;
|
|
21
|
+
private _focusedSwimlaneFocus;
|
|
22
|
+
private _backgroundRect;
|
|
23
|
+
constructor(_renderContext: IRenderContext<UnitModel>, _instanceSrv: IUniverInstanceService, _boardElementService: IBoardElementService, _configService: IConfigService, _boardElementStateService: IBoardElementStateService, _boardUIStateService: IBoardUIStateService, _localeService: LocaleService, _themeService: ThemeService, _imageIoService?: IImageIoService | undefined);
|
|
24
|
+
private _init;
|
|
25
|
+
private _resolvePageBackgroundFill;
|
|
26
|
+
private _syncBackgroundRectToViewport;
|
|
27
|
+
private _enableStableLayerCaches;
|
|
28
|
+
private _syncSceneViewport;
|
|
29
|
+
private _syncFocusedSwimlaneLane;
|
|
30
|
+
private _clearRenderedBoardObjects;
|
|
31
|
+
private _renderBoardElements;
|
|
32
|
+
private _getBoardRenderObject;
|
|
33
|
+
private _resolveExistingBoardElementObjectLayerIndex;
|
|
34
|
+
private _resolveBoardElementObjectLayerIndex;
|
|
35
|
+
private _resolveBoardElementObjectZIndex;
|
|
36
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { UnitModel } from '@univerjs/core';
|
|
2
|
+
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
3
|
+
import { IBoardElementService } from '@univerjs-pro/boards';
|
|
4
|
+
import { IConfigService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
5
|
+
import { IBoardElementStateService } from '../services/board-element-state.service';
|
|
6
|
+
import { BoardSelectionOverlayService } from '../services/board-selection-overlay.service';
|
|
7
|
+
import { BoardTextEditingService } from '../services/board-text-editing.service';
|
|
8
|
+
import { IBoardUIStateService } from '../services/board-ui-state.service';
|
|
9
|
+
export declare class BoardSelectionOverlayRenderController extends RxDisposable implements IRenderModule {
|
|
10
|
+
private readonly _renderContext;
|
|
11
|
+
private readonly _instanceSrv;
|
|
12
|
+
private readonly _boardElementService;
|
|
13
|
+
private readonly _elementStateService;
|
|
14
|
+
private readonly _selectionOverlayService;
|
|
15
|
+
private readonly _uiStateService;
|
|
16
|
+
private readonly _configService;
|
|
17
|
+
private readonly _boardTextEditingService;
|
|
18
|
+
private _areTransformGuidesDisabled;
|
|
19
|
+
private _marqueeObject;
|
|
20
|
+
private _dimensionsObject;
|
|
21
|
+
private _guideObject;
|
|
22
|
+
private _transformGuideLines;
|
|
23
|
+
constructor(_renderContext: IRenderContext<UnitModel>, _instanceSrv: IUniverInstanceService, _boardElementService: IBoardElementService, _elementStateService: IBoardElementStateService, _selectionOverlayService: BoardSelectionOverlayService, _uiStateService: IBoardUIStateService, _configService: IConfigService, _boardTextEditingService: BoardTextEditingService);
|
|
24
|
+
private _init;
|
|
25
|
+
private _subscribeToTransformer;
|
|
26
|
+
private _subscribeToTransformGuideModifier;
|
|
27
|
+
private _sync;
|
|
28
|
+
private _syncTransformGuides;
|
|
29
|
+
private _syncGuideObject;
|
|
30
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IBoardElementService } from '@univerjs-pro/boards';
|
|
2
|
+
import { ICommandService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
3
|
+
import { IShortcutService } from '@univerjs/ui';
|
|
4
|
+
import { BoardElementEditService } from '../services/board-element-edit.service';
|
|
5
|
+
import { IBoardElementStateService } from '../services/board-element-state.service';
|
|
6
|
+
export declare const BOARD_SELECTION_SHORTCUT_OPERATION_ID = "board.operation.selection-shortcut";
|
|
7
|
+
export declare class BoardSelectionShortcutController extends RxDisposable {
|
|
8
|
+
private readonly _instanceService;
|
|
9
|
+
private readonly _boardElementService;
|
|
10
|
+
private readonly _elementStateService;
|
|
11
|
+
private readonly _elementEditService;
|
|
12
|
+
private readonly _commandService;
|
|
13
|
+
private readonly _shortcutService;
|
|
14
|
+
constructor(_instanceService: IUniverInstanceService, _boardElementService: IBoardElementService, _elementStateService: IBoardElementStateService, _elementEditService: BoardElementEditService, _commandService: ICommandService, _shortcutService: IShortcutService);
|
|
15
|
+
private _init;
|
|
16
|
+
private _createSelectionShortcutOperation;
|
|
17
|
+
private _createShortcutItem;
|
|
18
|
+
private _handleShortcut;
|
|
19
|
+
private _getCurrentBoardModel;
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ICommandService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
2
|
+
import { IShortcutService } from '@univerjs/ui';
|
|
3
|
+
import { IBoardElementStateService } from '../services/board-element-state.service';
|
|
4
|
+
import { BoardSettingsService } from '../services/board-settings.service';
|
|
5
|
+
import { IBoardUIStateService } from '../services/board-ui-state.service';
|
|
6
|
+
export declare const BOARD_SETTINGS_SHORTCUT_OPERATION_ID = "board.operation.settings-shortcut";
|
|
7
|
+
export declare class BoardSettingsShortcutController extends RxDisposable {
|
|
8
|
+
private readonly _instanceService;
|
|
9
|
+
private readonly _elementStateService;
|
|
10
|
+
private readonly _stateService;
|
|
11
|
+
private readonly _settingsService;
|
|
12
|
+
private readonly _commandService;
|
|
13
|
+
private readonly _shortcutService;
|
|
14
|
+
constructor(_instanceService: IUniverInstanceService, _elementStateService: IBoardElementStateService, _stateService: IBoardUIStateService, _settingsService: BoardSettingsService, _commandService: ICommandService, _shortcutService: IShortcutService);
|
|
15
|
+
private _init;
|
|
16
|
+
private _createSettingsShortcutOperation;
|
|
17
|
+
private _createShortcutItem;
|
|
18
|
+
private _handleShortcut;
|
|
19
|
+
private _getCurrentBoardModel;
|
|
20
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import type { UnitModel } from '@univerjs/core';
|
|
2
|
+
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
3
|
+
import { IBoardElementService } from '@univerjs-pro/boards';
|
|
4
|
+
import { RxDisposable } from '@univerjs/core';
|
|
5
|
+
import { BoardElementEditService } from '../services/board-element-edit.service';
|
|
6
|
+
import { IBoardElementStateService } from '../services/board-element-state.service';
|
|
7
|
+
import { BoardTextEditingService } from '../services/board-text-editing.service';
|
|
8
|
+
import { IBoardUIStateService } from '../services/board-ui-state.service';
|
|
9
|
+
export declare class BoardShapeAdjustRenderController extends RxDisposable implements IRenderModule {
|
|
10
|
+
private readonly _renderContext;
|
|
11
|
+
private readonly _boardElementService;
|
|
12
|
+
private readonly _boardElementEditService;
|
|
13
|
+
private readonly _boardElementStateService;
|
|
14
|
+
private readonly _boardUIStateService;
|
|
15
|
+
private readonly _boardTextEditingService;
|
|
16
|
+
private _handles;
|
|
17
|
+
private _activeElement;
|
|
18
|
+
private _isAdjustHandleDragging;
|
|
19
|
+
private _suspendHandleDisplay;
|
|
20
|
+
private _refreshScheduled;
|
|
21
|
+
private _inkInsertHandle;
|
|
22
|
+
private _inkInsertHit;
|
|
23
|
+
private _inkAnchorSeed;
|
|
24
|
+
private _ownsSequenceLifelineHandleCursor;
|
|
25
|
+
constructor(_renderContext: IRenderContext<UnitModel>, _boardElementService: IBoardElementService, _boardElementEditService: BoardElementEditService, _boardElementStateService: IBoardElementStateService, _boardUIStateService: IBoardUIStateService, _boardTextEditingService: BoardTextEditingService);
|
|
26
|
+
private _init;
|
|
27
|
+
private _syncHandlesFromSelectionState;
|
|
28
|
+
private _createHandlesForActiveElement;
|
|
29
|
+
private _createSequenceLifelineHandleForActiveElement;
|
|
30
|
+
private _resolveSequenceLifelineHandlePoint;
|
|
31
|
+
private _calcSequenceLifelineHeight;
|
|
32
|
+
private _attachSequenceLifelineHandleEvent;
|
|
33
|
+
private _setSequenceLifelineHandleHovered;
|
|
34
|
+
private _setSequenceLifelineHandleCursor;
|
|
35
|
+
private _syncSequenceLifelineHandlePosition;
|
|
36
|
+
private _createInkHandlesForActiveElement;
|
|
37
|
+
private _shouldShowInkShapeAdjustHandles;
|
|
38
|
+
private _attachHandleEvent;
|
|
39
|
+
private _attachInkHandleEvent;
|
|
40
|
+
private _updateInkPenModelPoint;
|
|
41
|
+
private _syncInkHandlePositions;
|
|
42
|
+
private _calcAdjustValue;
|
|
43
|
+
private _syncHandlePositions;
|
|
44
|
+
private _previewAdjValueUpdate;
|
|
45
|
+
private _previewSequenceLifelineHeightUpdate;
|
|
46
|
+
private _previewInkModelUpdate;
|
|
47
|
+
private _commitAdjValueUpdate;
|
|
48
|
+
private _commitSequenceLifelineHeightUpdate;
|
|
49
|
+
private _commitInkModelUpdate;
|
|
50
|
+
private _buildInkElementUpdate;
|
|
51
|
+
private _subscribeToTransformerVisibility;
|
|
52
|
+
private _subscribeToInkPathInsertion;
|
|
53
|
+
private _updateInkInsertHandle;
|
|
54
|
+
private _clearInkInsertHandle;
|
|
55
|
+
private _hideHandlesForExternalAction;
|
|
56
|
+
private _restoreHandlesAfterExternalAction;
|
|
57
|
+
private _scheduleRefreshActiveHandles;
|
|
58
|
+
private _refreshActiveHandles;
|
|
59
|
+
clearHandles(): void;
|
|
60
|
+
private _clearHandles;
|
|
61
|
+
private _resolveActiveShape;
|
|
62
|
+
private _getInkPenEditInfo;
|
|
63
|
+
private _getActiveShapeObject;
|
|
64
|
+
private _createCoordTransform;
|
|
65
|
+
private _getBoardPointFromEvent;
|
|
66
|
+
private _getZoomRatio;
|
|
67
|
+
private _createInkAnchorId;
|
|
68
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { UnitModel } from '@univerjs/core';
|
|
2
|
+
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
3
|
+
import { IBoardElementService } from '@univerjs-pro/boards';
|
|
4
|
+
import { RxDisposable } from '@univerjs/core';
|
|
5
|
+
import { ComponentManager } from '@univerjs/ui';
|
|
6
|
+
import { BoardCanvasPopManagerService } from '../services/board-canvas-pop-manager.service';
|
|
7
|
+
import { IBoardElementStateService } from '../services/board-element-state.service';
|
|
8
|
+
import { IBoardInkEditService } from '../services/board-ink-edit.service';
|
|
9
|
+
import { BoardTextEditingService } from '../services/board-text-editing.service';
|
|
10
|
+
export declare class BoardShapeFloatingToolbarRenderController extends RxDisposable implements IRenderModule {
|
|
11
|
+
private readonly _renderContext;
|
|
12
|
+
private readonly _componentManager;
|
|
13
|
+
private readonly _boardCanvasPopManagerService;
|
|
14
|
+
private readonly _boardElementService;
|
|
15
|
+
private readonly _elementStateService;
|
|
16
|
+
private readonly _boardTextEditingService;
|
|
17
|
+
private readonly _inkEditService;
|
|
18
|
+
private _popupDisposable;
|
|
19
|
+
private _popupSelectionKey;
|
|
20
|
+
constructor(_renderContext: IRenderContext<UnitModel>, _componentManager: ComponentManager, _boardCanvasPopManagerService: BoardCanvasPopManagerService, _boardElementService: IBoardElementService, _elementStateService: IBoardElementStateService, _boardTextEditingService: BoardTextEditingService, _inkEditService: IBoardInkEditService);
|
|
21
|
+
dispose(): void;
|
|
22
|
+
private _init;
|
|
23
|
+
private _clearPopup;
|
|
24
|
+
private _clearPopupIfSelectionChanged;
|
|
25
|
+
private _isPopupSelectionStillActive;
|
|
26
|
+
private _buildPopupSelectionKey;
|
|
27
|
+
private _showPopupForSelection;
|
|
28
|
+
private _resolveSelectedEntry;
|
|
29
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DocumentDataModel } from '@univerjs/core';
|
|
2
|
+
import type { IRenderContext } from '@univerjs/engine-render';
|
|
3
|
+
import { ShapeTextFloatMenuRenderControllerBase } from '@univerjs-pro/shape-editor-ui';
|
|
4
|
+
import { DocSelectionManagerService } from '@univerjs/docs';
|
|
5
|
+
import { DocCanvasPopManagerService, DocSelectionRenderService } from '@univerjs/docs-ui';
|
|
6
|
+
import { ComponentManager } from '@univerjs/ui';
|
|
7
|
+
export declare class BoardShapeTextFloatMenuRenderController extends ShapeTextFloatMenuRenderControllerBase {
|
|
8
|
+
constructor(context: IRenderContext<DocumentDataModel>, docSelectionManagerService: DocSelectionManagerService, docCanvasPopManagerService: DocCanvasPopManagerService, componentManager: ComponentManager, docSelectionRenderService: DocSelectionRenderService);
|
|
9
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IBoardElementService } from '@univerjs-pro/boards';
|
|
2
|
+
import { ICommandService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
3
|
+
import { IShortcutService } from '@univerjs/ui';
|
|
4
|
+
import { BoardElementEditService } from '../services/board-element-edit.service';
|
|
5
|
+
import { IBoardElementStateService } from '../services/board-element-state.service';
|
|
6
|
+
import { BoardSwimlaneLaneRenameService } from '../services/board-swimlane-lane-rename.service';
|
|
7
|
+
export declare const BOARD_SWIMLANE_LANE_SHORTCUT_OPERATION_ID = "board.operation.swimlane-lane-shortcut";
|
|
8
|
+
export declare class BoardSwimlaneLaneShortcutController extends RxDisposable {
|
|
9
|
+
private readonly _instanceService;
|
|
10
|
+
private readonly _boardElementService;
|
|
11
|
+
private readonly _elementStateService;
|
|
12
|
+
private readonly _editService;
|
|
13
|
+
private readonly _renameService;
|
|
14
|
+
private readonly _commandService;
|
|
15
|
+
private readonly _shortcutService;
|
|
16
|
+
constructor(_instanceService: IUniverInstanceService, _boardElementService: IBoardElementService, _elementStateService: IBoardElementStateService, _editService: BoardElementEditService, _renameService: BoardSwimlaneLaneRenameService, _commandService: ICommandService, _shortcutService: IShortcutService);
|
|
17
|
+
private _init;
|
|
18
|
+
private _createShortcutOperation;
|
|
19
|
+
private _createShortcutItem;
|
|
20
|
+
private _canHandleFocusedLane;
|
|
21
|
+
private _handleShortcut;
|
|
22
|
+
private _getCurrentBoardModel;
|
|
23
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { UnitModel } from '@univerjs/core';
|
|
2
|
+
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
3
|
+
import { IBoardElementService } from '@univerjs-pro/boards';
|
|
4
|
+
import { ICommandService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
5
|
+
import { IBoardElementStateService } from '../services/board-element-state.service';
|
|
6
|
+
import { IBoardUIStateService } from '../services/board-ui-state.service';
|
|
7
|
+
export declare class BoardSwimlaneResizeRenderController extends RxDisposable implements IRenderModule {
|
|
8
|
+
private readonly _renderContext;
|
|
9
|
+
private readonly _instanceSrv;
|
|
10
|
+
private readonly _boardElementService;
|
|
11
|
+
private readonly _elementStateService;
|
|
12
|
+
private readonly _uiStateService;
|
|
13
|
+
private readonly _commandService;
|
|
14
|
+
private _resizeObject;
|
|
15
|
+
private _draft;
|
|
16
|
+
private _ownsResizeCursor;
|
|
17
|
+
constructor(_renderContext: IRenderContext<UnitModel>, _instanceSrv: IUniverInstanceService, _boardElementService: IBoardElementService, _elementStateService: IBoardElementStateService, _uiStateService: IBoardUIStateService, _commandService: ICommandService);
|
|
18
|
+
private _init;
|
|
19
|
+
private _handlePointerDown;
|
|
20
|
+
private _handlePointerMove;
|
|
21
|
+
private _handlePointerUp;
|
|
22
|
+
private _clearDraft;
|
|
23
|
+
private _syncResizeAffordance;
|
|
24
|
+
private _syncHoverAffordance;
|
|
25
|
+
private _clearHoverAffordance;
|
|
26
|
+
private _resolveHoverAffordance;
|
|
27
|
+
private _resolveResizeAffordance;
|
|
28
|
+
private _canStartResize;
|
|
29
|
+
private _canHoverResizeFromState;
|
|
30
|
+
private _resolveHitHandle;
|
|
31
|
+
private _getBoardPointFromEvent;
|
|
32
|
+
private _setResizeCursor;
|
|
33
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { UnitModel } from '@univerjs/core';
|
|
2
|
+
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
3
|
+
import { IBoardElementService } from '@univerjs-pro/boards';
|
|
4
|
+
import { IInkUIStateService } from '@univerjs-pro/ink-ui';
|
|
5
|
+
import { IContextService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
6
|
+
import { BoardContainerRenameService } from '../services/board-container-rename.service';
|
|
7
|
+
import { IBoardElementStateService } from '../services/board-element-state.service';
|
|
8
|
+
import { BoardSwimlaneLaneRenameService } from '../services/board-swimlane-lane-rename.service';
|
|
9
|
+
import { BoardTextEditingService } from '../services/board-text-editing.service';
|
|
10
|
+
import { IBoardUIStateService } from '../services/board-ui-state.service';
|
|
11
|
+
export declare class BoardTextEditingRenderController extends RxDisposable implements IRenderModule {
|
|
12
|
+
private readonly _renderContext;
|
|
13
|
+
private readonly _instanceService;
|
|
14
|
+
private readonly _boardElementService;
|
|
15
|
+
private readonly _boardTextEditingService;
|
|
16
|
+
private readonly _boardContainerRenameService;
|
|
17
|
+
private readonly _boardSwimlaneLaneRenameService;
|
|
18
|
+
private readonly _elementStateService;
|
|
19
|
+
private readonly _uiStateService;
|
|
20
|
+
private readonly _contextService;
|
|
21
|
+
private readonly _inkStateService?;
|
|
22
|
+
private _attachScheduled;
|
|
23
|
+
private _lastEditingShapeKey;
|
|
24
|
+
private _ignoreFocusChangesUntil;
|
|
25
|
+
private _objectDblclickDisposables;
|
|
26
|
+
constructor(_renderContext: IRenderContext<UnitModel>, _instanceService: IUniverInstanceService, _boardElementService: IBoardElementService, _boardTextEditingService: BoardTextEditingService, _boardContainerRenameService: BoardContainerRenameService, _boardSwimlaneLaneRenameService: BoardSwimlaneLaneRenameService, _elementStateService: IBoardElementStateService, _uiStateService: IBoardUIStateService, _contextService: IContextService, _inkStateService?: IInkUIStateService | undefined);
|
|
27
|
+
private _shouldIgnoreFocusChanges;
|
|
28
|
+
private _init;
|
|
29
|
+
private _subscribeToEditingState;
|
|
30
|
+
private _scheduleAttachObjectDoubleClicks;
|
|
31
|
+
private _attachObjectDoubleClicks;
|
|
32
|
+
private _handleSceneDoubleClick;
|
|
33
|
+
private _isInkInteractionActiveForThisBoard;
|
|
34
|
+
private _handleElementDoubleClick;
|
|
35
|
+
private _enterEditing;
|
|
36
|
+
private _resolveSwimlaneLaneHeaderAtPoint;
|
|
37
|
+
private _getBoardPointFromEvent;
|
|
38
|
+
private _wireCanvasTitleDoubleClickFallback;
|
|
39
|
+
private _resolveCanvasEventOffsets;
|
|
40
|
+
private _pickBoardElementObject;
|
|
41
|
+
private _pickBoardContainerTitleLabelObject;
|
|
42
|
+
private _resolveBoardObjectHit;
|
|
43
|
+
private _hitTestBoardObjects;
|
|
44
|
+
private _setEditingOnObject;
|
|
45
|
+
private _isConnectorLabelHit;
|
|
46
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IUniverInstanceService, RxDisposable, ThemeService } from '@univerjs/core';
|
|
2
|
+
import { BoardSettingsService } from '../services/board-settings.service';
|
|
3
|
+
export declare class BoardThemeFollowUniverController extends RxDisposable {
|
|
4
|
+
private readonly _instanceService;
|
|
5
|
+
private readonly _themeService;
|
|
6
|
+
private readonly _settingsService;
|
|
7
|
+
constructor(_instanceService: IUniverInstanceService, _themeService: ThemeService, _settingsService: BoardSettingsService);
|
|
8
|
+
private _init;
|
|
9
|
+
private _getCurrentBoardModel;
|
|
10
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ICommandService, IConfigService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
2
|
+
import { IShortcutService } from '@univerjs/ui';
|
|
3
|
+
import { IBoardElementStateService } from '../services/board-element-state.service';
|
|
4
|
+
import { BoardToolService } from '../services/board-tool.service';
|
|
5
|
+
import { IBoardUIStateService } from '../services/board-ui-state.service';
|
|
6
|
+
export declare const BOARD_TOOL_SHORTCUT_OPERATION_ID = "board.operation.tool-shortcut";
|
|
7
|
+
export declare class BoardToolShortcutController extends RxDisposable {
|
|
8
|
+
private readonly _instanceService;
|
|
9
|
+
private readonly _configService;
|
|
10
|
+
private readonly _elementStateService;
|
|
11
|
+
private readonly _stateService;
|
|
12
|
+
private readonly _toolService;
|
|
13
|
+
private readonly _commandService;
|
|
14
|
+
private readonly _shortcutService;
|
|
15
|
+
constructor(_instanceService: IUniverInstanceService, _configService: IConfigService, _elementStateService: IBoardElementStateService, _stateService: IBoardUIStateService, _toolService: BoardToolService, _commandService: ICommandService, _shortcutService: IShortcutService);
|
|
16
|
+
private _init;
|
|
17
|
+
private _createToolShortcutOperation;
|
|
18
|
+
private _createShortcutItem;
|
|
19
|
+
private _handleShortcut;
|
|
20
|
+
private _canCancelTool;
|
|
21
|
+
private _getCurrentBoardModel;
|
|
22
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Disposable, IConfigService, Injector } from '@univerjs/core';
|
|
2
|
+
import { IUIPartsService } from '@univerjs/ui';
|
|
3
|
+
export declare class BoardUIController extends Disposable {
|
|
4
|
+
private readonly _injector;
|
|
5
|
+
private readonly _uiPartsService;
|
|
6
|
+
private readonly _configService;
|
|
7
|
+
constructor(_injector: Injector, _uiPartsService: IUIPartsService, _configService: IConfigService);
|
|
8
|
+
private _initWorkbenchParts;
|
|
9
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { IBoardElementService } from '@univerjs-pro/boards';
|
|
2
|
+
import { ICommandService, IConfigService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
3
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
4
|
+
import { IShortcutService } from '@univerjs/ui';
|
|
5
|
+
import { IBoardElementStateService } from '../services/board-element-state.service';
|
|
6
|
+
import { IBoardUIStateService } from '../services/board-ui-state.service';
|
|
7
|
+
import { BoardViewportService } from '../services/board-viewport.service';
|
|
8
|
+
export declare const BOARD_VIEW_SHORTCUT_OPERATION_ID = "board.operation.view-shortcut";
|
|
9
|
+
export declare class BoardViewShortcutController extends RxDisposable {
|
|
10
|
+
private readonly _instanceService;
|
|
11
|
+
private readonly _configService;
|
|
12
|
+
private readonly _renderManagerService;
|
|
13
|
+
private readonly _boardElementService;
|
|
14
|
+
private readonly _elementStateService;
|
|
15
|
+
private readonly _stateService;
|
|
16
|
+
private readonly _viewportService;
|
|
17
|
+
private readonly _commandService;
|
|
18
|
+
private readonly _shortcutService;
|
|
19
|
+
constructor(_instanceService: IUniverInstanceService, _configService: IConfigService, _renderManagerService: IRenderManagerService, _boardElementService: IBoardElementService, _elementStateService: IBoardElementStateService, _stateService: IBoardUIStateService, _viewportService: BoardViewportService, _commandService: ICommandService, _shortcutService: IShortcutService);
|
|
20
|
+
private _init;
|
|
21
|
+
private _createViewShortcutOperation;
|
|
22
|
+
private _createShortcutItem;
|
|
23
|
+
private _handleShortcut;
|
|
24
|
+
private _getCurrentBoardModel;
|
|
25
|
+
private _getCanvasElement;
|
|
26
|
+
private _resolveViewportSize;
|
|
27
|
+
private _resolveViewportCenterPoint;
|
|
28
|
+
private _resolveFullscreenTarget;
|
|
29
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { UnitModel } from '@univerjs/core';
|
|
2
|
+
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
3
|
+
import { IConfigService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
4
|
+
import { IBoardUIStateService } from '../services/board-ui-state.service';
|
|
5
|
+
export declare class BoardViewportInputRenderController extends RxDisposable implements IRenderModule {
|
|
6
|
+
private readonly _renderContext;
|
|
7
|
+
private readonly _instanceSrv;
|
|
8
|
+
private readonly _configService;
|
|
9
|
+
private readonly _stateService;
|
|
10
|
+
private _panDraft;
|
|
11
|
+
private _ownsPanCursor;
|
|
12
|
+
private _spacePanRestoreTool;
|
|
13
|
+
constructor(_renderContext: IRenderContext<UnitModel>, _instanceSrv: IUniverInstanceService, _configService: IConfigService, _stateService: IBoardUIStateService);
|
|
14
|
+
dispose(): void;
|
|
15
|
+
private _init;
|
|
16
|
+
private _subscribeToWindowInputInterruptions;
|
|
17
|
+
private _handleKeyDown;
|
|
18
|
+
private _handleKeyUp;
|
|
19
|
+
private _restoreSpacePanMode;
|
|
20
|
+
private _handleWheel;
|
|
21
|
+
private _handlePointerDown;
|
|
22
|
+
private _handlePointerMove;
|
|
23
|
+
private _handlePointerEnd;
|
|
24
|
+
private _isPanModeActive;
|
|
25
|
+
private _syncPanCursor;
|
|
26
|
+
private _setPanCursor;
|
|
27
|
+
}
|