@univerjs/sheets-drawing-ui 0.13.0 → 0.14.0-insiders.20251227-b250a8d

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/index.js CHANGED
@@ -1,25 +1,25 @@
1
- var Kr = Object.defineProperty;
2
- var Jr = (i, t, e) => t in i ? Kr(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
- var re = (i, t, e) => Jr(i, typeof t != "symbol" ? t + "" : t, e);
4
- import { precisionTo as bt, IRenderManagerService as Q, transformObjectOutOfGroup as Zr, getGroupState as qr, getCurrentTypeOfRenderer as Dn, CURSOR_TYPE as Qr, RENDER_CLASS_TYPE as ke, Rect as $e, ObjectType as An, DRAWING_OBJECT_LAYER_INDEX as qt, SHEET_VIEWPORT_KEY as cr } from "@univerjs/engine-render";
5
- import { convertPositionSheetOverGridToAbsolute as ei, SheetSkeletonManagerService as X, ISheetSelectionRenderService as Je, attachRangeWithCoord as dr, SheetCanvasPopManagerService as ti, HoverManagerService as ni, IEditorBridgeService as ri, IAutoFillService as ii, EditingRenderController as si, SetCellEditVisibleOperation as Nn, PREDEFINED_HOOK_NAME_PASTE as Le, COPY_TYPE as Re, discreteRangeToRange as kn, virtualizeDiscreteRanges as oi, ISheetClipboardService as ai, SetZoomRatioOperation as $n, SetScrollOperation as ci, SheetPrintInterceptorService as di, useHighlightRange as li, getCurrentRangeDisable$ as ui } from "@univerjs/sheets-ui";
6
- import { CommandType as q, ICommandService as Y, IUndoRedoService as Ze, sequenceExecute as lr, DrawingTypeEnum as x, ArrangeTypeEnum as Mt, Inject as A, IContextService as ur, LocaleService as Te, Injector as qe, Disposable as ee, createDocumentModelWithStyle as un, ObjectRelativeFromV as xn, ObjectRelativeFromH as Wn, WrapTextType as Bn, PositionedObjectLayoutType as jn, BooleanNumber as Fn, BuildTextUtils as hn, ImageSourceType as Ce, generateRandomId as He, FOCUSING_COMMON_DRAWINGS as Ge, IUniverInstanceService as de, UniverInstanceType as k, Direction as ve, createIdentifier as hi, IImageIoService as hr, RxDisposable as gi, DOCS_NORMAL_EDITOR_UNIT_ID_KEY as ot, DOCS_ZEN_EDITOR_UNIT_ID_KEY as Ve, InterceptorEffectEnum as mi, ObjectMatrix as fi, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as pi, IPermissionService as wi, UserManagerService as _i, LifecycleService as Si, LifecycleStages as vi, DisposableCollection as yt, fromEventSubject as Ii, Tools as Ye, PRINT_CHART_COMPONENT_KEY as Ci, Rectangle as Ri, FOCUSING_FX_BAR_EDITOR as Di, EDITOR_ACTIVATED as bi, FOCUSING_PANEL_EDITOR as Mi, DependentOn as yi, IConfigService as Ei, Plugin as Ti, merge as Oi, registerDependencies as Ui, touchDependencies as Qt } from "@univerjs/core";
7
- import { ISheetDrawingService as se, DrawingApplyType as U, SetDrawingApplyMutation as P, SheetDrawingAnchorType as O, UniverSheetsDrawingPlugin as Pi } from "@univerjs/sheets-drawing";
8
- import { SheetInterceptorService as Ht, SheetsSelectionsService as ut, SetRangeValuesCommand as Ln, getSheetCommandTarget as ae, INTERCEPTOR_POINT as Ai, InterceptCellContentPriority as Ni, WorkbookViewPermission as Hn, WorksheetViewPermission as Vn, WorkbookEditablePermission as gn, WorksheetEditPermission as mn, SetFrozenMutation as ki, SetSelectionsOperation as $i, SetWorksheetRowAutoHeightMutation as xi, COMMAND_LISTENER_SKELETON_CHANGE as Wi, InsertRowCommand as gr, InsertColCommand as mr, RemoveRowCommand as fr, RemoveColCommand as pr, DeleteRangeMoveLeftCommand as wr, DeleteRangeMoveUpCommand as _r, InsertRangeMoveDownCommand as Sr, InsertRangeMoveRightCommand as vr, DeltaRowHeightCommand as fn, SetRowHeightCommand as pn, DeltaColumnWidthCommand as Ir, SetColWidthCommand as Cr, SetRowHiddenCommand as Rr, SetSpecificRowsVisibleCommand as Dr, SetSpecificColsVisibleCommand as br, SetColHiddenCommand as Mr, MoveColsCommand as yr, MoveRowsCommand as Er, MoveRangeCommand as Tr, SetRowVisibleMutation as Bi, SetRowHiddenMutation as ji, SetColVisibleMutation as Fi, SetColHiddenMutation as Li, SetWorksheetRowHeightMutation as Hi, SetWorksheetColWidthMutation as Vi, SetWorksheetActiveOperation as Yi, RangeProtectionPermissionEditPoint as Gi } from "@univerjs/sheets";
9
- import { MessageType as Se, render as Xi, unmount as zi, FormLayout as en, CheckboxGroup as Ki, Checkbox as Yn, Select as Ji, Button as Gn, clsx as Zi, RadioGroup as qi, Radio as tn } from "@univerjs/design";
10
- import { docDrawingPositionToTransform as Xn, ReplaceSnapshotCommand as Qi, InnerPasteCommand as es } from "@univerjs/docs-ui";
11
- import { IImageIoService as ts, IDrawingManagerService as oe, DRAWING_IMAGE_ALLOW_IMAGE_LIST as zn, DRAWING_IMAGE_COUNT_LIMIT as Kn, ImageUploadStatusType as xe, DRAWING_IMAGE_ALLOW_SIZE as Jn, getImageSize as nn, SetDrawingSelectedOperation as Vt, DRAWING_IMAGE_WIDTH_LIMIT as Zn, DRAWING_IMAGE_HEIGHT_LIMIT as qn, ImageSourceType as ns, getDrawingShapeKeyByDrawingSearch as De, UniverDrawingPlugin as rs } from "@univerjs/drawing";
12
- import { ILocalFileService as is, IMessageService as Or, IDialogService as bn, ISidebarService as ss, IClipboardInterfaceService as os, CanvasFloatDomService as as, PrintFloatDomSingle as cs, ComponentManager as Ur, connectInjector as ds, useDependency as Ie, getMenuHiddenObservable as Yt, MenuItemType as Gt, ContextMenuPosition as rn, ContextMenuGroup as sn, RibbonInsertGroup as ls, KeyCode as Ke, IMenuManagerService as us, IShortcutService as hs } from "@univerjs/ui";
13
- import { DocDrawingController as gs, UniverDocsDrawingPlugin as ms } from "@univerjs/docs-drawing";
14
- import { ImageCropperObject as fs, COMPONENT_IMAGE_POPUP_MENU as ps, OpenImageCropOperation as ws, ImageResetSizeOperation as _s, DrawingRenderService as Pr, DrawingCommonPanel as Ss, UniverDrawingUIPlugin as vs } from "@univerjs/drawing-ui";
15
- import { takeUntil as Qn, throttleTime as Is, combineLatest as at, switchMap as fe, EMPTY as we, tap as er, map as pe, distinctUntilChanged as tr, Subject as on, filter as Cs, take as Rs, BehaviorSubject as je, of as wn } from "rxjs";
1
+ var Jr = Object.defineProperty;
2
+ var Zr = (i, t, e) => t in i ? Jr(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
+ var re = (i, t, e) => Zr(i, typeof t != "symbol" ? t + "" : t, e);
4
+ import { precisionTo as bt, IRenderManagerService as Q, transformObjectOutOfGroup as qr, getGroupState as Qr, getCurrentTypeOfRenderer as Dn, CURSOR_TYPE as ei, RENDER_CLASS_TYPE as ke, Rect as $e, ObjectType as An, DRAWING_OBJECT_LAYER_INDEX as qt, SHEET_VIEWPORT_KEY as cr } from "@univerjs/engine-render";
5
+ import { convertPositionSheetOverGridToAbsolute as ti, SheetSkeletonManagerService as X, ISheetSelectionRenderService as Je, attachRangeWithCoord as dr, SheetCanvasPopManagerService as ni, HoverManagerService as ri, IEditorBridgeService as ii, IAutoFillService as si, EditingRenderController as oi, SetCellEditVisibleOperation as Nn, PREDEFINED_HOOK_NAME_PASTE as Le, COPY_TYPE as Re, discreteRangeToRange as kn, virtualizeDiscreteRanges as ai, ISheetClipboardService as ci, SetZoomRatioOperation as $n, SetScrollOperation as di, SheetPrintInterceptorService as li, useHighlightRange as ui, getCurrentRangeDisable$ as hi } from "@univerjs/sheets-ui";
6
+ import { CommandType as q, ICommandService as Y, IUndoRedoService as Ze, sequenceExecute as lr, DrawingTypeEnum as x, ArrangeTypeEnum as Mt, Inject as A, IContextService as ur, LocaleService as Te, Injector as qe, Disposable as ee, createDocumentModelWithStyle as un, ObjectRelativeFromV as xn, ObjectRelativeFromH as Wn, WrapTextType as Bn, PositionedObjectLayoutType as jn, BooleanNumber as Fn, BuildTextUtils as hn, ImageSourceType as Ce, generateRandomId as He, FOCUSING_COMMON_DRAWINGS as Ge, IUniverInstanceService as de, UniverInstanceType as k, Direction as ve, createIdentifier as gi, IImageIoService as hr, RxDisposable as mi, DOCS_NORMAL_EDITOR_UNIT_ID_KEY as ot, DOCS_ZEN_EDITOR_UNIT_ID_KEY as Ve, InterceptorEffectEnum as fi, ObjectMatrix as pi, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as wi, IPermissionService as _i, UserManagerService as Si, LifecycleService as vi, LifecycleStages as Ii, DisposableCollection as yt, fromEventSubject as Ci, Tools as Ye, PRINT_CHART_COMPONENT_KEY as Ri, Rectangle as Di, FOCUSING_FX_BAR_EDITOR as bi, EDITOR_ACTIVATED as Mi, FOCUSING_PANEL_EDITOR as yi, DependentOn as Ei, IConfigService as Ti, Plugin as Oi, merge as Ui, registerDependencies as Pi, touchDependencies as Qt } from "@univerjs/core";
7
+ import { ISheetDrawingService as oe, DrawingApplyType as U, SetDrawingApplyMutation as P, SheetDrawingAnchorType as O, UniverSheetsDrawingPlugin as Ai } from "@univerjs/sheets-drawing";
8
+ import { SheetInterceptorService as Ht, SheetsSelectionsService as ut, SetRangeValuesCommand as Ln, getSheetCommandTarget as se, INTERCEPTOR_POINT as Ni, InterceptCellContentPriority as ki, WorkbookViewPermission as Hn, WorksheetViewPermission as Vn, WorkbookEditablePermission as gn, WorksheetEditPermission as mn, SetFrozenMutation as $i, SetSelectionsOperation as xi, SetWorksheetRowAutoHeightMutation as gr, COMMAND_LISTENER_SKELETON_CHANGE as Wi, InsertRowCommand as mr, InsertColCommand as fr, RemoveRowCommand as pr, RemoveColCommand as wr, DeleteRangeMoveLeftCommand as _r, DeleteRangeMoveUpCommand as Sr, InsertRangeMoveDownCommand as vr, InsertRangeMoveRightCommand as Ir, DeltaRowHeightCommand as fn, SetRowHeightCommand as pn, DeltaColumnWidthCommand as Cr, SetColWidthCommand as Rr, SetRowHiddenCommand as Dr, SetSpecificRowsVisibleCommand as br, SetSpecificColsVisibleCommand as Mr, SetColHiddenCommand as yr, MoveColsCommand as Er, MoveRowsCommand as Tr, MoveRangeCommand as Or, SetRowVisibleMutation as Bi, SetRowHiddenMutation as ji, SetColVisibleMutation as Fi, SetColHiddenMutation as Li, SetWorksheetRowHeightMutation as Hi, SetWorksheetRowIsAutoHeightMutation as Vi, SetWorksheetColWidthMutation as Yi, SetWorksheetActiveOperation as Gi, RangeProtectionPermissionEditPoint as Xi } from "@univerjs/sheets";
9
+ import { MessageType as Se, render as zi, unmount as Ki, FormLayout as en, CheckboxGroup as Ji, Checkbox as Yn, Select as Zi, Button as Gn, clsx as qi, RadioGroup as Qi, Radio as tn } from "@univerjs/design";
10
+ import { docDrawingPositionToTransform as Xn, ReplaceSnapshotCommand as es, InnerPasteCommand as ts } from "@univerjs/docs-ui";
11
+ import { IImageIoService as ns, IDrawingManagerService as ae, DRAWING_IMAGE_ALLOW_IMAGE_LIST as zn, DRAWING_IMAGE_COUNT_LIMIT as Kn, ImageUploadStatusType as xe, DRAWING_IMAGE_ALLOW_SIZE as Jn, getImageSize as nn, SetDrawingSelectedOperation as Vt, DRAWING_IMAGE_WIDTH_LIMIT as Zn, DRAWING_IMAGE_HEIGHT_LIMIT as qn, ImageSourceType as rs, getDrawingShapeKeyByDrawingSearch as De, UniverDrawingPlugin as is } from "@univerjs/drawing";
12
+ import { ILocalFileService as ss, IMessageService as Ur, IDialogService as bn, ISidebarService as os, IClipboardInterfaceService as as, CanvasFloatDomService as cs, PrintFloatDomSingle as ds, ComponentManager as Pr, connectInjector as ls, useDependency as Ie, getMenuHiddenObservable as Yt, MenuItemType as Gt, ContextMenuPosition as rn, ContextMenuGroup as sn, RibbonInsertGroup as us, KeyCode as Ke, IMenuManagerService as hs, IShortcutService as gs } from "@univerjs/ui";
13
+ import { DocDrawingController as ms, UniverDocsDrawingPlugin as fs } from "@univerjs/docs-drawing";
14
+ import { ImageCropperObject as ps, COMPONENT_IMAGE_POPUP_MENU as ws, OpenImageCropOperation as _s, ImageResetSizeOperation as Ss, DrawingRenderService as Ar, DrawingCommonPanel as vs, UniverDrawingUIPlugin as Is } from "@univerjs/drawing-ui";
15
+ import { takeUntil as Qn, throttleTime as Cs, combineLatest as at, switchMap as fe, EMPTY as we, tap as er, map as pe, distinctUntilChanged as tr, Subject as on, filter as Rs, take as Ds, BehaviorSubject as je, of as wn } from "rxjs";
16
16
  import { jsx as L, jsxs as Xe } from "react/jsx-runtime";
17
- import { useMemo as Fe, useState as Ee, useCallback as Et, useEffect as Ar } from "react";
17
+ import { useMemo as Fe, useState as Ee, useCallback as Et, useEffect as Nr } from "react";
18
18
  function J(i, t, e) {
19
19
  const { from: n, to: r, flipY: s = !1, flipX: o = !1, angle: a = 0, skewX: d = 0, skewY: u = 0 } = i, c = e.getCurrent();
20
20
  if (c == null)
21
21
  return;
22
- const l = ei(
22
+ const l = ti(
23
23
  c.unitId,
24
24
  c.sheetId,
25
25
  { from: n, to: r },
@@ -82,7 +82,7 @@ const H = {
82
82
  type: q.COMMAND,
83
83
  handler: (i, t) => {
84
84
  var S, I, D;
85
- const e = i.get(Y), n = i.get(Ze), r = i.get(Ht), s = i.get(se);
85
+ const e = i.get(Y), n = i.get(Ze), r = i.get(Ht), s = i.get(oe);
86
86
  if (!t) return !1;
87
87
  const { drawings: o } = t, a = [];
88
88
  o.forEach((v) => {
@@ -106,11 +106,11 @@ const H = {
106
106
  ]
107
107
  }), !0) : !1;
108
108
  }
109
- }, Nr = {
109
+ }, kr = {
110
110
  id: "sheet.command.delete-drawing",
111
111
  type: q.COMMAND,
112
112
  handler: (i) => {
113
- const t = i.get(Y), n = i.get(se).getFocusDrawings();
113
+ const t = i.get(Y), n = i.get(oe).getFocusDrawings();
114
114
  if (n.length === 0)
115
115
  return !1;
116
116
  const r = n[0].unitId, s = n.map((o) => {
@@ -128,10 +128,10 @@ const H = {
128
128
  });
129
129
  }
130
130
  };
131
- function Ds(i) {
131
+ function bs(i) {
132
132
  const t = [];
133
133
  return i.forEach((e) => {
134
- const { parent: n, children: r } = e, { unitId: s, subUnitId: o, drawingId: a } = n, d = qr(0, 0, r.map((l) => l.transform || {})), u = r.map((l) => {
134
+ const { parent: n, children: r } = e, { unitId: s, subUnitId: o, drawingId: a } = n, d = Qr(0, 0, r.map((l) => l.transform || {})), u = r.map((l) => {
135
135
  const g = l.transform || { left: 0, top: 0 }, { unitId: h, subUnitId: m, drawingId: f } = l;
136
136
  return {
137
137
  unitId: h,
@@ -157,14 +157,14 @@ function Ds(i) {
157
157
  });
158
158
  }), t;
159
159
  }
160
- function bs(i) {
160
+ function Ms(i) {
161
161
  const t = [];
162
162
  return i.forEach((e) => {
163
163
  const { parent: n, children: r } = e, { unitId: s, subUnitId: o, drawingId: a, transform: d = { width: 0, height: 0 } } = n;
164
164
  if (d == null)
165
165
  return;
166
166
  const u = r.map((l) => {
167
- const { transform: g } = l, { unitId: h, subUnitId: m, drawingId: f } = l, p = Zr(g || {}, d, d.width || 0, d.height || 0);
167
+ const { transform: g } = l, { unitId: h, subUnitId: m, drawingId: f } = l, p = qr(g || {}, d, d.width || 0, d.height || 0);
168
168
  return {
169
169
  unitId: h,
170
170
  subUnitId: m,
@@ -188,11 +188,11 @@ function bs(i) {
188
188
  });
189
189
  }), t;
190
190
  }
191
- const kr = {
191
+ const $r = {
192
192
  id: "sheet.command.group-sheet-image",
193
193
  type: q.COMMAND,
194
194
  handler: (i, t) => {
195
- const e = i.get(Y), n = i.get(Ze), r = i.get(se);
195
+ const e = i.get(Y), n = i.get(Ze), r = i.get(oe);
196
196
  if (!t) return !1;
197
197
  const s = [];
198
198
  t.forEach(({ parent: h, children: m }) => {
@@ -204,7 +204,7 @@ const kr = {
204
204
  return e.syncExecuteCommand(P.id, { op: c, unitId: a, subUnitId: d, objects: l, type: U.GROUP }) ? (n.pushUndoRedo({
205
205
  unitID: a,
206
206
  undoMutations: [
207
- { id: P.id, params: { op: u, unitId: a, subUnitId: d, objects: bs(l), type: U.UNGROUP } },
207
+ { id: P.id, params: { op: u, unitId: a, subUnitId: d, objects: Ms(l), type: U.UNGROUP } },
208
208
  { id: H.id, params: s }
209
209
  ],
210
210
  redoMutations: [
@@ -218,7 +218,7 @@ const kr = {
218
218
  type: q.COMMAND,
219
219
  handler: (i, t) => {
220
220
  var S, I, D;
221
- const e = i.get(Y), n = i.get(Ze), r = i.get(se), s = i.get(Ht);
221
+ const e = i.get(Y), n = i.get(Ze), r = i.get(oe), s = i.get(Ht);
222
222
  if (!t) return !1;
223
223
  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: Xt.id, params: t }), f = { id: P.id, params: { op: g, unitId: u, subUnitId: c, objects: h, type: U.INSERT } }, p = { id: P.id, params: { op: l, unitId: u, subUnitId: c, objects: h, type: U.REMOVE } };
224
224
  return lr([...(S = m.preRedos) != null ? S : [], f, ...m.redos], e) ? (n.pushUndoRedo({
@@ -237,13 +237,13 @@ const kr = {
237
237
  ]
238
238
  }), !0) : !1;
239
239
  }
240
- }, $r = {
240
+ }, xr = {
241
241
  id: "sheet.command.set-drawing-arrange",
242
242
  type: q.COMMAND,
243
243
  handler: (i, t) => {
244
244
  const e = i.get(Y), n = i.get(Ze);
245
245
  if (!t) return !1;
246
- const r = i.get(se), { unitId: s, subUnitId: o, drawingIds: a, arrangeType: d } = t, u = { unitId: s, subUnitId: o, drawingIds: a };
246
+ const r = i.get(oe), { unitId: s, subUnitId: o, drawingIds: a, arrangeType: d } = t, u = { unitId: s, subUnitId: o, drawingIds: a };
247
247
  let c;
248
248
  if (d === Mt.forward ? c = r.getForwardDrawingsOp(u) : d === Mt.backward ? c = r.getBackwardDrawingOp(u) : d === Mt.front ? c = r.getFrontDrawingsOp(u) : d === Mt.back && (c = r.getBackDrawingsOp(u)), c == null)
249
249
  return !1;
@@ -262,7 +262,7 @@ const kr = {
262
262
  id: "sheet.command.set-sheet-image",
263
263
  type: q.COMMAND,
264
264
  handler: (i, t) => {
265
- const e = i.get(Y), n = i.get(Ze), r = i.get(se);
265
+ const e = i.get(Y), n = i.get(Ze), r = i.get(oe);
266
266
  if (!t) return !1;
267
267
  const { drawings: s } = t, o = r.getBatchUpdateOp(s), { unitId: a, subUnitId: d, undo: u, redo: c, objects: l } = o;
268
268
  return e.syncExecuteCommand(P.id, { unitId: a, subUnitId: d, op: c, objects: l, type: U.UPDATE }) ? (n.pushUndoRedo({
@@ -277,11 +277,11 @@ const kr = {
277
277
  ]
278
278
  }), !0) : !1;
279
279
  }
280
- }, xr = {
280
+ }, Wr = {
281
281
  id: "sheet.command.ungroup-sheet-image",
282
282
  type: q.COMMAND,
283
283
  handler: (i, t) => {
284
- const e = i.get(Y), n = i.get(Ze), r = i.get(se);
284
+ const e = i.get(Y), n = i.get(Ze), r = i.get(oe);
285
285
  if (!t) return !1;
286
286
  const s = [];
287
287
  t.forEach(({ parent: h, children: m }) => {
@@ -293,7 +293,7 @@ const kr = {
293
293
  return e.syncExecuteCommand(P.id, { op: c, unitId: a, subUnitId: d, objects: l, type: U.UNGROUP }) ? (n.pushUndoRedo({
294
294
  unitID: a,
295
295
  undoMutations: [
296
- { id: P.id, params: { op: u, unitId: a, subUnitId: d, objects: Ds(l), type: U.GROUP } },
296
+ { id: P.id, params: { op: u, unitId: a, subUnitId: d, objects: bs(l), type: U.GROUP } },
297
297
  { id: H.id, params: s }
298
298
  ],
299
299
  redoMutations: [
@@ -303,18 +303,18 @@ const kr = {
303
303
  }), !0) : !1;
304
304
  }
305
305
  };
306
- var Ms = Object.getOwnPropertyDescriptor, ys = (i, t, e, n) => {
307
- for (var r = n > 1 ? void 0 : n ? Ms(t, e) : t, s = i.length - 1, o; s >= 0; s--)
306
+ var ys = Object.getOwnPropertyDescriptor, Es = (i, t, e, n) => {
307
+ for (var r = n > 1 ? void 0 : n ? ys(t, e) : t, s = i.length - 1, o; s >= 0; s--)
308
308
  (o = i[s]) && (r = o(r) || r);
309
309
  return r;
310
310
  }, ie = (i, t) => (e, n) => t(e, n, i);
311
- function Es(i, t, e) {
311
+ function Ts(i, t, e) {
312
312
  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));
313
313
  return { rotatedWidth: r, rotatedHeight: s };
314
314
  }
315
315
  function _n(i, t, e, n, r) {
316
316
  var S;
317
- const { rotatedHeight: s, rotatedWidth: o } = Es(e, n, r), d = i.get(Q).getRenderById(t.unitId);
317
+ const { rotatedHeight: s, rotatedWidth: o } = Ts(e, n, r), d = i.get(Q).getRenderById(t.unitId);
318
318
  if (!d)
319
319
  return !1;
320
320
  const c = (S = d.with(X).getSkeletonParam(t.subUnitId)) == null ? void 0 : S.skeleton;
@@ -618,7 +618,7 @@ let dt = class extends ee {
618
618
  _updateOrderListener() {
619
619
  this.disposeWithMe(this._drawingManagerService.featurePluginOrderUpdate$.subscribe((t) => {
620
620
  const { unitId: e, subUnitId: n, drawingIds: r, arrangeType: s } = t;
621
- this._commandService.executeCommand($r.id, {
621
+ this._commandService.executeCommand(xr.id, {
622
622
  unitId: e,
623
623
  subUnitId: n,
624
624
  drawingIds: r,
@@ -653,11 +653,11 @@ let dt = class extends ee {
653
653
  }
654
654
  _groupDrawingListener() {
655
655
  this.disposeWithMe(this._drawingManagerService.featurePluginGroupUpdate$.subscribe((t) => {
656
- this._commandService.executeCommand(kr.id, t);
656
+ this._commandService.executeCommand($r.id, t);
657
657
  const { unitId: e, subUnitId: n, drawingId: r } = t[0].parent;
658
658
  this._commandService.syncExecuteCommand(Vt.id, [{ unitId: e, subUnitId: n, drawingId: r }]);
659
659
  })), this.disposeWithMe(this._drawingManagerService.featurePluginUngroupUpdate$.subscribe((t) => {
660
- this._commandService.executeCommand(xr.id, t);
660
+ this._commandService.executeCommand(Wr.id, t);
661
661
  }));
662
662
  }
663
663
  _focusDrawingListener() {
@@ -668,16 +668,16 @@ let dt = class extends ee {
668
668
  );
669
669
  }
670
670
  };
671
- dt = ys([
671
+ dt = Es([
672
672
  ie(1, A(X)),
673
673
  ie(2, Y),
674
674
  ie(3, Je),
675
- ie(4, ts),
676
- ie(5, is),
677
- ie(6, se),
678
- ie(7, oe),
675
+ ie(4, ns),
676
+ ie(5, ss),
677
+ ie(6, oe),
678
+ ie(7, ae),
679
679
  ie(8, ur),
680
- ie(9, Or),
680
+ ie(9, Ur),
681
681
  ie(10, A(Te)),
682
682
  ie(11, A(ut)),
683
683
  ie(12, A(qe))
@@ -717,7 +717,7 @@ const Kt = {
717
717
  id: "sheet.command.move-drawing",
718
718
  type: q.COMMAND,
719
719
  handler: (i, t) => {
720
- const e = i.get(Y), n = i.get(se), r = i.get(Je), { direction: s } = t, o = n.getFocusDrawings();
720
+ const e = i.get(Y), n = i.get(oe), r = i.get(Je), { direction: s } = t, o = n.getFocusDrawings();
721
721
  if (o.length === 0)
722
722
  return !1;
723
723
  const a = o[0].unitId, d = o.map((c) => {
@@ -737,12 +737,12 @@ const Kt = {
737
737
  }) ? (e.syncExecuteCommand(H.id, [a]), !0) : !1;
738
738
  }
739
739
  };
740
- var Ts = Object.getOwnPropertyDescriptor, Os = (i, t, e, n) => {
741
- for (var r = n > 1 ? void 0 : n ? Ts(t, e) : t, s = i.length - 1, o; s >= 0; s--)
740
+ var Os = Object.getOwnPropertyDescriptor, Us = (i, t, e, n) => {
741
+ for (var r = n > 1 ? void 0 : n ? Os(t, e) : t, s = i.length - 1, o; s >= 0; s--)
742
742
  (o = i[s]) && (r = o(r) || r);
743
743
  return r;
744
744
  }, an = (i, t) => (e, n) => t(e, n, i), ye = /* @__PURE__ */ ((i) => (i.CELL_ADDRESS = "cellAddress", i.COLUMN_VALUE = "columnValue", i))(ye || {});
745
- const yn = hi("sheets-drawing-ui.batch-save-images.service");
745
+ const yn = gi("sheets-drawing-ui.batch-save-images.service");
746
746
  function Sn(i) {
747
747
  let t = "", e = i;
748
748
  for (; e >= 0; )
@@ -752,7 +752,7 @@ function Sn(i) {
752
752
  function At(i, t) {
753
753
  return `${Sn(t)}${i + 1}`;
754
754
  }
755
- function Us(i) {
755
+ function Ps(i) {
756
756
  const t = At(i.startRow, i.startColumn), e = At(i.endRow, i.endColumn);
757
757
  return t === e ? t : `${t}:${e}`;
758
758
  }
@@ -913,7 +913,7 @@ let vn = class extends ee {
913
913
  }
914
914
  getSelectionRangeNotation() {
915
915
  const i = this._selectionService.getCurrentSelections();
916
- return !i || i.length === 0 ? "" : i.map((t) => Us(t.range)).join(", ");
916
+ return !i || i.length === 0 ? "" : i.map((t) => Ps(t.range)).join(", ");
917
917
  }
918
918
  getSelectionRowRange() {
919
919
  const i = this._selectionService.getCurrentSelections();
@@ -1021,7 +1021,7 @@ let vn = class extends ee {
1021
1021
  return ir(i.source, i.imageSourceType);
1022
1022
  }
1023
1023
  };
1024
- vn = Os([
1024
+ vn = Us([
1025
1025
  an(0, de),
1026
1026
  an(1, A(ut)),
1027
1027
  an(2, hr)
@@ -1051,44 +1051,34 @@ const ze = "sheet.dialog.batch-save-images", ct = {
1051
1051
  onClose: () => t.close(ze)
1052
1052
  }), !0;
1053
1053
  }
1054
- }, Wr = "COMPONENT_SHEET_DRAWING_PANEL", Br = {
1054
+ }, Br = "COMPONENT_SHEET_DRAWING_PANEL", jr = {
1055
1055
  id: "sidebar.operation.sheet-image",
1056
1056
  type: q.COMMAND,
1057
1057
  handler: async (i, t) => {
1058
- const e = i.get(ss), n = i.get(Te), r = i.get(de), s = i.get(Y);
1059
- if (!ae(r)) return !1;
1060
- switch (t.value) {
1061
- case "open":
1062
- e.open({
1063
- header: { title: n.t("sheetImage.panel.title") },
1064
- children: { label: Wr },
1065
- onClose: () => {
1066
- s.syncExecuteCommand(Vt.id, []);
1067
- },
1068
- width: 360
1069
- });
1070
- break;
1071
- case "close":
1072
- default:
1073
- e.close();
1074
- break;
1075
- }
1076
- return !0;
1058
+ const e = i.get(os), n = i.get(Te), r = i.get(de), s = i.get(Y);
1059
+ return se(r) ? (t.value === "open" ? e.open({
1060
+ header: { title: n.t("sheetImage.panel.title") },
1061
+ children: { label: Br },
1062
+ onClose: () => {
1063
+ s.syncExecuteCommand(Vt.id, []);
1064
+ },
1065
+ width: 360
1066
+ }) : e.close(), !0) : !1;
1077
1067
  }
1078
- }, jr = {
1068
+ }, Fr = {
1079
1069
  id: "sheet.operation.edit-sheet-image",
1080
1070
  type: q.OPERATION,
1081
1071
  handler: (i, t) => {
1082
1072
  const e = i.get(Y);
1083
- return t == null ? !1 : (e.syncExecuteCommand(Vt.id, [t]), e.executeCommand(Br.id, { value: "open" }), !0);
1073
+ return t == null ? !1 : (e.syncExecuteCommand(Vt.id, [t]), e.executeCommand(jr.id, { value: "open" }), !0);
1084
1074
  }
1085
- }, Ps = "sheets-drawing-ui.config", sr = {};
1086
- var As = Object.getOwnPropertyDescriptor, Ns = (i, t, e, n) => {
1087
- for (var r = n > 1 ? void 0 : n ? As(t, e) : t, s = i.length - 1, o; s >= 0; s--)
1075
+ }, As = "sheets-drawing-ui.config", sr = {};
1076
+ var Ns = Object.getOwnPropertyDescriptor, ks = (i, t, e, n) => {
1077
+ for (var r = n > 1 ? void 0 : n ? Ns(t, e) : t, s = i.length - 1, o; s >= 0; s--)
1088
1078
  (o = i[s]) && (r = o(r) || r);
1089
1079
  return r;
1090
1080
  }, ce = (i, t) => (e, n) => t(e, n, i);
1091
- let Nt = class extends gi {
1081
+ let Nt = class extends mi {
1092
1082
  constructor(t, e, n, r, s, o, a, d, u, c) {
1093
1083
  super();
1094
1084
  re(this, "_initImagePopupMenu", /* @__PURE__ */ new Set());
@@ -1123,7 +1113,7 @@ let Nt = class extends gi {
1123
1113
  _hasCropObject(t) {
1124
1114
  const e = t.getAllObjectsByOrder();
1125
1115
  for (const n of e)
1126
- if (n instanceof fs)
1116
+ if (n instanceof ps)
1127
1117
  return !0;
1128
1118
  return !1;
1129
1119
  }
@@ -1157,7 +1147,7 @@ let Nt = class extends gi {
1157
1147
  r == null || r.dispose();
1158
1148
  const f = this._canvasPopManagerService.getFeatureMenu(c, l, g, h);
1159
1149
  r = this.disposeWithMe(this._canvasPopManagerService.attachPopupToObject(a, {
1160
- componentKey: ps,
1150
+ componentKey: ws,
1161
1151
  direction: "horizontal",
1162
1152
  offset: [2, 0],
1163
1153
  extraProps: {
@@ -1184,7 +1174,7 @@ let Nt = class extends gi {
1184
1174
  {
1185
1175
  label: "image-popup.edit",
1186
1176
  index: 0,
1187
- commandId: jr.id,
1177
+ commandId: Fr.id,
1188
1178
  commandParams: { unitId: t, subUnitId: e, drawingId: n },
1189
1179
  disable: r === x.DRAWING_DOM
1190
1180
  },
@@ -1198,34 +1188,34 @@ let Nt = class extends gi {
1198
1188
  {
1199
1189
  label: "image-popup.crop",
1200
1190
  index: 2,
1201
- commandId: ws.id,
1191
+ commandId: _s.id,
1202
1192
  commandParams: { unitId: t, subUnitId: e, drawingId: n },
1203
1193
  disable: r === x.DRAWING_DOM
1204
1194
  },
1205
1195
  {
1206
1196
  label: "image-popup.reset",
1207
1197
  index: 3,
1208
- commandId: _s.id,
1198
+ commandId: Ss.id,
1209
1199
  commandParams: [{ unitId: t, subUnitId: e, drawingId: n }],
1210
1200
  disable: r === x.DRAWING_DOM
1211
1201
  }
1212
1202
  ];
1213
1203
  }
1214
1204
  };
1215
- Nt = Ns([
1205
+ Nt = ks([
1216
1206
  ce(0, A(qe)),
1217
1207
  ce(1, A(Te)),
1218
- ce(2, oe),
1219
- ce(3, A(ti)),
1208
+ ce(2, ae),
1209
+ ce(3, A(ni)),
1220
1210
  ce(4, Q),
1221
1211
  ce(5, de),
1222
- ce(6, Or),
1212
+ ce(6, Ur),
1223
1213
  ce(7, ur),
1224
1214
  ce(8, hr),
1225
1215
  ce(9, Y)
1226
1216
  ], Nt);
1227
- var ks = Object.getOwnPropertyDescriptor, $s = (i, t, e, n) => {
1228
- for (var r = n > 1 ? void 0 : n ? ks(t, e) : t, s = i.length - 1, o; s >= 0; s--)
1217
+ var $s = Object.getOwnPropertyDescriptor, xs = (i, t, e, n) => {
1218
+ for (var r = n > 1 ? void 0 : n ? $s(t, e) : t, s = i.length - 1, o; s >= 0; s--)
1229
1219
  (o = i[s]) && (r = o(r) || r);
1230
1220
  return r;
1231
1221
  }, Tt = (i, t) => (e, n) => t(e, n, i);
@@ -1236,10 +1226,10 @@ let In = class extends ee {
1236
1226
  this._context = t, this._hoverManagerService = e, this._selectionsService = n, this._drawingRenderService = r, this._sheetSkeletonManagerService = s, this._initHover(), this._initImageClick();
1237
1227
  }
1238
1228
  _initHover() {
1239
- this.disposeWithMe(this._hoverManagerService.currentRichTextNoDistinct$.pipe(Is(33)).subscribe((t) => {
1229
+ this.disposeWithMe(this._hoverManagerService.currentRichTextNoDistinct$.pipe(Cs(33)).subscribe((t) => {
1240
1230
  var n, r;
1241
1231
  let e = [];
1242
- 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(Qr.ZOOM_IN)) : this._isSetCursor && (this._isSetCursor = !1, this._context.scene.resetCursor());
1232
+ 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(ei.ZOOM_IN)) : this._isSetCursor && (this._isSetCursor = !1, this._context.scene.resetCursor());
1243
1233
  }));
1244
1234
  }
1245
1235
  _initImageClick() {
@@ -1253,14 +1243,14 @@ let In = class extends ee {
1253
1243
  }));
1254
1244
  }
1255
1245
  };
1256
- In = $s([
1257
- Tt(1, A(ni)),
1246
+ In = xs([
1247
+ Tt(1, A(ri)),
1258
1248
  Tt(2, A(ut)),
1259
- Tt(3, A(Pr)),
1249
+ Tt(3, A(Ar)),
1260
1250
  Tt(4, A(X))
1261
1251
  ], In);
1262
- var xs = Object.getOwnPropertyDescriptor, Ws = (i, t, e, n) => {
1263
- for (var r = n > 1 ? void 0 : n ? xs(t, e) : t, s = i.length - 1, o; s >= 0; s--)
1252
+ var Ws = Object.getOwnPropertyDescriptor, Bs = (i, t, e, n) => {
1253
+ for (var r = n > 1 ? void 0 : n ? Ws(t, e) : t, s = i.length - 1, o; s >= 0; s--)
1264
1254
  (o = i[s]) && (r = o(r) || r);
1265
1255
  return r;
1266
1256
  }, Ot = (i, t) => (e, n) => t(e, n, i);
@@ -1284,18 +1274,18 @@ let Cn = class extends ee {
1284
1274
  this._drawingManagerService.registerDrawingData(this._context.unitId, this._sheetDrawingService.getDrawingDataForUnit(this._context.unitId)), this._drawingManagerService.initializeNotification(this._context.unitId);
1285
1275
  }
1286
1276
  };
1287
- Cn = Ws([
1288
- Ot(1, se),
1289
- Ot(2, oe),
1277
+ Cn = Bs([
1278
+ Ot(1, oe),
1279
+ Ot(2, ae),
1290
1280
  Ot(3, A(Je)),
1291
1281
  Ot(4, A(X))
1292
1282
  ], Cn);
1293
- var Bs = Object.getOwnPropertyDescriptor, js = (i, t, e, n) => {
1294
- for (var r = n > 1 ? void 0 : n ? Bs(t, e) : t, s = i.length - 1, o; s >= 0; s--)
1283
+ var js = Object.getOwnPropertyDescriptor, Fs = (i, t, e, n) => {
1284
+ for (var r = n > 1 ? void 0 : n ? js(t, e) : t, s = i.length - 1, o; s >= 0; s--)
1295
1285
  (o = i[s]) && (r = o(r) || r);
1296
1286
  return r;
1297
1287
  }, We = (i, t) => (e, n) => t(e, n, i);
1298
- function Fr(i, t, e) {
1288
+ function Lr(i, t, e) {
1299
1289
  var n, r, s, o;
1300
1290
  if (((r = (n = e == null ? void 0 : e.p) == null ? void 0 : n.body) == null ? void 0 : r.dataStream.length) === 3 && ((o = (s = e.p) == null ? void 0 : s.drawingsOrder) == null ? void 0 : o.length) === 1) {
1301
1291
  const a = e.p.drawings[e.p.drawingsOrder[0]], d = _n(
@@ -1323,35 +1313,35 @@ let kt = class extends ee {
1323
1313
  this.disposeWithMe(this._editorBridgeService.visible$.subscribe((i) => {
1324
1314
  i.visible ? i.visible && (this._drawingManagerService.removeDrawingDataForUnit(ot), this._docDrawingController.loadDrawingDataForUnit(ot), this._drawingManagerService.initializeNotification(ot)) : this._drawingManagerService.removeDrawingDataForUnit(ot);
1325
1315
  })), this.disposeWithMe(this._commandService.onCommandExecuted((i) => {
1326
- i.id === Qi.id && i.params.unitId === Ve && (this._drawingManagerService.removeDrawingDataForUnit(Ve), this._docDrawingController.loadDrawingDataForUnit(Ve), this._drawingManagerService.initializeNotification(Ve));
1316
+ i.id === es.id && i.params.unitId === Ve && (this._drawingManagerService.removeDrawingDataForUnit(Ve), this._docDrawingController.loadDrawingDataForUnit(Ve), this._drawingManagerService.initializeNotification(Ve));
1327
1317
  }));
1328
1318
  }
1329
1319
  _initCellContentInterceptor() {
1330
1320
  this.disposeWithMe(
1331
1321
  this._sheetInterceptorService.intercept(
1332
- Ai.CELL_CONTENT,
1322
+ Ni.CELL_CONTENT,
1333
1323
  {
1334
- effect: mi.Style,
1335
- priority: Ni.CELL_IMAGE,
1324
+ effect: fi.Style,
1325
+ priority: ki.CELL_IMAGE,
1336
1326
  handler: (i, t, e) => {
1337
1327
  var n;
1338
- return i != null && i.p && ((n = i.p.drawingsOrder) != null && n.length) && (i === t.rawData && (i = { ...t.rawData }), i.interceptorStyle || (i.interceptorStyle = {}), i.interceptorStyle.tr = { a: 0 }, Fr(this._injector, { unitId: t.unitId, subUnitId: t.subUnitId, row: t.row, col: t.col }, i)), e(i);
1328
+ return i != null && i.p && ((n = i.p.drawingsOrder) != null && n.length) && (i === t.rawData && (i = { ...t.rawData }), i.interceptorStyle || (i.interceptorStyle = {}), i.interceptorStyle.tr = { a: 0 }, Lr(this._injector, { unitId: t.unitId, subUnitId: t.subUnitId, row: t.row, col: t.col }, i)), e(i);
1339
1329
  }
1340
1330
  }
1341
1331
  )
1342
1332
  );
1343
1333
  }
1344
1334
  };
1345
- kt = js([
1335
+ kt = Fs([
1346
1336
  We(0, Y),
1347
1337
  We(1, A(Ht)),
1348
1338
  We(2, A(qe)),
1349
- We(3, oe),
1350
- We(4, A(gs)),
1351
- We(5, A(ri))
1339
+ We(3, ae),
1340
+ We(4, A(ms)),
1341
+ We(5, A(ii))
1352
1342
  ], kt);
1353
- var Fs = Object.getOwnPropertyDescriptor, Ls = (i, t, e, n) => {
1354
- for (var r = n > 1 ? void 0 : n ? Fs(t, e) : t, s = i.length - 1, o; s >= 0; s--)
1343
+ var Ls = Object.getOwnPropertyDescriptor, Hs = (i, t, e, n) => {
1344
+ for (var r = n > 1 ? void 0 : n ? Ls(t, e) : t, s = i.length - 1, o; s >= 0; s--)
1355
1345
  (o = i[s]) && (r = o(r) || r);
1356
1346
  return r;
1357
1347
  }, or = (i, t) => (e, n) => t(e, n, i);
@@ -1364,26 +1354,26 @@ let $t = class extends ee {
1364
1354
  this._autoFillService.addHook({
1365
1355
  id: "sheet-cell-image-autofill",
1366
1356
  onBeforeSubmit: (i, t, e, n) => {
1367
- new fi(n).forValue((r, s, o) => {
1368
- Fr(this._injector, { unitId: i.unitId, subUnitId: i.subUnitId, row: r, col: s }, o);
1357
+ new pi(n).forValue((r, s, o) => {
1358
+ Lr(this._injector, { unitId: i.unitId, subUnitId: i.subUnitId, row: r, col: s }, o);
1369
1359
  });
1370
1360
  }
1371
1361
  })
1372
1362
  );
1373
1363
  }
1374
1364
  };
1375
- $t = Ls([
1376
- or(0, A(ii)),
1365
+ $t = Hs([
1366
+ or(0, A(si)),
1377
1367
  or(1, A(qe))
1378
1368
  ], $t);
1379
- var Hs = Object.getOwnPropertyDescriptor, Vs = (i, t, e, n) => {
1380
- for (var r = n > 1 ? void 0 : n ? Hs(t, e) : t, s = i.length - 1, o; s >= 0; s--)
1369
+ var Vs = Object.getOwnPropertyDescriptor, Ys = (i, t, e, n) => {
1370
+ for (var r = n > 1 ? void 0 : n ? Vs(t, e) : t, s = i.length - 1, o; s >= 0; s--)
1381
1371
  (o = i[s]) && (r = o(r) || r);
1382
1372
  return r;
1383
1373
  }, nt = (i, t) => (e, n) => t(e, n, i);
1384
- const Ys = [
1374
+ const Gs = [
1385
1375
  ot,
1386
- pi,
1376
+ wi,
1387
1377
  Ve
1388
1378
  ];
1389
1379
  let xt = class extends ee {
@@ -1392,7 +1382,7 @@ let xt = class extends ee {
1392
1382
  }
1393
1383
  _setCellImage(i) {
1394
1384
  var r;
1395
- const t = un("", {}), e = (r = Dn(k.UNIVER_SHEET, this._univerInstanceService, this._renderManagerService)) == null ? void 0 : r.with(si), n = hn.drawing.add({
1385
+ const t = un("", {}), e = (r = Dn(k.UNIVER_SHEET, this._univerInstanceService, this._renderManagerService)) == null ? void 0 : r.with(oi), n = hn.drawing.add({
1396
1386
  documentDataModel: t,
1397
1387
  drawings: [i],
1398
1388
  selection: {
@@ -1407,12 +1397,12 @@ let xt = class extends ee {
1407
1397
  this.disposeWithMe(
1408
1398
  this._commandService.beforeCommandExecuted((i) => {
1409
1399
  var t, e;
1410
- if (i.id === es.id) {
1400
+ if (i.id === ts.id) {
1411
1401
  const n = i.params, { doc: r } = n, s = this._univerInstanceService.getCurrentUnitOfType(k.UNIVER_DOC);
1412
1402
  if (s == null || !Object.keys((t = r.drawings) != null ? t : {}).length)
1413
1403
  return;
1414
1404
  const o = s.getUnitId();
1415
- if (Ys.includes(o)) {
1405
+ if (Gs.includes(o)) {
1416
1406
  if (o !== Ve) {
1417
1407
  const a = () => {
1418
1408
  this._dialogService.close("sheet-cell-image-copy-paste"), this._commandService.syncExecuteCommand(Nn.id, {
@@ -1448,32 +1438,32 @@ let xt = class extends ee {
1448
1438
  );
1449
1439
  }
1450
1440
  };
1451
- xt = Vs([
1441
+ xt = Ys([
1452
1442
  nt(0, Y),
1453
1443
  nt(1, de),
1454
1444
  nt(2, bn),
1455
1445
  nt(3, Q),
1456
1446
  nt(4, A(Te))
1457
1447
  ], xt);
1458
- var Gs = Object.getOwnPropertyDescriptor, Xs = (i, t, e, n) => {
1459
- for (var r = n > 1 ? void 0 : n ? Gs(t, e) : t, s = i.length - 1, o; s >= 0; s--)
1448
+ var Xs = Object.getOwnPropertyDescriptor, zs = (i, t, e, n) => {
1449
+ for (var r = n > 1 ? void 0 : n ? Xs(t, e) : t, s = i.length - 1, o; s >= 0; s--)
1460
1450
  (o = i[s]) && (r = o(r) || r);
1461
1451
  return r;
1462
1452
  }, rt = (i, t) => (e, n) => t(e, n, i);
1463
- const Lr = "image/png";
1464
- function zs(i) {
1453
+ const Hr = "image/png";
1454
+ function Ks(i) {
1465
1455
  const t = i.split(","), e = atob(t[1]), n = e.length, r = new Uint8Array(n);
1466
1456
  for (let s = 0; s < n; s++)
1467
1457
  r[s] = e.charCodeAt(s);
1468
- return new Blob([r], { type: Lr });
1458
+ return new Blob([r], { type: Hr });
1469
1459
  }
1470
- function Ks(i) {
1471
- const t = new ClipboardItem({ [Lr]: zs(i) });
1460
+ function Js(i) {
1461
+ const t = new ClipboardItem({ [Hr]: Ks(i) });
1472
1462
  navigator.clipboard.write([t]).catch((e) => {
1473
1463
  console.error("Could not copy image using clipboard API: ", e);
1474
1464
  });
1475
1465
  }
1476
- function Js() {
1466
+ function Zs() {
1477
1467
  function i() {
1478
1468
  const n = document.createElement("input");
1479
1469
  return n.style.position = "absolute", n.style.height = "1px", n.style.width = "1px", n.style.opacity = "0", n;
@@ -1517,8 +1507,8 @@ let Wt = class extends ee {
1517
1507
  this._commandService.executeCommand(ht.id, d);
1518
1508
  }
1519
1509
  setTimeout(() => {
1520
- const d = Js();
1521
- o.drawingType === x.DRAWING_IMAGE && o.imageSourceType === ns.BASE64 ? Ks(o.source) : this._clipboardInterfaceService.writeText(""), d();
1510
+ const d = Zs();
1511
+ o.drawingType === x.DRAWING_IMAGE && o.imageSourceType === rs.BASE64 ? Js(o.source) : this._clipboardInterfaceService.writeText(""), d();
1522
1512
  }, 200);
1523
1513
  const a = {
1524
1514
  unitId: o.unitId,
@@ -1689,7 +1679,7 @@ let Wt = class extends ee {
1689
1679
  pasteTo: { unitId: n, subUnitId: r, range: kn(o) },
1690
1680
  pasteType: s
1691
1681
  }, d);
1692
- const { ranges: [l, g], mapFunc: h } = oi([a, o]), { row: m, col: f } = h(l.startRow, l.startColumn), { row: p, col: w } = h(g.startRow, g.startColumn), S = u.attachRangeWithCoord({
1682
+ const { ranges: [l, g], mapFunc: h } = ai([a, o]), { row: m, col: f } = h(l.startRow, l.startColumn), { row: p, col: w } = h(g.startRow, g.startColumn), S = u.attachRangeWithCoord({
1693
1683
  startRow: m,
1694
1684
  endRow: m,
1695
1685
  startColumn: f,
@@ -1733,15 +1723,15 @@ let Wt = class extends ee {
1733
1723
  });
1734
1724
  }
1735
1725
  };
1736
- Wt = Xs([
1737
- rt(0, ai),
1726
+ Wt = zs([
1727
+ rt(0, ci),
1738
1728
  rt(1, Q),
1739
- rt(2, oe),
1740
- rt(3, os),
1729
+ rt(2, ae),
1730
+ rt(3, as),
1741
1731
  rt(4, Y)
1742
1732
  ], Wt);
1743
- var Zs = Object.getOwnPropertyDescriptor, qs = (i, t, e, n) => {
1744
- for (var r = n > 1 ? void 0 : n ? Zs(t, e) : t, s = i.length - 1, o; s >= 0; s--)
1733
+ var qs = Object.getOwnPropertyDescriptor, Qs = (i, t, e, n) => {
1734
+ for (var r = n > 1 ? void 0 : n ? qs(t, e) : t, s = i.length - 1, o; s >= 0; s--)
1745
1735
  (o = i[s]) && (r = o(r) || r);
1746
1736
  return r;
1747
1737
  }, it = (i, t) => (e, n) => t(e, n, i);
@@ -1913,20 +1903,20 @@ let Bt = class extends ee {
1913
1903
  );
1914
1904
  }
1915
1905
  };
1916
- Bt = qs([
1917
- it(0, oe),
1906
+ Bt = Qs([
1907
+ it(0, ae),
1918
1908
  it(1, Q),
1919
- it(2, wi),
1909
+ it(2, _i),
1920
1910
  it(3, de),
1921
- it(4, A(_i))
1911
+ it(4, A(Si))
1922
1912
  ], Bt);
1923
- var Qs = Object.getOwnPropertyDescriptor, eo = (i, t, e, n) => {
1924
- for (var r = n > 1 ? void 0 : n ? Qs(t, e) : t, s = i.length - 1, o; s >= 0; s--)
1913
+ var eo = Object.getOwnPropertyDescriptor, to = (i, t, e, n) => {
1914
+ for (var r = n > 1 ? void 0 : n ? eo(t, e) : t, s = i.length - 1, o; s >= 0; s--)
1925
1915
  (o = i[s]) && (r = o(r) || r);
1926
1916
  return r;
1927
1917
  }, be = (i, t) => (e, n) => t(e, n, i);
1928
- const to = "univer-sheet-float-dom-";
1929
- function Hr(i, t, e, n, r, s = !1) {
1918
+ const no = "univer-sheet-float-dom-";
1919
+ function Vr(i, t, e, n, r, s = !1) {
1930
1920
  const { scaleX: o, scaleY: a } = t.getAncestorScale(), d = t.getViewport(cr.VIEW_MAIN), u = n.getFreeze(), { startColumn: c, startRow: l, xSplit: g, ySplit: h } = u, m = {
1931
1921
  left: !0,
1932
1922
  // left means the left of pic is in a viewMainLeft
@@ -1973,7 +1963,7 @@ const me = (i, t, e, n, r) => {
1973
1963
  right: s + a,
1974
1964
  top: o,
1975
1965
  bottom: o + d
1976
- }, l = Hr(c, t, e, n, r), { scaleX: g, scaleY: h } = t.getAncestorScale();
1966
+ }, l = Vr(c, t, e, n, r), { scaleX: g, scaleY: h } = t.getAncestorScale();
1977
1967
  return {
1978
1968
  startX: l.left,
1979
1969
  endX: l.right,
@@ -2001,7 +1991,7 @@ let lt = class extends ee {
2001
1991
  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();
2002
1992
  }
2003
1993
  _bindScrollEvent() {
2004
- this._lifecycleService.lifecycle$.pipe(Cs((t) => t === vi.Rendered), Rs(1)).subscribe(() => {
1994
+ this._lifecycleService.lifecycle$.pipe(Rs((t) => t === Ii.Rendered), Ds(1)).subscribe(() => {
2005
1995
  this._scrollUpdateListener();
2006
1996
  });
2007
1997
  }
@@ -2027,7 +2017,7 @@ let lt = class extends ee {
2027
2017
  this._drawingManagerService.add$.subscribe((t) => {
2028
2018
  t.forEach((e) => {
2029
2019
  var K;
2030
- const { unitId: n, subUnitId: r, drawingId: s } = e, o = ae(this._univerInstanceService, { unitId: n, subUnitId: r }), a = this._drawingManagerService.getDrawingByParam(e), d = this._univerInstanceService.getUnit(n, k.UNIVER_SHEET);
2020
+ const { unitId: n, subUnitId: r, drawingId: s } = e, o = se(this._univerInstanceService, { unitId: n, subUnitId: r }), a = this._drawingManagerService.getDrawingByParam(e), d = this._univerInstanceService.getUnit(n, k.UNIVER_SHEET);
2031
2021
  if (!d)
2032
2022
  return;
2033
2023
  const u = d.getActiveSheet().getSheetId();
@@ -2065,7 +2055,7 @@ let lt = class extends ee {
2065
2055
  }
2066
2056
  const N = new $e(E, M);
2067
2057
  b && N.setObjectType(An.CHART), f.addObject(N, qt), a.allowTransform !== !1 && f.attachTransformerTo(N);
2068
- const F = new yt(), te = me(N, m.renderUnit.scene, c.skeleton, o.worksheet), z = new je(te), V = `${to}${He(6)}`, G = {
2058
+ const F = new yt(), te = me(N, m.renderUnit.scene, c.skeleton, o.worksheet), z = new je(te), V = `${no}${He(6)}`, G = {
2069
2059
  dispose: F,
2070
2060
  rect: N,
2071
2061
  position$: z,
@@ -2121,7 +2111,7 @@ let lt = class extends ee {
2121
2111
  _scrollUpdateListener() {
2122
2112
  const t = (e, n) => {
2123
2113
  var d;
2124
- 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 = ae(this._univerInstanceService, { unitId: e, subUnitId: n }), a = (d = this._renderManagerService.getRenderById(e)) == null ? void 0 : d.with(X).getSkeletonParam(n);
2114
+ 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 = se(this._univerInstanceService, { unitId: e, subUnitId: n }), a = (d = this._renderManagerService.getRenderById(e)) == null ? void 0 : d.with(X).getSkeletonParam(n);
2125
2115
  !r || !o || !a || s.forEach((u) => {
2126
2116
  const c = this._domLayerInfoMap.get(u);
2127
2117
  if (c) {
@@ -2139,7 +2129,7 @@ let lt = class extends ee {
2139
2129
  return r ? { render: r, unitId: n, subUnitId: e.getSheetId() } : null;
2140
2130
  }),
2141
2131
  fe(
2142
- (e) => e ? Ii(e.render.scene.getViewport(cr.VIEW_MAIN).onScrollAfter$).pipe(pe(() => ({ unitId: e.unitId, subUnitId: e.subUnitId }))) : wn(null)
2132
+ (e) => e ? Ci(e.render.scene.getViewport(cr.VIEW_MAIN).onScrollAfter$).pipe(pe(() => ({ unitId: e.unitId, subUnitId: e.subUnitId }))) : wn(null)
2143
2133
  )
2144
2134
  ).subscribe((e) => {
2145
2135
  if (!e) return;
@@ -2152,10 +2142,10 @@ let lt = class extends ee {
2152
2142
  Array.from(this._domLayerInfoMap.values()).filter((o) => o.unitId === r).map((o) => o.subUnitId).forEach((o) => {
2153
2143
  t(r, o);
2154
2144
  });
2155
- } else if (e.id === ki.id) {
2145
+ } else if (e.id === $i.id) {
2156
2146
  const { unitId: n, subUnitId: r } = e.params;
2157
2147
  t(n, r);
2158
- } else if (e.id === $i.id) {
2148
+ } else if (e.id === xi.id) {
2159
2149
  const { unitId: n, subUnitId: r } = e.params;
2160
2150
  t(n, r);
2161
2151
  }
@@ -2228,7 +2218,7 @@ let lt = class extends ee {
2228
2218
  }
2229
2219
  // CreateFloatDomCommand --> floatDomService.addFloatDomToPosition
2230
2220
  addFloatDomToPosition(t, e) {
2231
- const n = ae(this._univerInstanceService, {
2221
+ const n = se(this._univerInstanceService, {
2232
2222
  unitId: t.unitId,
2233
2223
  subUnitId: t.subUnitId
2234
2224
  });
@@ -2281,7 +2271,7 @@ let lt = class extends ee {
2281
2271
  // eslint-disable-next-line max-lines-per-function, complexity
2282
2272
  addFloatDomToRange(t, e, n, r) {
2283
2273
  var C, _, y;
2284
- const s = ae(this._univerInstanceService, {
2274
+ const s = se(this._univerInstanceService, {
2285
2275
  unitId: e.unitId,
2286
2276
  subUnitId: e.subUnitId
2287
2277
  });
@@ -2312,7 +2302,7 @@ let lt = class extends ee {
2312
2302
  allowTransform: h
2313
2303
  };
2314
2304
  {
2315
- const { unitId: R, subUnitId: E, drawingId: T } = v, M = ae(this._univerInstanceService, { unitId: R, subUnitId: E }), b = v, N = this._univerInstanceService.getUnit(R, k.UNIVER_SHEET);
2305
+ const { unitId: R, subUnitId: E, drawingId: T } = v, M = se(this._univerInstanceService, { unitId: R, subUnitId: E }), b = v, N = this._univerInstanceService.getUnit(R, k.UNIVER_SHEET);
2316
2306
  if (!N)
2317
2307
  return;
2318
2308
  const F = N.getActiveSheet().getSheetId();
@@ -2406,14 +2396,14 @@ let lt = class extends ee {
2406
2396
  left: f.absolute.left,
2407
2397
  top: f.absolute.top
2408
2398
  }
2409
- }, n), Gr = De({ unitId: R, subUnitId: E, drawingId: T }), Xr = new $e(Gr, {
2399
+ }, n), Xr = De({ unitId: R, subUnitId: E, drawingId: T }), zr = new $e(Xr, {
2410
2400
  left: En.startX,
2411
2401
  top: En.startY,
2412
2402
  width: (Un = n.width) != null ? Un : $.width,
2413
2403
  height: (Pn = n.height) != null ? Pn : $.height,
2414
2404
  zIndex: this._drawingManagerService.getDrawingOrder(R, E).length - 1
2415
- }), zr = me(Xr, K.renderUnit.scene, z.skeleton, M.worksheet, ge);
2416
- Ne.next(zr);
2405
+ }), Kr = me(zr, K.renderUnit.scene, z.skeleton, M.worksheet, ge);
2406
+ Ne.next(Kr);
2417
2407
  }));
2418
2408
  const tt = (y = this._renderManagerService.getRenderById(R)) == null ? void 0 : y.with(X);
2419
2409
  tt == null || tt.currentSkeleton$.subscribe(($) => {
@@ -2439,7 +2429,7 @@ let lt = class extends ee {
2439
2429
  // eslint-disable-next-line max-lines-per-function, complexity
2440
2430
  addFloatDomToColumnHeader(t, e, n, r) {
2441
2431
  var D, v, C;
2442
- const s = ae(this._univerInstanceService, {
2432
+ const s = se(this._univerInstanceService, {
2443
2433
  unitId: e.unitId,
2444
2434
  subUnitId: e.subUnitId
2445
2435
  });
@@ -2475,7 +2465,7 @@ let lt = class extends ee {
2475
2465
  allowTransform: h
2476
2466
  };
2477
2467
  {
2478
- const { unitId: _, subUnitId: y, drawingId: R } = I, E = ae(this._univerInstanceService, { unitId: _, subUnitId: y }), T = I, M = this._univerInstanceService.getUnit(_, k.UNIVER_SHEET);
2468
+ const { unitId: _, subUnitId: y, drawingId: R } = I, E = se(this._univerInstanceService, { unitId: _, subUnitId: y }), T = I, M = this._univerInstanceService.getUnit(_, k.UNIVER_SHEET);
2479
2469
  if (!M)
2480
2470
  return;
2481
2471
  const b = M.getActiveSheet().getSheetId();
@@ -2622,11 +2612,11 @@ let lt = class extends ee {
2622
2612
  a.next(p), u.next(w);
2623
2613
  }, l = new yt();
2624
2614
  l.add(e.engine.clientRect$.subscribe(() => c())), l.add(this._commandService.onCommandExecuted((p) => {
2625
- if (p.id === xi.id && p.params.rowsAutoHeightInfo.findIndex((S) => S.row === r) > -1) {
2615
+ if (p.id === gr.id && p.params.rowsAutoHeightInfo.findIndex((S) => S.row === r) > -1) {
2626
2616
  c();
2627
2617
  return;
2628
2618
  }
2629
- (Wi.indexOf(p.id) > -1 || p.id === ci.id || p.id === $n.id) && c();
2619
+ (Wi.indexOf(p.id) > -1 || p.id === di.id || p.id === $n.id) && c();
2630
2620
  }));
2631
2621
  const g = (p, w) => {
2632
2622
  r = p, s = w, c();
@@ -2670,14 +2660,14 @@ let lt = class extends ee {
2670
2660
  };
2671
2661
  }
2672
2662
  };
2673
- lt = eo([
2663
+ lt = to([
2674
2664
  be(0, A(Q)),
2675
2665
  be(1, de),
2676
2666
  be(2, A(Y)),
2677
- be(3, oe),
2678
- be(4, A(as)),
2679
- be(5, se),
2680
- be(6, A(Si))
2667
+ be(3, ae),
2668
+ be(4, A(cs)),
2669
+ be(5, oe),
2670
+ be(6, A(vi))
2681
2671
  ], lt);
2682
2672
  function st(i, t, e) {
2683
2673
  const n = e.getCellWithCoordByIndex(i, t), r = n.isMergedMainCell ? n.mergeInfo : n;
@@ -2725,9 +2715,9 @@ function Pt(i, t) {
2725
2715
  const e = Number.parseFloat(i);
2726
2716
  return t * e / 100;
2727
2717
  }
2728
- const no = (i) => {
2718
+ const ro = (i) => {
2729
2719
  const { floatDomInfos: t, scene: e, skeleton: n, worksheet: r } = i, s = Fe(() => t.map((o) => {
2730
- const { width: a, height: d, angle: u, left: c, top: l } = o.transform, g = Hr(
2720
+ const { width: a, height: d, angle: u, left: c, top: l } = o.transform, g = Vr(
2731
2721
  {
2732
2722
  left: c != null ? c : 0,
2733
2723
  right: (c != null ? c : 0) + (a != null ? a : 0),
@@ -2766,10 +2756,10 @@ const no = (i) => {
2766
2756
  };
2767
2757
  return [o.drawingId, p];
2768
2758
  }), [t, e, n, r]);
2769
- return /* @__PURE__ */ L("div", { style: { position: "absolute", top: 0, left: 0 }, children: s.map(([o, a]) => /* @__PURE__ */ L(cs, { layer: a, id: o, position: a.position }, o)) });
2759
+ return /* @__PURE__ */ L("div", { style: { position: "absolute", top: 0, left: 0 }, children: s.map(([o, a]) => /* @__PURE__ */ L(ds, { layer: a, id: o, position: a.position }, o)) });
2770
2760
  };
2771
- var ro = Object.getOwnPropertyDescriptor, io = (i, t, e, n) => {
2772
- for (var r = n > 1 ? void 0 : n ? ro(t, e) : t, s = i.length - 1, o; s >= 0; s--)
2761
+ var io = Object.getOwnPropertyDescriptor, so = (i, t, e, n) => {
2762
+ for (var r = n > 1 ? void 0 : n ? io(t, e) : t, s = i.length - 1, o; s >= 0; s--)
2773
2763
  (o = i[s]) && (r = o(r) || r);
2774
2764
  return r;
2775
2765
  }, Me = (i, t) => (e, n) => t(e, n, i);
@@ -2830,7 +2820,7 @@ let jt = class extends ee {
2830
2820
  if (c.drawingType === x.DRAWING_CHART)
2831
2821
  return {
2832
2822
  ...c,
2833
- componentKey: this._componetManager.get(Ci)
2823
+ componentKey: this._componetManager.get(Ri)
2834
2824
  };
2835
2825
  if (c.drawingType === x.DRAWING_DOM) {
2836
2826
  const l = this._sheetPrintInterceptorService.getPrintComponent(c.componentKey);
@@ -2840,12 +2830,12 @@ let jt = class extends ee {
2840
2830
  };
2841
2831
  }
2842
2832
  return null;
2843
- }).filter(Boolean), d = ds(no, this._injector);
2844
- return Xi(
2833
+ }).filter(Boolean), d = ls(ro, this._injector);
2834
+ return zi(
2845
2835
  /* @__PURE__ */ L(d, { floatDomInfos: a, scene: t.scene, skeleton: t.skeleton, worksheet: t.worksheet }),
2846
2836
  t.root
2847
2837
  ), i == null || i.add(() => {
2848
- zi(t.root);
2838
+ Ki(t.root);
2849
2839
  }), e(i);
2850
2840
  }
2851
2841
  }
@@ -2854,22 +2844,21 @@ let jt = class extends ee {
2854
2844
  );
2855
2845
  }
2856
2846
  };
2857
- jt = io([
2858
- Me(0, A(di)),
2859
- Me(1, A(Pr)),
2860
- Me(2, oe),
2847
+ jt = so([
2848
+ Me(0, A(li)),
2849
+ Me(1, A(Ar)),
2850
+ Me(2, ae),
2861
2851
  Me(3, Q),
2862
2852
  Me(4, A(lt)),
2863
- Me(5, A(Ur)),
2853
+ Me(5, A(Pr)),
2864
2854
  Me(6, A(qe))
2865
2855
  ], jt);
2866
- var so = Object.getOwnPropertyDescriptor, oo = (i, t, e, n) => {
2867
- for (var r = n > 1 ? void 0 : n ? so(t, e) : t, s = i.length - 1, o; s >= 0; s--)
2856
+ var oo = Object.getOwnPropertyDescriptor, ao = (i, t, e, n) => {
2857
+ for (var r = n > 1 ? void 0 : n ? oo(t, e) : t, s = i.length - 1, o; s >= 0; s--)
2868
2858
  (o = i[s]) && (r = o(r) || r);
2869
2859
  return r;
2870
2860
  }, _e = (i, t) => (e, n) => t(e, n, i);
2871
- const ao = [
2872
- gr.id,
2861
+ const co = [
2873
2862
  mr.id,
2874
2863
  fr.id,
2875
2864
  pr.id,
@@ -2877,9 +2866,9 @@ const ao = [
2877
2866
  _r.id,
2878
2867
  Sr.id,
2879
2868
  vr.id,
2869
+ Ir.id,
2880
2870
  fn.id,
2881
2871
  pn.id,
2882
- Ir.id,
2883
2872
  Cr.id,
2884
2873
  Rr.id,
2885
2874
  Dr.id,
@@ -2887,14 +2876,17 @@ const ao = [
2887
2876
  Mr.id,
2888
2877
  yr.id,
2889
2878
  Er.id,
2890
- Tr.id
2891
- ], co = [
2879
+ Tr.id,
2880
+ Or.id
2881
+ ], lo = [
2892
2882
  Bi.id,
2893
2883
  ji.id,
2894
2884
  Fi.id,
2895
2885
  Li.id,
2896
2886
  Hi.id,
2897
- Vi.id
2887
+ gr.id,
2888
+ Vi.id,
2889
+ Yi.id
2898
2890
  ];
2899
2891
  let Rn = class extends ee {
2900
2892
  constructor(i, t, e, n, r, s, o, a, d) {
@@ -2905,56 +2897,56 @@ let Rn = class extends ee {
2905
2897
  this._sheetInterceptorService.interceptAfterCommand({
2906
2898
  /* eslint-disable-next-line complexity */
2907
2899
  getMutations: (i) => {
2908
- if (!ao.includes(i.id))
2900
+ if (!co.includes(i.id))
2909
2901
  return { redos: [], undos: [] };
2910
2902
  if (i.params == null)
2911
2903
  return { redos: [], undos: [] };
2912
2904
  const t = i.id;
2913
- if (t === gr.id)
2905
+ if (t === mr.id)
2914
2906
  return this._moveRowInterceptor(i.params, "insert");
2915
- if ([yr.id, Er.id, Tr.id].includes(t))
2907
+ if ([Er.id, Tr.id, Or.id].includes(t))
2916
2908
  return this._moveRangeInterceptor(i.params);
2917
- if (t === mr.id)
2918
- return this._moveColInterceptor(i.params, "insert");
2919
2909
  if (t === fr.id)
2920
- return this._moveRowInterceptor(i.params, "remove");
2910
+ return this._moveColInterceptor(i.params, "insert");
2921
2911
  if (t === pr.id)
2912
+ return this._moveRowInterceptor(i.params, "remove");
2913
+ if (t === wr.id)
2922
2914
  return this._moveColInterceptor(i.params, "remove");
2923
- if (t === wr.id) {
2915
+ if (t === _r.id) {
2924
2916
  const { range: e } = i.params;
2925
2917
  return this._getRangeMoveUndo(
2926
2918
  e,
2927
2919
  0
2928
2920
  /* deleteLeft */
2929
2921
  );
2930
- } else if (t === _r.id) {
2922
+ } else if (t === Sr.id) {
2931
2923
  const { range: e } = i.params;
2932
2924
  return this._getRangeMoveUndo(
2933
2925
  e,
2934
2926
  1
2935
2927
  /* deleteUp */
2936
2928
  );
2937
- } else if (t === Sr.id) {
2929
+ } else if (t === vr.id) {
2938
2930
  const { range: e } = i.params;
2939
2931
  return this._getRangeMoveUndo(
2940
2932
  e,
2941
2933
  2
2942
2934
  /* insertDown */
2943
2935
  );
2944
- } else if (t === vr.id) {
2936
+ } else if (t === Ir.id) {
2945
2937
  const { range: e } = i.params;
2946
2938
  return this._getRangeMoveUndo(
2947
2939
  e,
2948
2940
  3
2949
2941
  /* insertRight */
2950
2942
  );
2951
- } else if (t === Rr.id || t === Dr.id) {
2943
+ } else if (t === Dr.id || t === br.id) {
2952
2944
  const e = i.params, { unitId: n, subUnitId: r, ranges: s } = e;
2953
2945
  return this._getDrawingUndoForRowVisible(n, r, s);
2954
- } else if (t === br.id || t === Mr.id) {
2946
+ } else if (t === Mr.id || t === yr.id) {
2955
2947
  const e = i.params, { unitId: n, subUnitId: r, ranges: s } = e;
2956
2948
  return this._getDrawingUndoForColVisible(n, r, s);
2957
- } else if (t === fn.id || t === pn.id || t === Ir.id || t === Cr.id) {
2949
+ } else if (t === fn.id || t === pn.id || t === Cr.id || t === Rr.id) {
2958
2950
  const e = i.params, { unitId: n, subUnitId: r, ranges: s } = e, o = t === fn.id || t === pn.id;
2959
2951
  return this._getDrawingUndoForRowAndColSize(n, r, s, o);
2960
2952
  }
@@ -2964,7 +2956,7 @@ let Rn = class extends ee {
2964
2956
  );
2965
2957
  }
2966
2958
  _getRangeMoveUndo(i, t) {
2967
- const e = ae(this._univerInstanceService);
2959
+ const e = se(this._univerInstanceService);
2968
2960
  if (e == null)
2969
2961
  return { redos: [], undos: [] };
2970
2962
  const n = e.unitId, r = e.subUnitId, s = [], o = [], a = this._sheetDrawingService.getDrawingData(n, r), d = [], u = [];
@@ -3237,7 +3229,7 @@ let Rn = class extends ee {
3237
3229
  if (t === "insert")
3238
3230
  e = i.unitId, n = i.subUnitId;
3239
3231
  else {
3240
- const r = ae(this._univerInstanceService);
3232
+ const r = se(this._univerInstanceService);
3241
3233
  if (r == null)
3242
3234
  return;
3243
3235
  e = r.unitId, n = r.subUnitId;
@@ -3246,7 +3238,7 @@ let Rn = class extends ee {
3246
3238
  }
3247
3239
  _moveRangeInterceptor(i) {
3248
3240
  var I, D;
3249
- const { toRange: t, fromRange: e } = i, n = ae(this._univerInstanceService);
3241
+ const { toRange: t, fromRange: e } = i, n = se(this._univerInstanceService);
3250
3242
  if (!n)
3251
3243
  return { redos: [], undos: [] };
3252
3244
  const { unitId: r, subUnitId: s } = n, o = (D = (I = this._renderManagerService.getRenderById(r)) == null ? void 0 : I.with(X)) == null ? void 0 : D.getCurrentSkeleton();
@@ -3545,7 +3537,7 @@ let Rn = class extends ee {
3545
3537
  // but the skeleton changes like other render modules. These two signals are not equivalent.
3546
3538
  // As a temp solution, I subscribed to activate$ here.
3547
3539
  this._commandService.onCommandExecuted((i) => {
3548
- if (i.id === Yi.id) {
3540
+ if (i.id === Gi.id) {
3549
3541
  const { unitId: t, subUnitId: e } = i.params;
3550
3542
  this._updateDrawings(t, e);
3551
3543
  }
@@ -3596,9 +3588,17 @@ let Rn = class extends ee {
3596
3588
  _sheetRefreshListener() {
3597
3589
  this.disposeWithMe(
3598
3590
  this._commandService.onCommandExecuted((i) => {
3599
- co.includes(i.id) && requestIdleCallback(() => {
3600
- const t = i.params, { unitId: e, subUnitId: n, ranges: r } = t;
3601
- this._refreshDrawingTransform(e, n, r);
3591
+ lo.includes(i.id) && requestIdleCallback(() => {
3592
+ const t = i.params, e = se(this._univerInstanceService, t);
3593
+ if (!e) return;
3594
+ const { unitId: n, subUnitId: r, worksheet: s } = e;
3595
+ let o = [];
3596
+ "range" in t ? o = t.range : "rowsAutoHeightInfo" in t && (o = t.rowsAutoHeightInfo.map((a) => ({
3597
+ startRow: a.row,
3598
+ endRow: a.row,
3599
+ startColumn: 0,
3600
+ endColumn: s.getColumnCount() - 1
3601
+ }))), this._refreshDrawingTransform(n, r, o);
3602
3602
  });
3603
3603
  })
3604
3604
  );
@@ -3612,7 +3612,7 @@ let Rn = class extends ee {
3612
3612
  const { from: c, to: l } = a, { row: g, column: h } = c, { row: m, column: f } = l;
3613
3613
  for (let p = 0; p < e.length; p++) {
3614
3614
  const w = e[p], { startRow: S, endRow: I, startColumn: D, endColumn: v } = w;
3615
- if (Ri.intersects(
3615
+ if (Di.intersects(
3616
3616
  {
3617
3617
  startRow: S,
3618
3618
  endRow: I,
@@ -3641,17 +3641,17 @@ let Rn = class extends ee {
3641
3641
  }), r.length !== 0 && (this._drawingManagerService.refreshTransform(r), this._commandService.syncExecuteCommand(H.id, [i]));
3642
3642
  }
3643
3643
  };
3644
- Rn = oo([
3644
+ Rn = ao([
3645
3645
  _e(1, Q),
3646
3646
  _e(2, Y),
3647
3647
  _e(3, Je),
3648
3648
  _e(4, A(X)),
3649
3649
  _e(5, A(Ht)),
3650
- _e(6, se),
3651
- _e(7, oe),
3650
+ _e(6, oe),
3651
+ _e(7, ae),
3652
3652
  _e(8, de)
3653
3653
  ], Rn);
3654
- function lo() {
3654
+ function uo() {
3655
3655
  const i = Ie(Te), t = Ie(bn), e = Ie(yn), [n, r] = Ee([ye.CELL_ADDRESS]), [s, o] = Ee(!1), [a, d] = Ee(null), u = Fe(() => e.getCellImagesInSelection(), [e]), c = Fe(() => e.getDataColumns(), [e]), l = Fe(() => e.getSelectionRowRange(), [e]), g = c.length > 0, h = Fe(() => c.map((C) => ({
3656
3656
  label: C.label,
3657
3657
  value: String(C.index)
@@ -3668,7 +3668,7 @@ function lo() {
3668
3668
  endColumn: _
3669
3669
  }];
3670
3670
  }, [n, m, l]);
3671
- li(p);
3671
+ ui(p);
3672
3672
  const w = Et((C) => {
3673
3673
  C.length !== 0 && r(C);
3674
3674
  }, []), S = Et((C) => {
@@ -3692,12 +3692,12 @@ function lo() {
3692
3692
  }, [e, u, n, m, t, i]), v = n.includes(ye.COLUMN_VALUE);
3693
3693
  return /* @__PURE__ */ Xe("div", { className: "univer-flex univer-flex-col", children: [
3694
3694
  /* @__PURE__ */ L(en, { label: i.t("sheetImage.save.imageCount"), children: /* @__PURE__ */ L("div", { className: "univer-text-sm univer-text-gray-600", children: u.length }) }),
3695
- /* @__PURE__ */ L(en, { label: i.t("sheetImage.save.fileNameConfig"), children: /* @__PURE__ */ Xe(Ki, { value: n, onChange: w, direction: "vertical", children: [
3695
+ /* @__PURE__ */ L(en, { label: i.t("sheetImage.save.fileNameConfig"), children: /* @__PURE__ */ Xe(Ji, { value: n, onChange: w, direction: "vertical", children: [
3696
3696
  /* @__PURE__ */ L(Yn, { value: ye.CELL_ADDRESS, disabled: !g, children: i.t("sheetImage.save.useRowCol") }),
3697
3697
  g && /* @__PURE__ */ L(Yn, { value: ye.COLUMN_VALUE, children: i.t("sheetImage.save.useColumnValue") })
3698
3698
  ] }) }),
3699
3699
  v && /* @__PURE__ */ L(en, { label: i.t("sheetImage.save.selectColumn"), children: /* @__PURE__ */ L(
3700
- Ji,
3700
+ Zi,
3701
3701
  {
3702
3702
  value: m,
3703
3703
  options: h,
@@ -3725,9 +3725,9 @@ function lo() {
3725
3725
  )
3726
3726
  ] });
3727
3727
  }
3728
- const uo = (i) => {
3728
+ const ho = (i) => {
3729
3729
  var S;
3730
- const t = Ie(Y), e = Ie(Te), n = Ie(oe), r = Ie(Q), { drawings: s } = i, o = s[0];
3730
+ const t = Ie(Y), e = Ie(Te), n = Ie(ae), r = Ie(Q), { drawings: s } = i, o = s[0];
3731
3731
  if (o == null)
3732
3732
  return;
3733
3733
  const { unitId: a } = o, d = r.getRenderById(a), u = d == null ? void 0 : d.scene;
@@ -3751,7 +3751,7 @@ const uo = (i) => {
3751
3751
  });
3752
3752
  }), v;
3753
3753
  }
3754
- Ar(() => {
3754
+ Nr(() => {
3755
3755
  const I = c.clearControl$.subscribe((v) => {
3756
3756
  v === !0 && g(!1);
3757
3757
  }), D = c.changeStart$.subscribe((v) => {
@@ -3788,7 +3788,7 @@ const uo = (i) => {
3788
3788
  return /* @__PURE__ */ Xe(
3789
3789
  "div",
3790
3790
  {
3791
- className: Zi("univer-grid univer-gap-2 univer-py-2 univer-text-gray-400", {
3791
+ className: qi("univer-grid univer-gap-2 univer-py-2 univer-text-gray-400", {
3792
3792
  "univer-hidden": !l
3793
3793
  }),
3794
3794
  children: [
@@ -3799,7 +3799,7 @@ const uo = (i) => {
3799
3799
  children: /* @__PURE__ */ L("div", { children: e.t("drawing-anchor.title") })
3800
3800
  }
3801
3801
  ),
3802
- /* @__PURE__ */ L("div", { children: /* @__PURE__ */ Xe(qi, { value: m, onChange: w, direction: "vertical", children: [
3802
+ /* @__PURE__ */ L("div", { children: /* @__PURE__ */ Xe(Qi, { value: m, onChange: w, direction: "vertical", children: [
3803
3803
  /* @__PURE__ */ L(tn, { value: O.Both, children: e.t("drawing-anchor.both") }),
3804
3804
  /* @__PURE__ */ L(tn, { value: O.Position, children: e.t("drawing-anchor.position") }),
3805
3805
  /* @__PURE__ */ L(tn, { value: O.None, children: e.t("drawing-anchor.none") })
@@ -3807,9 +3807,9 @@ const uo = (i) => {
3807
3807
  ]
3808
3808
  }
3809
3809
  );
3810
- }, ho = () => {
3811
- const i = Ie(oe), t = i.getFocusDrawings(), [e, n] = Ee(t);
3812
- return Ar(() => {
3810
+ }, go = () => {
3811
+ const i = Ie(ae), t = i.getFocusDrawings(), [e, n] = Ee(t);
3812
+ return Nr(() => {
3813
3813
  const r = i.focus$.subscribe((s) => {
3814
3814
  n(s);
3815
3815
  });
@@ -3817,21 +3817,21 @@ const uo = (i) => {
3817
3817
  r.unsubscribe();
3818
3818
  };
3819
3819
  }, []), !!(e != null && e.length) && /* @__PURE__ */ Xe("div", { className: "univer-text-sm", children: [
3820
- /* @__PURE__ */ L(Ss, { drawings: e }),
3821
- /* @__PURE__ */ L(uo, { drawings: e })
3820
+ /* @__PURE__ */ L(vs, { drawings: e }),
3821
+ /* @__PURE__ */ L(ho, { drawings: e })
3822
3822
  ] });
3823
- }, Vr = "sheet.menu.image";
3824
- function go(i) {
3823
+ }, Yr = "sheet.menu.image";
3824
+ function mo(i) {
3825
3825
  return {
3826
- id: Vr,
3826
+ id: Yr,
3827
3827
  type: Gt.SUBITEMS,
3828
3828
  icon: "AddImageIcon",
3829
3829
  tooltip: "sheetImage.title",
3830
3830
  hidden$: Yt(i, k.UNIVER_SHEET),
3831
- disabled$: ui(i, { workbookTypes: [gn], worksheetTypes: [mn], rangeTypes: [Gi] })
3831
+ disabled$: hi(i, { workbookTypes: [gn], worksheetTypes: [mn], rangeTypes: [Xi] })
3832
3832
  };
3833
3833
  }
3834
- function mo(i) {
3834
+ function fo(i) {
3835
3835
  return {
3836
3836
  id: Kt.id,
3837
3837
  title: "sheetImage.upload.float",
@@ -3839,7 +3839,7 @@ function mo(i) {
3839
3839
  hidden$: Yt(i, k.UNIVER_SHEET)
3840
3840
  };
3841
3841
  }
3842
- function fo(i) {
3842
+ function po(i) {
3843
3843
  return {
3844
3844
  id: Mn.id,
3845
3845
  title: "sheetImage.upload.cell",
@@ -3847,23 +3847,23 @@ function fo(i) {
3847
3847
  hidden$: Yt(i, k.UNIVER_SHEET)
3848
3848
  };
3849
3849
  }
3850
- function po(i) {
3850
+ function wo(i) {
3851
3851
  var t, e, n, r;
3852
3852
  return !!((e = (t = i == null ? void 0 : i.p) == null ? void 0 : t.drawingsOrder) != null && e.length && ((r = (n = i == null ? void 0 : i.p) == null ? void 0 : n.drawingsOrder) == null ? void 0 : r.length) > 0);
3853
3853
  }
3854
- function wo(i, t) {
3854
+ function _o(i, t) {
3855
3855
  const e = i.getActiveSheet();
3856
3856
  if (!e) return !1;
3857
3857
  const n = e.getCellMatrix(), { startRow: r, endRow: s, startColumn: o, endColumn: a } = t;
3858
3858
  for (let d = r; d <= s; d++)
3859
3859
  for (let u = o; u <= a; u++) {
3860
3860
  const c = n.getValue(d, u);
3861
- if (po(c))
3861
+ if (wo(c))
3862
3862
  return !0;
3863
3863
  }
3864
3864
  return !1;
3865
3865
  }
3866
- function _o() {
3866
+ function So() {
3867
3867
  return "showDirectoryPicker" in window;
3868
3868
  }
3869
3869
  function dn(i) {
@@ -3872,13 +3872,13 @@ function dn(i) {
3872
3872
  t.getCurrentTypeOfUnit$(k.UNIVER_SHEET).pipe(
3873
3873
  fe((r) => r ? e.selectionMoveEnd$.pipe(
3874
3874
  pe(() => {
3875
- if (!_o())
3875
+ if (!So())
3876
3876
  return !0;
3877
3877
  const s = e.getCurrentSelections();
3878
3878
  if (!s || s.length === 0)
3879
3879
  return !0;
3880
3880
  for (const o of s)
3881
- if (wo(r, o.range))
3881
+ if (_o(r, o.range))
3882
3882
  return !1;
3883
3883
  return !0;
3884
3884
  })
@@ -3895,18 +3895,18 @@ function dn(i) {
3895
3895
  hidden$: n
3896
3896
  };
3897
3897
  }
3898
- const So = {
3899
- [ls.MEDIA]: {
3900
- [Vr]: {
3898
+ const vo = {
3899
+ [us.MEDIA]: {
3900
+ [Yr]: {
3901
3901
  order: 0,
3902
- menuItemFactory: go,
3902
+ menuItemFactory: mo,
3903
3903
  [Kt.id]: {
3904
3904
  order: 0,
3905
- menuItemFactory: mo
3905
+ menuItemFactory: fo
3906
3906
  },
3907
3907
  [Mn.id]: {
3908
3908
  order: 1,
3909
- menuItemFactory: fo
3909
+ menuItemFactory: po
3910
3910
  }
3911
3911
  }
3912
3912
  },
@@ -3936,9 +3936,9 @@ const So = {
3936
3936
  }
3937
3937
  };
3938
3938
  function mt(i) {
3939
- return !i.getContextValue(Di) && !i.getContextValue(bi) && !i.getContextValue(Mi) && i.getContextValue(Ge);
3939
+ return !i.getContextValue(bi) && !i.getContextValue(Mi) && !i.getContextValue(yi) && i.getContextValue(Ge);
3940
3940
  }
3941
- const vo = {
3941
+ const Io = {
3942
3942
  id: gt.id,
3943
3943
  description: "shortcut.drawing-move-down",
3944
3944
  group: "4_drawing-view",
@@ -3948,7 +3948,7 @@ const vo = {
3948
3948
  staticParameters: {
3949
3949
  direction: ve.DOWN
3950
3950
  }
3951
- }, Io = {
3951
+ }, Co = {
3952
3952
  id: gt.id,
3953
3953
  description: "shortcut.drawing-move-up",
3954
3954
  group: "4_drawing-view",
@@ -3958,7 +3958,7 @@ const vo = {
3958
3958
  staticParameters: {
3959
3959
  direction: ve.UP
3960
3960
  }
3961
- }, Co = {
3961
+ }, Ro = {
3962
3962
  id: gt.id,
3963
3963
  description: "shortcut.drawing-move-left",
3964
3964
  group: "4_drawing-view",
@@ -3968,7 +3968,7 @@ const vo = {
3968
3968
  staticParameters: {
3969
3969
  direction: ve.LEFT
3970
3970
  }
3971
- }, Ro = {
3971
+ }, Do = {
3972
3972
  id: gt.id,
3973
3973
  description: "shortcut.drawing-move-right",
3974
3974
  group: "4_drawing-view",
@@ -3978,8 +3978,8 @@ const vo = {
3978
3978
  staticParameters: {
3979
3979
  direction: ve.RIGHT
3980
3980
  }
3981
- }, Do = {
3982
- id: Nr.id,
3981
+ }, bo = {
3982
+ id: kr.id,
3983
3983
  description: "shortcut.drawing-delete",
3984
3984
  group: "4_drawing-view",
3985
3985
  // when focusing on any other input tag do not trigger this shortcut
@@ -3987,8 +3987,8 @@ const vo = {
3987
3987
  binding: Ke.DELETE,
3988
3988
  mac: Ke.BACKSPACE
3989
3989
  };
3990
- var bo = Object.getOwnPropertyDescriptor, Mo = (i, t, e, n) => {
3991
- for (var r = n > 1 ? void 0 : n ? bo(t, e) : t, s = i.length - 1, o; s >= 0; s--)
3990
+ var Mo = Object.getOwnPropertyDescriptor, yo = (i, t, e, n) => {
3991
+ for (var r = n > 1 ? void 0 : n ? Mo(t, e) : t, s = i.length - 1, o; s >= 0; s--)
3992
3992
  (o = i[s]) && (r = o(r) || r);
3993
3993
  return r;
3994
3994
  }, Be = (i, t) => (e, n) => t(e, n, i);
@@ -3998,10 +3998,10 @@ let Ft = class extends ee {
3998
3998
  }
3999
3999
  _initCustomComponents() {
4000
4000
  const i = this._componentManager;
4001
- this.disposeWithMe(i.register(Wr, ho)), this.disposeWithMe(i.register(ze, lo));
4001
+ this.disposeWithMe(i.register(Br, go)), this.disposeWithMe(i.register(ze, uo));
4002
4002
  }
4003
4003
  _initMenus() {
4004
- this._menuManagerService.mergeMenu(So);
4004
+ this._menuManagerService.mergeMenu(vo);
4005
4005
  }
4006
4006
  _initCommands() {
4007
4007
  [
@@ -4010,25 +4010,25 @@ let Ft = class extends ee {
4010
4010
  Xt,
4011
4011
  ht,
4012
4012
  zt,
4013
- Br,
4014
- H,
4015
4013
  jr,
4014
+ H,
4015
+ Fr,
4016
+ $r,
4017
+ Wr,
4018
+ gt,
4016
4019
  kr,
4017
4020
  xr,
4018
- gt,
4019
- Nr,
4020
- $r,
4021
4021
  ct
4022
4022
  ].forEach((i) => this.disposeWithMe(this._commandService.registerCommand(i)));
4023
4023
  }
4024
4024
  _initShortcuts() {
4025
4025
  [
4026
4026
  // sheet drawing shortcuts
4027
- vo,
4028
4027
  Io,
4029
4028
  Co,
4030
4029
  Ro,
4031
- Do
4030
+ Do,
4031
+ bo
4032
4032
  ].forEach((i) => {
4033
4033
  this.disposeWithMe(this._shortcutService.registerShortcut(i));
4034
4034
  });
@@ -4037,32 +4037,32 @@ let Ft = class extends ee {
4037
4037
  this._initCommands(), this._initCustomComponents(), this._initMenus(), this._initShortcuts();
4038
4038
  }
4039
4039
  };
4040
- Ft = Mo([
4041
- Be(0, A(Ur)),
4042
- Be(1, us),
4040
+ Ft = yo([
4041
+ Be(0, A(Pr)),
4042
+ Be(1, hs),
4043
4043
  Be(2, Y),
4044
- Be(3, hs),
4045
- Be(4, oe),
4044
+ Be(3, gs),
4045
+ Be(4, ae),
4046
4046
  Be(5, A(ut))
4047
4047
  ], Ft);
4048
- var yo = Object.defineProperty, Eo = Object.getOwnPropertyDescriptor, To = (i, t, e) => t in i ? yo(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e, Oo = (i, t, e, n) => {
4049
- for (var r = n > 1 ? void 0 : n ? Eo(t, e) : t, s = i.length - 1, o; s >= 0; s--)
4048
+ var Eo = Object.defineProperty, To = Object.getOwnPropertyDescriptor, Oo = (i, t, e) => t in i ? Eo(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e, Uo = (i, t, e, n) => {
4049
+ for (var r = n > 1 ? void 0 : n ? To(t, e) : t, s = i.length - 1, o; s >= 0; s--)
4050
4050
  (o = i[s]) && (r = o(r) || r);
4051
4051
  return r;
4052
- }, ln = (i, t) => (e, n) => t(e, n, i), Yr = (i, t, e) => To(i, typeof t != "symbol" ? t + "" : t, e);
4053
- const Uo = "SHEET_IMAGE_UI_PLUGIN";
4054
- let Lt = class extends Ti {
4052
+ }, ln = (i, t) => (e, n) => t(e, n, i), Gr = (i, t, e) => Oo(i, typeof t != "symbol" ? t + "" : t, e);
4053
+ const Po = "SHEET_IMAGE_UI_PLUGIN";
4054
+ let Lt = class extends Oi {
4055
4055
  constructor(i = sr, t, e, n) {
4056
4056
  super(), this._config = i, this._injector = t, this._renderManagerService = e, this._configService = n;
4057
- const { menu: r, ...s } = Oi(
4057
+ const { menu: r, ...s } = Ui(
4058
4058
  {},
4059
4059
  sr,
4060
4060
  this._config
4061
4061
  );
4062
- r && this._configService.setConfig("menu", r, { merge: !0 }), this._configService.setConfig(Ps, s);
4062
+ r && this._configService.setConfig("menu", r, { merge: !0 }), this._configService.setConfig(As, s);
4063
4063
  }
4064
4064
  onStarting() {
4065
- Ui(this._injector, [
4065
+ Pi(this._injector, [
4066
4066
  [lt],
4067
4067
  [Ft],
4068
4068
  [Nt],
@@ -4106,35 +4106,36 @@ let Lt = class extends Ti {
4106
4106
  });
4107
4107
  }
4108
4108
  };
4109
- Yr(Lt, "type", k.UNIVER_SHEET);
4110
- Yr(Lt, "pluginName", Uo);
4111
- Lt = Oo([
4112
- yi(rs, ms, vs, Pi),
4109
+ Gr(Lt, "type", k.UNIVER_SHEET);
4110
+ Gr(Lt, "pluginName", Po);
4111
+ Lt = Uo([
4112
+ Ei(is, fs, Is, Ai),
4113
4113
  ln(1, A(qe)),
4114
4114
  ln(2, Q),
4115
- ln(3, Ei)
4115
+ ln(3, Ti)
4116
4116
  ], Lt);
4117
4117
  export {
4118
4118
  vn as BatchSaveImagesService,
4119
4119
  H as ClearSheetDrawingTransformerOperation,
4120
- Nr as DeleteDrawingsCommand,
4121
- jr as EditSheetDrawingOperation,
4120
+ kr as DeleteDrawingsCommand,
4121
+ Fr as EditSheetDrawingOperation,
4122
4122
  ye as FileNamePart,
4123
- kr as GroupSheetDrawingCommand,
4123
+ $r as GroupSheetDrawingCommand,
4124
4124
  yn as IBatchSaveImagesService,
4125
4125
  Kt as InsertFloatImageCommand,
4126
4126
  Xt as InsertSheetDrawingCommand,
4127
4127
  gt as MoveDrawingsCommand,
4128
4128
  ht as RemoveSheetDrawingCommand,
4129
- Vr as SHEETS_IMAGE_MENU_ID,
4130
- to as SHEET_FLOAT_DOM_PREFIX,
4129
+ Yr as SHEETS_IMAGE_MENU_ID,
4130
+ no as SHEET_FLOAT_DOM_PREFIX,
4131
4131
  ct as SaveCellImagesCommand,
4132
- $r as SetDrawingArrangeCommand,
4132
+ xr as SetDrawingArrangeCommand,
4133
4133
  zt as SetSheetDrawingCommand,
4134
4134
  lt as SheetCanvasFloatDomManagerService,
4135
+ ho as SheetDrawingAnchor,
4135
4136
  dt as SheetDrawingUpdateController,
4136
- Br as SidebarSheetDrawingOperation,
4137
- xr as UngroupSheetDrawingCommand,
4137
+ jr as SidebarSheetDrawingOperation,
4138
+ Wr as UngroupSheetDrawingCommand,
4138
4139
  Lt as UniverSheetsDrawingUIPlugin,
4139
4140
  me as calcSheetFloatDomPosition,
4140
4141
  J as drawingPositionToTransform,