@univerjs/sheets-drawing-ui 0.7.0-nightly.202505131607 → 0.7.0-nightly.202505141607
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +2 -2
- package/lib/es/index.js +267 -273
- package/lib/index.css +1 -1
- package/lib/index.js +267 -273
- package/lib/umd/index.js +2 -2
- package/package.json +13 -13
package/lib/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
var Nr = Object.defineProperty;
|
|
2
2
|
var kr = (i, t, e) => t in i ? Nr(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
|
-
var
|
|
4
|
-
import { CommandType as
|
|
3
|
+
var ee = (i, t, e) => kr(i, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import { CommandType as Z, ICommandService as G, IUndoRedoService as Le, sequenceExecute as Ln, LocaleService as nt, IUniverInstanceService as Se, Inject as A, Injector as Ye, IContextService as Yn, IImageIoService as Wr, RxDisposable as jr, UniverInstanceType as x, FOCUSING_COMMON_DRAWINGS as xe, DrawingTypeEnum as j, Disposable as re, ArrangeTypeEnum as pt, createDocumentModelWithStyle as Ht, ObjectRelativeFromV as pn, ObjectRelativeFromH as wn, WrapTextType as _n, PositionedObjectLayoutType as vn, BooleanNumber as Sn, BuildTextUtils as zt, ImageSourceType as In, generateRandomId as bt, DOCS_NORMAL_EDITOR_UNIT_ID_KEY as qe, DOCS_ZEN_EDITOR_UNIT_ID_KEY as Be, InterceptorEffectEnum as Br, ObjectMatrix as $r, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as xr, Tools as Re, IPermissionService as Fr, UserManagerService as Lr, LifecycleService as Yr, LifecycleStages as Gr, DisposableCollection as wt, fromEventSubject as Xr, PRINT_CHART_COMPONENT_KEY as Vr, Rectangle as Hr, Direction as ve, FOCUSING_FX_BAR_EDITOR as zr, EDITOR_ACTIVATED as Kr, FOCUSING_PANEL_EDITOR as Zr, DependentOn as Jr, IConfigService as qr, Plugin as Qr, merge as ei, registerDependencies as ti, touchDependencies as Ft } from "@univerjs/core";
|
|
5
5
|
import { DocDrawingController as ni, UniverDocsDrawingPlugin as ri } from "@univerjs/docs-drawing";
|
|
6
|
-
import { SetDrawingSelectedOperation as Nt, IDrawingManagerService as
|
|
6
|
+
import { SetDrawingSelectedOperation as Nt, IDrawingManagerService as ie, IImageIoService as ii, DRAWING_IMAGE_ALLOW_IMAGE_LIST as Cn, DRAWING_IMAGE_COUNT_LIMIT as Dn, ImageUploadStatusType as Pe, DRAWING_IMAGE_ALLOW_SIZE as bn, getImageSize as Lt, DRAWING_IMAGE_WIDTH_LIMIT as Rn, DRAWING_IMAGE_HEIGHT_LIMIT as Mn, ImageSourceType as si, getDrawingShapeKeyByDrawingSearch as Ie, UniverDrawingPlugin as oi } from "@univerjs/drawing";
|
|
7
7
|
import { ImageCropperObject as ai, COMPONENT_IMAGE_POPUP_MENU as ci, OpenImageCropOperation as di, ImageResetSizeOperation as li, DrawingRenderService as Gn, DrawingCommonPanel as ui, UniverDrawingUIPlugin as hi } from "@univerjs/drawing-ui";
|
|
8
|
-
import { IRenderManagerService as
|
|
9
|
-
import { ISheetDrawingService as
|
|
10
|
-
import { MessageType as we, render as wi, unmount as _i, clsx as vi, RadioGroup as Si, Radio as Gt
|
|
11
|
-
import { SheetCanvasPopManagerService as
|
|
12
|
-
import { ISidebarService as
|
|
13
|
-
import { takeUntil as Un, throttleTime as
|
|
14
|
-
import { SheetInterceptorService as kt, getSheetCommandTarget as
|
|
15
|
-
import { docDrawingPositionToTransform as Bn, ReplaceSnapshotCommand as
|
|
16
|
-
import { jsx as
|
|
17
|
-
import { useMemo as
|
|
18
|
-
const
|
|
8
|
+
import { IRenderManagerService as J, CURSOR_TYPE as gi, precisionTo as _t, transformObjectOutOfGroup as fi, getGroupState as mi, getCurrentTypeOfRenderer as on, RENDER_CLASS_TYPE as Ae, Rect as Ne, ObjectType as yn, DRAWING_OBJECT_LAYER_INDEX as Yt, SHEET_VIEWPORT_KEY as Xn } from "@univerjs/engine-render";
|
|
9
|
+
import { ISheetDrawingService as se, DrawingApplyType as U, SetDrawingApplyMutation as P, SheetDrawingAnchorType as O, UniverSheetsDrawingPlugin as pi } from "@univerjs/sheets-drawing";
|
|
10
|
+
import { MessageType as we, render as wi, unmount as _i, clsx as vi, RadioGroup as Si, Radio as Gt } from "@univerjs/design";
|
|
11
|
+
import { SheetCanvasPopManagerService as Ii, HoverManagerService as Ci, SheetSkeletonManagerService as V, convertPositionSheetOverGridToAbsolute as Di, ISheetSelectionRenderService as Ge, attachRangeWithCoord as Vn, IEditorBridgeService as bi, IAutoFillService as Ri, EditingRenderController as Mi, SetCellEditVisibleOperation as En, PREDEFINED_HOOK_NAME as $e, COPY_TYPE as Ce, discreteRangeToRange as Tn, virtualizeDiscreteRanges as yi, ISheetClipboardService as Ei, SetZoomRatioOperation as On, SetScrollOperation as Ti, SheetPrintInterceptorService as Oi, getCurrentRangeDisable$ as Ui } from "@univerjs/sheets-ui";
|
|
12
|
+
import { ISidebarService as Pi, IMessageService as Hn, ILocalFileService as Ai, IDialogService as Ni, IClipboardInterfaceService as ki, CanvasFloatDomService as Wi, PrintFloatDomSingle as ji, ComponentManager as zn, connectInjector as Bi, getMenuHiddenObservable as an, MenuItemType as cn, useDependency as Qe, RibbonStartGroup as $i, KeyCode as Fe, IMenuManagerService as xi, IShortcutService as Fi } from "@univerjs/ui";
|
|
13
|
+
import { takeUntil as Un, throttleTime as Li, combineLatest as vt, switchMap as _e, EMPTY as me, tap as Pn, map as Me, distinctUntilChanged as An, Subject as Xt, filter as Yi, take as Gi, BehaviorSubject as je, of as Nn } from "rxjs";
|
|
14
|
+
import { SheetInterceptorService as kt, getSheetCommandTarget as oe, SheetsSelectionsService as dn, SetRangeValuesCommand as kn, INTERCEPTOR_POINT as Xi, InterceptCellContentPriority as Vi, WorkbookViewPermission as Wn, WorksheetViewPermission as jn, WorkbookEditablePermission as Kt, WorksheetEditPermission as Zt, SetFrozenMutation as Hi, SetWorksheetRowAutoHeightMutation as zi, COMMAND_LISTENER_SKELETON_CHANGE as Ki, InsertRowCommand as Kn, InsertColCommand as Zn, RemoveRowCommand as Jn, RemoveColCommand as qn, DeleteRangeMoveLeftCommand as Qn, DeleteRangeMoveUpCommand as er, InsertRangeMoveDownCommand as tr, InsertRangeMoveRightCommand as nr, DeltaRowHeightCommand as Jt, SetRowHeightCommand as qt, DeltaColumnWidthCommand as rr, SetColWidthCommand as ir, SetRowHiddenCommand as sr, SetSpecificRowsVisibleCommand as or, SetSpecificColsVisibleCommand as ar, SetColHiddenCommand as cr, MoveColsCommand as dr, MoveRowsCommand as lr, MoveRangeCommand as ur, SetRowVisibleMutation as Zi, SetRowHiddenMutation as Ji, SetColVisibleMutation as qi, SetColHiddenMutation as Qi, SetWorksheetRowHeightMutation as es, SetWorksheetColWidthMutation as ts, SetWorksheetActiveOperation as ns, RangeProtectionPermissionEditPoint as rs } from "@univerjs/sheets";
|
|
15
|
+
import { docDrawingPositionToTransform as Bn, ReplaceSnapshotCommand as is, InnerPasteCommand as ss } from "@univerjs/docs-ui";
|
|
16
|
+
import { jsx as ae, jsxs as Qt } from "react/jsx-runtime";
|
|
17
|
+
import { useMemo as os, forwardRef as hr, useRef as as, createElement as gr, useState as en, useEffect as fr } from "react";
|
|
18
|
+
const cs = "sheets-drawing-ui.config", $n = {}, L = {
|
|
19
19
|
id: "sheet.operation.clear-drawing-transformer",
|
|
20
|
-
type:
|
|
20
|
+
type: Z.MUTATION,
|
|
21
21
|
handler: (i, t) => {
|
|
22
|
-
const e = i.get(
|
|
22
|
+
const e = i.get(J);
|
|
23
23
|
return t.forEach((n) => {
|
|
24
24
|
var r, s;
|
|
25
25
|
(s = (r = e.getRenderById(n)) == null ? void 0 : r.scene.getTransformer()) == null || s.debounceRefreshControls();
|
|
@@ -27,10 +27,10 @@ const ds = "sheets-drawing-ui.config", $n = {}, L = {
|
|
|
27
27
|
}
|
|
28
28
|
}, rt = {
|
|
29
29
|
id: "sheet.command.remove-sheet-image",
|
|
30
|
-
type:
|
|
30
|
+
type: Z.COMMAND,
|
|
31
31
|
handler: (i, t) => {
|
|
32
32
|
var S, I, b;
|
|
33
|
-
const e = i.get(G), n = i.get(Le), r = i.get(kt), s = i.get(
|
|
33
|
+
const e = i.get(G), n = i.get(Le), r = i.get(kt), s = i.get(se);
|
|
34
34
|
if (!t) return !1;
|
|
35
35
|
const { drawings: o } = t, a = [];
|
|
36
36
|
o.forEach((v) => {
|
|
@@ -56,10 +56,10 @@ const ds = "sheets-drawing-ui.config", $n = {}, L = {
|
|
|
56
56
|
}
|
|
57
57
|
}, mr = "COMPONENT_SHEET_DRAWING_PANEL", pr = {
|
|
58
58
|
id: "sidebar.operation.sheet-image",
|
|
59
|
-
type:
|
|
59
|
+
type: Z.COMMAND,
|
|
60
60
|
handler: async (i, t) => {
|
|
61
|
-
const e = i.get(
|
|
62
|
-
if (!
|
|
61
|
+
const e = i.get(Pi), n = i.get(nt), r = i.get(Se), s = i.get(G);
|
|
62
|
+
if (!oe(r)) return !1;
|
|
63
63
|
switch (t.value) {
|
|
64
64
|
case "open":
|
|
65
65
|
e.open({
|
|
@@ -80,21 +80,21 @@ const ds = "sheets-drawing-ui.config", $n = {}, L = {
|
|
|
80
80
|
}
|
|
81
81
|
}, wr = {
|
|
82
82
|
id: "sheet.operation.edit-sheet-image",
|
|
83
|
-
type:
|
|
83
|
+
type: Z.OPERATION,
|
|
84
84
|
handler: (i, t) => {
|
|
85
85
|
const e = i.get(G);
|
|
86
86
|
return t == null ? !1 : (e.syncExecuteCommand(Nt.id, [t]), e.executeCommand(pr.id, { value: "open" }), !0);
|
|
87
87
|
}
|
|
88
88
|
};
|
|
89
|
-
var
|
|
90
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
89
|
+
var ds = Object.getOwnPropertyDescriptor, ls = (i, t, e, n) => {
|
|
90
|
+
for (var r = n > 1 ? void 0 : n ? ds(t, e) : t, s = i.length - 1, o; s >= 0; s--)
|
|
91
91
|
(o = i[s]) && (r = o(r) || r);
|
|
92
92
|
return r;
|
|
93
93
|
}, de = (i, t) => (e, n) => t(e, n, i);
|
|
94
94
|
let Rt = class extends jr {
|
|
95
95
|
constructor(t, e, n, r, s, o, a, d, u, c) {
|
|
96
96
|
super();
|
|
97
|
-
|
|
97
|
+
ee(this, "_initImagePopupMenu", /* @__PURE__ */ new Set());
|
|
98
98
|
this._injector = t, this._localeService = e, this._drawingManagerService = n, this._canvasPopManagerService = r, this._renderManagerService = s, this._univerInstanceService = o, this._messageService = a, this._contextService = d, this._ioService = u, this._commandService = c, this._init();
|
|
99
99
|
}
|
|
100
100
|
_init() {
|
|
@@ -215,31 +215,31 @@ let Rt = class extends jr {
|
|
|
215
215
|
];
|
|
216
216
|
}
|
|
217
217
|
};
|
|
218
|
-
Rt =
|
|
218
|
+
Rt = ls([
|
|
219
219
|
de(0, A(Ye)),
|
|
220
220
|
de(1, A(nt)),
|
|
221
|
-
de(2,
|
|
222
|
-
de(3, A(
|
|
223
|
-
de(4,
|
|
221
|
+
de(2, ie),
|
|
222
|
+
de(3, A(Ii)),
|
|
223
|
+
de(4, J),
|
|
224
224
|
de(5, Se),
|
|
225
225
|
de(6, Hn),
|
|
226
226
|
de(7, Yn),
|
|
227
227
|
de(8, Wr),
|
|
228
228
|
de(9, G)
|
|
229
229
|
], Rt);
|
|
230
|
-
var
|
|
231
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
230
|
+
var us = Object.getOwnPropertyDescriptor, hs = (i, t, e, n) => {
|
|
231
|
+
for (var r = n > 1 ? void 0 : n ? us(t, e) : t, s = i.length - 1, o; s >= 0; s--)
|
|
232
232
|
(o = i[s]) && (r = o(r) || r);
|
|
233
233
|
return r;
|
|
234
234
|
}, St = (i, t) => (e, n) => t(e, n, i);
|
|
235
|
-
let tn = class extends
|
|
235
|
+
let tn = class extends re {
|
|
236
236
|
constructor(t, e, n, r, s) {
|
|
237
237
|
super();
|
|
238
|
-
|
|
238
|
+
ee(this, "_isSetCursor", !1);
|
|
239
239
|
this._context = t, this._hoverManagerService = e, this._selectionsService = n, this._drawingRenderService = r, this._sheetSkeletonManagerService = s, this._initHover(), this._initImageClick();
|
|
240
240
|
}
|
|
241
241
|
_initHover() {
|
|
242
|
-
this.disposeWithMe(this._hoverManagerService.currentRichTextNoDistinct$.pipe(
|
|
242
|
+
this.disposeWithMe(this._hoverManagerService.currentRichTextNoDistinct$.pipe(Li(33)).subscribe((t) => {
|
|
243
243
|
var n, r;
|
|
244
244
|
let e = [];
|
|
245
245
|
t !== null && (e = this._selectionsService.getWorkbookSelections(this._context.unitId).getCurrentSelections()), e.length > 0 && (t == null ? void 0 : t.unitId) === this._context.unitId && (t != null && t.drawing) && e.length === 1 && ((n = e[0].primary) == null ? void 0 : n.actualRow) === t.row && ((r = e[0].primary) == null ? void 0 : r.actualColumn) === t.col ? (this._isSetCursor = !0, this._context.scene.setCursor(gi.ZOOM_IN)) : this._isSetCursor && (this._isSetCursor = !1, this._context.scene.resetCursor());
|
|
@@ -256,8 +256,8 @@ let tn = class extends ie {
|
|
|
256
256
|
}));
|
|
257
257
|
}
|
|
258
258
|
};
|
|
259
|
-
tn =
|
|
260
|
-
St(1, A(
|
|
259
|
+
tn = hs([
|
|
260
|
+
St(1, A(Ci)),
|
|
261
261
|
St(2, A(dn)),
|
|
262
262
|
St(3, A(Gn)),
|
|
263
263
|
St(4, A(V))
|
|
@@ -266,7 +266,7 @@ function z(i, t, e) {
|
|
|
266
266
|
const { from: n, to: r, flipY: s = !1, flipX: o = !1, angle: a = 0, skewX: d = 0, skewY: u = 0 } = i, c = e.getCurrent();
|
|
267
267
|
if (c == null)
|
|
268
268
|
return;
|
|
269
|
-
const l =
|
|
269
|
+
const l = Di(
|
|
270
270
|
c.unitId,
|
|
271
271
|
c.sheetId,
|
|
272
272
|
{ from: n, to: r },
|
|
@@ -314,12 +314,12 @@ function $(i, t) {
|
|
|
314
314
|
to: m
|
|
315
315
|
};
|
|
316
316
|
}
|
|
317
|
-
var
|
|
318
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
317
|
+
var gs = Object.getOwnPropertyDescriptor, fs = (i, t, e, n) => {
|
|
318
|
+
for (var r = n > 1 ? void 0 : n ? gs(t, e) : t, s = i.length - 1, o; s >= 0; s--)
|
|
319
319
|
(o = i[s]) && (r = o(r) || r);
|
|
320
320
|
return r;
|
|
321
321
|
}, It = (i, t) => (e, n) => t(e, n, i);
|
|
322
|
-
let nn = class extends
|
|
322
|
+
let nn = class extends re {
|
|
323
323
|
constructor(i, t, e, n, r) {
|
|
324
324
|
super(), this._context = i, this._sheetDrawingService = t, this._drawingManagerService = e, this._sheetSelectionRenderService = n, this._sheetSkeletonManagerService = r, this._init();
|
|
325
325
|
}
|
|
@@ -339,13 +339,13 @@ let nn = class extends ie {
|
|
|
339
339
|
this._drawingManagerService.registerDrawingData(this._context.unitId, this._sheetDrawingService.getDrawingDataForUnit(this._context.unitId)), this._drawingManagerService.initializeNotification(this._context.unitId);
|
|
340
340
|
}
|
|
341
341
|
};
|
|
342
|
-
nn =
|
|
343
|
-
It(1,
|
|
344
|
-
It(2,
|
|
342
|
+
nn = fs([
|
|
343
|
+
It(1, se),
|
|
344
|
+
It(2, ie),
|
|
345
345
|
It(3, A(Ge)),
|
|
346
346
|
It(4, A(V))
|
|
347
347
|
], nn);
|
|
348
|
-
function
|
|
348
|
+
function ms(i) {
|
|
349
349
|
const t = [];
|
|
350
350
|
return i.forEach((e) => {
|
|
351
351
|
const { parent: n, children: r } = e, { unitId: s, subUnitId: o, drawingId: a } = n, d = mi(0, 0, r.map((l) => l.transform || {})), u = r.map((l) => {
|
|
@@ -374,7 +374,7 @@ function ps(i) {
|
|
|
374
374
|
});
|
|
375
375
|
}), t;
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function ps(i) {
|
|
378
378
|
const t = [];
|
|
379
379
|
return i.forEach((e) => {
|
|
380
380
|
const { parent: n, children: r } = e, { unitId: s, subUnitId: o, drawingId: a, transform: d = { width: 0, height: 0 } } = n;
|
|
@@ -407,9 +407,9 @@ function ws(i) {
|
|
|
407
407
|
}
|
|
408
408
|
const _r = {
|
|
409
409
|
id: "sheet.command.group-sheet-image",
|
|
410
|
-
type:
|
|
410
|
+
type: Z.COMMAND,
|
|
411
411
|
handler: (i, t) => {
|
|
412
|
-
const e = i.get(G), n = i.get(Le), r = i.get(
|
|
412
|
+
const e = i.get(G), n = i.get(Le), r = i.get(se);
|
|
413
413
|
if (!t) return !1;
|
|
414
414
|
const s = [];
|
|
415
415
|
t.forEach(({ parent: h, children: m }) => {
|
|
@@ -421,7 +421,7 @@ const _r = {
|
|
|
421
421
|
return e.syncExecuteCommand(P.id, { op: c, unitId: a, subUnitId: d, objects: l, type: U.GROUP }) ? (n.pushUndoRedo({
|
|
422
422
|
unitID: a,
|
|
423
423
|
undoMutations: [
|
|
424
|
-
{ id: P.id, params: { op: u, unitId: a, subUnitId: d, objects:
|
|
424
|
+
{ id: P.id, params: { op: u, unitId: a, subUnitId: d, objects: ps(l), type: U.UNGROUP } },
|
|
425
425
|
{ id: L.id, params: s }
|
|
426
426
|
],
|
|
427
427
|
redoMutations: [
|
|
@@ -432,10 +432,10 @@ const _r = {
|
|
|
432
432
|
}
|
|
433
433
|
}, Wt = {
|
|
434
434
|
id: "sheet.command.insert-sheet-image",
|
|
435
|
-
type:
|
|
435
|
+
type: Z.COMMAND,
|
|
436
436
|
handler: (i, t) => {
|
|
437
437
|
var S, I, b;
|
|
438
|
-
const e = i.get(G), n = i.get(Le), r = i.get(
|
|
438
|
+
const e = i.get(G), n = i.get(Le), r = i.get(se), s = i.get(kt);
|
|
439
439
|
if (!t) return !1;
|
|
440
440
|
const o = t.drawings, a = o.map((v) => v.unitId), d = r.getBatchAddOp(o), { unitId: u, subUnitId: c, undo: l, redo: g, objects: h } = d, m = s.onCommandExecute({ id: Wt.id, params: t }), p = { id: P.id, params: { op: g, unitId: u, subUnitId: c, objects: h, type: U.INSERT } }, f = { id: P.id, params: { op: l, unitId: u, subUnitId: c, objects: h, type: U.REMOVE } };
|
|
441
441
|
return Ln([...(S = m.preRedos) != null ? S : [], p, ...m.redos], e) ? (n.pushUndoRedo({
|
|
@@ -456,11 +456,11 @@ const _r = {
|
|
|
456
456
|
}
|
|
457
457
|
}, vr = {
|
|
458
458
|
id: "sheet.command.set-drawing-arrange",
|
|
459
|
-
type:
|
|
459
|
+
type: Z.COMMAND,
|
|
460
460
|
handler: (i, t) => {
|
|
461
461
|
const e = i.get(G), n = i.get(Le);
|
|
462
462
|
if (!t) return !1;
|
|
463
|
-
const r = i.get(
|
|
463
|
+
const r = i.get(se), { unitId: s, subUnitId: o, drawingIds: a, arrangeType: d } = t, u = { unitId: s, subUnitId: o, drawingIds: a };
|
|
464
464
|
let c;
|
|
465
465
|
if (d === pt.forward ? c = r.getForwardDrawingsOp(u) : d === pt.backward ? c = r.getBackwardDrawingOp(u) : d === pt.front ? c = r.getFrontDrawingsOp(u) : d === pt.back && (c = r.getBackDrawingsOp(u)), c == null)
|
|
466
466
|
return !1;
|
|
@@ -477,9 +477,9 @@ const _r = {
|
|
|
477
477
|
}
|
|
478
478
|
}, jt = {
|
|
479
479
|
id: "sheet.command.set-sheet-image",
|
|
480
|
-
type:
|
|
480
|
+
type: Z.COMMAND,
|
|
481
481
|
handler: (i, t) => {
|
|
482
|
-
const e = i.get(G), n = i.get(Le), r = i.get(
|
|
482
|
+
const e = i.get(G), n = i.get(Le), r = i.get(se);
|
|
483
483
|
if (!t) return !1;
|
|
484
484
|
const { drawings: s } = t, o = r.getBatchUpdateOp(s), { unitId: a, subUnitId: d, undo: u, redo: c, objects: l } = o;
|
|
485
485
|
return e.syncExecuteCommand(P.id, { unitId: a, subUnitId: d, op: c, objects: l, type: U.UPDATE }) ? (n.pushUndoRedo({
|
|
@@ -496,9 +496,9 @@ const _r = {
|
|
|
496
496
|
}
|
|
497
497
|
}, Sr = {
|
|
498
498
|
id: "sheet.command.ungroup-sheet-image",
|
|
499
|
-
type:
|
|
499
|
+
type: Z.COMMAND,
|
|
500
500
|
handler: (i, t) => {
|
|
501
|
-
const e = i.get(G), n = i.get(Le), r = i.get(
|
|
501
|
+
const e = i.get(G), n = i.get(Le), r = i.get(se);
|
|
502
502
|
if (!t) return !1;
|
|
503
503
|
const s = [];
|
|
504
504
|
t.forEach(({ parent: h, children: m }) => {
|
|
@@ -510,7 +510,7 @@ const _r = {
|
|
|
510
510
|
return e.syncExecuteCommand(P.id, { op: c, unitId: a, subUnitId: d, objects: l, type: U.UNGROUP }) ? (n.pushUndoRedo({
|
|
511
511
|
unitID: a,
|
|
512
512
|
undoMutations: [
|
|
513
|
-
{ id: P.id, params: { op: u, unitId: a, subUnitId: d, objects:
|
|
513
|
+
{ id: P.id, params: { op: u, unitId: a, subUnitId: d, objects: ms(l), type: U.GROUP } },
|
|
514
514
|
{ id: L.id, params: s }
|
|
515
515
|
],
|
|
516
516
|
redoMutations: [
|
|
@@ -520,18 +520,18 @@ const _r = {
|
|
|
520
520
|
}), !0) : !1;
|
|
521
521
|
}
|
|
522
522
|
};
|
|
523
|
-
var
|
|
524
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
523
|
+
var ws = Object.getOwnPropertyDescriptor, _s = (i, t, e, n) => {
|
|
524
|
+
for (var r = n > 1 ? void 0 : n ? ws(t, e) : t, s = i.length - 1, o; s >= 0; s--)
|
|
525
525
|
(o = i[s]) && (r = o(r) || r);
|
|
526
526
|
return r;
|
|
527
|
-
},
|
|
528
|
-
function
|
|
527
|
+
}, te = (i, t) => (e, n) => t(e, n, i);
|
|
528
|
+
function vs(i, t, e) {
|
|
529
529
|
const n = e * Math.PI / 180, r = Math.abs(i * Math.cos(n)) + Math.abs(t * Math.sin(n)), s = Math.abs(i * Math.sin(n)) + Math.abs(t * Math.cos(n));
|
|
530
530
|
return { rotatedWidth: r, rotatedHeight: s };
|
|
531
531
|
}
|
|
532
532
|
function rn(i, t, e, n, r) {
|
|
533
533
|
var S;
|
|
534
|
-
const { rotatedHeight: s, rotatedWidth: o } =
|
|
534
|
+
const { rotatedHeight: s, rotatedWidth: o } = vs(e, n, r), d = i.get(J).getRenderById(t.unitId);
|
|
535
535
|
if (!d)
|
|
536
536
|
return !1;
|
|
537
537
|
const c = (S = d.with(V).getSkeletonParam(t.subUnitId)) == null ? void 0 : S.skeleton;
|
|
@@ -543,10 +543,10 @@ function rn(i, t, e, n, r) {
|
|
|
543
543
|
height: n * _
|
|
544
544
|
};
|
|
545
545
|
}
|
|
546
|
-
let et = class extends
|
|
546
|
+
let et = class extends re {
|
|
547
547
|
constructor(t, e, n, r, s, o, a, d, u, c, l, g, h) {
|
|
548
548
|
super();
|
|
549
|
-
|
|
549
|
+
ee(this, "_workbookSelections");
|
|
550
550
|
this._context = t, this._skeletonManagerService = e, this._commandService = n, this._selectionRenderService = r, this._imageIoService = s, this._fileOpenerService = o, this._sheetDrawingService = a, this._drawingManagerService = d, this._contextService = u, this._messageService = c, this._localeService = l, this._injector = h, this._workbookSelections = g.getWorkbookSelections(this._context.unitId), this._updateImageListener(), this._updateOrderListener(), this._groupDrawingListener(), this._focusDrawingListener();
|
|
551
551
|
}
|
|
552
552
|
async insertFloatImage() {
|
|
@@ -883,22 +883,22 @@ let et = class extends ie {
|
|
|
883
883
|
);
|
|
884
884
|
}
|
|
885
885
|
};
|
|
886
|
-
et =
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
886
|
+
et = _s([
|
|
887
|
+
te(1, A(V)),
|
|
888
|
+
te(2, G),
|
|
889
|
+
te(3, Ge),
|
|
890
|
+
te(4, ii),
|
|
891
|
+
te(5, Ai),
|
|
892
|
+
te(6, se),
|
|
893
|
+
te(7, ie),
|
|
894
|
+
te(8, Yn),
|
|
895
|
+
te(9, Hn),
|
|
896
|
+
te(10, A(nt)),
|
|
897
|
+
te(11, A(dn)),
|
|
898
|
+
te(12, A(Ye))
|
|
899
899
|
], et);
|
|
900
|
-
var
|
|
901
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
900
|
+
var Ss = Object.getOwnPropertyDescriptor, Is = (i, t, e, n) => {
|
|
901
|
+
for (var r = n > 1 ? void 0 : n ? Ss(t, e) : t, s = i.length - 1, o; s >= 0; s--)
|
|
902
902
|
(o = i[s]) && (r = o(r) || r);
|
|
903
903
|
return r;
|
|
904
904
|
}, ke = (i, t) => (e, n) => t(e, n, i);
|
|
@@ -922,7 +922,7 @@ function Ir(i, t, e) {
|
|
|
922
922
|
}
|
|
923
923
|
return !1;
|
|
924
924
|
}
|
|
925
|
-
let Mt = class extends
|
|
925
|
+
let Mt = class extends re {
|
|
926
926
|
constructor(i, t, e, n, r, s) {
|
|
927
927
|
super(), this._commandService = i, this._sheetInterceptorService = t, this._injector = e, this._drawingManagerService = n, this._docDrawingController = r, this._editorBridgeService = s, this._handleInitEditor(), this._initCellContentInterceptor();
|
|
928
928
|
}
|
|
@@ -930,16 +930,16 @@ let Mt = class extends ie {
|
|
|
930
930
|
this.disposeWithMe(this._editorBridgeService.visible$.subscribe((i) => {
|
|
931
931
|
i.visible ? i.visible && (this._drawingManagerService.removeDrawingDataForUnit(qe), this._docDrawingController.loadDrawingDataForUnit(qe), this._drawingManagerService.initializeNotification(qe)) : this._drawingManagerService.removeDrawingDataForUnit(qe);
|
|
932
932
|
})), this.disposeWithMe(this._commandService.onCommandExecuted((i) => {
|
|
933
|
-
i.id ===
|
|
933
|
+
i.id === is.id && i.params.unitId === Be && (this._drawingManagerService.removeDrawingDataForUnit(Be), this._docDrawingController.loadDrawingDataForUnit(Be), this._drawingManagerService.initializeNotification(Be));
|
|
934
934
|
}));
|
|
935
935
|
}
|
|
936
936
|
_initCellContentInterceptor() {
|
|
937
937
|
this.disposeWithMe(
|
|
938
938
|
this._sheetInterceptorService.intercept(
|
|
939
|
-
|
|
939
|
+
Xi.CELL_CONTENT,
|
|
940
940
|
{
|
|
941
941
|
effect: Br.Style,
|
|
942
|
-
priority:
|
|
942
|
+
priority: Vi.CELL_IMAGE,
|
|
943
943
|
handler: (i, t, e) => {
|
|
944
944
|
var n;
|
|
945
945
|
return i != null && i.p && ((n = i.p.drawingsOrder) != null && n.length) && (i.interceptorStyle || (i.interceptorStyle = {}), i.interceptorStyle.tr = { a: 0 }, Ir(this._injector, { unitId: t.unitId, subUnitId: t.subUnitId, row: t.row, col: t.col }, i)), e(i);
|
|
@@ -949,20 +949,20 @@ let Mt = class extends ie {
|
|
|
949
949
|
);
|
|
950
950
|
}
|
|
951
951
|
};
|
|
952
|
-
Mt =
|
|
952
|
+
Mt = Is([
|
|
953
953
|
ke(0, G),
|
|
954
954
|
ke(1, A(kt)),
|
|
955
955
|
ke(2, A(Ye)),
|
|
956
|
-
ke(3,
|
|
956
|
+
ke(3, ie),
|
|
957
957
|
ke(4, A(ni)),
|
|
958
|
-
ke(5, A(
|
|
958
|
+
ke(5, A(bi))
|
|
959
959
|
], Mt);
|
|
960
|
-
var
|
|
961
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
960
|
+
var Cs = Object.getOwnPropertyDescriptor, Ds = (i, t, e, n) => {
|
|
961
|
+
for (var r = n > 1 ? void 0 : n ? Cs(t, e) : t, s = i.length - 1, o; s >= 0; s--)
|
|
962
962
|
(o = i[s]) && (r = o(r) || r);
|
|
963
963
|
return r;
|
|
964
964
|
}, xn = (i, t) => (e, n) => t(e, n, i);
|
|
965
|
-
let yt = class extends
|
|
965
|
+
let yt = class extends re {
|
|
966
966
|
constructor(i, t) {
|
|
967
967
|
super(), this._autoFillService = i, this._injector = t, this._initAutoFillHooks();
|
|
968
968
|
}
|
|
@@ -979,27 +979,27 @@ let yt = class extends ie {
|
|
|
979
979
|
);
|
|
980
980
|
}
|
|
981
981
|
};
|
|
982
|
-
yt =
|
|
983
|
-
xn(0, A(
|
|
982
|
+
yt = Ds([
|
|
983
|
+
xn(0, A(Ri)),
|
|
984
984
|
xn(1, A(Ye))
|
|
985
985
|
], yt);
|
|
986
|
-
var
|
|
987
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
986
|
+
var bs = Object.getOwnPropertyDescriptor, Rs = (i, t, e, n) => {
|
|
987
|
+
for (var r = n > 1 ? void 0 : n ? bs(t, e) : t, s = i.length - 1, o; s >= 0; s--)
|
|
988
988
|
(o = i[s]) && (r = o(r) || r);
|
|
989
989
|
return r;
|
|
990
990
|
}, ze = (i, t) => (e, n) => t(e, n, i);
|
|
991
|
-
const
|
|
991
|
+
const Ms = [
|
|
992
992
|
qe,
|
|
993
993
|
xr,
|
|
994
994
|
Be
|
|
995
995
|
];
|
|
996
|
-
let Et = class extends
|
|
996
|
+
let Et = class extends re {
|
|
997
997
|
constructor(i, t, e, n, r) {
|
|
998
998
|
super(), this._commandService = i, this._univerInstanceService = t, this._dialogService = e, this._renderManagerService = n, this._localeService = r, this._initDocImageCopyPasteHooks();
|
|
999
999
|
}
|
|
1000
1000
|
_setCellImage(i) {
|
|
1001
1001
|
var r;
|
|
1002
|
-
const t = Ht("", {}), e = (r = on(x.UNIVER_SHEET, this._univerInstanceService, this._renderManagerService)) == null ? void 0 : r.with(
|
|
1002
|
+
const t = Ht("", {}), e = (r = on(x.UNIVER_SHEET, this._univerInstanceService, this._renderManagerService)) == null ? void 0 : r.with(Mi), n = zt.drawing.add({
|
|
1003
1003
|
documentDataModel: t,
|
|
1004
1004
|
drawings: [i],
|
|
1005
1005
|
selection: {
|
|
@@ -1014,12 +1014,12 @@ let Et = class extends ie {
|
|
|
1014
1014
|
this.disposeWithMe(
|
|
1015
1015
|
this._commandService.beforeCommandExecuted((i) => {
|
|
1016
1016
|
var t, e;
|
|
1017
|
-
if (i.id ===
|
|
1017
|
+
if (i.id === ss.id) {
|
|
1018
1018
|
const n = i.params, { doc: r } = n, s = this._univerInstanceService.getCurrentUnitOfType(x.UNIVER_DOC);
|
|
1019
1019
|
if (s == null || !Object.keys((t = r.drawings) != null ? t : {}).length)
|
|
1020
1020
|
return;
|
|
1021
1021
|
const o = s.getUnitId();
|
|
1022
|
-
if (
|
|
1022
|
+
if (Ms.includes(o)) {
|
|
1023
1023
|
if (o !== Be) {
|
|
1024
1024
|
const a = () => {
|
|
1025
1025
|
this._dialogService.close("sheet-cell-image-copy-paste"), this._commandService.syncExecuteCommand(En.id, {
|
|
@@ -1055,19 +1055,19 @@ let Et = class extends ie {
|
|
|
1055
1055
|
);
|
|
1056
1056
|
}
|
|
1057
1057
|
};
|
|
1058
|
-
Et =
|
|
1058
|
+
Et = Rs([
|
|
1059
1059
|
ze(0, G),
|
|
1060
1060
|
ze(1, Se),
|
|
1061
|
-
ze(2,
|
|
1062
|
-
ze(3,
|
|
1061
|
+
ze(2, Ni),
|
|
1062
|
+
ze(3, J),
|
|
1063
1063
|
ze(4, A(nt))
|
|
1064
1064
|
], Et);
|
|
1065
1065
|
const Bt = {
|
|
1066
1066
|
id: "sheet.command.insert-float-image",
|
|
1067
|
-
type:
|
|
1067
|
+
type: Z.COMMAND,
|
|
1068
1068
|
handler: async (i, t) => {
|
|
1069
1069
|
var o, a;
|
|
1070
|
-
const e = i.get(Se), n = i.get(
|
|
1070
|
+
const e = i.get(Se), n = i.get(J), r = (o = on(
|
|
1071
1071
|
x.UNIVER_SHEET,
|
|
1072
1072
|
e,
|
|
1073
1073
|
n
|
|
@@ -1083,10 +1083,10 @@ const Bt = {
|
|
|
1083
1083
|
}
|
|
1084
1084
|
}, ln = {
|
|
1085
1085
|
id: "sheet.command.insert-cell-image",
|
|
1086
|
-
type:
|
|
1086
|
+
type: Z.COMMAND,
|
|
1087
1087
|
handler: (i) => {
|
|
1088
1088
|
var n, r;
|
|
1089
|
-
const t = i.get(Se), e = i.get(
|
|
1089
|
+
const t = i.get(Se), e = i.get(J);
|
|
1090
1090
|
return (r = (n = on(
|
|
1091
1091
|
x.UNIVER_SHEET,
|
|
1092
1092
|
t,
|
|
@@ -1094,25 +1094,25 @@ const Bt = {
|
|
|
1094
1094
|
)) == null ? void 0 : n.with(et).insertCellImage()) != null ? r : !1;
|
|
1095
1095
|
}
|
|
1096
1096
|
};
|
|
1097
|
-
var
|
|
1098
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
1097
|
+
var ys = Object.getOwnPropertyDescriptor, Es = (i, t, e, n) => {
|
|
1098
|
+
for (var r = n > 1 ? void 0 : n ? ys(t, e) : t, s = i.length - 1, o; s >= 0; s--)
|
|
1099
1099
|
(o = i[s]) && (r = o(r) || r);
|
|
1100
1100
|
return r;
|
|
1101
1101
|
}, Ke = (i, t) => (e, n) => t(e, n, i);
|
|
1102
1102
|
const Cr = "image/png";
|
|
1103
|
-
function
|
|
1103
|
+
function Ts(i) {
|
|
1104
1104
|
const t = i.split(","), e = atob(t[1]), n = e.length, r = new Uint8Array(n);
|
|
1105
1105
|
for (let s = 0; s < n; s++)
|
|
1106
1106
|
r[s] = e.charCodeAt(s);
|
|
1107
1107
|
return new Blob([r], { type: Cr });
|
|
1108
1108
|
}
|
|
1109
|
-
function
|
|
1110
|
-
const t = new ClipboardItem({ [Cr]:
|
|
1109
|
+
function Os(i) {
|
|
1110
|
+
const t = new ClipboardItem({ [Cr]: Ts(i) });
|
|
1111
1111
|
navigator.clipboard.write([t]).catch((e) => {
|
|
1112
1112
|
console.error("Could not copy image using clipboard API: ", e);
|
|
1113
1113
|
});
|
|
1114
1114
|
}
|
|
1115
|
-
function
|
|
1115
|
+
function Us() {
|
|
1116
1116
|
function i() {
|
|
1117
1117
|
const n = document.createElement("input");
|
|
1118
1118
|
return n.style.position = "absolute", n.style.height = "1px", n.style.width = "1px", n.style.opacity = "0", n;
|
|
@@ -1128,10 +1128,10 @@ const Fn = [
|
|
|
1128
1128
|
$e.SPECIAL_PASTE_FORMAT,
|
|
1129
1129
|
$e.SPECIAL_PASTE_FORMULA
|
|
1130
1130
|
];
|
|
1131
|
-
let Tt = class extends
|
|
1131
|
+
let Tt = class extends re {
|
|
1132
1132
|
constructor(t, e, n, r, s) {
|
|
1133
1133
|
super();
|
|
1134
|
-
|
|
1134
|
+
ee(this, "_copyInfo");
|
|
1135
1135
|
this._sheetClipboardService = t, this._renderManagerService = e, this._drawingService = n, this._clipboardInterfaceService = r, this._commandService = s, this._initCopyPaste();
|
|
1136
1136
|
}
|
|
1137
1137
|
get _focusedDrawings() {
|
|
@@ -1153,8 +1153,8 @@ let Tt = class extends ie {
|
|
|
1153
1153
|
this._commandService.executeCommand(rt.id, d);
|
|
1154
1154
|
}
|
|
1155
1155
|
setTimeout(() => {
|
|
1156
|
-
const d =
|
|
1157
|
-
o.drawingType === j.DRAWING_IMAGE && o.imageSourceType === si.BASE64 ?
|
|
1156
|
+
const d = Us();
|
|
1157
|
+
o.drawingType === j.DRAWING_IMAGE && o.imageSourceType === si.BASE64 ? Os(o.source) : this._clipboardInterfaceService.writeText(""), d();
|
|
1158
1158
|
}, 200);
|
|
1159
1159
|
const a = {
|
|
1160
1160
|
unitId: o.unitId,
|
|
@@ -1322,7 +1322,7 @@ let Tt = class extends ie {
|
|
|
1322
1322
|
pasteTo: { unitId: n, subUnitId: r, range: Tn(o) },
|
|
1323
1323
|
pasteType: s
|
|
1324
1324
|
}, d);
|
|
1325
|
-
const { ranges: [l, g], mapFunc: h } =
|
|
1325
|
+
const { ranges: [l, g], mapFunc: h } = yi([a, o]), { row: m, col: p } = h(l.startRow, l.startColumn), { row: f, col: _ } = h(g.startRow, g.startColumn), S = u.attachRangeWithCoord({
|
|
1326
1326
|
startRow: m,
|
|
1327
1327
|
endRow: m,
|
|
1328
1328
|
startColumn: p,
|
|
@@ -1366,19 +1366,19 @@ let Tt = class extends ie {
|
|
|
1366
1366
|
});
|
|
1367
1367
|
}
|
|
1368
1368
|
};
|
|
1369
|
-
Tt =
|
|
1370
|
-
Ke(0,
|
|
1371
|
-
Ke(1,
|
|
1372
|
-
Ke(2,
|
|
1373
|
-
Ke(3,
|
|
1369
|
+
Tt = Es([
|
|
1370
|
+
Ke(0, Ei),
|
|
1371
|
+
Ke(1, J),
|
|
1372
|
+
Ke(2, ie),
|
|
1373
|
+
Ke(3, ki),
|
|
1374
1374
|
Ke(4, G)
|
|
1375
1375
|
], Tt);
|
|
1376
|
-
var
|
|
1377
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
1376
|
+
var Ps = Object.getOwnPropertyDescriptor, As = (i, t, e, n) => {
|
|
1377
|
+
for (var r = n > 1 ? void 0 : n ? Ps(t, e) : t, s = i.length - 1, o; s >= 0; s--)
|
|
1378
1378
|
(o = i[s]) && (r = o(r) || r);
|
|
1379
1379
|
return r;
|
|
1380
1380
|
}, Ze = (i, t) => (e, n) => t(e, n, i);
|
|
1381
|
-
let Ot = class extends
|
|
1381
|
+
let Ot = class extends re {
|
|
1382
1382
|
constructor(i, t, e, n, r) {
|
|
1383
1383
|
super(), this._drawingManagerService = i, this._renderManagerService = t, this._permissionService = e, this._univerInstanceService = n, this._userManagerService = r, this._initDrawingVisible(), this._initDrawingEditable(), this._initViewPermissionChange(), this._initEditPermissionChange();
|
|
1384
1384
|
}
|
|
@@ -1546,15 +1546,15 @@ let Ot = class extends ie {
|
|
|
1546
1546
|
);
|
|
1547
1547
|
}
|
|
1548
1548
|
};
|
|
1549
|
-
Ot =
|
|
1550
|
-
Ze(0,
|
|
1551
|
-
Ze(1,
|
|
1549
|
+
Ot = As([
|
|
1550
|
+
Ze(0, ie),
|
|
1551
|
+
Ze(1, J),
|
|
1552
1552
|
Ze(2, Fr),
|
|
1553
1553
|
Ze(3, Se),
|
|
1554
1554
|
Ze(4, A(Lr))
|
|
1555
1555
|
], Ot);
|
|
1556
|
-
var
|
|
1557
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
1556
|
+
var Ns = Object.getOwnPropertyDescriptor, ks = (i, t, e, n) => {
|
|
1557
|
+
for (var r = n > 1 ? void 0 : n ? Ns(t, e) : t, s = i.length - 1, o; s >= 0; s--)
|
|
1558
1558
|
(o = i[s]) && (r = o(r) || r);
|
|
1559
1559
|
return r;
|
|
1560
1560
|
}, De = (i, t) => (e, n) => t(e, n, i);
|
|
@@ -1577,7 +1577,7 @@ function Dr(i, t, e, n, r, s = !1) {
|
|
|
1577
1577
|
};
|
|
1578
1578
|
w && (Re.isDefine(T.top) && (T.top = w.top), Re.isDefine(T.left) && (T.left = w.left)), y === "HORIZONTAL" && (D = 0), y === "VERTICAL" && (v = 0);
|
|
1579
1579
|
let M = 0, R = 0;
|
|
1580
|
-
const N = e.rowStartY(l - h) + E, F = e.colStartX(c - g) + C,
|
|
1580
|
+
const N = e.rowStartY(l - h) + E, F = e.colStartX(c - g) + C, q = e.rowStartY(l) + E, H = e.colStartX(c) + C;
|
|
1581
1581
|
if (g === 0)
|
|
1582
1582
|
m.left = !1, M = (p - v) * o, R = (f - v) * o;
|
|
1583
1583
|
else {
|
|
@@ -1589,7 +1589,7 @@ function Dr(i, t, e, n, r, s = !1) {
|
|
|
1589
1589
|
m.top = !1, X = (_ - D) * a, Y = (S - D) * a;
|
|
1590
1590
|
else {
|
|
1591
1591
|
const k = _ - (N - E), ce = S - (N - E);
|
|
1592
|
-
S <
|
|
1592
|
+
S < q ? (X = k * a, Y = ce * a) : _ <= q && S >= q ? (X = k * a, Y = Math.max(I, (S - D) * a)) : _ > q && (m.top = !1, X = Math.max((_ - D) * a, I), Y = Math.max((S - D) * a, I));
|
|
1593
1593
|
}
|
|
1594
1594
|
return M = Math.max(M, T.left), X = Math.max(X, T.top), R = Math.max(R, T.left), Y = Math.max(Y, T.top), {
|
|
1595
1595
|
left: M,
|
|
@@ -1617,23 +1617,23 @@ const fe = (i, t, e, n, r) => {
|
|
|
1617
1617
|
absolute: l.absolute
|
|
1618
1618
|
};
|
|
1619
1619
|
};
|
|
1620
|
-
let tt = class extends
|
|
1620
|
+
let tt = class extends re {
|
|
1621
1621
|
constructor(t, e, n, r, s, o, a) {
|
|
1622
1622
|
super();
|
|
1623
1623
|
/**
|
|
1624
1624
|
* for update dom container position when scrolling and zoom
|
|
1625
1625
|
*/
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1626
|
+
ee(this, "_domLayerInfoMap", /* @__PURE__ */ new Map());
|
|
1627
|
+
ee(this, "_transformChange$", new Xt());
|
|
1628
|
+
ee(this, "transformChange$", this._transformChange$.asObservable());
|
|
1629
|
+
ee(this, "_add$", new Xt());
|
|
1630
|
+
ee(this, "add$", this._add$.asObservable());
|
|
1631
|
+
ee(this, "_remove$", new Xt());
|
|
1632
|
+
ee(this, "remove$", this._remove$.asObservable());
|
|
1633
1633
|
this._renderManagerService = t, this._univerInstanceService = e, this._commandService = n, this._drawingManagerService = r, this._canvasFloatDomService = s, this._sheetDrawingService = o, this._lifecycleService = a, this._drawingAddListener(), this._featureUpdateListener(), this._deleteListener(), this._bindScrollEvent();
|
|
1634
1634
|
}
|
|
1635
1635
|
_bindScrollEvent() {
|
|
1636
|
-
this._lifecycleService.lifecycle$.pipe(
|
|
1636
|
+
this._lifecycleService.lifecycle$.pipe(Yi((t) => t === Gr.Rendered), Gi(1)).subscribe(() => {
|
|
1637
1637
|
this._scrollUpdateListener();
|
|
1638
1638
|
});
|
|
1639
1639
|
}
|
|
@@ -1659,7 +1659,7 @@ let tt = class extends ie {
|
|
|
1659
1659
|
this._drawingManagerService.add$.subscribe((t) => {
|
|
1660
1660
|
t.forEach((e) => {
|
|
1661
1661
|
var K;
|
|
1662
|
-
const { unitId: n, subUnitId: r, drawingId: s } = e, o =
|
|
1662
|
+
const { unitId: n, subUnitId: r, drawingId: s } = e, o = oe(this._univerInstanceService, { unitId: n, subUnitId: r }), a = this._drawingManagerService.getDrawingByParam(e), d = this._univerInstanceService.getUnit(n, x.UNIVER_SHEET);
|
|
1663
1663
|
if (!d)
|
|
1664
1664
|
return;
|
|
1665
1665
|
const u = d.getActiveSheet().getSheetId();
|
|
@@ -1697,7 +1697,7 @@ let tt = class extends ie {
|
|
|
1697
1697
|
}
|
|
1698
1698
|
const N = new Ne(E, M);
|
|
1699
1699
|
R && N.setObjectType(yn.CHART), p.addObject(N, Yt), a.allowTransform !== !1 && p.attachTransformerTo(N);
|
|
1700
|
-
const F = new wt(),
|
|
1700
|
+
const F = new wt(), q = fe(N, m.renderUnit.scene, c.skeleton, o.worksheet), H = new je(q), X = {
|
|
1701
1701
|
dispose: F,
|
|
1702
1702
|
rect: N,
|
|
1703
1703
|
position$: H,
|
|
@@ -1751,7 +1751,7 @@ let tt = class extends ie {
|
|
|
1751
1751
|
_scrollUpdateListener() {
|
|
1752
1752
|
const t = (e, n) => {
|
|
1753
1753
|
var d;
|
|
1754
|
-
const r = this._getSceneAndTransformerByDrawingSearch(e), s = Array.from(this._domLayerInfoMap.keys()).map((u) => ({ id: u, ...this._domLayerInfoMap.get(u) })).filter((u) => u.subUnitId === n && u.unitId === e).map((u) => u.id), o =
|
|
1754
|
+
const r = this._getSceneAndTransformerByDrawingSearch(e), s = Array.from(this._domLayerInfoMap.keys()).map((u) => ({ id: u, ...this._domLayerInfoMap.get(u) })).filter((u) => u.subUnitId === n && u.unitId === e).map((u) => u.id), o = oe(this._univerInstanceService, { unitId: e, subUnitId: n }), a = (d = this._renderManagerService.getRenderById(e)) == null ? void 0 : d.with(V).getSkeletonParam(n);
|
|
1755
1755
|
!r || !o || !a || s.forEach((u) => {
|
|
1756
1756
|
const c = this._domLayerInfoMap.get(u);
|
|
1757
1757
|
if (c) {
|
|
@@ -1782,7 +1782,7 @@ let tt = class extends ie {
|
|
|
1782
1782
|
Array.from(this._domLayerInfoMap.values()).filter((o) => o.unitId === r).map((o) => o.subUnitId).forEach((o) => {
|
|
1783
1783
|
t(r, o);
|
|
1784
1784
|
});
|
|
1785
|
-
} else if (e.id ===
|
|
1785
|
+
} else if (e.id === Hi.id) {
|
|
1786
1786
|
const { unitId: n, subUnitId: r } = e.params;
|
|
1787
1787
|
t(n, r);
|
|
1788
1788
|
}
|
|
@@ -1848,7 +1848,7 @@ let tt = class extends ie {
|
|
|
1848
1848
|
}
|
|
1849
1849
|
// CreateFloatDomCommand --> floatDomService.addFloatDomToPosition
|
|
1850
1850
|
addFloatDomToPosition(t, e) {
|
|
1851
|
-
const n =
|
|
1851
|
+
const n = oe(this._univerInstanceService, {
|
|
1852
1852
|
unitId: t.unitId,
|
|
1853
1853
|
subUnitId: t.subUnitId
|
|
1854
1854
|
});
|
|
@@ -1901,7 +1901,7 @@ let tt = class extends ie {
|
|
|
1901
1901
|
// eslint-disable-next-line max-lines-per-function, complexity
|
|
1902
1902
|
addFloatDomToRange(t, e, n, r) {
|
|
1903
1903
|
var D, w, y;
|
|
1904
|
-
const s =
|
|
1904
|
+
const s = oe(this._univerInstanceService, {
|
|
1905
1905
|
unitId: e.unitId,
|
|
1906
1906
|
subUnitId: e.subUnitId
|
|
1907
1907
|
});
|
|
@@ -1932,16 +1932,16 @@ let tt = class extends ie {
|
|
|
1932
1932
|
allowTransform: h
|
|
1933
1933
|
};
|
|
1934
1934
|
{
|
|
1935
|
-
const { unitId: C, subUnitId: E, drawingId: T } = v, M =
|
|
1935
|
+
const { unitId: C, subUnitId: E, drawingId: T } = v, M = oe(this._univerInstanceService, { unitId: C, subUnitId: E }), R = v, N = this._univerInstanceService.getUnit(C, x.UNIVER_SHEET);
|
|
1936
1936
|
if (!N)
|
|
1937
1937
|
return;
|
|
1938
1938
|
const F = N.getActiveSheet().getSheetId();
|
|
1939
1939
|
if (!R || !M)
|
|
1940
1940
|
return;
|
|
1941
|
-
const
|
|
1942
|
-
if (!
|
|
1941
|
+
const q = (w = this._renderManagerService.getRenderById(C)) == null ? void 0 : w.with(V);
|
|
1942
|
+
if (!q)
|
|
1943
1943
|
return;
|
|
1944
|
-
const H =
|
|
1944
|
+
const H = q.getWorksheetSkeleton(E);
|
|
1945
1945
|
if (!H)
|
|
1946
1946
|
return;
|
|
1947
1947
|
const { transform: X, drawingType: Y, data: K } = R;
|
|
@@ -1958,7 +1958,7 @@ let tt = class extends ie {
|
|
|
1958
1958
|
le.transformByState({ left: ot, top: at, width: ct, height: dt, angle: $t, flipX: xt, flipY: lt, skewX: ut, skewY: Ee });
|
|
1959
1959
|
return;
|
|
1960
1960
|
}
|
|
1961
|
-
const
|
|
1961
|
+
const Q = {
|
|
1962
1962
|
left: ot,
|
|
1963
1963
|
// from floatDomParam.transform
|
|
1964
1964
|
top: at,
|
|
@@ -1968,9 +1968,9 @@ let tt = class extends ie {
|
|
|
1968
1968
|
}, Te = Y === j.DRAWING_CHART;
|
|
1969
1969
|
if (Te) {
|
|
1970
1970
|
const W = K ? K.backgroundColor : "white";
|
|
1971
|
-
|
|
1971
|
+
Q.fill = W, Q.rotateEnabled = !1, K && K.border && (Q.stroke = K.border), Q.paintFirst = "stroke", Q.strokeWidth = 1, Q.borderEnabled = !1, Q.radius = 8;
|
|
1972
1972
|
}
|
|
1973
|
-
const ue = new Ne(ht,
|
|
1973
|
+
const ue = new Ne(ht, Q);
|
|
1974
1974
|
Te && ue.setObjectType(yn.CHART), ce.addObject(ue, Yt), R.allowTransform !== !1 && ce.attachTransformerTo(ue);
|
|
1975
1975
|
const he = new wt(), gt = ce.getMainViewport(), { rowHeaderWidth: Oe, columnHeaderHeight: Xe } = H.skeleton, ft = {
|
|
1976
1976
|
top: Xe,
|
|
@@ -2059,7 +2059,7 @@ let tt = class extends ie {
|
|
|
2059
2059
|
// eslint-disable-next-line max-lines-per-function, complexity
|
|
2060
2060
|
addFloatDomToColumnHeader(t, e, n, r) {
|
|
2061
2061
|
var b, v, D;
|
|
2062
|
-
const s =
|
|
2062
|
+
const s = oe(this._univerInstanceService, {
|
|
2063
2063
|
unitId: e.unitId,
|
|
2064
2064
|
subUnitId: e.subUnitId
|
|
2065
2065
|
});
|
|
@@ -2095,7 +2095,7 @@ let tt = class extends ie {
|
|
|
2095
2095
|
allowTransform: h
|
|
2096
2096
|
};
|
|
2097
2097
|
{
|
|
2098
|
-
const { unitId: w, subUnitId: y, drawingId: C } = I, E =
|
|
2098
|
+
const { unitId: w, subUnitId: y, drawingId: C } = I, E = oe(this._univerInstanceService, { unitId: w, subUnitId: y }), T = I, M = this._univerInstanceService.getUnit(w, x.UNIVER_SHEET);
|
|
2099
2099
|
if (!M)
|
|
2100
2100
|
return;
|
|
2101
2101
|
const R = M.getActiveSheet().getSheetId();
|
|
@@ -2107,13 +2107,13 @@ let tt = class extends ie {
|
|
|
2107
2107
|
const F = N.getWorksheetSkeleton(y);
|
|
2108
2108
|
if (!F)
|
|
2109
2109
|
return;
|
|
2110
|
-
const { transform:
|
|
2110
|
+
const { transform: q, data: H } = T, X = this._getSceneAndTransformerByDrawingSearch(w);
|
|
2111
2111
|
if (X == null)
|
|
2112
2112
|
return;
|
|
2113
2113
|
const { scene: Y, canvas: K } = X;
|
|
2114
|
-
if (
|
|
2114
|
+
if (q == null || R !== y)
|
|
2115
2115
|
return;
|
|
2116
|
-
const { left: k, top: ce, width: ye, height: ot, angle: at, flipX: ct, flipY: dt, skewX: $t, skewY: xt } =
|
|
2116
|
+
const { left: k, top: ce, width: ye, height: ot, angle: at, flipX: ct, flipY: dt, skewX: $t, skewY: xt } = q, lt = Ie({ unitId: w, subUnitId: y, drawingId: C }), ut = Y.getObject(lt);
|
|
2117
2117
|
if (ut != null) {
|
|
2118
2118
|
ut.transformByState({ left: k, top: ce, width: ye, height: ot, angle: at, flipX: ct, flipY: dt, skewX: $t, skewY: xt });
|
|
2119
2119
|
return;
|
|
@@ -2137,14 +2137,14 @@ let tt = class extends ie {
|
|
|
2137
2137
|
zIndex: this._drawingManagerService.getDrawingOrder(w, y).length - 1
|
|
2138
2138
|
}, le = new Ne(lt, ht);
|
|
2139
2139
|
Y.addObject(le, Yt), T.allowTransform !== !1 && Y.attachTransformerTo(le);
|
|
2140
|
-
const
|
|
2140
|
+
const Q = new wt(), Te = Y.getMainViewport(), ue = {
|
|
2141
2141
|
top: 0,
|
|
2142
2142
|
//viewMain.top,
|
|
2143
2143
|
left: Te.left,
|
|
2144
2144
|
bottom: Te.bottom,
|
|
2145
2145
|
right: Te.right
|
|
2146
2146
|
}, he = {
|
|
2147
|
-
dispose:
|
|
2147
|
+
dispose: Q,
|
|
2148
2148
|
rect: le,
|
|
2149
2149
|
// position$,
|
|
2150
2150
|
unitId: w,
|
|
@@ -2213,9 +2213,9 @@ let tt = class extends ie {
|
|
|
2213
2213
|
const ge = (D = this._renderManagerService.getRenderById(w)) == null ? void 0 : D.with(V);
|
|
2214
2214
|
ge == null || ge.currentSkeleton$.subscribe((B) => {
|
|
2215
2215
|
B && c.sheetId !== B.sheetId && this._removeDom(m, !0);
|
|
2216
|
-
}),
|
|
2216
|
+
}), Q.add(() => {
|
|
2217
2217
|
this._canvasFloatDomService.removeFloatDom(C);
|
|
2218
|
-
}), ft &&
|
|
2218
|
+
}), ft && Q.add(ft), this._domLayerInfoMap.set(C, he);
|
|
2219
2219
|
}
|
|
2220
2220
|
return {
|
|
2221
2221
|
id: m,
|
|
@@ -2242,11 +2242,11 @@ let tt = class extends ie {
|
|
|
2242
2242
|
a.next(f), u.next(_);
|
|
2243
2243
|
}, l = new wt();
|
|
2244
2244
|
l.add(e.engine.clientRect$.subscribe(() => c())), l.add(this._commandService.onCommandExecuted((f) => {
|
|
2245
|
-
if (f.id ===
|
|
2245
|
+
if (f.id === zi.id && f.params.rowsAutoHeightInfo.findIndex((S) => S.row === r) > -1) {
|
|
2246
2246
|
c();
|
|
2247
2247
|
return;
|
|
2248
2248
|
}
|
|
2249
|
-
(
|
|
2249
|
+
(Ki.indexOf(f.id) > -1 || f.id === Ti.id || f.id === On.id) && c();
|
|
2250
2250
|
}));
|
|
2251
2251
|
const g = (f, _) => {
|
|
2252
2252
|
r = f, s = _, c();
|
|
@@ -2290,13 +2290,13 @@ let tt = class extends ie {
|
|
|
2290
2290
|
};
|
|
2291
2291
|
}
|
|
2292
2292
|
};
|
|
2293
|
-
tt =
|
|
2294
|
-
De(0, A(
|
|
2293
|
+
tt = ks([
|
|
2294
|
+
De(0, A(J)),
|
|
2295
2295
|
De(1, Se),
|
|
2296
2296
|
De(2, A(G)),
|
|
2297
|
-
De(3,
|
|
2298
|
-
De(4, A(
|
|
2299
|
-
De(5,
|
|
2297
|
+
De(3, ie),
|
|
2298
|
+
De(4, A(Wi)),
|
|
2299
|
+
De(5, se),
|
|
2300
2300
|
De(6, A(Yr))
|
|
2301
2301
|
], tt);
|
|
2302
2302
|
function Je(i, t, e) {
|
|
@@ -2345,8 +2345,8 @@ function Dt(i, t) {
|
|
|
2345
2345
|
const e = Number.parseFloat(i);
|
|
2346
2346
|
return t * e / 100;
|
|
2347
2347
|
}
|
|
2348
|
-
const
|
|
2349
|
-
const { floatDomInfos: t, scene: e, skeleton: n, worksheet: r } = i, s =
|
|
2348
|
+
const Ws = (i) => {
|
|
2349
|
+
const { floatDomInfos: t, scene: e, skeleton: n, worksheet: r } = i, s = os(() => t.map((o) => {
|
|
2350
2350
|
const { width: a, height: d, angle: u, left: c, top: l } = o.transform, g = Dr(
|
|
2351
2351
|
{
|
|
2352
2352
|
left: c != null ? c : 0,
|
|
@@ -2386,14 +2386,14 @@ const js = (i) => {
|
|
|
2386
2386
|
};
|
|
2387
2387
|
return [o.drawingId, f];
|
|
2388
2388
|
}), [t, e, n, r]);
|
|
2389
|
-
return /* @__PURE__ */
|
|
2389
|
+
return /* @__PURE__ */ ae("div", { style: { position: "absolute", top: 0, left: 0 }, children: s.map(([o, a]) => /* @__PURE__ */ ae(ji, { layer: a, id: o, position: a.position }, o)) });
|
|
2390
2390
|
};
|
|
2391
|
-
var
|
|
2392
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
2391
|
+
var js = Object.getOwnPropertyDescriptor, Bs = (i, t, e, n) => {
|
|
2392
|
+
for (var r = n > 1 ? void 0 : n ? js(t, e) : t, s = i.length - 1, o; s >= 0; s--)
|
|
2393
2393
|
(o = i[s]) && (r = o(r) || r);
|
|
2394
2394
|
return r;
|
|
2395
2395
|
}, be = (i, t) => (e, n) => t(e, n, i);
|
|
2396
|
-
let Ut = class extends
|
|
2396
|
+
let Ut = class extends re {
|
|
2397
2397
|
constructor(i, t, e, n, r, s, o) {
|
|
2398
2398
|
super(), this._sheetPrintInterceptorService = i, this._drawingRenderService = t, this._drawingManagerService = e, this._renderManagerService = n, this._canvasFloatDomManagerService = r, this._componetManager = s, this._injector = o, this._initPrinting(), this._initPrintingDom();
|
|
2399
2399
|
}
|
|
@@ -2460,9 +2460,9 @@ let Ut = class extends ie {
|
|
|
2460
2460
|
};
|
|
2461
2461
|
}
|
|
2462
2462
|
return null;
|
|
2463
|
-
}).filter(Boolean), d =
|
|
2463
|
+
}).filter(Boolean), d = Bi(Ws, this._injector);
|
|
2464
2464
|
return wi(
|
|
2465
|
-
/* @__PURE__ */
|
|
2465
|
+
/* @__PURE__ */ ae(d, { floatDomInfos: a, scene: t.scene, skeleton: t.skeleton, worksheet: t.worksheet }),
|
|
2466
2466
|
t.root
|
|
2467
2467
|
), i == null || i.add(() => {
|
|
2468
2468
|
_i(t.root);
|
|
@@ -2474,21 +2474,21 @@ let Ut = class extends ie {
|
|
|
2474
2474
|
);
|
|
2475
2475
|
}
|
|
2476
2476
|
};
|
|
2477
|
-
Ut =
|
|
2478
|
-
be(0, A(
|
|
2477
|
+
Ut = Bs([
|
|
2478
|
+
be(0, A(Oi)),
|
|
2479
2479
|
be(1, A(Gn)),
|
|
2480
|
-
be(2,
|
|
2481
|
-
be(3,
|
|
2480
|
+
be(2, ie),
|
|
2481
|
+
be(3, J),
|
|
2482
2482
|
be(4, A(tt)),
|
|
2483
2483
|
be(5, A(zn)),
|
|
2484
2484
|
be(6, A(Ye))
|
|
2485
2485
|
], Ut);
|
|
2486
|
-
var
|
|
2487
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
2486
|
+
var $s = Object.getOwnPropertyDescriptor, xs = (i, t, e, n) => {
|
|
2487
|
+
for (var r = n > 1 ? void 0 : n ? $s(t, e) : t, s = i.length - 1, o; s >= 0; s--)
|
|
2488
2488
|
(o = i[s]) && (r = o(r) || r);
|
|
2489
2489
|
return r;
|
|
2490
2490
|
}, pe = (i, t) => (e, n) => t(e, n, i);
|
|
2491
|
-
const
|
|
2491
|
+
const Fs = [
|
|
2492
2492
|
Kn.id,
|
|
2493
2493
|
Zn.id,
|
|
2494
2494
|
Jn.id,
|
|
@@ -2508,15 +2508,15 @@ const Ls = [
|
|
|
2508
2508
|
dr.id,
|
|
2509
2509
|
lr.id,
|
|
2510
2510
|
ur.id
|
|
2511
|
-
],
|
|
2511
|
+
], Ls = [
|
|
2512
|
+
Zi.id,
|
|
2512
2513
|
Ji.id,
|
|
2513
2514
|
qi.id,
|
|
2514
2515
|
Qi.id,
|
|
2515
2516
|
es.id,
|
|
2516
|
-
ts.id
|
|
2517
|
-
ns.id
|
|
2517
|
+
ts.id
|
|
2518
2518
|
];
|
|
2519
|
-
let sn = class extends
|
|
2519
|
+
let sn = class extends re {
|
|
2520
2520
|
constructor(i, t, e, n, r, s, o, a, d) {
|
|
2521
2521
|
super(), this._context = i, this._renderManagerService = t, this._commandService = e, this._selectionRenderService = n, this._skeletonManagerService = r, this._sheetInterceptorService = s, this._sheetDrawingService = o, this._drawingManagerService = a, this._univerInstanceService = d, this._sheetInterceptorListener(), this._commandListener(), this._sheetRefreshListener();
|
|
2522
2522
|
}
|
|
@@ -2524,7 +2524,7 @@ let sn = class extends ie {
|
|
|
2524
2524
|
this.disposeWithMe(
|
|
2525
2525
|
this._sheetInterceptorService.interceptCommand({
|
|
2526
2526
|
getMutations: (i) => {
|
|
2527
|
-
if (!
|
|
2527
|
+
if (!Fs.includes(i.id))
|
|
2528
2528
|
return { redos: [], undos: [] };
|
|
2529
2529
|
if (i.params == null)
|
|
2530
2530
|
return { redos: [], undos: [] };
|
|
@@ -2583,7 +2583,7 @@ let sn = class extends ie {
|
|
|
2583
2583
|
);
|
|
2584
2584
|
}
|
|
2585
2585
|
_getRangeMoveUndo(i, t) {
|
|
2586
|
-
const e =
|
|
2586
|
+
const e = oe(this._univerInstanceService);
|
|
2587
2587
|
if (e == null)
|
|
2588
2588
|
return { redos: [], undos: [] };
|
|
2589
2589
|
const n = e.unitId, r = e.subUnitId, s = [], o = [], a = this._sheetDrawingService.getDrawingData(n, r), d = [], u = [];
|
|
@@ -2856,7 +2856,7 @@ let sn = class extends ie {
|
|
|
2856
2856
|
if (t === "insert")
|
|
2857
2857
|
e = i.unitId, n = i.subUnitId;
|
|
2858
2858
|
else {
|
|
2859
|
-
const r =
|
|
2859
|
+
const r = oe(this._univerInstanceService);
|
|
2860
2860
|
if (r == null)
|
|
2861
2861
|
return;
|
|
2862
2862
|
e = r.unitId, n = r.subUnitId;
|
|
@@ -2865,7 +2865,7 @@ let sn = class extends ie {
|
|
|
2865
2865
|
}
|
|
2866
2866
|
_moveRangeInterceptor(i) {
|
|
2867
2867
|
var I, b;
|
|
2868
|
-
const { toRange: t, fromRange: e } = i, n =
|
|
2868
|
+
const { toRange: t, fromRange: e } = i, n = oe(this._univerInstanceService);
|
|
2869
2869
|
if (!n)
|
|
2870
2870
|
return { redos: [], undos: [] };
|
|
2871
2871
|
const { unitId: r, subUnitId: s } = n, o = (b = (I = this._renderManagerService.getRenderById(r)) == null ? void 0 : I.with(V)) == null ? void 0 : b.getCurrentSkeleton();
|
|
@@ -3164,7 +3164,7 @@ let sn = class extends ie {
|
|
|
3164
3164
|
// but the skeleton changes like other render modules. These two signals are not equivalent.
|
|
3165
3165
|
// As a temp solution, I subscribed to activate$ here.
|
|
3166
3166
|
this._commandService.onCommandExecuted((i) => {
|
|
3167
|
-
if (i.id ===
|
|
3167
|
+
if (i.id === ns.id) {
|
|
3168
3168
|
const { unitId: t, subUnitId: e } = i.params;
|
|
3169
3169
|
this._updateDrawings(t, e);
|
|
3170
3170
|
}
|
|
@@ -3215,7 +3215,7 @@ let sn = class extends ie {
|
|
|
3215
3215
|
_sheetRefreshListener() {
|
|
3216
3216
|
this.disposeWithMe(
|
|
3217
3217
|
this._commandService.onCommandExecuted((i) => {
|
|
3218
|
-
|
|
3218
|
+
Ls.includes(i.id) && requestIdleCallback(() => {
|
|
3219
3219
|
const t = i.params, { unitId: e, subUnitId: n, ranges: r } = t;
|
|
3220
3220
|
this._refreshDrawingTransform(e, n, r);
|
|
3221
3221
|
});
|
|
@@ -3260,25 +3260,25 @@ let sn = class extends ie {
|
|
|
3260
3260
|
}), r.length !== 0 && (this._drawingManagerService.refreshTransform(r), this._commandService.syncExecuteCommand(L.id, [i]));
|
|
3261
3261
|
}
|
|
3262
3262
|
};
|
|
3263
|
-
sn =
|
|
3264
|
-
pe(1,
|
|
3263
|
+
sn = xs([
|
|
3264
|
+
pe(1, J),
|
|
3265
3265
|
pe(2, G),
|
|
3266
3266
|
pe(3, Ge),
|
|
3267
3267
|
pe(4, A(V)),
|
|
3268
3268
|
pe(5, A(kt)),
|
|
3269
|
-
pe(6,
|
|
3270
|
-
pe(7,
|
|
3269
|
+
pe(6, se),
|
|
3270
|
+
pe(7, ie),
|
|
3271
3271
|
pe(8, Se)
|
|
3272
3272
|
], sn);
|
|
3273
|
-
var
|
|
3274
|
-
return
|
|
3273
|
+
var ne = function() {
|
|
3274
|
+
return ne = Object.assign || function(i) {
|
|
3275
3275
|
for (var t, e = 1, n = arguments.length; e < n; e++) {
|
|
3276
3276
|
t = arguments[e];
|
|
3277
3277
|
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && (i[r] = t[r]);
|
|
3278
3278
|
}
|
|
3279
3279
|
return i;
|
|
3280
|
-
},
|
|
3281
|
-
},
|
|
3280
|
+
}, ne.apply(this, arguments);
|
|
3281
|
+
}, Ys = function(i, t) {
|
|
3282
3282
|
var e = {};
|
|
3283
3283
|
for (var n in i) Object.prototype.hasOwnProperty.call(i, n) && t.indexOf(n) < 0 && (e[n] = i[n]);
|
|
3284
3284
|
if (i != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -3286,16 +3286,16 @@ var re = function() {
|
|
|
3286
3286
|
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(i, n[r]) && (e[n[r]] = i[n[r]]);
|
|
3287
3287
|
return e;
|
|
3288
3288
|
}, br = hr(function(i, t) {
|
|
3289
|
-
var e = i.icon, n = i.id, r = i.className, s = i.extend, o =
|
|
3290
|
-
return Rr(e, "".concat(n), { defIds: e.defIds, idSuffix: d.current },
|
|
3289
|
+
var e = i.icon, n = i.id, r = i.className, s = i.extend, o = Ys(i, ["icon", "id", "className", "extend"]), a = "univerjs-icon univerjs-icon-".concat(n, " ").concat(r || "").trim(), d = as("_".concat(Vs()));
|
|
3290
|
+
return Rr(e, "".concat(n), { defIds: e.defIds, idSuffix: d.current }, ne({ ref: t, className: a }, o), s);
|
|
3291
3291
|
});
|
|
3292
3292
|
function Rr(i, t, e, n, r) {
|
|
3293
|
-
return gr(i.tag,
|
|
3293
|
+
return gr(i.tag, ne(ne({ key: t }, Gs(i, e, r)), n), (Xs(i, e).children || []).map(function(s, o) {
|
|
3294
3294
|
return Rr(s, "".concat(t, "-").concat(i.tag, "-").concat(o), e, void 0, r);
|
|
3295
3295
|
}));
|
|
3296
3296
|
}
|
|
3297
|
-
function
|
|
3298
|
-
var n =
|
|
3297
|
+
function Gs(i, t, e) {
|
|
3298
|
+
var n = ne({}, i.attrs);
|
|
3299
3299
|
e != null && e.colorChannel1 && n.fill === "colorChannel1" && (n.fill = e.colorChannel1), i.tag === "mask" && n.id && (n.id = n.id + t.idSuffix), Object.entries(n).forEach(function(s) {
|
|
3300
3300
|
var o = s[0], a = s[1];
|
|
3301
3301
|
o === "mask" && typeof a == "string" && (n[o] = a.replace(/url\(#(.*)\)/, "url(#$1".concat(t.idSuffix, ")")));
|
|
@@ -3306,29 +3306,29 @@ function Xs(i, t, e) {
|
|
|
3306
3306
|
typeof a == "string" && (n[o] = a.replace(/url\(#(.*)\)/, "url(#$1".concat(t.idSuffix, ")")));
|
|
3307
3307
|
})), n;
|
|
3308
3308
|
}
|
|
3309
|
-
function
|
|
3309
|
+
function Xs(i, t) {
|
|
3310
3310
|
var e, n = t.defIds;
|
|
3311
|
-
return !n || n.length === 0 ? i : i.tag === "defs" && (!((e = i.children) === null || e === void 0) && e.length) ?
|
|
3312
|
-
return typeof r.attrs.id == "string" && n && n.indexOf(r.attrs.id) > -1 ?
|
|
3311
|
+
return !n || n.length === 0 ? i : i.tag === "defs" && (!((e = i.children) === null || e === void 0) && e.length) ? ne(ne({}, i), { children: i.children.map(function(r) {
|
|
3312
|
+
return typeof r.attrs.id == "string" && n && n.indexOf(r.attrs.id) > -1 ? ne(ne({}, r), { attrs: ne(ne({}, r.attrs), { id: r.attrs.id + t.idSuffix }) }) : r;
|
|
3313
3313
|
}) }) : i;
|
|
3314
3314
|
}
|
|
3315
|
-
function
|
|
3315
|
+
function Vs() {
|
|
3316
3316
|
return Math.random().toString(36).substring(2, 8);
|
|
3317
3317
|
}
|
|
3318
3318
|
br.displayName = "UniverIcon";
|
|
3319
|
-
var
|
|
3319
|
+
var Hs = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M2.2498 3.65005C2.2498 2.87685 2.87661 2.25005 3.64981 2.25005H7.9998C8.33118 2.25005 8.5998 1.98142 8.5998 1.65005C8.5998 1.31868 8.33118 1.05005 7.9998 1.05005H3.64981C2.21387 1.05005 1.0498 2.21411 1.0498 3.65005V12.35C1.0498 13.786 2.21386 14.95 3.6498 14.95H12.3498C13.7857 14.95 14.9498 13.786 14.9498 12.3501V8.00005C14.9498 7.66868 14.6812 7.40005 14.3498 7.40005C14.0184 7.40005 13.7498 7.66868 13.7498 8.00005V9.23974L12.2385 8.1063C11.7252 7.72129 11.0068 7.7723 10.5531 8.22605L9.00869 9.77041L6.73916 7.8251C6.24387 7.40055 5.5095 7.41278 5.02864 7.85359L2.2498 10.4009V3.65005ZM2.2498 12.0287V12.35C2.2498 13.1232 2.87661 13.75 3.6498 13.75H12.3498C13.123 13.75 13.7498 13.1232 13.7498 12.3501V10.7397L11.5186 9.06631C11.4829 9.03956 11.433 9.04314 11.4016 9.07458L9.92249 10.5537L11.1015 11.5642C11.3531 11.7799 11.3822 12.1587 11.1666 12.4103C10.9509 12.6619 10.5721 12.691 10.3205 12.4753L5.9582 8.7362C5.92384 8.70674 5.87288 8.70758 5.83952 8.73816L2.2498 12.0287Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M11.8097 1.14783C12.1411 1.14783 12.4097 1.41646 12.4097 1.74783V3.297H14.1541C14.4855 3.297 14.7541 3.56563 14.7541 3.897C14.7541 4.22837 14.4855 4.497 14.1541 4.497H12.4097V6.24167C12.4097 6.57304 12.1411 6.84167 11.8097 6.84167C11.4783 6.84167 11.2097 6.57304 11.2097 6.24167V4.497H9.6603C9.32893 4.497 9.0603 4.22837 9.0603 3.897C9.0603 3.56563 9.32893 3.297 9.6603 3.297H11.2097V1.74783C11.2097 1.41646 11.4783 1.14783 11.8097 1.14783Z" } }] }, Mr = hr(function(i, t) {
|
|
3320
3320
|
return gr(br, Object.assign({}, i, {
|
|
3321
3321
|
id: "add-image-single",
|
|
3322
3322
|
ref: t,
|
|
3323
|
-
icon:
|
|
3323
|
+
icon: Hs
|
|
3324
3324
|
}));
|
|
3325
3325
|
});
|
|
3326
3326
|
Mr.displayName = "AddImageSingle";
|
|
3327
3327
|
const yr = {
|
|
3328
3328
|
id: "sheet.command.delete-drawing",
|
|
3329
|
-
type:
|
|
3329
|
+
type: Z.COMMAND,
|
|
3330
3330
|
handler: (i) => {
|
|
3331
|
-
const t = i.get(G), n = i.get(
|
|
3331
|
+
const t = i.get(G), n = i.get(se).getFocusDrawings();
|
|
3332
3332
|
if (n.length === 0)
|
|
3333
3333
|
return !1;
|
|
3334
3334
|
const r = n[0].unitId, s = n.map((o) => {
|
|
@@ -3347,9 +3347,9 @@ const yr = {
|
|
|
3347
3347
|
}
|
|
3348
3348
|
}, it = {
|
|
3349
3349
|
id: "sheet.command.move-drawing",
|
|
3350
|
-
type:
|
|
3350
|
+
type: Z.COMMAND,
|
|
3351
3351
|
handler: (i, t) => {
|
|
3352
|
-
const e = i.get(G), n = i.get(
|
|
3352
|
+
const e = i.get(G), n = i.get(se), r = i.get(Ge), { direction: s } = t, o = n.getFocusDrawings();
|
|
3353
3353
|
if (o.length === 0)
|
|
3354
3354
|
return !1;
|
|
3355
3355
|
const a = o[0].unitId, d = o.map((c) => {
|
|
@@ -3369,17 +3369,17 @@ const yr = {
|
|
|
3369
3369
|
}) ? (e.syncExecuteCommand(L.id, [a]), !0) : !1;
|
|
3370
3370
|
}
|
|
3371
3371
|
}, Er = "addition-and-subtraction-single", Tr = "sheet.menu.image";
|
|
3372
|
-
function
|
|
3372
|
+
function zs(i) {
|
|
3373
3373
|
return {
|
|
3374
3374
|
id: Tr,
|
|
3375
3375
|
type: cn.SUBITEMS,
|
|
3376
3376
|
icon: Er,
|
|
3377
3377
|
tooltip: "sheetImage.title",
|
|
3378
3378
|
hidden$: an(i, x.UNIVER_SHEET),
|
|
3379
|
-
disabled$:
|
|
3379
|
+
disabled$: Ui(i, { workbookTypes: [Kt], worksheetTypes: [Zt], rangeTypes: [rs] })
|
|
3380
3380
|
};
|
|
3381
3381
|
}
|
|
3382
|
-
function
|
|
3382
|
+
function Ks(i) {
|
|
3383
3383
|
return {
|
|
3384
3384
|
id: Bt.id,
|
|
3385
3385
|
title: "sheetImage.upload.float",
|
|
@@ -3387,7 +3387,7 @@ function Zs(i) {
|
|
|
3387
3387
|
hidden$: an(i, x.UNIVER_SHEET)
|
|
3388
3388
|
};
|
|
3389
3389
|
}
|
|
3390
|
-
function
|
|
3390
|
+
function Zs(i) {
|
|
3391
3391
|
return {
|
|
3392
3392
|
id: ln.id,
|
|
3393
3393
|
title: "sheetImage.upload.cell",
|
|
@@ -3395,9 +3395,9 @@ function Js(i) {
|
|
|
3395
3395
|
hidden$: an(i, x.UNIVER_SHEET)
|
|
3396
3396
|
};
|
|
3397
3397
|
}
|
|
3398
|
-
const
|
|
3398
|
+
const Js = (i) => {
|
|
3399
3399
|
var S;
|
|
3400
|
-
const t = Qe(G), e = Qe(nt), n = Qe(
|
|
3400
|
+
const t = Qe(G), e = Qe(nt), n = Qe(ie), r = Qe(J), { drawings: s } = i, o = s[0];
|
|
3401
3401
|
if (o == null)
|
|
3402
3402
|
return;
|
|
3403
3403
|
const { unitId: a } = o, d = r.getRenderById(a), u = d == null ? void 0 : d.scene;
|
|
@@ -3458,33 +3458,27 @@ const qs = (i) => {
|
|
|
3458
3458
|
return /* @__PURE__ */ Qt(
|
|
3459
3459
|
"div",
|
|
3460
3460
|
{
|
|
3461
|
-
className: vi("univer-
|
|
3461
|
+
className: vi("univer-grid univer-gap-2 univer-py-2 univer-text-gray-400", {
|
|
3462
3462
|
"univer-hidden": !l
|
|
3463
3463
|
}),
|
|
3464
3464
|
children: [
|
|
3465
|
-
/* @__PURE__ */
|
|
3466
|
-
"
|
|
3465
|
+
/* @__PURE__ */ ae(
|
|
3466
|
+
"header",
|
|
3467
3467
|
{
|
|
3468
|
-
className: "univer-
|
|
3469
|
-
children: /* @__PURE__ */
|
|
3468
|
+
className: "univer-text-gray-600 dark:univer-text-gray-200",
|
|
3469
|
+
children: /* @__PURE__ */ ae("div", { children: e.t("drawing-anchor.title") })
|
|
3470
3470
|
}
|
|
3471
3471
|
),
|
|
3472
|
-
/* @__PURE__ */
|
|
3473
|
-
"
|
|
3474
|
-
{
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
/* @__PURE__ */ Z(Gt, { value: O.Both, children: e.t("drawing-anchor.both") }),
|
|
3478
|
-
/* @__PURE__ */ Z(Gt, { value: O.Position, children: e.t("drawing-anchor.position") }),
|
|
3479
|
-
/* @__PURE__ */ Z(Gt, { value: O.None, children: e.t("drawing-anchor.none") })
|
|
3480
|
-
] }) })
|
|
3481
|
-
}
|
|
3482
|
-
)
|
|
3472
|
+
/* @__PURE__ */ ae("div", { children: /* @__PURE__ */ Qt(Si, { value: m, onChange: _, direction: "vertical", children: [
|
|
3473
|
+
/* @__PURE__ */ ae(Gt, { value: O.Both, children: e.t("drawing-anchor.both") }),
|
|
3474
|
+
/* @__PURE__ */ ae(Gt, { value: O.Position, children: e.t("drawing-anchor.position") }),
|
|
3475
|
+
/* @__PURE__ */ ae(Gt, { value: O.None, children: e.t("drawing-anchor.none") })
|
|
3476
|
+
] }) })
|
|
3483
3477
|
]
|
|
3484
3478
|
}
|
|
3485
3479
|
);
|
|
3486
|
-
},
|
|
3487
|
-
const i = Qe(
|
|
3480
|
+
}, qs = () => {
|
|
3481
|
+
const i = Qe(ie), t = i.getFocusDrawings(), [e, n] = en(t);
|
|
3488
3482
|
return fr(() => {
|
|
3489
3483
|
const r = i.focus$.subscribe((s) => {
|
|
3490
3484
|
n(s);
|
|
@@ -3492,22 +3486,22 @@ const qs = (i) => {
|
|
|
3492
3486
|
return () => {
|
|
3493
3487
|
r.unsubscribe();
|
|
3494
3488
|
};
|
|
3495
|
-
}, []), !!(e != null && e.length) && /* @__PURE__ */ Qt("div", { className: "univer-
|
|
3496
|
-
/* @__PURE__ */
|
|
3497
|
-
/* @__PURE__ */
|
|
3489
|
+
}, []), !!(e != null && e.length) && /* @__PURE__ */ Qt("div", { className: "univer-text-sm", children: [
|
|
3490
|
+
/* @__PURE__ */ ae(ui, { drawings: e }),
|
|
3491
|
+
/* @__PURE__ */ ae(Js, { drawings: e })
|
|
3498
3492
|
] });
|
|
3499
|
-
},
|
|
3500
|
-
[
|
|
3493
|
+
}, Qs = {
|
|
3494
|
+
[$i.FORMULAS_INSERT]: {
|
|
3501
3495
|
[Tr]: {
|
|
3502
3496
|
order: 3,
|
|
3503
|
-
menuItemFactory:
|
|
3497
|
+
menuItemFactory: zs,
|
|
3504
3498
|
[Bt.id]: {
|
|
3505
3499
|
order: 0,
|
|
3506
|
-
menuItemFactory:
|
|
3500
|
+
menuItemFactory: Ks
|
|
3507
3501
|
},
|
|
3508
3502
|
[ln.id]: {
|
|
3509
3503
|
order: 1,
|
|
3510
|
-
menuItemFactory:
|
|
3504
|
+
menuItemFactory: Zs
|
|
3511
3505
|
}
|
|
3512
3506
|
}
|
|
3513
3507
|
}
|
|
@@ -3515,7 +3509,7 @@ const qs = (i) => {
|
|
|
3515
3509
|
function st(i) {
|
|
3516
3510
|
return !i.getContextValue(zr) && !i.getContextValue(Kr) && !i.getContextValue(Zr) && i.getContextValue(xe);
|
|
3517
3511
|
}
|
|
3518
|
-
const
|
|
3512
|
+
const eo = {
|
|
3519
3513
|
id: it.id,
|
|
3520
3514
|
description: "shortcut.drawing-move-down",
|
|
3521
3515
|
group: "4_drawing-view",
|
|
@@ -3525,7 +3519,7 @@ const to = {
|
|
|
3525
3519
|
staticParameters: {
|
|
3526
3520
|
direction: ve.DOWN
|
|
3527
3521
|
}
|
|
3528
|
-
},
|
|
3522
|
+
}, to = {
|
|
3529
3523
|
id: it.id,
|
|
3530
3524
|
description: "shortcut.drawing-move-up",
|
|
3531
3525
|
group: "4_drawing-view",
|
|
@@ -3535,7 +3529,7 @@ const to = {
|
|
|
3535
3529
|
staticParameters: {
|
|
3536
3530
|
direction: ve.UP
|
|
3537
3531
|
}
|
|
3538
|
-
},
|
|
3532
|
+
}, no = {
|
|
3539
3533
|
id: it.id,
|
|
3540
3534
|
description: "shortcut.drawing-move-left",
|
|
3541
3535
|
group: "4_drawing-view",
|
|
@@ -3545,7 +3539,7 @@ const to = {
|
|
|
3545
3539
|
staticParameters: {
|
|
3546
3540
|
direction: ve.LEFT
|
|
3547
3541
|
}
|
|
3548
|
-
},
|
|
3542
|
+
}, ro = {
|
|
3549
3543
|
id: it.id,
|
|
3550
3544
|
description: "shortcut.drawing-move-right",
|
|
3551
3545
|
group: "4_drawing-view",
|
|
@@ -3555,7 +3549,7 @@ const to = {
|
|
|
3555
3549
|
staticParameters: {
|
|
3556
3550
|
direction: ve.RIGHT
|
|
3557
3551
|
}
|
|
3558
|
-
},
|
|
3552
|
+
}, io = {
|
|
3559
3553
|
id: yr.id,
|
|
3560
3554
|
description: "shortcut.drawing-delete",
|
|
3561
3555
|
group: "4_drawing-view",
|
|
@@ -3564,21 +3558,21 @@ const to = {
|
|
|
3564
3558
|
binding: Fe.DELETE,
|
|
3565
3559
|
mac: Fe.BACKSPACE
|
|
3566
3560
|
};
|
|
3567
|
-
var
|
|
3568
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
3561
|
+
var so = Object.getOwnPropertyDescriptor, oo = (i, t, e, n) => {
|
|
3562
|
+
for (var r = n > 1 ? void 0 : n ? so(t, e) : t, s = i.length - 1, o; s >= 0; s--)
|
|
3569
3563
|
(o = i[s]) && (r = o(r) || r);
|
|
3570
3564
|
return r;
|
|
3571
3565
|
}, We = (i, t) => (e, n) => t(e, n, i);
|
|
3572
|
-
let Pt = class extends
|
|
3566
|
+
let Pt = class extends re {
|
|
3573
3567
|
constructor(i, t, e, n, r, s) {
|
|
3574
3568
|
super(), this._componentManager = i, this._menuManagerService = t, this._commandService = e, this._shortcutService = n, this._drawingManagerService = r, this._sheetsSelectionsService = s, this._init();
|
|
3575
3569
|
}
|
|
3576
3570
|
_initCustomComponents() {
|
|
3577
3571
|
const i = this._componentManager;
|
|
3578
|
-
this.disposeWithMe(i.register(Er, Mr)), this.disposeWithMe(i.register(mr,
|
|
3572
|
+
this.disposeWithMe(i.register(Er, Mr)), this.disposeWithMe(i.register(mr, qs));
|
|
3579
3573
|
}
|
|
3580
3574
|
_initMenus() {
|
|
3581
|
-
this._menuManagerService.mergeMenu(
|
|
3575
|
+
this._menuManagerService.mergeMenu(Qs);
|
|
3582
3576
|
}
|
|
3583
3577
|
_initCommands() {
|
|
3584
3578
|
[
|
|
@@ -3600,11 +3594,11 @@ let Pt = class extends ie {
|
|
|
3600
3594
|
_initShortcuts() {
|
|
3601
3595
|
[
|
|
3602
3596
|
// sheet drawing shortcuts
|
|
3597
|
+
eo,
|
|
3603
3598
|
to,
|
|
3604
3599
|
no,
|
|
3605
3600
|
ro,
|
|
3606
|
-
io
|
|
3607
|
-
so
|
|
3601
|
+
io
|
|
3608
3602
|
].forEach((i) => {
|
|
3609
3603
|
this.disposeWithMe(this._shortcutService.registerShortcut(i));
|
|
3610
3604
|
});
|
|
@@ -3613,20 +3607,20 @@ let Pt = class extends ie {
|
|
|
3613
3607
|
this._initCommands(), this._initCustomComponents(), this._initMenus(), this._initShortcuts();
|
|
3614
3608
|
}
|
|
3615
3609
|
};
|
|
3616
|
-
Pt =
|
|
3610
|
+
Pt = oo([
|
|
3617
3611
|
We(0, A(zn)),
|
|
3618
|
-
We(1,
|
|
3612
|
+
We(1, xi),
|
|
3619
3613
|
We(2, G),
|
|
3620
|
-
We(3,
|
|
3621
|
-
We(4,
|
|
3614
|
+
We(3, Fi),
|
|
3615
|
+
We(4, ie),
|
|
3622
3616
|
We(5, A(dn))
|
|
3623
3617
|
], Pt);
|
|
3624
|
-
var
|
|
3625
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
3618
|
+
var ao = Object.defineProperty, co = Object.getOwnPropertyDescriptor, lo = (i, t, e) => t in i ? ao(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e, uo = (i, t, e, n) => {
|
|
3619
|
+
for (var r = n > 1 ? void 0 : n ? co(t, e) : t, s = i.length - 1, o; s >= 0; s--)
|
|
3626
3620
|
(o = i[s]) && (r = o(r) || r);
|
|
3627
3621
|
return r;
|
|
3628
|
-
}, Vt = (i, t) => (e, n) => t(e, n, i), Or = (i, t, e) =>
|
|
3629
|
-
const
|
|
3622
|
+
}, Vt = (i, t) => (e, n) => t(e, n, i), Or = (i, t, e) => lo(i, typeof t != "symbol" ? t + "" : t, e);
|
|
3623
|
+
const ho = "SHEET_IMAGE_UI_PLUGIN";
|
|
3630
3624
|
let At = class extends Qr {
|
|
3631
3625
|
constructor(i = $n, t, e, n) {
|
|
3632
3626
|
super(), this._config = i, this._injector = t, this._renderManagerService = e, this._configService = n;
|
|
@@ -3635,7 +3629,7 @@ let At = class extends Qr {
|
|
|
3635
3629
|
$n,
|
|
3636
3630
|
this._config
|
|
3637
3631
|
);
|
|
3638
|
-
r && this._configService.setConfig("menu", r, { merge: !0 }), this._configService.setConfig(
|
|
3632
|
+
r && this._configService.setConfig("menu", r, { merge: !0 }), this._configService.setConfig(cs, s);
|
|
3639
3633
|
}
|
|
3640
3634
|
onStarting() {
|
|
3641
3635
|
ti(this._injector, [
|
|
@@ -3682,11 +3676,11 @@ let At = class extends Qr {
|
|
|
3682
3676
|
}
|
|
3683
3677
|
};
|
|
3684
3678
|
Or(At, "type", x.UNIVER_SHEET);
|
|
3685
|
-
Or(At, "pluginName",
|
|
3686
|
-
At =
|
|
3679
|
+
Or(At, "pluginName", ho);
|
|
3680
|
+
At = uo([
|
|
3687
3681
|
Jr(oi, ri, hi, pi),
|
|
3688
3682
|
Vt(1, A(Ye)),
|
|
3689
|
-
Vt(2,
|
|
3683
|
+
Vt(2, J),
|
|
3690
3684
|
Vt(3, qr)
|
|
3691
3685
|
], At);
|
|
3692
3686
|
export {
|