@univerjs-pro/sheets-shape 1.0.0-alpha.2 → 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/README.md +7 -2
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/types/adapters/sheet-shape-host.adapter.d.ts +21 -0
- package/lib/types/commands/command/add-shape.command.d.ts +7 -0
- package/lib/types/commands/command/set-shape-drawing-data.command.d.ts +7 -0
- package/lib/types/controllers/sheets-shape.controller.d.ts +4 -1
- package/lib/types/facade/f-shape.d.ts +12 -690
- package/lib/types/facade/f-worksheet.d.ts +44 -209
- package/lib/types/facade/index.d.ts +2 -12
- package/lib/types/index.d.ts +2 -8
- package/lib/types/plugin.d.ts +2 -3
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +10 -9
- package/lib/types/facade/f-connector-shape.d.ts +0 -189
- package/lib/types/facade/f-enum.d.ts +0 -203
|
@@ -1,238 +1,73 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IShapeCreateInput } from '@univerjs-pro/engine-shape';
|
|
2
|
+
import { FConnectorShape } from '@univerjs-pro/engine-shape/facade';
|
|
2
3
|
import { FWorksheet } from '@univerjs/sheets/facade';
|
|
3
|
-
import {
|
|
4
|
-
import { FShape } from './f-shape';
|
|
5
|
-
/**
|
|
6
|
-
* Parameters for connecting shapes via a connector.
|
|
7
|
-
*/
|
|
8
|
-
export interface IConnectShapesParams {
|
|
9
|
-
/** The connector/line shape to update. */
|
|
10
|
-
connector: FShape;
|
|
11
|
-
/** Optional start target. If provided, connects the connector's start to this shape's connection site. */
|
|
12
|
-
startTarget?: {
|
|
13
|
-
shape: FShape;
|
|
14
|
-
connectionSiteIndex: number;
|
|
15
|
-
};
|
|
16
|
-
/** Optional end target. If provided, connects the connector's end to this shape's connection site. */
|
|
17
|
-
endTarget?: {
|
|
18
|
-
shape: FShape;
|
|
19
|
-
connectionSiteIndex: number;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* @ignore
|
|
24
|
-
*/
|
|
4
|
+
import { FSheetShape } from './f-shape';
|
|
25
5
|
export interface IFWorksheetShapeMixin {
|
|
26
6
|
/**
|
|
27
|
-
*
|
|
28
|
-
* @param {
|
|
29
|
-
* @returns {
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
* ```ts
|
|
33
|
-
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
34
|
-
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
35
|
-
* if (!fWorksheet) return;
|
|
36
|
-
*
|
|
37
|
-
* // Create a rectangle shape at cell B2.
|
|
38
|
-
* const shapeInfo = fWorksheet.newShape()
|
|
39
|
-
* .setShapeType(univerAPI.Enum.ShapeTypeEnum.Rect)
|
|
40
|
-
* .setPosition(1, 1, 0, 0)
|
|
41
|
-
* .setWidth(200)
|
|
42
|
-
* .setHeight(200)
|
|
43
|
-
* .setStrokeColor('#000000')
|
|
44
|
-
* .build();
|
|
45
|
-
* await fWorksheet.insertShape(shapeInfo);
|
|
46
|
-
* ```
|
|
47
|
-
*/
|
|
48
|
-
insertShape(shapeBuilderInfo: IShapeBuilderInfo): Promise<boolean>;
|
|
49
|
-
/**
|
|
50
|
-
* Updates an existing shape on this sheet.
|
|
51
|
-
* @param {IShapeBuilderInfo} shapeBuilderInfo - The shape builder info returned by `FShape.build()`.
|
|
52
|
-
* @returns {Promise<boolean>} - Whether the shape was updated successfully.
|
|
53
|
-
*
|
|
54
|
-
* @example
|
|
55
|
-
* ```ts
|
|
56
|
-
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
57
|
-
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
58
|
-
* if (!fWorksheet) return;
|
|
59
|
-
*
|
|
60
|
-
* // Create a rectangle shape at cell B2.
|
|
61
|
-
* const shapeInfo = fWorksheet.newShape()
|
|
62
|
-
* .setShapeType(univerAPI.Enum.ShapeTypeEnum.Rect)
|
|
63
|
-
* .setPosition(1, 1, 0, 0)
|
|
64
|
-
* .build();
|
|
65
|
-
* await fWorksheet.insertShape(shapeInfo);
|
|
66
|
-
*
|
|
67
|
-
* // Get all shapes on the active sheet.
|
|
68
|
-
* const shapes = fWorksheet.getShapes();
|
|
69
|
-
*
|
|
70
|
-
* // Update the first shape after 3 seconds.
|
|
71
|
-
* setTimeout(async () => {
|
|
72
|
-
* const newShapeInfo = fWorksheet.newShape(shapes[0])
|
|
73
|
-
* .setStrokeColor('#ff0000')
|
|
74
|
-
* .setStrokeWidth(3)
|
|
75
|
-
* .build();
|
|
76
|
-
* await fWorksheet.updateShape(newShapeInfo);
|
|
77
|
-
* }, 3000);
|
|
78
|
-
* ```
|
|
79
|
-
*/
|
|
80
|
-
updateShape(shapeBuilderInfo: IShapeBuilderInfo): Promise<boolean>;
|
|
81
|
-
/**
|
|
82
|
-
* Returns a builder to create a new shape for this sheet. The builder will not automatically create the shape.
|
|
83
|
-
* You must call `build()` on the returned builder to get the shape info, then insert it via `insertShape(shapeInfo)`.
|
|
84
|
-
* @description If an existing FShape is provided, the builder will be initialized with that shape's current properties (id, type, position, size) for updating.
|
|
85
|
-
* @param {FShape} [existingShape] An existing shape to initialize the builder with for updating.
|
|
86
|
-
* @returns {FShape} - A new shape builder.
|
|
87
|
-
*
|
|
88
|
-
* @example
|
|
89
|
-
* ```ts
|
|
90
|
-
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
91
|
-
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
92
|
-
* if (!fWorksheet) return;
|
|
93
|
-
*
|
|
94
|
-
* // Create a rectangle shape at cell B2 with 200x200 size.
|
|
95
|
-
* const shapeInfo = fWorksheet.newShape()
|
|
96
|
-
* .setShapeType(univerAPI.Enum.ShapeTypeEnum.Rect)
|
|
97
|
-
* .setPosition(1, 1, 0, 0)
|
|
98
|
-
* .setWidth(200)
|
|
99
|
-
* .setHeight(200)
|
|
100
|
-
* .build();
|
|
101
|
-
* await fWorksheet.insertShape(shapeInfo);
|
|
102
|
-
* ```
|
|
103
|
-
*/
|
|
104
|
-
newShape(existingShape?: FShape): FShape;
|
|
105
|
-
/**
|
|
106
|
-
* Returns an array of shapes on this sheet.
|
|
107
|
-
* @returns {FShape[]} - An array of shapes on this sheet.
|
|
108
|
-
*
|
|
109
|
-
* @example
|
|
110
|
-
* ```ts
|
|
111
|
-
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
112
|
-
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
113
|
-
* if (!fWorksheet) return;
|
|
114
|
-
*
|
|
115
|
-
* // Get all shapes on the active sheet.
|
|
116
|
-
* const shapes = fWorksheet.getShapes();
|
|
117
|
-
* console.log(shapes);
|
|
118
|
-
* ```
|
|
119
|
-
*/
|
|
120
|
-
getShapes(): FShape[];
|
|
121
|
-
/**
|
|
122
|
-
* Removes a shape from this sheet.
|
|
123
|
-
* @param {FShape} shape - The shape to remove.
|
|
124
|
-
* @returns {Promise<boolean>} - Whether the shape was removed successfully.
|
|
125
|
-
*
|
|
7
|
+
* Inserts a Shape or Connector into this worksheet.
|
|
8
|
+
* @param {IShapeCreateInput} input Common Shape creation input.
|
|
9
|
+
* @returns {FSheetShape | FConnectorShape | null} A live Sheet Shape facade, or `null` when creation fails.
|
|
126
10
|
* @example
|
|
127
11
|
* ```ts
|
|
128
12
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
129
13
|
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
*
|
|
139
|
-
*
|
|
140
|
-
*
|
|
141
|
-
*
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
*
|
|
146
|
-
*
|
|
14
|
+
* const fShape = fWorksheet.insertShape({
|
|
15
|
+
* shapeType: univerAPI.Enum.ShapeTypeEnum.RoundRect,
|
|
16
|
+
* transform: { left: 120, top: 80, width: 240, height: 120 },
|
|
17
|
+
* shapeData: {
|
|
18
|
+
* fill: { fillType: univerAPI.Enum.ShapeFillEnum.SolidFill, color: '#dbeafe' },
|
|
19
|
+
* stroke: {
|
|
20
|
+
* lineStrokeType: univerAPI.Enum.ShapeLineTypeEnum.SolidLine,
|
|
21
|
+
* color: '#2563eb',
|
|
22
|
+
* width: 2,
|
|
23
|
+
* },
|
|
24
|
+
* },
|
|
25
|
+
* });
|
|
26
|
+
*
|
|
27
|
+
* fShape
|
|
28
|
+
* .setRotation(8)
|
|
29
|
+
* .setStrokeLineDashType(univerAPI.Enum.ShapeLineDashEnum.Dash)
|
|
30
|
+
* .setPosition(6, 6, 10, 10);
|
|
31
|
+
*
|
|
32
|
+
* fShape.getText()
|
|
33
|
+
* .setText('Sheet review')
|
|
34
|
+
* .setHorizontalAlign(univerAPI.Enum.HorizontalAlign.CENTER)
|
|
35
|
+
* .setVerticalAlign(univerAPI.Enum.VerticalAlign.MIDDLE);
|
|
147
36
|
* ```
|
|
148
37
|
*/
|
|
149
|
-
|
|
38
|
+
insertShape(input: IShapeCreateInput): FSheetShape | FConnectorShape | null;
|
|
150
39
|
/**
|
|
151
|
-
*
|
|
152
|
-
* At least one of `startTarget` or `endTarget` must be provided. If an endpoint is not provided,
|
|
153
|
-
* its existing connection (if any) is preserved, or it remains as a free point.
|
|
154
|
-
*
|
|
155
|
-
* This method requires the sheet to be active (has a render context).
|
|
156
|
-
*
|
|
157
|
-
* @param {IConnectShapesParams} params - Parameters specifying the connector and target shapes.
|
|
158
|
-
* @returns {Promise<boolean>} - Whether the connection was established successfully.
|
|
159
|
-
*
|
|
40
|
+
* Returns a worksheet Shape by its stable identifier.
|
|
160
41
|
* @example
|
|
161
42
|
* ```ts
|
|
162
43
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
163
44
|
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
164
|
-
*
|
|
165
|
-
*
|
|
166
|
-
* // Get all shapes on the sheet.
|
|
167
|
-
* const shapes = fWorksheet.getShapes();
|
|
168
|
-
* const basicShapes = shapes.filter((s) => !s.isLineShape());
|
|
169
|
-
* const connectors = shapes.filter((s) => s.isLineShape());
|
|
170
|
-
*
|
|
171
|
-
* if (connectors.length > 0 && basicShapes.length >= 2) {
|
|
172
|
-
* // Connect the first connector's start to the first basic shape's cxn site 0,
|
|
173
|
-
* // and the end to the second basic shape's cxn site 2.
|
|
174
|
-
* await fWorksheet.connectShapes({
|
|
175
|
-
* connector: connectors[0],
|
|
176
|
-
* startTarget: { shape: basicShapes[0], connectionSiteIndex: 0 },
|
|
177
|
-
* endTarget: { shape: basicShapes[1], connectionSiteIndex: 2 },
|
|
178
|
-
* });
|
|
179
|
-
* }
|
|
45
|
+
* const fShape = fWorksheet.getShape('shape-1');
|
|
46
|
+
* console.log(fShape);
|
|
180
47
|
* ```
|
|
181
48
|
*/
|
|
182
|
-
|
|
49
|
+
getShape(shapeId: string): FSheetShape | FConnectorShape | null;
|
|
183
50
|
/**
|
|
184
|
-
* Returns
|
|
185
|
-
*
|
|
186
|
-
* @description If an existing FShape is provided, the builder will be initialized with that shape's current properties (id, type, position, size) for updating.
|
|
187
|
-
* @param {FShape} [existingShape] An existing connector shape to initialize the builder with for updating.
|
|
188
|
-
* @returns {FConnectorShape} - A new connector shape builder.
|
|
189
|
-
*
|
|
51
|
+
* Returns all Shapes and Connectors on this worksheet.
|
|
52
|
+
* @returns {Array<FSheetShape | FConnectorShape>} An array of live Sheet Shape facades.
|
|
190
53
|
* @example
|
|
191
54
|
* ```ts
|
|
192
55
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
193
56
|
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
194
|
-
*
|
|
195
|
-
*
|
|
196
|
-
* // Create a straight connector with arrows at cell B2 with 200x100 size.
|
|
197
|
-
* const connectorInfo = fWorksheet.newConnector()
|
|
198
|
-
* .setShapeType(univerAPI.Enum.ShapeTypeEnum.StraightConnector1)
|
|
199
|
-
* .setPosition(1, 1, 0, 0)
|
|
200
|
-
* .setWidth(200)
|
|
201
|
-
* .setHeight(100)
|
|
202
|
-
* .setStartArrowType(univerAPI.Enum.ShapeArrowTypeEnum.Arrow)
|
|
203
|
-
* .setEndArrowType(univerAPI.Enum.ShapeArrowTypeEnum.Arrow)
|
|
204
|
-
* .setStrokeColor('#000000')
|
|
205
|
-
* .setStrokeWidth(2)
|
|
206
|
-
* .build();
|
|
207
|
-
* await fWorksheet.insertShape(connectorInfo);
|
|
57
|
+
* const fShapes = fWorksheet.getShapes();
|
|
58
|
+
* console.log(fShapes);
|
|
208
59
|
* ```
|
|
209
60
|
*/
|
|
210
|
-
|
|
61
|
+
getShapes(): Array<FSheetShape | FConnectorShape>;
|
|
211
62
|
}
|
|
212
63
|
export declare class FWorksheetShapeMixin extends FWorksheet implements IFWorksheetShapeMixin {
|
|
213
|
-
insertShape(
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
connectShapes(connectParams: IConnectShapesParams): Promise<boolean>;
|
|
220
|
-
/**
|
|
221
|
-
* @ignore
|
|
222
|
-
*/
|
|
223
|
-
private _preloadShapeProperties;
|
|
224
|
-
/**
|
|
225
|
-
* @ignore
|
|
226
|
-
*/
|
|
227
|
-
private _resolveEndpoints;
|
|
228
|
-
/**
|
|
229
|
-
* @ignore
|
|
230
|
-
*/
|
|
231
|
-
private _resolveExistingOrFreeEndpoint;
|
|
64
|
+
insertShape(input: IShapeCreateInput): FSheetShape | FConnectorShape | null;
|
|
65
|
+
getShape(shapeId: string): FSheetShape | FConnectorShape | null;
|
|
66
|
+
getShapes(): Array<FSheetShape | FConnectorShape>;
|
|
67
|
+
private _getShapeScope;
|
|
68
|
+
private _getShapeAdapter;
|
|
69
|
+
private _createShapeHandle;
|
|
232
70
|
}
|
|
233
|
-
/**
|
|
234
|
-
* @ignore
|
|
235
|
-
*/
|
|
236
71
|
declare module '@univerjs/sheets/facade' {
|
|
237
72
|
interface FWorksheet extends IFWorksheetShapeMixin {
|
|
238
73
|
}
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
import './f-enum';
|
|
2
|
-
import './f-shape';
|
|
3
1
|
import './f-worksheet';
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export type * from './f-shape';
|
|
7
|
-
export type * from './f-worksheet';
|
|
8
|
-
declare module '@univerjs-pro/sheets-shape/facade' {
|
|
9
|
-
interface FShape {
|
|
10
|
-
}
|
|
11
|
-
interface IShapeBuildOptions {
|
|
12
|
-
}
|
|
13
|
-
}
|
|
2
|
+
export { FSheetShape } from './f-shape';
|
|
3
|
+
export type { IFWorksheetShapeMixin } from './f-worksheet';
|
package/lib/types/index.d.ts
CHANGED
|
@@ -3,17 +3,12 @@ export type { IInsertSheetsShapeCommandParams } from './commands/command/add-sha
|
|
|
3
3
|
export { SetShapeDrawingDataCommand } from './commands/command/set-shape-drawing-data.command';
|
|
4
4
|
export type { ISetShapeDrawingDataCommandParams } from './commands/command/set-shape-drawing-data.command';
|
|
5
5
|
export { ToggleSheetsShapeFlipCommand } from './commands/command/set-shape-flip.command';
|
|
6
|
-
export type { IUpdateSheetsShapeFlipCommandParams } from './commands/command/set-shape-flip.command';
|
|
7
6
|
export { SetSheetsShapeRotateCommand } from './commands/command/set-shape-rotate.command';
|
|
8
|
-
export type { IUpdateSheetsShapeRotateCommandParams } from './commands/command/set-shape-rotate.command';
|
|
9
7
|
export { SetSheetsShapeTextVerticalToggleCommand } from './commands/command/set-shape-text-vertical-toggle.command';
|
|
10
|
-
export type { ISetSheetsShapeTextVerticalToggleCommandParams, } from './commands/command/set-shape-text-vertical-toggle.command';
|
|
11
8
|
export { UpdateConnectorRelationCommand } from './commands/command/update-connector-relation.command';
|
|
12
9
|
export type { IUpdateConnectorRelationCommandParams } from './commands/command/update-connector-relation.command';
|
|
13
10
|
export { UpdateLineShapeResizeCommand } from './commands/command/update-line-shape-resize.command';
|
|
14
11
|
export type { IUpdateSheetsShapeResizeCommandParams } from './commands/command/update-line-shape-resize.command';
|
|
15
|
-
export { UpdateSheetsShapeTypeCommand } from './commands/command/update-shape-type.command';
|
|
16
|
-
export type { IUpdateSheetsShapeTypeCommandParams } from './commands/command/update-shape-type.command';
|
|
17
12
|
export { InsertSheetsShapeMutation } from './commands/mutation/add-shape.mutation';
|
|
18
13
|
export type { IInsertSheetsShapeMutationParams } from './commands/mutation/add-shape.mutation';
|
|
19
14
|
export { RemoveSheetsShapeMutation } from './commands/mutation/remove-shape.mutation';
|
|
@@ -21,8 +16,7 @@ export type { IRemoveSheetsShapeMutationParams } from './commands/mutation/remov
|
|
|
21
16
|
export { UpdateSheetsShapeDataMutation } from './commands/mutation/update-shape-data.mutation';
|
|
22
17
|
export type { IUpdateSheetsShapeDataMutationParams } from './commands/mutation/update-shape-data.mutation';
|
|
23
18
|
export { UpdateSheetsShapeTypeMutation } from './commands/mutation/update-shape-type.mutation';
|
|
24
|
-
export
|
|
25
|
-
export {
|
|
26
|
-
export type { IDrawingShapeData, ISheetShapeDrawingParam } from './common/types';
|
|
19
|
+
export { DEFAULT_SHAPE_HEIGHT, DEFAULT_SHAPE_WIDTH, } from './common/const';
|
|
20
|
+
export type { IDrawingShapeData, ISheetShapeDrawingParam, } from './common/types';
|
|
27
21
|
export { UniverSheetsShapePlugin } from './plugin';
|
|
28
22
|
export { SheetsShapeService } from './services/sheet-shape-services';
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import type { IUniverSheetsShapeConfig } from './config/config';
|
|
2
|
-
import {
|
|
2
|
+
import { IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
3
3
|
export declare class UniverSheetsShapePlugin extends Plugin {
|
|
4
4
|
private readonly _config;
|
|
5
5
|
protected readonly _injector: Injector;
|
|
6
|
-
private readonly _commandService;
|
|
7
6
|
private readonly _configService;
|
|
8
7
|
static type: UniverInstanceType;
|
|
9
8
|
static pluginName: string;
|
|
10
9
|
static packageName: string;
|
|
11
10
|
static version: string;
|
|
12
|
-
constructor(_config: IUniverSheetsShapeConfig | undefined, _injector: Injector,
|
|
11
|
+
constructor(_config: IUniverSheetsShapeConfig | undefined, _injector: Injector, _configService: IConfigService);
|
|
13
12
|
onStarting(): void;
|
|
14
13
|
}
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x26ee(_0x313de2,_0x420ea0){_0x313de2=_0x313de2-0xf4;const _0x19321d=_0x1932();let _0x26ee43=_0x19321d[_0x313de2];return _0x26ee43;}function _0x1932(){const _0x4c4efe=['type','DrawingTypeEnum','getDrawingByParam','FEnum','top','setShapeSolidFill','getUnitId','ISheetDrawingService','size','opacity','3EdVmDW','SheetSkeletonService','lineType','setStrokeLineCapType','NoFill','setPosition','@univerjs/sheets-drawing','DEFAULT_SHAPE_WIDTH','isLineShape','RemoveSheetDrawingCommand','prototype','endArrow','getAdjustNames','drawId','convertPositionCellToSheetOverGrid','DRAWING_SHAPE','connectionSiteIndex','dashType','shape','getConnectorLinePoints','Module','constructor','subUnitId','getSize','setStrokeColor','lineStrokeType','setShapeData','UniverSheetsFacade','relation','getSheetId','UniverCoreFacade','localToWorld','symbol','getConnectionSiteList','3828335BKacSI','capType','ShapeLineDashEnum','getShapeId','UniverSheetsDrawing','112095POkZns','FConnectorShape','fillType','_injector','getShapeRelation','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','_commandService','exports','computeConnectorRouteLayout','amd','isConnectorShape','left','updateContext','gradientType','object','generateRandomId','getConnectionSites','removeShape','7790502JhVGRT','setStrokeOpacity','setWidth','index','_resolveEndpoints','ShapeFillEnum','UniverCore','newConnector','call','SolidFill','flipY','getDrawingPoints','shapeData','1104128fsdJUC','string','getDrawingData','IDrawingManagerService','getAdjustPoints','adjustValues','getAdjustValueByName',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','setStrokeLineJoinType','abs','ShapeGradientTypeEnum','ShapeLineJoinEnum','getShapeType','setHeight','connectShapes','5852900jqmTwB','ShapeLineTypeEnum','setShapeType','build','setStartArrowSize','@univerjs-pro/engine-shape','_resolveExistingOrFreeEndpoint','Skeleton\x20for\x20unitId\x20','FShape','FWorksheet','getShapeModel','ConnectorCoordinateTransform','lineJoinType','ensureSkeleton','unitId','shapeType','setStrokeLineType','rotation','UniverProSheetsShapeFacade','getShapes','@univerjs/sheets/facade','2551330fzCFRT','GradientFill','UniverProEngineShape','width','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','cxnIndex','routeConnectorLineShape','\x20not\x20found','defineProperty','get','insertShape','getShapeData','getStartConnectInfo','fill','toPrimitive','setNoneFill','UniverDrawing','parse','getWorkbook','setStrokeLineDashType','from','ShapeLineCapEnum','startArrow','@univerjs/core/facade','DEFAULT_SHAPE_HEIGHT','27WfKEyR','setStrokeWidth','cos','8rzAHdR','extend','ang','color','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','worldRect','entries','_preloadShapeProperties','stroke','gradientStops','775964ccKrZz','ShapeTypeEnum','getEndConnectInfo','function','sin','SheetsShapeService','height','setShapeGradientFill','drawingType','keys','setEndArrowSize','find','transform','\x20and\x20subUnitId\x20','@univerjs/drawing','InsertShapeCommand','stringify'];_0x1932=function(){return _0x4c4efe;};return _0x1932();}(function(_0x2c877c,_0x4aa4e5){const _0x23ad7d=_0x26ee,_0x2af1e6=_0x2c877c();while(!![]){try{const _0x3168b2=-parseInt(_0x23ad7d(0x18c))/0x1+-parseInt(_0x23ad7d(0x100))/0x2+-parseInt(_0x23ad7d(0x165))/0x3*(-parseInt(_0x23ad7d(0x14a))/0x4)+-parseInt(_0x23ad7d(0x10f))/0x5+parseInt(_0x23ad7d(0x19e))/0x6+parseInt(_0x23ad7d(0x187))/0x7*(parseInt(_0x23ad7d(0x140))/0x8)+parseInt(_0x23ad7d(0x13d))/0x9*(parseInt(_0x23ad7d(0x124))/0xa);if(_0x3168b2===_0x4aa4e5)break;else _0x2af1e6['push'](_0x2af1e6['shift']());}catch(_0x146a7f){_0x2af1e6['push'](_0x2af1e6['shift']());}}}(_0x1932,0xeccf5),function(_0x4a6cad,_0x146459){const _0x1f2542=_0x26ee;typeof exports==_0x1f2542(0x19a)&&typeof module<'u'?_0x146459(exports,require('@univerjs-pro/engine-shape'),require('@univerjs/core/facade'),require('@univerjs-pro/sheets-shape'),require('@univerjs/core'),require('@univerjs/drawing'),require('@univerjs/sheets'),require('@univerjs/sheets-drawing'),require('@univerjs/sheets/facade')):typeof define==_0x1f2542(0x14d)&&define[_0x1f2542(0x195)]?define([_0x1f2542(0x193),_0x1f2542(0x114),_0x1f2542(0x13b),'@univerjs-pro/sheets-shape','@univerjs/core',_0x1f2542(0x158),'@univerjs/sheets',_0x1f2542(0x16b),_0x1f2542(0x123)],_0x146459):(_0x4a6cad=typeof globalThis<'u'?globalThis:_0x4a6cad||self,_0x146459(_0x4a6cad[_0x1f2542(0x121)]={},_0x4a6cad[_0x1f2542(0x126)],_0x4a6cad[_0x1f2542(0x183)],_0x4a6cad['UniverProSheetsShape'],_0x4a6cad[_0x1f2542(0xf9)],_0x4a6cad[_0x1f2542(0x134)],_0x4a6cad['UniverSheets'],_0x4a6cad[_0x1f2542(0x18b)],_0x4a6cad[_0x1f2542(0x180)]));}(this,function(_0x3f4ebe,_0x30d003,_0x30334d,_0x1706a2,_0x2991ea,_0x344e73,_0x779c46,_0x1a1a5f,_0x1a5cd0){const _0x298834=_0x26ee;Object[_0x298834(0x12c)](_0x3f4ebe,Symbol['toStringTag'],{'value':_0x298834(0x179)});var _0x275b46=class extends _0x30334d[_0x298834(0x15e)]{get[_0x298834(0x14b)](){const _0x709fdb=_0x298834;return _0x30d003[_0x709fdb(0x14b)];}get[_0x298834(0xf8)](){const _0x4b8df8=_0x298834;return _0x30d003[_0x4b8df8(0xf8)];}get['ShapeGradientTypeEnum'](){const _0x5aeca7=_0x298834;return _0x30d003[_0x5aeca7(0x10a)];}get['ShapeLineTypeEnum'](){const _0x15ab39=_0x298834;return _0x30d003[_0x15ab39(0x110)];}get[_0x298834(0x189)](){const _0x2c15fc=_0x298834;return _0x30d003[_0x2c15fc(0x189)];}get[_0x298834(0x139)](){const _0x31aaa9=_0x298834;return _0x30d003[_0x31aaa9(0x139)];}get[_0x298834(0x10b)](){const _0x162602=_0x298834;return _0x30d003[_0x162602(0x10b)];}get['ShapeArrowTypeEnum'](){return _0x30d003['ShapeArrowTypeEnum'];}get['ShapeArrowSizeEnum'](){return _0x30d003['ShapeArrowSizeEnum'];}};_0x30334d['FEnum'][_0x298834(0x141)](_0x275b46);function _0x29c63e(_0x5b9745){'@babel/helpers - typeof';const _0x1f560d=_0x298834;return _0x29c63e=typeof Symbol==_0x1f560d(0x14d)&&typeof Symbol['iterator']=='symbol'?function(_0x235429){return typeof _0x235429;}:function(_0x29a84d){const _0x5e5ed3=_0x1f560d;return _0x29a84d&&typeof Symbol==_0x5e5ed3(0x14d)&&_0x29a84d[_0x5e5ed3(0x17a)]===Symbol&&_0x29a84d!==Symbol[_0x5e5ed3(0x16f)]?_0x5e5ed3(0x185):typeof _0x29a84d;},_0x29c63e(_0x5b9745);}function _0x3f8474(_0x4ef8ea,_0xe1f691){const _0x39ed47=_0x298834;if(_0x29c63e(_0x4ef8ea)!='object'||!_0x4ef8ea)return _0x4ef8ea;var _0xbd1384=_0x4ef8ea[Symbol[_0x39ed47(0x132)]];if(_0xbd1384!==void 0x0){var _0x17eefe=_0xbd1384[_0x39ed47(0xfb)](_0x4ef8ea,_0xe1f691||'default');if(_0x29c63e(_0x17eefe)!=_0x39ed47(0x19a))return _0x17eefe;throw TypeError(_0x39ed47(0x128));}return(_0xe1f691===_0x39ed47(0x101)?String:Number)(_0x4ef8ea);}function _0x2549bf(_0x5435f1){const _0x1ab4e8=_0x298834;var _0x26a232=_0x3f8474(_0x5435f1,_0x1ab4e8(0x101));return _0x29c63e(_0x26a232)==_0x1ab4e8(0x185)?_0x26a232:_0x26a232+'';}function _0x2370a3(_0x241f35,_0x3d2be4,_0x3ab674){const _0x639db=_0x298834;return(_0x3d2be4=_0x2549bf(_0x3d2be4))in _0x241f35?Object[_0x639db(0x12c)](_0x241f35,_0x3d2be4,{'value':_0x3ab674,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x241f35[_0x3d2be4]=_0x3ab674,_0x241f35;}var _0x45d2be=class{constructor(_0x331a64,_0x1b27b8,_0x3bfa2f,_0x3162a5){const _0x43ee2d=_0x298834;_0x2370a3(this,_0x43ee2d(0x11d),void 0x0),_0x2370a3(this,'subUnitId',void 0x0),_0x2370a3(this,'drawId',void 0x0),_0x2370a3(this,'x',0x0),_0x2370a3(this,'y',0x0),_0x2370a3(this,_0x43ee2d(0x127),_0x1706a2[_0x43ee2d(0x16c)]),_0x2370a3(this,_0x43ee2d(0x150),_0x1706a2[_0x43ee2d(0x13c)]),_0x2370a3(this,'shapeType',void 0x0),_0x2370a3(this,_0x43ee2d(0xff),{}),_0x2370a3(this,'_injector',void 0x0),this[_0x43ee2d(0x11d)]=_0x331a64,this[_0x43ee2d(0x17b)]=_0x1b27b8,this[_0x43ee2d(0x172)]=_0x3bfa2f||(0x0,_0x2991ea[_0x43ee2d(0x19b)])(),this[_0x43ee2d(0x18f)]=_0x3162a5;}[_0x298834(0x16a)](_0xba27c8,_0x5593cb,_0x167dd4,_0x4701e2){const _0x2dbead=_0x298834;let _0x22257c=this['_injector'][_0x2dbead(0x12d)](_0x779c46[_0x2dbead(0x166)])['ensureSkeleton'](this[_0x2dbead(0x11d)],this['subUnitId']);if(!_0x22257c)throw Error(_0x2dbead(0x116)+this[_0x2dbead(0x11d)]+_0x2dbead(0x157)+this['subUnitId']+'\x20not\x20found');let {transform:_0x494f8d}=(0x0,_0x779c46[_0x2dbead(0x173)])(this[_0x2dbead(0x11d)],this[_0x2dbead(0x17b)],{'row':_0xba27c8,'column':_0x5593cb,'rowOffset':_0x167dd4,'columnOffset':_0x4701e2},0x1,0x1,_0x22257c);return this['x']=_0x494f8d[_0x2dbead(0x197)],this['y']=_0x494f8d[_0x2dbead(0x15f)],this;}['setAbsolutePosition'](_0x50e165,_0x331446){return this['x']=_0x50e165,this['y']=_0x331446,this;}[_0x298834(0x111)](_0x3106c3){const _0x1a6224=_0x298834;return this[_0x1a6224(0x11e)]=_0x3106c3,this;}[_0x298834(0x17f)](_0x39d5fb){const _0x37b395=_0x298834;return _0x39d5fb[_0x37b395(0x11e)]&&this['setShapeType'](_0x39d5fb[_0x37b395(0x11e)]),this[_0x37b395(0xff)]={..._0x39d5fb},this;}[_0x298834(0x160)](_0x5781e4,_0x521732){const _0x79d6e0=_0x298834;return this[_0x79d6e0(0xff)]['fill']||(this[_0x79d6e0(0xff)]['fill']={}),this[_0x79d6e0(0xff)][_0x79d6e0(0x131)][_0x79d6e0(0x18e)]=_0x30d003[_0x79d6e0(0xf8)][_0x79d6e0(0xfc)],_0x5781e4!==void 0x0&&(this[_0x79d6e0(0xff)][_0x79d6e0(0x131)]['color']=_0x5781e4),_0x521732!==void 0x0&&(this[_0x79d6e0(0xff)][_0x79d6e0(0x131)][_0x79d6e0(0x164)]=_0x521732),this;}[_0x298834(0x151)](_0x3cf481,_0x344f9a,_0x10dc86){const _0x25c2c0=_0x298834;if(_0x344f9a===void 0x0||_0x344f9a['length']===0x0)throw Error(_0x25c2c0(0x191));return this[_0x25c2c0(0xff)][_0x25c2c0(0x131)]||(this[_0x25c2c0(0xff)][_0x25c2c0(0x131)]={}),this[_0x25c2c0(0xff)][_0x25c2c0(0x131)][_0x25c2c0(0x149)]=_0x344f9a,this[_0x25c2c0(0xff)][_0x25c2c0(0x131)]['fillType']=_0x30d003['ShapeFillEnum'][_0x25c2c0(0x125)],this[_0x25c2c0(0xff)]['fill'][_0x25c2c0(0x199)]=_0x3cf481,_0x10dc86!==void 0x0&&(this['shapeData']['fill']['gradientAngle']=_0x10dc86),this;}[_0x298834(0x133)](){const _0x56432f=_0x298834;return this[_0x56432f(0xff)][_0x56432f(0x131)]={'fillType':_0x30d003[_0x56432f(0xf8)][_0x56432f(0x169)]},this;}[_0x298834(0x17d)](_0x500b16){const _0x35dd90=_0x298834;return this[_0x35dd90(0xff)][_0x35dd90(0x148)]||(this['shapeData'][_0x35dd90(0x148)]={}),this[_0x35dd90(0xff)][_0x35dd90(0x148)][_0x35dd90(0x143)]=_0x500b16,this;}[_0x298834(0x13e)](_0x36701c){const _0x318922=_0x298834;return this[_0x318922(0xff)][_0x318922(0x148)]||(this['shapeData'][_0x318922(0x148)]={}),this[_0x318922(0xff)]['stroke'][_0x318922(0x127)]=_0x36701c,this;}[_0x298834(0x137)](_0x45e3d8){const _0x230c72=_0x298834;return this[_0x230c72(0xff)]['stroke']||(this[_0x230c72(0xff)]['stroke']={}),this[_0x230c72(0xff)][_0x230c72(0x148)][_0x230c72(0x176)]=_0x45e3d8,this;}[_0x298834(0x108)](_0x375995){const _0x181366=_0x298834;return this[_0x181366(0xff)][_0x181366(0x148)]||(this[_0x181366(0xff)][_0x181366(0x148)]={}),this['shapeData']['stroke'][_0x181366(0x11b)]=_0x375995,this;}[_0x298834(0x168)](_0x428c4a){const _0x42fec5=_0x298834;return this[_0x42fec5(0xff)]['stroke']||(this['shapeData'][_0x42fec5(0x148)]={}),this[_0x42fec5(0xff)]['stroke'][_0x42fec5(0x188)]=_0x428c4a,this;}[_0x298834(0xf4)](_0xf35481){const _0x1370c1=_0x298834;return this[_0x1370c1(0xff)][_0x1370c1(0x148)]||(this[_0x1370c1(0xff)][_0x1370c1(0x148)]={}),this[_0x1370c1(0xff)][_0x1370c1(0x148)][_0x1370c1(0x164)]=_0xf35481,this;}[_0x298834(0x11f)](_0x2fe961){const _0x10dae1=_0x298834;return this[_0x10dae1(0xff)][_0x10dae1(0x148)]||(this[_0x10dae1(0xff)]['stroke']={}),this['shapeData']['stroke'][_0x10dae1(0x17e)]=_0x2fe961,this;}[_0x298834(0xf5)](_0x12865c){const _0x44c642=_0x298834;return this[_0x44c642(0x127)]=_0x12865c,this;}[_0x298834(0x10d)](_0x148184){return this['height']=_0x148184,this;}[_0x298834(0x16d)](){const _0x2c9537=_0x298834;let _0x2a629d=this['_injector']['get'](_0x1706a2[_0x2c9537(0x14f)])[_0x2c9537(0x119)](this[_0x2c9537(0x11d)],this['subUnitId'],this[_0x2c9537(0x172)]);return _0x2a629d?(0x0,_0x30d003['isConnectorShape'])(_0x2a629d['getShapeType']()):this['shapeType']?(0x0,_0x30d003[_0x2c9537(0x196)])(this['shapeType']):!0x1;}[_0x298834(0x19c)](){const _0x1cd969=_0x298834;let _0x2eeb76=this[_0x1cd969(0x18f)][_0x1cd969(0x12d)](_0x1706a2[_0x1cd969(0x14f)])[_0x1cd969(0x119)](this[_0x1cd969(0x11d)],this[_0x1cd969(0x17b)],this[_0x1cd969(0x172)]);if(!_0x2eeb76)return[];let _0x272205=this[_0x1cd969(0x18f)]['get'](_0x344e73[_0x1cd969(0x103)])[_0x1cd969(0x15d)]({'unitId':this[_0x1cd969(0x11d)],'subUnitId':this['subUnitId'],'drawingId':this[_0x1cd969(0x172)]});if(!(_0x272205!=null&&_0x272205[_0x1cd969(0x156)]))return[];let {width:_0xe6f47=0x0,height:_0x2d2f66=0x0}=_0x272205[_0x1cd969(0x156)];return _0x2eeb76[_0x1cd969(0x198)]({'width':_0xe6f47,'height':_0x2d2f66}),_0x2eeb76[_0x1cd969(0x186)]();}[_0x298834(0x104)](){const _0x35059d=_0x298834;let _0x55625f=this[_0x35059d(0x18f)][_0x35059d(0x12d)](_0x1706a2['SheetsShapeService'])[_0x35059d(0x119)](this[_0x35059d(0x11d)],this[_0x35059d(0x17b)],this[_0x35059d(0x172)]);if(!_0x55625f)return[];let _0x337496=this[_0x35059d(0x18f)][_0x35059d(0x12d)](_0x344e73[_0x35059d(0x103)])[_0x35059d(0x15d)]({'unitId':this[_0x35059d(0x11d)],'subUnitId':this['subUnitId'],'drawingId':this[_0x35059d(0x172)]});if(!(_0x337496!=null&&_0x337496['transform']))return[];let {width:_0x3c4b4a=0x0,height:_0x31de8b=0x0}=_0x337496[_0x35059d(0x156)];return _0x55625f[_0x35059d(0x198)]({'width':_0x3c4b4a,'height':_0x31de8b}),_0x55625f[_0x35059d(0xfe)]();}[_0x298834(0x178)](){const _0x2d6417=_0x298834;let _0x5e6b6e=this[_0x2d6417(0x18f)][_0x2d6417(0x12d)](_0x1706a2['SheetsShapeService'])[_0x2d6417(0x119)](this[_0x2d6417(0x11d)],this[_0x2d6417(0x17b)],this[_0x2d6417(0x172)]);if(!_0x5e6b6e||!(0x0,_0x30d003['isConnectorShape'])(_0x5e6b6e[_0x2d6417(0x10c)]()))return[];let _0x53a487=this['_injector'][_0x2d6417(0x12d)](_0x344e73['IDrawingManagerService'])['getDrawingByParam']({'unitId':this[_0x2d6417(0x11d)],'subUnitId':this['subUnitId'],'drawingId':this[_0x2d6417(0x172)]});if(!(_0x53a487!=null&&_0x53a487[_0x2d6417(0x156)]))return[];let {width:_0x5ccebc=0x0,height:_0x2a58f2=0x0}=_0x53a487[_0x2d6417(0x156)];return _0x5e6b6e[_0x2d6417(0x198)]({'width':_0x5ccebc,'height':_0x2a58f2}),_0x5e6b6e[_0x2d6417(0x178)]();}[_0x298834(0x130)](){const _0x2066d8=_0x298834;var _0x48938a;let _0x5df7c1=this['_injector'][_0x2066d8(0x12d)](_0x1706a2[_0x2066d8(0x14f)])[_0x2066d8(0x119)](this[_0x2066d8(0x11d)],this['subUnitId'],this[_0x2066d8(0x172)]);return _0x5df7c1?(_0x48938a=_0x5df7c1['getStartConnectInfo']())==null?null:_0x48938a:null;}[_0x298834(0x14c)](){const _0x517f8b=_0x298834;var _0x5cfdc4;let _0x50d078=this[_0x517f8b(0x18f)][_0x517f8b(0x12d)](_0x1706a2['SheetsShapeService'])[_0x517f8b(0x119)](this['unitId'],this[_0x517f8b(0x17b)],this[_0x517f8b(0x172)]);return _0x50d078?(_0x5cfdc4=_0x50d078['getEndConnectInfo']())==null?null:_0x5cfdc4:null;}[_0x298834(0x112)](){const _0x5cbdfe=_0x298834;var _0x449ad8,_0x4e6b31;if(!this[_0x5cbdfe(0x11e)])throw Error('Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().');if(this['x']===0x0||this['y']===0x0){let _0x1f9394=this[_0x5cbdfe(0x18f)][_0x5cbdfe(0x12d)](_0x779c46[_0x5cbdfe(0x166)])[_0x5cbdfe(0x11c)](this[_0x5cbdfe(0x11d)],this[_0x5cbdfe(0x17b)]);if(!_0x1f9394)throw Error(_0x5cbdfe(0x116)+this[_0x5cbdfe(0x11d)]+_0x5cbdfe(0x157)+this[_0x5cbdfe(0x17b)]+_0x5cbdfe(0x12b));let {transform:_0x223bef}=(0x0,_0x779c46[_0x5cbdfe(0x173)])(this[_0x5cbdfe(0x11d)],this[_0x5cbdfe(0x17b)],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x1f9394);this['x']=this['x']>0x0?this['x']:_0x223bef[_0x5cbdfe(0x197)],this['y']=this['y']>0x0?this['y']:_0x223bef[_0x5cbdfe(0x15f)];}return this[_0x5cbdfe(0x127)]=(_0x449ad8=this['width'])==null?_0x1706a2['DEFAULT_SHAPE_WIDTH']:_0x449ad8,this[_0x5cbdfe(0x150)]=(_0x4e6b31=this[_0x5cbdfe(0x150)])==null?_0x1706a2[_0x5cbdfe(0x13c)]:_0x4e6b31,{'unitId':this[_0x5cbdfe(0x11d)],'subUnitId':this[_0x5cbdfe(0x17b)],'shapeId':this[_0x5cbdfe(0x172)],'shapeType':this[_0x5cbdfe(0x11e)],'shapeData':Object[_0x5cbdfe(0x153)](this[_0x5cbdfe(0xff)])['length']>0x0?this['shapeData']:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x5cbdfe(0x127)],'height':this['height']};}[_0x298834(0x18a)](){const _0x2646bf=_0x298834;return this[_0x2646bf(0x172)];}[_0x298834(0x10c)](){const _0x3049f7=_0x298834;return this[_0x3049f7(0x11e)];}[_0x298834(0x12f)](){const _0x5d21b9=_0x298834;return this[_0x5d21b9(0xff)];}['getPosition'](){return{'x':this['x'],'y':this['y']};}[_0x298834(0x17c)](){const _0x388143=_0x298834;return{'width':this[_0x388143(0x127)],'height':this[_0x388143(0x150)]};}},_0x54b05e=class extends _0x45d2be{constructor(_0x4ae1a6,_0x3cfbdb,_0xd4c290,_0x18c041){const _0x135c16=_0x298834;super(_0x4ae1a6,_0x3cfbdb,_0xd4c290,_0x18c041),_0x2370a3(this,_0x135c16(0xff),{});}[_0x298834(0x111)](_0x319541){const _0x4aaf18=_0x298834;if(!(0x0,_0x30d003[_0x4aaf18(0x196)])(_0x319541))throw Error(_0x4aaf18(0x144)+_0x319541+_0x4aaf18(0x107));return super[_0x4aaf18(0x111)](_0x319541),this;}['setStartArrowType'](_0x12d178){const _0x244d0a=_0x298834;var _0x4815b2,_0x3c44cd;return(_0x4815b2=this[_0x244d0a(0xff)])!=null&&_0x4815b2['ln']||(this[_0x244d0a(0xff)]['ln']={}),!((_0x3c44cd=this[_0x244d0a(0xff)])==null||(_0x3c44cd=_0x3c44cd['ln'])==null)&&_0x3c44cd['startArrow']||(this[_0x244d0a(0xff)]['ln'][_0x244d0a(0x13a)]={}),this[_0x244d0a(0xff)]['ln']['startArrow'][_0x244d0a(0x15b)]=_0x12d178,this;}['setEndArrowType'](_0x8429b5){const _0x5f5dae=_0x298834;var _0xedb090,_0x138684;return(_0xedb090=this['shapeData'])!=null&&_0xedb090['ln']||(this['shapeData']['ln']={}),!((_0x138684=this[_0x5f5dae(0xff)])==null||(_0x138684=_0x138684['ln'])==null)&&_0x138684[_0x5f5dae(0x170)]||(this[_0x5f5dae(0xff)]['ln']['endArrow']={}),this[_0x5f5dae(0xff)]['ln'][_0x5f5dae(0x170)][_0x5f5dae(0x15b)]=_0x8429b5,this;}[_0x298834(0x113)](_0x56eb39){const _0x339684=_0x298834;var _0x4c1731,_0x1d71d1;return(_0x4c1731=this['shapeData'])!=null&&_0x4c1731['ln']||(this[_0x339684(0xff)]['ln']={}),!((_0x1d71d1=this[_0x339684(0xff)])==null||(_0x1d71d1=_0x1d71d1['ln'])==null)&&_0x1d71d1[_0x339684(0x13a)]||(this[_0x339684(0xff)]['ln'][_0x339684(0x13a)]={}),this[_0x339684(0xff)]['ln']['startArrow'][_0x339684(0x163)]=_0x56eb39,this;}[_0x298834(0x154)](_0x183411){const _0x51aba6=_0x298834;var _0x70a0f9,_0xbf3284;return(_0x70a0f9=this[_0x51aba6(0xff)])!=null&&_0x70a0f9['ln']||(this[_0x51aba6(0xff)]['ln']={}),!((_0xbf3284=this[_0x51aba6(0xff)])==null||(_0xbf3284=_0xbf3284['ln'])==null)&&_0xbf3284['endArrow']||(this[_0x51aba6(0xff)]['ln']['endArrow']={}),this[_0x51aba6(0xff)]['ln'][_0x51aba6(0x170)][_0x51aba6(0x163)]=_0x183411,this;}[_0x298834(0x112)](){const _0x4e32e6=_0x298834;return super[_0x4e32e6(0x112)]();}[_0x298834(0x14c)](){const _0x5dbfd7=_0x298834;var _0x40a6b8;return((_0x40a6b8=this[_0x5dbfd7(0xff)])==null||(_0x40a6b8=_0x40a6b8[_0x5dbfd7(0x181)])==null?void 0x0:_0x40a6b8['to'])||null;}[_0x298834(0x130)](){const _0x5b4b3d=_0x298834;var _0x338b9b;return((_0x338b9b=this[_0x5b4b3d(0xff)])==null||(_0x338b9b=_0x338b9b[_0x5b4b3d(0x181)])==null?void 0x0:_0x338b9b[_0x5b4b3d(0x138)])||null;}};function _0x280f9e(_0x4a86bc,_0x38590a,_0x27bebe,_0x35607b,_0x301296,_0x83336b){const _0x45227e=_0x298834;let _0x383573=_0x301296[_0x45227e(0x119)](_0x4a86bc,_0x38590a,_0x27bebe);if(!_0x383573)return null;let _0xc4816f=_0x83336b[_0x45227e(0x15d)]({'unitId':_0x4a86bc,'subUnitId':_0x38590a,'drawingId':_0x27bebe});if(!(_0xc4816f!=null&&_0xc4816f[_0x45227e(0x156)]))return null;let {left:_0x328c6e=0x0,top:_0x46a5f1=0x0,width:_0x2985b9=0x0,height:_0x263716=0x0,flipX:_0x29982f=!0x1,flipY:_0x3d8852=!0x1,angle:_0x645ca9}=_0xc4816f[_0x45227e(0x156)];_0x383573['updateContext']({'width':_0x2985b9,'height':_0x263716});let _0x4766db=_0x383573[_0x45227e(0x186)]()[_0x45227e(0x155)](_0x1c89b0=>_0x1c89b0[_0x45227e(0xf6)]===_0x35607b);if(!_0x4766db)return null;let _0x29b77b=_0x29982f?_0x2985b9-_0x4766db['x']:_0x4766db['x'],_0x4e418c=_0x3d8852?_0x263716-_0x4766db['y']:_0x4766db['y'];if(_0x645ca9&&_0x645ca9!==0x0){let _0x16c50f=_0x645ca9*Math['PI']/0xb4,_0x23843b=Math[_0x45227e(0x13f)](_0x16c50f),_0x2d7128=Math[_0x45227e(0x14e)](_0x16c50f),_0x335d55=_0x2985b9/0x2,_0x1964d3=_0x263716/0x2,_0x250938=_0x29b77b-_0x335d55,_0x3c9933=_0x4e418c-_0x1964d3;_0x29b77b=_0x335d55+_0x250938*_0x23843b-_0x3c9933*_0x2d7128,_0x4e418c=_0x1964d3+_0x250938*_0x2d7128+_0x3c9933*_0x23843b;}_0x29b77b+=_0x328c6e,_0x4e418c+=_0x46a5f1;let _0x1d2d90=_0x4766db[_0x45227e(0x142)]/0xea60;_0x29982f&&(_0x1d2d90=0xb4-_0x1d2d90),_0x3d8852&&(_0x1d2d90=-_0x1d2d90),_0x1d2d90+=_0x645ca9||0x0,_0x1d2d90=(_0x1d2d90%0x168+0x168)%0x168;let _0x456469=(0x0,_0x30d003['getBasicShapeRotateBound'])({'left':_0x328c6e,'top':_0x46a5f1,'width':_0x2985b9,'height':_0x263716},_0x645ca9||0x0);return{'point':{'x':_0x29b77b,'y':_0x4e418c},'angle':_0x1d2d90,'bounds':_0x456469};}function _0x5e3e43(_0x574e79,_0x3dc7e2){const _0x317429=_0x298834;let _0x442fc0=_0x3dc7e2['x']-_0x574e79['x'],_0x42c3ca=_0x3dc7e2['y']-_0x574e79['y'];return Math[_0x317429(0x109)](_0x442fc0)>=Math[_0x317429(0x109)](_0x42c3ca)?_0x442fc0>=0x0?0xb4:0x0:_0x42c3ca>=0x0?0x10e:0x5a;}function _0x4b6fa8(_0x475297,_0x5d070e,_0x2b1478,_0x1e59ac,_0x31ffb7,_0x554520,_0x5cf67f){const _0xba726=_0x298834;let _0xd7f20d=_0x554520['getShapeModel'](_0x475297,_0x5d070e,_0x2b1478);if(!_0xd7f20d)return null;let _0x5799ef=_0x5cf67f['getDrawingByParam']({'unitId':_0x475297,'subUnitId':_0x5d070e,'drawingId':_0x2b1478});if(!(_0x5799ef!=null&&_0x5799ef[_0xba726(0x156)]))return null;let {left:_0x16430e=0x0,top:_0x32f88e=0x0,width:_0xcbcc5f=0x0,height:_0x2b2ae2=0x0,flipX:_0x3bef30=!0x1,flipY:_0x320717=!0x1}=_0x5799ef[_0xba726(0x156)];_0xd7f20d[_0xba726(0x198)]({'width':_0xcbcc5f,'height':_0x2b2ae2});let _0x11e55d=_0xd7f20d[_0xba726(0x178)]();if(_0x11e55d['length']<0x2)return null;let _0x1b3fda=_0x1e59ac?_0x11e55d[0x0]:_0x11e55d[_0x11e55d['length']-0x1],_0x15afdf=new _0x30d003[(_0xba726(0x11a))]({'left':_0x16430e,'top':_0x32f88e,'width':_0xcbcc5f,'height':_0x2b2ae2,'flipX':_0x3bef30,'flipY':_0x320717})[_0xba726(0x184)](_0x1b3fda);return{'point':_0x15afdf,'angle':_0x5e3e43(_0x31ffb7['point'],_0x15afdf),'bounds':{'left':_0x15afdf['x'],'top':_0x15afdf['y'],'width':0x0,'height':0x0}};}var _0xccd761=class extends _0x1a5cd0['FWorksheet']{async[_0x298834(0x12e)](_0x285d9b){const _0x1400a7=_0x298834;let {unitId:_0x36066d,subUnitId:_0x26ab3b,shapeId:_0x3863e1,shapeType:_0x587b5b,shapeData:_0x8bf21e,x:_0x141729,y:_0x1ee5d3,width:_0x557c55,height:_0x18aa19}=_0x285d9b;return this['_commandService']['executeCommand'](_0x1706a2[_0x1400a7(0x159)]['id'],{'unitId':_0x36066d,'subUnitId':_0x26ab3b,'shapeId':_0x3863e1,'shapeType':_0x587b5b,'shapeData':_0x8bf21e,'position':{'x':_0x141729,'y':_0x1ee5d3},'width':_0x557c55,'height':_0x18aa19});}async['updateShape'](_0x3d438b){let {unitId:_0x58e12e,subUnitId:_0x1e6c9f,shapeId:_0x4f4dd3,shapeType:_0x544b6a,shapeData:_0x39b7ec,x:_0x3aa1e6,y:_0x1a01ad,width:_0x156022,height:_0x1e516f}=_0x3d438b;return this['_commandService']['executeCommand'](_0x1706a2['SetShapeDrawingDataCommand']['id'],{'unitId':_0x58e12e,'subUnitId':_0x1e6c9f,'shapeId':_0x4f4dd3,'shapeType':_0x544b6a,'shapeData':_0x39b7ec,'position':{'x':_0x3aa1e6,'y':_0x1a01ad},'width':_0x156022,'height':_0x1e516f});}['newShape'](_0x3c49d3){const _0x304ab2=_0x298834;let _0x4a0894=this[_0x304ab2(0x136)]()['getUnitId'](),_0x191240=this[_0x304ab2(0x182)]();if(_0x3c49d3){let _0x2f7433=new _0x45d2be(_0x4a0894,_0x191240,_0x3c49d3[_0x304ab2(0x172)],this[_0x304ab2(0x18f)]);return this[_0x304ab2(0x147)](_0x2f7433,_0x4a0894,_0x191240,_0x3c49d3[_0x304ab2(0x172)]),_0x2f7433;}return new _0x45d2be(_0x4a0894,_0x191240,(0x0,_0x2991ea[_0x304ab2(0x19b)])(),this[_0x304ab2(0x18f)]);}[_0x298834(0xfa)](_0x582923){const _0x244bde=_0x298834;let _0x2cf208=this[_0x244bde(0x136)]()[_0x244bde(0x161)](),_0x3913f4=this[_0x244bde(0x182)]();if(_0x582923){let _0xfc82b9=new _0x54b05e(_0x2cf208,_0x3913f4,_0x582923[_0x244bde(0x172)],this[_0x244bde(0x18f)]);return this[_0x244bde(0x147)](_0xfc82b9,_0x2cf208,_0x3913f4,_0x582923['drawId']),_0xfc82b9;}return new _0x54b05e(_0x2cf208,_0x3913f4,(0x0,_0x2991ea['generateRandomId'])(),this[_0x244bde(0x18f)]);}[_0x298834(0x122)](){const _0x1ec1f4=_0x298834;let _0x27130e=this['_injector'][_0x1ec1f4(0x12d)](_0x1a1a5f[_0x1ec1f4(0x162)]),_0xe4164b=this['getWorkbook']()[_0x1ec1f4(0x161)](),_0x15a5f0=this['getSheetId'](),_0xafd825=_0x27130e[_0x1ec1f4(0x102)](_0xe4164b,_0x15a5f0);if(!_0xafd825)return[];let _0xc970db=[];for(let [_0x5c863d,_0x3adf18]of Object[_0x1ec1f4(0x146)](_0xafd825))if(_0x3adf18&&_0x3adf18[_0x1ec1f4(0x152)]===_0x2991ea[_0x1ec1f4(0x15c)][_0x1ec1f4(0x174)]){let _0x5317cc=new _0x45d2be(_0xe4164b,_0x15a5f0,_0x5c863d,this[_0x1ec1f4(0x18f)]);this[_0x1ec1f4(0x147)](_0x5317cc,_0xe4164b,_0x15a5f0,_0x5c863d),_0xc970db['push'](_0x5317cc);}return _0xc970db;}[_0x298834(0x19d)](_0x32b2db){const _0x2be3e3=_0x298834;let {unitId:_0x7abbd4,subUnitId:_0x2c8dde,drawId:_0x2d2b5a}=_0x32b2db;return this[_0x2be3e3(0x192)]['executeCommand'](_0x1a1a5f[_0x2be3e3(0x16e)]['id'],{'unitId':_0x7abbd4,'drawings':[{'unitId':_0x7abbd4,'subUnitId':_0x2c8dde,'drawingId':_0x2d2b5a,'drawingType':_0x2991ea['DrawingTypeEnum'][_0x2be3e3(0x174)]}]});}async[_0x298834(0x10e)](_0x29919d){const _0x1939a3=_0x298834;let {connector:_0x367837,startTarget:_0x4f2457,endTarget:_0x47932f}=_0x29919d;if(!_0x4f2457&&!_0x47932f)return!0x1;let _0x56c385=this[_0x1939a3(0x136)]()['getUnitId'](),_0x4d4099=this[_0x1939a3(0x182)](),_0x2cff1a=this[_0x1939a3(0x18f)]['get'](_0x1706a2[_0x1939a3(0x14f)]),_0x4ca241=this[_0x1939a3(0x18f)]['get'](_0x344e73[_0x1939a3(0x103)]),_0x2e0740=_0x2cff1a['getShapeModel'](_0x56c385,_0x4d4099,_0x367837[_0x1939a3(0x172)]);if(!_0x2e0740)return!0x1;let _0x12a18b=_0x2e0740[_0x1939a3(0x10c)](),_0x377f00=_0x2e0740[_0x1939a3(0x190)](),_0x2f183d={};for(let _0x5dd461 of _0x2e0740[_0x1939a3(0x171)]()){let _0x4a8199=_0x2e0740[_0x1939a3(0x106)](_0x5dd461);_0x4a8199!==void 0x0&&(_0x2f183d[_0x5dd461]=_0x4a8199);}let {startInfo:_0xeebe73,endInfo:_0x243671}=this[_0x1939a3(0xf7)](_0x56c385,_0x4d4099,_0x367837,_0x2e0740,_0x4f2457,_0x47932f,_0x2cff1a,_0x4ca241,_0x377f00);if(!_0xeebe73||!_0x243671)return!0x1;let _0x4a7bed=(0x0,_0x30d003[_0x1939a3(0x194)])((0x0,_0x30d003[_0x1939a3(0x12a)])(_0xeebe73,_0x243671,_0x12a18b),_0x12a18b),_0x1d73f3={};return _0x4f2457?_0x1d73f3[_0x1939a3(0x138)]={'shapeId':_0x4f2457['shape'][_0x1939a3(0x172)],'cxnIndex':_0x4f2457[_0x1939a3(0x175)]}:_0x377f00!=null&&_0x377f00[_0x1939a3(0x138)]&&(_0x1d73f3[_0x1939a3(0x138)]=_0x377f00[_0x1939a3(0x138)]),_0x47932f?_0x1d73f3['to']={'shapeId':_0x47932f[_0x1939a3(0x177)][_0x1939a3(0x172)],'cxnIndex':_0x47932f[_0x1939a3(0x175)]}:_0x377f00!=null&&_0x377f00['to']&&(_0x1d73f3['to']=_0x377f00['to']),this[_0x1939a3(0x192)]['executeCommand'](_0x1706a2['UpdateConnectorRelationCommand']['id'],{'unitId':_0x56c385,'subUnitId':_0x4d4099,'connectorShapeId':_0x367837[_0x1939a3(0x172)],'width':_0x4a7bed[_0x1939a3(0x145)][_0x1939a3(0x127)],'height':_0x4a7bed[_0x1939a3(0x145)]['height'],'left':_0x4a7bed['worldRect'][_0x1939a3(0x197)],'top':_0x4a7bed[_0x1939a3(0x145)][_0x1939a3(0x15f)],'flipX':_0x4a7bed[_0x1939a3(0x145)]['flipX']||!0x1,'flipY':_0x4a7bed[_0x1939a3(0x145)][_0x1939a3(0xfd)]||!0x1,'oldAdjustValues':_0x2f183d,'newAdjustValues':_0x4a7bed[_0x1939a3(0x105)],'newLineType':_0x4a7bed[_0x1939a3(0x167)],'oldLineType':_0x12a18b,'rotation':_0x4a7bed[_0x1939a3(0x120)],'oldRelation':_0x377f00,'newRelation':_0x1d73f3});}[_0x298834(0x147)](_0x1f1b72,_0x5ded83,_0x1cb31c,_0x7261e7){const _0x2cbde6=_0x298834;let _0x3d4ce3=this[_0x2cbde6(0x18f)][_0x2cbde6(0x12d)](_0x344e73['IDrawingManagerService'])[_0x2cbde6(0x15d)]({'unitId':_0x5ded83,'subUnitId':_0x1cb31c,'drawingId':_0x7261e7});if(_0x3d4ce3!=null&&_0x3d4ce3[_0x2cbde6(0x156)]){var _0x4b6192,_0x37e247,_0x39872d,_0x52210e;_0x1f1b72['x']=(_0x4b6192=_0x3d4ce3['transform'][_0x2cbde6(0x197)])==null?0x0:_0x4b6192,_0x1f1b72['y']=(_0x37e247=_0x3d4ce3[_0x2cbde6(0x156)][_0x2cbde6(0x15f)])==null?0x0:_0x37e247,_0x1f1b72[_0x2cbde6(0x127)]=(_0x39872d=_0x3d4ce3[_0x2cbde6(0x156)][_0x2cbde6(0x127)])==null?_0x1f1b72[_0x2cbde6(0x127)]:_0x39872d,_0x1f1b72[_0x2cbde6(0x150)]=(_0x52210e=_0x3d4ce3[_0x2cbde6(0x156)][_0x2cbde6(0x150)])==null?_0x1f1b72[_0x2cbde6(0x150)]:_0x52210e;}let _0x2bb6a1=this[_0x2cbde6(0x18f)][_0x2cbde6(0x12d)](_0x1706a2[_0x2cbde6(0x14f)])[_0x2cbde6(0x119)](_0x5ded83,_0x1cb31c,_0x7261e7);if(_0x2bb6a1){_0x1f1b72['shapeType']=_0x2bb6a1[_0x2cbde6(0x10c)]();let _0x4503c1=_0x2bb6a1[_0x2cbde6(0x12f)]();_0x4503c1&&(_0x1f1b72['shapeData']=JSON[_0x2cbde6(0x135)](JSON[_0x2cbde6(0x15a)](_0x4503c1)));}}[_0x298834(0xf7)](_0x37386a,_0x3b1466,_0x39bd91,_0x504e71,_0x48dfa4,_0x370390,_0x4a2b90,_0x49033a,_0x40fe99){const _0x50843b=_0x298834;let _0x619f9b=null,_0x40bff1=null;return _0x48dfa4&&(_0x619f9b=_0x280f9e(_0x37386a,_0x3b1466,_0x48dfa4[_0x50843b(0x177)][_0x50843b(0x172)],_0x48dfa4[_0x50843b(0x175)],_0x4a2b90,_0x49033a)),_0x370390&&(_0x40bff1=_0x280f9e(_0x37386a,_0x3b1466,_0x370390[_0x50843b(0x177)]['drawId'],_0x370390[_0x50843b(0x175)],_0x4a2b90,_0x49033a)),_0x619f9b||(_0x619f9b=this[_0x50843b(0x115)](_0x37386a,_0x3b1466,_0x39bd91[_0x50843b(0x172)],!0x0,_0x40bff1,_0x40fe99==null?void 0x0:_0x40fe99[_0x50843b(0x138)],_0x4a2b90,_0x49033a)),_0x40bff1||(_0x40bff1=this[_0x50843b(0x115)](_0x37386a,_0x3b1466,_0x39bd91[_0x50843b(0x172)],!0x1,_0x619f9b,_0x40fe99==null?void 0x0:_0x40fe99['to'],_0x4a2b90,_0x49033a)),{'startInfo':_0x619f9b,'endInfo':_0x40bff1};}[_0x298834(0x115)](_0x2cbec0,_0x4b45af,_0x29140e,_0x203dd2,_0x55d338,_0x45b4a6,_0x37839f,_0x5c7798){const _0x28a6e1=_0x298834;if(_0x45b4a6){let _0x20310f=_0x280f9e(_0x2cbec0,_0x4b45af,_0x45b4a6['shapeId'],_0x45b4a6[_0x28a6e1(0x129)],_0x37839f,_0x5c7798);if(_0x20310f)return _0x20310f;}return _0x55d338?_0x4b6fa8(_0x2cbec0,_0x4b45af,_0x29140e,_0x203dd2,_0x55d338,_0x37839f,_0x5c7798):null;}};_0x1a5cd0[_0x298834(0x118)]['extend'](_0xccd761),_0x3f4ebe[_0x298834(0x18d)]=_0x54b05e,_0x3f4ebe[_0x298834(0x117)]=_0x45d2be;}));
|
|
1
|
+
function _0x3dff(_0x1a2952,_0x4b6b1a){_0x1a2952=_0x1a2952-0xe9;const _0x2f151c=_0x2f15();let _0x3dff04=_0x2f151c[_0x1a2952];return _0x3dff04;}(function(_0x233e4e,_0x248006){const _0x91e7a4=_0x3dff,_0x2ffa77=_0x233e4e();while(!![]){try{const _0x11adaa=-parseInt(_0x91e7a4(0x110))/0x1+parseInt(_0x91e7a4(0xf3))/0x2+parseInt(_0x91e7a4(0x105))/0x3+-parseInt(_0x91e7a4(0x11b))/0x4+-parseInt(_0x91e7a4(0x100))/0x5+-parseInt(_0x91e7a4(0xfe))/0x6*(parseInt(_0x91e7a4(0x11f))/0x7)+parseInt(_0x91e7a4(0x115))/0x8;if(_0x11adaa===_0x248006)break;else _0x2ffa77['push'](_0x2ffa77['shift']());}catch(_0x3fe57e){_0x2ffa77['push'](_0x2ffa77['shift']());}}}(_0x2f15,0x3a793),function(_0x3b0b11,_0x5d528f){const _0x2d1e7c=_0x3dff;typeof exports==_0x2d1e7c(0x11a)&&typeof module<'u'?_0x5d528f(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/engine-shape/facade'),require('@univerjs/core'),require('@univerjs/sheets/facade'),require('@univerjs/sheets')):typeof define=='function'&&define['amd']?define([_0x2d1e7c(0x113),'@univerjs-pro/engine-shape',_0x2d1e7c(0x10a),_0x2d1e7c(0xf2),_0x2d1e7c(0x10d),_0x2d1e7c(0xf8)],_0x5d528f):(_0x3b0b11=typeof globalThis<'u'?globalThis:_0x3b0b11||self,_0x5d528f(_0x3b0b11[_0x2d1e7c(0x10e)]={},_0x3b0b11[_0x2d1e7c(0xff)],_0x3b0b11[_0x2d1e7c(0xf4)],_0x3b0b11[_0x2d1e7c(0x111)],_0x3b0b11[_0x2d1e7c(0xfd)],_0x3b0b11['UniverSheets']));}(this,function(_0x236f4e,_0xa35d78,_0x27de45,_0x4b9950,_0x16dae2,_0x15e2c3){const _0x23777d=_0x3dff;Object[_0x23777d(0x10b)](_0x236f4e,Symbol[_0x23777d(0x109)],{'value':_0x23777d(0x118)});var _0x185446=class extends _0x27de45[_0x23777d(0xef)]{[_0x23777d(0x102)](_0x36f7aa,_0xe8d054,_0x400415,_0x4e7db4){const _0x2c4f50=_0x23777d;let {unitId:_0x486f2a,subUnitId:_0x22f7e5}=this[_0x2c4f50(0x112)],_0x2dd780=this[_0x2c4f50(0x10c)]['get'](_0x15e2c3['SheetSkeletonService'])['ensureSkeleton'](_0x486f2a,_0x22f7e5);if(!_0x2dd780)return console[_0x2c4f50(0x119)](_0x2c4f50(0xea)+_0x486f2a+_0x2c4f50(0xf7)+_0x22f7e5+_0x2c4f50(0x104)),this;let {transform:_0xa2f042}=(0x0,_0x15e2c3[_0x2c4f50(0x120)])(_0x486f2a,_0x22f7e5,{'row':_0x36f7aa,'column':_0xe8d054,'rowOffset':_0x400415,'columnOffset':_0x4e7db4},0x1,0x1,_0x2dd780);return this[_0x2c4f50(0x117)](_0xa2f042[_0x2c4f50(0xf5)],_0xa2f042[_0x2c4f50(0xf6)]);}},_0x2b670a=class extends _0x16dae2['FWorksheet']{['insertShape'](_0x25a7f5){const _0x3e1378=_0x23777d;let _0x55f559=this[_0x3e1378(0x106)]();if(!_0x55f559)return null;try{let _0x962571=_0x55f559[_0x3e1378(0xf0)](this[_0x3e1378(0xee)](),_0x25a7f5);return _0x962571?this[_0x3e1378(0x121)](_0x962571):(console['warn'](_0x3e1378(0x11c)),null);}catch(_0x152da8){return console[_0x3e1378(0x119)](_0x3e1378(0x11c),_0x152da8),null;}}[_0x23777d(0x108)](_0x36e274){const _0x53c651=_0x23777d;let _0x47278f=this['_getShapeAdapter']();if(!_0x47278f)return null;try{let _0x29cef9={...this[_0x53c651(0xee)](),'shapeId':_0x36e274},_0x2387cf=_0x47278f[_0x53c651(0x108)](_0x29cef9);return _0x2387cf?this[_0x53c651(0x121)](_0x2387cf):(console[_0x53c651(0x119)](_0x53c651(0xec)+_0x36e274+_0x53c651(0x104)),null);}catch(_0x59616b){return console[_0x53c651(0x119)](_0x53c651(0x107)+_0x36e274+'\x22.',_0x59616b),null;}}[_0x23777d(0x11d)](){const _0x2cd83f=_0x23777d;let _0x1f2fd9=this[_0x2cd83f(0x106)]();if(!_0x1f2fd9)return[];try{return _0x1f2fd9[_0x2cd83f(0x122)](this[_0x2cd83f(0xee)]())[_0x2cd83f(0xeb)](_0x6be604=>this[_0x2cd83f(0x121)](_0x6be604));}catch(_0x136b24){return console[_0x2cd83f(0x119)](_0x2cd83f(0x103),_0x136b24),[];}}[_0x23777d(0xee)](){const _0x14f152=_0x23777d;return{'hostType':_0x4b9950[_0x14f152(0xfa)][_0x14f152(0x11e)],'unitId':this['getWorkbook']()[_0x14f152(0xfc)](),'subUnitId':this[_0x14f152(0x116)]()};}[_0x23777d(0x106)](){const _0x152783=_0x23777d;return this[_0x152783(0x10c)][_0x152783(0xf1)](_0xa35d78[_0x152783(0x101)])[_0x152783(0xf1)](_0x4b9950['UniverInstanceType'][_0x152783(0x11e)]);}[_0x23777d(0x121)](_0x23d6ab){const _0x1fb07d=_0x23777d;let {unitId:_0x9230a2,subUnitId:_0x5ad54a,shapeId:_0x374ea6}=_0x23d6ab,_0x217b1a={'unitId':_0x9230a2,'subUnitId':_0x5ad54a,'shapeId':_0x374ea6,'hostType':_0x4b9950[_0x1fb07d(0xfa)]['UNIVER_SHEET']};return(0x0,_0xa35d78['isConnectorShape'])(_0x23d6ab[_0x1fb07d(0x114)])?this[_0x1fb07d(0x10c)][_0x1fb07d(0xfb)](_0x27de45[_0x1fb07d(0xed)],_0x217b1a,this[_0x1fb07d(0x10c)]):this[_0x1fb07d(0x10c)][_0x1fb07d(0xfb)](_0x185446,_0x217b1a,this['_injector']);}};_0x16dae2[_0x23777d(0x10f)][_0x23777d(0xf9)](_0x2b670a),_0x236f4e[_0x23777d(0xe9)]=_0x185446;}));function _0x2f15(){const _0x19785d=['FWorksheet','307456YpLywI','UniverCore','_shapeRef','exports','shapeType','5445936xCReMX','getSheetId','setAbsolutePosition','Module','warn','object','237876sGSDlu','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20insert\x20Shape.','getShapes','UNIVER_SHEET','126cOqtFc','convertPositionCellToSheetOverGrid','_createShapeHandle','listShapes','FSheetShape','[Sheet\x20Shape\x20Facade]:\x20Skeleton\x20for\x20unit\x20\x22','map','[Sheet\x20Shape\x20Facade]:\x20Shape\x20\x22','FConnectorShape','_getShapeScope','FShape','createShape','get','@univerjs/core','168506pHiEPk','UniverProEngineShapeFacade','left','top','\x22\x20and\x20sheet\x20\x22','@univerjs/sheets','extend','UniverInstanceType','createInstance','getUnitId','UniverSheetsFacade','101820JfZFzZ','UniverProEngineShape','984945TTDNJA','IShapeHostAdapterRegistry','setPosition','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20list\x20Shapes.','\x22\x20was\x20not\x20found.','1031658cVBCKm','_getShapeAdapter','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20read\x20Shape\x20\x22','getShape','toStringTag','@univerjs-pro/engine-shape/facade','defineProperty','_injector','@univerjs/sheets/facade','UniverProSheetsShapeFacade'];_0x2f15=function(){return _0x19785d;};return _0x2f15();}
|