@univerjs/sheets-drawing-ui 0.2.0 → 0.2.2

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/es/index.js CHANGED
@@ -1,20 +1,20 @@
1
- var nn = Object.defineProperty;
2
- var rn = (i, e, n) => e in i ? nn(i, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : i[e] = n;
3
- var K = (i, e, n) => rn(i, typeof e != "symbol" ? e + "" : e, n);
4
- import { CommandType as G, ICommandService as Y, IUndoRedoService as he, LocaleService as ve, IUniverInstanceService as ge, RxDisposable as sn, UniverInstanceType as F, toDisposable as on, FOCUSING_COMMON_DRAWINGS as we, OnLifecycle as ae, LifecycleStages as ce, IContextService as _t, Disposable as de, Direction as q, FOCUSING_FORMULA_EDITOR as an, EDITOR_ACTIVATED as cn, Rectangle as dn, DrawingTypeEnum as ze, DisposableCollection as ln, Tools as se, UserManagerService as un, IPermissionService as hn, Plugin as gn, DependentOn as mn } from "@univerjs/core";
1
+ var tn = Object.defineProperty;
2
+ var nn = (i, e, n) => e in i ? tn(i, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : i[e] = n;
3
+ var K = (i, e, n) => nn(i, typeof e != "symbol" ? e + "" : e, n);
4
+ import { CommandType as G, ICommandService as Y, IUndoRedoService as he, LocaleService as ve, IUniverInstanceService as ge, RxDisposable as rn, UniverInstanceType as F, toDisposable as sn, FOCUSING_COMMON_DRAWINGS as we, OnLifecycle as ae, LifecycleStages as ce, IContextService as wt, Disposable as de, Direction as q, FOCUSING_FORMULA_EDITOR as on, EDITOR_ACTIVATED as an, Rectangle as cn, DrawingTypeEnum as ze, DisposableCollection as dn, Tools as se, UserManagerService as ln, IPermissionService as un, Plugin as hn, DependentOn as gn } from "@univerjs/core";
5
5
  import { Inject as W, Injector as xe } from "@wendellhu/redi";
6
- import { ImageCropperObject as fn, COMPONENT_IMAGE_POPUP_MENU as pn, OpenImageCropOperation as wn, ImageResetSizeOperation as _n, DrawingCommonPanel as vn, DrawingRenderService as Sn, UniverDrawingUIPlugin as Cn } from "@univerjs/drawing-ui";
7
- import { ISheetDrawingService as H, SetDrawingApplyMutation as T, DrawingApplyType as y, SheetDrawingAnchorType as E, UniverSheetsDrawingPlugin as Rn } from "@univerjs/sheets-drawing";
8
- import { IDrawingManagerService as J, IImageIoService as vt, ArrangeTypeEnum as De, DrawingTypeEnum as Fe, DRAWING_IMAGE_COUNT_LIMIT as ct, ImageUploadStatusType as Ke, DRAWING_IMAGE_ALLOW_SIZE as In, getImageSize as Dn, DRAWING_IMAGE_WIDTH_LIMIT as dt, DRAWING_IMAGE_HEIGHT_LIMIT as lt, DRAWING_IMAGE_ALLOW_IMAGE_LIST as Mn, getDrawingShapeKeyByDrawingSearch as bn, UniverDrawingPlugin as On } from "@univerjs/drawing";
9
- import { IRenderManagerService as te, getGroupState as En, transformObjectOutOfGroup as Tn, precisionTo as Q, Rect as yn, DRAWING_OBJECT_LAYER_INDEX as Pn, SHEET_VIEWPORT_KEY as Un, RENDER_CLASS_TYPE as le } from "@univerjs/engine-render";
10
- import { SheetCanvasPopManagerService as An, SheetSkeletonManagerService as _e, ISelectionRenderService as Se, getCurrentRangeDisable$ as Nn, SetScrollOperation as jn, SetZoomRatioOperation as Ln, SheetPrintInterceptorService as Wn, COPY_TYPE as ut, PREDEFINED_HOOK_NAME as Me, virtualizeDiscreteRanges as Bn, ISheetClipboardService as $n } from "@univerjs/sheets-ui";
11
- import { takeUntil as ht, Subject as gt, BehaviorSubject as Vn, combineLatest as be, map as mt, filter as Oe, distinctUntilChanged as Ee } from "rxjs";
12
- import { ISidebarService as Yn, BuiltInUIPart as Gn, IUIPartsService as Xn, IMessageService as xn, MenuItemType as St, MenuPosition as ft, MenuGroup as Fn, getMenuHiddenObservable as Ct, KeyCode as ue, ComponentManager as Hn, IMenuService as kn, IShortcutService as zn, CanvasFloatDomService as Kn } from "@univerjs/ui";
6
+ import { ImageCropperObject as mn, COMPONENT_IMAGE_POPUP_MENU as fn, OpenImageCropOperation as pn, ImageResetSizeOperation as wn, DrawingCommonPanel as _n, DrawingRenderService as vn, UniverDrawingUIPlugin as Sn } from "@univerjs/drawing-ui";
7
+ import { ISheetDrawingService as H, SetDrawingApplyMutation as y, DrawingApplyType as T, SheetDrawingAnchorType as E, UniverSheetsDrawingPlugin as Cn } from "@univerjs/sheets-drawing";
8
+ import { IDrawingManagerService as J, IImageIoService as _t, ArrangeTypeEnum as De, DrawingTypeEnum as Fe, DRAWING_IMAGE_COUNT_LIMIT as ct, ImageUploadStatusType as Ke, DRAWING_IMAGE_ALLOW_SIZE as Rn, getImageSize as In, DRAWING_IMAGE_WIDTH_LIMIT as dt, DRAWING_IMAGE_HEIGHT_LIMIT as lt, DRAWING_IMAGE_ALLOW_IMAGE_LIST as Dn, getDrawingShapeKeyByDrawingSearch as Mn, UniverDrawingPlugin as bn } from "@univerjs/drawing";
9
+ import { IRenderManagerService as te, getGroupState as On, transformObjectOutOfGroup as En, precisionTo as Q, Rect as yn, DRAWING_OBJECT_LAYER_INDEX as Tn, SHEET_VIEWPORT_KEY as Pn, RENDER_CLASS_TYPE as le } from "@univerjs/engine-render";
10
+ import { SheetCanvasPopManagerService as Un, SheetSkeletonManagerService as _e, ISelectionRenderService as Se, getCurrentRangeDisable$ as An, SetScrollOperation as Nn, SetZoomRatioOperation as jn, SheetPrintInterceptorService as Ln, COPY_TYPE as ut, PREDEFINED_HOOK_NAME as Me, virtualizeDiscreteRanges as Wn, ISheetClipboardService as Bn } from "@univerjs/sheets-ui";
11
+ import { takeUntil as ht, Subject as gt, BehaviorSubject as $n, combineLatest as be, map as mt, filter as Oe, distinctUntilChanged as Ee } from "rxjs";
12
+ import { ISidebarService as Vn, BuiltInUIPart as Yn, IUIPartsService as Gn, IMessageService as Xn, MenuItemType as vt, MenuPosition as xn, MenuGroup as Fn, getMenuHiddenObservable as St, KeyCode as ue, ComponentManager as Hn, IMenuService as kn, IShortcutService as zn, CanvasFloatDomService as Kn } from "@univerjs/ui";
13
13
  import { useDependency as ee, connectInjector as Jn } from "@wendellhu/redi/react-bindings";
14
- import { getSheetCommandTarget as oe, SelectionManagerService as Zn, WorkbookEditablePermission as et, WorksheetEditPermission as Ne, RangeProtectionPermissionEditPoint as qn, InsertRowCommand as Rt, InsertColCommand as It, RemoveRowCommand as Dt, RemoveColCommand as Mt, DeleteRangeMoveLeftCommand as bt, DeleteRangeMoveUpCommand as Ot, InsertRangeMoveDownCommand as Et, InsertRangeMoveRightCommand as Tt, DeltaRowHeightCommand as tt, SetRowHeightCommand as nt, DeltaColumnWidthCommand as yt, SetColWidthCommand as Pt, SetRowHiddenCommand as Ut, SetSpecificRowsVisibleCommand as At, SetSpecificColsVisibleCommand as Nt, SetColHiddenCommand as jt, MoveRangeCommand as Lt, SetRowVisibleMutation as Qn, SetRowHiddenMutation as er, SetColVisibleMutation as tr, SetColHiddenMutation as nr, SetWorksheetRowHeightMutation as rr, SetWorksheetColWidthMutation as ir, SetWorksheetActiveOperation as sr, SheetInterceptorService as or, SetFrozenMutation as ar, WorkbookViewPermission as pt, WorksheetViewPermission as Je } from "@univerjs/sheets";
15
- import L, { useEffect as st, forwardRef as Wt, useRef as Bt, createElement as $t, useState as rt } from "react";
16
- import { MessageType as Te, RadioGroup as cr, Radio as Ze } from "@univerjs/design";
17
- import ye from "clsx";
14
+ import { getSheetCommandTarget as oe, SelectionManagerService as Zn, WorkbookEditablePermission as et, WorksheetEditPermission as Ne, RangeProtectionPermissionEditPoint as qn, InsertRowCommand as Ct, InsertColCommand as Rt, RemoveRowCommand as It, RemoveColCommand as Dt, DeleteRangeMoveLeftCommand as Mt, DeleteRangeMoveUpCommand as bt, InsertRangeMoveDownCommand as Ot, InsertRangeMoveRightCommand as Et, DeltaRowHeightCommand as tt, SetRowHeightCommand as nt, DeltaColumnWidthCommand as yt, SetColWidthCommand as Tt, SetRowHiddenCommand as Pt, SetSpecificRowsVisibleCommand as Ut, SetSpecificColsVisibleCommand as At, SetColHiddenCommand as Nt, MoveRangeCommand as jt, SetRowVisibleMutation as Qn, SetRowHiddenMutation as er, SetColVisibleMutation as tr, SetColHiddenMutation as nr, SetWorksheetRowHeightMutation as rr, SetWorksheetColWidthMutation as ir, SetWorksheetActiveOperation as sr, SheetInterceptorService as or, SetFrozenMutation as ar, WorkbookViewPermission as ft, WorksheetViewPermission as Je } from "@univerjs/sheets";
15
+ import L, { useEffect as st, forwardRef as Lt, useRef as Wt, createElement as Bt, useState as rt } from "react";
16
+ import { MessageType as ye, RadioGroup as cr, Radio as Ze } from "@univerjs/design";
17
+ import Te from "clsx";
18
18
  const j = {
19
19
  id: "sheet.operation.clear-drawing-transformer",
20
20
  type: G.MUTATION,
@@ -37,29 +37,29 @@ const j = {
37
37
  o.push(m);
38
38
  });
39
39
  const a = r.getBatchRemoveOp(s), { unitId: d, subUnitId: g, undo: l, redo: c, objects: u } = a;
40
- return n.syncExecuteCommand(T.id, { unitId: d, subUnitId: g, op: c, objects: u, type: y.REMOVE }) ? (t.pushUndoRedo({
40
+ return n.syncExecuteCommand(y.id, { unitId: d, subUnitId: g, op: c, objects: u, type: T.REMOVE }) ? (t.pushUndoRedo({
41
41
  unitID: d,
42
42
  undoMutations: [
43
- { id: T.id, params: { unitId: d, subUnitId: g, op: l, objects: u, type: y.INSERT } },
43
+ { id: y.id, params: { unitId: d, subUnitId: g, op: l, objects: u, type: T.INSERT } },
44
44
  { id: j.id, params: o }
45
45
  ],
46
46
  redoMutations: [
47
- { id: T.id, params: { unitId: d, subUnitId: g, op: c, objects: u, type: y.REMOVE } },
47
+ { id: y.id, params: { unitId: d, subUnitId: g, op: c, objects: u, type: T.REMOVE } },
48
48
  { id: j.id, params: o }
49
49
  ]
50
50
  }), !0) : !1;
51
51
  }
52
- }, Vt = "COMPONENT_SHEET_DRAWING_PANEL", Yt = {
52
+ }, $t = "COMPONENT_SHEET_DRAWING_PANEL", Vt = {
53
53
  id: "sidebar.operation.sheet-image",
54
54
  type: G.COMMAND,
55
55
  handler: async (i, e) => {
56
- const n = i.get(Yn), t = i.get(ve), r = i.get(ge), s = i.get(J);
56
+ const n = i.get(Vn), t = i.get(ve), r = i.get(ge), s = i.get(J);
57
57
  if (!oe(r)) return !1;
58
58
  switch (e.value) {
59
59
  case "open":
60
60
  n.open({
61
61
  header: { title: t.t("sheetImage.panel.title") },
62
- children: { label: Vt },
62
+ children: { label: $t },
63
63
  onClose: () => {
64
64
  s.focusDrawing(null);
65
65
  },
@@ -73,12 +73,12 @@ const j = {
73
73
  }
74
74
  return !0;
75
75
  }
76
- }, Gt = {
76
+ }, Yt = {
77
77
  id: "sheet.operation.edit-sheet-image",
78
78
  type: G.OPERATION,
79
79
  handler: (i, e) => {
80
80
  const n = i.get(J), t = i.get(Y);
81
- return e == null ? !1 : (n.focusDrawing([e]), t.executeCommand(Yt.id, { value: "open" }), !0);
81
+ return e == null ? !1 : (n.focusDrawing([e]), t.executeCommand(Vt.id, { value: "open" }), !0);
82
82
  }
83
83
  }, dr = "univer-upload-loading", lr = "univer-upload-loading-body", ur = "univer-upload-loading-body-animation", hr = "univer-UniverCircleAnimation", gr = "univer-upload-loading-body-text", Pe = {
84
84
  uploadLoading: dr,
@@ -87,7 +87,7 @@ const j = {
87
87
  univerCircleAnimation: hr,
88
88
  uploadLoadingBodyText: gr
89
89
  }, mr = () => {
90
- const i = ee(vt), e = ee(ve), [n, t] = L.useState(0);
90
+ const i = ee(_t), e = ee(ve), [n, t] = L.useState(0);
91
91
  return st(() => {
92
92
  const r = i.change$.subscribe((s) => {
93
93
  t(s);
@@ -102,14 +102,14 @@ var fr = Object.defineProperty, pr = Object.getOwnPropertyDescriptor, wr = (i, e
102
102
  (o = i[s]) && (r = (t ? o(e, n, r) : o(r)) || r);
103
103
  return t && r && fr(e, n, r), r;
104
104
  }, ne = (i, e) => (n, t) => e(n, t, i);
105
- let je = class extends sn {
105
+ let je = class extends rn {
106
106
  constructor(e, n, t, r, s, o, a) {
107
107
  super();
108
108
  K(this, "_initImagePopupMenu", /* @__PURE__ */ new Set());
109
109
  this._injector = e, this._drawingManagerService = n, this._canvasPopManagerService = t, this._renderManagerService = r, this._univerInstanceService = s, this._contextService = o, this._uiPartsService = a, this._init();
110
110
  }
111
111
  _init() {
112
- this._univerInstanceService.getCurrentTypeOfUnit$(F.UNIVER_SHEET).pipe(ht(this.dispose$)).subscribe((e) => this._create(e)), this._univerInstanceService.getTypeOfUnitDisposed$(F.UNIVER_SHEET).pipe(ht(this.dispose$)).subscribe((e) => this._dispose(e)), this._univerInstanceService.getAllUnitsForType(F.UNIVER_SHEET).forEach((e) => this._create(e)), this._uiPartsService.registerComponent(Gn.CONTENT, () => Jn(mr, this._injector));
112
+ this._univerInstanceService.getCurrentTypeOfUnit$(F.UNIVER_SHEET).pipe(ht(this.dispose$)).subscribe((e) => this._create(e)), this._univerInstanceService.getTypeOfUnitDisposed$(F.UNIVER_SHEET).pipe(ht(this.dispose$)).subscribe((e) => this._dispose(e)), this._univerInstanceService.getAllUnitsForType(F.UNIVER_SHEET).forEach((e) => this._create(e)), this._uiPartsService.registerComponent(Yn.CONTENT, () => Jn(mr, this._injector));
113
113
  }
114
114
  _dispose(e) {
115
115
  const n = e.getUnitId();
@@ -124,7 +124,7 @@ let je = class extends sn {
124
124
  _hasCropObject(e) {
125
125
  const n = e.getAllObjects();
126
126
  for (const t of n)
127
- if (t instanceof fn)
127
+ if (t instanceof mn)
128
128
  return !0;
129
129
  return !1;
130
130
  }
@@ -138,7 +138,7 @@ let je = class extends sn {
138
138
  return;
139
139
  let r;
140
140
  this.disposeWithMe(
141
- on(
141
+ sn(
142
142
  t.createControl$.subscribe(() => {
143
143
  if (this._contextService.setContextValue(we, !0), this._hasCropObject(n))
144
144
  return;
@@ -155,7 +155,7 @@ let je = class extends sn {
155
155
  return;
156
156
  const { unitId: l, subUnitId: c, drawingId: u } = g;
157
157
  r == null || r.dispose(), r = this.disposeWithMe(this._canvasPopManagerService.attachPopupToObject(a, {
158
- componentKey: pn,
158
+ componentKey: fn,
159
159
  direction: "horizontal",
160
160
  offset: [2, 0],
161
161
  extraProps: {
@@ -183,7 +183,7 @@ let je = class extends sn {
183
183
  {
184
184
  label: "image-popup.edit",
185
185
  index: 0,
186
- commandId: Gt.id,
186
+ commandId: Yt.id,
187
187
  commandParams: { unitId: e, subUnitId: n, drawingId: t },
188
188
  disable: !1
189
189
  },
@@ -197,14 +197,14 @@ let je = class extends sn {
197
197
  {
198
198
  label: "image-popup.crop",
199
199
  index: 2,
200
- commandId: wn.id,
200
+ commandId: pn.id,
201
201
  commandParams: { unitId: e, subUnitId: n, drawingId: t },
202
202
  disable: !1
203
203
  },
204
204
  {
205
205
  label: "image-popup.reset",
206
206
  index: 3,
207
- commandId: _n.id,
207
+ commandId: wn.id,
208
208
  commandParams: [{ unitId: e, subUnitId: n, drawingId: t }],
209
209
  disable: !1
210
210
  }
@@ -215,11 +215,11 @@ je = wr([
215
215
  ae(ce.Steady, je),
216
216
  ne(0, W(xe)),
217
217
  ne(1, J),
218
- ne(2, W(An)),
218
+ ne(2, W(Un)),
219
219
  ne(3, te),
220
220
  ne(4, ge),
221
- ne(5, _t),
222
- ne(6, W(Xn))
221
+ ne(5, wt),
222
+ ne(6, W(Gn))
223
223
  ], je);
224
224
  const He = {
225
225
  id: "sheet.operation.insert-float-image",
@@ -236,14 +236,14 @@ const He = {
236
236
  const n = i.get(Y), t = i.get(he), r = i.get(H);
237
237
  if (!e) return !1;
238
238
  const s = e.drawings, o = s.map((f) => f.unitId), a = r.getBatchAddOp(s), { unitId: d, subUnitId: g, undo: l, redo: c, objects: u } = a;
239
- return n.syncExecuteCommand(T.id, { op: c, unitId: d, subUnitId: g, objects: u, type: y.INSERT }) ? (t.pushUndoRedo({
239
+ return n.syncExecuteCommand(y.id, { op: c, unitId: d, subUnitId: g, objects: u, type: T.INSERT }) ? (t.pushUndoRedo({
240
240
  unitID: d,
241
241
  undoMutations: [
242
- { id: T.id, params: { op: l, unitId: d, subUnitId: g, objects: u, type: y.REMOVE } },
242
+ { id: y.id, params: { op: l, unitId: d, subUnitId: g, objects: u, type: T.REMOVE } },
243
243
  { id: j.id, params: o }
244
244
  ],
245
245
  redoMutations: [
246
- { id: T.id, params: { op: c, unitId: d, subUnitId: g, objects: u, type: y.INSERT } },
246
+ { id: y.id, params: { op: c, unitId: d, subUnitId: g, objects: u, type: T.INSERT } },
247
247
  { id: j.id, params: o }
248
248
  ]
249
249
  }), !0) : !1;
@@ -255,19 +255,19 @@ const He = {
255
255
  const n = i.get(Y), t = i.get(he), r = i.get(H);
256
256
  if (!e) return !1;
257
257
  const { drawings: s } = e, o = r.getBatchUpdateOp(s), { unitId: a, subUnitId: d, undo: g, redo: l, objects: c } = o;
258
- return n.syncExecuteCommand(T.id, { unitId: a, subUnitId: d, op: l, objects: c, type: y.UPDATE }) ? (t.pushUndoRedo({
258
+ return n.syncExecuteCommand(y.id, { unitId: a, subUnitId: d, op: l, objects: c, type: T.UPDATE }) ? (t.pushUndoRedo({
259
259
  unitID: a,
260
260
  undoMutations: [
261
- { id: T.id, params: { unitId: a, subUnitId: d, op: g, objects: c, type: y.UPDATE } },
261
+ { id: y.id, params: { unitId: a, subUnitId: d, op: g, objects: c, type: T.UPDATE } },
262
262
  { id: j.id, params: [a] }
263
263
  ],
264
264
  redoMutations: [
265
- { id: T.id, params: { unitId: a, subUnitId: d, op: l, objects: c, type: y.UPDATE } },
265
+ { id: y.id, params: { unitId: a, subUnitId: d, op: l, objects: c, type: T.UPDATE } },
266
266
  { id: j.id, params: [a] }
267
267
  ]
268
268
  }), !0) : !1;
269
269
  }
270
- }, Xt = {
270
+ }, Gt = {
271
271
  id: "sheet.command.set-drawing-arrange",
272
272
  type: G.COMMAND,
273
273
  handler: (i, e) => {
@@ -278,13 +278,13 @@ const He = {
278
278
  if (d === De.forward ? l = r.getForwardDrawingsOp(g) : d === De.backward ? l = r.getBackwardDrawingOp(g) : d === De.front ? l = r.getFrontDrawingsOp(g) : d === De.back && (l = r.getBackDrawingsOp(g)), l == null)
279
279
  return !1;
280
280
  const { objects: c, redo: u, undo: h } = l;
281
- return n.syncExecuteCommand(T.id, { op: u, unitId: s, subUnitId: o, objects: c, type: y.ARRANGE }) ? (t.pushUndoRedo({
281
+ return n.syncExecuteCommand(y.id, { op: u, unitId: s, subUnitId: o, objects: c, type: T.ARRANGE }) ? (t.pushUndoRedo({
282
282
  unitID: s,
283
283
  undoMutations: [
284
- { id: T.id, params: { op: h, unitId: s, subUnitId: o, objects: c, type: y.ARRANGE } }
284
+ { id: y.id, params: { op: h, unitId: s, subUnitId: o, objects: c, type: T.ARRANGE } }
285
285
  ],
286
286
  redoMutations: [
287
- { id: T.id, params: { op: u, unitId: s, subUnitId: o, objects: c, type: y.ARRANGE } }
287
+ { id: y.id, params: { op: u, unitId: s, subUnitId: o, objects: c, type: T.ARRANGE } }
288
288
  ]
289
289
  }), !0) : !1;
290
290
  }
@@ -292,7 +292,7 @@ const He = {
292
292
  function _r(i) {
293
293
  const e = [];
294
294
  return i.forEach((n) => {
295
- const { parent: t, children: r } = n, { unitId: s, subUnitId: o, drawingId: a } = t, d = En(0, 0, r.map((c) => c.transform || {})), g = r.map((c) => {
295
+ const { parent: t, children: r } = n, { unitId: s, subUnitId: o, drawingId: a } = t, d = On(0, 0, r.map((c) => c.transform || {})), g = r.map((c) => {
296
296
  const u = c.transform || { left: 0, top: 0 }, { unitId: h, subUnitId: f, drawingId: m } = c;
297
297
  return {
298
298
  unitId: h,
@@ -325,7 +325,7 @@ function vr(i) {
325
325
  if (d == null)
326
326
  return;
327
327
  const g = r.map((c) => {
328
- const { transform: u } = c, { unitId: h, subUnitId: f, drawingId: m } = c, p = Tn(u || {}, d, d.width || 0, d.height || 0);
328
+ const { transform: u } = c, { unitId: h, subUnitId: f, drawingId: m } = c, p = En(u || {}, d, d.width || 0, d.height || 0);
329
329
  return {
330
330
  unitId: h,
331
331
  subUnitId: f,
@@ -349,7 +349,7 @@ function vr(i) {
349
349
  });
350
350
  }), e;
351
351
  }
352
- const xt = {
352
+ const Xt = {
353
353
  id: "sheet.command.group-sheet-image",
354
354
  type: G.COMMAND,
355
355
  handler: (i, e) => {
@@ -362,19 +362,19 @@ const xt = {
362
362
  });
363
363
  });
364
364
  const o = r.getGroupDrawingOp(e), { unitId: a, subUnitId: d, undo: g, redo: l, objects: c } = o;
365
- return n.syncExecuteCommand(T.id, { op: l, unitId: a, subUnitId: d, objects: c, type: y.GROUP }) ? (t.pushUndoRedo({
365
+ return n.syncExecuteCommand(y.id, { op: l, unitId: a, subUnitId: d, objects: c, type: T.GROUP }) ? (t.pushUndoRedo({
366
366
  unitID: a,
367
367
  undoMutations: [
368
- { id: T.id, params: { op: g, unitId: a, subUnitId: d, objects: vr(c), type: y.UNGROUP } },
368
+ { id: y.id, params: { op: g, unitId: a, subUnitId: d, objects: vr(c), type: T.UNGROUP } },
369
369
  { id: j.id, params: s }
370
370
  ],
371
371
  redoMutations: [
372
- { id: T.id, params: { op: l, unitId: a, subUnitId: d, objects: c, type: y.GROUP } },
372
+ { id: y.id, params: { op: l, unitId: a, subUnitId: d, objects: c, type: T.GROUP } },
373
373
  { id: j.id, params: s }
374
374
  ]
375
375
  }), !0) : !1;
376
376
  }
377
- }, Ft = {
377
+ }, xt = {
378
378
  id: "sheet.command.ungroup-sheet-image",
379
379
  type: G.COMMAND,
380
380
  handler: (i, e) => {
@@ -387,14 +387,14 @@ const xt = {
387
387
  });
388
388
  });
389
389
  const o = r.getUngroupDrawingOp(e), { unitId: a, subUnitId: d, undo: g, redo: l, objects: c } = o;
390
- return n.syncExecuteCommand(T.id, { op: l, unitId: a, subUnitId: d, objects: c, type: y.UNGROUP }) ? (t.pushUndoRedo({
390
+ return n.syncExecuteCommand(y.id, { op: l, unitId: a, subUnitId: d, objects: c, type: T.UNGROUP }) ? (t.pushUndoRedo({
391
391
  unitID: a,
392
392
  undoMutations: [
393
- { id: T.id, params: { op: g, unitId: a, subUnitId: d, objects: _r(c), type: y.GROUP } },
393
+ { id: y.id, params: { op: g, unitId: a, subUnitId: d, objects: _r(c), type: T.GROUP } },
394
394
  { id: j.id, params: s }
395
395
  ],
396
396
  redoMutations: [
397
- { id: T.id, params: { op: l, unitId: a, subUnitId: d, objects: c, type: y.UNGROUP } },
397
+ { id: y.id, params: { op: l, unitId: a, subUnitId: d, objects: c, type: T.UNGROUP } },
398
398
  { id: j.id, params: s }
399
399
  ]
400
400
  }), !0) : !1;
@@ -486,7 +486,7 @@ let Le = class extends de {
486
486
  const n = e.files.length;
487
487
  if (n > ct) {
488
488
  this._messageService.show({
489
- type: Te.Error,
489
+ type: ye.Error,
490
490
  content: this._localeService.t("update-status.exceedMaxCount", String(ct))
491
491
  });
492
492
  return;
@@ -509,13 +509,13 @@ let Le = class extends de {
509
509
  } catch (R) {
510
510
  const S = R.message;
511
511
  S === Ke.ERROR_EXCEED_SIZE ? this._messageService.show({
512
- type: Te.Error,
513
- content: this._localeService.t("update-status.exceedMaxSize", String(In / (1024 * 1024)))
512
+ type: ye.Error,
513
+ content: this._localeService.t("update-status.exceedMaxSize", String(Rn / (1024 * 1024)))
514
514
  }) : S === Ke.ERROR_IMAGE_TYPE ? this._messageService.show({
515
- type: Te.Error,
515
+ type: ye.Error,
516
516
  content: this._localeService.t("update-status.invalidImageType")
517
517
  }) : S === Ke.ERROR_IMAGE && this._messageService.show({
518
- type: Te.Error,
518
+ type: ye.Error,
519
519
  content: this._localeService.t("update-status.invalidImage")
520
520
  });
521
521
  }
@@ -524,7 +524,7 @@ let Le = class extends de {
524
524
  const n = this._getUnitInfo();
525
525
  if (n == null)
526
526
  return;
527
- const { unitId: t, subUnitId: r } = n, { imageId: s, imageSourceType: o, source: a, base64Cache: d } = e, { width: g, height: l, image: c } = await Dn(d || ""), u = this._renderManagerService.getRenderById(t);
527
+ const { unitId: t, subUnitId: r } = n, { imageId: s, imageSourceType: o, source: a, base64Cache: d } = e, { width: g, height: l, image: c } = await In(d || ""), u = this._renderManagerService.getRenderById(t);
528
528
  if (u == null)
529
529
  return;
530
530
  const { width: h, height: f } = u.scene;
@@ -606,7 +606,7 @@ let Le = class extends de {
606
606
  _updateOrderListener() {
607
607
  this._drawingManagerService.featurePluginOrderUpdate$.subscribe((i) => {
608
608
  const { unitId: e, subUnitId: n, drawingIds: t, arrangeType: r } = i;
609
- this._commandService.executeCommand(Xt.id, {
609
+ this._commandService.executeCommand(Gt.id, {
610
610
  unitId: e,
611
611
  subUnitId: n,
612
612
  drawingIds: t,
@@ -641,11 +641,11 @@ let Le = class extends de {
641
641
  }
642
642
  _groupDrawingListener() {
643
643
  this._drawingManagerService.featurePluginGroupUpdate$.subscribe((i) => {
644
- this._commandService.executeCommand(xt.id, i);
644
+ this._commandService.executeCommand(Xt.id, i);
645
645
  const { unitId: e, subUnitId: n, drawingId: t } = i[0].parent;
646
646
  this._drawingManagerService.focusDrawing([{ unitId: e, subUnitId: n, drawingId: t }]);
647
647
  }), this._drawingManagerService.featurePluginUngroupUpdate$.subscribe((i) => {
648
- this._commandService.executeCommand(Ft.id, i);
648
+ this._commandService.executeCommand(xt.id, i);
649
649
  });
650
650
  }
651
651
  _focusDrawingListener() {
@@ -680,11 +680,11 @@ Le = Rr([
680
680
  X(2, ge),
681
681
  X(3, W(Zn)),
682
682
  X(4, Se),
683
- X(5, vt),
683
+ X(5, _t),
684
684
  X(6, H),
685
685
  X(7, J),
686
- X(8, _t),
687
- X(9, xn),
686
+ X(8, wt),
687
+ X(9, Xn),
688
688
  X(10, W(ve)),
689
689
  X(11, te),
690
690
  X(12, W(_e))
@@ -704,13 +704,13 @@ var x = function() {
704
704
  for (var r = 0, t = Object.getOwnPropertySymbols(i); r < t.length; r++)
705
705
  e.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(i, t[r]) && (n[t[r]] = i[t[r]]);
706
706
  return n;
707
- }, Ht = Wt(function(i, e) {
708
- var n = i.icon, t = i.id, r = i.className, s = i.extend, o = Ir(i, ["icon", "id", "className", "extend"]), a = "univerjs-icon univerjs-icon-".concat(t, " ").concat(r || "").trim(), d = Bt("_".concat(br()));
709
- return kt(n, "".concat(t), { defIds: n.defIds, idSuffix: d.current }, x({ ref: e, className: a }, o), s);
707
+ }, Ft = Lt(function(i, e) {
708
+ var n = i.icon, t = i.id, r = i.className, s = i.extend, o = Ir(i, ["icon", "id", "className", "extend"]), a = "univerjs-icon univerjs-icon-".concat(t, " ").concat(r || "").trim(), d = Wt("_".concat(br()));
709
+ return Ht(n, "".concat(t), { defIds: n.defIds, idSuffix: d.current }, x({ ref: e, className: a }, o), s);
710
710
  });
711
- function kt(i, e, n, t, r) {
712
- return $t(i.tag, x(x({ key: e }, Dr(i, n, r)), t), (Mr(i, n).children || []).map(function(s, o) {
713
- return kt(s, "".concat(e, "-").concat(i.tag, "-").concat(o), n, void 0, r);
711
+ function Ht(i, e, n, t, r) {
712
+ return Bt(i.tag, x(x({ key: e }, Dr(i, n, r)), t), (Mr(i, n).children || []).map(function(s, o) {
713
+ return Ht(s, "".concat(e, "-").concat(i.tag, "-").concat(o), n, void 0, r);
714
714
  }));
715
715
  }
716
716
  function Dr(i, e, n) {
@@ -731,68 +731,68 @@ function Mr(i, e) {
731
731
  function br() {
732
732
  return Math.random().toString(36).substring(2, 8);
733
733
  }
734
- Ht.displayName = "UniverIcon";
735
- var Or = { 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" } }] }, zt = Wt(function(i, e) {
736
- return $t(Ht, Object.assign({}, i, {
734
+ Ft.displayName = "UniverIcon";
735
+ var Or = { 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" } }] }, kt = Lt(function(i, e) {
736
+ return Bt(Ft, Object.assign({}, i, {
737
737
  id: "add-image-single",
738
738
  ref: e,
739
739
  icon: Or
740
740
  }));
741
741
  });
742
- zt.displayName = "AddImageSingle";
743
- const Er = "univer-upload-file-menu", Tr = "univer-upload-file-menu-input", wt = {
742
+ kt.displayName = "AddImageSingle";
743
+ const Er = "univer-upload-file-menu", yr = "univer-upload-file-menu-input", pt = {
744
744
  uploadFileMenu: Er,
745
- uploadFileMenuInput: Tr
746
- }, Kt = "COMPONENT_UPLOAD_FILE_MENU";
745
+ uploadFileMenuInput: yr
746
+ }, zt = "COMPONENT_UPLOAD_FILE_MENU";
747
747
  var Ge = /* @__PURE__ */ ((i) => (i[i.cellImage = 0] = "cellImage", i[i.floatImage = 1] = "floatImage", i))(Ge || {});
748
- const yr = (i) => {
749
- const { type: e } = i, n = ee(Y), t = Bt(null), r = () => {
748
+ const Tr = (i) => {
749
+ const { type: e } = i, n = ee(Y), t = Wt(null), r = () => {
750
750
  var a;
751
751
  (a = t.current) == null || a.click();
752
- }, s = Mn.map((a) => `.${a.replace("image/", "")}`).join(","), o = (a) => {
752
+ }, s = Dn.map((a) => `.${a.replace("image/", "")}`).join(","), o = (a) => {
753
753
  const d = a.target.files;
754
754
  if (d == null)
755
755
  return;
756
756
  const g = Array.from(d);
757
757
  e === Ge.floatImage ? n.executeCommand(He.id, { files: g }) : e === Ge.cellImage && n.executeCommand(Ye.id, { files: g }), t.current && (t.current.value = "");
758
758
  };
759
- return /* @__PURE__ */ L.createElement("div", { onClick: r, className: wt.uploadFileMenu }, /* @__PURE__ */ L.createElement(
759
+ return /* @__PURE__ */ L.createElement("div", { onClick: r, className: pt.uploadFileMenu }, /* @__PURE__ */ L.createElement(
760
760
  "input",
761
761
  {
762
762
  type: "file",
763
- className: wt.uploadFileMenuInput,
763
+ className: pt.uploadFileMenuInput,
764
764
  ref: t,
765
765
  onChange: o,
766
766
  accept: s,
767
767
  multiple: !0
768
768
  }
769
769
  ));
770
- }, Jt = "addition-and-subtraction-single", Zt = "sheet.menu.image";
770
+ }, Kt = "addition-and-subtraction-single", Jt = "sheet.menu.image";
771
771
  function Pr(i) {
772
772
  return {
773
- id: Zt,
774
- type: St.SUBITEMS,
775
- positions: [ft.TOOLBAR_START, ft.TOOLBAR_INSERT],
773
+ id: Jt,
774
+ type: vt.SUBITEMS,
775
+ positions: [xn.TOOLBAR_START],
776
776
  group: Fn.TOOLBAR_FORMULAS_INSERT,
777
- icon: Jt,
777
+ icon: Kt,
778
778
  tooltip: "sheetImage.title",
779
- hidden$: Ct(i, F.UNIVER_SHEET),
780
- disabled$: Nn(i, { workbookTypes: [et], worksheetTypes: [Ne], rangeTypes: [qn] })
779
+ hidden$: St(i, F.UNIVER_SHEET),
780
+ disabled$: An(i, { workbookTypes: [et], worksheetTypes: [Ne], rangeTypes: [qn] })
781
781
  };
782
782
  }
783
783
  function Ur(i) {
784
784
  return {
785
785
  id: He.id,
786
786
  title: "sheetImage.upload.float",
787
- type: St.SELECTOR,
787
+ type: vt.SELECTOR,
788
788
  label: {
789
- name: Kt,
789
+ name: zt,
790
790
  props: {
791
791
  type: Ge.floatImage
792
792
  }
793
793
  },
794
- positions: [Zt],
795
- hidden$: Ct(i, F.UNIVER_SHEET)
794
+ positions: [Jt],
795
+ hidden$: St(i, F.UNIVER_SHEET)
796
796
  };
797
797
  }
798
798
  const Ar = "univer-image-common-panel", Nr = "univer-image-common-panel-grid", jr = "univer-image-common-panel-border", Lr = "univer-image-common-panel-title", Wr = "univer-image-common-panel-row", Br = "univer-image-common-panel-row-vertical", $r = "univer-image-common-panel-column", Vr = "univer-image-common-panel-column-center", Yr = "univer-image-common-panel-inline", Gr = "univer-image-common-panel-span2", Xr = "univer-image-common-panel-span3", xr = "univer-image-common-panel-input", Fr = "univer-sheet-image-menu", Hr = "univer-sheet-image-menu-input", Z = {
@@ -871,7 +871,7 @@ const Ar = "univer-image-common-panel", Nr = "univer-image-common-panel-grid", j
871
871
  });
872
872
  }
873
873
  const R = (D) => D ? "block" : "none";
874
- return /* @__PURE__ */ L.createElement("div", { className: ye(Z.imageCommonPanelGrid, Z.imageCommonPanelBorder), style: { display: R(c) } }, /* @__PURE__ */ L.createElement("div", { className: Z.imageCommonPanelRow }, /* @__PURE__ */ L.createElement("div", { className: ye(Z.imageCommonPanelColumn, Z.imageCommonPanelTitle) }, /* @__PURE__ */ L.createElement("div", null, n.t("drawing-anchor.title")))), /* @__PURE__ */ L.createElement("div", { className: ye(Z.imageCommonPanelRow) }, /* @__PURE__ */ L.createElement("div", { className: ye(Z.imageCommonPanelColumn) }, /* @__PURE__ */ L.createElement(cr, { value: f, onChange: v, direction: "vertical" }, /* @__PURE__ */ L.createElement(Ze, { value: E.Both }, n.t("drawing-anchor.both")), /* @__PURE__ */ L.createElement(Ze, { value: E.Position }, n.t("drawing-anchor.position")), /* @__PURE__ */ L.createElement(Ze, { value: E.None }, n.t("drawing-anchor.none"))))));
874
+ return /* @__PURE__ */ L.createElement("div", { className: Te(Z.imageCommonPanelGrid, Z.imageCommonPanelBorder), style: { display: R(c) } }, /* @__PURE__ */ L.createElement("div", { className: Z.imageCommonPanelRow }, /* @__PURE__ */ L.createElement("div", { className: Te(Z.imageCommonPanelColumn, Z.imageCommonPanelTitle) }, /* @__PURE__ */ L.createElement("div", null, n.t("drawing-anchor.title")))), /* @__PURE__ */ L.createElement("div", { className: Te(Z.imageCommonPanelRow) }, /* @__PURE__ */ L.createElement("div", { className: Te(Z.imageCommonPanelColumn) }, /* @__PURE__ */ L.createElement(cr, { value: f, onChange: v, direction: "vertical" }, /* @__PURE__ */ L.createElement(Ze, { value: E.Both }, n.t("drawing-anchor.both")), /* @__PURE__ */ L.createElement(Ze, { value: E.Position }, n.t("drawing-anchor.position")), /* @__PURE__ */ L.createElement(Ze, { value: E.None }, n.t("drawing-anchor.none"))))));
875
875
  }, zr = () => {
876
876
  const i = ee(J), e = i.getFocusDrawings(), [n, t] = rt(e);
877
877
  return st(() => {
@@ -881,7 +881,7 @@ const Ar = "univer-image-common-panel", Nr = "univer-image-common-panel-grid", j
881
881
  return () => {
882
882
  r.unsubscribe();
883
883
  };
884
- }, []), !!(n != null && n.length) && /* @__PURE__ */ L.createElement("div", { className: Z.imageCommonPanel }, /* @__PURE__ */ L.createElement(vn, { drawings: n }), /* @__PURE__ */ L.createElement(kr, { drawings: n }));
884
+ }, []), !!(n != null && n.length) && /* @__PURE__ */ L.createElement("div", { className: Z.imageCommonPanel }, /* @__PURE__ */ L.createElement(_n, { drawings: n }), /* @__PURE__ */ L.createElement(kr, { drawings: n }));
885
885
  }, Ce = {
886
886
  id: "sheet.command.move-drawing",
887
887
  type: G.COMMAND,
@@ -905,7 +905,7 @@ const Ar = "univer-image-common-panel", Nr = "univer-image-common-panel-grid", j
905
905
  drawings: d
906
906
  }) ? (n.syncExecuteCommand(j.id, [a]), !0) : !1;
907
907
  }
908
- }, qt = {
908
+ }, Zt = {
909
909
  id: "sheet.command.delete-drawing",
910
910
  type: G.COMMAND,
911
911
  handler: (i) => {
@@ -928,7 +928,7 @@ const Ar = "univer-image-common-panel", Nr = "univer-image-common-panel-grid", j
928
928
  }
929
929
  };
930
930
  function Re(i) {
931
- return !i.getContextValue(an) && !i.getContextValue(cn) && i.getContextValue(we);
931
+ return !i.getContextValue(on) && !i.getContextValue(an) && i.getContextValue(we);
932
932
  }
933
933
  const Kr = {
934
934
  id: Ce.id,
@@ -971,7 +971,7 @@ const Kr = {
971
971
  direction: q.RIGHT
972
972
  }
973
973
  }, Qr = {
974
- id: qt.id,
974
+ id: Zt.id,
975
975
  description: "shortcut.sheet.drawing-delete",
976
976
  group: "4_sheet-drawing-view",
977
977
  // when focusing on any other input tag do not trigger this shortcut
@@ -991,7 +991,7 @@ let pe = class extends de {
991
991
  }
992
992
  _initCustomComponents() {
993
993
  const i = this._componentManager;
994
- this.disposeWithMe(i.register(Jt, zt)), this.disposeWithMe(i.register(Kt, yr)), this.disposeWithMe(i.register(Vt, zr));
994
+ this.disposeWithMe(i.register(Kt, kt)), this.disposeWithMe(i.register(zt, Tr)), this.disposeWithMe(i.register($t, zr));
995
995
  }
996
996
  _initMenus() {
997
997
  const { menu: i = {} } = this._config;
@@ -1010,14 +1010,14 @@ let pe = class extends de {
1010
1010
  at,
1011
1011
  ot,
1012
1012
  ke,
1013
- Yt,
1013
+ Vt,
1014
1014
  j,
1015
- Gt,
1015
+ Yt,
1016
+ Xt,
1016
1017
  xt,
1017
- Ft,
1018
1018
  Ce,
1019
- qt,
1020
- Xt
1019
+ Zt,
1020
+ Gt
1021
1021
  ].forEach((i) => this.disposeWithMe(this._commandService.registerCommand(i)));
1022
1022
  }
1023
1023
  _initShortcuts() {
@@ -1050,6 +1050,7 @@ var ii = Object.defineProperty, si = Object.getOwnPropertyDescriptor, oi = (i, e
1050
1050
  return t && r && ii(e, n, r), r;
1051
1051
  }, re = (i, e) => (n, t) => e(n, t, i);
1052
1052
  const ai = [
1053
+ Ct.id,
1053
1054
  Rt.id,
1054
1055
  It.id,
1055
1056
  Dt.id,
@@ -1057,16 +1058,15 @@ const ai = [
1057
1058
  bt.id,
1058
1059
  Ot.id,
1059
1060
  Et.id,
1060
- Tt.id,
1061
1061
  tt.id,
1062
1062
  nt.id,
1063
1063
  yt.id,
1064
+ Tt.id,
1064
1065
  Pt.id,
1065
1066
  Ut.id,
1066
1067
  At.id,
1067
1068
  Nt.id,
1068
- jt.id,
1069
- Lt.id
1069
+ jt.id
1070
1070
  ], ci = [
1071
1071
  Qn.id,
1072
1072
  er.id,
@@ -1091,51 +1091,51 @@ let We = class extends de {
1091
1091
  if (i.params == null)
1092
1092
  return { redos: [], undos: [] };
1093
1093
  const e = i.id;
1094
- if (e === Rt.id)
1094
+ if (e === Ct.id)
1095
1095
  return this._moveRowInterceptor(i.params, "insert");
1096
- if (e === It.id)
1096
+ if (e === Rt.id)
1097
1097
  return this._moveColInterceptor(i.params, "insert");
1098
- if (e === Dt.id)
1098
+ if (e === It.id)
1099
1099
  return this._moveRowInterceptor(i.params, "remove");
1100
- if (e === Mt.id)
1100
+ if (e === Dt.id)
1101
1101
  return this._moveColInterceptor(i.params, "remove");
1102
- if (e === Lt.id)
1102
+ if (e === jt.id)
1103
1103
  return this._moveRangeInterceptor(i.params);
1104
- if (e === bt.id) {
1104
+ if (e === Mt.id) {
1105
1105
  const { range: n } = i.params;
1106
1106
  return this._getRangeMoveUndo(
1107
1107
  n,
1108
1108
  0
1109
1109
  /* deleteLeft */
1110
1110
  );
1111
- } else if (e === Ot.id) {
1111
+ } else if (e === bt.id) {
1112
1112
  const { range: n } = i.params;
1113
1113
  return this._getRangeMoveUndo(
1114
1114
  n,
1115
1115
  1
1116
1116
  /* deleteUp */
1117
1117
  );
1118
- } else if (e === Et.id) {
1118
+ } else if (e === Ot.id) {
1119
1119
  const { range: n } = i.params;
1120
1120
  return this._getRangeMoveUndo(
1121
1121
  n,
1122
1122
  2
1123
1123
  /* insertDown */
1124
1124
  );
1125
- } else if (e === Tt.id) {
1125
+ } else if (e === Et.id) {
1126
1126
  const { range: n } = i.params;
1127
1127
  return this._getRangeMoveUndo(
1128
1128
  n,
1129
1129
  3
1130
1130
  /* insertRight */
1131
1131
  );
1132
- } else if (e === Ut.id || e === At.id) {
1132
+ } else if (e === Pt.id || e === Ut.id) {
1133
1133
  const n = i.params, { unitId: t, subUnitId: r, ranges: s } = n;
1134
1134
  return this._getDrawingUndoForRowVisible(t, r, s);
1135
- } else if (e === Nt.id || e === jt.id) {
1135
+ } else if (e === At.id || e === Nt.id) {
1136
1136
  const n = i.params, { unitId: t, subUnitId: r, ranges: s } = n;
1137
1137
  return this._getDrawingUndoForColVisible(t, r, s);
1138
- } else if (e === tt.id || e === nt.id || e === yt.id || e === Pt.id) {
1138
+ } else if (e === tt.id || e === nt.id || e === yt.id || e === Tt.id) {
1139
1139
  const n = i.params, { unitId: t, subUnitId: r, ranges: s } = n, o = e === tt.id || e === nt.id;
1140
1140
  return this._getDrawingUndoForRowAndColSize(t, r, s, o);
1141
1141
  }
@@ -1156,11 +1156,11 @@ let We = class extends de {
1156
1156
  return { redos: [], undos: [] };
1157
1157
  if (d.length > 0) {
1158
1158
  const l = this._sheetDrawingService.getBatchUpdateOp(d), { undo: c, redo: u, objects: h } = l;
1159
- s.push({ id: T.id, params: { unitId: t, subUnitId: r, op: u, objects: h, type: y.UPDATE } }), o.push({ id: T.id, params: { unitId: t, subUnitId: r, op: c, objects: h, type: y.UPDATE } });
1159
+ s.push({ id: y.id, params: { unitId: t, subUnitId: r, op: u, objects: h, type: T.UPDATE } }), o.push({ id: y.id, params: { unitId: t, subUnitId: r, op: c, objects: h, type: T.UPDATE } });
1160
1160
  }
1161
1161
  if (g.length > 0) {
1162
1162
  const l = this._sheetDrawingService.getBatchRemoveOp(g), c = l.undo, u = l.redo, h = l.objects;
1163
- s.push({ id: T.id, params: { unitId: t, subUnitId: r, op: u, objects: h, type: y.REMOVE } }), o.push({ id: T.id, params: { unitId: t, subUnitId: r, op: c, objects: h, type: y.INSERT } });
1163
+ s.push({ id: y.id, params: { unitId: t, subUnitId: r, op: u, objects: h, type: T.REMOVE } }), o.push({ id: y.id, params: { unitId: t, subUnitId: r, op: c, objects: h, type: T.INSERT } });
1164
1164
  }
1165
1165
  return s.push({ id: j.id, params: [t] }), o.push({ id: j.id, params: [t] }), {
1166
1166
  redos: s,
@@ -1293,10 +1293,10 @@ let We = class extends de {
1293
1293
  }
1294
1294
  _createUndoAndRedoMutation(i, e, n) {
1295
1295
  const t = this._sheetDrawingService.getBatchUpdateOp(n), { undo: r, redo: s, objects: o } = t, a = [
1296
- { id: T.id, params: { unitId: i, subUnitId: e, op: s, objects: o, type: y.UPDATE } },
1296
+ { id: y.id, params: { unitId: i, subUnitId: e, op: s, objects: o, type: T.UPDATE } },
1297
1297
  { id: j.id, params: [i] }
1298
1298
  ], d = [
1299
- { id: T.id, params: { unitId: i, subUnitId: e, op: r, objects: o, type: y.UPDATE } },
1299
+ { id: y.id, params: { unitId: i, subUnitId: e, op: r, objects: o, type: T.UPDATE } },
1300
1300
  { id: j.id, params: [i] }
1301
1301
  ];
1302
1302
  return {
@@ -1455,11 +1455,11 @@ let We = class extends de {
1455
1455
  return { redos: [], undos: [] };
1456
1456
  if (c.length > 0) {
1457
1457
  const h = this._sheetDrawingService.getBatchUpdateOp(c), { undo: f, redo: m, objects: p } = h;
1458
- d.push({ id: T.id, params: { unitId: t, subUnitId: r, op: m, objects: p, type: y.UPDATE } }), g.push({ id: T.id, params: { unitId: t, subUnitId: r, op: f, objects: p, type: y.UPDATE } });
1458
+ d.push({ id: y.id, params: { unitId: t, subUnitId: r, op: m, objects: p, type: T.UPDATE } }), g.push({ id: y.id, params: { unitId: t, subUnitId: r, op: f, objects: p, type: T.UPDATE } });
1459
1459
  }
1460
1460
  if (u.length > 0) {
1461
1461
  const h = this._sheetDrawingService.getBatchRemoveOp(u), f = h.undo, m = h.redo, p = h.objects;
1462
- d.push({ id: T.id, params: { unitId: t, subUnitId: r, op: m, objects: p, type: y.REMOVE } }), g.push({ id: T.id, params: { unitId: t, subUnitId: r, op: f, objects: p, type: y.INSERT } });
1462
+ d.push({ id: y.id, params: { unitId: t, subUnitId: r, op: m, objects: p, type: T.REMOVE } }), g.push({ id: y.id, params: { unitId: t, subUnitId: r, op: f, objects: p, type: T.INSERT } });
1463
1463
  }
1464
1464
  return d.push({ id: j.id, params: [t] }), g.push({ id: j.id, params: [t] }), {
1465
1465
  redos: d,
@@ -1501,10 +1501,10 @@ let We = class extends de {
1501
1501
  });
1502
1502
  if (!z || !k)
1503
1503
  return;
1504
- const B = z.endX - z.startX - (k.endX - k.startX), tn = z.endY - z.startY - (k.endY - k.startY);
1504
+ const B = z.endX - z.startX - (k.endX - k.startX), en = z.endY - z.startY - (k.endY - k.startY);
1505
1505
  A = {
1506
1506
  to: { ...I, row: I.row + M, column: I.column + C, columnOffset: I.columnOffset + B },
1507
- from: { ...P, row: P.row + M, column: P.column + C, columnOffset: I.columnOffset + B, rowOffset: I.rowOffset + tn }
1507
+ from: { ...P, row: P.row + M, column: P.column + C, columnOffset: I.columnOffset + B, rowOffset: I.rowOffset + en }
1508
1508
  }, $ = V(A, this._selectionRenderService, this._sheetSkeletonManagerService);
1509
1509
  } else {
1510
1510
  const k = g.startX - d.startX, z = g.startY - d.startY;
@@ -1522,7 +1522,7 @@ let We = class extends de {
1522
1522
  const l = [], c = [];
1523
1523
  if (a.length > 0) {
1524
1524
  const u = this._sheetDrawingService.getBatchUpdateOp(a), { undo: h, redo: f, objects: m } = u;
1525
- l.push({ id: T.id, params: { unitId: r, subUnitId: s, op: f, objects: m, type: y.UPDATE } }), c.push({ id: T.id, params: { unitId: r, subUnitId: s, op: h, objects: m, type: y.UPDATE } });
1525
+ l.push({ id: y.id, params: { unitId: r, subUnitId: s, op: f, objects: m, type: T.UPDATE } }), c.push({ id: y.id, params: { unitId: r, subUnitId: s, op: h, objects: m, type: T.UPDATE } });
1526
1526
  }
1527
1527
  return { redos: l, undos: c };
1528
1528
  }
@@ -1556,11 +1556,11 @@ let We = class extends de {
1556
1556
  return { redos: [], undos: [] };
1557
1557
  if (c.length > 0) {
1558
1558
  const h = this._sheetDrawingService.getBatchUpdateOp(c), { undo: f, redo: m, objects: p } = h;
1559
- d.push({ id: T.id, params: { unitId: t, subUnitId: r, op: m, objects: p, type: y.UPDATE } }), g.push({ id: T.id, params: { unitId: t, subUnitId: r, op: f, objects: p, type: y.UPDATE } });
1559
+ d.push({ id: y.id, params: { unitId: t, subUnitId: r, op: m, objects: p, type: T.UPDATE } }), g.push({ id: y.id, params: { unitId: t, subUnitId: r, op: f, objects: p, type: T.UPDATE } });
1560
1560
  }
1561
1561
  if (u.length > 0) {
1562
1562
  const h = this._sheetDrawingService.getBatchRemoveOp(u), f = h.undo, m = h.redo, p = h.objects;
1563
- d.push({ id: T.id, params: { unitId: t, subUnitId: r, op: m, objects: p, type: y.REMOVE } }), g.push({ id: T.id, params: { unitId: t, subUnitId: r, op: f, objects: p, type: y.INSERT } });
1563
+ d.push({ id: y.id, params: { unitId: t, subUnitId: r, op: m, objects: p, type: T.REMOVE } }), g.push({ id: y.id, params: { unitId: t, subUnitId: r, op: f, objects: p, type: T.INSERT } });
1564
1564
  }
1565
1565
  return d.push({ id: j.id, params: [t] }), g.push({ id: j.id, params: [t] }), { redos: d, undos: g };
1566
1566
  }
@@ -1795,7 +1795,7 @@ let We = class extends de {
1795
1795
  const { from: g, to: l } = a, { row: c, column: u } = g, { row: h, column: f } = l;
1796
1796
  for (let m = 0; m < n.length; m++) {
1797
1797
  const p = n[m], { startRow: v, endRow: R, startColumn: S, endColumn: D } = p;
1798
- if (dn.intersects(
1798
+ if (cn.intersects(
1799
1799
  {
1800
1800
  startRow: v,
1801
1801
  endRow: R,
@@ -1835,7 +1835,7 @@ var di = Object.defineProperty, li = Object.getOwnPropertyDescriptor, ui = (i, e
1835
1835
  return t && r && di(e, n, r), r;
1836
1836
  }, ie = (i, e) => (n, t) => e(n, t, i);
1837
1837
  function hi(i, e, n, t) {
1838
- const { scaleX: r, scaleY: s } = e.getAncestorScale(), o = e.getViewport(Un.VIEW_MAIN), a = {
1838
+ const { scaleX: r, scaleY: s } = e.getAncestorScale(), o = e.getViewport(Pn.VIEW_MAIN), a = {
1839
1839
  left: !0,
1840
1840
  top: !0
1841
1841
  };
@@ -1931,7 +1931,7 @@ let it = class extends de {
1931
1931
  const { scene: u, canvas: h } = c;
1932
1932
  if (g == null)
1933
1933
  return !0;
1934
- const { left: f, top: m, width: p, height: v, angle: R, flipX: S, flipY: D, skewX: _, skewY: b } = g, w = bn({ unitId: t, subUnitId: r, drawingId: s }), U = u.getObject(w);
1934
+ const { left: f, top: m, width: p, height: v, angle: R, flipX: S, flipY: D, skewX: _, skewY: b } = g, w = Mn({ unitId: t, subUnitId: r, drawingId: s }), U = u.getObject(w);
1935
1935
  if (U != null) {
1936
1936
  U.transformByState({ left: f, top: m, width: p, height: v, angle: R, flipX: S, flipY: D, skewX: _, skewY: b });
1937
1937
  return;
@@ -1943,8 +1943,8 @@ let it = class extends de {
1943
1943
  height: v,
1944
1944
  zIndex: this._drawingManagerService.getDrawingOrder(t, r).length - 1
1945
1945
  }, I = new yn(w, O);
1946
- u.addObject(I, Pn).attachTransformerTo(I);
1947
- const P = this._ensureMap(t, r), M = new ln(), C = qe(I, c.renderObject, d.skeleton, o.worksheet), A = new Vn(C), $ = {
1946
+ u.addObject(I, Tn).attachTransformerTo(I);
1947
+ const P = this._ensureMap(t, r), M = new dn(), C = qe(I, c.renderObject, d.skeleton, o.worksheet), A = new $n(C), $ = {
1948
1948
  dispose: M,
1949
1949
  rect: I,
1950
1950
  position$: A,
@@ -1996,10 +1996,10 @@ let it = class extends de {
1996
1996
  }
1997
1997
  });
1998
1998
  };
1999
- if (e.id === jn.id) {
1999
+ if (e.id === Nn.id) {
2000
2000
  const s = e.params, { unitId: o, sheetId: a } = s;
2001
2001
  n(o, a);
2002
- } else if (e.id === Ln.id) {
2002
+ } else if (e.id === jn.id) {
2003
2003
  const s = e.params, { unitId: o } = s;
2004
2004
  Array.from((r = (t = this._domLayerMap.get(o)) == null ? void 0 : t.keys()) != null ? r : []).forEach((d) => {
2005
2005
  n(o, d);
@@ -2105,7 +2105,7 @@ let it = class extends de {
2105
2105
  if (!d)
2106
2106
  return;
2107
2107
  const g = this._sheetDrawingService.getBatchRemoveOp([d]), { redo: l, objects: c } = g;
2108
- this._commandService.syncExecuteCommand(T.id, { unitId: r, subUnitId: s, op: l, objects: c, type: y.REMOVE });
2108
+ this._commandService.syncExecuteCommand(y.id, { unitId: r, subUnitId: s, op: l, objects: c, type: T.REMOVE });
2109
2109
  }
2110
2110
  }
2111
2111
  };
@@ -2169,8 +2169,8 @@ let Be = class extends de {
2169
2169
  };
2170
2170
  Be = fi([
2171
2171
  ae(ce.Rendered, Be),
2172
- Ue(0, W(Wn)),
2173
- Ue(1, W(Sn)),
2172
+ Ue(0, W(Ln)),
2173
+ Ue(1, W(vn)),
2174
2174
  Ue(2, J),
2175
2175
  Ue(3, te)
2176
2176
  ], Be);
@@ -2197,7 +2197,7 @@ let $e = class extends de {
2197
2197
  return;
2198
2198
  }
2199
2199
  const r = e.getUnitId(), s = t.getSheetId();
2200
- if (this._permissionService.composePermission([new pt(r).id, new Je(r, s).id]).every((a) => a.value))
2200
+ if (this._permissionService.composePermission([new ft(r).id, new Je(r, s).id]).every((a) => a.value))
2201
2201
  this._drawingManagerService.setDrawingVisible(!0);
2202
2202
  else {
2203
2203
  this._drawingManagerService.setDrawingVisible(!1);
@@ -2254,7 +2254,7 @@ let $e = class extends de {
2254
2254
  const a = this._renderManagerService.getRenderById(r), d = a == null ? void 0 : a.scene;
2255
2255
  if (d == null)
2256
2256
  return;
2257
- const g = d.getTransformerByCreate(), l = this._permissionService.composePermission$([new pt(r).id, new Je(r, s).id]).pipe(mt((u) => u.every((h) => h.value)));
2257
+ const g = d.getTransformerByCreate(), l = this._permissionService.composePermission$([new ft(r).id, new Je(r, s).id]).pipe(mt((u) => u.every((h) => h.value)));
2258
2258
  l == null || l.pipe(
2259
2259
  Oe((u) => u !== o),
2260
2260
  Ee()
@@ -2330,9 +2330,9 @@ $e = _i([
2330
2330
  ae(ce.Rendered, $e),
2331
2331
  fe(0, J),
2332
2332
  fe(1, te),
2333
- fe(2, hn),
2333
+ fe(2, un),
2334
2334
  fe(3, ge),
2335
- fe(4, W(un))
2335
+ fe(4, W(ln))
2336
2336
  ], $e);
2337
2337
  var vi = Object.defineProperty, Si = Object.getOwnPropertyDescriptor, Ci = (i, e, n, t) => {
2338
2338
  for (var r = t > 1 ? void 0 : t ? Si(e, n) : e, s = i.length - 1, o; s >= 0; s--)
@@ -2394,7 +2394,7 @@ let Ve = class extends de {
2394
2394
  const { copyRange: t } = n;
2395
2395
  if (!t)
2396
2396
  return { redos: [], undos: [] };
2397
- const { drawings: r, unitId: s, subUnitId: o } = this._copyInfo, { ranges: [a, d], mapFunc: g } = Bn([t, e]), { row: l, col: c } = g(a.startRow, a.startColumn), { row: u, col: h } = g(d.startRow, d.startColumn), f = this._selectionRenderService.attachRangeWithCoord({
2397
+ const { drawings: r, unitId: s, subUnitId: o } = this._copyInfo, { ranges: [a, d], mapFunc: g } = Wn([t, e]), { row: l, col: c } = g(a.startRow, a.startColumn), { row: u, col: h } = g(d.startRow, d.startColumn), f = this._selectionRenderService.attachRangeWithCoord({
2398
2398
  startRow: l,
2399
2399
  endRow: l,
2400
2400
  startColumn: c,
@@ -2430,27 +2430,27 @@ let Ve = class extends de {
2430
2430
  if (b) {
2431
2431
  const { undo: M, redo: C, objects: A } = w.getBatchUpdateOp([P]);
2432
2432
  p.push({
2433
- id: T.id,
2433
+ id: y.id,
2434
2434
  params: {
2435
2435
  unitId: s,
2436
2436
  subUnitId: o,
2437
- type: y.UPDATE,
2437
+ type: T.UPDATE,
2438
2438
  op: C,
2439
2439
  objects: A
2440
2440
  }
2441
2441
  }), v.push({
2442
- id: T.id,
2442
+ id: y.id,
2443
2443
  params: {
2444
2444
  unitId: s,
2445
2445
  subUnitId: o,
2446
- type: y.UPDATE,
2446
+ type: T.UPDATE,
2447
2447
  op: M,
2448
2448
  objects: A
2449
2449
  }
2450
2450
  });
2451
2451
  } else {
2452
2452
  const { undo: M, redo: C, objects: A } = w.getBatchAddOp([P]);
2453
- p.push({ id: T.id, params: { op: C, unitId: s, subUnitId: o, objects: A, type: y.INSERT } }), v.push({ id: T.id, params: { op: M, unitId: s, subUnitId: o, objects: A, type: y.REMOVE } });
2453
+ p.push({ id: y.id, params: { op: C, unitId: s, subUnitId: o, objects: A, type: T.INSERT } }), v.push({ id: y.id, params: { op: M, unitId: s, subUnitId: o, objects: A, type: T.REMOVE } });
2454
2454
  }
2455
2455
  }), {
2456
2456
  redos: p,
@@ -2460,18 +2460,18 @@ let Ve = class extends de {
2460
2460
  };
2461
2461
  Ve = Ci([
2462
2462
  ae(ce.Ready, Ve),
2463
- Ae(0, $n),
2463
+ Ae(0, Bn),
2464
2464
  Ae(1, Se),
2465
2465
  Ae(2, H),
2466
2466
  Ae(3, W(xe))
2467
2467
  ], Ve);
2468
- var Qt = Object.defineProperty, Ri = Object.getOwnPropertyDescriptor, Ii = (i, e, n) => e in i ? Qt(i, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : i[e] = n, Di = (i, e, n, t) => {
2468
+ var qt = Object.defineProperty, Ri = Object.getOwnPropertyDescriptor, Ii = (i, e, n) => e in i ? qt(i, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : i[e] = n, Di = (i, e, n, t) => {
2469
2469
  for (var r = t > 1 ? void 0 : t ? Ri(e, n) : e, s = i.length - 1, o; s >= 0; s--)
2470
2470
  (o = i[s]) && (r = (t ? o(e, n, r) : o(r)) || r);
2471
- return t && r && Qt(e, n, r), r;
2472
- }, Qe = (i, e) => (n, t) => e(n, t, i), en = (i, e, n) => Ii(i, typeof e != "symbol" ? e + "" : e, n);
2471
+ return t && r && qt(e, n, r), r;
2472
+ }, Qe = (i, e) => (n, t) => e(n, t, i), Qt = (i, e, n) => Ii(i, typeof e != "symbol" ? e + "" : e, n);
2473
2473
  const Mi = "SHEET_IMAGE_UI_PLUGIN";
2474
- let Xe = class extends gn {
2474
+ let Xe = class extends hn {
2475
2475
  constructor(e = {}, n, t, r) {
2476
2476
  super();
2477
2477
  K(this, "_pluginConfig");
@@ -2502,28 +2502,28 @@ let Xe = class extends gn {
2502
2502
  n.forEach((r) => e.add(r)), t.forEach((r) => this._renderManagerService.registerRenderModule(F.UNIVER_SHEET, r));
2503
2503
  }
2504
2504
  };
2505
- en(Xe, "type", F.UNIVER_SHEET);
2506
- en(Xe, "pluginName", Mi);
2505
+ Qt(Xe, "type", F.UNIVER_SHEET);
2506
+ Qt(Xe, "pluginName", Mi);
2507
2507
  Xe = Di([
2508
- mn(On, Cn, Rn),
2508
+ gn(bn, Sn, Cn),
2509
2509
  Qe(1, W(xe)),
2510
2510
  Qe(2, W(ve)),
2511
2511
  Qe(3, te)
2512
2512
  ], Xe);
2513
2513
  export {
2514
2514
  j as ClearSheetDrawingTransformerOperation,
2515
- qt as DeleteDrawingsCommand,
2516
- Gt as EditSheetDrawingOperation,
2517
- xt as GroupSheetDrawingCommand,
2515
+ Zt as DeleteDrawingsCommand,
2516
+ Yt as EditSheetDrawingOperation,
2517
+ Xt as GroupSheetDrawingCommand,
2518
2518
  Ye as InsertCellImageOperation,
2519
2519
  He as InsertFloatImageOperation,
2520
2520
  at as InsertSheetDrawingCommand,
2521
2521
  Ce as MoveDrawingsCommand,
2522
2522
  ot as RemoveSheetDrawingCommand,
2523
- Xt as SetDrawingArrangeCommand,
2523
+ Gt as SetDrawingArrangeCommand,
2524
2524
  ke as SetSheetDrawingCommand,
2525
2525
  it as SheetCanvasFloatDomManagerService,
2526
- Yt as SidebarSheetDrawingOperation,
2527
- Ft as UngroupSheetDrawingCommand,
2526
+ Vt as SidebarSheetDrawingOperation,
2527
+ xt as UngroupSheetDrawingCommand,
2528
2528
  Xe as UniverSheetsDrawingUIPlugin
2529
2529
  };