@univerjs-pro/sheets-shape 1.0.0-alpha.3 → 1.0.0-alpha.5

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.
@@ -1,238 +1,73 @@
1
- import type { IShapeBuilderInfo } from './f-shape';
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 { FConnectorShape } from './f-connector-shape';
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
- * Adds a new shape to this sheet.
28
- * @param {IShapeBuilderInfo} shapeBuilderInfo - The shape builder info returned by `FShape.build()`.
29
- * @returns {Promise<boolean>} - Whether the shape was inserted successfully.
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
- * if (!fWorksheet) return;
131
- *
132
- * // Create a rectangle shape.
133
- * const shapeInfo = fWorksheet.newShape()
134
- * .setShapeType(univerAPI.Enum.ShapeTypeEnum.Rect)
135
- * .setPosition(1, 1, 0, 0)
136
- * .build();
137
- * await fWorksheet.insertShape(shapeInfo);
138
- *
139
- * // Get all shapes on the active sheet.
140
- * const shapes = fWorksheet.getShapes();
141
- *
142
- * // Remove the first shape after 3 seconds.
143
- * setTimeout(async () => {
144
- * await fWorksheet.removeShape(shapes[0]);
145
- * console.log(fWorksheet.getShapes());
146
- * }, 3000);
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
- removeShape(shape: FShape): Promise<boolean>;
38
+ insertShape(input: IShapeCreateInput): FSheetShape | FConnectorShape | null;
150
39
  /**
151
- * Connects a connector (line) shape's endpoints to basic shapes' connection sites.
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
- * if (!fWorksheet) return;
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
- connectShapes(params: IConnectShapesParams): Promise<boolean>;
49
+ getShape(shapeId: string): FSheetShape | FConnectorShape | null;
183
50
  /**
184
- * Returns a builder to create a new connector (line) shape for this sheet. The builder will not automatically create the connector.
185
- * You must call `build()` on the returned builder to get the shape info, then insert it via `insertShape(shapeInfo)`.
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
- * if (!fWorksheet) return;
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
- newConnector(existingShape?: FShape): FConnectorShape;
61
+ getShapes(): Array<FSheetShape | FConnectorShape>;
211
62
  }
212
63
  export declare class FWorksheetShapeMixin extends FWorksheet implements IFWorksheetShapeMixin {
213
- insertShape(shapeBuilderInfo: IShapeBuilderInfo): Promise<boolean>;
214
- updateShape(shapeBuilderInfo: IShapeBuilderInfo): Promise<boolean>;
215
- newShape(existingShape?: FShape): FShape;
216
- newConnector(existingShape?: FShape): FConnectorShape;
217
- getShapes(): FShape[];
218
- removeShape(shape: FShape): Promise<boolean>;
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 { FConnectorShape } from './f-connector-shape';
5
- export { FShape } from './f-shape';
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';
@@ -1,14 +1,13 @@
1
1
  import type { IUniverSheetsShapeConfig } from './config/config';
2
- import { ICommandService, IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
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, _commandService: ICommandService, _configService: IConfigService);
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 _0x1027(_0x2dc7f1,_0x4d8fa8){_0x2dc7f1=_0x2dc7f1-0xad;const _0x5b7141=_0x5b71();let _0x10270f=_0x5b7141[_0x2dc7f1];return _0x10270f;}(function(_0x4a3d9e,_0x367b18){const _0x56406f=_0x1027,_0x3b3f9f=_0x4a3d9e();while(!![]){try{const _0x2d1db8=-parseInt(_0x56406f(0xea))/0x1*(-parseInt(_0x56406f(0xe9))/0x2)+parseInt(_0x56406f(0xfb))/0x3+-parseInt(_0x56406f(0xb6))/0x4*(parseInt(_0x56406f(0xc3))/0x5)+-parseInt(_0x56406f(0x142))/0x6*(-parseInt(_0x56406f(0x132))/0x7)+parseInt(_0x56406f(0x113))/0x8*(-parseInt(_0x56406f(0xb8))/0x9)+parseInt(_0x56406f(0xfe))/0xa+-parseInt(_0x56406f(0x107))/0xb;if(_0x2d1db8===_0x367b18)break;else _0x3b3f9f['push'](_0x3b3f9f['shift']());}catch(_0x1b6665){_0x3b3f9f['push'](_0x3b3f9f['shift']());}}}(_0x5b71,0xd0da6),function(_0xda5adb,_0x5ef639){const _0x556793=_0x1027;typeof exports==_0x556793(0xef)&&typeof module<'u'?_0x5ef639(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==_0x556793(0xd4)&&define[_0x556793(0xc6)]?define(['exports',_0x556793(0xbb),_0x556793(0x11a),_0x556793(0xc2),'@univerjs/core',_0x556793(0x14e),_0x556793(0xc9),'@univerjs/sheets-drawing',_0x556793(0xd6)],_0x5ef639):(_0xda5adb=typeof globalThis<'u'?globalThis:_0xda5adb||self,_0x5ef639(_0xda5adb[_0x556793(0xd5)]={},_0xda5adb[_0x556793(0xb3)],_0xda5adb[_0x556793(0xbd)],_0xda5adb['UniverProSheetsShape'],_0xda5adb['UniverCore'],_0xda5adb[_0x556793(0x124)],_0xda5adb[_0x556793(0x145)],_0xda5adb['UniverSheetsDrawing'],_0xda5adb[_0x556793(0xb1)]));}(this,function(_0x5c5861,_0x54c147,_0xd9f9e0,_0x375338,_0x24ae8f,_0x440193,_0x2597b1,_0x57bb3a,_0xad8875){const _0x52ed0f=_0x1027;Object['defineProperty'](_0x5c5861,Symbol['toStringTag'],{'value':_0x52ed0f(0xdf)});var _0xf9d592=class extends _0xd9f9e0[_0x52ed0f(0xeb)]{get['ShapeTypeEnum'](){const _0x1312b7=_0x52ed0f;return _0x54c147[_0x1312b7(0x11c)];}get[_0x52ed0f(0xe2)](){const _0x474e54=_0x52ed0f;return _0x54c147[_0x474e54(0xe2)];}get['ShapeGradientTypeEnum'](){const _0x5eee5e=_0x52ed0f;return _0x54c147[_0x5eee5e(0x146)];}get['ShapeLineTypeEnum'](){const _0x2866d3=_0x52ed0f;return _0x54c147[_0x2866d3(0xf2)];}get[_0x52ed0f(0xf3)](){const _0x8690e6=_0x52ed0f;return _0x54c147[_0x8690e6(0xf3)];}get['ShapeLineCapEnum'](){return _0x54c147['ShapeLineCapEnum'];}get[_0x52ed0f(0x10b)](){const _0x533114=_0x52ed0f;return _0x54c147[_0x533114(0x10b)];}get[_0x52ed0f(0x136)](){const _0x57e546=_0x52ed0f;return _0x54c147[_0x57e546(0x136)];}get['ShapeArrowSizeEnum'](){return _0x54c147['ShapeArrowSizeEnum'];}};_0xd9f9e0[_0x52ed0f(0xeb)][_0x52ed0f(0x12d)](_0xf9d592);function _0x4e7bd6(_0x20f485){'@babel/helpers - typeof';const _0x2efa50=_0x52ed0f;return _0x4e7bd6=typeof Symbol==_0x2efa50(0xd4)&&typeof Symbol[_0x2efa50(0x143)]==_0x2efa50(0x134)?function(_0x3805bc){return typeof _0x3805bc;}:function(_0x429edb){const _0x336a81=_0x2efa50;return _0x429edb&&typeof Symbol==_0x336a81(0xd4)&&_0x429edb[_0x336a81(0x101)]===Symbol&&_0x429edb!==Symbol[_0x336a81(0x104)]?_0x336a81(0x134):typeof _0x429edb;},_0x4e7bd6(_0x20f485);}function _0x92ee77(_0x2d5e9b,_0x1b71d9){const _0x581213=_0x52ed0f;if(_0x4e7bd6(_0x2d5e9b)!=_0x581213(0xef)||!_0x2d5e9b)return _0x2d5e9b;var _0x4cd0fe=_0x2d5e9b[Symbol['toPrimitive']];if(_0x4cd0fe!==void 0x0){var _0x1e260b=_0x4cd0fe[_0x581213(0xda)](_0x2d5e9b,_0x1b71d9||_0x581213(0xf8));if(_0x4e7bd6(_0x1e260b)!=_0x581213(0xef))return _0x1e260b;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1b71d9==='string'?String:Number)(_0x2d5e9b);}function _0x301c6b(_0x4d4ad8){const _0x16a4a5=_0x52ed0f;var _0x33d870=_0x92ee77(_0x4d4ad8,_0x16a4a5(0x13f));return _0x4e7bd6(_0x33d870)==_0x16a4a5(0x134)?_0x33d870:_0x33d870+'';}function _0x494f4f(_0x162e6c,_0x995d13,_0x89383f){return(_0x995d13=_0x301c6b(_0x995d13))in _0x162e6c?Object['defineProperty'](_0x162e6c,_0x995d13,{'value':_0x89383f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x162e6c[_0x995d13]=_0x89383f,_0x162e6c;}var _0x559842=class{constructor(_0x574ef3,_0x12cfc0,_0x5c9f20,_0x5de6ef){const _0x3e1a76=_0x52ed0f;_0x494f4f(this,_0x3e1a76(0xc4),void 0x0),_0x494f4f(this,_0x3e1a76(0x120),void 0x0),_0x494f4f(this,_0x3e1a76(0x105),void 0x0),_0x494f4f(this,'x',0x0),_0x494f4f(this,'y',0x0),_0x494f4f(this,'width',_0x375338[_0x3e1a76(0x123)]),_0x494f4f(this,'height',_0x375338[_0x3e1a76(0x13e)]),_0x494f4f(this,_0x3e1a76(0xb2),void 0x0),_0x494f4f(this,_0x3e1a76(0x109),{}),_0x494f4f(this,_0x3e1a76(0x117),void 0x0),this['unitId']=_0x574ef3,this['subUnitId']=_0x12cfc0,this[_0x3e1a76(0x105)]=_0x5c9f20||(0x0,_0x24ae8f[_0x3e1a76(0x12a)])(),this[_0x3e1a76(0x117)]=_0x5de6ef;}['setPosition'](_0x503a45,_0x397def,_0x1be62a,_0x28b311){const _0x25b066=_0x52ed0f;let _0x217a1a=this['_injector'][_0x25b066(0xe0)](_0x2597b1[_0x25b066(0x10e)])[_0x25b066(0xcd)](this[_0x25b066(0xc4)],this[_0x25b066(0x120)]);if(!_0x217a1a)throw Error(_0x25b066(0x139)+this[_0x25b066(0xc4)]+_0x25b066(0x14d)+this[_0x25b066(0x120)]+_0x25b066(0x125));let {transform:_0x415aa6}=(0x0,_0x2597b1[_0x25b066(0x12f)])(this[_0x25b066(0xc4)],this[_0x25b066(0x120)],{'row':_0x503a45,'column':_0x397def,'rowOffset':_0x1be62a,'columnOffset':_0x28b311},0x1,0x1,_0x217a1a);return this['x']=_0x415aa6['left'],this['y']=_0x415aa6['top'],this;}[_0x52ed0f(0x103)](_0x5ea00b,_0x34e72f){return this['x']=_0x5ea00b,this['y']=_0x34e72f,this;}[_0x52ed0f(0xfa)](_0x32e078){const _0x564217=_0x52ed0f;return this[_0x564217(0xb2)]=_0x32e078,this;}[_0x52ed0f(0x128)](_0x2c4969){const _0xa46bdd=_0x52ed0f;return _0x2c4969[_0xa46bdd(0xb2)]&&this[_0xa46bdd(0xfa)](_0x2c4969['shapeType']),this[_0xa46bdd(0x109)]={..._0x2c4969},this;}[_0x52ed0f(0xdb)](_0x5e7449,_0x33fa99){const _0x3de7d1=_0x52ed0f;return this[_0x3de7d1(0x109)]['fill']||(this[_0x3de7d1(0x109)][_0x3de7d1(0x14b)]={}),this[_0x3de7d1(0x109)][_0x3de7d1(0x14b)][_0x3de7d1(0xba)]=_0x54c147[_0x3de7d1(0xe2)][_0x3de7d1(0xdc)],_0x5e7449!==void 0x0&&(this[_0x3de7d1(0x109)][_0x3de7d1(0x14b)][_0x3de7d1(0xfd)]=_0x5e7449),_0x33fa99!==void 0x0&&(this[_0x3de7d1(0x109)]['fill'][_0x3de7d1(0x141)]=_0x33fa99),this;}['setShapeGradientFill'](_0x1103c0,_0x11b081,_0x396e50){const _0x13676b=_0x52ed0f;if(_0x11b081===void 0x0||_0x11b081[_0x13676b(0x110)]===0x0)throw Error(_0x13676b(0xd3));return this['shapeData'][_0x13676b(0x14b)]||(this[_0x13676b(0x109)][_0x13676b(0x14b)]={}),this['shapeData']['fill']['gradientStops']=_0x11b081,this[_0x13676b(0x109)][_0x13676b(0x14b)][_0x13676b(0xba)]=_0x54c147[_0x13676b(0xe2)][_0x13676b(0xfc)],this['shapeData'][_0x13676b(0x14b)][_0x13676b(0x116)]=_0x1103c0,_0x396e50!==void 0x0&&(this[_0x13676b(0x109)][_0x13676b(0x14b)]['gradientAngle']=_0x396e50),this;}['setNoneFill'](){const _0x4ad0c0=_0x52ed0f;return this[_0x4ad0c0(0x109)][_0x4ad0c0(0x14b)]={'fillType':_0x54c147[_0x4ad0c0(0xe2)][_0x4ad0c0(0x133)]},this;}[_0x52ed0f(0xde)](_0x5c1983){const _0xb3bba4=_0x52ed0f;return this[_0xb3bba4(0x109)][_0xb3bba4(0xb0)]||(this[_0xb3bba4(0x109)][_0xb3bba4(0xb0)]={}),this[_0xb3bba4(0x109)][_0xb3bba4(0xb0)][_0xb3bba4(0xfd)]=_0x5c1983,this;}['setStrokeWidth'](_0x55e0b6){const _0x45de39=_0x52ed0f;return this[_0x45de39(0x109)][_0x45de39(0xb0)]||(this[_0x45de39(0x109)][_0x45de39(0xb0)]={}),this[_0x45de39(0x109)][_0x45de39(0xb0)][_0x45de39(0x10f)]=_0x55e0b6,this;}[_0x52ed0f(0xc7)](_0x226d25){const _0x2af9c4=_0x52ed0f;return this[_0x2af9c4(0x109)][_0x2af9c4(0xb0)]||(this[_0x2af9c4(0x109)]['stroke']={}),this[_0x2af9c4(0x109)]['stroke'][_0x2af9c4(0x114)]=_0x226d25,this;}[_0x52ed0f(0x148)](_0x186e19){const _0x17b1a9=_0x52ed0f;return this[_0x17b1a9(0x109)][_0x17b1a9(0xb0)]||(this[_0x17b1a9(0x109)][_0x17b1a9(0xb0)]={}),this[_0x17b1a9(0x109)][_0x17b1a9(0xb0)]['lineJoinType']=_0x186e19,this;}['setStrokeLineCapType'](_0x183da5){const _0x43b2fc=_0x52ed0f;return this[_0x43b2fc(0x109)][_0x43b2fc(0xb0)]||(this[_0x43b2fc(0x109)][_0x43b2fc(0xb0)]={}),this[_0x43b2fc(0x109)][_0x43b2fc(0xb0)][_0x43b2fc(0x11e)]=_0x183da5,this;}['setStrokeOpacity'](_0xd43cc3){const _0x47c682=_0x52ed0f;return this[_0x47c682(0x109)][_0x47c682(0xb0)]||(this['shapeData']['stroke']={}),this[_0x47c682(0x109)]['stroke']['opacity']=_0xd43cc3,this;}[_0x52ed0f(0xd9)](_0x41bfd8){const _0x209cd6=_0x52ed0f;return this[_0x209cd6(0x109)]['stroke']||(this[_0x209cd6(0x109)][_0x209cd6(0xb0)]={}),this['shapeData'][_0x209cd6(0xb0)]['lineStrokeType']=_0x41bfd8,this;}[_0x52ed0f(0x12e)](_0x35e3ba){return this['width']=_0x35e3ba,this;}[_0x52ed0f(0xe6)](_0x4f78d2){const _0x55b985=_0x52ed0f;return this[_0x55b985(0xe4)]=_0x4f78d2,this;}[_0x52ed0f(0x14f)](){const _0x46f6e3=_0x52ed0f;let _0x3296a5=this[_0x46f6e3(0x117)]['get'](_0x375338[_0x46f6e3(0x135)])[_0x46f6e3(0x10a)](this['unitId'],this[_0x46f6e3(0x120)],this[_0x46f6e3(0x105)]);return _0x3296a5?(0x0,_0x54c147['isConnectorShape'])(_0x3296a5[_0x46f6e3(0x100)]()):this[_0x46f6e3(0xb2)]?(0x0,_0x54c147[_0x46f6e3(0x150)])(this[_0x46f6e3(0xb2)]):!0x1;}[_0x52ed0f(0xdd)](){const _0x4fd65f=_0x52ed0f;let _0x409c89=this[_0x4fd65f(0x117)][_0x4fd65f(0xe0)](_0x375338[_0x4fd65f(0x135)])[_0x4fd65f(0x10a)](this[_0x4fd65f(0xc4)],this[_0x4fd65f(0x120)],this[_0x4fd65f(0x105)]);if(!_0x409c89)return[];let _0x426675=this[_0x4fd65f(0x117)]['get'](_0x440193['IDrawingManagerService'])[_0x4fd65f(0xf7)]({'unitId':this[_0x4fd65f(0xc4)],'subUnitId':this[_0x4fd65f(0x120)],'drawingId':this[_0x4fd65f(0x105)]});if(!(_0x426675!=null&&_0x426675[_0x4fd65f(0xbf)]))return[];let {width:_0x487bcf=0x0,height:_0x4cb53b=0x0}=_0x426675[_0x4fd65f(0xbf)];return _0x409c89[_0x4fd65f(0xff)]({'width':_0x487bcf,'height':_0x4cb53b}),_0x409c89[_0x4fd65f(0xb9)]();}['getAdjustPoints'](){const _0x50a0a9=_0x52ed0f;let _0x4101c4=this[_0x50a0a9(0x117)][_0x50a0a9(0xe0)](_0x375338[_0x50a0a9(0x135)])['getShapeModel'](this['unitId'],this['subUnitId'],this['drawId']);if(!_0x4101c4)return[];let _0x4dce4=this[_0x50a0a9(0x117)][_0x50a0a9(0xe0)](_0x440193[_0x50a0a9(0xbe)])['getDrawingByParam']({'unitId':this[_0x50a0a9(0xc4)],'subUnitId':this['subUnitId'],'drawingId':this[_0x50a0a9(0x105)]});if(!(_0x4dce4!=null&&_0x4dce4[_0x50a0a9(0xbf)]))return[];let {width:_0x2a9687=0x0,height:_0x9eba5c=0x0}=_0x4dce4['transform'];return _0x4101c4[_0x50a0a9(0xff)]({'width':_0x2a9687,'height':_0x9eba5c}),_0x4101c4[_0x50a0a9(0x119)]();}[_0x52ed0f(0xb7)](){const _0x5a3740=_0x52ed0f;let _0x27cab5=this[_0x5a3740(0x117)][_0x5a3740(0xe0)](_0x375338['SheetsShapeService'])[_0x5a3740(0x10a)](this[_0x5a3740(0xc4)],this['subUnitId'],this[_0x5a3740(0x105)]);if(!_0x27cab5||!(0x0,_0x54c147[_0x5a3740(0x150)])(_0x27cab5[_0x5a3740(0x100)]()))return[];let _0x4c60cf=this[_0x5a3740(0x117)][_0x5a3740(0xe0)](_0x440193[_0x5a3740(0xbe)])[_0x5a3740(0xf7)]({'unitId':this[_0x5a3740(0xc4)],'subUnitId':this[_0x5a3740(0x120)],'drawingId':this['drawId']});if(!(_0x4c60cf!=null&&_0x4c60cf['transform']))return[];let {width:_0xe93364=0x0,height:_0xf7d10b=0x0}=_0x4c60cf['transform'];return _0x27cab5['updateContext']({'width':_0xe93364,'height':_0xf7d10b}),_0x27cab5['getConnectorLinePoints']();}[_0x52ed0f(0x140)](){const _0x12c870=_0x52ed0f;var _0x2459a4;let _0x3632b9=this['_injector']['get'](_0x375338['SheetsShapeService'])[_0x12c870(0x10a)](this[_0x12c870(0xc4)],this[_0x12c870(0x120)],this[_0x12c870(0x105)]);return _0x3632b9?(_0x2459a4=_0x3632b9[_0x12c870(0x140)]())==null?null:_0x2459a4:null;}[_0x52ed0f(0x115)](){const _0x3d5094=_0x52ed0f;var _0x13085b;let _0x530203=this[_0x3d5094(0x117)][_0x3d5094(0xe0)](_0x375338[_0x3d5094(0x135)])[_0x3d5094(0x10a)](this[_0x3d5094(0xc4)],this['subUnitId'],this[_0x3d5094(0x105)]);return _0x530203?(_0x13085b=_0x530203[_0x3d5094(0x115)]())==null?null:_0x13085b:null;}['build'](){const _0x104fba=_0x52ed0f;var _0x3e79d9,_0x24ae80;if(!this[_0x104fba(0xb2)])throw Error(_0x104fba(0x12c));if(this['x']===0x0||this['y']===0x0){let _0x33bf34=this['_injector'][_0x104fba(0xe0)](_0x2597b1[_0x104fba(0x10e)])[_0x104fba(0xcd)](this['unitId'],this[_0x104fba(0x120)]);if(!_0x33bf34)throw Error(_0x104fba(0x139)+this[_0x104fba(0xc4)]+'\x20and\x20subUnitId\x20'+this['subUnitId']+'\x20not\x20found');let {transform:_0x37c535}=(0x0,_0x2597b1['convertPositionCellToSheetOverGrid'])(this['unitId'],this[_0x104fba(0x120)],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x33bf34);this['x']=this['x']>0x0?this['x']:_0x37c535[_0x104fba(0xd8)],this['y']=this['y']>0x0?this['y']:_0x37c535['top'];}return this[_0x104fba(0x10f)]=(_0x3e79d9=this[_0x104fba(0x10f)])==null?_0x375338[_0x104fba(0x123)]:_0x3e79d9,this[_0x104fba(0xe4)]=(_0x24ae80=this['height'])==null?_0x375338['DEFAULT_SHAPE_HEIGHT']:_0x24ae80,{'unitId':this[_0x104fba(0xc4)],'subUnitId':this[_0x104fba(0x120)],'shapeId':this[_0x104fba(0x105)],'shapeType':this[_0x104fba(0xb2)],'shapeData':Object[_0x104fba(0xf5)](this[_0x104fba(0x109)])[_0x104fba(0x110)]>0x0?this['shapeData']:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x104fba(0x10f)],'height':this[_0x104fba(0xe4)]};}[_0x52ed0f(0x121)](){const _0x175e0a=_0x52ed0f;return this[_0x175e0a(0x105)];}[_0x52ed0f(0x100)](){return this['shapeType'];}[_0x52ed0f(0xe3)](){const _0x60a2e7=_0x52ed0f;return this[_0x60a2e7(0x109)];}[_0x52ed0f(0xad)](){return{'x':this['x'],'y':this['y']};}['getSize'](){const _0x2bfd25=_0x52ed0f;return{'width':this['width'],'height':this[_0x2bfd25(0xe4)]};}},_0x23d7b7=class extends _0x559842{constructor(_0x36db9b,_0x52abb0,_0x3ee330,_0x3563f5){const _0x32e014=_0x52ed0f;super(_0x36db9b,_0x52abb0,_0x3ee330,_0x3563f5),_0x494f4f(this,_0x32e014(0x109),{});}[_0x52ed0f(0xfa)](_0x62ca8f){const _0x22c07f=_0x52ed0f;if(!(0x0,_0x54c147[_0x22c07f(0x150)])(_0x62ca8f))throw Error(_0x22c07f(0x144)+_0x62ca8f+',\x20but\x20expected\x20a\x20connector\x20shape\x20type.');return super[_0x22c07f(0xfa)](_0x62ca8f),this;}[_0x52ed0f(0x126)](_0x4082cd){const _0x336997=_0x52ed0f;var _0xb31865,_0x34d86e;return(_0xb31865=this[_0x336997(0x109)])!=null&&_0xb31865['ln']||(this[_0x336997(0x109)]['ln']={}),!((_0x34d86e=this[_0x336997(0x109)])==null||(_0x34d86e=_0x34d86e['ln'])==null)&&_0x34d86e['startArrow']||(this[_0x336997(0x109)]['ln']['startArrow']={}),this[_0x336997(0x109)]['ln'][_0x336997(0x14a)][_0x336997(0x149)]=_0x4082cd,this;}[_0x52ed0f(0x129)](_0x25b3bc){const _0x2dc309=_0x52ed0f;var _0x35327d,_0x36d1f4;return(_0x35327d=this[_0x2dc309(0x109)])!=null&&_0x35327d['ln']||(this[_0x2dc309(0x109)]['ln']={}),!((_0x36d1f4=this[_0x2dc309(0x109)])==null||(_0x36d1f4=_0x36d1f4['ln'])==null)&&_0x36d1f4['endArrow']||(this[_0x2dc309(0x109)]['ln'][_0x2dc309(0xc1)]={}),this[_0x2dc309(0x109)]['ln'][_0x2dc309(0xc1)]['type']=_0x25b3bc,this;}['setStartArrowSize'](_0x4771fe){const _0x1f25bf=_0x52ed0f;var _0x419d69,_0x269af4;return(_0x419d69=this[_0x1f25bf(0x109)])!=null&&_0x419d69['ln']||(this[_0x1f25bf(0x109)]['ln']={}),!((_0x269af4=this[_0x1f25bf(0x109)])==null||(_0x269af4=_0x269af4['ln'])==null)&&_0x269af4[_0x1f25bf(0x14a)]||(this[_0x1f25bf(0x109)]['ln'][_0x1f25bf(0x14a)]={}),this['shapeData']['ln'][_0x1f25bf(0x14a)]['size']=_0x4771fe,this;}['setEndArrowSize'](_0xdab2d5){const _0xc6d037=_0x52ed0f;var _0x2de8aa,_0x5dd47f;return(_0x2de8aa=this[_0xc6d037(0x109)])!=null&&_0x2de8aa['ln']||(this[_0xc6d037(0x109)]['ln']={}),!((_0x5dd47f=this[_0xc6d037(0x109)])==null||(_0x5dd47f=_0x5dd47f['ln'])==null)&&_0x5dd47f[_0xc6d037(0xc1)]||(this[_0xc6d037(0x109)]['ln'][_0xc6d037(0xc1)]={}),this[_0xc6d037(0x109)]['ln'][_0xc6d037(0xc1)][_0xc6d037(0xe1)]=_0xdab2d5,this;}[_0x52ed0f(0x108)](){return super['build']();}['getEndConnectInfo'](){const _0x3631a1=_0x52ed0f;var _0x2c5dcd;return((_0x2c5dcd=this[_0x3631a1(0x109)])==null||(_0x2c5dcd=_0x2c5dcd['relation'])==null?void 0x0:_0x2c5dcd['to'])||null;}['getStartConnectInfo'](){const _0x2603ba=_0x52ed0f;var _0x5f061e;return((_0x5f061e=this[_0x2603ba(0x109)])==null||(_0x5f061e=_0x5f061e[_0x2603ba(0xf0)])==null?void 0x0:_0x5f061e['from'])||null;}};function _0x2e3edc(_0x481d13,_0x35e733,_0x45d2f4,_0x34b8cd,_0x454d5d,_0x4a4982){const _0x6174a4=_0x52ed0f;let _0x375340=_0x454d5d[_0x6174a4(0x10a)](_0x481d13,_0x35e733,_0x45d2f4);if(!_0x375340)return null;let _0x4ca4cc=_0x4a4982[_0x6174a4(0xf7)]({'unitId':_0x481d13,'subUnitId':_0x35e733,'drawingId':_0x45d2f4});if(!(_0x4ca4cc!=null&&_0x4ca4cc['transform']))return null;let {left:_0x3bdece=0x0,top:_0x352a9e=0x0,width:_0x2c85ae=0x0,height:_0x598d19=0x0,flipX:_0x165def=!0x1,flipY:_0x31fec7=!0x1,angle:_0xcd3265}=_0x4ca4cc[_0x6174a4(0xbf)];_0x375340[_0x6174a4(0xff)]({'width':_0x2c85ae,'height':_0x598d19});let _0x18f319=_0x375340[_0x6174a4(0xb9)]()['find'](_0x5500fa=>_0x5500fa[_0x6174a4(0xee)]===_0x34b8cd);if(!_0x18f319)return null;let _0x420240=_0x165def?_0x2c85ae-_0x18f319['x']:_0x18f319['x'],_0x3d914d=_0x31fec7?_0x598d19-_0x18f319['y']:_0x18f319['y'];if(_0xcd3265&&_0xcd3265!==0x0){let _0x12f9f3=_0xcd3265*Math['PI']/0xb4,_0x377f67=Math[_0x6174a4(0x147)](_0x12f9f3),_0x300cec=Math[_0x6174a4(0x102)](_0x12f9f3),_0x4a7b9d=_0x2c85ae/0x2,_0x44b035=_0x598d19/0x2,_0x24b5f7=_0x420240-_0x4a7b9d,_0xd4a88f=_0x3d914d-_0x44b035;_0x420240=_0x4a7b9d+_0x24b5f7*_0x377f67-_0xd4a88f*_0x300cec,_0x3d914d=_0x44b035+_0x24b5f7*_0x300cec+_0xd4a88f*_0x377f67;}_0x420240+=_0x3bdece,_0x3d914d+=_0x352a9e;let _0x16d670=_0x18f319[_0x6174a4(0xd7)]/0xea60;_0x165def&&(_0x16d670=0xb4-_0x16d670),_0x31fec7&&(_0x16d670=-_0x16d670),_0x16d670+=_0xcd3265||0x0,_0x16d670=(_0x16d670%0x168+0x168)%0x168;let _0x2fefd9=(0x0,_0x54c147[_0x6174a4(0x137)])({'left':_0x3bdece,'top':_0x352a9e,'width':_0x2c85ae,'height':_0x598d19},_0xcd3265||0x0);return{'point':{'x':_0x420240,'y':_0x3d914d},'angle':_0x16d670,'bounds':_0x2fefd9};}function _0x3931d8(_0x2ac480,_0x299931){const _0x27f7ac=_0x52ed0f;let _0x1ff6cb=_0x299931['x']-_0x2ac480['x'],_0x5232e9=_0x299931['y']-_0x2ac480['y'];return Math[_0x27f7ac(0xf4)](_0x1ff6cb)>=Math[_0x27f7ac(0xf4)](_0x5232e9)?_0x1ff6cb>=0x0?0xb4:0x0:_0x5232e9>=0x0?0x10e:0x5a;}function _0x3f3edb(_0x26bd28,_0xc16a7e,_0x5ebd31,_0x49920b,_0x262df4,_0x4eaaa7,_0x4d0c20){const _0x4cff53=_0x52ed0f;let _0x13185b=_0x4eaaa7[_0x4cff53(0x10a)](_0x26bd28,_0xc16a7e,_0x5ebd31);if(!_0x13185b)return null;let _0xfcf831=_0x4d0c20[_0x4cff53(0xf7)]({'unitId':_0x26bd28,'subUnitId':_0xc16a7e,'drawingId':_0x5ebd31});if(!(_0xfcf831!=null&&_0xfcf831['transform']))return null;let {left:_0x5238ea=0x0,top:_0x48e460=0x0,width:_0x422e4f=0x0,height:_0x5517c4=0x0,flipX:_0x562383=!0x1,flipY:_0xe61155=!0x1}=_0xfcf831[_0x4cff53(0xbf)];_0x13185b[_0x4cff53(0xff)]({'width':_0x422e4f,'height':_0x5517c4});let _0x351983=_0x13185b[_0x4cff53(0xb7)]();if(_0x351983['length']<0x2)return null;let _0x55394a=_0x49920b?_0x351983[0x0]:_0x351983[_0x351983['length']-0x1],_0x268014=new _0x54c147[(_0x4cff53(0x13c))]({'left':_0x5238ea,'top':_0x48e460,'width':_0x422e4f,'height':_0x5517c4,'flipX':_0x562383,'flipY':_0xe61155})[_0x4cff53(0xe5)](_0x55394a);return{'point':_0x268014,'angle':_0x3931d8(_0x262df4[_0x4cff53(0x130)],_0x268014),'bounds':{'left':_0x268014['x'],'top':_0x268014['y'],'width':0x0,'height':0x0}};}var _0x335196=class extends _0xad8875['FWorksheet']{async[_0x52ed0f(0x127)](_0x115218){const _0x59a8a6=_0x52ed0f;let {unitId:_0x2420ab,subUnitId:_0x551390,shapeId:_0x2d335f,shapeType:_0x5da283,shapeData:_0x3c20f8,x:_0x20456e,y:_0x20d2fc,width:_0x123d57,height:_0x25c62b}=_0x115218;return this[_0x59a8a6(0x12b)][_0x59a8a6(0x122)](_0x375338[_0x59a8a6(0x13d)]['id'],{'unitId':_0x2420ab,'subUnitId':_0x551390,'shapeId':_0x2d335f,'shapeType':_0x5da283,'shapeData':_0x3c20f8,'position':{'x':_0x20456e,'y':_0x20d2fc},'width':_0x123d57,'height':_0x25c62b});}async[_0x52ed0f(0x10c)](_0x291f71){const _0x58c6c0=_0x52ed0f;let {unitId:_0x3c0f01,subUnitId:_0xc81c8f,shapeId:_0x161511,shapeType:_0x1eeb53,shapeData:_0xef1d25,x:_0x5bc9d7,y:_0xfee400,width:_0x23d61f,height:_0xc71978}=_0x291f71;return this[_0x58c6c0(0x12b)][_0x58c6c0(0x122)](_0x375338[_0x58c6c0(0xf1)]['id'],{'unitId':_0x3c0f01,'subUnitId':_0xc81c8f,'shapeId':_0x161511,'shapeType':_0x1eeb53,'shapeData':_0xef1d25,'position':{'x':_0x5bc9d7,'y':_0xfee400},'width':_0x23d61f,'height':_0xc71978});}[_0x52ed0f(0xc0)](_0x58a2f6){const _0x2f0f22=_0x52ed0f;let _0x2da051=this[_0x2f0f22(0xcc)]()[_0x2f0f22(0x111)](),_0x15dd04=this[_0x2f0f22(0xd0)]();if(_0x58a2f6){let _0x2849b8=new _0x559842(_0x2da051,_0x15dd04,_0x58a2f6[_0x2f0f22(0x105)],this['_injector']);return this['_preloadShapeProperties'](_0x2849b8,_0x2da051,_0x15dd04,_0x58a2f6[_0x2f0f22(0x105)]),_0x2849b8;}return new _0x559842(_0x2da051,_0x15dd04,(0x0,_0x24ae8f[_0x2f0f22(0x12a)])(),this[_0x2f0f22(0x117)]);}['newConnector'](_0x4aed42){const _0x677d8e=_0x52ed0f;let _0x1c9bb4=this[_0x677d8e(0xcc)]()['getUnitId'](),_0xbffc59=this[_0x677d8e(0xd0)]();if(_0x4aed42){let _0x246420=new _0x23d7b7(_0x1c9bb4,_0xbffc59,_0x4aed42[_0x677d8e(0x105)],this[_0x677d8e(0x117)]);return this[_0x677d8e(0xcb)](_0x246420,_0x1c9bb4,_0xbffc59,_0x4aed42['drawId']),_0x246420;}return new _0x23d7b7(_0x1c9bb4,_0xbffc59,(0x0,_0x24ae8f[_0x677d8e(0x12a)])(),this['_injector']);}[_0x52ed0f(0xf9)](){const _0x3cdb14=_0x52ed0f;let _0x1bd570=this[_0x3cdb14(0x117)]['get'](_0x57bb3a[_0x3cdb14(0xe7)]),_0x4e5d91=this[_0x3cdb14(0xcc)]()[_0x3cdb14(0x111)](),_0xa12fcc=this[_0x3cdb14(0xd0)](),_0x109f5a=_0x1bd570[_0x3cdb14(0x14c)](_0x4e5d91,_0xa12fcc);if(!_0x109f5a)return[];let _0x4d3cb0=[];for(let [_0x148255,_0x4a9e0e]of Object[_0x3cdb14(0xca)](_0x109f5a))if(_0x4a9e0e&&_0x4a9e0e[_0x3cdb14(0xd2)]===_0x24ae8f['DrawingTypeEnum'][_0x3cdb14(0xce)]){let _0x3289de=new _0x559842(_0x4e5d91,_0xa12fcc,_0x148255,this[_0x3cdb14(0x117)]);this[_0x3cdb14(0xcb)](_0x3289de,_0x4e5d91,_0xa12fcc,_0x148255),_0x4d3cb0[_0x3cdb14(0x118)](_0x3289de);}return _0x4d3cb0;}[_0x52ed0f(0xb4)](_0x3f2fcb){const _0x32dc22=_0x52ed0f;let {unitId:_0x4c789b,subUnitId:_0xe511ca,drawId:_0x12d8ce}=_0x3f2fcb;return this['_commandService'][_0x32dc22(0x122)](_0x57bb3a[_0x32dc22(0xc5)]['id'],{'unitId':_0x4c789b,'drawings':[{'unitId':_0x4c789b,'subUnitId':_0xe511ca,'drawingId':_0x12d8ce,'drawingType':_0x24ae8f[_0x32dc22(0x11b)][_0x32dc22(0xce)]}]});}async[_0x52ed0f(0xcf)](_0x508c82){const _0x4bd382=_0x52ed0f;let {connector:_0x405ab2,startTarget:_0x37e859,endTarget:_0x2b6e30}=_0x508c82;if(!_0x37e859&&!_0x2b6e30)return!0x1;let _0x2128a9=this['getWorkbook']()[_0x4bd382(0x111)](),_0x274061=this[_0x4bd382(0xd0)](),_0x56e25f=this[_0x4bd382(0x117)][_0x4bd382(0xe0)](_0x375338[_0x4bd382(0x135)]),_0x1e22d6=this[_0x4bd382(0x117)][_0x4bd382(0xe0)](_0x440193['IDrawingManagerService']),_0x592233=_0x56e25f['getShapeModel'](_0x2128a9,_0x274061,_0x405ab2[_0x4bd382(0x105)]);if(!_0x592233)return!0x1;let _0x27a902=_0x592233[_0x4bd382(0x100)](),_0x347e48=_0x592233[_0x4bd382(0x11d)](),_0x473048={};for(let _0x1eb9eb of _0x592233[_0x4bd382(0x13a)]()){let _0x4ec336=_0x592233[_0x4bd382(0xae)](_0x1eb9eb);_0x4ec336!==void 0x0&&(_0x473048[_0x1eb9eb]=_0x4ec336);}let {startInfo:_0x1e3ee2,endInfo:_0x54dd82}=this[_0x4bd382(0x151)](_0x2128a9,_0x274061,_0x405ab2,_0x592233,_0x37e859,_0x2b6e30,_0x56e25f,_0x1e22d6,_0x347e48);if(!_0x1e3ee2||!_0x54dd82)return!0x1;let _0x204f6e=(0x0,_0x54c147[_0x4bd382(0x138)])((0x0,_0x54c147[_0x4bd382(0x131)])(_0x1e3ee2,_0x54dd82,_0x27a902),_0x27a902),_0x375197={};return _0x37e859?_0x375197['from']={'shapeId':_0x37e859[_0x4bd382(0xf6)]['drawId'],'cxnIndex':_0x37e859[_0x4bd382(0x112)]}:_0x347e48!=null&&_0x347e48[_0x4bd382(0xec)]&&(_0x375197[_0x4bd382(0xec)]=_0x347e48['from']),_0x2b6e30?_0x375197['to']={'shapeId':_0x2b6e30[_0x4bd382(0xf6)]['drawId'],'cxnIndex':_0x2b6e30['connectionSiteIndex']}:_0x347e48!=null&&_0x347e48['to']&&(_0x375197['to']=_0x347e48['to']),this[_0x4bd382(0x12b)][_0x4bd382(0x122)](_0x375338[_0x4bd382(0x10d)]['id'],{'unitId':_0x2128a9,'subUnitId':_0x274061,'connectorShapeId':_0x405ab2[_0x4bd382(0x105)],'width':_0x204f6e[_0x4bd382(0xe8)]['width'],'height':_0x204f6e['worldRect'][_0x4bd382(0xe4)],'left':_0x204f6e[_0x4bd382(0xe8)][_0x4bd382(0xd8)],'top':_0x204f6e[_0x4bd382(0xe8)]['top'],'flipX':_0x204f6e[_0x4bd382(0xe8)][_0x4bd382(0xd1)]||!0x1,'flipY':_0x204f6e[_0x4bd382(0xe8)][_0x4bd382(0xed)]||!0x1,'oldAdjustValues':_0x473048,'newAdjustValues':_0x204f6e['adjustValues'],'newLineType':_0x204f6e[_0x4bd382(0xbc)],'oldLineType':_0x27a902,'rotation':_0x204f6e['rotation'],'oldRelation':_0x347e48,'newRelation':_0x375197});}[_0x52ed0f(0xcb)](_0x33cfce,_0x1fadf3,_0x4dbac9,_0x15aef0){const _0x5e6c34=_0x52ed0f;let _0x51eacc=this[_0x5e6c34(0x117)][_0x5e6c34(0xe0)](_0x440193[_0x5e6c34(0xbe)])[_0x5e6c34(0xf7)]({'unitId':_0x1fadf3,'subUnitId':_0x4dbac9,'drawingId':_0x15aef0});if(_0x51eacc!=null&&_0x51eacc[_0x5e6c34(0xbf)]){var _0x41119c,_0x495c5e,_0x1edac5,_0x4a6f71;_0x33cfce['x']=(_0x41119c=_0x51eacc['transform'][_0x5e6c34(0xd8)])==null?0x0:_0x41119c,_0x33cfce['y']=(_0x495c5e=_0x51eacc[_0x5e6c34(0xbf)][_0x5e6c34(0x13b)])==null?0x0:_0x495c5e,_0x33cfce['width']=(_0x1edac5=_0x51eacc[_0x5e6c34(0xbf)][_0x5e6c34(0x10f)])==null?_0x33cfce[_0x5e6c34(0x10f)]:_0x1edac5,_0x33cfce[_0x5e6c34(0xe4)]=(_0x4a6f71=_0x51eacc[_0x5e6c34(0xbf)][_0x5e6c34(0xe4)])==null?_0x33cfce[_0x5e6c34(0xe4)]:_0x4a6f71;}let _0x5f18a9=this['_injector'][_0x5e6c34(0xe0)](_0x375338[_0x5e6c34(0x135)])[_0x5e6c34(0x10a)](_0x1fadf3,_0x4dbac9,_0x15aef0);if(_0x5f18a9){_0x33cfce[_0x5e6c34(0xb2)]=_0x5f18a9[_0x5e6c34(0x100)]();let _0x2df62f=_0x5f18a9[_0x5e6c34(0xe3)]();_0x2df62f&&(_0x33cfce[_0x5e6c34(0x109)]=JSON[_0x5e6c34(0xc8)](JSON[_0x5e6c34(0x106)](_0x2df62f)));}}[_0x52ed0f(0x151)](_0x42ae80,_0x3dbf54,_0x411234,_0x2f4411,_0x18b954,_0x2438db,_0x3c282f,_0x1912c0,_0x5f2cf0){const _0x2cdeaa=_0x52ed0f;let _0x12faa6=null,_0x34261f=null;return _0x18b954&&(_0x12faa6=_0x2e3edc(_0x42ae80,_0x3dbf54,_0x18b954[_0x2cdeaa(0xf6)][_0x2cdeaa(0x105)],_0x18b954[_0x2cdeaa(0x112)],_0x3c282f,_0x1912c0)),_0x2438db&&(_0x34261f=_0x2e3edc(_0x42ae80,_0x3dbf54,_0x2438db['shape'][_0x2cdeaa(0x105)],_0x2438db[_0x2cdeaa(0x112)],_0x3c282f,_0x1912c0)),_0x12faa6||(_0x12faa6=this[_0x2cdeaa(0xb5)](_0x42ae80,_0x3dbf54,_0x411234[_0x2cdeaa(0x105)],!0x0,_0x34261f,_0x5f2cf0==null?void 0x0:_0x5f2cf0['from'],_0x3c282f,_0x1912c0)),_0x34261f||(_0x34261f=this[_0x2cdeaa(0xb5)](_0x42ae80,_0x3dbf54,_0x411234[_0x2cdeaa(0x105)],!0x1,_0x12faa6,_0x5f2cf0==null?void 0x0:_0x5f2cf0['to'],_0x3c282f,_0x1912c0)),{'startInfo':_0x12faa6,'endInfo':_0x34261f};}[_0x52ed0f(0xb5)](_0x25501c,_0x3b57b0,_0x5e6a88,_0x1d965f,_0x42824f,_0x242f37,_0x474540,_0x2d3e0f){const _0xe093ce=_0x52ed0f;if(_0x242f37){let _0xdcf728=_0x2e3edc(_0x25501c,_0x3b57b0,_0x242f37['shapeId'],_0x242f37[_0xe093ce(0x11f)],_0x474540,_0x2d3e0f);if(_0xdcf728)return _0xdcf728;}return _0x42824f?_0x3f3edb(_0x25501c,_0x3b57b0,_0x5e6a88,_0x1d965f,_0x42824f,_0x474540,_0x2d3e0f):null;}};_0xad8875[_0x52ed0f(0xaf)][_0x52ed0f(0x12d)](_0x335196),_0x5c5861['FConnectorShape']=_0x23d7b7,_0x5c5861['FShape']=_0x559842;}));function _0x5b71(){const _0x258fcc=['getEndConnectInfo','gradientType','_injector','push','getDrawingPoints','@univerjs/core/facade','DrawingTypeEnum','ShapeTypeEnum','getShapeRelation','capType','cxnIndex','subUnitId','getShapeId','executeCommand','DEFAULT_SHAPE_WIDTH','UniverDrawing','\x20not\x20found','setStartArrowType','insertShape','setShapeData','setEndArrowType','generateRandomId','_commandService','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','extend','setWidth','convertPositionCellToSheetOverGrid','point','routeConnectorLineShape','3071775sNkoIZ','NoFill','symbol','SheetsShapeService','ShapeArrowTypeEnum','getBasicShapeRotateBound','computeConnectorRouteLayout','Skeleton\x20for\x20unitId\x20','getAdjustNames','top','ConnectorCoordinateTransform','InsertShapeCommand','DEFAULT_SHAPE_HEIGHT','string','getStartConnectInfo','opacity','12uUANNZ','iterator','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','UniverSheets','ShapeGradientTypeEnum','cos','setStrokeLineJoinType','type','startArrow','fill','getDrawingData','\x20and\x20subUnitId\x20','@univerjs/drawing','isLineShape','isConnectorShape','_resolveEndpoints','getPosition','getAdjustValueByName','FWorksheet','stroke','UniverSheetsFacade','shapeType','UniverProEngineShape','removeShape','_resolveExistingOrFreeEndpoint','4037988cEjXUB','getConnectorLinePoints','2303289aDSEVm','getConnectionSiteList','fillType','@univerjs-pro/engine-shape','lineType','UniverCoreFacade','IDrawingManagerService','transform','newShape','endArrow','@univerjs-pro/sheets-shape','5Rfwdnt','unitId','RemoveSheetDrawingCommand','amd','setStrokeLineDashType','parse','@univerjs/sheets','entries','_preloadShapeProperties','getWorkbook','ensureSkeleton','DRAWING_SHAPE','connectShapes','getSheetId','flipX','drawingType','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','function','UniverProSheetsShapeFacade','@univerjs/sheets/facade','ang','left','setStrokeLineType','call','setShapeSolidFill','SolidFill','getConnectionSites','setStrokeColor','Module','get','size','ShapeFillEnum','getShapeData','height','localToWorld','setHeight','ISheetDrawingService','worldRect','208282bmPxsK','9PShRDc','FEnum','from','flipY','index','object','relation','SetShapeDrawingDataCommand','ShapeLineTypeEnum','ShapeLineDashEnum','abs','keys','shape','getDrawingByParam','default','getShapes','setShapeType','4359846kkfFGn','GradientFill','color','14847330lnZfCO','updateContext','getShapeType','constructor','sin','setAbsolutePosition','prototype','drawId','stringify','20507201AoPwGM','build','shapeData','getShapeModel','ShapeLineJoinEnum','updateShape','UpdateConnectorRelationCommand','SheetSkeletonService','width','length','getUnitId','connectionSiteIndex','32YSuQuc','dashType'];_0x5b71=function(){return _0x258fcc;};return _0x5b71();}
1
+ function _0x3737(_0x133cdb,_0x55baed){_0x133cdb=_0x133cdb-0xb6;const _0x133063=_0x1330();let _0x3737c7=_0x133063[_0x133cdb];return _0x3737c7;}(function(_0x54fa45,_0x3c8362){const _0x275929=_0x3737,_0x1ac3af=_0x54fa45();while(!![]){try{const _0x2ad982=parseInt(_0x275929(0xe2))/0x1*(parseInt(_0x275929(0xcc))/0x2)+parseInt(_0x275929(0xdb))/0x3*(parseInt(_0x275929(0xbc))/0x4)+-parseInt(_0x275929(0xc9))/0x5+-parseInt(_0x275929(0xcd))/0x6*(parseInt(_0x275929(0xb8))/0x7)+parseInt(_0x275929(0xef))/0x8*(parseInt(_0x275929(0xc3))/0x9)+-parseInt(_0x275929(0xe9))/0xa+parseInt(_0x275929(0xd2))/0xb;if(_0x2ad982===_0x3c8362)break;else _0x1ac3af['push'](_0x1ac3af['shift']());}catch(_0x1d767e){_0x1ac3af['push'](_0x1ac3af['shift']());}}}(_0x1330,0x84d70),function(_0x4d153c,_0x40b210){const _0x343528=_0x3737;typeof exports==_0x343528(0xf0)&&typeof module<'u'?_0x40b210(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/engine-shape/facade'),require('@univerjs/core'),require('@univerjs/sheets/facade'),require('@univerjs/sheets')):typeof define==_0x343528(0xf2)&&define[_0x343528(0xe0)]?define([_0x343528(0xd3),'@univerjs-pro/engine-shape','@univerjs-pro/engine-shape/facade',_0x343528(0xc1),_0x343528(0xee),_0x343528(0xd1)],_0x40b210):(_0x4d153c=typeof globalThis<'u'?globalThis:_0x4d153c||self,_0x40b210(_0x4d153c[_0x343528(0xcb)]={},_0x4d153c[_0x343528(0xdf)],_0x4d153c[_0x343528(0xdd)],_0x4d153c[_0x343528(0xc2)],_0x4d153c[_0x343528(0xd7)],_0x4d153c[_0x343528(0xd0)]));}(this,function(_0xc2283a,_0x1c87a8,_0x53014e,_0x595d74,_0x792c2b,_0x3f868f){const _0x2f5eed=_0x3737;Object[_0x2f5eed(0xbd)](_0xc2283a,Symbol['toStringTag'],{'value':_0x2f5eed(0xd5)});var _0x32cc89=class extends _0x53014e[_0x2f5eed(0xd8)]{[_0x2f5eed(0xd6)](_0x435b41,_0x4fb489,_0x15c7c1,_0x3d98ef){const _0x3da2a4=_0x2f5eed;let {unitId:_0x2379c6,subUnitId:_0xdff8a}=this[_0x3da2a4(0xe3)],_0x279dcb=this[_0x3da2a4(0xed)][_0x3da2a4(0xc7)](_0x3f868f[_0x3da2a4(0xeb)])['ensureSkeleton'](_0x2379c6,_0xdff8a);if(!_0x279dcb)return console[_0x3da2a4(0xc8)](_0x3da2a4(0xe5)+_0x2379c6+_0x3da2a4(0xe4)+_0xdff8a+_0x3da2a4(0xda)),this;let {transform:_0x196061}=(0x0,_0x3f868f[_0x3da2a4(0xd9)])(_0x2379c6,_0xdff8a,{'row':_0x435b41,'column':_0x4fb489,'rowOffset':_0x15c7c1,'columnOffset':_0x3d98ef},0x1,0x1,_0x279dcb);return this[_0x3da2a4(0xba)](_0x196061[_0x3da2a4(0xd4)],_0x196061[_0x3da2a4(0xe1)]);}},_0x28e25e=class extends _0x792c2b[_0x2f5eed(0xe8)]{[_0x2f5eed(0xca)](_0x1801f7){const _0x508675=_0x2f5eed;let _0x3e86d1=this[_0x508675(0xc4)]();if(!_0x3e86d1)return null;try{let _0x7d9253=_0x3e86d1[_0x508675(0xce)](this[_0x508675(0xdc)](),_0x1801f7);return _0x7d9253?this[_0x508675(0xb7)](_0x7d9253):(console[_0x508675(0xc8)](_0x508675(0xea)),null);}catch(_0x53d3ce){return console[_0x508675(0xc8)](_0x508675(0xea),_0x53d3ce),null;}}['getShape'](_0x2ee01c){const _0x4a3432=_0x2f5eed;let _0x1e0c10=this[_0x4a3432(0xc4)]();if(!_0x1e0c10)return null;try{let _0x3285ab={...this[_0x4a3432(0xdc)](),'shapeId':_0x2ee01c},_0x19f4d0=_0x1e0c10['getShape'](_0x3285ab);return _0x19f4d0?this[_0x4a3432(0xb7)](_0x19f4d0):(console['warn'](_0x4a3432(0xf1)+_0x2ee01c+'\x22\x20was\x20not\x20found.'),null);}catch(_0x328a6d){return console[_0x4a3432(0xc8)](_0x4a3432(0xc0)+_0x2ee01c+'\x22.',_0x328a6d),null;}}[_0x2f5eed(0xec)](){const _0x2cafb1=_0x2f5eed;let _0x190c61=this[_0x2cafb1(0xc4)]();if(!_0x190c61)return[];try{return _0x190c61[_0x2cafb1(0xbf)](this[_0x2cafb1(0xdc)]())[_0x2cafb1(0xcf)](_0x27bb95=>this[_0x2cafb1(0xb7)](_0x27bb95));}catch(_0x22f4ab){return console[_0x2cafb1(0xc8)]('[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20list\x20Shapes.',_0x22f4ab),[];}}[_0x2f5eed(0xdc)](){const _0x906ea=_0x2f5eed;return{'hostType':_0x595d74[_0x906ea(0xc6)][_0x906ea(0xe7)],'unitId':this[_0x906ea(0xe6)]()['getUnitId'](),'subUnitId':this[_0x906ea(0xb6)]()};}[_0x2f5eed(0xc4)](){const _0x272d80=_0x2f5eed;return this[_0x272d80(0xed)]['get'](_0x1c87a8[_0x272d80(0xb9)])[_0x272d80(0xc7)](_0x595d74[_0x272d80(0xc6)][_0x272d80(0xe7)]);}[_0x2f5eed(0xb7)](_0x2e3935){const _0x32ff34=_0x2f5eed;let {unitId:_0x10e6f5,subUnitId:_0x236dff,shapeId:_0x9344c1}=_0x2e3935,_0x20bdd5={'unitId':_0x10e6f5,'subUnitId':_0x236dff,'shapeId':_0x9344c1,'hostType':_0x595d74[_0x32ff34(0xc6)][_0x32ff34(0xe7)]};return(0x0,_0x1c87a8['isConnectorShape'])(_0x2e3935[_0x32ff34(0xde)])?this[_0x32ff34(0xed)][_0x32ff34(0xbb)](_0x53014e[_0x32ff34(0xbe)],_0x20bdd5,this[_0x32ff34(0xed)]):this[_0x32ff34(0xed)]['createInstance'](_0x32cc89,_0x20bdd5,this[_0x32ff34(0xed)]);}};_0x792c2b[_0x2f5eed(0xe8)][_0x2f5eed(0xc5)](_0x28e25e),_0xc2283a['FSheetShape']=_0x32cc89;}));function _0x1330(){const _0x17004d=['UniverProSheetsShapeFacade','155442COyVAk','12ayhutP','createShape','map','UniverSheets','@univerjs/sheets','14398769onJnbb','exports','left','Module','setPosition','UniverSheetsFacade','FShape','convertPositionCellToSheetOverGrid','\x22\x20was\x20not\x20found.','517527BZqiHu','_getShapeScope','UniverProEngineShapeFacade','shapeType','UniverProEngineShape','amd','top','7zTucqy','_shapeRef','\x22\x20and\x20sheet\x20\x22','[Sheet\x20Shape\x20Facade]:\x20Skeleton\x20for\x20unit\x20\x22','getWorkbook','UNIVER_SHEET','FWorksheet','6067930PQiofj','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20insert\x20Shape.','SheetSkeletonService','getShapes','_injector','@univerjs/sheets/facade','177104yMBHSU','object','[Sheet\x20Shape\x20Facade]:\x20Shape\x20\x22','function','getSheetId','_createShapeHandle','141869wbMxbA','IShapeHostAdapterRegistry','setAbsolutePosition','createInstance','4ixnSKx','defineProperty','FConnectorShape','listShapes','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20read\x20Shape\x20\x22','@univerjs/core','UniverCore','27UCVbrE','_getShapeAdapter','extend','UniverInstanceType','get','warn','4502550jXfsZs','insertShape'];_0x1330=function(){return _0x17004d;};return _0x1330();}