@univerjs/sheets-drawing-ui 0.12.2-nightly.202511290905 → 0.12.3-experimental.20251204-1549a8e

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,21 +1,21 @@
1
1
  var yr = Object.defineProperty;
2
2
  var Tr = (i, t, e) => t in i ? yr(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
- var ee = (i, t, e) => Tr(i, typeof t != "symbol" ? t + "" : t, e);
4
- import { precisionTo as pt, IRenderManagerService as J, transformObjectOutOfGroup as Er, getGroupState as Or, getCurrentTypeOfRenderer as sn, CURSOR_TYPE as Ur, RENDER_CLASS_TYPE as Oe, Rect as Ue, ObjectType as mn, DRAWING_OBJECT_LAYER_INDEX as Ft, SHEET_VIEWPORT_KEY as xn } from "@univerjs/engine-render";
5
- import { convertPositionSheetOverGridToAbsolute as Pr, SheetSkeletonManagerService as V, ISheetSelectionRenderService as xe, attachRangeWithCoord as Yn, SheetCanvasPopManagerService as Ar, HoverManagerService as Nr, IEditorBridgeService as kr, IAutoFillService as Wr, EditingRenderController as Br, SetCellEditVisibleOperation as pn, PREDEFINED_HOOK_NAME as We, COPY_TYPE as ve, discreteRangeToRange as wn, virtualizeDiscreteRanges as jr, ISheetClipboardService as $r, SetZoomRatioOperation as _n, SetScrollOperation as Fr, SheetPrintInterceptorService as xr, getCurrentRangeDisable$ as Yr } from "@univerjs/sheets-ui";
6
- import { CommandType as Z, ICommandService as X, IUndoRedoService as Ye, sequenceExecute as Gn, DrawingTypeEnum as B, ArrangeTypeEnum as wt, Inject as A, IContextService as Xn, LocaleService as nt, Injector as Ge, Disposable as ne, createDocumentModelWithStyle as Vt, ObjectRelativeFromV as Sn, ObjectRelativeFromH as vn, WrapTextType as In, PositionedObjectLayoutType as Cn, BooleanNumber as Dn, BuildTextUtils as Ht, ImageSourceType as Rn, generateRandomId as Qe, FOCUSING_COMMON_DRAWINGS as $e, IUniverInstanceService as Se, UniverInstanceType as F, Direction as _e, IImageIoService as Gr, RxDisposable as Xr, DOCS_NORMAL_EDITOR_UNIT_ID_KEY as Ze, DOCS_ZEN_EDITOR_UNIT_ID_KEY as Be, InterceptorEffectEnum as Lr, ObjectMatrix as Vr, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as Hr, IPermissionService as zr, UserManagerService as Kr, LifecycleService as Jr, LifecycleStages as Zr, DisposableCollection as _t, fromEventSubject as qr, Tools as je, PRINT_CHART_COMPONENT_KEY as Qr, Rectangle as ei, FOCUSING_FX_BAR_EDITOR as ti, EDITOR_ACTIVATED as ni, FOCUSING_PANEL_EDITOR as ri, DependentOn as ii, IConfigService as si, Plugin as oi, merge as ai, registerDependencies as ci, touchDependencies as xt } from "@univerjs/core";
7
- import { ISheetDrawingService as re, DrawingApplyType as U, SetDrawingApplyMutation as P, SheetDrawingAnchorType as O, UniverSheetsDrawingPlugin as di } from "@univerjs/sheets-drawing";
8
- import { SheetInterceptorService as At, SheetsSelectionsService as on, SetRangeValuesCommand as bn, getSheetCommandTarget as se, INTERCEPTOR_POINT as li, InterceptCellContentPriority as ui, WorkbookViewPermission as Mn, WorksheetViewPermission as yn, WorkbookEditablePermission as zt, WorksheetEditPermission as Kt, SetFrozenMutation as hi, SetWorksheetRowAutoHeightMutation as gi, COMMAND_LISTENER_SKELETON_CHANGE as fi, InsertRowCommand as Ln, InsertColCommand as Vn, RemoveRowCommand as Hn, RemoveColCommand as zn, DeleteRangeMoveLeftCommand as Kn, DeleteRangeMoveUpCommand as Jn, InsertRangeMoveDownCommand as Zn, InsertRangeMoveRightCommand as qn, DeltaRowHeightCommand as Jt, SetRowHeightCommand as Zt, DeltaColumnWidthCommand as Qn, SetColWidthCommand as er, SetRowHiddenCommand as tr, SetSpecificRowsVisibleCommand as nr, SetSpecificColsVisibleCommand as rr, SetColHiddenCommand as ir, MoveColsCommand as sr, MoveRowsCommand as or, MoveRangeCommand as ar, SetRowVisibleMutation as mi, SetRowHiddenMutation as pi, SetColVisibleMutation as wi, SetColHiddenMutation as _i, SetWorksheetRowHeightMutation as Si, SetWorksheetColWidthMutation as vi, SetWorksheetActiveOperation as Ii, RangeProtectionPermissionEditPoint as Ci } from "@univerjs/sheets";
9
- import { MessageType as pe, render as Di, unmount as Ri, clsx as bi, RadioGroup as Mi, Radio as Yt } from "@univerjs/design";
10
- import { docDrawingPositionToTransform as Tn, ReplaceSnapshotCommand as yi, InnerPasteCommand as Ti } from "@univerjs/docs-ui";
11
- import { IImageIoService as Ei, IDrawingManagerService as ie, DRAWING_IMAGE_ALLOW_IMAGE_LIST as En, DRAWING_IMAGE_COUNT_LIMIT as On, ImageUploadStatusType as Pe, DRAWING_IMAGE_ALLOW_SIZE as Un, getImageSize as Gt, SetDrawingSelectedOperation as Nt, DRAWING_IMAGE_WIDTH_LIMIT as Pn, DRAWING_IMAGE_HEIGHT_LIMIT as An, ImageSourceType as Oi, getDrawingShapeKeyByDrawingSearch as Ie, UniverDrawingPlugin as Ui } from "@univerjs/drawing";
12
- import { ILocalFileService as Pi, IMessageService as cr, ISidebarService as Ai, IDialogService as Ni, IClipboardInterfaceService as ki, CanvasFloatDomService as Wi, PrintFloatDomSingle as Bi, ComponentManager as dr, connectInjector as ji, useDependency as qe, getMenuHiddenObservable as an, MenuItemType as cn, RibbonInsertGroup as $i, KeyCode as Fe, IMenuManagerService as Fi, IShortcutService as xi } from "@univerjs/ui";
13
- import { DocDrawingController as Yi, UniverDocsDrawingPlugin as Gi } from "@univerjs/docs-drawing";
14
- import { ImageCropperObject as Xi, COMPONENT_IMAGE_POPUP_MENU as Li, OpenImageCropOperation as Vi, ImageResetSizeOperation as Hi, DrawingRenderService as lr, DrawingCommonPanel as zi, UniverDrawingUIPlugin as Ki } from "@univerjs/drawing-ui";
15
- import { takeUntil as Nn, throttleTime as Ji, combineLatest as St, switchMap as we, EMPTY as fe, tap as kn, map as Re, distinctUntilChanged as Wn, Subject as Xt, filter as Zi, take as qi, BehaviorSubject as ke, of as Bn } from "rxjs";
16
- import { jsx as oe, jsxs as qt } from "react/jsx-runtime";
17
- import { useMemo as Qi, useState as Qt, useEffect as ur } from "react";
18
- function z(i, t, e) {
3
+ var te = (i, t, e) => Tr(i, typeof t != "symbol" ? t + "" : t, e);
4
+ import { precisionTo as pt, IRenderManagerService as Z, transformObjectOutOfGroup as Er, getGroupState as Or, getCurrentTypeOfRenderer as sn, CURSOR_TYPE as Ur, RENDER_CLASS_TYPE as Oe, Rect as Ue, ObjectType as mn, DRAWING_OBJECT_LAYER_INDEX as Ft, SHEET_VIEWPORT_KEY as xn } from "@univerjs/engine-render";
5
+ import { convertPositionSheetOverGridToAbsolute as Pr, SheetSkeletonManagerService as V, ISheetSelectionRenderService as Ye, attachRangeWithCoord as Yn, SheetCanvasPopManagerService as Ar, HoverManagerService as Nr, IEditorBridgeService as kr, IAutoFillService as Wr, EditingRenderController as Br, SetCellEditVisibleOperation as pn, PREDEFINED_HOOK_NAME as We, COPY_TYPE as ve, discreteRangeToRange as wn, virtualizeDiscreteRanges as jr, ISheetClipboardService as $r, SetZoomRatioOperation as _n, SetScrollOperation as Fr, SheetPrintInterceptorService as xr, getCurrentRangeDisable$ as Yr } from "@univerjs/sheets-ui";
6
+ import { CommandType as q, ICommandService as X, IUndoRedoService as Ge, sequenceExecute as Gn, DrawingTypeEnum as W, ArrangeTypeEnum as wt, Inject as A, IContextService as Xn, LocaleService as nt, Injector as Xe, Disposable as re, createDocumentModelWithStyle as Vt, ObjectRelativeFromV as Sn, ObjectRelativeFromH as vn, WrapTextType as In, PositionedObjectLayoutType as Cn, BooleanNumber as Dn, BuildTextUtils as Ht, ImageSourceType as Rn, generateRandomId as Be, FOCUSING_COMMON_DRAWINGS as Fe, IUniverInstanceService as Se, UniverInstanceType as F, Direction as _e, IImageIoService as Gr, RxDisposable as Xr, DOCS_NORMAL_EDITOR_UNIT_ID_KEY as qe, DOCS_ZEN_EDITOR_UNIT_ID_KEY as je, InterceptorEffectEnum as Lr, ObjectMatrix as Vr, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as Hr, IPermissionService as zr, UserManagerService as Kr, LifecycleService as Jr, LifecycleStages as Zr, DisposableCollection as _t, fromEventSubject as qr, Tools as $e, PRINT_CHART_COMPONENT_KEY as Qr, Rectangle as ei, FOCUSING_FX_BAR_EDITOR as ti, EDITOR_ACTIVATED as ni, FOCUSING_PANEL_EDITOR as ri, DependentOn as ii, IConfigService as si, Plugin as oi, merge as ai, registerDependencies as ci, touchDependencies as xt } from "@univerjs/core";
7
+ import { ISheetDrawingService as ie, DrawingApplyType as U, SetDrawingApplyMutation as P, SheetDrawingAnchorType as O, UniverSheetsDrawingPlugin as di } from "@univerjs/sheets-drawing";
8
+ import { SheetInterceptorService as At, SheetsSelectionsService as on, SetRangeValuesCommand as bn, getSheetCommandTarget as oe, INTERCEPTOR_POINT as li, InterceptCellContentPriority as ui, WorkbookViewPermission as Mn, WorksheetViewPermission as yn, WorkbookEditablePermission as zt, WorksheetEditPermission as Kt, SetFrozenMutation as hi, SetSelectionsOperation as gi, SetWorksheetRowAutoHeightMutation as fi, COMMAND_LISTENER_SKELETON_CHANGE as mi, InsertRowCommand as Ln, InsertColCommand as Vn, RemoveRowCommand as Hn, RemoveColCommand as zn, DeleteRangeMoveLeftCommand as Kn, DeleteRangeMoveUpCommand as Jn, InsertRangeMoveDownCommand as Zn, InsertRangeMoveRightCommand as qn, DeltaRowHeightCommand as Jt, SetRowHeightCommand as Zt, DeltaColumnWidthCommand as Qn, SetColWidthCommand as er, SetRowHiddenCommand as tr, SetSpecificRowsVisibleCommand as nr, SetSpecificColsVisibleCommand as rr, SetColHiddenCommand as ir, MoveColsCommand as sr, MoveRowsCommand as or, MoveRangeCommand as ar, SetRowVisibleMutation as pi, SetRowHiddenMutation as wi, SetColVisibleMutation as _i, SetColHiddenMutation as Si, SetWorksheetRowHeightMutation as vi, SetWorksheetColWidthMutation as Ii, SetWorksheetActiveOperation as Ci, RangeProtectionPermissionEditPoint as Di } from "@univerjs/sheets";
9
+ import { MessageType as pe, render as Ri, unmount as bi, clsx as Mi, RadioGroup as yi, Radio as Yt } from "@univerjs/design";
10
+ import { docDrawingPositionToTransform as Tn, ReplaceSnapshotCommand as Ti, InnerPasteCommand as Ei } from "@univerjs/docs-ui";
11
+ import { IImageIoService as Oi, IDrawingManagerService as se, DRAWING_IMAGE_ALLOW_IMAGE_LIST as En, DRAWING_IMAGE_COUNT_LIMIT as On, ImageUploadStatusType as Pe, DRAWING_IMAGE_ALLOW_SIZE as Un, getImageSize as Gt, SetDrawingSelectedOperation as Nt, DRAWING_IMAGE_WIDTH_LIMIT as Pn, DRAWING_IMAGE_HEIGHT_LIMIT as An, ImageSourceType as Ui, getDrawingShapeKeyByDrawingSearch as Ie, UniverDrawingPlugin as Pi } from "@univerjs/drawing";
12
+ import { ILocalFileService as Ai, IMessageService as cr, ISidebarService as Ni, IDialogService as ki, IClipboardInterfaceService as Wi, CanvasFloatDomService as Bi, PrintFloatDomSingle as ji, ComponentManager as dr, connectInjector as $i, useDependency as Qe, getMenuHiddenObservable as an, MenuItemType as cn, RibbonInsertGroup as Fi, KeyCode as xe, IMenuManagerService as xi, IShortcutService as Yi } from "@univerjs/ui";
13
+ import { DocDrawingController as Gi, UniverDocsDrawingPlugin as Xi } from "@univerjs/docs-drawing";
14
+ import { ImageCropperObject as Li, COMPONENT_IMAGE_POPUP_MENU as Vi, OpenImageCropOperation as Hi, ImageResetSizeOperation as zi, DrawingRenderService as lr, DrawingCommonPanel as Ki, UniverDrawingUIPlugin as Ji } from "@univerjs/drawing-ui";
15
+ import { takeUntil as Nn, throttleTime as Zi, combineLatest as St, switchMap as we, EMPTY as fe, tap as kn, map as Re, distinctUntilChanged as Wn, Subject as Xt, filter as qi, take as Qi, BehaviorSubject as ke, of as Bn } from "rxjs";
16
+ import { jsx as ae, jsxs as qt } from "react/jsx-runtime";
17
+ import { useMemo as es, useState as Qt, useEffect as ur } from "react";
18
+ function K(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;
@@ -69,9 +69,9 @@ function $(i, t) {
69
69
  }
70
70
  const Y = {
71
71
  id: "sheet.operation.clear-drawing-transformer",
72
- type: Z.MUTATION,
72
+ type: q.MUTATION,
73
73
  handler: (i, t) => {
74
- const e = i.get(J);
74
+ const e = i.get(Z);
75
75
  return t.forEach((n) => {
76
76
  var r, s;
77
77
  (s = (r = e.getRenderById(n)) == null ? void 0 : r.scene.getTransformer()) == null || s.debounceRefreshControls();
@@ -79,10 +79,10 @@ const Y = {
79
79
  }
80
80
  }, rt = {
81
81
  id: "sheet.command.remove-sheet-image",
82
- type: Z.COMMAND,
82
+ type: q.COMMAND,
83
83
  handler: (i, t) => {
84
84
  var v, I, R;
85
- const e = i.get(X), n = i.get(Ye), r = i.get(At), s = i.get(re);
85
+ const e = i.get(X), n = i.get(Ge), r = i.get(At), s = i.get(ie);
86
86
  if (!t) return !1;
87
87
  const { drawings: o } = t, a = [];
88
88
  o.forEach((S) => {
@@ -108,9 +108,9 @@ const Y = {
108
108
  }
109
109
  }, hr = {
110
110
  id: "sheet.command.delete-drawing",
111
- type: Z.COMMAND,
111
+ type: q.COMMAND,
112
112
  handler: (i) => {
113
- const t = i.get(X), n = i.get(re).getFocusDrawings();
113
+ const t = i.get(X), n = i.get(ie).getFocusDrawings();
114
114
  if (n.length === 0)
115
115
  return !1;
116
116
  const r = n[0].unitId, s = n.map((o) => {
@@ -128,7 +128,7 @@ const Y = {
128
128
  });
129
129
  }
130
130
  };
131
- function es(i) {
131
+ function ts(i) {
132
132
  const t = [];
133
133
  return i.forEach((e) => {
134
134
  const { parent: n, children: r } = e, { unitId: s, subUnitId: o, drawingId: a } = n, d = Or(0, 0, r.map((l) => l.transform || {})), u = r.map((l) => {
@@ -148,7 +148,7 @@ function es(i) {
148
148
  unitId: s,
149
149
  subUnitId: o,
150
150
  drawingId: a,
151
- drawingType: B.DRAWING_GROUP,
151
+ drawingType: W.DRAWING_GROUP,
152
152
  transform: d
153
153
  };
154
154
  t.push({
@@ -157,7 +157,7 @@ function es(i) {
157
157
  });
158
158
  }), t;
159
159
  }
160
- function ts(i) {
160
+ function ns(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;
@@ -176,7 +176,7 @@ function ts(i) {
176
176
  unitId: s,
177
177
  subUnitId: o,
178
178
  drawingId: a,
179
- drawingType: B.DRAWING_GROUP,
179
+ drawingType: W.DRAWING_GROUP,
180
180
  transform: {
181
181
  left: 0,
182
182
  top: 0
@@ -190,9 +190,9 @@ function ts(i) {
190
190
  }
191
191
  const gr = {
192
192
  id: "sheet.command.group-sheet-image",
193
- type: Z.COMMAND,
193
+ type: q.COMMAND,
194
194
  handler: (i, t) => {
195
- const e = i.get(X), n = i.get(Ye), r = i.get(re);
195
+ const e = i.get(X), n = i.get(Ge), r = i.get(ie);
196
196
  if (!t) return !1;
197
197
  const s = [];
198
198
  t.forEach(({ parent: h, children: f }) => {
@@ -204,7 +204,7 @@ const gr = {
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: ts(l), type: U.UNGROUP } },
207
+ { id: P.id, params: { op: u, unitId: a, subUnitId: d, objects: ns(l), type: U.UNGROUP } },
208
208
  { id: Y.id, params: s }
209
209
  ],
210
210
  redoMutations: [
@@ -215,10 +215,10 @@ const gr = {
215
215
  }
216
216
  }, kt = {
217
217
  id: "sheet.command.insert-sheet-image",
218
- type: Z.COMMAND,
218
+ type: q.COMMAND,
219
219
  handler: (i, t) => {
220
220
  var v, I, R;
221
- const e = i.get(X), n = i.get(Ye), r = i.get(re), s = i.get(At);
221
+ const e = i.get(X), n = i.get(Ge), r = i.get(ie), s = i.get(At);
222
222
  if (!t) return !1;
223
223
  const o = t.drawings, a = o.map((S) => S.unitId), d = r.getBatchAddOp(o), { unitId: u, subUnitId: c, undo: l, redo: g, objects: h } = d, f = s.onCommandExecute({ id: kt.id, params: t }), p = { id: P.id, params: { op: g, unitId: u, subUnitId: c, objects: h, type: U.INSERT } }, m = { id: P.id, params: { op: l, unitId: u, subUnitId: c, objects: h, type: U.REMOVE } };
224
224
  return Gn([...(v = f.preRedos) != null ? v : [], p, ...f.redos], e) ? (n.pushUndoRedo({
@@ -239,11 +239,11 @@ const gr = {
239
239
  }
240
240
  }, fr = {
241
241
  id: "sheet.command.set-drawing-arrange",
242
- type: Z.COMMAND,
242
+ type: q.COMMAND,
243
243
  handler: (i, t) => {
244
- const e = i.get(X), n = i.get(Ye);
244
+ const e = i.get(X), n = i.get(Ge);
245
245
  if (!t) return !1;
246
- const r = i.get(re), { unitId: s, subUnitId: o, drawingIds: a, arrangeType: d } = t, u = { unitId: s, subUnitId: o, drawingIds: a };
246
+ const r = i.get(ie), { unitId: s, subUnitId: o, drawingIds: a, arrangeType: d } = t, u = { unitId: s, subUnitId: o, drawingIds: a };
247
247
  let c;
248
248
  if (d === wt.forward ? c = r.getForwardDrawingsOp(u) : d === wt.backward ? c = r.getBackwardDrawingOp(u) : d === wt.front ? c = r.getFrontDrawingsOp(u) : d === wt.back && (c = r.getBackDrawingsOp(u)), c == null)
249
249
  return !1;
@@ -260,9 +260,9 @@ const gr = {
260
260
  }
261
261
  }, Wt = {
262
262
  id: "sheet.command.set-sheet-image",
263
- type: Z.COMMAND,
263
+ type: q.COMMAND,
264
264
  handler: (i, t) => {
265
- const e = i.get(X), n = i.get(Ye), r = i.get(re);
265
+ const e = i.get(X), n = i.get(Ge), r = i.get(ie);
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({
@@ -279,9 +279,9 @@ const gr = {
279
279
  }
280
280
  }, mr = {
281
281
  id: "sheet.command.ungroup-sheet-image",
282
- type: Z.COMMAND,
282
+ type: q.COMMAND,
283
283
  handler: (i, t) => {
284
- const e = i.get(X), n = i.get(Ye), r = i.get(re);
284
+ const e = i.get(X), n = i.get(Ge), r = i.get(ie);
285
285
  if (!t) return !1;
286
286
  const s = [];
287
287
  t.forEach(({ parent: h, children: f }) => {
@@ -293,7 +293,7 @@ const gr = {
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: es(l), type: U.GROUP } },
296
+ { id: P.id, params: { op: u, unitId: a, subUnitId: d, objects: ts(l), type: U.GROUP } },
297
297
  { id: Y.id, params: s }
298
298
  ],
299
299
  redoMutations: [
@@ -303,18 +303,18 @@ const gr = {
303
303
  }), !0) : !1;
304
304
  }
305
305
  };
306
- var ns = Object.getOwnPropertyDescriptor, rs = (i, t, e, n) => {
307
- for (var r = n > 1 ? void 0 : n ? ns(t, e) : t, s = i.length - 1, o; s >= 0; s--)
306
+ var rs = Object.getOwnPropertyDescriptor, is = (i, t, e, n) => {
307
+ for (var r = n > 1 ? void 0 : n ? rs(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
- }, te = (i, t) => (e, n) => t(e, n, i);
311
- function is(i, t, e) {
310
+ }, ne = (i, t) => (e, n) => t(e, n, i);
311
+ function ss(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 en(i, t, e, n, r) {
316
316
  var v;
317
- const { rotatedHeight: s, rotatedWidth: o } = is(e, n, r), d = i.get(J).getRenderById(t.unitId);
317
+ const { rotatedHeight: s, rotatedWidth: o } = ss(e, n, r), d = i.get(Z).getRenderById(t.unitId);
318
318
  if (!d)
319
319
  return !1;
320
320
  const c = (v = d.with(V).getSkeletonParam(t.subUnitId)) == null ? void 0 : v.skeleton;
@@ -326,10 +326,10 @@ function en(i, t, e, n, r) {
326
326
  height: n * _
327
327
  };
328
328
  }
329
- let et = class extends ne {
329
+ let et = class extends re {
330
330
  constructor(t, e, n, r, s, o, a, d, u, c, l, g, h) {
331
331
  super();
332
- ee(this, "_workbookSelections");
332
+ te(this, "_workbookSelections");
333
333
  this._context = t, this._skeletonManagerService = e, this._commandService = n, this._selectionRenderService = r, this._imageIoService = s, this._fileOpenerService = o, this._sheetDrawingService = a, this._drawingManagerService = d, this._contextService = u, this._messageService = c, this._localeService = l, this._injector = h, this._workbookSelections = g.getWorkbookSelections(this._context.unitId), this._updateImageListener(), this._updateOrderListener(), this._groupDrawingListener(), this._focusDrawingListener();
334
334
  }
335
335
  async insertFloatImage() {
@@ -385,10 +385,10 @@ let et = class extends ne {
385
385
  unitId: r,
386
386
  subUnitId: s,
387
387
  drawingId: o,
388
- drawingType: B.DRAWING_IMAGE,
388
+ drawingType: W.DRAWING_IMAGE,
389
389
  imageSourceType: a,
390
390
  source: d,
391
- transform: z(m, this._selectionRenderService, this._skeletonManagerService),
391
+ transform: K(m, this._selectionRenderService, this._skeletonManagerService),
392
392
  sheetTransform: m
393
393
  };
394
394
  return this._commandService.executeCommand(kt.id, {
@@ -456,7 +456,7 @@ let et = class extends ne {
456
456
  unitId: f.getUnitId(),
457
457
  subUnitId: f.getUnitId(),
458
458
  drawingId: r,
459
- drawingType: B.DRAWING_IMAGE,
459
+ drawingType: W.DRAWING_IMAGE,
460
460
  imageSourceType: s,
461
461
  source: o,
462
462
  transform: Tn(m),
@@ -532,8 +532,8 @@ let et = class extends ne {
532
532
  }, c = {
533
533
  unitId: a.getUnitId(),
534
534
  subUnitId: a.getUnitId(),
535
- drawingId: Qe(),
536
- drawingType: B.DRAWING_IMAGE,
535
+ drawingId: Be(),
536
+ drawingType: W.DRAWING_IMAGE,
537
537
  imageSourceType: Rn.URL,
538
538
  source: t,
539
539
  transform: Tn(u),
@@ -641,7 +641,7 @@ let et = class extends ne {
641
641
  return;
642
642
  const l = {
643
643
  ...n,
644
- transform: { ...u.transform, ...d, ...z(c, this._selectionRenderService, this._skeletonManagerService) },
644
+ transform: { ...u.transform, ...d, ...K(c, this._selectionRenderService, this._skeletonManagerService) },
645
645
  sheetTransform: { ...c }
646
646
  };
647
647
  e.push(l);
@@ -663,31 +663,31 @@ let et = class extends ne {
663
663
  _focusDrawingListener() {
664
664
  this.disposeWithMe(
665
665
  this._drawingManagerService.focus$.subscribe((t) => {
666
- t == null || t.length === 0 ? (this._contextService.setContextValue($e, !1), this._sheetDrawingService.focusDrawing([])) : (this._contextService.setContextValue($e, !0), this._sheetDrawingService.focusDrawing(t));
666
+ t == null || t.length === 0 ? (this._contextService.setContextValue(Fe, !1), this._sheetDrawingService.focusDrawing([])) : (this._contextService.setContextValue(Fe, !0), this._sheetDrawingService.focusDrawing(t));
667
667
  })
668
668
  );
669
669
  }
670
670
  };
671
- et = rs([
672
- te(1, A(V)),
673
- te(2, X),
674
- te(3, xe),
675
- te(4, Ei),
676
- te(5, Pi),
677
- te(6, re),
678
- te(7, ie),
679
- te(8, Xn),
680
- te(9, cr),
681
- te(10, A(nt)),
682
- te(11, A(on)),
683
- te(12, A(Ge))
671
+ et = is([
672
+ ne(1, A(V)),
673
+ ne(2, X),
674
+ ne(3, Ye),
675
+ ne(4, Oi),
676
+ ne(5, Ai),
677
+ ne(6, ie),
678
+ ne(7, se),
679
+ ne(8, Xn),
680
+ ne(9, cr),
681
+ ne(10, A(nt)),
682
+ ne(11, A(on)),
683
+ ne(12, A(Xe))
684
684
  ], et);
685
685
  const Bt = {
686
686
  id: "sheet.command.insert-float-image",
687
- type: Z.COMMAND,
687
+ type: q.COMMAND,
688
688
  handler: async (i, t) => {
689
689
  var o, a;
690
- const e = i.get(Se), n = i.get(J), r = (o = sn(
690
+ const e = i.get(Se), n = i.get(Z), r = (o = sn(
691
691
  F.UNIVER_SHEET,
692
692
  e,
693
693
  n
@@ -703,10 +703,10 @@ const Bt = {
703
703
  }
704
704
  }, dn = {
705
705
  id: "sheet.command.insert-cell-image",
706
- type: Z.COMMAND,
706
+ type: q.COMMAND,
707
707
  handler: (i) => {
708
708
  var n, r;
709
- const t = i.get(Se), e = i.get(J);
709
+ const t = i.get(Se), e = i.get(Z);
710
710
  return (r = (n = sn(
711
711
  F.UNIVER_SHEET,
712
712
  t,
@@ -715,9 +715,9 @@ const Bt = {
715
715
  }
716
716
  }, it = {
717
717
  id: "sheet.command.move-drawing",
718
- type: Z.COMMAND,
718
+ type: q.COMMAND,
719
719
  handler: (i, t) => {
720
- const e = i.get(X), n = i.get(re), r = i.get(xe), { direction: s } = t, o = n.getFocusDrawings();
720
+ const e = i.get(X), n = i.get(ie), r = i.get(Ye), { 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) => {
@@ -738,10 +738,10 @@ const Bt = {
738
738
  }
739
739
  }, pr = "COMPONENT_SHEET_DRAWING_PANEL", wr = {
740
740
  id: "sidebar.operation.sheet-image",
741
- type: Z.COMMAND,
741
+ type: q.COMMAND,
742
742
  handler: async (i, t) => {
743
- const e = i.get(Ai), n = i.get(nt), r = i.get(Se), s = i.get(X);
744
- if (!se(r)) return !1;
743
+ const e = i.get(Ni), n = i.get(nt), r = i.get(Se), s = i.get(X);
744
+ if (!oe(r)) return !1;
745
745
  switch (t.value) {
746
746
  case "open":
747
747
  e.open({
@@ -762,21 +762,21 @@ const Bt = {
762
762
  }
763
763
  }, _r = {
764
764
  id: "sheet.operation.edit-sheet-image",
765
- type: Z.OPERATION,
765
+ type: q.OPERATION,
766
766
  handler: (i, t) => {
767
767
  const e = i.get(X);
768
768
  return t == null ? !1 : (e.syncExecuteCommand(Nt.id, [t]), e.executeCommand(wr.id, { value: "open" }), !0);
769
769
  }
770
- }, ss = "sheets-drawing-ui.config", jn = {};
771
- var os = Object.getOwnPropertyDescriptor, as = (i, t, e, n) => {
772
- for (var r = n > 1 ? void 0 : n ? os(t, e) : t, s = i.length - 1, o; s >= 0; s--)
770
+ }, os = "sheets-drawing-ui.config", jn = {};
771
+ var as = Object.getOwnPropertyDescriptor, cs = (i, t, e, n) => {
772
+ for (var r = n > 1 ? void 0 : n ? as(t, e) : t, s = i.length - 1, o; s >= 0; s--)
773
773
  (o = i[s]) && (r = o(r) || r);
774
774
  return r;
775
775
  }, ce = (i, t) => (e, n) => t(e, n, i);
776
776
  let Rt = class extends Xr {
777
777
  constructor(t, e, n, r, s, o, a, d, u, c) {
778
778
  super();
779
- ee(this, "_initImagePopupMenu", /* @__PURE__ */ new Set());
779
+ te(this, "_initImagePopupMenu", /* @__PURE__ */ new Set());
780
780
  this._injector = t, this._localeService = e, this._drawingManagerService = n, this._canvasPopManagerService = r, this._renderManagerService = s, this._univerInstanceService = o, this._messageService = a, this._contextService = d, this._ioService = u, this._commandService = c, this._init();
781
781
  }
782
782
  _init() {
@@ -808,7 +808,7 @@ let Rt = class extends Xr {
808
808
  _hasCropObject(t) {
809
809
  const e = t.getAllObjectsByOrder();
810
810
  for (const n of e)
811
- if (n instanceof Xi)
811
+ if (n instanceof Li)
812
812
  return !0;
813
813
  return !1;
814
814
  }
@@ -823,7 +823,7 @@ let Rt = class extends Xr {
823
823
  let r;
824
824
  this.disposeWithMe(
825
825
  n.createControl$.subscribe(() => {
826
- if (this._contextService.setContextValue($e, !0), this._hasCropObject(e))
826
+ if (this._contextService.setContextValue(Fe, !0), this._hasCropObject(e))
827
827
  return;
828
828
  const o = n.getSelectedObjectMap();
829
829
  if (o.size > 1) {
@@ -842,7 +842,7 @@ let Rt = class extends Xr {
842
842
  r == null || r.dispose();
843
843
  const p = this._canvasPopManagerService.getFeatureMenu(c, l, g, h);
844
844
  r = this.disposeWithMe(this._canvasPopManagerService.attachPopupToObject(a, {
845
- componentKey: Li,
845
+ componentKey: Vi,
846
846
  direction: "horizontal",
847
847
  offset: [2, 0],
848
848
  extraProps: {
@@ -852,11 +852,11 @@ let Rt = class extends Xr {
852
852
  })
853
853
  ), this.disposeWithMe(
854
854
  n.clearControl$.subscribe(() => {
855
- r == null || r.dispose(), this._contextService.setContextValue($e, !1), this._commandService.syncExecuteCommand(Nt.id, []);
855
+ r == null || r.dispose(), this._contextService.setContextValue(Fe, !1), this._commandService.syncExecuteCommand(Nt.id, []);
856
856
  })
857
857
  ), this.disposeWithMe(
858
858
  this._contextService.contextChanged$.subscribe((o) => {
859
- o[$e] === !1 && (r == null || r.dispose());
859
+ o[Fe] === !1 && (r == null || r.dispose());
860
860
  })
861
861
  ), this.disposeWithMe(
862
862
  n.changing$.subscribe(() => {
@@ -871,7 +871,7 @@ let Rt = class extends Xr {
871
871
  index: 0,
872
872
  commandId: _r.id,
873
873
  commandParams: { unitId: t, subUnitId: e, drawingId: n },
874
- disable: r === B.DRAWING_DOM
874
+ disable: r === W.DRAWING_DOM
875
875
  },
876
876
  {
877
877
  label: "image-popup.delete",
@@ -883,45 +883,45 @@ let Rt = class extends Xr {
883
883
  {
884
884
  label: "image-popup.crop",
885
885
  index: 2,
886
- commandId: Vi.id,
886
+ commandId: Hi.id,
887
887
  commandParams: { unitId: t, subUnitId: e, drawingId: n },
888
- disable: r === B.DRAWING_DOM
888
+ disable: r === W.DRAWING_DOM
889
889
  },
890
890
  {
891
891
  label: "image-popup.reset",
892
892
  index: 3,
893
- commandId: Hi.id,
893
+ commandId: zi.id,
894
894
  commandParams: [{ unitId: t, subUnitId: e, drawingId: n }],
895
- disable: r === B.DRAWING_DOM
895
+ disable: r === W.DRAWING_DOM
896
896
  }
897
897
  ];
898
898
  }
899
899
  };
900
- Rt = as([
901
- ce(0, A(Ge)),
900
+ Rt = cs([
901
+ ce(0, A(Xe)),
902
902
  ce(1, A(nt)),
903
- ce(2, ie),
903
+ ce(2, se),
904
904
  ce(3, A(Ar)),
905
- ce(4, J),
905
+ ce(4, Z),
906
906
  ce(5, Se),
907
907
  ce(6, cr),
908
908
  ce(7, Xn),
909
909
  ce(8, Gr),
910
910
  ce(9, X)
911
911
  ], Rt);
912
- var cs = Object.getOwnPropertyDescriptor, ds = (i, t, e, n) => {
913
- for (var r = n > 1 ? void 0 : n ? cs(t, e) : t, s = i.length - 1, o; s >= 0; s--)
912
+ var ds = Object.getOwnPropertyDescriptor, ls = (i, t, e, n) => {
913
+ for (var r = n > 1 ? void 0 : n ? ds(t, e) : t, s = i.length - 1, o; s >= 0; s--)
914
914
  (o = i[s]) && (r = o(r) || r);
915
915
  return r;
916
916
  }, vt = (i, t) => (e, n) => t(e, n, i);
917
- let tn = class extends ne {
917
+ let tn = class extends re {
918
918
  constructor(t, e, n, r, s) {
919
919
  super();
920
- ee(this, "_isSetCursor", !1);
920
+ te(this, "_isSetCursor", !1);
921
921
  this._context = t, this._hoverManagerService = e, this._selectionsService = n, this._drawingRenderService = r, this._sheetSkeletonManagerService = s, this._initHover(), this._initImageClick();
922
922
  }
923
923
  _initHover() {
924
- this.disposeWithMe(this._hoverManagerService.currentRichTextNoDistinct$.pipe(Ji(33)).subscribe((t) => {
924
+ this.disposeWithMe(this._hoverManagerService.currentRichTextNoDistinct$.pipe(Zi(33)).subscribe((t) => {
925
925
  var n, r;
926
926
  let e = [];
927
927
  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(Ur.ZOOM_IN)) : this._isSetCursor && (this._isSetCursor = !1, this._context.scene.resetCursor());
@@ -938,18 +938,18 @@ let tn = class extends ne {
938
938
  }));
939
939
  }
940
940
  };
941
- tn = ds([
941
+ tn = ls([
942
942
  vt(1, A(Nr)),
943
943
  vt(2, A(on)),
944
944
  vt(3, A(lr)),
945
945
  vt(4, A(V))
946
946
  ], tn);
947
- var ls = Object.getOwnPropertyDescriptor, us = (i, t, e, n) => {
948
- for (var r = n > 1 ? void 0 : n ? ls(t, e) : t, s = i.length - 1, o; s >= 0; s--)
947
+ var us = Object.getOwnPropertyDescriptor, hs = (i, t, e, n) => {
948
+ for (var r = n > 1 ? void 0 : n ? us(t, e) : t, s = i.length - 1, o; s >= 0; s--)
949
949
  (o = i[s]) && (r = o(r) || r);
950
950
  return r;
951
951
  }, It = (i, t) => (e, n) => t(e, n, i);
952
- let nn = class extends ne {
952
+ let nn = class extends re {
953
953
  constructor(i, t, e, n, r) {
954
954
  super(), this._context = i, this._sheetDrawingService = t, this._drawingManagerService = e, this._sheetSelectionRenderService = n, this._sheetSkeletonManagerService = r, this._init();
955
955
  }
@@ -963,20 +963,20 @@ let nn = class extends ne {
963
963
  const e = i[t];
964
964
  for (const n in e.data) {
965
965
  const r = e.data[n];
966
- r.sheetTransform && (r.transform = z(r.sheetTransform, this._sheetSelectionRenderService, this._sheetSkeletonManagerService));
966
+ r.sheetTransform && (r.transform = K(r.sheetTransform, this._sheetSelectionRenderService, this._sheetSkeletonManagerService));
967
967
  }
968
968
  }
969
969
  this._drawingManagerService.registerDrawingData(this._context.unitId, this._sheetDrawingService.getDrawingDataForUnit(this._context.unitId)), this._drawingManagerService.initializeNotification(this._context.unitId);
970
970
  }
971
971
  };
972
- nn = us([
973
- It(1, re),
974
- It(2, ie),
975
- It(3, A(xe)),
972
+ nn = hs([
973
+ It(1, ie),
974
+ It(2, se),
975
+ It(3, A(Ye)),
976
976
  It(4, A(V))
977
977
  ], nn);
978
- var hs = Object.getOwnPropertyDescriptor, gs = (i, t, e, n) => {
979
- for (var r = n > 1 ? void 0 : n ? hs(t, e) : t, s = i.length - 1, o; s >= 0; s--)
978
+ var gs = Object.getOwnPropertyDescriptor, fs = (i, t, e, n) => {
979
+ for (var r = n > 1 ? void 0 : n ? gs(t, e) : t, s = i.length - 1, o; s >= 0; s--)
980
980
  (o = i[s]) && (r = o(r) || r);
981
981
  return r;
982
982
  }, Ae = (i, t) => (e, n) => t(e, n, i);
@@ -1000,15 +1000,15 @@ function Sr(i, t, e) {
1000
1000
  }
1001
1001
  return !1;
1002
1002
  }
1003
- let bt = class extends ne {
1003
+ let bt = class extends re {
1004
1004
  constructor(i, t, e, n, r, s) {
1005
1005
  super(), this._commandService = i, this._sheetInterceptorService = t, this._injector = e, this._drawingManagerService = n, this._docDrawingController = r, this._editorBridgeService = s, this._handleInitEditor(), this._initCellContentInterceptor();
1006
1006
  }
1007
1007
  _handleInitEditor() {
1008
1008
  this.disposeWithMe(this._editorBridgeService.visible$.subscribe((i) => {
1009
- i.visible ? i.visible && (this._drawingManagerService.removeDrawingDataForUnit(Ze), this._docDrawingController.loadDrawingDataForUnit(Ze), this._drawingManagerService.initializeNotification(Ze)) : this._drawingManagerService.removeDrawingDataForUnit(Ze);
1009
+ i.visible ? i.visible && (this._drawingManagerService.removeDrawingDataForUnit(qe), this._docDrawingController.loadDrawingDataForUnit(qe), this._drawingManagerService.initializeNotification(qe)) : this._drawingManagerService.removeDrawingDataForUnit(qe);
1010
1010
  })), this.disposeWithMe(this._commandService.onCommandExecuted((i) => {
1011
- i.id === yi.id && i.params.unitId === Be && (this._drawingManagerService.removeDrawingDataForUnit(Be), this._docDrawingController.loadDrawingDataForUnit(Be), this._drawingManagerService.initializeNotification(Be));
1011
+ i.id === Ti.id && i.params.unitId === je && (this._drawingManagerService.removeDrawingDataForUnit(je), this._docDrawingController.loadDrawingDataForUnit(je), this._drawingManagerService.initializeNotification(je));
1012
1012
  }));
1013
1013
  }
1014
1014
  _initCellContentInterceptor() {
@@ -1027,20 +1027,20 @@ let bt = class extends ne {
1027
1027
  );
1028
1028
  }
1029
1029
  };
1030
- bt = gs([
1030
+ bt = fs([
1031
1031
  Ae(0, X),
1032
1032
  Ae(1, A(At)),
1033
- Ae(2, A(Ge)),
1034
- Ae(3, ie),
1035
- Ae(4, A(Yi)),
1033
+ Ae(2, A(Xe)),
1034
+ Ae(3, se),
1035
+ Ae(4, A(Gi)),
1036
1036
  Ae(5, A(kr))
1037
1037
  ], bt);
1038
- var fs = Object.getOwnPropertyDescriptor, ms = (i, t, e, n) => {
1039
- for (var r = n > 1 ? void 0 : n ? fs(t, e) : t, s = i.length - 1, o; s >= 0; s--)
1038
+ var ms = Object.getOwnPropertyDescriptor, ps = (i, t, e, n) => {
1039
+ for (var r = n > 1 ? void 0 : n ? ms(t, e) : t, s = i.length - 1, o; s >= 0; s--)
1040
1040
  (o = i[s]) && (r = o(r) || r);
1041
1041
  return r;
1042
1042
  }, $n = (i, t) => (e, n) => t(e, n, i);
1043
- let Mt = class extends ne {
1043
+ let Mt = class extends re {
1044
1044
  constructor(i, t) {
1045
1045
  super(), this._autoFillService = i, this._injector = t, this._initAutoFillHooks();
1046
1046
  }
@@ -1057,21 +1057,21 @@ let Mt = class extends ne {
1057
1057
  );
1058
1058
  }
1059
1059
  };
1060
- Mt = ms([
1060
+ Mt = ps([
1061
1061
  $n(0, A(Wr)),
1062
- $n(1, A(Ge))
1062
+ $n(1, A(Xe))
1063
1063
  ], Mt);
1064
- var ps = Object.getOwnPropertyDescriptor, ws = (i, t, e, n) => {
1065
- for (var r = n > 1 ? void 0 : n ? ps(t, e) : t, s = i.length - 1, o; s >= 0; s--)
1064
+ var ws = Object.getOwnPropertyDescriptor, _s = (i, t, e, n) => {
1065
+ for (var r = n > 1 ? void 0 : n ? ws(t, e) : t, s = i.length - 1, o; s >= 0; s--)
1066
1066
  (o = i[s]) && (r = o(r) || r);
1067
1067
  return r;
1068
- }, He = (i, t) => (e, n) => t(e, n, i);
1069
- const _s = [
1070
- Ze,
1068
+ }, ze = (i, t) => (e, n) => t(e, n, i);
1069
+ const Ss = [
1070
+ qe,
1071
1071
  Hr,
1072
- Be
1072
+ je
1073
1073
  ];
1074
- let yt = class extends ne {
1074
+ let yt = class extends re {
1075
1075
  constructor(i, t, e, n, r) {
1076
1076
  super(), this._commandService = i, this._univerInstanceService = t, this._dialogService = e, this._renderManagerService = n, this._localeService = r, this._initDocImageCopyPasteHooks();
1077
1077
  }
@@ -1092,13 +1092,13 @@ let yt = class extends ne {
1092
1092
  this.disposeWithMe(
1093
1093
  this._commandService.beforeCommandExecuted((i) => {
1094
1094
  var t, e;
1095
- if (i.id === Ti.id) {
1095
+ if (i.id === Ei.id) {
1096
1096
  const n = i.params, { doc: r } = n, s = this._univerInstanceService.getCurrentUnitOfType(F.UNIVER_DOC);
1097
1097
  if (s == null || !Object.keys((t = r.drawings) != null ? t : {}).length)
1098
1098
  return;
1099
1099
  const o = s.getUnitId();
1100
- if (_s.includes(o)) {
1101
- if (o !== Be) {
1100
+ if (Ss.includes(o)) {
1101
+ if (o !== je) {
1102
1102
  const a = () => {
1103
1103
  this._dialogService.close("sheet-cell-image-copy-paste"), this._commandService.syncExecuteCommand(pn.id, {
1104
1104
  visible: !1
@@ -1133,32 +1133,32 @@ let yt = class extends ne {
1133
1133
  );
1134
1134
  }
1135
1135
  };
1136
- yt = ws([
1137
- He(0, X),
1138
- He(1, Se),
1139
- He(2, Ni),
1140
- He(3, J),
1141
- He(4, A(nt))
1136
+ yt = _s([
1137
+ ze(0, X),
1138
+ ze(1, Se),
1139
+ ze(2, ki),
1140
+ ze(3, Z),
1141
+ ze(4, A(nt))
1142
1142
  ], yt);
1143
- var Ss = Object.getOwnPropertyDescriptor, vs = (i, t, e, n) => {
1144
- for (var r = n > 1 ? void 0 : n ? Ss(t, e) : t, s = i.length - 1, o; s >= 0; s--)
1143
+ var vs = Object.getOwnPropertyDescriptor, Is = (i, t, e, n) => {
1144
+ for (var r = n > 1 ? void 0 : n ? vs(t, e) : t, s = i.length - 1, o; s >= 0; s--)
1145
1145
  (o = i[s]) && (r = o(r) || r);
1146
1146
  return r;
1147
- }, ze = (i, t) => (e, n) => t(e, n, i);
1147
+ }, Ke = (i, t) => (e, n) => t(e, n, i);
1148
1148
  const vr = "image/png";
1149
- function Is(i) {
1149
+ function Cs(i) {
1150
1150
  const t = i.split(","), e = atob(t[1]), n = e.length, r = new Uint8Array(n);
1151
1151
  for (let s = 0; s < n; s++)
1152
1152
  r[s] = e.charCodeAt(s);
1153
1153
  return new Blob([r], { type: vr });
1154
1154
  }
1155
- function Cs(i) {
1156
- const t = new ClipboardItem({ [vr]: Is(i) });
1155
+ function Ds(i) {
1156
+ const t = new ClipboardItem({ [vr]: Cs(i) });
1157
1157
  navigator.clipboard.write([t]).catch((e) => {
1158
1158
  console.error("Could not copy image using clipboard API: ", e);
1159
1159
  });
1160
1160
  }
1161
- function Ds() {
1161
+ function Rs() {
1162
1162
  function i() {
1163
1163
  const n = document.createElement("input");
1164
1164
  return n.style.position = "absolute", n.style.height = "1px", n.style.width = "1px", n.style.opacity = "0", n;
@@ -1174,10 +1174,10 @@ const Fn = [
1174
1174
  We.SPECIAL_PASTE_FORMAT,
1175
1175
  We.SPECIAL_PASTE_FORMULA
1176
1176
  ];
1177
- let Tt = class extends ne {
1177
+ let Tt = class extends re {
1178
1178
  constructor(t, e, n, r, s) {
1179
1179
  super();
1180
- ee(this, "_copyInfo");
1180
+ te(this, "_copyInfo");
1181
1181
  this._sheetClipboardService = t, this._renderManagerService = e, this._drawingService = n, this._clipboardInterfaceService = r, this._commandService = s, this._initCopyPaste();
1182
1182
  }
1183
1183
  get _focusedDrawings() {
@@ -1192,7 +1192,7 @@ let Tt = class extends ne {
1192
1192
  const s = this._focusedDrawings;
1193
1193
  if (s.length > 0) {
1194
1194
  const [o] = s;
1195
- if (o.drawingType !== B.DRAWING_IMAGE)
1195
+ if (o.drawingType !== W.DRAWING_IMAGE)
1196
1196
  return;
1197
1197
  if (r === ve.CUT) {
1198
1198
  const d = {
@@ -1202,8 +1202,8 @@ let Tt = class extends ne {
1202
1202
  this._commandService.executeCommand(rt.id, d);
1203
1203
  }
1204
1204
  setTimeout(() => {
1205
- const d = Ds();
1206
- o.drawingType === B.DRAWING_IMAGE && o.imageSourceType === Oi.BASE64 ? Cs(o.source) : this._clipboardInterfaceService.writeText(""), d();
1205
+ const d = Rs();
1206
+ o.drawingType === W.DRAWING_IMAGE && o.imageSourceType === Ui.BASE64 ? Ds(o.source) : this._clipboardInterfaceService.writeText(""), d();
1207
1207
  }, 200);
1208
1208
  const a = {
1209
1209
  unitId: o.unitId,
@@ -1254,7 +1254,7 @@ let Tt = class extends ne {
1254
1254
  const { startX: o, endX: a, startY: d, endY: u } = s, c = this._drawingService.getDrawingData(t, e), l = this._focusedDrawings.slice();
1255
1255
  if (Object.keys(c).forEach((h) => {
1256
1256
  const f = c[h];
1257
- if (f.drawingType !== B.DRAWING_IMAGE)
1257
+ if (f.drawingType !== W.DRAWING_IMAGE)
1258
1258
  return;
1259
1259
  const { transform: p } = f;
1260
1260
  if (f.anchorType !== O.Both || !p)
@@ -1278,7 +1278,7 @@ let Tt = class extends ne {
1278
1278
  const { pasteType: n, pasteTo: r } = t;
1279
1279
  if (Fn.includes(n))
1280
1280
  return { redos: [], undos: [] };
1281
- const { unitId: s, subUnitId: o, range: a } = r, d = this._renderManagerService.getRenderById(s), u = d == null ? void 0 : d.with(V), c = d == null ? void 0 : d.with(xe), l = this._copyInfo;
1281
+ const { unitId: s, subUnitId: o, range: a } = r, d = this._renderManagerService.getRenderById(s), u = d == null ? void 0 : d.with(V), c = d == null ? void 0 : d.with(Ye), l = this._copyInfo;
1282
1282
  if (!u || !c)
1283
1283
  return { redos: [], undos: [] };
1284
1284
  const { drawings: g } = l, h = wn(a);
@@ -1320,7 +1320,7 @@ let Tt = class extends ne {
1320
1320
  ...c,
1321
1321
  unitId: n,
1322
1322
  subUnitId: r,
1323
- drawingId: o ? c.drawingId : Qe(),
1323
+ drawingId: o ? c.drawingId : Be(),
1324
1324
  transform: h.transform,
1325
1325
  sheetTransform: h.sheetTransform
1326
1326
  };
@@ -1418,19 +1418,19 @@ let Tt = class extends ne {
1418
1418
  });
1419
1419
  }
1420
1420
  };
1421
- Tt = vs([
1422
- ze(0, $r),
1423
- ze(1, J),
1424
- ze(2, ie),
1425
- ze(3, ki),
1426
- ze(4, X)
1421
+ Tt = Is([
1422
+ Ke(0, $r),
1423
+ Ke(1, Z),
1424
+ Ke(2, se),
1425
+ Ke(3, Wi),
1426
+ Ke(4, X)
1427
1427
  ], Tt);
1428
- var Rs = Object.getOwnPropertyDescriptor, bs = (i, t, e, n) => {
1429
- for (var r = n > 1 ? void 0 : n ? Rs(t, e) : t, s = i.length - 1, o; s >= 0; s--)
1428
+ var bs = Object.getOwnPropertyDescriptor, Ms = (i, t, e, n) => {
1429
+ for (var r = n > 1 ? void 0 : n ? bs(t, e) : t, s = i.length - 1, o; s >= 0; s--)
1430
1430
  (o = i[s]) && (r = o(r) || r);
1431
1431
  return r;
1432
- }, Ke = (i, t) => (e, n) => t(e, n, i);
1433
- let Et = class extends ne {
1432
+ }, Je = (i, t) => (e, n) => t(e, n, i);
1433
+ let Et = class extends re {
1434
1434
  constructor(i, t, e, n, r) {
1435
1435
  super(), this._drawingManagerService = i, this._renderManagerService = t, this._permissionService = e, this._univerInstanceService = n, this._userManagerService = r, this._initDrawingVisible(), this._initDrawingEditable(), this._initViewPermissionChange(), this._initEditPermissionChange();
1436
1436
  }
@@ -1598,18 +1598,19 @@ let Et = class extends ne {
1598
1598
  );
1599
1599
  }
1600
1600
  };
1601
- Et = bs([
1602
- Ke(0, ie),
1603
- Ke(1, J),
1604
- Ke(2, zr),
1605
- Ke(3, Se),
1606
- Ke(4, A(Kr))
1601
+ Et = Ms([
1602
+ Je(0, se),
1603
+ Je(1, Z),
1604
+ Je(2, zr),
1605
+ Je(3, Se),
1606
+ Je(4, A(Kr))
1607
1607
  ], Et);
1608
- var Ms = Object.getOwnPropertyDescriptor, ys = (i, t, e, n) => {
1609
- for (var r = n > 1 ? void 0 : n ? Ms(t, e) : t, s = i.length - 1, o; s >= 0; s--)
1608
+ var ys = Object.getOwnPropertyDescriptor, Ts = (i, t, e, n) => {
1609
+ for (var r = n > 1 ? void 0 : n ? ys(t, e) : t, s = i.length - 1, o; s >= 0; s--)
1610
1610
  (o = i[s]) && (r = o(r) || r);
1611
1611
  return r;
1612
1612
  }, Ce = (i, t) => (e, n) => t(e, n, i);
1613
+ const Es = "univer-sheet-float-dom-";
1613
1614
  function Ir(i, t, e, n, r, s = !1) {
1614
1615
  const { scaleX: o, scaleY: a } = t.getAncestorScale(), d = t.getViewport(xn.VIEW_MAIN), u = n.getFreeze(), { startColumn: c, startRow: l, xSplit: g, ySplit: h } = u, f = {
1615
1616
  left: !0,
@@ -1627,27 +1628,27 @@ function Ir(i, t, e, n, r, s = !1) {
1627
1628
  top: s ? 0 : T,
1628
1629
  left: s ? 0 : D
1629
1630
  };
1630
- w && (je.isDefine(E.top) && (E.top = w.top), je.isDefine(E.left) && (E.left = w.left)), y === "HORIZONTAL" && (C = 0), y === "VERTICAL" && (S = 0);
1631
+ w && ($e.isDefine(E.top) && (E.top = w.top), $e.isDefine(E.left) && (E.left = w.left)), y === "HORIZONTAL" && (C = 0), y === "VERTICAL" && (S = 0);
1631
1632
  let M = 0, b = 0;
1632
- const N = e.rowStartY(l - h) + T, x = e.colStartX(c - g) + D, q = e.rowStartY(l) + T, H = e.colStartX(c) + D;
1633
+ const N = e.rowStartY(l - h) + T, x = e.colStartX(c - g) + D, Q = e.rowStartY(l) + T, H = e.colStartX(c) + D;
1633
1634
  if (g === 0)
1634
1635
  f.left = !1, M = (p - S) * o, b = (m - S) * o;
1635
1636
  else {
1636
- const k = p - (x - D), ae = m - (x - D);
1637
- m < H ? (M = k * o, b = ae * o) : p <= H && m >= H ? (M = k * o, b = Math.max(R, (m - S) * o)) : p > H && (f.left = !1, M = Math.max((p - S) * o, R), b = Math.max((m - S) * o, R));
1637
+ const z = p - (x - D), B = m - (x - D);
1638
+ m < H ? (M = z * o, b = B * o) : p <= H && m >= H ? (M = z * o, b = Math.max(R, (m - S) * o)) : p > H && (f.left = !1, M = Math.max((p - S) * o, R), b = Math.max((m - S) * o, R));
1638
1639
  }
1639
- let L = 0, G = 0;
1640
+ let G = 0, L = 0;
1640
1641
  if (h === 0)
1641
- f.top = !1, L = (_ - C) * a, G = (v - C) * a;
1642
+ f.top = !1, G = (_ - C) * a, L = (v - C) * a;
1642
1643
  else {
1643
- const k = _ - (N - T), ae = v - (N - T);
1644
- v < q ? (L = k * a, G = ae * a) : _ <= q && v >= q ? (L = k * a, G = Math.max(I, (v - C) * a)) : _ > q && (f.top = !1, L = Math.max((_ - C) * a, I), G = Math.max((v - C) * a, I));
1644
+ const z = _ - (N - T), B = v - (N - T);
1645
+ v < Q ? (G = z * a, L = B * a) : _ <= Q && v >= Q ? (G = z * a, L = Math.max(I, (v - C) * a)) : _ > Q && (f.top = !1, G = Math.max((_ - C) * a, I), L = Math.max((v - C) * a, I));
1645
1646
  }
1646
- return M = Math.max(M, E.left), L = Math.max(L, E.top), b = Math.max(b, E.left), G = Math.max(G, E.top), {
1647
+ return M = Math.max(M, E.left), G = Math.max(G, E.top), b = Math.max(b, E.left), L = Math.max(L, E.top), {
1647
1648
  left: M,
1648
1649
  right: b,
1649
- top: L,
1650
- bottom: G,
1650
+ top: G,
1651
+ bottom: L,
1651
1652
  absolute: f
1652
1653
  };
1653
1654
  }
@@ -1669,23 +1670,23 @@ const ge = (i, t, e, n, r) => {
1669
1670
  absolute: l.absolute
1670
1671
  };
1671
1672
  };
1672
- let tt = class extends ne {
1673
+ let tt = class extends re {
1673
1674
  constructor(t, e, n, r, s, o, a) {
1674
1675
  super();
1675
1676
  /**
1676
1677
  * for update dom container position when scrolling and zoom
1677
1678
  */
1678
- ee(this, "_domLayerInfoMap", /* @__PURE__ */ new Map());
1679
- ee(this, "_transformChange$", new Xt());
1680
- ee(this, "transformChange$", this._transformChange$.asObservable());
1681
- ee(this, "_add$", new Xt());
1682
- ee(this, "add$", this._add$.asObservable());
1683
- ee(this, "_remove$", new Xt());
1684
- ee(this, "remove$", this._remove$.asObservable());
1679
+ te(this, "_domLayerInfoMap", /* @__PURE__ */ new Map());
1680
+ te(this, "_transformChange$", new Xt());
1681
+ te(this, "transformChange$", this._transformChange$.asObservable());
1682
+ te(this, "_add$", new Xt());
1683
+ te(this, "add$", this._add$.asObservable());
1684
+ te(this, "_remove$", new Xt());
1685
+ te(this, "remove$", this._remove$.asObservable());
1685
1686
  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();
1686
1687
  }
1687
1688
  _bindScrollEvent() {
1688
- this._lifecycleService.lifecycle$.pipe(Zi((t) => t === Zr.Rendered), qi(1)).subscribe(() => {
1689
+ this._lifecycleService.lifecycle$.pipe(qi((t) => t === Zr.Rendered), Qi(1)).subscribe(() => {
1689
1690
  this._scrollUpdateListener();
1690
1691
  });
1691
1692
  }
@@ -1710,18 +1711,18 @@ let tt = class extends ne {
1710
1711
  // eslint-disable-next-line max-lines-per-function
1711
1712
  this._drawingManagerService.add$.subscribe((t) => {
1712
1713
  t.forEach((e) => {
1713
- var K;
1714
- 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, F.UNIVER_SHEET);
1714
+ var z;
1715
+ const { unitId: n, subUnitId: r, drawingId: s } = e, o = oe(this._univerInstanceService, { unitId: n, subUnitId: r }), a = this._drawingManagerService.getDrawingByParam(e), d = this._univerInstanceService.getUnit(n, F.UNIVER_SHEET);
1715
1716
  if (!d)
1716
1717
  return;
1717
1718
  const u = d.getActiveSheet().getSheetId();
1718
1719
  if (!a || !o)
1719
1720
  return;
1720
- const c = (K = this._renderManagerService.getRenderById(n)) == null ? void 0 : K.with(V).getSkeletonParam(r);
1721
+ const c = (z = this._renderManagerService.getRenderById(n)) == null ? void 0 : z.with(V).getSkeletonParam(r);
1721
1722
  if (!c)
1722
1723
  return;
1723
1724
  const { transform: l, drawingType: g, data: h } = a;
1724
- if (g !== B.DRAWING_DOM && g !== B.DRAWING_CHART)
1725
+ if (g !== W.DRAWING_DOM && g !== W.DRAWING_CHART)
1725
1726
  return;
1726
1727
  const f = this._getSceneAndTransformerByDrawingSearch(n);
1727
1728
  if (f == null)
@@ -1742,49 +1743,51 @@ let tt = class extends ne {
1742
1743
  width: I,
1743
1744
  height: R,
1744
1745
  zIndex: this._drawingManagerService.getDrawingOrder(n, r).length - 1
1745
- }, b = g === B.DRAWING_CHART;
1746
+ }, b = g === W.DRAWING_CHART;
1746
1747
  if (M.rotateEnabled = !1, b) {
1747
- const k = h ? h.backgroundColor : "white";
1748
- M.fill = k, h && h.border && (M.stroke = h.border), M.paintFirst = "stroke", M.strokeWidth = 1, M.borderEnabled = !1, M.radius = 8;
1748
+ const B = h ? h.backgroundColor : "white";
1749
+ M.fill = B, h && h.border && (M.stroke = h.border), M.paintFirst = "stroke", M.strokeWidth = 1, M.borderEnabled = !1, M.radius = 8;
1749
1750
  }
1750
1751
  const N = new Ue(T, M);
1751
1752
  b && N.setObjectType(mn.CHART), p.addObject(N, Ft), a.allowTransform !== !1 && p.attachTransformerTo(N);
1752
- const x = new _t(), q = ge(N, f.renderUnit.scene, c.skeleton, o.worksheet), H = new ke(q), L = {
1753
+ const x = new _t(), Q = ge(N, f.renderUnit.scene, c.skeleton, o.worksheet), H = new ke(Q), G = `${Es}${Be(6)}`, L = {
1753
1754
  dispose: x,
1754
1755
  rect: N,
1755
1756
  position$: H,
1756
1757
  unitId: n,
1757
1758
  subUnitId: r,
1758
- id: s
1759
+ id: s,
1760
+ domId: G
1759
1761
  };
1760
1762
  this._canvasFloatDomService.addFloatDom({
1761
1763
  position$: H,
1762
1764
  id: s,
1765
+ domId: G,
1763
1766
  componentKey: a.componentKey,
1764
- onPointerDown: (k) => {
1765
- m.dispatchEvent(new PointerEvent(k.type, k));
1767
+ onPointerDown: (B) => {
1768
+ m.dispatchEvent(new PointerEvent(B.type, B));
1766
1769
  },
1767
- onPointerMove: (k) => {
1768
- m.dispatchEvent(new PointerEvent(k.type, k));
1770
+ onPointerMove: (B) => {
1771
+ m.dispatchEvent(new PointerEvent(B.type, B));
1769
1772
  },
1770
- onPointerUp: (k) => {
1771
- m.dispatchEvent(new PointerEvent(k.type, k));
1773
+ onPointerUp: (B) => {
1774
+ m.dispatchEvent(new PointerEvent(B.type, B));
1772
1775
  },
1773
- onWheel: (k) => {
1774
- m.dispatchEvent(new WheelEvent(k.type, k));
1776
+ onWheel: (B) => {
1777
+ m.dispatchEvent(new WheelEvent(B.type, B));
1775
1778
  },
1776
1779
  data: h,
1777
1780
  unitId: n
1778
1781
  });
1779
- const G = N.onTransformChange$.subscribeEvent(() => {
1780
- const k = ge(N, f.renderUnit.scene, c.skeleton, o.worksheet);
1782
+ const J = N.onTransformChange$.subscribeEvent(() => {
1783
+ const B = ge(N, f.renderUnit.scene, c.skeleton, o.worksheet);
1781
1784
  H.next(
1782
- k
1785
+ B
1783
1786
  );
1784
1787
  });
1785
1788
  x.add(() => {
1786
1789
  this._canvasFloatDomService.removeFloatDom(s);
1787
- }), G && x.add(G), this._domLayerInfoMap.set(s, L);
1790
+ }), J && x.add(J), this._domLayerInfoMap.set(s, L);
1788
1791
  });
1789
1792
  })
1790
1793
  ), this.disposeWithMe(
@@ -1803,7 +1806,7 @@ let tt = class extends ne {
1803
1806
  _scrollUpdateListener() {
1804
1807
  const t = (e, n) => {
1805
1808
  var d;
1806
- 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(V).getSkeletonParam(n);
1809
+ const r = this._getSceneAndTransformerByDrawingSearch(e), s = Array.from(this._domLayerInfoMap.keys()).map((u) => ({ id: u, ...this._domLayerInfoMap.get(u) })).filter((u) => u.subUnitId === n && u.unitId === e).map((u) => u.id), o = oe(this._univerInstanceService, { unitId: e, subUnitId: n }), a = (d = this._renderManagerService.getRenderById(e)) == null ? void 0 : d.with(V).getSkeletonParam(n);
1807
1810
  !r || !o || !a || s.forEach((u) => {
1808
1811
  const c = this._domLayerInfoMap.get(u);
1809
1812
  if (c) {
@@ -1837,6 +1840,9 @@ let tt = class extends ne {
1837
1840
  } else if (e.id === hi.id) {
1838
1841
  const { unitId: n, subUnitId: r } = e.params;
1839
1842
  t(n, r);
1843
+ } else if (e.id === gi.id) {
1844
+ const { unitId: n, subUnitId: r } = e.params;
1845
+ t(n, r);
1840
1846
  }
1841
1847
  }));
1842
1848
  }
@@ -1849,7 +1855,7 @@ let tt = class extends ne {
1849
1855
  }
1850
1856
  _getPosition(t, e) {
1851
1857
  var g;
1852
- const { startX: n, endX: r, startY: s, endY: o } = t, a = (g = this._renderManagerService.getRenderById(e)) == null ? void 0 : g.with(xe);
1858
+ const { startX: n, endX: r, startY: s, endY: o } = t, a = (g = this._renderManagerService.getRenderById(e)) == null ? void 0 : g.with(Ye);
1853
1859
  if (a == null)
1854
1860
  return;
1855
1861
  const d = a.getCellWithCoordByOffset(n, s);
@@ -1879,7 +1885,7 @@ let tt = class extends ne {
1879
1885
  this._drawingManagerService.update$.subscribe((t) => {
1880
1886
  t.forEach((e) => {
1881
1887
  const n = this._drawingManagerService.getDrawingByParam(e);
1882
- if (!n || n.drawingType !== B.DRAWING_DOM && n.drawingType !== B.DRAWING_CHART)
1888
+ if (!n || n.drawingType !== W.DRAWING_DOM && n.drawingType !== W.DRAWING_CHART)
1883
1889
  return;
1884
1890
  const r = {
1885
1891
  ...n.transform
@@ -1888,7 +1894,7 @@ let tt = class extends ne {
1888
1894
  ...n
1889
1895
  });
1890
1896
  const s = this._getSceneAndTransformerByDrawingSearch(e.unitId);
1891
- if (s && n.drawingType !== B.DRAWING_CHART) {
1897
+ if (s && n.drawingType !== W.DRAWING_CHART) {
1892
1898
  const { scene: o } = s, a = this._domLayerInfoMap.get(e.drawingId);
1893
1899
  a != null && a.rect && (n.allowTransform === !1 ? o.detachTransformerFrom(a.rect) : o.attachTransformerTo(a.rect));
1894
1900
  }
@@ -1907,20 +1913,20 @@ let tt = class extends ne {
1907
1913
  }
1908
1914
  // CreateFloatDomCommand --> floatDomService.addFloatDomToPosition
1909
1915
  addFloatDomToPosition(t, e) {
1910
- const n = se(this._univerInstanceService, {
1916
+ const n = oe(this._univerInstanceService, {
1911
1917
  unitId: t.unitId,
1912
1918
  subUnitId: t.subUnitId
1913
1919
  });
1914
1920
  if (!n)
1915
1921
  throw new Error("cannot find current target!");
1916
- const { unitId: r, subUnitId: s } = n, { initPosition: o, componentKey: a, data: d, allowTransform: u = !0 } = t, c = e != null ? e : Qe(), l = this._getPosition(o, r);
1922
+ const { unitId: r, subUnitId: s } = n, { initPosition: o, componentKey: a, data: d, allowTransform: u = !0 } = t, c = e != null ? e : Be(), l = this._getPosition(o, r);
1917
1923
  if (l == null)
1918
1924
  return;
1919
1925
  const g = {
1920
1926
  unitId: r,
1921
1927
  subUnitId: s,
1922
1928
  drawingId: c,
1923
- drawingType: t.type || B.DRAWING_DOM,
1929
+ drawingType: t.type || W.DRAWING_DOM,
1924
1930
  componentKey: a,
1925
1931
  sheetTransform: l,
1926
1932
  transform: {
@@ -1960,7 +1966,7 @@ let tt = class extends ne {
1960
1966
  // eslint-disable-next-line max-lines-per-function, complexity
1961
1967
  addFloatDomToRange(t, e, n, r) {
1962
1968
  var C, w, y;
1963
- const s = se(this._univerInstanceService, {
1969
+ const s = oe(this._univerInstanceService, {
1964
1970
  unitId: e.unitId,
1965
1971
  subUnitId: e.subUnitId
1966
1972
  });
@@ -1972,14 +1978,14 @@ let tt = class extends ne {
1972
1978
  if (!u) return;
1973
1979
  const c = (C = this._renderManagerService.getRenderById(o)) == null ? void 0 : C.with(V).getWorksheetSkeleton(a);
1974
1980
  if (!c) return;
1975
- const { componentKey: l, data: g, allowTransform: h = !0 } = e, f = r != null ? r : Qe(), { position: p, position$: m } = this._createRangePositionObserver(t, u, c.skeleton);
1981
+ const { componentKey: l, data: g, allowTransform: h = !0 } = e, f = r != null ? r : Be(), { position: p, position$: m } = this._createRangePositionObserver(t, u, c.skeleton);
1976
1982
  if (this._getPosition(p, o) == null)
1977
1983
  return;
1978
1984
  const v = d.scene, { scaleX: I } = v.getAncestorScale(), R = Ct(p, n, I), S = {
1979
1985
  unitId: o,
1980
1986
  subUnitId: a,
1981
1987
  drawingId: f,
1982
- drawingType: e.type || B.DRAWING_DOM,
1988
+ drawingType: e.type || W.DRAWING_DOM,
1983
1989
  componentKey: l,
1984
1990
  transform: {
1985
1991
  left: R.startX,
@@ -1991,48 +1997,48 @@ let tt = class extends ne {
1991
1997
  allowTransform: h
1992
1998
  };
1993
1999
  {
1994
- const { unitId: D, subUnitId: T, drawingId: E } = S, M = se(this._univerInstanceService, { unitId: D, subUnitId: T }), b = S, N = this._univerInstanceService.getUnit(D, F.UNIVER_SHEET);
2000
+ const { unitId: D, subUnitId: T, drawingId: E } = S, M = oe(this._univerInstanceService, { unitId: D, subUnitId: T }), b = S, N = this._univerInstanceService.getUnit(D, F.UNIVER_SHEET);
1995
2001
  if (!N)
1996
2002
  return;
1997
2003
  const x = N.getActiveSheet().getSheetId();
1998
2004
  if (!b || !M)
1999
2005
  return;
2000
- const q = (w = this._renderManagerService.getRenderById(D)) == null ? void 0 : w.with(V);
2001
- if (!q)
2006
+ const Q = (w = this._renderManagerService.getRenderById(D)) == null ? void 0 : w.with(V);
2007
+ if (!Q)
2002
2008
  return;
2003
- const H = q.getWorksheetSkeleton(T);
2009
+ const H = Q.getWorksheetSkeleton(T);
2004
2010
  if (!H)
2005
2011
  return;
2006
- const { transform: L, drawingType: G, data: K } = b;
2007
- if (G !== B.DRAWING_DOM && G !== B.DRAWING_CHART)
2012
+ const { transform: G, drawingType: L, data: J } = b;
2013
+ if (L !== W.DRAWING_DOM && L !== W.DRAWING_CHART)
2008
2014
  return;
2009
- const k = this._getSceneAndTransformerByDrawingSearch(D);
2010
- if (k == null)
2015
+ const z = this._getSceneAndTransformerByDrawingSearch(D);
2016
+ if (z == null)
2011
2017
  return;
2012
- const { scene: ae, canvas: be } = k;
2013
- if (L == null || x !== T)
2018
+ const { scene: B, canvas: be } = z;
2019
+ if (G == null || x !== T)
2014
2020
  return;
2015
- const { left: ot, top: at, width: ct, height: dt, angle: jt, flipX: $t, flipY: lt, skewX: ut, skewY: Me } = L, ht = Ie({ unitId: D, subUnitId: T, drawingId: E }), de = ae.getObject(ht);
2021
+ const { left: ot, top: at, width: ct, height: dt, angle: jt, flipX: $t, flipY: lt, skewX: ut, skewY: Me } = G, ht = Ie({ unitId: D, subUnitId: T, drawingId: E }), de = B.getObject(ht);
2016
2022
  if (de != null) {
2017
2023
  de.transformByState({ left: ot, top: at, width: ct, height: dt, angle: jt, flipX: $t, flipY: lt, skewX: ut, skewY: Me });
2018
2024
  return;
2019
2025
  }
2020
- const Q = {
2026
+ const ee = {
2021
2027
  left: ot,
2022
2028
  // from floatDomParam.transform
2023
2029
  top: at,
2024
2030
  width: ct,
2025
2031
  height: dt,
2026
2032
  zIndex: this._drawingManagerService.getDrawingOrder(D, T).length - 1
2027
- }, ye = G === B.DRAWING_CHART;
2033
+ }, ye = L === W.DRAWING_CHART;
2028
2034
  if (ye) {
2029
- const W = K ? K.backgroundColor : "white";
2030
- Q.fill = W, Q.rotateEnabled = !1, K && K.border && (Q.stroke = K.border), Q.paintFirst = "stroke", Q.strokeWidth = 1, Q.borderEnabled = !1, Q.radius = 8;
2035
+ const k = J ? J.backgroundColor : "white";
2036
+ ee.fill = k, ee.rotateEnabled = !1, J && J.border && (ee.stroke = J.border), ee.paintFirst = "stroke", ee.strokeWidth = 1, ee.borderEnabled = !1, ee.radius = 8;
2031
2037
  }
2032
- const le = new Ue(ht, Q);
2033
- ye && le.setObjectType(mn.CHART), ae.addObject(le, Ft), b.allowTransform !== !1 && ae.attachTransformerTo(le);
2034
- const ue = new _t(), gt = ae.getMainViewport(), { rowHeaderWidth: Te, columnHeaderHeight: Xe } = H.skeleton, ft = {
2035
- top: Xe,
2038
+ const le = new Ue(ht, ee);
2039
+ ye && le.setObjectType(mn.CHART), B.addObject(le, Ft), b.allowTransform !== !1 && B.attachTransformerTo(le);
2040
+ const ue = new _t(), gt = B.getMainViewport(), { rowHeaderWidth: Te, columnHeaderHeight: Le } = H.skeleton, ft = {
2041
+ top: Le,
2036
2042
  left: Te,
2037
2043
  bottom: gt.bottom,
2038
2044
  right: gt.right
@@ -2043,9 +2049,9 @@ let tt = class extends ne {
2043
2049
  domAnchor: n,
2044
2050
  unitId: D,
2045
2051
  subUnitId: T
2046
- }, j = ge(le, k.renderUnit.scene, H.skeleton, M.worksheet, he), Ee = new ke(j);
2052
+ }, j = ge(le, z.renderUnit.scene, H.skeleton, M.worksheet, he), Ee = new ke(j);
2047
2053
  he.position$ = Ee;
2048
- let Le = {
2054
+ let Ve = {
2049
2055
  position$: Ee,
2050
2056
  id: E,
2051
2057
  componentKey: b.componentKey,
@@ -2055,32 +2061,32 @@ let tt = class extends ne {
2055
2061
  },
2056
2062
  onPointerUp: () => {
2057
2063
  },
2058
- onWheel: (W) => {
2059
- be.dispatchEvent(new WheelEvent(W.type, W));
2064
+ onWheel: (k) => {
2065
+ be.dispatchEvent(new WheelEvent(k.type, k));
2060
2066
  },
2061
- data: K,
2067
+ data: J,
2062
2068
  unitId: D
2063
2069
  };
2064
- e.eventPassThrough && (Le = {
2065
- ...Le,
2066
- onPointerDown: (W) => {
2067
- be.dispatchEvent(new PointerEvent(W.type, W));
2070
+ e.eventPassThrough && (Ve = {
2071
+ ...Ve,
2072
+ onPointerDown: (k) => {
2073
+ be.dispatchEvent(new PointerEvent(k.type, k));
2068
2074
  },
2069
- onPointerMove: (W) => {
2070
- be.dispatchEvent(new PointerEvent(W.type, W));
2075
+ onPointerMove: (k) => {
2076
+ be.dispatchEvent(new PointerEvent(k.type, k));
2071
2077
  },
2072
- onPointerUp: (W) => {
2073
- be.dispatchEvent(new PointerEvent(W.type, W));
2078
+ onPointerUp: (k) => {
2079
+ be.dispatchEvent(new PointerEvent(k.type, k));
2074
2080
  }
2075
- }), this._canvasFloatDomService.addFloatDom(Le), this.disposeWithMe(m.subscribe((W) => {
2081
+ }), this._canvasFloatDomService.addFloatDom(Ve), this.disposeWithMe(m.subscribe((k) => {
2076
2082
  var un, hn, gn, fn;
2077
2083
  const ln = Ct({
2078
- startX: W.startX,
2079
- startY: W.startY,
2080
- endX: W.endX,
2081
- endY: W.endY,
2082
- width: (un = n.width) != null ? un : W.width,
2083
- height: (hn = n.height) != null ? hn : W.height,
2084
+ startX: k.startX,
2085
+ startY: k.startY,
2086
+ endX: k.endX,
2087
+ endY: k.endY,
2088
+ width: (un = n.width) != null ? un : k.width,
2089
+ height: (hn = n.height) != null ? hn : k.height,
2084
2090
  absolute: {
2085
2091
  left: p.absolute.left,
2086
2092
  top: p.absolute.top
@@ -2088,20 +2094,20 @@ let tt = class extends ne {
2088
2094
  }, n), Rr = Ie({ unitId: D, subUnitId: T, drawingId: E }), br = new Ue(Rr, {
2089
2095
  left: ln.startX,
2090
2096
  top: ln.startY,
2091
- width: (gn = n.width) != null ? gn : W.width,
2092
- height: (fn = n.height) != null ? fn : W.height,
2097
+ width: (gn = n.width) != null ? gn : k.width,
2098
+ height: (fn = n.height) != null ? fn : k.height,
2093
2099
  zIndex: this._drawingManagerService.getDrawingOrder(D, T).length - 1
2094
- }), Mr = ge(br, k.renderUnit.scene, H.skeleton, M.worksheet, he);
2100
+ }), Mr = ge(br, z.renderUnit.scene, H.skeleton, M.worksheet, he);
2095
2101
  Ee.next(Mr);
2096
2102
  }));
2097
- const Ve = (y = this._renderManagerService.getRenderById(D)) == null ? void 0 : y.with(V);
2098
- Ve == null || Ve.currentSkeleton$.subscribe((W) => {
2099
- W && H.sheetId !== W.sheetId && this._removeDom(f, !0);
2103
+ const He = (y = this._renderManagerService.getRenderById(D)) == null ? void 0 : y.with(V);
2104
+ He == null || He.currentSkeleton$.subscribe((k) => {
2105
+ k && H.sheetId !== k.sheetId && this._removeDom(f, !0);
2100
2106
  });
2101
2107
  const mt = le.onTransformChange$.subscribeEvent(() => {
2102
- const W = ge(le, k.renderUnit.scene, H.skeleton, M.worksheet, he);
2108
+ const k = ge(le, z.renderUnit.scene, H.skeleton, M.worksheet, he);
2103
2109
  Ee.next(
2104
- W
2110
+ k
2105
2111
  );
2106
2112
  });
2107
2113
  ue.add(() => {
@@ -2118,7 +2124,7 @@ let tt = class extends ne {
2118
2124
  // eslint-disable-next-line max-lines-per-function, complexity
2119
2125
  addFloatDomToColumnHeader(t, e, n, r) {
2120
2126
  var R, S, C;
2121
- const s = se(this._univerInstanceService, {
2127
+ const s = oe(this._univerInstanceService, {
2122
2128
  unitId: e.unitId,
2123
2129
  subUnitId: e.subUnitId
2124
2130
  });
@@ -2130,7 +2136,7 @@ let tt = class extends ne {
2130
2136
  if (!u) return;
2131
2137
  const c = (R = this._renderManagerService.getRenderById(o)) == null ? void 0 : R.with(V).getWorksheetSkeleton(a);
2132
2138
  if (!c) return;
2133
- const { componentKey: l, data: g, allowTransform: h = !0 } = e, f = r != null ? r : Qe(), { position: p, position$: m } = this._createRangePositionObserver({
2139
+ const { componentKey: l, data: g, allowTransform: h = !0 } = e, f = r != null ? r : Be(), { position: p, position$: m } = this._createRangePositionObserver({
2134
2140
  startRow: 0,
2135
2141
  endRow: 0,
2136
2142
  startColumn: t,
@@ -2142,7 +2148,7 @@ let tt = class extends ne {
2142
2148
  unitId: o,
2143
2149
  subUnitId: a,
2144
2150
  drawingId: f,
2145
- drawingType: e.type || B.DRAWING_DOM,
2151
+ drawingType: e.type || W.DRAWING_DOM,
2146
2152
  componentKey: l,
2147
2153
  transform: {
2148
2154
  left: _.startX,
@@ -2154,7 +2160,7 @@ let tt = class extends ne {
2154
2160
  allowTransform: h
2155
2161
  };
2156
2162
  {
2157
- const { unitId: w, subUnitId: y, drawingId: D } = I, T = se(this._univerInstanceService, { unitId: w, subUnitId: y }), E = I, M = this._univerInstanceService.getUnit(w, F.UNIVER_SHEET);
2163
+ const { unitId: w, subUnitId: y, drawingId: D } = I, T = oe(this._univerInstanceService, { unitId: w, subUnitId: y }), E = I, M = this._univerInstanceService.getUnit(w, F.UNIVER_SHEET);
2158
2164
  if (!M)
2159
2165
  return;
2160
2166
  const b = M.getActiveSheet().getSheetId();
@@ -2166,15 +2172,15 @@ let tt = class extends ne {
2166
2172
  const x = N.getWorksheetSkeleton(y);
2167
2173
  if (!x)
2168
2174
  return;
2169
- const { transform: q, data: H } = E, L = this._getSceneAndTransformerByDrawingSearch(w);
2170
- if (L == null)
2175
+ const { transform: Q, data: H } = E, G = this._getSceneAndTransformerByDrawingSearch(w);
2176
+ if (G == null)
2171
2177
  return;
2172
- const { scene: G, canvas: K } = L;
2173
- if (q == null || b !== y)
2178
+ const { scene: L, canvas: J } = G;
2179
+ if (Q == null || b !== y)
2174
2180
  return;
2175
- const { left: k, top: ae, width: be, height: ot, angle: at, flipX: ct, flipY: dt, skewX: jt, skewY: $t } = q, lt = Ie({ unitId: w, subUnitId: y, drawingId: D }), ut = G.getObject(lt);
2181
+ const { left: z, top: B, width: be, height: ot, angle: at, flipX: ct, flipY: dt, skewX: jt, skewY: $t } = Q, lt = Ie({ unitId: w, subUnitId: y, drawingId: D }), ut = L.getObject(lt);
2176
2182
  if (ut != null) {
2177
- ut.transformByState({ left: k, top: ae, width: be, height: ot, angle: at, flipX: ct, flipY: dt, skewX: jt, skewY: $t });
2183
+ ut.transformByState({ left: z, top: B, width: be, height: ot, angle: at, flipX: ct, flipY: dt, skewX: jt, skewY: $t });
2178
2184
  return;
2179
2185
  }
2180
2186
  const Me = Ct({
@@ -2195,15 +2201,15 @@ let tt = class extends ne {
2195
2201
  height: Me.height,
2196
2202
  zIndex: this._drawingManagerService.getDrawingOrder(w, y).length - 1
2197
2203
  }, de = new Ue(lt, ht);
2198
- G.addObject(de, Ft), E.allowTransform !== !1 && G.attachTransformerTo(de);
2199
- const Q = new _t(), ye = G.getMainViewport(), le = {
2204
+ L.addObject(de, Ft), E.allowTransform !== !1 && L.attachTransformerTo(de);
2205
+ const ee = new _t(), ye = L.getMainViewport(), le = {
2200
2206
  top: 0,
2201
2207
  //viewMain.top,
2202
2208
  left: ye.left,
2203
2209
  bottom: ye.bottom,
2204
2210
  right: ye.right
2205
2211
  }, ue = {
2206
- dispose: Q,
2212
+ dispose: ee,
2207
2213
  rect: de,
2208
2214
  // position$,
2209
2215
  unitId: w,
@@ -2212,9 +2218,9 @@ let tt = class extends ne {
2212
2218
  domAnchor: n,
2213
2219
  scrollDirectionResponse: "HORIZONTAL"
2214
2220
  /* HORIZONTAL */
2215
- }, gt = ge(de, L.renderUnit.scene, x.skeleton, T.worksheet, ue), Te = new ke(gt);
2221
+ }, gt = ge(de, G.renderUnit.scene, x.skeleton, T.worksheet, ue), Te = new ke(gt);
2216
2222
  ue.position$ = Te;
2217
- let Xe = {
2223
+ let Le = {
2218
2224
  position$: Te,
2219
2225
  id: D,
2220
2226
  componentKey: E.componentKey,
@@ -2225,25 +2231,25 @@ let tt = class extends ne {
2225
2231
  onPointerUp: () => {
2226
2232
  },
2227
2233
  onWheel: (j) => {
2228
- K.dispatchEvent(new WheelEvent(j.type, j));
2234
+ J.dispatchEvent(new WheelEvent(j.type, j));
2229
2235
  },
2230
2236
  data: H,
2231
2237
  unitId: w
2232
2238
  };
2233
- e.eventPassThrough && (Xe = {
2234
- ...Xe,
2239
+ e.eventPassThrough && (Le = {
2240
+ ...Le,
2235
2241
  onPointerDown: (j) => {
2236
- K.dispatchEvent(new PointerEvent(j.type, j));
2242
+ J.dispatchEvent(new PointerEvent(j.type, j));
2237
2243
  },
2238
2244
  onPointerMove: (j) => {
2239
- K.dispatchEvent(new PointerEvent(j.type, j));
2245
+ J.dispatchEvent(new PointerEvent(j.type, j));
2240
2246
  },
2241
2247
  onPointerUp: (j) => {
2242
- K.dispatchEvent(new PointerEvent(j.type, j));
2248
+ J.dispatchEvent(new PointerEvent(j.type, j));
2243
2249
  }
2244
- }), this._canvasFloatDomService.addFloatDom(Xe);
2250
+ }), this._canvasFloatDomService.addFloatDom(Le);
2245
2251
  const ft = de.onTransformChange$.subscribeEvent(() => {
2246
- const j = ge(de, L.renderUnit.scene, x.skeleton, T.worksheet, ue);
2252
+ const j = ge(de, G.renderUnit.scene, x.skeleton, T.worksheet, ue);
2247
2253
  Te.next(
2248
2254
  j
2249
2255
  );
@@ -2260,21 +2266,21 @@ let tt = class extends ne {
2260
2266
  left: p.absolute.left,
2261
2267
  top: p.absolute.top
2262
2268
  }
2263
- }, n), Le = Ie({ unitId: w, subUnitId: y, drawingId: D }), Ve = new Ue(Le, {
2269
+ }, n), Ve = Ie({ unitId: w, subUnitId: y, drawingId: D }), He = new Ue(Ve, {
2264
2270
  left: Ee.startX,
2265
2271
  top: 0,
2266
2272
  width: n.width,
2267
2273
  height: n.height,
2268
2274
  zIndex: this._drawingManagerService.getDrawingOrder(w, y).length - 1
2269
- }), mt = ge(Ve, L.renderUnit.scene, x.skeleton, T.worksheet, ue);
2275
+ }), mt = ge(He, G.renderUnit.scene, x.skeleton, T.worksheet, ue);
2270
2276
  Te.next(mt);
2271
2277
  }));
2272
2278
  const he = (C = this._renderManagerService.getRenderById(w)) == null ? void 0 : C.with(V);
2273
2279
  he == null || he.currentSkeleton$.subscribe((j) => {
2274
2280
  j && c.sheetId !== j.sheetId && this._removeDom(f, !0);
2275
- }), Q.add(() => {
2281
+ }), ee.add(() => {
2276
2282
  this._canvasFloatDomService.removeFloatDom(D);
2277
- }), ft && Q.add(ft), this._domLayerInfoMap.set(D, ue);
2283
+ }), ft && ee.add(ft), this._domLayerInfoMap.set(D, ue);
2278
2284
  }
2279
2285
  return {
2280
2286
  id: f,
@@ -2296,16 +2302,16 @@ let tt = class extends ne {
2296
2302
  // eslint-disable-next-line max-lines-per-function
2297
2303
  _createRangePositionObserver(t, e, n) {
2298
2304
  let { startRow: r, startColumn: s } = t;
2299
- const o = Je(r, s, n), a = new ke(o), d = Je(t.endRow, t.endColumn, n), u = new ke(d), c = () => {
2300
- const m = Je(r, s, n), _ = Je(t.endRow, t.endColumn, n);
2305
+ const o = Ze(r, s, n), a = new ke(o), d = Ze(t.endRow, t.endColumn, n), u = new ke(d), c = () => {
2306
+ const m = Ze(r, s, n), _ = Ze(t.endRow, t.endColumn, n);
2301
2307
  a.next(m), u.next(_);
2302
2308
  }, l = new _t();
2303
2309
  l.add(e.engine.clientRect$.subscribe(() => c())), l.add(this._commandService.onCommandExecuted((m) => {
2304
- if (m.id === gi.id && m.params.rowsAutoHeightInfo.findIndex((v) => v.row === r) > -1) {
2310
+ if (m.id === fi.id && m.params.rowsAutoHeightInfo.findIndex((v) => v.row === r) > -1) {
2305
2311
  c();
2306
2312
  return;
2307
2313
  }
2308
- (fi.indexOf(m.id) > -1 || m.id === Fr.id || m.id === _n.id) && c();
2314
+ (mi.indexOf(m.id) > -1 || m.id === Fr.id || m.id === _n.id) && c();
2309
2315
  }));
2310
2316
  const g = (m, _) => {
2311
2317
  r = m, s = _, c();
@@ -2323,7 +2329,7 @@ let tt = class extends ne {
2323
2329
  endY: d.bottom
2324
2330
  }), f = a.pipe(
2325
2331
  Re((m) => {
2326
- const _ = Je(t.endRow, t.endColumn, n);
2332
+ const _ = Ze(t.endRow, t.endColumn, n);
2327
2333
  return {
2328
2334
  rotate: 0,
2329
2335
  width: _.right - m.left,
@@ -2349,16 +2355,16 @@ let tt = class extends ne {
2349
2355
  };
2350
2356
  }
2351
2357
  };
2352
- tt = ys([
2353
- Ce(0, A(J)),
2358
+ tt = Ts([
2359
+ Ce(0, A(Z)),
2354
2360
  Ce(1, Se),
2355
2361
  Ce(2, A(X)),
2356
- Ce(3, ie),
2357
- Ce(4, A(Wi)),
2358
- Ce(5, re),
2362
+ Ce(3, se),
2363
+ Ce(4, A(Bi)),
2364
+ Ce(5, ie),
2359
2365
  Ce(6, A(Jr))
2360
2366
  ], tt);
2361
- function Je(i, t, e) {
2367
+ function Ze(i, t, e) {
2362
2368
  const n = e.getCellWithCoordByIndex(i, t), r = n.isMergedMainCell ? n.mergeInfo : n;
2363
2369
  return {
2364
2370
  left: r.startX,
@@ -2404,8 +2410,8 @@ function Dt(i, t) {
2404
2410
  const e = Number.parseFloat(i);
2405
2411
  return t * e / 100;
2406
2412
  }
2407
- const Ts = (i) => {
2408
- const { floatDomInfos: t, scene: e, skeleton: n, worksheet: r } = i, s = Qi(() => t.map((o) => {
2413
+ const Os = (i) => {
2414
+ const { floatDomInfos: t, scene: e, skeleton: n, worksheet: r } = i, s = es(() => t.map((o) => {
2409
2415
  const { width: a, height: d, angle: u, left: c, top: l } = o.transform, g = Ir(
2410
2416
  {
2411
2417
  left: c != null ? c : 0,
@@ -2445,14 +2451,14 @@ const Ts = (i) => {
2445
2451
  };
2446
2452
  return [o.drawingId, m];
2447
2453
  }), [t, e, n, r]);
2448
- return /* @__PURE__ */ oe("div", { style: { position: "absolute", top: 0, left: 0 }, children: s.map(([o, a]) => /* @__PURE__ */ oe(Bi, { layer: a, id: o, position: a.position }, o)) });
2454
+ return /* @__PURE__ */ ae("div", { style: { position: "absolute", top: 0, left: 0 }, children: s.map(([o, a]) => /* @__PURE__ */ ae(ji, { layer: a, id: o, position: a.position }, o)) });
2449
2455
  };
2450
- var Es = Object.getOwnPropertyDescriptor, Os = (i, t, e, n) => {
2451
- for (var r = n > 1 ? void 0 : n ? Es(t, e) : t, s = i.length - 1, o; s >= 0; s--)
2456
+ var Us = Object.getOwnPropertyDescriptor, Ps = (i, t, e, n) => {
2457
+ for (var r = n > 1 ? void 0 : n ? Us(t, e) : t, s = i.length - 1, o; s >= 0; s--)
2452
2458
  (o = i[s]) && (r = o(r) || r);
2453
2459
  return r;
2454
2460
  }, De = (i, t) => (e, n) => t(e, n, i);
2455
- let Ot = class extends ne {
2461
+ let Ot = class extends re {
2456
2462
  constructor(i, t, e, n, r, s, o) {
2457
2463
  super(), this._sheetPrintInterceptorService = i, this._drawingRenderService = t, this._drawingManagerService = e, this._renderManagerService = n, this._canvasFloatDomManagerService = r, this._componetManager = s, this._injector = o, this._initPrinting(), this._initPrintingDom();
2458
2464
  }
@@ -2465,7 +2471,7 @@ let Ot = class extends ne {
2465
2471
  const { unitId: n, scene: r, subUnitId: s } = t, o = this._drawingManagerService.getDrawingDataForUnit(n), a = o == null ? void 0 : o[s];
2466
2472
  return a && a.order.forEach((d) => {
2467
2473
  const u = a.data[d];
2468
- u.drawingType !== B.DRAWING_CHART && u.drawingType !== B.DRAWING_DOM && this._drawingRenderService.renderDrawing(u, r);
2474
+ u.drawingType !== W.DRAWING_CHART && u.drawingType !== W.DRAWING_DOM && this._drawingRenderService.renderDrawing(u, r);
2469
2475
  }), e();
2470
2476
  }
2471
2477
  }
@@ -2486,7 +2492,7 @@ let Ot = class extends ne {
2486
2492
  return e(i);
2487
2493
  const { scaleX: u, scaleY: c } = s.scene, l = i ? { ...i } : { startColumn: 0, endColumn: 0, endRow: 0, startRow: 0 }, g = d.order.map((h) => d.data[h]);
2488
2494
  return g.length ? (g.forEach((h) => {
2489
- if (!h.groupId && h.transform && je.isDefine(h.transform.left) && je.isDefine(h.transform.top) && je.isDefine(h.transform.width) && je.isDefine(h.transform.height)) {
2495
+ if (!h.groupId && h.transform && $e.isDefine(h.transform.left) && $e.isDefine(h.transform.top) && $e.isDefine(h.transform.width) && $e.isDefine(h.transform.height)) {
2490
2496
  const f = o.skeleton.getCellIndexByOffset(h.transform.left, h.transform.top, u, c, { x: 0, y: 0 }), p = o.skeleton.getCellIndexByOffset(h.transform.left + h.transform.width, h.transform.top + h.transform.height, u, c, { x: 0, y: 0 });
2491
2497
  f.column < l.startColumn && (l.startColumn = f.column), f.row < l.startRow && (l.startRow = f.row), l.endRow < p.row && (l.endRow = p.row), l.endColumn < p.column && (l.endColumn = p.column);
2492
2498
  }
@@ -2506,12 +2512,12 @@ let Ot = class extends ne {
2506
2512
  if (o) {
2507
2513
  const a = o.order.map((u) => {
2508
2514
  const c = o.data[u];
2509
- if (c.drawingType === B.DRAWING_CHART)
2515
+ if (c.drawingType === W.DRAWING_CHART)
2510
2516
  return {
2511
2517
  ...c,
2512
2518
  componentKey: this._componetManager.get(Qr)
2513
2519
  };
2514
- if (c.drawingType === B.DRAWING_DOM) {
2520
+ if (c.drawingType === W.DRAWING_DOM) {
2515
2521
  const l = this._sheetPrintInterceptorService.getPrintComponent(c.componentKey);
2516
2522
  return {
2517
2523
  ...c,
@@ -2519,12 +2525,12 @@ let Ot = class extends ne {
2519
2525
  };
2520
2526
  }
2521
2527
  return null;
2522
- }).filter(Boolean), d = ji(Ts, this._injector);
2523
- return Di(
2524
- /* @__PURE__ */ oe(d, { floatDomInfos: a, scene: t.scene, skeleton: t.skeleton, worksheet: t.worksheet }),
2528
+ }).filter(Boolean), d = $i(Os, this._injector);
2529
+ return Ri(
2530
+ /* @__PURE__ */ ae(d, { floatDomInfos: a, scene: t.scene, skeleton: t.skeleton, worksheet: t.worksheet }),
2525
2531
  t.root
2526
2532
  ), i == null || i.add(() => {
2527
- Ri(t.root);
2533
+ bi(t.root);
2528
2534
  }), e(i);
2529
2535
  }
2530
2536
  }
@@ -2533,21 +2539,21 @@ let Ot = class extends ne {
2533
2539
  );
2534
2540
  }
2535
2541
  };
2536
- Ot = Os([
2542
+ Ot = Ps([
2537
2543
  De(0, A(xr)),
2538
2544
  De(1, A(lr)),
2539
- De(2, ie),
2540
- De(3, J),
2545
+ De(2, se),
2546
+ De(3, Z),
2541
2547
  De(4, A(tt)),
2542
2548
  De(5, A(dr)),
2543
- De(6, A(Ge))
2549
+ De(6, A(Xe))
2544
2550
  ], Ot);
2545
- var Us = Object.getOwnPropertyDescriptor, Ps = (i, t, e, n) => {
2546
- for (var r = n > 1 ? void 0 : n ? Us(t, e) : t, s = i.length - 1, o; s >= 0; s--)
2551
+ var As = Object.getOwnPropertyDescriptor, Ns = (i, t, e, n) => {
2552
+ for (var r = n > 1 ? void 0 : n ? As(t, e) : t, s = i.length - 1, o; s >= 0; s--)
2547
2553
  (o = i[s]) && (r = o(r) || r);
2548
2554
  return r;
2549
2555
  }, me = (i, t) => (e, n) => t(e, n, i);
2550
- const As = [
2556
+ const ks = [
2551
2557
  Ln.id,
2552
2558
  Vn.id,
2553
2559
  Hn.id,
@@ -2567,15 +2573,15 @@ const As = [
2567
2573
  sr.id,
2568
2574
  or.id,
2569
2575
  ar.id
2570
- ], Ns = [
2571
- mi.id,
2576
+ ], Ws = [
2572
2577
  pi.id,
2573
2578
  wi.id,
2574
2579
  _i.id,
2575
2580
  Si.id,
2576
- vi.id
2581
+ vi.id,
2582
+ Ii.id
2577
2583
  ];
2578
- let rn = class extends ne {
2584
+ let rn = class extends re {
2579
2585
  constructor(i, t, e, n, r, s, o, a, d) {
2580
2586
  super(), this._context = i, this._renderManagerService = t, this._commandService = e, this._selectionRenderService = n, this._skeletonManagerService = r, this._sheetInterceptorService = s, this._sheetDrawingService = o, this._drawingManagerService = a, this._univerInstanceService = d, this._sheetInterceptorListener(), this._commandListener(), this._sheetRefreshListener();
2581
2587
  }
@@ -2584,7 +2590,7 @@ let rn = class extends ne {
2584
2590
  this._sheetInterceptorService.interceptAfterCommand({
2585
2591
  /* eslint-disable-next-line complexity */
2586
2592
  getMutations: (i) => {
2587
- if (!As.includes(i.id))
2593
+ if (!ks.includes(i.id))
2588
2594
  return { redos: [], undos: [] };
2589
2595
  if (i.params == null)
2590
2596
  return { redos: [], undos: [] };
@@ -2643,7 +2649,7 @@ let rn = class extends ne {
2643
2649
  );
2644
2650
  }
2645
2651
  _getRangeMoveUndo(i, t) {
2646
- const e = se(this._univerInstanceService);
2652
+ const e = oe(this._univerInstanceService);
2647
2653
  if (e == null)
2648
2654
  return { redos: [], undos: [] };
2649
2655
  const n = e.unitId, r = e.subUnitId, s = [], o = [], a = this._sheetDrawingService.getDrawingData(n, r), d = [], u = [];
@@ -2696,7 +2702,7 @@ let rn = class extends ne {
2696
2702
  S = w == null ? void 0 : w.newSheetTransform, C = w == null ? void 0 : w.newTransform;
2697
2703
  }
2698
2704
  if (S != null && C != null) {
2699
- const w = z(S, this._selectionRenderService, this._skeletonManagerService);
2705
+ const w = K(S, this._selectionRenderService, this._skeletonManagerService);
2700
2706
  n.push({ ...e, sheetTransform: S, transform: w });
2701
2707
  }
2702
2708
  return { updateDrawings: n, deleteDrawings: r };
@@ -2899,7 +2905,7 @@ let rn = class extends ne {
2899
2905
  this._remainDrawingSize(u, s, a);
2900
2906
  continue;
2901
2907
  }
2902
- const w = z({ ...d }, this._selectionRenderService, this._skeletonManagerService);
2908
+ const w = K({ ...d }, this._selectionRenderService, this._skeletonManagerService);
2903
2909
  if (w != null) {
2904
2910
  s.push({
2905
2911
  ...a,
@@ -2916,7 +2922,7 @@ let rn = class extends ne {
2916
2922
  if (t === "insert")
2917
2923
  e = i.unitId, n = i.subUnitId;
2918
2924
  else {
2919
- const r = se(this._univerInstanceService);
2925
+ const r = oe(this._univerInstanceService);
2920
2926
  if (r == null)
2921
2927
  return;
2922
2928
  e = r.unitId, n = r.subUnitId;
@@ -2925,7 +2931,7 @@ let rn = class extends ne {
2925
2931
  }
2926
2932
  _moveRangeInterceptor(i) {
2927
2933
  var I, R;
2928
- const { toRange: t, fromRange: e } = i, n = se(this._univerInstanceService);
2934
+ const { toRange: t, fromRange: e } = i, n = oe(this._univerInstanceService);
2929
2935
  if (!n)
2930
2936
  return { redos: [], undos: [] };
2931
2937
  const { unitId: r, subUnitId: s } = n, o = (R = (I = this._renderManagerService.getRenderById(r)) == null ? void 0 : I.with(V)) == null ? void 0 : R.getCurrentSkeleton();
@@ -2954,7 +2960,7 @@ let rn = class extends ne {
2954
2960
  const C = S.sheetTransform, w = {
2955
2961
  to: { ...C.to, row: C.to.row + m, column: C.to.column + _ },
2956
2962
  from: { ...C.from, row: C.from.row + m, column: C.from.column + _ }
2957
- }, y = z(w, this._selectionRenderService, this._skeletonManagerService);
2963
+ }, y = K(w, this._selectionRenderService, this._skeletonManagerService);
2958
2964
  return {
2959
2965
  unitId: r,
2960
2966
  subUnitId: s,
@@ -3066,7 +3072,7 @@ let rn = class extends ne {
3066
3072
  c = {
3067
3073
  from: { ...o },
3068
3074
  to: { ...a, column: u + s }
3069
- }, l = z(c, this._selectionRenderService, this._skeletonManagerService);
3075
+ }, l = K(c, this._selectionRenderService, this._skeletonManagerService);
3070
3076
  else
3071
3077
  return {
3072
3078
  newSheetTransform: $({ ...t }, this._selectionRenderService),
@@ -3089,7 +3095,7 @@ let rn = class extends ne {
3089
3095
  c = {
3090
3096
  from: { ...o, column: d - s },
3091
3097
  to: { ...a, column: u - s }
3092
- }, l = z(c, this._selectionRenderService, this._skeletonManagerService);
3098
+ }, l = K(c, this._selectionRenderService, this._skeletonManagerService);
3093
3099
  else {
3094
3100
  if (d >= e && u <= n)
3095
3101
  return null;
@@ -3098,7 +3104,7 @@ let rn = class extends ne {
3098
3104
  c = {
3099
3105
  from: { ...o },
3100
3106
  to: { ...a, column: u - s }
3101
- }, l = z(c, this._selectionRenderService, this._skeletonManagerService);
3107
+ }, l = K(c, this._selectionRenderService, this._skeletonManagerService);
3102
3108
  else
3103
3109
  return {
3104
3110
  newSheetTransform: $({ ...t }, this._selectionRenderService),
@@ -3126,7 +3132,7 @@ let rn = class extends ne {
3126
3132
  c = {
3127
3133
  from: { ...o },
3128
3134
  to: { ...a, column: e - 1, columnOffset: g.endX - g.startX }
3129
- }, l = z(c, this._selectionRenderService, this._skeletonManagerService);
3135
+ }, l = K(c, this._selectionRenderService, this._skeletonManagerService);
3130
3136
  }
3131
3137
  }
3132
3138
  return c != null && l != null ? {
@@ -3155,7 +3161,7 @@ let rn = class extends ne {
3155
3161
  ...a,
3156
3162
  row: u + s
3157
3163
  }
3158
- }, l = z(c, this._selectionRenderService, this._skeletonManagerService);
3164
+ }, l = K(c, this._selectionRenderService, this._skeletonManagerService);
3159
3165
  else
3160
3166
  return {
3161
3167
  newSheetTransform: $({ ...t }, this._selectionRenderService),
@@ -3178,7 +3184,7 @@ let rn = class extends ne {
3178
3184
  c = {
3179
3185
  from: { ...o, row: d - s },
3180
3186
  to: { ...a, row: u - s }
3181
- }, l = z(c, this._selectionRenderService, this._skeletonManagerService);
3187
+ }, l = K(c, this._selectionRenderService, this._skeletonManagerService);
3182
3188
  else {
3183
3189
  if (d >= e && u <= n)
3184
3190
  return null;
@@ -3187,7 +3193,7 @@ let rn = class extends ne {
3187
3193
  c = {
3188
3194
  from: { ...o },
3189
3195
  to: { ...a, row: u - s }
3190
- }, l = z(c, this._selectionRenderService, this._skeletonManagerService);
3196
+ }, l = K(c, this._selectionRenderService, this._skeletonManagerService);
3191
3197
  else
3192
3198
  return {
3193
3199
  newSheetTransform: $({ ...t }, this._selectionRenderService),
@@ -3210,7 +3216,7 @@ let rn = class extends ne {
3210
3216
  c = {
3211
3217
  from: { ...o },
3212
3218
  to: { ...a, row: e - 1, rowOffset: g.endY - g.startY }
3213
- }, l = z(c, this._selectionRenderService, this._skeletonManagerService);
3219
+ }, l = K(c, this._selectionRenderService, this._skeletonManagerService);
3214
3220
  }
3215
3221
  }
3216
3222
  return c != null && l != null ? {
@@ -3224,7 +3230,7 @@ let rn = class extends ne {
3224
3230
  // but the skeleton changes like other render modules. These two signals are not equivalent.
3225
3231
  // As a temp solution, I subscribed to activate$ here.
3226
3232
  this._commandService.onCommandExecuted((i) => {
3227
- if (i.id === Ii.id) {
3233
+ if (i.id === Ci.id) {
3228
3234
  const { unitId: t, subUnitId: e } = i.params;
3229
3235
  this._updateDrawings(t, e);
3230
3236
  }
@@ -3264,7 +3270,7 @@ let rn = class extends ne {
3264
3270
  d != null && Object.keys(d).forEach((u) => {
3265
3271
  if (s === i && a === t) {
3266
3272
  const c = d[u];
3267
- c.transform = z(c.sheetTransform, this._selectionRenderService, this._skeletonManagerService), n.push(d[u]);
3273
+ c.transform = K(c.sheetTransform, this._selectionRenderService, this._skeletonManagerService), n.push(d[u]);
3268
3274
  } else
3269
3275
  r.push(d[u]);
3270
3276
  });
@@ -3275,7 +3281,7 @@ let rn = class extends ne {
3275
3281
  _sheetRefreshListener() {
3276
3282
  this.disposeWithMe(
3277
3283
  this._commandService.onCommandExecuted((i) => {
3278
- Ns.includes(i.id) && requestIdleCallback(() => {
3284
+ Ws.includes(i.id) && requestIdleCallback(() => {
3279
3285
  const t = i.params, { unitId: e, subUnitId: n, ranges: r } = t;
3280
3286
  this._refreshDrawingTransform(e, n, r);
3281
3287
  });
@@ -3305,7 +3311,7 @@ let rn = class extends ne {
3305
3311
  endColumn: p
3306
3312
  }
3307
3313
  ) || g > I || h > S) {
3308
- const C = u === O.Position, w = z(a, this._selectionRenderService, this._skeletonManagerService);
3314
+ const C = u === O.Position, w = K(a, this._selectionRenderService, this._skeletonManagerService);
3309
3315
  r.push({
3310
3316
  ...o,
3311
3317
  transform: {
@@ -3320,19 +3326,19 @@ let rn = class extends ne {
3320
3326
  }), r.length !== 0 && (this._drawingManagerService.refreshTransform(r), this._commandService.syncExecuteCommand(Y.id, [i]));
3321
3327
  }
3322
3328
  };
3323
- rn = Ps([
3324
- me(1, J),
3329
+ rn = Ns([
3330
+ me(1, Z),
3325
3331
  me(2, X),
3326
- me(3, xe),
3332
+ me(3, Ye),
3327
3333
  me(4, A(V)),
3328
3334
  me(5, A(At)),
3329
- me(6, re),
3330
- me(7, ie),
3335
+ me(6, ie),
3336
+ me(7, se),
3331
3337
  me(8, Se)
3332
3338
  ], rn);
3333
- const ks = (i) => {
3339
+ const Bs = (i) => {
3334
3340
  var v;
3335
- const t = qe(X), e = qe(nt), n = qe(ie), r = qe(J), { drawings: s } = i, o = s[0];
3341
+ const t = Qe(X), e = Qe(nt), n = Qe(se), r = Qe(Z), { drawings: s } = i, o = s[0];
3336
3342
  if (o == null)
3337
3343
  return;
3338
3344
  const { unitId: a } = o, d = r.getRenderById(a), u = d == null ? void 0 : d.scene;
@@ -3393,27 +3399,27 @@ const ks = (i) => {
3393
3399
  return /* @__PURE__ */ qt(
3394
3400
  "div",
3395
3401
  {
3396
- className: bi("univer-grid univer-gap-2 univer-py-2 univer-text-gray-400", {
3402
+ className: Mi("univer-grid univer-gap-2 univer-py-2 univer-text-gray-400", {
3397
3403
  "univer-hidden": !l
3398
3404
  }),
3399
3405
  children: [
3400
- /* @__PURE__ */ oe(
3406
+ /* @__PURE__ */ ae(
3401
3407
  "header",
3402
3408
  {
3403
3409
  className: "univer-text-gray-600 dark:!univer-text-gray-200",
3404
- children: /* @__PURE__ */ oe("div", { children: e.t("drawing-anchor.title") })
3410
+ children: /* @__PURE__ */ ae("div", { children: e.t("drawing-anchor.title") })
3405
3411
  }
3406
3412
  ),
3407
- /* @__PURE__ */ oe("div", { children: /* @__PURE__ */ qt(Mi, { value: f, onChange: _, direction: "vertical", children: [
3408
- /* @__PURE__ */ oe(Yt, { value: O.Both, children: e.t("drawing-anchor.both") }),
3409
- /* @__PURE__ */ oe(Yt, { value: O.Position, children: e.t("drawing-anchor.position") }),
3410
- /* @__PURE__ */ oe(Yt, { value: O.None, children: e.t("drawing-anchor.none") })
3413
+ /* @__PURE__ */ ae("div", { children: /* @__PURE__ */ qt(yi, { value: f, onChange: _, direction: "vertical", children: [
3414
+ /* @__PURE__ */ ae(Yt, { value: O.Both, children: e.t("drawing-anchor.both") }),
3415
+ /* @__PURE__ */ ae(Yt, { value: O.Position, children: e.t("drawing-anchor.position") }),
3416
+ /* @__PURE__ */ ae(Yt, { value: O.None, children: e.t("drawing-anchor.none") })
3411
3417
  ] }) })
3412
3418
  ]
3413
3419
  }
3414
3420
  );
3415
- }, Ws = () => {
3416
- const i = qe(ie), t = i.getFocusDrawings(), [e, n] = Qt(t);
3421
+ }, js = () => {
3422
+ const i = Qe(se), t = i.getFocusDrawings(), [e, n] = Qt(t);
3417
3423
  return ur(() => {
3418
3424
  const r = i.focus$.subscribe((s) => {
3419
3425
  n(s);
@@ -3422,21 +3428,21 @@ const ks = (i) => {
3422
3428
  r.unsubscribe();
3423
3429
  };
3424
3430
  }, []), !!(e != null && e.length) && /* @__PURE__ */ qt("div", { className: "univer-text-sm", children: [
3425
- /* @__PURE__ */ oe(zi, { drawings: e }),
3426
- /* @__PURE__ */ oe(ks, { drawings: e })
3431
+ /* @__PURE__ */ ae(Ki, { drawings: e }),
3432
+ /* @__PURE__ */ ae(Bs, { drawings: e })
3427
3433
  ] });
3428
3434
  }, Cr = "sheet.menu.image";
3429
- function Bs(i) {
3435
+ function $s(i) {
3430
3436
  return {
3431
3437
  id: Cr,
3432
3438
  type: cn.SUBITEMS,
3433
3439
  icon: "AddImageIcon",
3434
3440
  tooltip: "sheetImage.title",
3435
3441
  hidden$: an(i, F.UNIVER_SHEET),
3436
- disabled$: Yr(i, { workbookTypes: [zt], worksheetTypes: [Kt], rangeTypes: [Ci] })
3442
+ disabled$: Yr(i, { workbookTypes: [zt], worksheetTypes: [Kt], rangeTypes: [Di] })
3437
3443
  };
3438
3444
  }
3439
- function js(i) {
3445
+ function Fs(i) {
3440
3446
  return {
3441
3447
  id: Bt.id,
3442
3448
  title: "sheetImage.upload.float",
@@ -3444,7 +3450,7 @@ function js(i) {
3444
3450
  hidden$: an(i, F.UNIVER_SHEET)
3445
3451
  };
3446
3452
  }
3447
- function $s(i) {
3453
+ function xs(i) {
3448
3454
  return {
3449
3455
  id: dn.id,
3450
3456
  title: "sheetImage.upload.cell",
@@ -3452,89 +3458,89 @@ function $s(i) {
3452
3458
  hidden$: an(i, F.UNIVER_SHEET)
3453
3459
  };
3454
3460
  }
3455
- const Fs = {
3456
- [$i.MEDIA]: {
3461
+ const Ys = {
3462
+ [Fi.MEDIA]: {
3457
3463
  [Cr]: {
3458
3464
  order: 0,
3459
- menuItemFactory: Bs,
3465
+ menuItemFactory: $s,
3460
3466
  [Bt.id]: {
3461
3467
  order: 0,
3462
- menuItemFactory: js
3468
+ menuItemFactory: Fs
3463
3469
  },
3464
3470
  [dn.id]: {
3465
3471
  order: 1,
3466
- menuItemFactory: $s
3472
+ menuItemFactory: xs
3467
3473
  }
3468
3474
  }
3469
3475
  }
3470
3476
  };
3471
3477
  function st(i) {
3472
- return !i.getContextValue(ti) && !i.getContextValue(ni) && !i.getContextValue(ri) && i.getContextValue($e);
3478
+ return !i.getContextValue(ti) && !i.getContextValue(ni) && !i.getContextValue(ri) && i.getContextValue(Fe);
3473
3479
  }
3474
- const xs = {
3480
+ const Gs = {
3475
3481
  id: it.id,
3476
3482
  description: "shortcut.drawing-move-down",
3477
3483
  group: "4_drawing-view",
3478
- binding: Fe.ARROW_DOWN,
3484
+ binding: xe.ARROW_DOWN,
3479
3485
  priority: 100,
3480
3486
  preconditions: st,
3481
3487
  staticParameters: {
3482
3488
  direction: _e.DOWN
3483
3489
  }
3484
- }, Ys = {
3490
+ }, Xs = {
3485
3491
  id: it.id,
3486
3492
  description: "shortcut.drawing-move-up",
3487
3493
  group: "4_drawing-view",
3488
- binding: Fe.ARROW_UP,
3494
+ binding: xe.ARROW_UP,
3489
3495
  priority: 100,
3490
3496
  preconditions: st,
3491
3497
  staticParameters: {
3492
3498
  direction: _e.UP
3493
3499
  }
3494
- }, Gs = {
3500
+ }, Ls = {
3495
3501
  id: it.id,
3496
3502
  description: "shortcut.drawing-move-left",
3497
3503
  group: "4_drawing-view",
3498
- binding: Fe.ARROW_LEFT,
3504
+ binding: xe.ARROW_LEFT,
3499
3505
  priority: 100,
3500
3506
  preconditions: st,
3501
3507
  staticParameters: {
3502
3508
  direction: _e.LEFT
3503
3509
  }
3504
- }, Xs = {
3510
+ }, Vs = {
3505
3511
  id: it.id,
3506
3512
  description: "shortcut.drawing-move-right",
3507
3513
  group: "4_drawing-view",
3508
- binding: Fe.ARROW_RIGHT,
3514
+ binding: xe.ARROW_RIGHT,
3509
3515
  priority: 100,
3510
3516
  preconditions: st,
3511
3517
  staticParameters: {
3512
3518
  direction: _e.RIGHT
3513
3519
  }
3514
- }, Ls = {
3520
+ }, Hs = {
3515
3521
  id: hr.id,
3516
3522
  description: "shortcut.drawing-delete",
3517
3523
  group: "4_drawing-view",
3518
3524
  // when focusing on any other input tag do not trigger this shortcut
3519
3525
  preconditions: st,
3520
- binding: Fe.DELETE,
3521
- mac: Fe.BACKSPACE
3526
+ binding: xe.DELETE,
3527
+ mac: xe.BACKSPACE
3522
3528
  };
3523
- var Vs = Object.getOwnPropertyDescriptor, Hs = (i, t, e, n) => {
3524
- for (var r = n > 1 ? void 0 : n ? Vs(t, e) : t, s = i.length - 1, o; s >= 0; s--)
3529
+ var zs = Object.getOwnPropertyDescriptor, Ks = (i, t, e, n) => {
3530
+ for (var r = n > 1 ? void 0 : n ? zs(t, e) : t, s = i.length - 1, o; s >= 0; s--)
3525
3531
  (o = i[s]) && (r = o(r) || r);
3526
3532
  return r;
3527
3533
  }, Ne = (i, t) => (e, n) => t(e, n, i);
3528
- let Ut = class extends ne {
3534
+ let Ut = class extends re {
3529
3535
  constructor(i, t, e, n, r, s) {
3530
3536
  super(), this._componentManager = i, this._menuManagerService = t, this._commandService = e, this._shortcutService = n, this._drawingManagerService = r, this._sheetsSelectionsService = s, this._init();
3531
3537
  }
3532
3538
  _initCustomComponents() {
3533
3539
  const i = this._componentManager;
3534
- this.disposeWithMe(i.register(pr, Ws));
3540
+ this.disposeWithMe(i.register(pr, js));
3535
3541
  }
3536
3542
  _initMenus() {
3537
- this._menuManagerService.mergeMenu(Fs);
3543
+ this._menuManagerService.mergeMenu(Ys);
3538
3544
  }
3539
3545
  _initCommands() {
3540
3546
  [
@@ -3556,11 +3562,11 @@ let Ut = class extends ne {
3556
3562
  _initShortcuts() {
3557
3563
  [
3558
3564
  // sheet drawing shortcuts
3559
- xs,
3560
- Ys,
3561
3565
  Gs,
3562
3566
  Xs,
3563
- Ls
3567
+ Ls,
3568
+ Vs,
3569
+ Hs
3564
3570
  ].forEach((i) => {
3565
3571
  this.disposeWithMe(this._shortcutService.registerShortcut(i));
3566
3572
  });
@@ -3569,20 +3575,20 @@ let Ut = class extends ne {
3569
3575
  this._initCommands(), this._initCustomComponents(), this._initMenus(), this._initShortcuts();
3570
3576
  }
3571
3577
  };
3572
- Ut = Hs([
3578
+ Ut = Ks([
3573
3579
  Ne(0, A(dr)),
3574
- Ne(1, Fi),
3580
+ Ne(1, xi),
3575
3581
  Ne(2, X),
3576
- Ne(3, xi),
3577
- Ne(4, ie),
3582
+ Ne(3, Yi),
3583
+ Ne(4, se),
3578
3584
  Ne(5, A(on))
3579
3585
  ], Ut);
3580
- var zs = Object.defineProperty, Ks = Object.getOwnPropertyDescriptor, Js = (i, t, e) => t in i ? zs(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e, Zs = (i, t, e, n) => {
3581
- for (var r = n > 1 ? void 0 : n ? Ks(t, e) : t, s = i.length - 1, o; s >= 0; s--)
3586
+ var Js = Object.defineProperty, Zs = Object.getOwnPropertyDescriptor, qs = (i, t, e) => t in i ? Js(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e, Qs = (i, t, e, n) => {
3587
+ for (var r = n > 1 ? void 0 : n ? Zs(t, e) : t, s = i.length - 1, o; s >= 0; s--)
3582
3588
  (o = i[s]) && (r = o(r) || r);
3583
3589
  return r;
3584
- }, Lt = (i, t) => (e, n) => t(e, n, i), Dr = (i, t, e) => Js(i, typeof t != "symbol" ? t + "" : t, e);
3585
- const qs = "SHEET_IMAGE_UI_PLUGIN";
3590
+ }, Lt = (i, t) => (e, n) => t(e, n, i), Dr = (i, t, e) => qs(i, typeof t != "symbol" ? t + "" : t, e);
3591
+ const eo = "SHEET_IMAGE_UI_PLUGIN";
3586
3592
  let Pt = class extends oi {
3587
3593
  constructor(i = jn, t, e, n) {
3588
3594
  super(), this._config = i, this._injector = t, this._renderManagerService = e, this._configService = n;
@@ -3591,7 +3597,7 @@ let Pt = class extends oi {
3591
3597
  jn,
3592
3598
  this._config
3593
3599
  );
3594
- r && this._configService.setConfig("menu", r, { merge: !0 }), this._configService.setConfig(ss, s);
3600
+ r && this._configService.setConfig("menu", r, { merge: !0 }), this._configService.setConfig(os, s);
3595
3601
  }
3596
3602
  onStarting() {
3597
3603
  ci(this._injector, [
@@ -3638,11 +3644,11 @@ let Pt = class extends oi {
3638
3644
  }
3639
3645
  };
3640
3646
  Dr(Pt, "type", F.UNIVER_SHEET);
3641
- Dr(Pt, "pluginName", qs);
3642
- Pt = Zs([
3643
- ii(Ui, Gi, Ki, di),
3644
- Lt(1, A(Ge)),
3645
- Lt(2, J),
3647
+ Dr(Pt, "pluginName", eo);
3648
+ Pt = Qs([
3649
+ ii(Pi, Xi, Ji, di),
3650
+ Lt(1, A(Xe)),
3651
+ Lt(2, Z),
3646
3652
  Lt(3, si)
3647
3653
  ], Pt);
3648
3654
  export {
@@ -3655,6 +3661,7 @@ export {
3655
3661
  it as MoveDrawingsCommand,
3656
3662
  rt as RemoveSheetDrawingCommand,
3657
3663
  Cr as SHEETS_IMAGE_MENU_ID,
3664
+ Es as SHEET_FLOAT_DOM_PREFIX,
3658
3665
  fr as SetDrawingArrangeCommand,
3659
3666
  Wt as SetSheetDrawingCommand,
3660
3667
  tt as SheetCanvasFloatDomManagerService,
@@ -3663,6 +3670,6 @@ export {
3663
3670
  mr as UngroupSheetDrawingCommand,
3664
3671
  Pt as UniverSheetsDrawingUIPlugin,
3665
3672
  ge as calcSheetFloatDomPosition,
3666
- z as drawingPositionToTransform,
3673
+ K as drawingPositionToTransform,
3667
3674
  $ as transformToDrawingPosition
3668
3675
  };