@univerjs-pro/boards-ui 1.0.0-alpha.3 → 1.0.0-alpha.4
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/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/cjs/shape-preset-labels-C4G0G9GI.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/es/shape-preset-labels-092BdVw3.js +1 -1
- package/lib/index.css +32 -29
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/shape-preset-labels-092BdVw3.js +1 -1
- package/lib/types/common/toolbar-tools.d.ts +2 -0
- package/lib/types/const.d.ts +2 -0
- package/lib/types/controllers/board-clipboard-shortcut.controller.d.ts +3 -1
- package/lib/types/controllers/board-connector-floating-toolbar.render-controller.d.ts +1 -3
- package/lib/types/controllers/board-connector-interaction.render-controller.d.ts +1 -3
- package/lib/types/controllers/board-element-transform.controller.d.ts +10 -1
- package/lib/types/controllers/board-shape-floating-toolbar.render-controller.d.ts +1 -3
- package/lib/types/controllers/board-shape-text-float-menu.render-controller.d.ts +1 -2
- package/lib/types/controllers/board-text-editing.render-controller.d.ts +2 -2
- package/lib/types/controllers/components.controller.d.ts +7 -0
- package/lib/types/index.d.ts +17 -3
- package/lib/types/render-adapters/board-element-render-adapter.d.ts +5 -3
- package/lib/types/render-objects/board-document-text-render.util.d.ts +1 -0
- package/lib/types/render-objects/board-shape-object.d.ts +7 -1
- package/lib/types/services/board-dom-layer.service.d.ts +1 -0
- package/lib/types/services/board-tool.service.d.ts +0 -1
- package/lib/types/services/board-toolbar-contribution.service.d.ts +33 -0
- package/lib/types/services/board-ui-state.service.d.ts +2 -2
- package/lib/types/utils/board-shape-text-document.util.d.ts +0 -8
- package/lib/types/utils/board-viewport.util.d.ts +9 -2
- package/lib/types/views/BoardDomLayerView.d.ts +3 -6
- package/lib/types/views/BoardDomResizeGuide.d.ts +4 -0
- package/lib/types/views/BoardShapeTextEditorContainer.d.ts +7 -1
- package/lib/types/views/BoardWorkbench.d.ts +4 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +19 -19
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x566f(_0x28e95e,_0x1654ea){_0x28e95e=_0x28e95e-0x19a;const _0x1d45d5=_0x1d45();let _0x566fb2=_0x1d45d5[_0x28e95e];return _0x566fb2;}function _0x1d45(){const _0x1b1f31=['Beginning\x20button','Offline\x20storage','Pie\x20wedge','Terminator','Internal\x20storage','5659448rlNRFW','Border\x20callout\x203','Accent\x20callout\x202','Border\x20callout\x201','Chart\x20plus','Same-side\x20round\x20corner\x20rectangle','Left\x20arrow\x20callout','Document','Summing\x20junction','Left-right\x20arrow\x20callout','5087105nDtusc','Plaque\x20tabs','Left-right\x20ribbon','Off-page\x20connector','Up-down\x20arrow\x20callout','4046444sZTntA','Heptagon','Donut','1059381UyMxxe','Magnetic\x20drum','Diagonal\x20snip\x20corner\x20rectangle','8-point\x20star','Wave','3TmixFM','Not\x20equal','Forward\x20or\x20next\x20button','Smiley\x20face','Return\x20button','Cube','Bent\x20arrow','Magnetic\x20tape','4-point\x20star','Diagonal\x20stripe','No\x20symbol','Manual\x20input','Ellipse\x20ribbon','Teardrop','Cloud\x20callout','Input/output','Decision','Single\x20round\x20corner\x20rectangle','Punched\x20tape','Preparation','Process','Home\x20button','Down\x20arrow','32-point\x20star','Left\x20bracket','Vertical\x20scroll','Up\x20arrow','U-turn\x20arrow','Up\x20arrow\x20callout','Right\x20bracket','18ruhLnX','Back\x20or\x20previous\x20button','Ribbon\x202','Four-way\x20arrow\x20callout','Square\x20tabs','Pie','Snip\x20and\x20round\x20corner\x20rectangle','Movie\x20button','Sort','Plaque','Border\x20callout\x202','12-point\x20star','Block\x20arc','Gear\x209','Moon','Multiple\x20documents','16-point\x20star','5857008dEJjwt','Merge','2596264medCQG','Online\x20storage','Callout\x203','Horizontal\x20scroll','10-point\x20star','Chart\x20X','24-point\x20star','4541285lDlwIw','Alternate\x20process','Predefined\x20process','Down\x20arrow\x20callout','Chord','Heart','Manual\x20operation','Blank\x20button','Circular\x20arrow','Lightning\x20bolt','Magnetic\x20disk','Corner\x20tabs','Document\x20button','Corner','Help\x20button','Funnel','Accent\x20border\x20callout\x203','Left-right\x20circular\x20arrow','Swoosh\x20arrow','Striped\x20right\x20arrow','Collate','Left\x20circular\x20arrow','Punched\x20card','Folded\x20corner','6-point\x20star'];_0x1d45=function(){return _0x1b1f31;};return _0x1d45();}const _0x2a9c41=_0x566f;(function(_0x3eab01,_0x31c94f){const _0x553080=_0x566f,_0x142f8d=_0x3eab01();while(!![]){try{const _0x26464c=-parseInt(_0x553080(0x1b2))/0x1+-parseInt(_0x553080(0x1e8))/0x2+-parseInt(_0x553080(0x1b7))/0x3*(parseInt(_0x553080(0x1af))/0x4)+parseInt(_0x553080(0x1aa))/0x5+parseInt(_0x553080(0x1e6))/0x6+parseInt(_0x553080(0x1ef))/0x7+parseInt(_0x553080(0x1a0))/0x8*(parseInt(_0x553080(0x1d5))/0x9);if(_0x26464c===_0x31c94f)break;else _0x142f8d['push'](_0x142f8d['shift']());}catch(_0x159f09){_0x142f8d['push'](_0x142f8d['shift']());}}}(_0x1d45,0xa7fd2));const e={'snip1Rect':'Single\x20snip\x20corner\x20rectangle','snip2SameRect':'Same-side\x20snip\x20corner\x20rectangle','snip2DiagRect':_0x2a9c41(0x1b4),'snipRoundRect':_0x2a9c41(0x1db),'round1Rect':_0x2a9c41(0x1c8),'round2SameRect':_0x2a9c41(0x1a5),'round2DiagRect':'Diagonal\x20round\x20corner\x20rectangle','heptagon':_0x2a9c41(0x1b0),'decagon':'Decagon','dodecagon':'Dodecagon','pie':_0x2a9c41(0x1da),'chord':_0x2a9c41(0x1f3),'teardrop':_0x2a9c41(0x1c4),'frame':'Frame','halfFrame':'Half\x20frame','corner':_0x2a9c41(0x1fc),'diagStripe':_0x2a9c41(0x1c0),'plaque':_0x2a9c41(0x1de),'cube':_0x2a9c41(0x1bc),'bevel':'Bevel','donut':_0x2a9c41(0x1b1),'noSmoking':_0x2a9c41(0x1c1),'blockArc':_0x2a9c41(0x1e1),'foldedCorner':_0x2a9c41(0x206),'smileyFace':_0x2a9c41(0x1ba),'heart':_0x2a9c41(0x1f4),'lightningBolt':_0x2a9c41(0x1f8),'sun':'Sun','moon':_0x2a9c41(0x1e3),'arc':'Arc','bracketPair':'Bracket\x20pair','bracePair':'Brace\x20pair','leftBracket':_0x2a9c41(0x1cf),'rightBracket':_0x2a9c41(0x1d4),'upArrow':_0x2a9c41(0x1d1),'downArrow':_0x2a9c41(0x1cd),'upDownArrow':'Up-down\x20arrow','quadArrow':'Four-way\x20arrow','leftRightUpArrow':'Left-right-up\x20arrow','bentArrow':_0x2a9c41(0x1bd),'uturnArrow':_0x2a9c41(0x1d2),'leftUpArrow':'Left-up\x20arrow','bentUpArrow':'Bent-up\x20arrow','curvedRightArrow':'Curved\x20right\x20arrow','curvedLeftArrow':'Curved\x20left\x20arrow','curvedUpArrow':'Curved\x20up\x20arrow','curvedDownArrow':'Curved\x20down\x20arrow','stripedRightArrow':_0x2a9c41(0x202),'notchedRightArrow':'Notched\x20right\x20arrow','rightArrowCallout':'Right\x20arrow\x20callout','downArrowCallout':_0x2a9c41(0x1f2),'leftArrowCallout':_0x2a9c41(0x1a6),'upArrowCallout':_0x2a9c41(0x1d3),'leftRightArrowCallout':_0x2a9c41(0x1a9),'quadArrowCallout':_0x2a9c41(0x1d8),'circularArrow':_0x2a9c41(0x1f7),'mathMinus':'Minus','mathMultiply':'Multiply','mathDivide':'Divide','mathEqual':'Equal','mathNotEqual':_0x2a9c41(0x1b8),'flowChartProcess':_0x2a9c41(0x1cb),'flowChartAlternateProcess':_0x2a9c41(0x1f0),'flowChartDecision':_0x2a9c41(0x1c7),'flowChartInputOutput':_0x2a9c41(0x1c6),'flowChartPredefinedProcess':_0x2a9c41(0x1f1),'flowChartInternalStorage':_0x2a9c41(0x19f),'flowChartDocument':_0x2a9c41(0x1a7),'flowChartMultidocument':_0x2a9c41(0x1e4),'flowChartTerminator':_0x2a9c41(0x19e),'flowChartPreparation':_0x2a9c41(0x1ca),'flowChartManualInput':_0x2a9c41(0x1c2),'flowChartManualOperation':_0x2a9c41(0x1f5),'flowChartConnector':'Connector','flowChartOffpageConnector':_0x2a9c41(0x1ad),'flowChartPunchedCard':_0x2a9c41(0x205),'flowChartPunchedTape':_0x2a9c41(0x1c9),'flowChartSummingJunction':_0x2a9c41(0x1a8),'flowChartOr':'Or','flowChartCollate':_0x2a9c41(0x203),'flowChartSort':_0x2a9c41(0x1dd),'flowChartExtract':'Extract','flowChartMerge':_0x2a9c41(0x1e7),'flowChartOnlineStorage':_0x2a9c41(0x1e9),'flowChartDelay':'Delay','flowChartMagneticTape':_0x2a9c41(0x1be),'flowChartMagneticDisk':_0x2a9c41(0x1f9),'flowChartMagneticDrum':_0x2a9c41(0x1b3),'flowChartDisplay':'Display','irregularSeal1':'Explosion\x201','irregularSeal2':'Explosion\x202','star4':_0x2a9c41(0x1bf),'star6':_0x2a9c41(0x19a),'star7':'7-point\x20star','star8':_0x2a9c41(0x1b5),'star10':_0x2a9c41(0x1ec),'star12':_0x2a9c41(0x1e0),'star16':_0x2a9c41(0x1e5),'star24':_0x2a9c41(0x1ee),'star32':_0x2a9c41(0x1ce),'ribbon2':_0x2a9c41(0x1d7),'ribbon':'Ribbon','ellipseRibbon2':'Ellipse\x20ribbon\x202','ellipseRibbon':_0x2a9c41(0x1c3),'verticalScroll':_0x2a9c41(0x1d0),'horizontalScroll':_0x2a9c41(0x1eb),'wave':_0x2a9c41(0x1b6),'doubleWave':'Double\x20wave','wedgeRectCallout':'Rectangular\x20callout','cloudCallout':_0x2a9c41(0x1c5),'borderCallout1':_0x2a9c41(0x1a3),'borderCallout2':_0x2a9c41(0x1df),'borderCallout3':_0x2a9c41(0x1a1),'accentCallout1':'Accent\x20callout\x201','accentCallout2':_0x2a9c41(0x1a2),'accentCallout3':'Accent\x20callout\x203','callout1':'Callout\x201','callout2':'Callout\x202','callout3':_0x2a9c41(0x1ea),'accentBorderCallout1':'Accent\x20border\x20callout\x201','accentBorderCallout2':'Accent\x20border\x20callout\x202','accentBorderCallout3':_0x2a9c41(0x1ff),'leftCircularArrow':_0x2a9c41(0x204),'leftRightCircularArrow':_0x2a9c41(0x200),'swooshArrow':_0x2a9c41(0x201),'leftRightRibbon':_0x2a9c41(0x1ac),'pieWedge':_0x2a9c41(0x19d),'funnel':_0x2a9c41(0x1fe),'gear6':'Gear\x206','gear9':_0x2a9c41(0x1e2),'cornerTabs':_0x2a9c41(0x1fa),'actionButtonBackPrevious':_0x2a9c41(0x1d6),'actionButtonForwardNext':_0x2a9c41(0x1b9),'actionButtonBeginning':_0x2a9c41(0x19b),'actionButtonEnd':'End\x20button','actionButtonHome':_0x2a9c41(0x1cc),'actionButtonInformation':'Information\x20button','actionButtonReturn':_0x2a9c41(0x1bb),'actionButtonMovie':_0x2a9c41(0x1dc),'actionButtonDocument':_0x2a9c41(0x1fb),'actionButtonSound':'Sound\x20button','actionButtonHelp':_0x2a9c41(0x1fd),'actionButtonBlank':_0x2a9c41(0x1f6),'chartPlus':_0x2a9c41(0x1a4),'chartStar':'Chart\x20star','chartX':_0x2a9c41(0x1ed),'flowChartOfflineStorage':_0x2a9c41(0x19c),'lineInv':'Inverse\x20line','plaqueTabs':_0x2a9c41(0x1ab),'squareTabs':_0x2a9c41(0x1d9),'upDownArrowCallout':_0x2a9c41(0x1ae)};export{e as t};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ComponentType } from 'react';
|
|
2
2
|
import type { IUniverBoardsUIConfig } from '../config/config';
|
|
3
3
|
import type { LocaleKey } from '../locale/types';
|
|
4
|
+
import type { BoardToolbarContributionGroup } from '../services/board-toolbar-contribution.service';
|
|
4
5
|
import { BoardToolType } from '@univerjs-pro/boards';
|
|
5
6
|
export interface IBoardToolbarToolDefinition {
|
|
6
7
|
type: BoardToolType;
|
|
@@ -9,6 +10,7 @@ export interface IBoardToolbarToolDefinition {
|
|
|
9
10
|
className?: string;
|
|
10
11
|
}>;
|
|
11
12
|
enabledByDefault: boolean;
|
|
13
|
+
group: BoardToolbarContributionGroup;
|
|
12
14
|
}
|
|
13
15
|
export interface IResolvedBoardToolbarTool extends Omit<IBoardToolbarToolDefinition, 'enabledByDefault'> {
|
|
14
16
|
disabled: boolean;
|
package/lib/types/const.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export declare const BOARD_SHAPE_TEXT_EDITOR_ID: string;
|
|
2
|
+
export declare const BOARD_SHAPE_TEXT_FLOAT_MENU_COMPONENT_KEY = "board.shape.text.float-menu";
|
|
2
3
|
export declare const BOARD_DOM_LAYER_ROOT_Z_INDEX = 10;
|
|
3
4
|
export declare const BOARD_DOM_LAYER_POPUP_Z_INDEX = 60;
|
|
5
|
+
export declare const BOARD_DOM_LAYER_RESIZE_GUIDE_Z_INDEX: number;
|
|
4
6
|
export declare const BOARD_RENDER_LAYER_INDEX: {
|
|
5
7
|
readonly background: 0;
|
|
6
8
|
readonly grid: 0;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IBoardElementService } from '@univerjs-pro/boards';
|
|
1
2
|
import { ICommandService, IConfigService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
2
3
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
3
4
|
import { IShortcutService } from '@univerjs/ui';
|
|
@@ -16,7 +17,8 @@ export declare class BoardClipboardShortcutController extends RxDisposable {
|
|
|
16
17
|
private readonly _elementEditService;
|
|
17
18
|
private readonly _commandService;
|
|
18
19
|
private readonly _shortcutService;
|
|
19
|
-
|
|
20
|
+
private readonly _boardElementService;
|
|
21
|
+
constructor(_instanceService: IUniverInstanceService, _configService: IConfigService, _renderManagerService: IRenderManagerService, _elementStateService: IBoardElementStateService, _stateService: IBoardUIStateService, _clipboardService: BoardClipboardService, _elementEditService: BoardElementEditService, _commandService: ICommandService, _shortcutService: IShortcutService, _boardElementService: IBoardElementService);
|
|
20
22
|
private _init;
|
|
21
23
|
private _createClipboardShortcutOperation;
|
|
22
24
|
private _createShortcutItem;
|
|
@@ -2,20 +2,18 @@ import type { UnitModel } from '@univerjs/core';
|
|
|
2
2
|
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
3
3
|
import { IBoardElementService } from '@univerjs-pro/boards';
|
|
4
4
|
import { RxDisposable } from '@univerjs/core';
|
|
5
|
-
import { ComponentManager } from '@univerjs/ui';
|
|
6
5
|
import { BoardCanvasPopManagerService } from '../services/board-canvas-pop-manager.service';
|
|
7
6
|
import { IBoardElementStateService } from '../services/board-element-state.service';
|
|
8
7
|
import { BoardTextEditingService } from '../services/board-text-editing.service';
|
|
9
8
|
export declare class BoardConnectorFloatingToolbarRenderController extends RxDisposable implements IRenderModule {
|
|
10
9
|
private readonly _renderContext;
|
|
11
|
-
private readonly _componentManager;
|
|
12
10
|
private readonly _boardCanvasPopManagerService;
|
|
13
11
|
private readonly _boardElementService;
|
|
14
12
|
private readonly _elementStateService;
|
|
15
13
|
private readonly _boardTextEditingService;
|
|
16
14
|
private _popupDisposable;
|
|
17
15
|
private _popupSelectionKey;
|
|
18
|
-
constructor(_renderContext: IRenderContext<UnitModel>,
|
|
16
|
+
constructor(_renderContext: IRenderContext<UnitModel>, _boardCanvasPopManagerService: BoardCanvasPopManagerService, _boardElementService: IBoardElementService, _elementStateService: IBoardElementStateService, _boardTextEditingService: BoardTextEditingService);
|
|
19
17
|
dispose(): void;
|
|
20
18
|
private _init;
|
|
21
19
|
private _clearPopup;
|
|
@@ -2,7 +2,6 @@ import type { UnitModel } from '@univerjs/core';
|
|
|
2
2
|
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
3
3
|
import { IBoardElementService } from '@univerjs-pro/boards';
|
|
4
4
|
import { ICommandService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
5
|
-
import { ComponentManager } from '@univerjs/ui';
|
|
6
5
|
import { BoardCanvasPopManagerService } from '../services/board-canvas-pop-manager.service';
|
|
7
6
|
import { BoardElementEditService } from '../services/board-element-edit.service';
|
|
8
7
|
import { BoardElementInsertService } from '../services/board-element-insert.service';
|
|
@@ -18,7 +17,6 @@ export declare class BoardConnectorInteractionRenderController extends RxDisposa
|
|
|
18
17
|
private readonly _stateService;
|
|
19
18
|
private readonly _editService;
|
|
20
19
|
private readonly _insertService;
|
|
21
|
-
private readonly _componentManager;
|
|
22
20
|
private readonly _boardCanvasPopManagerService;
|
|
23
21
|
private readonly _boardTextEditingService;
|
|
24
22
|
private _attachObjectPointerScheduled;
|
|
@@ -48,7 +46,7 @@ export declare class BoardConnectorInteractionRenderController extends RxDisposa
|
|
|
48
46
|
private _quickConnectPointerDownPreview;
|
|
49
47
|
private _quickConnectPreviewConnectorObject;
|
|
50
48
|
private _quickConnectPreviewShapeObject;
|
|
51
|
-
constructor(_renderContext: IRenderContext<UnitModel>, _instanceSrv: IUniverInstanceService, _boardElementService: IBoardElementService, _elementStateService: IBoardElementStateService, _commandService: ICommandService, _stateService: IBoardUIStateService, _editService: BoardElementEditService, _insertService: BoardElementInsertService,
|
|
49
|
+
constructor(_renderContext: IRenderContext<UnitModel>, _instanceSrv: IUniverInstanceService, _boardElementService: IBoardElementService, _elementStateService: IBoardElementStateService, _commandService: ICommandService, _stateService: IBoardUIStateService, _editService: BoardElementEditService, _insertService: BoardElementInsertService, _boardCanvasPopManagerService: BoardCanvasPopManagerService, _boardTextEditingService: BoardTextEditingService);
|
|
52
50
|
private _init;
|
|
53
51
|
private _scheduleAttachObjectPointerHandlers;
|
|
54
52
|
private _scheduleAttachObjectPointerHandlersWithFollowUp;
|
|
@@ -2,6 +2,7 @@ import type { UnitModel } from '@univerjs/core';
|
|
|
2
2
|
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
3
3
|
import { IBoardElementService } from '@univerjs-pro/boards';
|
|
4
4
|
import { IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
5
|
+
import { BoardDomLayerService } from '../services/board-dom-layer.service';
|
|
5
6
|
import { BoardElementEditService } from '../services/board-element-edit.service';
|
|
6
7
|
import { IBoardElementStateService } from '../services/board-element-state.service';
|
|
7
8
|
export declare class BoardElementTransformController extends RxDisposable implements IRenderModule {
|
|
@@ -10,14 +11,22 @@ export declare class BoardElementTransformController extends RxDisposable implem
|
|
|
10
11
|
private readonly _boardElementService;
|
|
11
12
|
private readonly _stateSrv;
|
|
12
13
|
private readonly _editService;
|
|
14
|
+
private readonly _domLayerService;
|
|
15
|
+
private _domResizeGuideContext;
|
|
16
|
+
private _domResizeGuideDisposable;
|
|
17
|
+
private _domResizeGuideItemId;
|
|
13
18
|
private _isForceCaptureModifierActive;
|
|
14
19
|
private _shiftTransformStartRects;
|
|
15
20
|
private _areTransformerControlsHiddenForTransform;
|
|
16
21
|
private _xSnapSession;
|
|
17
22
|
private _ySnapSession;
|
|
18
|
-
constructor(_renderContext: IRenderContext<UnitModel>, _instanceSrv: IUniverInstanceService, _boardElementService: IBoardElementService, _stateSrv: IBoardElementStateService, _editService: BoardElementEditService);
|
|
23
|
+
constructor(_renderContext: IRenderContext<UnitModel>, _instanceSrv: IUniverInstanceService, _boardElementService: IBoardElementService, _stateSrv: IBoardElementStateService, _editService: BoardElementEditService, _domLayerService: BoardDomLayerService);
|
|
24
|
+
dispose(): void;
|
|
19
25
|
private _init;
|
|
20
26
|
private _subscribeToTransformer;
|
|
27
|
+
private _prepareDomResizeGuide;
|
|
28
|
+
private _syncDomResizeGuide;
|
|
29
|
+
private _clearDomResizeGuide;
|
|
21
30
|
private _keepTransformerControlsHiddenForTransform;
|
|
22
31
|
private _hideTransformerControls;
|
|
23
32
|
private _restoreTransformerControlsAfterTransform;
|
|
@@ -2,14 +2,12 @@ import type { UnitModel } from '@univerjs/core';
|
|
|
2
2
|
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
3
3
|
import { IBoardElementService } from '@univerjs-pro/boards';
|
|
4
4
|
import { RxDisposable } from '@univerjs/core';
|
|
5
|
-
import { ComponentManager } from '@univerjs/ui';
|
|
6
5
|
import { BoardCanvasPopManagerService } from '../services/board-canvas-pop-manager.service';
|
|
7
6
|
import { IBoardElementStateService } from '../services/board-element-state.service';
|
|
8
7
|
import { IBoardInkEditService } from '../services/board-ink-edit.service';
|
|
9
8
|
import { BoardTextEditingService } from '../services/board-text-editing.service';
|
|
10
9
|
export declare class BoardShapeFloatingToolbarRenderController extends RxDisposable implements IRenderModule {
|
|
11
10
|
private readonly _renderContext;
|
|
12
|
-
private readonly _componentManager;
|
|
13
11
|
private readonly _boardCanvasPopManagerService;
|
|
14
12
|
private readonly _boardElementService;
|
|
15
13
|
private readonly _elementStateService;
|
|
@@ -17,7 +15,7 @@ export declare class BoardShapeFloatingToolbarRenderController extends RxDisposa
|
|
|
17
15
|
private readonly _inkEditService;
|
|
18
16
|
private _popupDisposable;
|
|
19
17
|
private _popupSelectionKey;
|
|
20
|
-
constructor(_renderContext: IRenderContext<UnitModel>,
|
|
18
|
+
constructor(_renderContext: IRenderContext<UnitModel>, _boardCanvasPopManagerService: BoardCanvasPopManagerService, _boardElementService: IBoardElementService, _elementStateService: IBoardElementStateService, _boardTextEditingService: BoardTextEditingService, _inkEditService: IBoardInkEditService);
|
|
21
19
|
dispose(): void;
|
|
22
20
|
private _init;
|
|
23
21
|
private _clearPopup;
|
|
@@ -3,7 +3,6 @@ import type { IRenderContext } from '@univerjs/engine-render';
|
|
|
3
3
|
import { ShapeTextFloatMenuRenderControllerBase } from '@univerjs-pro/shape-editor-ui';
|
|
4
4
|
import { DocSelectionManagerService } from '@univerjs/docs';
|
|
5
5
|
import { DocCanvasPopManagerService, DocSelectionRenderService } from '@univerjs/docs-ui';
|
|
6
|
-
import { ComponentManager } from '@univerjs/ui';
|
|
7
6
|
export declare class BoardShapeTextFloatMenuRenderController extends ShapeTextFloatMenuRenderControllerBase {
|
|
8
|
-
constructor(context: IRenderContext<DocumentDataModel>, docSelectionManagerService: DocSelectionManagerService, docCanvasPopManagerService: DocCanvasPopManagerService,
|
|
7
|
+
constructor(context: IRenderContext<DocumentDataModel>, docSelectionManagerService: DocSelectionManagerService, docCanvasPopManagerService: DocCanvasPopManagerService, docSelectionRenderService: DocSelectionRenderService);
|
|
9
8
|
}
|
|
@@ -18,12 +18,12 @@ export declare class BoardTextEditingRenderController extends RxDisposable imple
|
|
|
18
18
|
private readonly _elementStateService;
|
|
19
19
|
private readonly _uiStateService;
|
|
20
20
|
private readonly _contextService;
|
|
21
|
-
private readonly _inkStateService
|
|
21
|
+
private readonly _inkStateService;
|
|
22
22
|
private _attachScheduled;
|
|
23
23
|
private _lastEditingShapeKey;
|
|
24
24
|
private _ignoreFocusChangesUntil;
|
|
25
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
|
|
26
|
+
constructor(_renderContext: IRenderContext<UnitModel>, _instanceService: IUniverInstanceService, _boardElementService: IBoardElementService, _boardTextEditingService: BoardTextEditingService, _boardContainerRenameService: BoardContainerRenameService, _boardSwimlaneLaneRenameService: BoardSwimlaneLaneRenameService, _elementStateService: IBoardElementStateService, _uiStateService: IBoardUIStateService, _contextService: IContextService, _inkStateService: IInkUIStateService);
|
|
27
27
|
private _shouldIgnoreFocusChanges;
|
|
28
28
|
private _init;
|
|
29
29
|
private _subscribeToEditingState;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Disposable } from '@univerjs/core';
|
|
2
|
+
import { ComponentManager } from '@univerjs/ui';
|
|
3
|
+
export declare class ComponentsController extends Disposable {
|
|
4
|
+
private readonly _componentManager;
|
|
5
|
+
constructor(_componentManager: ComponentManager);
|
|
6
|
+
private _registerComponents;
|
|
7
|
+
}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -7,21 +7,35 @@ export { BOARD_RENDER_LAYER_INDEX, BOARD_RENDER_OBJECT_Z_INDEX, } from './const'
|
|
|
7
7
|
export { BOARD_MAIN_VIEWPORT_KEY } from './controllers/board-render.controller';
|
|
8
8
|
export { UniverBoardsUIPlugin } from './plugin';
|
|
9
9
|
export { BOARD_ELEMENT_RENDER_ADAPTERS, createBoardElementRenderObject, getBoardElementRenderObjectKey, parseBoardElementRenderObjectKey, syncBoardElementRenderObject, } from './render-adapters/board-element-render-adapter';
|
|
10
|
-
export type { IBoardElementRenderAdapter, IBoardElementRenderAdapterContext } from './render-adapters/board-element-render-adapter';
|
|
10
|
+
export type { IBoardElementRenderAdapter, IBoardElementRenderAdapterContext, IBoardElementRenderAdapterSyncContext, } from './render-adapters/board-element-render-adapter';
|
|
11
11
|
export { registerBoardDocumentTextExtension } from './render-objects/board-document-text-render.util';
|
|
12
12
|
export type { BoardDocumentTextExtensionFactory, IBoardDocumentTextExtensionContext, } from './render-objects/board-document-text-render.util';
|
|
13
|
+
export { BoardImageObject } from './render-objects/board-image-object';
|
|
14
|
+
export type { IBoardImageObjectProps } from './render-objects/board-image-object';
|
|
13
15
|
export { BoardCanvasPopManagerService } from './services/board-canvas-pop-manager.service';
|
|
14
16
|
export { BoardClipboardResourceAdapterService, IBoardClipboardResourceAdapterService, } from './services/board-clipboard-resource-adapter.service';
|
|
15
17
|
export type { IBoardClipboardPreparedResourcePaste, IBoardClipboardResourceAdapter, } from './services/board-clipboard-resource-adapter.service';
|
|
16
18
|
export { BoardDomLayerService } from './services/board-dom-layer.service';
|
|
17
19
|
export type { IBoardDomLayerItem, IBoardDomLayerRect } from './services/board-dom-layer.service';
|
|
18
|
-
export {
|
|
20
|
+
export { BoardElementEditService } from './services/board-element-edit.service';
|
|
21
|
+
export { BoardElementInsertService } from './services/board-element-insert.service';
|
|
22
|
+
export { BoardElementStateService, IBoardElementStateService } from './services/board-element-state.service';
|
|
19
23
|
export type { IBoardElementStateSnapshot } from './services/board-element-state.service';
|
|
24
|
+
export { BoardImageInsertService } from './services/board-image-insert.service';
|
|
25
|
+
export { BoardSelectionService } from './services/board-selection.service';
|
|
20
26
|
export { BoardShapeIntrinsicSizeService } from './services/board-shape-intrinsic-size.service';
|
|
21
27
|
export type { IBoardShapeIntrinsicSizeHostUpdateContext, IBoardShapeIntrinsicSizeProvider, } from './services/board-shape-intrinsic-size.service';
|
|
22
28
|
export { BoardSidePanelService, IBoardSidePanelService } from './services/board-side-panel.service';
|
|
23
29
|
export type { BoardSidePanelCloseReason, IBoardSidePanelComponentDescriptor, IBoardSidePanelDescriptor, } from './services/board-side-panel.service';
|
|
24
30
|
export { BoardTextEditingService } from './services/board-text-editing.service';
|
|
25
|
-
export {
|
|
31
|
+
export { BoardToolService } from './services/board-tool.service';
|
|
32
|
+
export { BoardToolbarContributionService, IBoardToolbarContributionService, } from './services/board-toolbar-contribution.service';
|
|
33
|
+
export type { BoardToolbarContributionGroup, IBoardToolbarContribution, } from './services/board-toolbar-contribution.service';
|
|
34
|
+
export { BoardUIStateService, IBoardUIStateService } from './services/board-ui-state.service';
|
|
35
|
+
export { BoardViewportService } from './services/board-viewport.service';
|
|
26
36
|
export { resolveRotatedBoardObjectAnchorBound } from './utils/board-floating-toolbar-anchor.util';
|
|
37
|
+
export { resolveBoardInteractionConfig } from './utils/board-interaction-config.util';
|
|
38
|
+
export { getBoardPointFromClient } from './utils/board-viewport.util';
|
|
27
39
|
export { BOARD_TOP_RIGHT_MENU_LEADING_PART } from './views/BoardSettingsMenu';
|
|
40
|
+
export { BoardShapeTextEditorContainer } from './views/BoardShapeTextEditorContainer';
|
|
41
|
+
export { BoardWorkbench } from './views/BoardWorkbench';
|
|
@@ -48,9 +48,11 @@ export interface IBoardElementRenderAdapterContext {
|
|
|
48
48
|
export interface IBoardElementRenderAdapter {
|
|
49
49
|
name: string;
|
|
50
50
|
createObject: (context: IBoardElementRenderAdapterContext) => BaseObject | null;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
shouldRecreateObject?: (object: BaseObject, context: IBoardElementRenderAdapterSyncContext) => boolean;
|
|
52
|
+
syncObject?: (object: BaseObject, context: IBoardElementRenderAdapterSyncContext) => boolean;
|
|
53
|
+
}
|
|
54
|
+
export interface IBoardElementRenderAdapterSyncContext extends IBoardElementRenderAdapterContext {
|
|
55
|
+
preserveTransform?: boolean;
|
|
54
56
|
}
|
|
55
57
|
export declare function getBoardElementRenderObjectKey(unitId: string, elementId: string): string;
|
|
56
58
|
export declare function parseBoardElementRenderObjectKey(oKey: string): IBoardElementRenderObjectKey | null;
|
|
@@ -33,6 +33,7 @@ export interface IBoardDocumentTextRenderOptions {
|
|
|
33
33
|
wrapStrategy?: WrapStrategy;
|
|
34
34
|
shapeTextOpticalVerticalAlign?: BooleanNumber | boolean;
|
|
35
35
|
clip?: boolean;
|
|
36
|
+
onTextFillImageLoaded?: () => void;
|
|
36
37
|
}
|
|
37
38
|
export interface IBoardDocumentTextRenderResources {
|
|
38
39
|
actualHeight: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IBoardElementData } from '@univerjs-pro/boards';
|
|
2
2
|
import type { IShapeData, IShapeRect } from '@univerjs-pro/engine-shape';
|
|
3
|
-
import type { LocaleService } from '@univerjs/core';
|
|
3
|
+
import type { IImageIoService, LocaleService } from '@univerjs/core';
|
|
4
4
|
import type { IObjectFullState, IViewportInfo, UniverRenderingContext, Vector2 } from '@univerjs/engine-render';
|
|
5
5
|
import { ShapeModel, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
|
|
6
6
|
import { Shape } from '@univerjs/engine-render';
|
|
@@ -21,6 +21,7 @@ export interface IBoardShapeObjectProps {
|
|
|
21
21
|
shapeModel: ShapeModel;
|
|
22
22
|
element: IBoardShapeElement;
|
|
23
23
|
localeService?: LocaleService;
|
|
24
|
+
imageIoService?: IImageIoService;
|
|
24
25
|
focusedLaneId?: string | null;
|
|
25
26
|
focusedTitle?: boolean;
|
|
26
27
|
}
|
|
@@ -33,10 +34,13 @@ export interface IBoardShapeObjectProps {
|
|
|
33
34
|
export declare class BoardShapeObject extends Shape<IBoardShapeObjectProps> {
|
|
34
35
|
private readonly _shapeModel;
|
|
35
36
|
private readonly _localeService?;
|
|
37
|
+
private readonly _imageIoService?;
|
|
36
38
|
private _element;
|
|
37
39
|
private _focusedLaneId;
|
|
38
40
|
private _focusedTitle;
|
|
39
41
|
private _isEditing;
|
|
42
|
+
private _fillImage?;
|
|
43
|
+
private _fillImageRequestId;
|
|
40
44
|
private readonly _documentTextRenderCache;
|
|
41
45
|
isDrawingObject: boolean;
|
|
42
46
|
constructor(key: string, config: IBoardShapeObjectProps);
|
|
@@ -48,6 +52,8 @@ export declare class BoardShapeObject extends Shape<IBoardShapeObjectProps> {
|
|
|
48
52
|
setFocusedTitle(focusedTitle: boolean | null | undefined): void;
|
|
49
53
|
transformByState(option: IObjectFullState): this;
|
|
50
54
|
setEditing(isEditing: boolean): void;
|
|
55
|
+
setFillImage(image?: HTMLImageElement): void;
|
|
56
|
+
private _refreshFillImage;
|
|
51
57
|
getTextRect(width: number, height: number): IShapeRect;
|
|
52
58
|
_draw(ctx: UniverRenderingContext, _bounds?: IViewportInfo, renderWidth?: number, renderHeight?: number): void;
|
|
53
59
|
private _drawShapeModel;
|
|
@@ -71,7 +71,6 @@ export declare class BoardToolService {
|
|
|
71
71
|
root: IBoardToolMindMapBlueprintNode;
|
|
72
72
|
};
|
|
73
73
|
}): void;
|
|
74
|
-
private _beginResourcesPanel;
|
|
75
74
|
private _beginImport;
|
|
76
75
|
private _resolveShapePendingInsert;
|
|
77
76
|
beginShapeInsert(shapeType: BoardShapeType | string, options?: IBoardShapeInsertOptions): void;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { IDisposable } from '@univerjs/core';
|
|
2
|
+
import type { ComponentType } from 'react';
|
|
3
|
+
import type { Observable } from 'rxjs';
|
|
4
|
+
import { Disposable } from '@univerjs/core';
|
|
5
|
+
export type BoardToolbarContributionGroup = 'create' | 'auxiliary';
|
|
6
|
+
export interface IBoardToolbarContribution {
|
|
7
|
+
id: string;
|
|
8
|
+
icon: ComponentType<{
|
|
9
|
+
className?: string;
|
|
10
|
+
}>;
|
|
11
|
+
label: () => string;
|
|
12
|
+
order: number;
|
|
13
|
+
group: BoardToolbarContributionGroup;
|
|
14
|
+
enabled?: boolean | (() => boolean);
|
|
15
|
+
active?: () => boolean;
|
|
16
|
+
onClick: () => void;
|
|
17
|
+
}
|
|
18
|
+
export interface IBoardToolbarContributionService {
|
|
19
|
+
readonly contributions$: Observable<readonly IBoardToolbarContribution[]>;
|
|
20
|
+
register(contribution: IBoardToolbarContribution): IDisposable;
|
|
21
|
+
getAll(): readonly IBoardToolbarContribution[];
|
|
22
|
+
}
|
|
23
|
+
export declare const IBoardToolbarContributionService: import("@wendellhu/redi").IdentifierDecorator<IBoardToolbarContributionService>;
|
|
24
|
+
export declare class BoardToolbarContributionService extends Disposable implements IBoardToolbarContributionService {
|
|
25
|
+
private readonly _registrations;
|
|
26
|
+
private readonly _contributions$;
|
|
27
|
+
private _registrationIndex;
|
|
28
|
+
readonly contributions$: Observable<readonly IBoardToolbarContribution[]>;
|
|
29
|
+
register(contribution: IBoardToolbarContribution): IDisposable;
|
|
30
|
+
getAll(): readonly IBoardToolbarContribution[];
|
|
31
|
+
dispose(): void;
|
|
32
|
+
private _publish;
|
|
33
|
+
}
|
|
@@ -68,11 +68,11 @@ export interface IBoardUIStateService {
|
|
|
68
68
|
}
|
|
69
69
|
export declare const IBoardUIStateService: import("@wendellhu/redi").IdentifierDecorator<IBoardUIStateService>;
|
|
70
70
|
export declare class BoardUIStateService extends Disposable implements IBoardUIStateService {
|
|
71
|
-
private readonly _configService
|
|
71
|
+
private readonly _configService;
|
|
72
72
|
private readonly _interactionConfig;
|
|
73
73
|
private readonly _state$;
|
|
74
74
|
readonly state$: ReturnType<BehaviorSubject<IBoardUIState>['asObservable']>;
|
|
75
|
-
constructor(_configService
|
|
75
|
+
constructor(_configService: IConfigService);
|
|
76
76
|
dispose(): void;
|
|
77
77
|
getState(): IBoardUIState;
|
|
78
78
|
getSettings(): Required<IBoardSettings>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { IShapeTextDataModel } from '@univerjs-pro/engine-shape';
|
|
2
1
|
import type { IDocumentData, ITextStyle } from '@univerjs/core';
|
|
3
2
|
import { HorizontalAlign, VerticalAlign, WrapStrategy } from '@univerjs/core';
|
|
4
3
|
export interface IBoardPlainTextToDocumentOptions {
|
|
@@ -8,13 +7,6 @@ export interface IBoardPlainTextToDocumentOptions {
|
|
|
8
7
|
verticalAlign?: VerticalAlign;
|
|
9
8
|
wrapStrategy?: WrapStrategy;
|
|
10
9
|
}
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated Use `IShapeTextDataModel<IDocumentData, HorizontalAlign, VerticalAlign>`
|
|
13
|
-
* from `@univerjs-pro/engine-shape`. This alias remains for board UI
|
|
14
|
-
* compatibility while all products converge on the shared shape-text model.
|
|
15
|
-
*/
|
|
16
|
-
export type IBoardShapeTextModel = IShapeTextDataModel<IDocumentData, HorizontalAlign, VerticalAlign>;
|
|
17
10
|
export declare function plainTextToBoardDocumentData(text: string, options?: IBoardPlainTextToDocumentOptions): IDocumentData;
|
|
18
11
|
export declare function cloneBoardTextDocument(editorId: string, documentData: IDocumentData): IDocumentData;
|
|
19
12
|
export declare function documentDataToBoardPlainText(documentData: IDocumentData): string;
|
|
20
|
-
export declare function getBoardShapeTextModel(shapeText: unknown): IBoardShapeTextModel | null;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { CSSProperties } from 'react';
|
|
2
1
|
export declare const BOARD_MIN_ZOOM_RATIO = 0.1;
|
|
3
2
|
export declare const BOARD_MAX_ZOOM_RATIO = 4;
|
|
4
3
|
export interface IBoardViewportPoint {
|
|
@@ -42,4 +41,12 @@ export declare function getBoardPointFromClient(element: HTMLElement, clientX: n
|
|
|
42
41
|
x: number;
|
|
43
42
|
y: number;
|
|
44
43
|
};
|
|
45
|
-
|
|
44
|
+
/**
|
|
45
|
+
* Maps the board world coordinate system onto the DOM overlay in one
|
|
46
|
+
* compositor-friendly transform. Children of this layer keep their unscaled
|
|
47
|
+
* board coordinates and dimensions.
|
|
48
|
+
*/
|
|
49
|
+
export declare function createBoardViewportWorldStyle(viewport: IBoardViewportTransform): {
|
|
50
|
+
transform: string;
|
|
51
|
+
transformOrigin: string;
|
|
52
|
+
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import type { BoardModel } from '@univerjs-pro/boards';
|
|
2
|
-
import type { IBoardViewportTransform, IBoardViewportZoomConfig } from '../utils/board-viewport.util';
|
|
3
1
|
export interface IBoardDomLayerViewProps {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
viewportTransform: IBoardViewportTransform;
|
|
2
|
+
unitId?: string;
|
|
3
|
+
subUnitId?: string;
|
|
7
4
|
}
|
|
8
|
-
export declare
|
|
5
|
+
export declare const BoardDomLayerView: import("react").MemoExoticComponent<({ unitId, subUnitId, }: IBoardDomLayerViewProps) => import("react").JSX.Element>;
|
|
@@ -2,7 +2,13 @@ import type { IBoardElementData } from '@univerjs-pro/boards';
|
|
|
2
2
|
import type { ICustomShapeTextData, IShapeRect } from '@univerjs-pro/engine-shape';
|
|
3
3
|
import type { ITransformState, Nullable } from '@univerjs/core';
|
|
4
4
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
5
|
-
export declare const BoardShapeTextEditorContainer: import("react").MemoExoticComponent<(
|
|
5
|
+
export declare const BoardShapeTextEditorContainer: import("react").MemoExoticComponent<(props?: {
|
|
6
|
+
positionRoot?: HTMLElement;
|
|
7
|
+
}) => import("react").JSX.Element>;
|
|
8
|
+
export declare function resolveBoardShapeTextEditorPositionOffset(canvasElement: Element | null | undefined, positionRoot?: Element): {
|
|
9
|
+
left: number;
|
|
10
|
+
top: number;
|
|
11
|
+
} | null;
|
|
6
12
|
export declare function resolveBoardShapeTextEditorTransform(options: {
|
|
7
13
|
elementData: IBoardElementData | undefined;
|
|
8
14
|
elementDataMap?: Record<string, IBoardElementData>;
|