@univerjs-pro/sheets-shape 0.24.0 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/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/commands/command/update-connector-relation.command.d.ts +0 -15
- package/lib/types/facade/f-connector-shape.d.ts +16 -8
- package/lib/types/facade/f-enum.d.ts +18 -9
- package/lib/types/facade/f-shape.d.ts +52 -26
- package/lib/types/facade/f-worksheet.d.ts +14 -7
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +8 -8
|
@@ -49,7 +49,8 @@ export interface IShapeBuilderInfo {
|
|
|
49
49
|
* @example
|
|
50
50
|
* ```ts
|
|
51
51
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
52
|
-
* const fWorksheet = fWorkbook.
|
|
52
|
+
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
53
|
+
* if (!fWorksheet) return;
|
|
53
54
|
*
|
|
54
55
|
* // Create a rectangle shape at cell B2 with offset
|
|
55
56
|
* const shapeInfo = fWorksheet.newShape()
|
|
@@ -115,7 +116,8 @@ export declare class FShape {
|
|
|
115
116
|
* @example
|
|
116
117
|
* ```ts
|
|
117
118
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
118
|
-
* const fWorksheet = fWorkbook.
|
|
119
|
+
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
120
|
+
* if (!fWorksheet) return;
|
|
119
121
|
*
|
|
120
122
|
* const shapeInfo = fWorksheet.newShape()
|
|
121
123
|
* .setShapeType(univerAPI.Enum.ShapeTypeEnum.Rect)
|
|
@@ -135,7 +137,8 @@ export declare class FShape {
|
|
|
135
137
|
* @example
|
|
136
138
|
* ```ts
|
|
137
139
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
138
|
-
* const fWorksheet = fWorkbook.
|
|
140
|
+
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
141
|
+
* if (!fWorksheet) return;
|
|
139
142
|
*
|
|
140
143
|
* const shapeInfo = fWorksheet.newShape()
|
|
141
144
|
* .setShapeType(univerAPI.Enum.ShapeTypeEnum.Rect)
|
|
@@ -153,7 +156,8 @@ export declare class FShape {
|
|
|
153
156
|
* @example
|
|
154
157
|
* ```ts
|
|
155
158
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
156
|
-
* const fWorksheet = fWorkbook.
|
|
159
|
+
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
160
|
+
* if (!fWorksheet) return;
|
|
157
161
|
*
|
|
158
162
|
* const shapeInfo = fWorksheet.newShape()
|
|
159
163
|
* .setShapeType(univerAPI.Enum.ShapeTypeEnum.Rect)
|
|
@@ -172,7 +176,8 @@ export declare class FShape {
|
|
|
172
176
|
* @example
|
|
173
177
|
* ```ts
|
|
174
178
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
175
|
-
* const fWorksheet = fWorkbook.
|
|
179
|
+
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
180
|
+
* if (!fWorksheet) return;
|
|
176
181
|
*
|
|
177
182
|
* const shapeInfo = fWorksheet.newShape()
|
|
178
183
|
* .setShapeType(univerAPI.Enum.ShapeTypeEnum.Rect)
|
|
@@ -193,7 +198,8 @@ export declare class FShape {
|
|
|
193
198
|
* @example
|
|
194
199
|
* ```ts
|
|
195
200
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
196
|
-
* const fWorksheet = fWorkbook.
|
|
201
|
+
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
202
|
+
* if (!fWorksheet) return;
|
|
197
203
|
* // Gradient fill with angle and color stops
|
|
198
204
|
* const shapeInfo = fWorksheet.newShape()
|
|
199
205
|
* .setShapeType(univerAPI.Enum.ShapeTypeEnum.Rect)
|
|
@@ -222,7 +228,8 @@ export declare class FShape {
|
|
|
222
228
|
* @example
|
|
223
229
|
* ```ts
|
|
224
230
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
225
|
-
* const fWorksheet = fWorkbook.
|
|
231
|
+
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
232
|
+
* if (!fWorksheet) return;
|
|
226
233
|
*
|
|
227
234
|
* const shapeInfo = fWorksheet.newShape()
|
|
228
235
|
* .setShapeType(univerAPI.Enum.ShapeTypeEnum.Rect)
|
|
@@ -241,7 +248,8 @@ export declare class FShape {
|
|
|
241
248
|
* @example
|
|
242
249
|
* ```ts
|
|
243
250
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
244
|
-
* const fWorksheet = fWorkbook.
|
|
251
|
+
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
252
|
+
* if (!fWorksheet) return;
|
|
245
253
|
*
|
|
246
254
|
* const shapeInfo = fWorksheet.newShape()
|
|
247
255
|
* .setShapeType(univerAPI.Enum.ShapeTypeEnum.Rect)
|
|
@@ -260,7 +268,8 @@ export declare class FShape {
|
|
|
260
268
|
* @example
|
|
261
269
|
* ```ts
|
|
262
270
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
263
|
-
* const fWorksheet = fWorkbook.
|
|
271
|
+
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
272
|
+
* if (!fWorksheet) return;
|
|
264
273
|
*
|
|
265
274
|
* const shapeInfo = fWorksheet.newShape()
|
|
266
275
|
* .setShapeType(univerAPI.Enum.ShapeTypeEnum.Rect)
|
|
@@ -279,7 +288,8 @@ export declare class FShape {
|
|
|
279
288
|
* @example
|
|
280
289
|
* ```ts
|
|
281
290
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
282
|
-
* const fWorksheet = fWorkbook.
|
|
291
|
+
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
292
|
+
* if (!fWorksheet) return;
|
|
283
293
|
*
|
|
284
294
|
* const shapeInfo = fWorksheet.newShape()
|
|
285
295
|
* .setShapeType(univerAPI.Enum.ShapeTypeEnum.Rect)
|
|
@@ -298,7 +308,8 @@ export declare class FShape {
|
|
|
298
308
|
* @example
|
|
299
309
|
* ```ts
|
|
300
310
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
301
|
-
* const fWorksheet = fWorkbook.
|
|
311
|
+
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
312
|
+
* if (!fWorksheet) return;
|
|
302
313
|
*
|
|
303
314
|
* const shapeInfo = fWorksheet.newShape()
|
|
304
315
|
* .setShapeType(univerAPI.Enum.ShapeTypeEnum.Rect)
|
|
@@ -317,7 +328,8 @@ export declare class FShape {
|
|
|
317
328
|
* @example
|
|
318
329
|
* ```ts
|
|
319
330
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
320
|
-
* const fWorksheet = fWorkbook.
|
|
331
|
+
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
332
|
+
* if (!fWorksheet) return;
|
|
321
333
|
*
|
|
322
334
|
* const shapeInfo = fWorksheet.newShape()
|
|
323
335
|
* .setShapeType(univerAPI.Enum.ShapeTypeEnum.Rect)
|
|
@@ -336,7 +348,8 @@ export declare class FShape {
|
|
|
336
348
|
* @example
|
|
337
349
|
* ```ts
|
|
338
350
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
339
|
-
* const fWorksheet = fWorkbook.
|
|
351
|
+
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
352
|
+
* if (!fWorksheet) return;
|
|
340
353
|
*
|
|
341
354
|
* const shapeInfo = fWorksheet.newShape()
|
|
342
355
|
* .setShapeType(univerAPI.Enum.ShapeTypeEnum.Rect)
|
|
@@ -356,7 +369,8 @@ export declare class FShape {
|
|
|
356
369
|
* @example
|
|
357
370
|
* ```ts
|
|
358
371
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
359
|
-
* const fWorksheet = fWorkbook.
|
|
372
|
+
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
373
|
+
* if (!fWorksheet) return;
|
|
360
374
|
*
|
|
361
375
|
* const shapeInfo = fWorksheet.newShape()
|
|
362
376
|
* .setShapeType(univerAPI.Enum.ShapeTypeEnum.Rect)
|
|
@@ -376,7 +390,8 @@ export declare class FShape {
|
|
|
376
390
|
* @example
|
|
377
391
|
* ```ts
|
|
378
392
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
379
|
-
* const fWorksheet = fWorkbook.
|
|
393
|
+
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
394
|
+
* if (!fWorksheet) return;
|
|
380
395
|
*
|
|
381
396
|
* const shapeInfo = fWorksheet.newShape()
|
|
382
397
|
* .setShapeType(univerAPI.Enum.ShapeTypeEnum.Rect)
|
|
@@ -396,7 +411,8 @@ export declare class FShape {
|
|
|
396
411
|
* @example
|
|
397
412
|
* ```ts
|
|
398
413
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
399
|
-
* const fWorksheet = fWorkbook.
|
|
414
|
+
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
415
|
+
* if (!fWorksheet) return;
|
|
400
416
|
*
|
|
401
417
|
* const shapeInfo = fWorksheet.newShape()
|
|
402
418
|
* .setShapeType(univerAPI.Enum.ShapeTypeEnum.Rect)
|
|
@@ -415,7 +431,8 @@ export declare class FShape {
|
|
|
415
431
|
* @example
|
|
416
432
|
* ```ts
|
|
417
433
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
418
|
-
* const fWorksheet = fWorkbook.
|
|
434
|
+
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
435
|
+
* if (!fWorksheet) return;
|
|
419
436
|
* const shapes = fWorksheet.getShapes();
|
|
420
437
|
*
|
|
421
438
|
* for (const shape of shapes) {
|
|
@@ -434,7 +451,8 @@ export declare class FShape {
|
|
|
434
451
|
* @example
|
|
435
452
|
* ```ts
|
|
436
453
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
437
|
-
* const fWorksheet = fWorkbook.
|
|
454
|
+
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
455
|
+
* if (!fWorksheet) return;
|
|
438
456
|
* const shapes = fWorksheet.getShapes();
|
|
439
457
|
*
|
|
440
458
|
* const basicShape = shapes.find((s) => !s.isLineShape());
|
|
@@ -460,7 +478,8 @@ export declare class FShape {
|
|
|
460
478
|
* @example
|
|
461
479
|
* ```ts
|
|
462
480
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
463
|
-
* const fWorksheet = fWorkbook.
|
|
481
|
+
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
482
|
+
* if (!fWorksheet) return;
|
|
464
483
|
* const shapes = fWorksheet.getShapes();
|
|
465
484
|
*
|
|
466
485
|
* const shape = shapes[0];
|
|
@@ -482,7 +501,8 @@ export declare class FShape {
|
|
|
482
501
|
* @example
|
|
483
502
|
* ```ts
|
|
484
503
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
485
|
-
* const fWorksheet = fWorkbook.
|
|
504
|
+
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
505
|
+
* if (!fWorksheet) return;
|
|
486
506
|
* const shapes = fWorksheet.getShapes();
|
|
487
507
|
*
|
|
488
508
|
* const lineShape = shapes.find((s) => s.isLineShape());
|
|
@@ -535,7 +555,8 @@ export declare class FShape {
|
|
|
535
555
|
* @example
|
|
536
556
|
* ```ts
|
|
537
557
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
538
|
-
* const fWorksheet = fWorkbook.
|
|
558
|
+
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
559
|
+
* if (!fWorksheet) return;
|
|
539
560
|
*
|
|
540
561
|
* const shapeInfo = fWorksheet.newShape()
|
|
541
562
|
* .setShapeType(univerAPI.Enum.ShapeTypeEnum.Rect)
|
|
@@ -556,7 +577,8 @@ export declare class FShape {
|
|
|
556
577
|
* @example
|
|
557
578
|
* ```ts
|
|
558
579
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
559
|
-
* const fWorksheet = fWorkbook.
|
|
580
|
+
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
581
|
+
* if (!fWorksheet) return;
|
|
560
582
|
* const shapes = fWorksheet.getShapes();
|
|
561
583
|
*
|
|
562
584
|
* if (shapes.length > 0) {
|
|
@@ -572,7 +594,8 @@ export declare class FShape {
|
|
|
572
594
|
* @example
|
|
573
595
|
* ```ts
|
|
574
596
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
575
|
-
* const fWorksheet = fWorkbook.
|
|
597
|
+
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
598
|
+
* if (!fWorksheet) return;
|
|
576
599
|
* const shapes = fWorksheet.getShapes();
|
|
577
600
|
*
|
|
578
601
|
* if (shapes.length > 0) {
|
|
@@ -588,7 +611,8 @@ export declare class FShape {
|
|
|
588
611
|
* @example
|
|
589
612
|
* ```ts
|
|
590
613
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
591
|
-
* const fWorksheet = fWorkbook.
|
|
614
|
+
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
615
|
+
* if (!fWorksheet) return;
|
|
592
616
|
* const shapes = fWorksheet.getShapes();
|
|
593
617
|
*
|
|
594
618
|
* if (shapes.length > 0) {
|
|
@@ -606,7 +630,8 @@ export declare class FShape {
|
|
|
606
630
|
* @example
|
|
607
631
|
* ```ts
|
|
608
632
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
609
|
-
* const fWorksheet = fWorkbook.
|
|
633
|
+
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
634
|
+
* if (!fWorksheet) return;
|
|
610
635
|
* const shapes = fWorksheet.getShapes();
|
|
611
636
|
*
|
|
612
637
|
* if (shapes.length > 0) {
|
|
@@ -626,7 +651,8 @@ export declare class FShape {
|
|
|
626
651
|
* @example
|
|
627
652
|
* ```ts
|
|
628
653
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
629
|
-
* const fWorksheet = fWorkbook.
|
|
654
|
+
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
655
|
+
* if (!fWorksheet) return;
|
|
630
656
|
* const shapes = fWorksheet.getShapes();
|
|
631
657
|
*
|
|
632
658
|
* if (shapes.length > 0) {
|
|
@@ -31,7 +31,8 @@ export interface IFWorksheetShapeMixin {
|
|
|
31
31
|
* @example
|
|
32
32
|
* ```ts
|
|
33
33
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
34
|
-
* const fWorksheet = fWorkbook.
|
|
34
|
+
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
35
|
+
* if (!fWorksheet) return;
|
|
35
36
|
*
|
|
36
37
|
* // Create a rectangle shape at cell B2.
|
|
37
38
|
* const shapeInfo = fWorksheet.newShape()
|
|
@@ -53,7 +54,8 @@ export interface IFWorksheetShapeMixin {
|
|
|
53
54
|
* @example
|
|
54
55
|
* ```ts
|
|
55
56
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
56
|
-
* const fWorksheet = fWorkbook.
|
|
57
|
+
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
58
|
+
* if (!fWorksheet) return;
|
|
57
59
|
*
|
|
58
60
|
* // Create a rectangle shape at cell B2.
|
|
59
61
|
* const shapeInfo = fWorksheet.newShape()
|
|
@@ -86,7 +88,8 @@ export interface IFWorksheetShapeMixin {
|
|
|
86
88
|
* @example
|
|
87
89
|
* ```ts
|
|
88
90
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
89
|
-
* const fWorksheet = fWorkbook.
|
|
91
|
+
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
92
|
+
* if (!fWorksheet) return;
|
|
90
93
|
*
|
|
91
94
|
* // Create a rectangle shape at cell B2 with 200x200 size.
|
|
92
95
|
* const shapeInfo = fWorksheet.newShape()
|
|
@@ -106,7 +109,8 @@ export interface IFWorksheetShapeMixin {
|
|
|
106
109
|
* @example
|
|
107
110
|
* ```ts
|
|
108
111
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
109
|
-
* const fWorksheet = fWorkbook.
|
|
112
|
+
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
113
|
+
* if (!fWorksheet) return;
|
|
110
114
|
*
|
|
111
115
|
* // Get all shapes on the active sheet.
|
|
112
116
|
* const shapes = fWorksheet.getShapes();
|
|
@@ -122,7 +126,8 @@ export interface IFWorksheetShapeMixin {
|
|
|
122
126
|
* @example
|
|
123
127
|
* ```ts
|
|
124
128
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
125
|
-
* const fWorksheet = fWorkbook.
|
|
129
|
+
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
130
|
+
* if (!fWorksheet) return;
|
|
126
131
|
*
|
|
127
132
|
* // Create a rectangle shape.
|
|
128
133
|
* const shapeInfo = fWorksheet.newShape()
|
|
@@ -155,7 +160,8 @@ export interface IFWorksheetShapeMixin {
|
|
|
155
160
|
* @example
|
|
156
161
|
* ```ts
|
|
157
162
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
158
|
-
* const fWorksheet = fWorkbook.
|
|
163
|
+
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
164
|
+
* if (!fWorksheet) return;
|
|
159
165
|
*
|
|
160
166
|
* // Get all shapes on the sheet.
|
|
161
167
|
* const shapes = fWorksheet.getShapes();
|
|
@@ -184,7 +190,8 @@ export interface IFWorksheetShapeMixin {
|
|
|
184
190
|
* @example
|
|
185
191
|
* ```ts
|
|
186
192
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
187
|
-
* const fWorksheet = fWorkbook.
|
|
193
|
+
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
194
|
+
* if (!fWorksheet) return;
|
|
188
195
|
*
|
|
189
196
|
* // Create a straight connector with arrows at cell B2 with 200x100 size.
|
|
190
197
|
* const connectorInfo = fWorksheet.newConnector()
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x336749,_0x59e143){const _0x419f90=_0x301c,_0xdc94ea=_0x336749();while(!![]){try{const _0x301248=parseInt(_0x419f90(0x139))/0x1+parseInt(_0x419f90(0x143))/0x2*(-parseInt(_0x419f90(0x12f))/0x3)+parseInt(_0x419f90(0x13c))/0x4*(parseInt(_0x419f90(0x1b0))/0x5)+parseInt(_0x419f90(0x1b2))/0x6+-parseInt(_0x419f90(0x1ba))/0x7+parseInt(_0x419f90(0x15e))/0x8+-parseInt(_0x419f90(0x163))/0x9;if(_0x301248===_0x59e143)break;else _0xdc94ea['push'](_0xdc94ea['shift']());}catch(_0x4ac3cf){_0xdc94ea['push'](_0xdc94ea['shift']());}}}(_0x172e,0x33215),function(_0x2966ad,_0x240f99){const _0x2c680a=_0x301c;typeof exports==_0x2c680a(0x19d)&&typeof module<'u'?_0x240f99(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==_0x2c680a(0x157)&&define[_0x2c680a(0x154)]?define([_0x2c680a(0x18d),_0x2c680a(0x123),_0x2c680a(0x150),_0x2c680a(0x1a9),_0x2c680a(0x14b),_0x2c680a(0x17f),_0x2c680a(0x137),'@univerjs/sheets-drawing',_0x2c680a(0x194)],_0x240f99):(_0x2966ad=typeof globalThis<'u'?globalThis:_0x2966ad||self,_0x240f99(_0x2966ad[_0x2c680a(0x13b)]={},_0x2966ad[_0x2c680a(0x142)],_0x2966ad[_0x2c680a(0x180)],_0x2966ad[_0x2c680a(0x147)],_0x2966ad['UniverCore'],_0x2966ad['UniverDrawing'],_0x2966ad[_0x2c680a(0x125)],_0x2966ad['UniverSheetsDrawing'],_0x2966ad['UniverSheetsFacade']));}(this,function(_0x5f0df1,_0x153f96,_0x3c1a33,_0x4d9a36,_0x38b0aa,_0x636280,_0x100dfc,_0x135bc6,_0x537fbb){const _0x578e73=_0x301c;Object['defineProperty'](_0x5f0df1,Symbol[_0x578e73(0x18b)],{'value':'Module'});var _0x24765d=class extends _0x3c1a33['FEnum']{get[_0x578e73(0x15c)](){const _0x109947=_0x578e73;return _0x153f96[_0x109947(0x15c)];}get[_0x578e73(0x193)](){const _0xe32788=_0x578e73;return _0x153f96[_0xe32788(0x193)];}get[_0x578e73(0x178)](){const _0x4cb41a=_0x578e73;return _0x153f96[_0x4cb41a(0x178)];}get[_0x578e73(0x13a)](){const _0x1f4402=_0x578e73;return _0x153f96[_0x1f4402(0x13a)];}get[_0x578e73(0x156)](){const _0x3c155b=_0x578e73;return _0x153f96[_0x3c155b(0x156)];}get[_0x578e73(0x1bc)](){return _0x153f96['ShapeLineCapEnum'];}get[_0x578e73(0x169)](){const _0x571954=_0x578e73;return _0x153f96[_0x571954(0x169)];}get[_0x578e73(0x13d)](){const _0x42097b=_0x578e73;return _0x153f96[_0x42097b(0x13d)];}get[_0x578e73(0x19e)](){const _0x38f0c9=_0x578e73;return _0x153f96[_0x38f0c9(0x19e)];}};_0x3c1a33['FEnum'][_0x578e73(0x12b)](_0x24765d);function _0x5c500b(_0x49dde){'@babel/helpers - typeof';const _0x54a6b3=_0x578e73;return _0x5c500b=typeof Symbol==_0x54a6b3(0x157)&&typeof Symbol[_0x54a6b3(0x126)]=='symbol'?function(_0x45fe18){return typeof _0x45fe18;}:function(_0x31bcb0){const _0x29ca89=_0x54a6b3;return _0x31bcb0&&typeof Symbol==_0x29ca89(0x157)&&_0x31bcb0[_0x29ca89(0x14a)]===Symbol&&_0x31bcb0!==Symbol[_0x29ca89(0x16f)]?'symbol':typeof _0x31bcb0;},_0x5c500b(_0x49dde);}function _0x256521(_0x3b0626,_0x5f5af8){const _0x201104=_0x578e73;if(_0x5c500b(_0x3b0626)!=_0x201104(0x19d)||!_0x3b0626)return _0x3b0626;var _0x39c468=_0x3b0626[Symbol[_0x201104(0x184)]];if(_0x39c468!==void 0x0){var _0x3361b3=_0x39c468['call'](_0x3b0626,_0x5f5af8||'default');if(_0x5c500b(_0x3361b3)!='object')return _0x3361b3;throw TypeError(_0x201104(0x1aa));}return(_0x5f5af8===_0x201104(0x195)?String:Number)(_0x3b0626);}function _0x1179ac(_0x282644){const _0x4e7017=_0x578e73;var _0x1036e8=_0x256521(_0x282644,_0x4e7017(0x195));return _0x5c500b(_0x1036e8)==_0x4e7017(0x183)?_0x1036e8:_0x1036e8+'';}function _0x3da4fe(_0x2a1ee4,_0x5c0e45,_0x1eb711){const _0x21c37a=_0x578e73;return(_0x5c0e45=_0x1179ac(_0x5c0e45))in _0x2a1ee4?Object[_0x21c37a(0x158)](_0x2a1ee4,_0x5c0e45,{'value':_0x1eb711,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2a1ee4[_0x5c0e45]=_0x1eb711,_0x2a1ee4;}var _0x5eb595=class{constructor(_0x4c7b35,_0x40b824,_0x5d46c5,_0x325b1a){const _0x1f59ef=_0x578e73;_0x3da4fe(this,_0x1f59ef(0x13e),void 0x0),_0x3da4fe(this,_0x1f59ef(0x19b),void 0x0),_0x3da4fe(this,'drawId',void 0x0),_0x3da4fe(this,'x',0x0),_0x3da4fe(this,'y',0x0),_0x3da4fe(this,'width',_0x4d9a36['DEFAULT_SHAPE_WIDTH']),_0x3da4fe(this,_0x1f59ef(0x1a4),_0x4d9a36[_0x1f59ef(0x160)]),_0x3da4fe(this,_0x1f59ef(0x190),void 0x0),_0x3da4fe(this,_0x1f59ef(0x198),{}),_0x3da4fe(this,'_injector',void 0x0),this['unitId']=_0x4c7b35,this['subUnitId']=_0x40b824,this[_0x1f59ef(0x136)]=_0x5d46c5||(0x0,_0x38b0aa[_0x1f59ef(0x1b3)])(),this[_0x1f59ef(0x15d)]=_0x325b1a;}['setPosition'](_0x5d7c80,_0x219c8d,_0x540054,_0x895ae){const _0x3cc7ea=_0x578e73;let _0x14480d=this[_0x3cc7ea(0x15d)][_0x3cc7ea(0x18c)](_0x100dfc[_0x3cc7ea(0x182)])['ensureSkeleton'](this[_0x3cc7ea(0x13e)],this[_0x3cc7ea(0x19b)]);if(!_0x14480d)throw Error(_0x3cc7ea(0x1a2)+this[_0x3cc7ea(0x13e)]+_0x3cc7ea(0x17e)+this[_0x3cc7ea(0x19b)]+_0x3cc7ea(0x1bf));let {transform:_0x48ba69}=(0x0,_0x100dfc['convertPositionCellToSheetOverGrid'])(this['unitId'],this[_0x3cc7ea(0x19b)],{'row':_0x5d7c80,'column':_0x219c8d,'rowOffset':_0x540054,'columnOffset':_0x895ae},0x1,0x1,_0x14480d);return this['x']=_0x48ba69[_0x3cc7ea(0x16c)],this['y']=_0x48ba69[_0x3cc7ea(0x1a8)],this;}['setAbsolutePosition'](_0x3021a9,_0x355f99){return this['x']=_0x3021a9,this['y']=_0x355f99,this;}[_0x578e73(0x171)](_0x20c268){const _0x1d7b83=_0x578e73;return this[_0x1d7b83(0x190)]=_0x20c268,this;}[_0x578e73(0x153)](_0x39bb71,_0x27cb63){const _0x1fda1c=_0x578e73;return this[_0x1fda1c(0x198)][_0x1fda1c(0x16b)]||(this[_0x1fda1c(0x198)][_0x1fda1c(0x16b)]={}),this[_0x1fda1c(0x198)][_0x1fda1c(0x16b)][_0x1fda1c(0x131)]=_0x153f96[_0x1fda1c(0x193)][_0x1fda1c(0x161)],_0x39bb71!==void 0x0&&(this['shapeData']['fill'][_0x1fda1c(0x1ae)]=_0x39bb71),_0x27cb63!==void 0x0&&(this[_0x1fda1c(0x198)][_0x1fda1c(0x16b)][_0x1fda1c(0x15b)]=_0x27cb63),this;}['setShapeGradientFill'](_0x406dcc,_0xf8e383,_0x38739e){const _0x5c16fc=_0x578e73;if(_0xf8e383===void 0x0||_0xf8e383[_0x5c16fc(0x127)]===0x0)throw Error('colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.');return this[_0x5c16fc(0x198)][_0x5c16fc(0x16b)]||(this[_0x5c16fc(0x198)][_0x5c16fc(0x16b)]={}),this[_0x5c16fc(0x198)][_0x5c16fc(0x16b)][_0x5c16fc(0x1a7)]=_0xf8e383,this[_0x5c16fc(0x198)]['fill']['fillType']=_0x153f96['ShapeFillEnum']['GradientFill'],this['shapeData'][_0x5c16fc(0x16b)][_0x5c16fc(0x14d)]=_0x406dcc,_0x38739e!==void 0x0&&(this[_0x5c16fc(0x198)][_0x5c16fc(0x16b)][_0x5c16fc(0x151)]=_0x38739e),this;}[_0x578e73(0x1a5)](){const _0x2b66da=_0x578e73;return this[_0x2b66da(0x198)][_0x2b66da(0x16b)]={'fillType':_0x153f96[_0x2b66da(0x193)]['NoFill']},this;}[_0x578e73(0x15a)](_0x5b7f98){const _0x222463=_0x578e73;return this[_0x222463(0x198)]['stroke']||(this['shapeData'][_0x222463(0x12d)]={}),this[_0x222463(0x198)][_0x222463(0x12d)][_0x222463(0x1ae)]=_0x5b7f98,this;}['setStrokeWidth'](_0x25794d){const _0x3f2ba3=_0x578e73;return this[_0x3f2ba3(0x198)][_0x3f2ba3(0x12d)]||(this[_0x3f2ba3(0x198)][_0x3f2ba3(0x12d)]={}),this[_0x3f2ba3(0x198)][_0x3f2ba3(0x12d)][_0x3f2ba3(0x141)]=_0x25794d,this;}[_0x578e73(0x177)](_0x1f7ac7){const _0x42df2b=_0x578e73;return this[_0x42df2b(0x198)][_0x42df2b(0x12d)]||(this[_0x42df2b(0x198)]['stroke']={}),this[_0x42df2b(0x198)][_0x42df2b(0x12d)]['dashType']=_0x1f7ac7,this;}['setStrokeLineJoinType'](_0x10cf1d){const _0x3131cc=_0x578e73;return this[_0x3131cc(0x198)][_0x3131cc(0x12d)]||(this[_0x3131cc(0x198)][_0x3131cc(0x12d)]={}),this[_0x3131cc(0x198)][_0x3131cc(0x12d)][_0x3131cc(0x185)]=_0x10cf1d,this;}['setStrokeLineCapType'](_0xe65ec4){const _0x23ba40=_0x578e73;return this[_0x23ba40(0x198)][_0x23ba40(0x12d)]||(this['shapeData'][_0x23ba40(0x12d)]={}),this[_0x23ba40(0x198)]['stroke'][_0x23ba40(0x18a)]=_0xe65ec4,this;}[_0x578e73(0x1b9)](_0x5c3f69){const _0x180ac3=_0x578e73;return this['shapeData'][_0x180ac3(0x12d)]||(this['shapeData'][_0x180ac3(0x12d)]={}),this['shapeData'][_0x180ac3(0x12d)]['opacity']=_0x5c3f69,this;}['setStrokeLineType'](_0x58814e){const _0x3715fb=_0x578e73;return this[_0x3715fb(0x198)]['stroke']||(this['shapeData'][_0x3715fb(0x12d)]={}),this['shapeData'][_0x3715fb(0x12d)][_0x3715fb(0x1b1)]=_0x58814e,this;}[_0x578e73(0x19c)](_0x49222b){const _0x55cc19=_0x578e73;return this[_0x55cc19(0x141)]=_0x49222b,this;}[_0x578e73(0x173)](_0x425871){const _0x5bbb85=_0x578e73;return this[_0x5bbb85(0x1a4)]=_0x425871,this;}[_0x578e73(0x1bb)](){const _0x2cced1=_0x578e73;let _0x41de03=this[_0x2cced1(0x15d)]['get'](_0x4d9a36[_0x2cced1(0x152)])[_0x2cced1(0x19f)](this[_0x2cced1(0x13e)],this[_0x2cced1(0x19b)],this[_0x2cced1(0x136)]);return _0x41de03?(0x0,_0x153f96['isConnectorShape'])(_0x41de03[_0x2cced1(0x1ab)]()):this[_0x2cced1(0x190)]?(0x0,_0x153f96[_0x2cced1(0x186)])(this[_0x2cced1(0x190)]):!0x1;}['getConnectionSites'](){const _0x7b14af=_0x578e73;let _0x29d0ff=this[_0x7b14af(0x15d)]['get'](_0x4d9a36[_0x7b14af(0x152)])[_0x7b14af(0x19f)](this[_0x7b14af(0x13e)],this[_0x7b14af(0x19b)],this[_0x7b14af(0x136)]);if(!_0x29d0ff)return[];let _0xf2219b=this['_injector'][_0x7b14af(0x18c)](_0x636280[_0x7b14af(0x191)])['getDrawingByParam']({'unitId':this[_0x7b14af(0x13e)],'subUnitId':this['subUnitId'],'drawingId':this[_0x7b14af(0x136)]});if(!(_0xf2219b!=null&&_0xf2219b[_0x7b14af(0x1a6)]))return[];let {width:_0x132aa8=0x0,height:_0x1f995a=0x0}=_0xf2219b[_0x7b14af(0x1a6)];return _0x29d0ff[_0x7b14af(0x170)]({'width':_0x132aa8,'height':_0x1f995a}),_0x29d0ff[_0x7b14af(0x148)]();}['getAdjustPoints'](){const _0x3c3574=_0x578e73;let _0x581ee3=this[_0x3c3574(0x15d)][_0x3c3574(0x18c)](_0x4d9a36[_0x3c3574(0x152)])['getShapeModel'](this[_0x3c3574(0x13e)],this[_0x3c3574(0x19b)],this[_0x3c3574(0x136)]);if(!_0x581ee3)return[];let _0x4f8459=this[_0x3c3574(0x15d)][_0x3c3574(0x18c)](_0x636280[_0x3c3574(0x191)])[_0x3c3574(0x1b4)]({'unitId':this['unitId'],'subUnitId':this['subUnitId'],'drawingId':this[_0x3c3574(0x136)]});if(!(_0x4f8459!=null&&_0x4f8459['transform']))return[];let {width:_0x16a055=0x0,height:_0x456cd8=0x0}=_0x4f8459[_0x3c3574(0x1a6)];return _0x581ee3[_0x3c3574(0x170)]({'width':_0x16a055,'height':_0x456cd8}),_0x581ee3['getDrawingPoints']();}[_0x578e73(0x140)](){const _0x2ceaf4=_0x578e73;let _0x363d40=this['_injector']['get'](_0x4d9a36[_0x2ceaf4(0x152)])['getShapeModel'](this[_0x2ceaf4(0x13e)],this[_0x2ceaf4(0x19b)],this[_0x2ceaf4(0x136)]);if(!_0x363d40||!(0x0,_0x153f96['isConnectorShape'])(_0x363d40[_0x2ceaf4(0x1ab)]()))return[];let _0x402a6f=this[_0x2ceaf4(0x15d)][_0x2ceaf4(0x18c)](_0x636280[_0x2ceaf4(0x191)])['getDrawingByParam']({'unitId':this['unitId'],'subUnitId':this[_0x2ceaf4(0x19b)],'drawingId':this['drawId']});if(!(_0x402a6f!=null&&_0x402a6f[_0x2ceaf4(0x1a6)]))return[];let {width:_0x1e4b53=0x0,height:_0xa4262f=0x0}=_0x402a6f[_0x2ceaf4(0x1a6)];return _0x363d40[_0x2ceaf4(0x170)]({'width':_0x1e4b53,'height':_0xa4262f}),_0x363d40[_0x2ceaf4(0x140)]();}[_0x578e73(0x145)](){const _0x280b35=_0x578e73;var _0x19cf1a;let _0x1522fe=this['_injector']['get'](_0x4d9a36[_0x280b35(0x152)])[_0x280b35(0x19f)](this[_0x280b35(0x13e)],this['subUnitId'],this[_0x280b35(0x136)]);return _0x1522fe?(_0x19cf1a=_0x1522fe[_0x280b35(0x145)]())==null?null:_0x19cf1a:null;}[_0x578e73(0x188)](){const _0x372fc9=_0x578e73;var _0x276077;let _0x21025f=this[_0x372fc9(0x15d)][_0x372fc9(0x18c)](_0x4d9a36[_0x372fc9(0x152)])[_0x372fc9(0x19f)](this[_0x372fc9(0x13e)],this[_0x372fc9(0x19b)],this['drawId']);return _0x21025f?(_0x276077=_0x21025f[_0x372fc9(0x188)]())==null?null:_0x276077:null;}[_0x578e73(0x1ad)](){const _0x4186a7=_0x578e73;var _0x2ef413,_0x2517ac;if(!this[_0x4186a7(0x190)])throw Error(_0x4186a7(0x165));if(this['x']===0x0||this['y']===0x0){let _0x352cdd=this['_injector'][_0x4186a7(0x18c)](_0x100dfc['SheetSkeletonService'])[_0x4186a7(0x17a)](this[_0x4186a7(0x13e)],this[_0x4186a7(0x19b)]);if(!_0x352cdd)throw Error(_0x4186a7(0x1a2)+this['unitId']+_0x4186a7(0x17e)+this[_0x4186a7(0x19b)]+_0x4186a7(0x1bf));let {transform:_0x4a4f32}=(0x0,_0x100dfc['convertPositionCellToSheetOverGrid'])(this['unitId'],this['subUnitId'],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x352cdd);this['x']=this['x']>0x0?this['x']:_0x4a4f32[_0x4186a7(0x16c)],this['y']=this['y']>0x0?this['y']:_0x4a4f32['top'];}return this['width']=(_0x2ef413=this['width'])==null?_0x4d9a36[_0x4186a7(0x17b)]:_0x2ef413,this[_0x4186a7(0x1a4)]=(_0x2517ac=this['height'])==null?_0x4d9a36[_0x4186a7(0x160)]:_0x2517ac,{'unitId':this[_0x4186a7(0x13e)],'subUnitId':this[_0x4186a7(0x19b)],'shapeId':this[_0x4186a7(0x136)],'shapeType':this[_0x4186a7(0x190)],'shapeData':Object[_0x4186a7(0x1b7)](this['shapeData'])[_0x4186a7(0x127)]>0x0?this[_0x4186a7(0x198)]:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x4186a7(0x141)],'height':this['height']};}[_0x578e73(0x130)](){return this['drawId'];}[_0x578e73(0x1ab)](){const _0x3c8216=_0x578e73;return this[_0x3c8216(0x190)];}[_0x578e73(0x132)](){const _0xdfc9bb=_0x578e73;return this[_0xdfc9bb(0x198)];}[_0x578e73(0x1ac)](){return{'x':this['x'],'y':this['y']};}[_0x578e73(0x192)](){const _0x2fff61=_0x578e73;return{'width':this[_0x2fff61(0x141)],'height':this['height']};}},_0x240650=class extends _0x5eb595{constructor(_0x3ea8b6,_0xe3a6e,_0x154e78,_0x2583bc){super(_0x3ea8b6,_0xe3a6e,_0x154e78,_0x2583bc),_0x3da4fe(this,'shapeData',{});}['setShapeType'](_0x1f9e80){const _0x54a786=_0x578e73;if(!(0x0,_0x153f96[_0x54a786(0x186)])(_0x1f9e80))throw Error(_0x54a786(0x144)+_0x1f9e80+',\x20but\x20expected\x20a\x20connector\x20shape\x20type.');return super[_0x54a786(0x171)](_0x1f9e80),this;}[_0x578e73(0x196)](_0x4e629d){const _0x4e026f=_0x578e73;var _0x460427,_0x2c42c8;return(_0x460427=this[_0x4e026f(0x198)])!=null&&_0x460427['ln']||(this['shapeData']['ln']={}),!((_0x2c42c8=this[_0x4e026f(0x198)])==null||(_0x2c42c8=_0x2c42c8['ln'])==null)&&_0x2c42c8[_0x4e026f(0x18f)]||(this['shapeData']['ln']['startArrow']={}),this[_0x4e026f(0x198)]['ln'][_0x4e026f(0x18f)]['type']=_0x4e629d,this;}['setEndArrowType'](_0x341c17){const _0x41b8b0=_0x578e73;var _0x28c02e,_0x41b167;return(_0x28c02e=this[_0x41b8b0(0x198)])!=null&&_0x28c02e['ln']||(this['shapeData']['ln']={}),!((_0x41b167=this['shapeData'])==null||(_0x41b167=_0x41b167['ln'])==null)&&_0x41b167[_0x41b8b0(0x16a)]||(this[_0x41b8b0(0x198)]['ln'][_0x41b8b0(0x16a)]={}),this[_0x41b8b0(0x198)]['ln'][_0x41b8b0(0x16a)]['type']=_0x341c17,this;}[_0x578e73(0x15f)](_0x426265){const _0x3cf8d8=_0x578e73;var _0x1398ac,_0x52b57f;return(_0x1398ac=this[_0x3cf8d8(0x198)])!=null&&_0x1398ac['ln']||(this[_0x3cf8d8(0x198)]['ln']={}),!((_0x52b57f=this[_0x3cf8d8(0x198)])==null||(_0x52b57f=_0x52b57f['ln'])==null)&&_0x52b57f[_0x3cf8d8(0x18f)]||(this[_0x3cf8d8(0x198)]['ln'][_0x3cf8d8(0x18f)]={}),this[_0x3cf8d8(0x198)]['ln'][_0x3cf8d8(0x18f)][_0x3cf8d8(0x14c)]=_0x426265,this;}[_0x578e73(0x1b5)](_0x4b80b0){const _0x191b1e=_0x578e73;var _0x8432e3,_0x23444f;return(_0x8432e3=this[_0x191b1e(0x198)])!=null&&_0x8432e3['ln']||(this['shapeData']['ln']={}),!((_0x23444f=this['shapeData'])==null||(_0x23444f=_0x23444f['ln'])==null)&&_0x23444f[_0x191b1e(0x16a)]||(this[_0x191b1e(0x198)]['ln']['endArrow']={}),this['shapeData']['ln'][_0x191b1e(0x16a)]['size']=_0x4b80b0,this;}[_0x578e73(0x1ad)](){const _0x27de5c=_0x578e73;return super[_0x27de5c(0x1ad)]();}[_0x578e73(0x188)](){const _0xa718dc=_0x578e73;var _0xae2755;return((_0xae2755=this[_0xa718dc(0x198)])==null||(_0xae2755=_0xae2755[_0xa718dc(0x146)])==null?void 0x0:_0xae2755['to'])||null;}[_0x578e73(0x145)](){const _0x277b9e=_0x578e73;var _0x1471c9;return((_0x1471c9=this[_0x277b9e(0x198)])==null||(_0x1471c9=_0x1471c9[_0x277b9e(0x146)])==null?void 0x0:_0x1471c9[_0x277b9e(0x138)])||null;}};function _0x42768b(_0x58c4c0,_0x58a8e2,_0x114ad9,_0x52c773,_0x17e9f6,_0xe79540){const _0x28a8f3=_0x578e73;let _0x3d8d69=_0x17e9f6['getShapeModel'](_0x58c4c0,_0x58a8e2,_0x114ad9);if(!_0x3d8d69)return null;let _0xbe0786=_0xe79540[_0x28a8f3(0x1b4)]({'unitId':_0x58c4c0,'subUnitId':_0x58a8e2,'drawingId':_0x114ad9});if(!(_0xbe0786!=null&&_0xbe0786[_0x28a8f3(0x1a6)]))return null;let {left:_0x5a6454=0x0,top:_0x37db86=0x0,width:_0x34350e=0x0,height:_0x3c86ae=0x0,flipX:_0x23a832=!0x1,flipY:_0x1be4f1=!0x1,angle:_0x5dfdb2}=_0xbe0786[_0x28a8f3(0x1a6)];_0x3d8d69[_0x28a8f3(0x170)]({'width':_0x34350e,'height':_0x3c86ae});let _0x4c8487=_0x3d8d69[_0x28a8f3(0x148)]()[_0x28a8f3(0x197)](_0x4e5622=>_0x4e5622[_0x28a8f3(0x155)]===_0x52c773);if(!_0x4c8487)return null;let _0x5dc646=_0x23a832?_0x34350e-_0x4c8487['x']:_0x4c8487['x'],_0x436d71=_0x1be4f1?_0x3c86ae-_0x4c8487['y']:_0x4c8487['y'];if(_0x5dfdb2&&_0x5dfdb2!==0x0){let _0x315c05=_0x5dfdb2*Math['PI']/0xb4,_0x4ed14e=Math['cos'](_0x315c05),_0x5ef677=Math['sin'](_0x315c05),_0x20c039=_0x34350e/0x2,_0x3ddd53=_0x3c86ae/0x2,_0x11885e=_0x5dc646-_0x20c039,_0x2fb209=_0x436d71-_0x3ddd53;_0x5dc646=_0x20c039+_0x11885e*_0x4ed14e-_0x2fb209*_0x5ef677,_0x436d71=_0x3ddd53+_0x11885e*_0x5ef677+_0x2fb209*_0x4ed14e;}_0x5dc646+=_0x5a6454,_0x436d71+=_0x37db86;let _0x3771b3=_0x4c8487[_0x28a8f3(0x1b8)]/0xea60;_0x23a832&&(_0x3771b3=0xb4-_0x3771b3),_0x1be4f1&&(_0x3771b3=-_0x3771b3),_0x3771b3+=_0x5dfdb2||0x0,_0x3771b3=(_0x3771b3%0x168+0x168)%0x168;let _0x578c8b=(0x0,_0x153f96[_0x28a8f3(0x12e)])({'left':_0x5a6454,'top':_0x37db86,'width':_0x34350e,'height':_0x3c86ae},_0x5dfdb2||0x0);return{'point':{'x':_0x5dc646,'y':_0x436d71},'angle':_0x3771b3,'bounds':_0x578c8b};}function _0x36a5ba(_0x2c2c02,_0x3f67ab){const _0x26b847=_0x578e73;let _0x2413e1=_0x3f67ab['x']-_0x2c2c02['x'],_0x3ec6fa=_0x3f67ab['y']-_0x2c2c02['y'];return Math[_0x26b847(0x189)](_0x2413e1)>=Math[_0x26b847(0x189)](_0x3ec6fa)?_0x2413e1>=0x0?0xb4:0x0:_0x3ec6fa>=0x0?0x10e:0x5a;}function _0x3b7043(_0x39cf3c,_0x4fbefc,_0x187c40,_0x42034e,_0x1a1ce1,_0x25a077,_0x510092){const _0x3ffcbf=_0x578e73;let _0x5c7633=_0x25a077[_0x3ffcbf(0x19f)](_0x39cf3c,_0x4fbefc,_0x187c40);if(!_0x5c7633)return null;let _0x39e544=_0x510092[_0x3ffcbf(0x1b4)]({'unitId':_0x39cf3c,'subUnitId':_0x4fbefc,'drawingId':_0x187c40});if(!(_0x39e544!=null&&_0x39e544['transform']))return null;let {left:_0x5b2211=0x0,top:_0x5aa66d=0x0,width:_0x32d945=0x0,height:_0x45deee=0x0,flipX:_0x303268=!0x1,flipY:_0x3b2bf6=!0x1}=_0x39e544[_0x3ffcbf(0x1a6)];_0x5c7633[_0x3ffcbf(0x170)]({'width':_0x32d945,'height':_0x45deee});let _0x58f932=_0x5c7633[_0x3ffcbf(0x140)]();if(_0x58f932[_0x3ffcbf(0x127)]<0x2)return null;let _0x175915=_0x42034e?_0x58f932[0x0]:_0x58f932[_0x58f932[_0x3ffcbf(0x127)]-0x1],_0x45925f=new _0x153f96[(_0x3ffcbf(0x16e))]({'left':_0x5b2211,'top':_0x5aa66d,'width':_0x32d945,'height':_0x45deee,'flipX':_0x303268,'flipY':_0x3b2bf6})['localToWorld'](_0x175915);return{'point':_0x45925f,'angle':_0x36a5ba(_0x1a1ce1[_0x3ffcbf(0x167)],_0x45925f),'bounds':{'left':_0x45925f['x'],'top':_0x45925f['y'],'width':0x0,'height':0x0}};}var _0x3f50d1=class extends _0x537fbb[_0x578e73(0x19a)]{async[_0x578e73(0x16d)](_0x142cf6){const _0x1a3e7d=_0x578e73;let {unitId:_0x341332,subUnitId:_0xffc602,shapeId:_0x416a0e,shapeType:_0x3869b1,shapeData:_0x1b48cd,x:_0x394aeb,y:_0x34367d,width:_0x4db41d,height:_0x63b2d9}=_0x142cf6;return this[_0x1a3e7d(0x1a0)][_0x1a3e7d(0x175)](_0x4d9a36['InsertShapeCommand']['id'],{'unitId':_0x341332,'subUnitId':_0xffc602,'shapeId':_0x416a0e,'shapeType':_0x3869b1,'shapeData':_0x1b48cd,'position':{'x':_0x394aeb,'y':_0x34367d},'width':_0x4db41d,'height':_0x63b2d9});}async[_0x578e73(0x166)](_0x51a360){const _0x17b887=_0x578e73;let {unitId:_0x55c519,subUnitId:_0x5b7031,shapeId:_0x57a947,shapeType:_0x1b6501,shapeData:_0x475c86,x:_0x5ab3d3,y:_0x30418d,width:_0xc26217,height:_0x30c8e5}=_0x51a360;return this[_0x17b887(0x1a0)][_0x17b887(0x175)](_0x4d9a36[_0x17b887(0x14f)]['id'],{'unitId':_0x55c519,'subUnitId':_0x5b7031,'shapeId':_0x57a947,'shapeType':_0x1b6501,'shapeData':_0x475c86,'position':{'x':_0x5ab3d3,'y':_0x30418d},'width':_0xc26217,'height':_0x30c8e5});}[_0x578e73(0x199)](_0x541087){const _0x3e9708=_0x578e73;let _0x35e152=this[_0x3e9708(0x128)]()['getUnitId'](),_0x15dcf0=this[_0x3e9708(0x1bd)]();if(_0x541087){let _0x2e5561=new _0x5eb595(_0x35e152,_0x15dcf0,_0x541087[_0x3e9708(0x136)],this[_0x3e9708(0x15d)]);return this[_0x3e9708(0x168)](_0x2e5561,_0x35e152,_0x15dcf0,_0x541087[_0x3e9708(0x136)]),_0x2e5561;}return new _0x5eb595(_0x35e152,_0x15dcf0,(0x0,_0x38b0aa[_0x3e9708(0x1b3)])(),this[_0x3e9708(0x15d)]);}[_0x578e73(0x1b6)](_0x39c7aa){const _0x24e540=_0x578e73;let _0x50fce3=this[_0x24e540(0x128)]()[_0x24e540(0x13f)](),_0x529b3c=this[_0x24e540(0x1bd)]();if(_0x39c7aa){let _0x5588aa=new _0x240650(_0x50fce3,_0x529b3c,_0x39c7aa[_0x24e540(0x136)],this[_0x24e540(0x15d)]);return this[_0x24e540(0x168)](_0x5588aa,_0x50fce3,_0x529b3c,_0x39c7aa[_0x24e540(0x136)]),_0x5588aa;}return new _0x240650(_0x50fce3,_0x529b3c,(0x0,_0x38b0aa[_0x24e540(0x1b3)])(),this[_0x24e540(0x15d)]);}[_0x578e73(0x135)](){const _0x11bb77=_0x578e73;let _0x1d24e9=this[_0x11bb77(0x15d)][_0x11bb77(0x18c)](_0x135bc6['ISheetDrawingService']),_0x3c4dfa=this['getWorkbook']()[_0x11bb77(0x13f)](),_0x4e4ab0=this[_0x11bb77(0x1bd)](),_0x18bb2a=_0x1d24e9['getDrawingData'](_0x3c4dfa,_0x4e4ab0);if(!_0x18bb2a)return[];let _0x20af76=[];for(let [_0x82743c,_0x4112d1]of Object[_0x11bb77(0x149)](_0x18bb2a))if(_0x4112d1&&_0x4112d1[_0x11bb77(0x162)]===_0x38b0aa['DrawingTypeEnum'][_0x11bb77(0x174)]){let _0x44db57=new _0x5eb595(_0x3c4dfa,_0x4e4ab0,_0x82743c,this['_injector']);this[_0x11bb77(0x168)](_0x44db57,_0x3c4dfa,_0x4e4ab0,_0x82743c),_0x20af76[_0x11bb77(0x159)](_0x44db57);}return _0x20af76;}[_0x578e73(0x18e)](_0x4b78f2){const _0x368d12=_0x578e73;let {unitId:_0xbda03b,subUnitId:_0x4fc6a4,drawId:_0x3142fa}=_0x4b78f2;return this[_0x368d12(0x1a0)][_0x368d12(0x175)](_0x135bc6[_0x368d12(0x124)]['id'],{'unitId':_0xbda03b,'drawings':[{'unitId':_0xbda03b,'subUnitId':_0x4fc6a4,'drawingId':_0x3142fa,'drawingType':_0x38b0aa['DrawingTypeEnum']['DRAWING_SHAPE']}]});}async[_0x578e73(0x17d)](_0x39ed09){const _0x350b97=_0x578e73;let {connector:_0x5d9ae8,startTarget:_0x7f3100,endTarget:_0x44f1c9}=_0x39ed09;if(!_0x7f3100&&!_0x44f1c9)return!0x1;let _0x331e02=this[_0x350b97(0x128)]()[_0x350b97(0x13f)](),_0x97c206=this['getSheetId'](),_0x4eb3b1=this['_injector'][_0x350b97(0x18c)](_0x4d9a36[_0x350b97(0x152)]),_0x7172b8=this['_injector']['get'](_0x636280[_0x350b97(0x191)]),_0x26b5ed=_0x4eb3b1[_0x350b97(0x19f)](_0x331e02,_0x97c206,_0x5d9ae8['drawId']);if(!_0x26b5ed)return!0x1;let _0x3d2f9a=_0x26b5ed[_0x350b97(0x1ab)](),_0x2726e0=_0x26b5ed[_0x350b97(0x172)](),_0x102da8={};for(let _0x3ee76d of _0x26b5ed[_0x350b97(0x17c)]()){let _0x6ec497=_0x26b5ed['getAdjustValueByName'](_0x3ee76d);_0x6ec497!==void 0x0&&(_0x102da8[_0x3ee76d]=_0x6ec497);}let {startInfo:_0x320b68,endInfo:_0x454b90}=this[_0x350b97(0x164)](_0x331e02,_0x97c206,_0x5d9ae8,_0x26b5ed,_0x7f3100,_0x44f1c9,_0x4eb3b1,_0x7172b8,_0x2726e0);if(!_0x320b68||!_0x454b90)return!0x1;let _0xc16d5a=(0x0,_0x153f96[_0x350b97(0x1a1)])((0x0,_0x153f96['routeConnectorLineShape'])(_0x320b68,_0x454b90,_0x3d2f9a),_0x3d2f9a),_0x43b686={};return _0x7f3100?_0x43b686[_0x350b97(0x138)]={'shapeId':_0x7f3100[_0x350b97(0x1be)][_0x350b97(0x136)],'cxnIndex':_0x7f3100[_0x350b97(0x134)]}:_0x2726e0!=null&&_0x2726e0[_0x350b97(0x138)]&&(_0x43b686[_0x350b97(0x138)]=_0x2726e0[_0x350b97(0x138)]),_0x44f1c9?_0x43b686['to']={'shapeId':_0x44f1c9[_0x350b97(0x1be)][_0x350b97(0x136)],'cxnIndex':_0x44f1c9['connectionSiteIndex']}:_0x2726e0!=null&&_0x2726e0['to']&&(_0x43b686['to']=_0x2726e0['to']),this[_0x350b97(0x1a0)][_0x350b97(0x175)](_0x4d9a36[_0x350b97(0x181)]['id'],{'unitId':_0x331e02,'subUnitId':_0x97c206,'connectorShapeId':_0x5d9ae8['drawId'],'width':_0xc16d5a['worldRect'][_0x350b97(0x141)],'height':_0xc16d5a[_0x350b97(0x12c)][_0x350b97(0x1a4)],'left':_0xc16d5a['worldRect'][_0x350b97(0x16c)],'top':_0xc16d5a['worldRect'][_0x350b97(0x1a8)],'flipX':_0xc16d5a[_0x350b97(0x12c)][_0x350b97(0x176)]||!0x1,'flipY':_0xc16d5a[_0x350b97(0x12c)]['flipY']||!0x1,'oldAdjustValues':_0x102da8,'newAdjustValues':_0xc16d5a['adjustValues'],'newLineType':_0xc16d5a[_0x350b97(0x14e)],'oldLineType':_0x3d2f9a,'rotation':_0xc16d5a[_0x350b97(0x133)],'oldRelation':_0x2726e0,'newRelation':_0x43b686});}['_preloadShapeProperties'](_0x5a50b3,_0x2575ee,_0x5c01e8,_0x45987e){const _0x59508b=_0x578e73;let _0x3e1154=this[_0x59508b(0x15d)][_0x59508b(0x18c)](_0x636280[_0x59508b(0x191)])['getDrawingByParam']({'unitId':_0x2575ee,'subUnitId':_0x5c01e8,'drawingId':_0x45987e});if(_0x3e1154!=null&&_0x3e1154['transform']){var _0x52a72d,_0x1aef53,_0x4b0621,_0x454f08;_0x5a50b3['x']=(_0x52a72d=_0x3e1154[_0x59508b(0x1a6)][_0x59508b(0x16c)])==null?0x0:_0x52a72d,_0x5a50b3['y']=(_0x1aef53=_0x3e1154['transform'][_0x59508b(0x1a8)])==null?0x0:_0x1aef53,_0x5a50b3[_0x59508b(0x141)]=(_0x4b0621=_0x3e1154[_0x59508b(0x1a6)][_0x59508b(0x141)])==null?_0x5a50b3['width']:_0x4b0621,_0x5a50b3[_0x59508b(0x1a4)]=(_0x454f08=_0x3e1154[_0x59508b(0x1a6)][_0x59508b(0x1a4)])==null?_0x5a50b3[_0x59508b(0x1a4)]:_0x454f08;}let _0x671132=this['_injector'][_0x59508b(0x18c)](_0x4d9a36['SheetsShapeService'])[_0x59508b(0x19f)](_0x2575ee,_0x5c01e8,_0x45987e);if(_0x671132){_0x5a50b3[_0x59508b(0x190)]=_0x671132['getShapeType']();let _0x4e56ef=_0x671132[_0x59508b(0x132)]();_0x4e56ef&&(_0x5a50b3[_0x59508b(0x198)]=JSON[_0x59508b(0x129)](JSON['stringify'](_0x4e56ef)));}}[_0x578e73(0x164)](_0x3c12eb,_0x37731a,_0x1ae958,_0x2a6fb8,_0x268e59,_0x435442,_0x48ec8b,_0x368f72,_0x5afca8){const _0x3ca0ab=_0x578e73;let _0x284e46=null,_0x5a580e=null;return _0x268e59&&(_0x284e46=_0x42768b(_0x3c12eb,_0x37731a,_0x268e59[_0x3ca0ab(0x1be)][_0x3ca0ab(0x136)],_0x268e59['connectionSiteIndex'],_0x48ec8b,_0x368f72)),_0x435442&&(_0x5a580e=_0x42768b(_0x3c12eb,_0x37731a,_0x435442[_0x3ca0ab(0x1be)][_0x3ca0ab(0x136)],_0x435442[_0x3ca0ab(0x134)],_0x48ec8b,_0x368f72)),_0x284e46||(_0x284e46=this[_0x3ca0ab(0x179)](_0x3c12eb,_0x37731a,_0x1ae958[_0x3ca0ab(0x136)],!0x0,_0x5a580e,_0x5afca8==null?void 0x0:_0x5afca8[_0x3ca0ab(0x138)],_0x48ec8b,_0x368f72)),_0x5a580e||(_0x5a580e=this[_0x3ca0ab(0x179)](_0x3c12eb,_0x37731a,_0x1ae958[_0x3ca0ab(0x136)],!0x1,_0x284e46,_0x5afca8==null?void 0x0:_0x5afca8['to'],_0x48ec8b,_0x368f72)),{'startInfo':_0x284e46,'endInfo':_0x5a580e};}[_0x578e73(0x179)](_0x1d3c84,_0x5aeb38,_0x1d0b00,_0x107fef,_0x164d68,_0x5cdb9a,_0x50534d,_0x84f667){const _0x2b2553=_0x578e73;if(_0x5cdb9a){let _0x6d5062=_0x42768b(_0x1d3c84,_0x5aeb38,_0x5cdb9a[_0x2b2553(0x1af)],_0x5cdb9a[_0x2b2553(0x12a)],_0x50534d,_0x84f667);if(_0x6d5062)return _0x6d5062;}return _0x164d68?_0x3b7043(_0x1d3c84,_0x5aeb38,_0x1d0b00,_0x107fef,_0x164d68,_0x50534d,_0x84f667):null;}};_0x537fbb['FWorksheet']['extend'](_0x3f50d1),_0x5f0df1[_0x578e73(0x187)]=_0x240650,_0x5f0df1[_0x578e73(0x1a3)]=_0x5eb595;}));function _0x301c(_0x1c9dc1,_0x19ef19){_0x1c9dc1=_0x1c9dc1-0x123;const _0x172ea8=_0x172e();let _0x301ce2=_0x172ea8[_0x1c9dc1];return _0x301ce2;}function _0x172e(){const _0x524da4=['SetShapeDrawingDataCommand','@univerjs/core/facade','gradientAngle','SheetsShapeService','setShapeSolidFill','amd','index','ShapeLineDashEnum','function','defineProperty','push','setStrokeColor','opacity','ShapeTypeEnum','_injector','1540792meiCSA','setStartArrowSize','DEFAULT_SHAPE_HEIGHT','SolidFill','drawingType','1314207rvIYeV','_resolveEndpoints','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','updateShape','point','_preloadShapeProperties','ShapeLineJoinEnum','endArrow','fill','left','insertShape','ConnectorCoordinateTransform','prototype','updateContext','setShapeType','getShapeRelation','setHeight','DRAWING_SHAPE','executeCommand','flipX','setStrokeLineDashType','ShapeGradientTypeEnum','_resolveExistingOrFreeEndpoint','ensureSkeleton','DEFAULT_SHAPE_WIDTH','getAdjustNames','connectShapes','\x20and\x20subUnitId\x20','@univerjs/drawing','UniverCoreFacade','UpdateConnectorRelationCommand','SheetSkeletonService','symbol','toPrimitive','lineJoinType','isConnectorShape','FConnectorShape','getEndConnectInfo','abs','capType','toStringTag','get','exports','removeShape','startArrow','shapeType','IDrawingManagerService','getSize','ShapeFillEnum','@univerjs/sheets/facade','string','setStartArrowType','find','shapeData','newShape','FWorksheet','subUnitId','setWidth','object','ShapeArrowSizeEnum','getShapeModel','_commandService','computeConnectorRouteLayout','Skeleton\x20for\x20unitId\x20','FShape','height','setNoneFill','transform','gradientStops','top','@univerjs-pro/sheets-shape','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getShapeType','getPosition','build','color','shapeId','10sLBSIH','lineStrokeType','1521084HZXUEH','generateRandomId','getDrawingByParam','setEndArrowSize','newConnector','keys','ang','setStrokeOpacity','2249905iAwPCN','isLineShape','ShapeLineCapEnum','getSheetId','shape','\x20not\x20found','@univerjs-pro/engine-shape','RemoveSheetDrawingCommand','UniverSheets','iterator','length','getWorkbook','parse','cxnIndex','extend','worldRect','stroke','getBasicShapeRotateBound','80226PcZzBI','getShapeId','fillType','getShapeData','rotation','connectionSiteIndex','getShapes','drawId','@univerjs/sheets','from','7056WHircU','ShapeLineTypeEnum','UniverProSheetsShapeFacade','500880OUBYfG','ShapeArrowTypeEnum','unitId','getUnitId','getConnectorLinePoints','width','UniverProEngineShape','2QFYRvb','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','getStartConnectInfo','relation','UniverProSheetsShape','getConnectionSiteList','entries','constructor','@univerjs/core','size','gradientType','lineType'];_0x172e=function(){return _0x524da4;};return _0x172e();}
|
|
1
|
+
function _0x3c3e(){const _0x1b50bf=['rotation','getShapes','toPrimitive','point','unitId','141817OxLMdK','shapeData','@univerjs-pro/engine-shape','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','UniverProSheetsShapeFacade','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','dashType','stroke','startArrow','Skeleton\x20for\x20unitId\x20','abs','fill','GradientFill','getEndConnectInfo','shape','updateContext','call','setWidth','localToWorld','458qwwmoA','drawingType','52CRRvgm','flipX','getBasicShapeRotateBound','endArrow','ShapeTypeEnum','UniverSheetsDrawing','gradientType','top','14864710EvjApD','defineProperty','shapeId','14LJlynu','cos','parse','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','insertShape','8bgPVpY','Module','UniverCoreFacade','11sHlxLk','582020FzbHQV','ShapeGradientTypeEnum','SolidFill','getShapeId','opacity','DrawingTypeEnum','length','SheetsShapeService','symbol','_resolveEndpoints','keys','FWorksheet','@univerjs/sheets/facade','\x20and\x20subUnitId\x20','\x20not\x20found','getAdjustNames','FEnum','UniverProEngineShape','DRAWING_SHAPE','@univerjs/core','stringify','setStrokeLineJoinType','setShapeSolidFill','connectionSiteIndex','worldRect','size','getConnectionSiteList','entries','IDrawingManagerService','default','5357817lFfaLm','_resolveExistingOrFreeEndpoint','ShapeArrowTypeEnum','SheetSkeletonService','prototype','InsertShapeCommand','setStrokeLineType','4951zabrUq','_commandService','function','left','convertPositionCellToSheetOverGrid','ShapeLineDashEnum','transform','flipY','object','shapeType','getShapeModel','connectShapes','setShapeType','newConnector','width','getDrawingByParam','capType','build','ensureSkeleton','UniverSheets','executeCommand','ISheetDrawingService','lineType','DEFAULT_SHAPE_WIDTH','setStartArrowSize',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','@univerjs/core/facade','type','_preloadShapeProperties','cxnIndex','setNoneFill','routeConnectorLineShape','@univerjs/sheets','from','DEFAULT_SHAPE_HEIGHT','setShapeGradientFill','subUnitId','setStartArrowType','index','getAdjustPoints','UniverCore','getUnitId','2352ziLnAr','iterator','getSize','3377382MCqvpO','ShapeLineCapEnum','setStrokeOpacity','color','find','ShapeLineTypeEnum','4284690IrnYEt','ShapeFillEnum','getConnectorLinePoints','getStartConnectInfo','get','setAbsolutePosition','getSheetId','@univerjs/sheets-drawing','getDrawingData','getShapeType','@univerjs/drawing','setPosition','getShapeData','updateShape','setEndArrowType','height','FConnectorShape','_injector','UpdateConnectorRelationCommand','generateRandomId','ConnectorCoordinateTransform','ShapeLineJoinEnum','ang','drawId','getShapeRelation','getWorkbook','relation','extend','lineJoinType','toStringTag','gradientAngle','removeShape','UniverProSheetsShape','FShape','SetShapeDrawingDataCommand'];_0x3c3e=function(){return _0x1b50bf;};return _0x3c3e();}function _0xedd8(_0x5d08bf,_0x5ec1d1){_0x5d08bf=_0x5d08bf-0x163;const _0x3c3e05=_0x3c3e();let _0xedd891=_0x3c3e05[_0x5d08bf];return _0xedd891;}(function(_0x1ce54b,_0x85ccb3){const _0x14faf0=_0xedd8,_0x279317=_0x1ce54b();while(!![]){try{const _0x555f66=parseInt(_0x14faf0(0x1a5))/0x1*(parseInt(_0x14faf0(0x16a))/0x2)+parseInt(_0x14faf0(0x1d2))/0x3+parseInt(_0x14faf0(0x16c))/0x4*(-parseInt(_0x14faf0(0x180))/0x5)+-parseInt(_0x14faf0(0x1d8))/0x6*(-parseInt(_0x14faf0(0x177))/0x7)+-parseInt(_0x14faf0(0x17c))/0x8*(parseInt(_0x14faf0(0x19e))/0x9)+-parseInt(_0x14faf0(0x174))/0xa*(-parseInt(_0x14faf0(0x17f))/0xb)+-parseInt(_0x14faf0(0x1cf))/0xc*(parseInt(_0x14faf0(0x200))/0xd);if(_0x555f66===_0x85ccb3)break;else _0x279317['push'](_0x279317['shift']());}catch(_0xe1ad54){_0x279317['push'](_0x279317['shift']());}}}(_0x3c3e,0xe2739),function(_0x4f508f,_0x400413){const _0x28df6a=_0xedd8;typeof exports==_0x28df6a(0x1ad)&&typeof module<'u'?_0x400413(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==_0x28df6a(0x1a7)&&define['amd']?define(['exports',_0x28df6a(0x202),_0x28df6a(0x1bf),'@univerjs-pro/sheets-shape',_0x28df6a(0x193),_0x28df6a(0x1e2),_0x28df6a(0x1c5),_0x28df6a(0x1df),_0x28df6a(0x18c)],_0x400413):(_0x4f508f=typeof globalThis<'u'?globalThis:_0x4f508f||self,_0x400413(_0x4f508f[_0x28df6a(0x204)]={},_0x4f508f[_0x28df6a(0x191)],_0x4f508f[_0x28df6a(0x17e)],_0x4f508f[_0x28df6a(0x1f8)],_0x4f508f[_0x28df6a(0x1cd)],_0x4f508f['UniverDrawing'],_0x4f508f[_0x28df6a(0x1b8)],_0x4f508f[_0x28df6a(0x171)],_0x4f508f['UniverSheetsFacade']));}(this,function(_0x3d3915,_0xc8edff,_0x45c64d,_0x17e23b,_0x5272a5,_0x437071,_0x589c3e,_0x482202,_0x5a18f5){const _0x1265a8=_0xedd8;Object[_0x1265a8(0x175)](_0x3d3915,Symbol[_0x1265a8(0x1f5)],{'value':_0x1265a8(0x17d)});var _0xaf1ee4=class extends _0x45c64d[_0x1265a8(0x190)]{get['ShapeTypeEnum'](){const _0x3d64e8=_0x1265a8;return _0xc8edff[_0x3d64e8(0x170)];}get[_0x1265a8(0x1d9)](){const _0x1d154c=_0x1265a8;return _0xc8edff[_0x1d154c(0x1d9)];}get[_0x1265a8(0x181)](){const _0xcbfce7=_0x1265a8;return _0xc8edff[_0xcbfce7(0x181)];}get['ShapeLineTypeEnum'](){const _0x16ad07=_0x1265a8;return _0xc8edff[_0x16ad07(0x1d7)];}get[_0x1265a8(0x1aa)](){const _0x4d9bbf=_0x1265a8;return _0xc8edff[_0x4d9bbf(0x1aa)];}get[_0x1265a8(0x1d3)](){return _0xc8edff['ShapeLineCapEnum'];}get[_0x1265a8(0x1ed)](){return _0xc8edff['ShapeLineJoinEnum'];}get['ShapeArrowTypeEnum'](){const _0x12a99e=_0x1265a8;return _0xc8edff[_0x12a99e(0x1a0)];}get['ShapeArrowSizeEnum'](){return _0xc8edff['ShapeArrowSizeEnum'];}};_0x45c64d[_0x1265a8(0x190)][_0x1265a8(0x1f3)](_0xaf1ee4);function _0x4760b5(_0x541f34){'@babel/helpers - typeof';const _0x23c8e9=_0x1265a8;return _0x4760b5=typeof Symbol==_0x23c8e9(0x1a7)&&typeof Symbol[_0x23c8e9(0x1d0)]==_0x23c8e9(0x188)?function(_0x3b78c5){return typeof _0x3b78c5;}:function(_0xa84cd9){const _0x282c51=_0x23c8e9;return _0xa84cd9&&typeof Symbol==_0x282c51(0x1a7)&&_0xa84cd9['constructor']===Symbol&&_0xa84cd9!==Symbol[_0x282c51(0x1a2)]?'symbol':typeof _0xa84cd9;},_0x4760b5(_0x541f34);}function _0x146a31(_0x185dfa,_0x38e8bd){const _0x18751e=_0x1265a8;if(_0x4760b5(_0x185dfa)!=_0x18751e(0x1ad)||!_0x185dfa)return _0x185dfa;var _0x3c26a2=_0x185dfa[Symbol[_0x18751e(0x1fd)]];if(_0x3c26a2!==void 0x0){var _0x42a7c9=_0x3c26a2[_0x18751e(0x167)](_0x185dfa,_0x38e8bd||_0x18751e(0x19d));if(_0x4760b5(_0x42a7c9)!=_0x18751e(0x1ad))return _0x42a7c9;throw TypeError(_0x18751e(0x205));}return(_0x38e8bd==='string'?String:Number)(_0x185dfa);}function _0x133d12(_0x5c8354){const _0x66c9e6=_0x1265a8;var _0x55b73f=_0x146a31(_0x5c8354,'string');return _0x4760b5(_0x55b73f)==_0x66c9e6(0x188)?_0x55b73f:_0x55b73f+'';}function _0x4ffd9b(_0x7acc76,_0x39d154,_0x2f5430){const _0xc8e05b=_0x1265a8;return(_0x39d154=_0x133d12(_0x39d154))in _0x7acc76?Object[_0xc8e05b(0x175)](_0x7acc76,_0x39d154,{'value':_0x2f5430,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x7acc76[_0x39d154]=_0x2f5430,_0x7acc76;}var _0x42aab5=class{constructor(_0x3240f4,_0xda2f71,_0x39d894,_0x225dc4){const _0x19a337=_0x1265a8;_0x4ffd9b(this,_0x19a337(0x1ff),void 0x0),_0x4ffd9b(this,_0x19a337(0x1c9),void 0x0),_0x4ffd9b(this,_0x19a337(0x1ef),void 0x0),_0x4ffd9b(this,'x',0x0),_0x4ffd9b(this,'y',0x0),_0x4ffd9b(this,_0x19a337(0x1b3),_0x17e23b[_0x19a337(0x1bc)]),_0x4ffd9b(this,'height',_0x17e23b[_0x19a337(0x1c7)]),_0x4ffd9b(this,'shapeType',void 0x0),_0x4ffd9b(this,_0x19a337(0x201),{}),_0x4ffd9b(this,_0x19a337(0x1e9),void 0x0),this['unitId']=_0x3240f4,this[_0x19a337(0x1c9)]=_0xda2f71,this[_0x19a337(0x1ef)]=_0x39d894||(0x0,_0x5272a5['generateRandomId'])(),this['_injector']=_0x225dc4;}[_0x1265a8(0x1e3)](_0x3c0407,_0x12330d,_0x476601,_0x316e9f){const _0x511afd=_0x1265a8;let _0x3405d4=this['_injector'][_0x511afd(0x1dc)](_0x589c3e[_0x511afd(0x1a1)])[_0x511afd(0x1b7)](this[_0x511afd(0x1ff)],this[_0x511afd(0x1c9)]);if(!_0x3405d4)throw Error('Skeleton\x20for\x20unitId\x20'+this[_0x511afd(0x1ff)]+'\x20and\x20subUnitId\x20'+this[_0x511afd(0x1c9)]+_0x511afd(0x18e));let {transform:_0x11a8d1}=(0x0,_0x589c3e[_0x511afd(0x1a9)])(this[_0x511afd(0x1ff)],this[_0x511afd(0x1c9)],{'row':_0x3c0407,'column':_0x12330d,'rowOffset':_0x476601,'columnOffset':_0x316e9f},0x1,0x1,_0x3405d4);return this['x']=_0x11a8d1[_0x511afd(0x1a8)],this['y']=_0x11a8d1[_0x511afd(0x173)],this;}[_0x1265a8(0x1dd)](_0x138ca9,_0x55ca6a){return this['x']=_0x138ca9,this['y']=_0x55ca6a,this;}[_0x1265a8(0x1b1)](_0x1901cc){const _0x1b0e7d=_0x1265a8;return this[_0x1b0e7d(0x1ae)]=_0x1901cc,this;}[_0x1265a8(0x196)](_0xaac51a,_0x48bff9){const _0x2cdcae=_0x1265a8;return this[_0x2cdcae(0x201)][_0x2cdcae(0x20b)]||(this[_0x2cdcae(0x201)][_0x2cdcae(0x20b)]={}),this[_0x2cdcae(0x201)]['fill']['fillType']=_0xc8edff[_0x2cdcae(0x1d9)][_0x2cdcae(0x182)],_0xaac51a!==void 0x0&&(this[_0x2cdcae(0x201)][_0x2cdcae(0x20b)][_0x2cdcae(0x1d5)]=_0xaac51a),_0x48bff9!==void 0x0&&(this[_0x2cdcae(0x201)][_0x2cdcae(0x20b)][_0x2cdcae(0x184)]=_0x48bff9),this;}[_0x1265a8(0x1c8)](_0x266ad9,_0x2edda0,_0x5a6f77){const _0x1b3b78=_0x1265a8;if(_0x2edda0===void 0x0||_0x2edda0[_0x1b3b78(0x186)]===0x0)throw Error(_0x1b3b78(0x203));return this[_0x1b3b78(0x201)][_0x1b3b78(0x20b)]||(this['shapeData'][_0x1b3b78(0x20b)]={}),this['shapeData'][_0x1b3b78(0x20b)]['gradientStops']=_0x2edda0,this['shapeData'][_0x1b3b78(0x20b)]['fillType']=_0xc8edff['ShapeFillEnum'][_0x1b3b78(0x163)],this['shapeData']['fill'][_0x1b3b78(0x172)]=_0x266ad9,_0x5a6f77!==void 0x0&&(this['shapeData']['fill'][_0x1b3b78(0x1f6)]=_0x5a6f77),this;}[_0x1265a8(0x1c3)](){const _0x3ccb0e=_0x1265a8;return this[_0x3ccb0e(0x201)][_0x3ccb0e(0x20b)]={'fillType':_0xc8edff[_0x3ccb0e(0x1d9)]['NoFill']},this;}['setStrokeColor'](_0x1dc879){const _0x265bf8=_0x1265a8;return this[_0x265bf8(0x201)][_0x265bf8(0x207)]||(this[_0x265bf8(0x201)]['stroke']={}),this[_0x265bf8(0x201)]['stroke'][_0x265bf8(0x1d5)]=_0x1dc879,this;}['setStrokeWidth'](_0x248e8c){const _0x524d5c=_0x1265a8;return this[_0x524d5c(0x201)][_0x524d5c(0x207)]||(this['shapeData'][_0x524d5c(0x207)]={}),this['shapeData'][_0x524d5c(0x207)]['width']=_0x248e8c,this;}['setStrokeLineDashType'](_0x18aa7f){const _0x2ef2fb=_0x1265a8;return this[_0x2ef2fb(0x201)][_0x2ef2fb(0x207)]||(this['shapeData'][_0x2ef2fb(0x207)]={}),this[_0x2ef2fb(0x201)][_0x2ef2fb(0x207)][_0x2ef2fb(0x206)]=_0x18aa7f,this;}[_0x1265a8(0x195)](_0x4deaed){const _0x57f930=_0x1265a8;return this['shapeData'][_0x57f930(0x207)]||(this[_0x57f930(0x201)][_0x57f930(0x207)]={}),this[_0x57f930(0x201)][_0x57f930(0x207)][_0x57f930(0x1f4)]=_0x4deaed,this;}['setStrokeLineCapType'](_0x24ada7){const _0x24853f=_0x1265a8;return this['shapeData'][_0x24853f(0x207)]||(this[_0x24853f(0x201)][_0x24853f(0x207)]={}),this[_0x24853f(0x201)][_0x24853f(0x207)][_0x24853f(0x1b5)]=_0x24ada7,this;}[_0x1265a8(0x1d4)](_0x42aabd){const _0x1f56fa=_0x1265a8;return this[_0x1f56fa(0x201)][_0x1f56fa(0x207)]||(this[_0x1f56fa(0x201)][_0x1f56fa(0x207)]={}),this[_0x1f56fa(0x201)]['stroke'][_0x1f56fa(0x184)]=_0x42aabd,this;}[_0x1265a8(0x1a4)](_0x2b7aa4){const _0x480876=_0x1265a8;return this[_0x480876(0x201)][_0x480876(0x207)]||(this[_0x480876(0x201)][_0x480876(0x207)]={}),this[_0x480876(0x201)][_0x480876(0x207)]['lineStrokeType']=_0x2b7aa4,this;}[_0x1265a8(0x168)](_0x5cffd5){const _0x3e52e4=_0x1265a8;return this[_0x3e52e4(0x1b3)]=_0x5cffd5,this;}['setHeight'](_0x29964b){const _0x1df8c1=_0x1265a8;return this[_0x1df8c1(0x1e7)]=_0x29964b,this;}['isLineShape'](){const _0x5a8e2e=_0x1265a8;let _0x2963a5=this[_0x5a8e2e(0x1e9)]['get'](_0x17e23b[_0x5a8e2e(0x187)])[_0x5a8e2e(0x1af)](this[_0x5a8e2e(0x1ff)],this[_0x5a8e2e(0x1c9)],this[_0x5a8e2e(0x1ef)]);return _0x2963a5?(0x0,_0xc8edff['isConnectorShape'])(_0x2963a5[_0x5a8e2e(0x1e1)]()):this[_0x5a8e2e(0x1ae)]?(0x0,_0xc8edff['isConnectorShape'])(this[_0x5a8e2e(0x1ae)]):!0x1;}['getConnectionSites'](){const _0x11a1f0=_0x1265a8;let _0x1dd293=this[_0x11a1f0(0x1e9)]['get'](_0x17e23b[_0x11a1f0(0x187)])[_0x11a1f0(0x1af)](this[_0x11a1f0(0x1ff)],this['subUnitId'],this[_0x11a1f0(0x1ef)]);if(!_0x1dd293)return[];let _0x35bc22=this[_0x11a1f0(0x1e9)][_0x11a1f0(0x1dc)](_0x437071[_0x11a1f0(0x19c)])[_0x11a1f0(0x1b4)]({'unitId':this['unitId'],'subUnitId':this[_0x11a1f0(0x1c9)],'drawingId':this[_0x11a1f0(0x1ef)]});if(!(_0x35bc22!=null&&_0x35bc22[_0x11a1f0(0x1ab)]))return[];let {width:_0x56a67e=0x0,height:_0x29be80=0x0}=_0x35bc22[_0x11a1f0(0x1ab)];return _0x1dd293[_0x11a1f0(0x166)]({'width':_0x56a67e,'height':_0x29be80}),_0x1dd293[_0x11a1f0(0x19a)]();}[_0x1265a8(0x1cc)](){const _0x440756=_0x1265a8;let _0x3cfdee=this['_injector']['get'](_0x17e23b[_0x440756(0x187)])[_0x440756(0x1af)](this[_0x440756(0x1ff)],this[_0x440756(0x1c9)],this['drawId']);if(!_0x3cfdee)return[];let _0x43ab12=this['_injector'][_0x440756(0x1dc)](_0x437071[_0x440756(0x19c)])['getDrawingByParam']({'unitId':this[_0x440756(0x1ff)],'subUnitId':this[_0x440756(0x1c9)],'drawingId':this[_0x440756(0x1ef)]});if(!(_0x43ab12!=null&&_0x43ab12[_0x440756(0x1ab)]))return[];let {width:_0x48ca1f=0x0,height:_0x4ed327=0x0}=_0x43ab12[_0x440756(0x1ab)];return _0x3cfdee[_0x440756(0x166)]({'width':_0x48ca1f,'height':_0x4ed327}),_0x3cfdee['getDrawingPoints']();}['getConnectorLinePoints'](){const _0x8ce5bf=_0x1265a8;let _0x5caf48=this['_injector']['get'](_0x17e23b[_0x8ce5bf(0x187)])[_0x8ce5bf(0x1af)](this['unitId'],this[_0x8ce5bf(0x1c9)],this['drawId']);if(!_0x5caf48||!(0x0,_0xc8edff['isConnectorShape'])(_0x5caf48['getShapeType']()))return[];let _0x266abf=this[_0x8ce5bf(0x1e9)][_0x8ce5bf(0x1dc)](_0x437071[_0x8ce5bf(0x19c)])[_0x8ce5bf(0x1b4)]({'unitId':this['unitId'],'subUnitId':this[_0x8ce5bf(0x1c9)],'drawingId':this['drawId']});if(!(_0x266abf!=null&&_0x266abf[_0x8ce5bf(0x1ab)]))return[];let {width:_0x43796a=0x0,height:_0x434395=0x0}=_0x266abf[_0x8ce5bf(0x1ab)];return _0x5caf48[_0x8ce5bf(0x166)]({'width':_0x43796a,'height':_0x434395}),_0x5caf48['getConnectorLinePoints']();}[_0x1265a8(0x1db)](){const _0x1f983b=_0x1265a8;var _0x41b9fa;let _0x4fdd08=this[_0x1f983b(0x1e9)][_0x1f983b(0x1dc)](_0x17e23b[_0x1f983b(0x187)])[_0x1f983b(0x1af)](this[_0x1f983b(0x1ff)],this[_0x1f983b(0x1c9)],this[_0x1f983b(0x1ef)]);return _0x4fdd08?(_0x41b9fa=_0x4fdd08[_0x1f983b(0x1db)]())==null?null:_0x41b9fa:null;}['getEndConnectInfo'](){const _0x4718cc=_0x1265a8;var _0x7edbff;let _0x22a51c=this[_0x4718cc(0x1e9)]['get'](_0x17e23b[_0x4718cc(0x187)])[_0x4718cc(0x1af)](this[_0x4718cc(0x1ff)],this[_0x4718cc(0x1c9)],this[_0x4718cc(0x1ef)]);return _0x22a51c?(_0x7edbff=_0x22a51c[_0x4718cc(0x164)]())==null?null:_0x7edbff:null;}['build'](){const _0x9916a0=_0x1265a8;var _0x5115ed,_0x253aa0;if(!this[_0x9916a0(0x1ae)])throw Error('Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().');if(this['x']===0x0||this['y']===0x0){let _0x1345ff=this['_injector'][_0x9916a0(0x1dc)](_0x589c3e[_0x9916a0(0x1a1)])['ensureSkeleton'](this[_0x9916a0(0x1ff)],this[_0x9916a0(0x1c9)]);if(!_0x1345ff)throw Error(_0x9916a0(0x209)+this[_0x9916a0(0x1ff)]+_0x9916a0(0x18d)+this['subUnitId']+_0x9916a0(0x18e));let {transform:_0xed8a8e}=(0x0,_0x589c3e[_0x9916a0(0x1a9)])(this['unitId'],this['subUnitId'],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x1345ff);this['x']=this['x']>0x0?this['x']:_0xed8a8e['left'],this['y']=this['y']>0x0?this['y']:_0xed8a8e[_0x9916a0(0x173)];}return this[_0x9916a0(0x1b3)]=(_0x5115ed=this['width'])==null?_0x17e23b['DEFAULT_SHAPE_WIDTH']:_0x5115ed,this[_0x9916a0(0x1e7)]=(_0x253aa0=this[_0x9916a0(0x1e7)])==null?_0x17e23b[_0x9916a0(0x1c7)]:_0x253aa0,{'unitId':this[_0x9916a0(0x1ff)],'subUnitId':this[_0x9916a0(0x1c9)],'shapeId':this['drawId'],'shapeType':this[_0x9916a0(0x1ae)],'shapeData':Object[_0x9916a0(0x18a)](this[_0x9916a0(0x201)])['length']>0x0?this[_0x9916a0(0x201)]:void 0x0,'x':this['x'],'y':this['y'],'width':this['width'],'height':this[_0x9916a0(0x1e7)]};}[_0x1265a8(0x183)](){const _0x3c851f=_0x1265a8;return this[_0x3c851f(0x1ef)];}[_0x1265a8(0x1e1)](){return this['shapeType'];}[_0x1265a8(0x1e4)](){const _0x5a05ef=_0x1265a8;return this[_0x5a05ef(0x201)];}['getPosition'](){return{'x':this['x'],'y':this['y']};}[_0x1265a8(0x1d1)](){const _0x550ce0=_0x1265a8;return{'width':this[_0x550ce0(0x1b3)],'height':this['height']};}},_0x339591=class extends _0x42aab5{constructor(_0x21ce6a,_0x57af0b,_0x2664de,_0x3ece33){const _0x8ff295=_0x1265a8;super(_0x21ce6a,_0x57af0b,_0x2664de,_0x3ece33),_0x4ffd9b(this,_0x8ff295(0x201),{});}[_0x1265a8(0x1b1)](_0xf6835){const _0x35f377=_0x1265a8;if(!(0x0,_0xc8edff['isConnectorShape'])(_0xf6835))throw Error(_0x35f377(0x17a)+_0xf6835+_0x35f377(0x1be));return super['setShapeType'](_0xf6835),this;}[_0x1265a8(0x1ca)](_0x1826b){const _0x507c1d=_0x1265a8;var _0x56f026,_0x2b9f5c;return(_0x56f026=this[_0x507c1d(0x201)])!=null&&_0x56f026['ln']||(this[_0x507c1d(0x201)]['ln']={}),!((_0x2b9f5c=this[_0x507c1d(0x201)])==null||(_0x2b9f5c=_0x2b9f5c['ln'])==null)&&_0x2b9f5c[_0x507c1d(0x208)]||(this[_0x507c1d(0x201)]['ln']['startArrow']={}),this[_0x507c1d(0x201)]['ln'][_0x507c1d(0x208)]['type']=_0x1826b,this;}[_0x1265a8(0x1e6)](_0x57f0a4){const _0x3eb6fc=_0x1265a8;var _0x3b3d2d,_0x27b1e5;return(_0x3b3d2d=this[_0x3eb6fc(0x201)])!=null&&_0x3b3d2d['ln']||(this[_0x3eb6fc(0x201)]['ln']={}),!((_0x27b1e5=this['shapeData'])==null||(_0x27b1e5=_0x27b1e5['ln'])==null)&&_0x27b1e5['endArrow']||(this[_0x3eb6fc(0x201)]['ln']['endArrow']={}),this['shapeData']['ln']['endArrow'][_0x3eb6fc(0x1c0)]=_0x57f0a4,this;}[_0x1265a8(0x1bd)](_0xb9ceb7){const _0x46d1d3=_0x1265a8;var _0x34c2be,_0x3e5d9b;return(_0x34c2be=this[_0x46d1d3(0x201)])!=null&&_0x34c2be['ln']||(this[_0x46d1d3(0x201)]['ln']={}),!((_0x3e5d9b=this[_0x46d1d3(0x201)])==null||(_0x3e5d9b=_0x3e5d9b['ln'])==null)&&_0x3e5d9b[_0x46d1d3(0x208)]||(this[_0x46d1d3(0x201)]['ln'][_0x46d1d3(0x208)]={}),this[_0x46d1d3(0x201)]['ln'][_0x46d1d3(0x208)][_0x46d1d3(0x199)]=_0xb9ceb7,this;}['setEndArrowSize'](_0x1e6f42){const _0x3c350c=_0x1265a8;var _0x2af916,_0x187d5f;return(_0x2af916=this[_0x3c350c(0x201)])!=null&&_0x2af916['ln']||(this[_0x3c350c(0x201)]['ln']={}),!((_0x187d5f=this[_0x3c350c(0x201)])==null||(_0x187d5f=_0x187d5f['ln'])==null)&&_0x187d5f[_0x3c350c(0x16f)]||(this[_0x3c350c(0x201)]['ln'][_0x3c350c(0x16f)]={}),this[_0x3c350c(0x201)]['ln'][_0x3c350c(0x16f)][_0x3c350c(0x199)]=_0x1e6f42,this;}[_0x1265a8(0x1b6)](){const _0x3e4f20=_0x1265a8;return super[_0x3e4f20(0x1b6)]();}[_0x1265a8(0x164)](){const _0x547d8e=_0x1265a8;var _0x5b356a;return((_0x5b356a=this[_0x547d8e(0x201)])==null||(_0x5b356a=_0x5b356a[_0x547d8e(0x1f2)])==null?void 0x0:_0x5b356a['to'])||null;}[_0x1265a8(0x1db)](){const _0x58a8ed=_0x1265a8;var _0x307e48;return((_0x307e48=this[_0x58a8ed(0x201)])==null||(_0x307e48=_0x307e48[_0x58a8ed(0x1f2)])==null?void 0x0:_0x307e48[_0x58a8ed(0x1c6)])||null;}};function _0x1a3961(_0x7dc05c,_0x487759,_0x5f2e3c,_0x4d495b,_0x4862b6,_0x47d02b){const _0x2aff7d=_0x1265a8;let _0x1446cc=_0x4862b6['getShapeModel'](_0x7dc05c,_0x487759,_0x5f2e3c);if(!_0x1446cc)return null;let _0x58d506=_0x47d02b[_0x2aff7d(0x1b4)]({'unitId':_0x7dc05c,'subUnitId':_0x487759,'drawingId':_0x5f2e3c});if(!(_0x58d506!=null&&_0x58d506[_0x2aff7d(0x1ab)]))return null;let {left:_0x143224=0x0,top:_0x440e46=0x0,width:_0x985917=0x0,height:_0x4702ad=0x0,flipX:_0x529555=!0x1,flipY:_0x46489b=!0x1,angle:_0x109838}=_0x58d506[_0x2aff7d(0x1ab)];_0x1446cc[_0x2aff7d(0x166)]({'width':_0x985917,'height':_0x4702ad});let _0x334e79=_0x1446cc[_0x2aff7d(0x19a)]()[_0x2aff7d(0x1d6)](_0x3327e3=>_0x3327e3[_0x2aff7d(0x1cb)]===_0x4d495b);if(!_0x334e79)return null;let _0xe413b3=_0x529555?_0x985917-_0x334e79['x']:_0x334e79['x'],_0x352371=_0x46489b?_0x4702ad-_0x334e79['y']:_0x334e79['y'];if(_0x109838&&_0x109838!==0x0){let _0x51e24d=_0x109838*Math['PI']/0xb4,_0x5c6424=Math[_0x2aff7d(0x178)](_0x51e24d),_0x32666d=Math['sin'](_0x51e24d),_0x30c798=_0x985917/0x2,_0x5baea9=_0x4702ad/0x2,_0x17f7d9=_0xe413b3-_0x30c798,_0x40cbfc=_0x352371-_0x5baea9;_0xe413b3=_0x30c798+_0x17f7d9*_0x5c6424-_0x40cbfc*_0x32666d,_0x352371=_0x5baea9+_0x17f7d9*_0x32666d+_0x40cbfc*_0x5c6424;}_0xe413b3+=_0x143224,_0x352371+=_0x440e46;let _0x4f311d=_0x334e79[_0x2aff7d(0x1ee)]/0xea60;_0x529555&&(_0x4f311d=0xb4-_0x4f311d),_0x46489b&&(_0x4f311d=-_0x4f311d),_0x4f311d+=_0x109838||0x0,_0x4f311d=(_0x4f311d%0x168+0x168)%0x168;let _0x1d39ad=(0x0,_0xc8edff[_0x2aff7d(0x16e)])({'left':_0x143224,'top':_0x440e46,'width':_0x985917,'height':_0x4702ad},_0x109838||0x0);return{'point':{'x':_0xe413b3,'y':_0x352371},'angle':_0x4f311d,'bounds':_0x1d39ad};}function _0x1891bb(_0x4c04d7,_0x3cef5d){const _0x4f7b76=_0x1265a8;let _0x1a0f17=_0x3cef5d['x']-_0x4c04d7['x'],_0xe83d9c=_0x3cef5d['y']-_0x4c04d7['y'];return Math[_0x4f7b76(0x20a)](_0x1a0f17)>=Math[_0x4f7b76(0x20a)](_0xe83d9c)?_0x1a0f17>=0x0?0xb4:0x0:_0xe83d9c>=0x0?0x10e:0x5a;}function _0x2a33ce(_0x3c0dfd,_0xdea2a5,_0x30f815,_0x1cf0ae,_0x2b9b7d,_0x54e71c,_0x43de86){const _0x321712=_0x1265a8;let _0x142e8c=_0x54e71c['getShapeModel'](_0x3c0dfd,_0xdea2a5,_0x30f815);if(!_0x142e8c)return null;let _0x8d0d20=_0x43de86[_0x321712(0x1b4)]({'unitId':_0x3c0dfd,'subUnitId':_0xdea2a5,'drawingId':_0x30f815});if(!(_0x8d0d20!=null&&_0x8d0d20['transform']))return null;let {left:_0x3ff74c=0x0,top:_0x52dbf4=0x0,width:_0x334726=0x0,height:_0x1cbd14=0x0,flipX:_0x459017=!0x1,flipY:_0x452696=!0x1}=_0x8d0d20[_0x321712(0x1ab)];_0x142e8c[_0x321712(0x166)]({'width':_0x334726,'height':_0x1cbd14});let _0x2f3e66=_0x142e8c[_0x321712(0x1da)]();if(_0x2f3e66[_0x321712(0x186)]<0x2)return null;let _0x2e282d=_0x1cf0ae?_0x2f3e66[0x0]:_0x2f3e66[_0x2f3e66[_0x321712(0x186)]-0x1],_0x1efa0e=new _0xc8edff[(_0x321712(0x1ec))]({'left':_0x3ff74c,'top':_0x52dbf4,'width':_0x334726,'height':_0x1cbd14,'flipX':_0x459017,'flipY':_0x452696})[_0x321712(0x169)](_0x2e282d);return{'point':_0x1efa0e,'angle':_0x1891bb(_0x2b9b7d[_0x321712(0x1fe)],_0x1efa0e),'bounds':{'left':_0x1efa0e['x'],'top':_0x1efa0e['y'],'width':0x0,'height':0x0}};}var _0x1c3d8a=class extends _0x5a18f5[_0x1265a8(0x18b)]{async[_0x1265a8(0x17b)](_0x263ba2){const _0x1aa240=_0x1265a8;let {unitId:_0x47fbc1,subUnitId:_0x2f575c,shapeId:_0x5b0f1f,shapeType:_0x499bba,shapeData:_0x444fed,x:_0x220ffd,y:_0x4a028b,width:_0x3777c8,height:_0x59d76a}=_0x263ba2;return this[_0x1aa240(0x1a6)]['executeCommand'](_0x17e23b[_0x1aa240(0x1a3)]['id'],{'unitId':_0x47fbc1,'subUnitId':_0x2f575c,'shapeId':_0x5b0f1f,'shapeType':_0x499bba,'shapeData':_0x444fed,'position':{'x':_0x220ffd,'y':_0x4a028b},'width':_0x3777c8,'height':_0x59d76a});}async[_0x1265a8(0x1e5)](_0x2ff009){const _0x15204a=_0x1265a8;let {unitId:_0x3d2c8a,subUnitId:_0x1e368f,shapeId:_0x259337,shapeType:_0x3584e5,shapeData:_0x5529c8,x:_0x5a8215,y:_0x5755b3,width:_0x36ea5a,height:_0xc88dd4}=_0x2ff009;return this['_commandService']['executeCommand'](_0x17e23b[_0x15204a(0x1fa)]['id'],{'unitId':_0x3d2c8a,'subUnitId':_0x1e368f,'shapeId':_0x259337,'shapeType':_0x3584e5,'shapeData':_0x5529c8,'position':{'x':_0x5a8215,'y':_0x5755b3},'width':_0x36ea5a,'height':_0xc88dd4});}['newShape'](_0x505849){const _0x21e83a=_0x1265a8;let _0x102f96=this[_0x21e83a(0x1f1)]()[_0x21e83a(0x1ce)](),_0x181270=this[_0x21e83a(0x1de)]();if(_0x505849){let _0x50f719=new _0x42aab5(_0x102f96,_0x181270,_0x505849[_0x21e83a(0x1ef)],this[_0x21e83a(0x1e9)]);return this['_preloadShapeProperties'](_0x50f719,_0x102f96,_0x181270,_0x505849[_0x21e83a(0x1ef)]),_0x50f719;}return new _0x42aab5(_0x102f96,_0x181270,(0x0,_0x5272a5[_0x21e83a(0x1eb)])(),this[_0x21e83a(0x1e9)]);}[_0x1265a8(0x1b2)](_0x501749){const _0x200a16=_0x1265a8;let _0x5cf358=this[_0x200a16(0x1f1)]()[_0x200a16(0x1ce)](),_0x561691=this['getSheetId']();if(_0x501749){let _0x2ab52f=new _0x339591(_0x5cf358,_0x561691,_0x501749['drawId'],this[_0x200a16(0x1e9)]);return this['_preloadShapeProperties'](_0x2ab52f,_0x5cf358,_0x561691,_0x501749[_0x200a16(0x1ef)]),_0x2ab52f;}return new _0x339591(_0x5cf358,_0x561691,(0x0,_0x5272a5[_0x200a16(0x1eb)])(),this[_0x200a16(0x1e9)]);}[_0x1265a8(0x1fc)](){const _0x49fdd5=_0x1265a8;let _0x121779=this[_0x49fdd5(0x1e9)][_0x49fdd5(0x1dc)](_0x482202[_0x49fdd5(0x1ba)]),_0x4290ec=this[_0x49fdd5(0x1f1)]()[_0x49fdd5(0x1ce)](),_0x18c5a2=this[_0x49fdd5(0x1de)](),_0x1e9120=_0x121779[_0x49fdd5(0x1e0)](_0x4290ec,_0x18c5a2);if(!_0x1e9120)return[];let _0x2f2b4a=[];for(let [_0x44f8cd,_0xd1ecb]of Object[_0x49fdd5(0x19b)](_0x1e9120))if(_0xd1ecb&&_0xd1ecb[_0x49fdd5(0x16b)]===_0x5272a5[_0x49fdd5(0x185)]['DRAWING_SHAPE']){let _0x47146e=new _0x42aab5(_0x4290ec,_0x18c5a2,_0x44f8cd,this['_injector']);this[_0x49fdd5(0x1c1)](_0x47146e,_0x4290ec,_0x18c5a2,_0x44f8cd),_0x2f2b4a['push'](_0x47146e);}return _0x2f2b4a;}[_0x1265a8(0x1f7)](_0x15dded){const _0x5cee6d=_0x1265a8;let {unitId:_0x32ca70,subUnitId:_0x484d1f,drawId:_0x1f09c9}=_0x15dded;return this[_0x5cee6d(0x1a6)]['executeCommand'](_0x482202['RemoveSheetDrawingCommand']['id'],{'unitId':_0x32ca70,'drawings':[{'unitId':_0x32ca70,'subUnitId':_0x484d1f,'drawingId':_0x1f09c9,'drawingType':_0x5272a5[_0x5cee6d(0x185)][_0x5cee6d(0x192)]}]});}async[_0x1265a8(0x1b0)](_0x2609f9){const _0x248659=_0x1265a8;let {connector:_0x504d9e,startTarget:_0x2c095a,endTarget:_0x3c0f10}=_0x2609f9;if(!_0x2c095a&&!_0x3c0f10)return!0x1;let _0x1385ce=this[_0x248659(0x1f1)]()[_0x248659(0x1ce)](),_0x4e7f30=this[_0x248659(0x1de)](),_0x10cae3=this[_0x248659(0x1e9)][_0x248659(0x1dc)](_0x17e23b[_0x248659(0x187)]),_0x50dedc=this[_0x248659(0x1e9)][_0x248659(0x1dc)](_0x437071[_0x248659(0x19c)]),_0x50e287=_0x10cae3[_0x248659(0x1af)](_0x1385ce,_0x4e7f30,_0x504d9e[_0x248659(0x1ef)]);if(!_0x50e287)return!0x1;let _0x46dbb8=_0x50e287[_0x248659(0x1e1)](),_0x2deb01=_0x50e287[_0x248659(0x1f0)](),_0x2a2acf={};for(let _0x8d5494 of _0x50e287[_0x248659(0x18f)]()){let _0x3ceaed=_0x50e287['getAdjustValueByName'](_0x8d5494);_0x3ceaed!==void 0x0&&(_0x2a2acf[_0x8d5494]=_0x3ceaed);}let {startInfo:_0xa42bc0,endInfo:_0x4550ff}=this['_resolveEndpoints'](_0x1385ce,_0x4e7f30,_0x504d9e,_0x50e287,_0x2c095a,_0x3c0f10,_0x10cae3,_0x50dedc,_0x2deb01);if(!_0xa42bc0||!_0x4550ff)return!0x1;let _0x403c19=(0x0,_0xc8edff['computeConnectorRouteLayout'])((0x0,_0xc8edff[_0x248659(0x1c4)])(_0xa42bc0,_0x4550ff,_0x46dbb8),_0x46dbb8),_0x4da2bc={};return _0x2c095a?_0x4da2bc[_0x248659(0x1c6)]={'shapeId':_0x2c095a[_0x248659(0x165)][_0x248659(0x1ef)],'cxnIndex':_0x2c095a[_0x248659(0x197)]}:_0x2deb01!=null&&_0x2deb01[_0x248659(0x1c6)]&&(_0x4da2bc['from']=_0x2deb01['from']),_0x3c0f10?_0x4da2bc['to']={'shapeId':_0x3c0f10[_0x248659(0x165)][_0x248659(0x1ef)],'cxnIndex':_0x3c0f10[_0x248659(0x197)]}:_0x2deb01!=null&&_0x2deb01['to']&&(_0x4da2bc['to']=_0x2deb01['to']),this[_0x248659(0x1a6)][_0x248659(0x1b9)](_0x17e23b[_0x248659(0x1ea)]['id'],{'unitId':_0x1385ce,'subUnitId':_0x4e7f30,'connectorShapeId':_0x504d9e[_0x248659(0x1ef)],'width':_0x403c19[_0x248659(0x198)][_0x248659(0x1b3)],'height':_0x403c19['worldRect'][_0x248659(0x1e7)],'left':_0x403c19['worldRect'][_0x248659(0x1a8)],'top':_0x403c19['worldRect'][_0x248659(0x173)],'flipX':_0x403c19[_0x248659(0x198)][_0x248659(0x16d)]||!0x1,'flipY':_0x403c19[_0x248659(0x198)][_0x248659(0x1ac)]||!0x1,'oldAdjustValues':_0x2a2acf,'newAdjustValues':_0x403c19['adjustValues'],'newLineType':_0x403c19[_0x248659(0x1bb)],'oldLineType':_0x46dbb8,'rotation':_0x403c19[_0x248659(0x1fb)],'oldRelation':_0x2deb01,'newRelation':_0x4da2bc});}['_preloadShapeProperties'](_0x646d4c,_0x357e53,_0x684359,_0xe7eda1){const _0x5b1324=_0x1265a8;let _0x3ccd92=this[_0x5b1324(0x1e9)][_0x5b1324(0x1dc)](_0x437071[_0x5b1324(0x19c)])[_0x5b1324(0x1b4)]({'unitId':_0x357e53,'subUnitId':_0x684359,'drawingId':_0xe7eda1});if(_0x3ccd92!=null&&_0x3ccd92[_0x5b1324(0x1ab)]){var _0x31f74e,_0x1d2e16,_0xefbd,_0x57f072;_0x646d4c['x']=(_0x31f74e=_0x3ccd92[_0x5b1324(0x1ab)][_0x5b1324(0x1a8)])==null?0x0:_0x31f74e,_0x646d4c['y']=(_0x1d2e16=_0x3ccd92[_0x5b1324(0x1ab)][_0x5b1324(0x173)])==null?0x0:_0x1d2e16,_0x646d4c['width']=(_0xefbd=_0x3ccd92[_0x5b1324(0x1ab)][_0x5b1324(0x1b3)])==null?_0x646d4c[_0x5b1324(0x1b3)]:_0xefbd,_0x646d4c[_0x5b1324(0x1e7)]=(_0x57f072=_0x3ccd92[_0x5b1324(0x1ab)]['height'])==null?_0x646d4c[_0x5b1324(0x1e7)]:_0x57f072;}let _0x27a485=this[_0x5b1324(0x1e9)][_0x5b1324(0x1dc)](_0x17e23b[_0x5b1324(0x187)])[_0x5b1324(0x1af)](_0x357e53,_0x684359,_0xe7eda1);if(_0x27a485){_0x646d4c[_0x5b1324(0x1ae)]=_0x27a485[_0x5b1324(0x1e1)]();let _0x414352=_0x27a485[_0x5b1324(0x1e4)]();_0x414352&&(_0x646d4c[_0x5b1324(0x201)]=JSON[_0x5b1324(0x179)](JSON[_0x5b1324(0x194)](_0x414352)));}}[_0x1265a8(0x189)](_0x16dea6,_0xfbf01a,_0x2a8286,_0x511815,_0x4be68f,_0x31c308,_0x3eaf24,_0x210752,_0x319ef5){const _0x8183f=_0x1265a8;let _0x30351b=null,_0x47bab7=null;return _0x4be68f&&(_0x30351b=_0x1a3961(_0x16dea6,_0xfbf01a,_0x4be68f[_0x8183f(0x165)][_0x8183f(0x1ef)],_0x4be68f[_0x8183f(0x197)],_0x3eaf24,_0x210752)),_0x31c308&&(_0x47bab7=_0x1a3961(_0x16dea6,_0xfbf01a,_0x31c308[_0x8183f(0x165)][_0x8183f(0x1ef)],_0x31c308[_0x8183f(0x197)],_0x3eaf24,_0x210752)),_0x30351b||(_0x30351b=this[_0x8183f(0x19f)](_0x16dea6,_0xfbf01a,_0x2a8286[_0x8183f(0x1ef)],!0x0,_0x47bab7,_0x319ef5==null?void 0x0:_0x319ef5['from'],_0x3eaf24,_0x210752)),_0x47bab7||(_0x47bab7=this[_0x8183f(0x19f)](_0x16dea6,_0xfbf01a,_0x2a8286[_0x8183f(0x1ef)],!0x1,_0x30351b,_0x319ef5==null?void 0x0:_0x319ef5['to'],_0x3eaf24,_0x210752)),{'startInfo':_0x30351b,'endInfo':_0x47bab7};}[_0x1265a8(0x19f)](_0x476ea0,_0x244e4d,_0x454e74,_0x2635fc,_0x5d9de0,_0x187fde,_0x2563d4,_0x7f38bd){const _0x161c49=_0x1265a8;if(_0x187fde){let _0x4f1da1=_0x1a3961(_0x476ea0,_0x244e4d,_0x187fde[_0x161c49(0x176)],_0x187fde[_0x161c49(0x1c2)],_0x2563d4,_0x7f38bd);if(_0x4f1da1)return _0x4f1da1;}return _0x5d9de0?_0x2a33ce(_0x476ea0,_0x244e4d,_0x454e74,_0x2635fc,_0x5d9de0,_0x2563d4,_0x7f38bd):null;}};_0x5a18f5[_0x1265a8(0x18b)][_0x1265a8(0x1f3)](_0x1c3d8a),_0x3d3915[_0x1265a8(0x1e8)]=_0x339591,_0x3d3915[_0x1265a8(0x1f9)]=_0x42aab5;}));
|