@univerjs/sheets-drawing-ui 0.12.2 → 0.12.3-experimental.20251205-e439e48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -1,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() {
@@ -1188,9 +1188,12 @@ let Tt = class extends ne {
1188
1188
  this._sheetClipboardService.addClipboardHook({
1189
1189
  id: "SHEET_IMAGE_UI_PLUGIN",
1190
1190
  onBeforeCopy: (t, e, n, r) => {
1191
+ this._copyInfo = null;
1191
1192
  const s = this._focusedDrawings;
1192
1193
  if (s.length > 0) {
1193
1194
  const [o] = s;
1195
+ if (o.drawingType !== W.DRAWING_IMAGE)
1196
+ return;
1194
1197
  if (r === ve.CUT) {
1195
1198
  const d = {
1196
1199
  unitId: t,
@@ -1199,8 +1202,8 @@ let Tt = class extends ne {
1199
1202
  this._commandService.executeCommand(rt.id, d);
1200
1203
  }
1201
1204
  setTimeout(() => {
1202
- const d = Ds();
1203
- 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();
1204
1207
  }, 200);
1205
1208
  const a = {
1206
1209
  unitId: o.unitId,
@@ -1250,7 +1253,10 @@ let Tt = class extends ne {
1250
1253
  return;
1251
1254
  const { startX: o, endX: a, startY: d, endY: u } = s, c = this._drawingService.getDrawingData(t, e), l = this._focusedDrawings.slice();
1252
1255
  if (Object.keys(c).forEach((h) => {
1253
- const f = c[h], { transform: p } = f;
1256
+ const f = c[h];
1257
+ if (f.drawingType !== W.DRAWING_IMAGE)
1258
+ return;
1259
+ const { transform: p } = f;
1254
1260
  if (f.anchorType !== O.Both || !p)
1255
1261
  return;
1256
1262
  const { left: m = 0, top: _ = 0, width: v = 0, height: I = 0 } = p, { drawingStartX: R, drawingEndX: S, drawingStartY: C, drawingEndY: w } = {
@@ -1272,7 +1278,7 @@ let Tt = class extends ne {
1272
1278
  const { pasteType: n, pasteTo: r } = t;
1273
1279
  if (Fn.includes(n))
1274
1280
  return { redos: [], undos: [] };
1275
- 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;
1276
1282
  if (!u || !c)
1277
1283
  return { redos: [], undos: [] };
1278
1284
  const { drawings: g } = l, h = wn(a);
@@ -1314,7 +1320,7 @@ let Tt = class extends ne {
1314
1320
  ...c,
1315
1321
  unitId: n,
1316
1322
  subUnitId: r,
1317
- drawingId: o ? c.drawingId : Qe(),
1323
+ drawingId: o ? c.drawingId : Be(),
1318
1324
  transform: h.transform,
1319
1325
  sheetTransform: h.sheetTransform
1320
1326
  };
@@ -1412,19 +1418,19 @@ let Tt = class extends ne {
1412
1418
  });
1413
1419
  }
1414
1420
  };
1415
- Tt = vs([
1416
- ze(0, $r),
1417
- ze(1, J),
1418
- ze(2, ie),
1419
- ze(3, ki),
1420
- 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)
1421
1427
  ], Tt);
1422
- var Rs = Object.getOwnPropertyDescriptor, bs = (i, t, e, n) => {
1423
- 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--)
1424
1430
  (o = i[s]) && (r = o(r) || r);
1425
1431
  return r;
1426
- }, Ke = (i, t) => (e, n) => t(e, n, i);
1427
- let Et = class extends ne {
1432
+ }, Je = (i, t) => (e, n) => t(e, n, i);
1433
+ let Et = class extends re {
1428
1434
  constructor(i, t, e, n, r) {
1429
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();
1430
1436
  }
@@ -1592,18 +1598,19 @@ let Et = class extends ne {
1592
1598
  );
1593
1599
  }
1594
1600
  };
1595
- Et = bs([
1596
- Ke(0, ie),
1597
- Ke(1, J),
1598
- Ke(2, zr),
1599
- Ke(3, Se),
1600
- 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))
1601
1607
  ], Et);
1602
- var Ms = Object.getOwnPropertyDescriptor, ys = (i, t, e, n) => {
1603
- 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--)
1604
1610
  (o = i[s]) && (r = o(r) || r);
1605
1611
  return r;
1606
1612
  }, Ce = (i, t) => (e, n) => t(e, n, i);
1613
+ const Es = "univer-sheet-float-dom-";
1607
1614
  function Ir(i, t, e, n, r, s = !1) {
1608
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 = {
1609
1616
  left: !0,
@@ -1621,27 +1628,27 @@ function Ir(i, t, e, n, r, s = !1) {
1621
1628
  top: s ? 0 : T,
1622
1629
  left: s ? 0 : D
1623
1630
  };
1624
- 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);
1625
1632
  let M = 0, b = 0;
1626
- 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;
1627
1634
  if (g === 0)
1628
1635
  f.left = !1, M = (p - S) * o, b = (m - S) * o;
1629
1636
  else {
1630
- const k = p - (x - D), ae = m - (x - D);
1631
- 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));
1632
1639
  }
1633
- let L = 0, G = 0;
1640
+ let G = 0, L = 0;
1634
1641
  if (h === 0)
1635
- f.top = !1, L = (_ - C) * a, G = (v - C) * a;
1642
+ f.top = !1, G = (_ - C) * a, L = (v - C) * a;
1636
1643
  else {
1637
- const k = _ - (N - T), ae = v - (N - T);
1638
- 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));
1639
1646
  }
1640
- 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), {
1641
1648
  left: M,
1642
1649
  right: b,
1643
- top: L,
1644
- bottom: G,
1650
+ top: G,
1651
+ bottom: L,
1645
1652
  absolute: f
1646
1653
  };
1647
1654
  }
@@ -1663,23 +1670,23 @@ const ge = (i, t, e, n, r) => {
1663
1670
  absolute: l.absolute
1664
1671
  };
1665
1672
  };
1666
- let tt = class extends ne {
1673
+ let tt = class extends re {
1667
1674
  constructor(t, e, n, r, s, o, a) {
1668
1675
  super();
1669
1676
  /**
1670
1677
  * for update dom container position when scrolling and zoom
1671
1678
  */
1672
- ee(this, "_domLayerInfoMap", /* @__PURE__ */ new Map());
1673
- ee(this, "_transformChange$", new Xt());
1674
- ee(this, "transformChange$", this._transformChange$.asObservable());
1675
- ee(this, "_add$", new Xt());
1676
- ee(this, "add$", this._add$.asObservable());
1677
- ee(this, "_remove$", new Xt());
1678
- 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());
1679
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();
1680
1687
  }
1681
1688
  _bindScrollEvent() {
1682
- 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(() => {
1683
1690
  this._scrollUpdateListener();
1684
1691
  });
1685
1692
  }
@@ -1704,18 +1711,18 @@ let tt = class extends ne {
1704
1711
  // eslint-disable-next-line max-lines-per-function
1705
1712
  this._drawingManagerService.add$.subscribe((t) => {
1706
1713
  t.forEach((e) => {
1707
- var K;
1708
- 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);
1709
1716
  if (!d)
1710
1717
  return;
1711
1718
  const u = d.getActiveSheet().getSheetId();
1712
1719
  if (!a || !o)
1713
1720
  return;
1714
- 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);
1715
1722
  if (!c)
1716
1723
  return;
1717
1724
  const { transform: l, drawingType: g, data: h } = a;
1718
- if (g !== B.DRAWING_DOM && g !== B.DRAWING_CHART)
1725
+ if (g !== W.DRAWING_DOM && g !== W.DRAWING_CHART)
1719
1726
  return;
1720
1727
  const f = this._getSceneAndTransformerByDrawingSearch(n);
1721
1728
  if (f == null)
@@ -1736,49 +1743,51 @@ let tt = class extends ne {
1736
1743
  width: I,
1737
1744
  height: R,
1738
1745
  zIndex: this._drawingManagerService.getDrawingOrder(n, r).length - 1
1739
- }, b = g === B.DRAWING_CHART;
1746
+ }, b = g === W.DRAWING_CHART;
1740
1747
  if (M.rotateEnabled = !1, b) {
1741
- const k = h ? h.backgroundColor : "white";
1742
- 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;
1743
1750
  }
1744
1751
  const N = new Ue(T, M);
1745
1752
  b && N.setObjectType(mn.CHART), p.addObject(N, Ft), a.allowTransform !== !1 && p.attachTransformerTo(N);
1746
- 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 = {
1747
1754
  dispose: x,
1748
1755
  rect: N,
1749
1756
  position$: H,
1750
1757
  unitId: n,
1751
1758
  subUnitId: r,
1752
- id: s
1759
+ id: s,
1760
+ domId: G
1753
1761
  };
1754
1762
  this._canvasFloatDomService.addFloatDom({
1755
1763
  position$: H,
1756
1764
  id: s,
1765
+ domId: G,
1757
1766
  componentKey: a.componentKey,
1758
- onPointerDown: (k) => {
1759
- m.dispatchEvent(new PointerEvent(k.type, k));
1767
+ onPointerDown: (B) => {
1768
+ m.dispatchEvent(new PointerEvent(B.type, B));
1760
1769
  },
1761
- onPointerMove: (k) => {
1762
- m.dispatchEvent(new PointerEvent(k.type, k));
1770
+ onPointerMove: (B) => {
1771
+ m.dispatchEvent(new PointerEvent(B.type, B));
1763
1772
  },
1764
- onPointerUp: (k) => {
1765
- m.dispatchEvent(new PointerEvent(k.type, k));
1773
+ onPointerUp: (B) => {
1774
+ m.dispatchEvent(new PointerEvent(B.type, B));
1766
1775
  },
1767
- onWheel: (k) => {
1768
- m.dispatchEvent(new WheelEvent(k.type, k));
1776
+ onWheel: (B) => {
1777
+ m.dispatchEvent(new WheelEvent(B.type, B));
1769
1778
  },
1770
1779
  data: h,
1771
1780
  unitId: n
1772
1781
  });
1773
- const G = N.onTransformChange$.subscribeEvent(() => {
1774
- 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);
1775
1784
  H.next(
1776
- k
1785
+ B
1777
1786
  );
1778
1787
  });
1779
1788
  x.add(() => {
1780
1789
  this._canvasFloatDomService.removeFloatDom(s);
1781
- }), G && x.add(G), this._domLayerInfoMap.set(s, L);
1790
+ }), J && x.add(J), this._domLayerInfoMap.set(s, L);
1782
1791
  });
1783
1792
  })
1784
1793
  ), this.disposeWithMe(
@@ -1797,7 +1806,7 @@ let tt = class extends ne {
1797
1806
  _scrollUpdateListener() {
1798
1807
  const t = (e, n) => {
1799
1808
  var d;
1800
- 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);
1801
1810
  !r || !o || !a || s.forEach((u) => {
1802
1811
  const c = this._domLayerInfoMap.get(u);
1803
1812
  if (c) {
@@ -1831,6 +1840,9 @@ let tt = class extends ne {
1831
1840
  } else if (e.id === hi.id) {
1832
1841
  const { unitId: n, subUnitId: r } = e.params;
1833
1842
  t(n, r);
1843
+ } else if (e.id === gi.id) {
1844
+ const { unitId: n, subUnitId: r } = e.params;
1845
+ t(n, r);
1834
1846
  }
1835
1847
  }));
1836
1848
  }
@@ -1843,7 +1855,7 @@ let tt = class extends ne {
1843
1855
  }
1844
1856
  _getPosition(t, e) {
1845
1857
  var g;
1846
- 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);
1847
1859
  if (a == null)
1848
1860
  return;
1849
1861
  const d = a.getCellWithCoordByOffset(n, s);
@@ -1873,7 +1885,7 @@ let tt = class extends ne {
1873
1885
  this._drawingManagerService.update$.subscribe((t) => {
1874
1886
  t.forEach((e) => {
1875
1887
  const n = this._drawingManagerService.getDrawingByParam(e);
1876
- 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)
1877
1889
  return;
1878
1890
  const r = {
1879
1891
  ...n.transform
@@ -1882,7 +1894,7 @@ let tt = class extends ne {
1882
1894
  ...n
1883
1895
  });
1884
1896
  const s = this._getSceneAndTransformerByDrawingSearch(e.unitId);
1885
- if (s && n.drawingType !== B.DRAWING_CHART) {
1897
+ if (s && n.drawingType !== W.DRAWING_CHART) {
1886
1898
  const { scene: o } = s, a = this._domLayerInfoMap.get(e.drawingId);
1887
1899
  a != null && a.rect && (n.allowTransform === !1 ? o.detachTransformerFrom(a.rect) : o.attachTransformerTo(a.rect));
1888
1900
  }
@@ -1901,20 +1913,20 @@ let tt = class extends ne {
1901
1913
  }
1902
1914
  // CreateFloatDomCommand --> floatDomService.addFloatDomToPosition
1903
1915
  addFloatDomToPosition(t, e) {
1904
- const n = se(this._univerInstanceService, {
1916
+ const n = oe(this._univerInstanceService, {
1905
1917
  unitId: t.unitId,
1906
1918
  subUnitId: t.subUnitId
1907
1919
  });
1908
1920
  if (!n)
1909
1921
  throw new Error("cannot find current target!");
1910
- 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);
1911
1923
  if (l == null)
1912
1924
  return;
1913
1925
  const g = {
1914
1926
  unitId: r,
1915
1927
  subUnitId: s,
1916
1928
  drawingId: c,
1917
- drawingType: t.type || B.DRAWING_DOM,
1929
+ drawingType: t.type || W.DRAWING_DOM,
1918
1930
  componentKey: a,
1919
1931
  sheetTransform: l,
1920
1932
  transform: {
@@ -1954,7 +1966,7 @@ let tt = class extends ne {
1954
1966
  // eslint-disable-next-line max-lines-per-function, complexity
1955
1967
  addFloatDomToRange(t, e, n, r) {
1956
1968
  var C, w, y;
1957
- const s = se(this._univerInstanceService, {
1969
+ const s = oe(this._univerInstanceService, {
1958
1970
  unitId: e.unitId,
1959
1971
  subUnitId: e.subUnitId
1960
1972
  });
@@ -1966,14 +1978,14 @@ let tt = class extends ne {
1966
1978
  if (!u) return;
1967
1979
  const c = (C = this._renderManagerService.getRenderById(o)) == null ? void 0 : C.with(V).getWorksheetSkeleton(a);
1968
1980
  if (!c) return;
1969
- 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);
1970
1982
  if (this._getPosition(p, o) == null)
1971
1983
  return;
1972
1984
  const v = d.scene, { scaleX: I } = v.getAncestorScale(), R = Ct(p, n, I), S = {
1973
1985
  unitId: o,
1974
1986
  subUnitId: a,
1975
1987
  drawingId: f,
1976
- drawingType: e.type || B.DRAWING_DOM,
1988
+ drawingType: e.type || W.DRAWING_DOM,
1977
1989
  componentKey: l,
1978
1990
  transform: {
1979
1991
  left: R.startX,
@@ -1985,48 +1997,48 @@ let tt = class extends ne {
1985
1997
  allowTransform: h
1986
1998
  };
1987
1999
  {
1988
- 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);
1989
2001
  if (!N)
1990
2002
  return;
1991
2003
  const x = N.getActiveSheet().getSheetId();
1992
2004
  if (!b || !M)
1993
2005
  return;
1994
- const q = (w = this._renderManagerService.getRenderById(D)) == null ? void 0 : w.with(V);
1995
- if (!q)
2006
+ const Q = (w = this._renderManagerService.getRenderById(D)) == null ? void 0 : w.with(V);
2007
+ if (!Q)
1996
2008
  return;
1997
- const H = q.getWorksheetSkeleton(T);
2009
+ const H = Q.getWorksheetSkeleton(T);
1998
2010
  if (!H)
1999
2011
  return;
2000
- const { transform: L, drawingType: G, data: K } = b;
2001
- 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)
2002
2014
  return;
2003
- const k = this._getSceneAndTransformerByDrawingSearch(D);
2004
- if (k == null)
2015
+ const z = this._getSceneAndTransformerByDrawingSearch(D);
2016
+ if (z == null)
2005
2017
  return;
2006
- const { scene: ae, canvas: be } = k;
2007
- if (L == null || x !== T)
2018
+ const { scene: B, canvas: be } = z;
2019
+ if (G == null || x !== T)
2008
2020
  return;
2009
- 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);
2010
2022
  if (de != null) {
2011
2023
  de.transformByState({ left: ot, top: at, width: ct, height: dt, angle: jt, flipX: $t, flipY: lt, skewX: ut, skewY: Me });
2012
2024
  return;
2013
2025
  }
2014
- const Q = {
2026
+ const ee = {
2015
2027
  left: ot,
2016
2028
  // from floatDomParam.transform
2017
2029
  top: at,
2018
2030
  width: ct,
2019
2031
  height: dt,
2020
2032
  zIndex: this._drawingManagerService.getDrawingOrder(D, T).length - 1
2021
- }, ye = G === B.DRAWING_CHART;
2033
+ }, ye = L === W.DRAWING_CHART;
2022
2034
  if (ye) {
2023
- const W = K ? K.backgroundColor : "white";
2024
- 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;
2025
2037
  }
2026
- const le = new Ue(ht, Q);
2027
- ye && le.setObjectType(mn.CHART), ae.addObject(le, Ft), b.allowTransform !== !1 && ae.attachTransformerTo(le);
2028
- const ue = new _t(), gt = ae.getMainViewport(), { rowHeaderWidth: Te, columnHeaderHeight: Xe } = H.skeleton, ft = {
2029
- 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,
2030
2042
  left: Te,
2031
2043
  bottom: gt.bottom,
2032
2044
  right: gt.right
@@ -2037,9 +2049,9 @@ let tt = class extends ne {
2037
2049
  domAnchor: n,
2038
2050
  unitId: D,
2039
2051
  subUnitId: T
2040
- }, 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);
2041
2053
  he.position$ = Ee;
2042
- let Le = {
2054
+ let Ve = {
2043
2055
  position$: Ee,
2044
2056
  id: E,
2045
2057
  componentKey: b.componentKey,
@@ -2049,32 +2061,32 @@ let tt = class extends ne {
2049
2061
  },
2050
2062
  onPointerUp: () => {
2051
2063
  },
2052
- onWheel: (W) => {
2053
- be.dispatchEvent(new WheelEvent(W.type, W));
2064
+ onWheel: (k) => {
2065
+ be.dispatchEvent(new WheelEvent(k.type, k));
2054
2066
  },
2055
- data: K,
2067
+ data: J,
2056
2068
  unitId: D
2057
2069
  };
2058
- e.eventPassThrough && (Le = {
2059
- ...Le,
2060
- onPointerDown: (W) => {
2061
- be.dispatchEvent(new PointerEvent(W.type, W));
2070
+ e.eventPassThrough && (Ve = {
2071
+ ...Ve,
2072
+ onPointerDown: (k) => {
2073
+ be.dispatchEvent(new PointerEvent(k.type, k));
2062
2074
  },
2063
- onPointerMove: (W) => {
2064
- be.dispatchEvent(new PointerEvent(W.type, W));
2075
+ onPointerMove: (k) => {
2076
+ be.dispatchEvent(new PointerEvent(k.type, k));
2065
2077
  },
2066
- onPointerUp: (W) => {
2067
- be.dispatchEvent(new PointerEvent(W.type, W));
2078
+ onPointerUp: (k) => {
2079
+ be.dispatchEvent(new PointerEvent(k.type, k));
2068
2080
  }
2069
- }), this._canvasFloatDomService.addFloatDom(Le), this.disposeWithMe(m.subscribe((W) => {
2081
+ }), this._canvasFloatDomService.addFloatDom(Ve), this.disposeWithMe(m.subscribe((k) => {
2070
2082
  var un, hn, gn, fn;
2071
2083
  const ln = Ct({
2072
- startX: W.startX,
2073
- startY: W.startY,
2074
- endX: W.endX,
2075
- endY: W.endY,
2076
- width: (un = n.width) != null ? un : W.width,
2077
- 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,
2078
2090
  absolute: {
2079
2091
  left: p.absolute.left,
2080
2092
  top: p.absolute.top
@@ -2082,20 +2094,20 @@ let tt = class extends ne {
2082
2094
  }, n), Rr = Ie({ unitId: D, subUnitId: T, drawingId: E }), br = new Ue(Rr, {
2083
2095
  left: ln.startX,
2084
2096
  top: ln.startY,
2085
- width: (gn = n.width) != null ? gn : W.width,
2086
- 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,
2087
2099
  zIndex: this._drawingManagerService.getDrawingOrder(D, T).length - 1
2088
- }), Mr = ge(br, k.renderUnit.scene, H.skeleton, M.worksheet, he);
2100
+ }), Mr = ge(br, z.renderUnit.scene, H.skeleton, M.worksheet, he);
2089
2101
  Ee.next(Mr);
2090
2102
  }));
2091
- const Ve = (y = this._renderManagerService.getRenderById(D)) == null ? void 0 : y.with(V);
2092
- Ve == null || Ve.currentSkeleton$.subscribe((W) => {
2093
- 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);
2094
2106
  });
2095
2107
  const mt = le.onTransformChange$.subscribeEvent(() => {
2096
- 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);
2097
2109
  Ee.next(
2098
- W
2110
+ k
2099
2111
  );
2100
2112
  });
2101
2113
  ue.add(() => {
@@ -2112,7 +2124,7 @@ let tt = class extends ne {
2112
2124
  // eslint-disable-next-line max-lines-per-function, complexity
2113
2125
  addFloatDomToColumnHeader(t, e, n, r) {
2114
2126
  var R, S, C;
2115
- const s = se(this._univerInstanceService, {
2127
+ const s = oe(this._univerInstanceService, {
2116
2128
  unitId: e.unitId,
2117
2129
  subUnitId: e.subUnitId
2118
2130
  });
@@ -2124,7 +2136,7 @@ let tt = class extends ne {
2124
2136
  if (!u) return;
2125
2137
  const c = (R = this._renderManagerService.getRenderById(o)) == null ? void 0 : R.with(V).getWorksheetSkeleton(a);
2126
2138
  if (!c) return;
2127
- 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({
2128
2140
  startRow: 0,
2129
2141
  endRow: 0,
2130
2142
  startColumn: t,
@@ -2136,7 +2148,7 @@ let tt = class extends ne {
2136
2148
  unitId: o,
2137
2149
  subUnitId: a,
2138
2150
  drawingId: f,
2139
- drawingType: e.type || B.DRAWING_DOM,
2151
+ drawingType: e.type || W.DRAWING_DOM,
2140
2152
  componentKey: l,
2141
2153
  transform: {
2142
2154
  left: _.startX,
@@ -2148,7 +2160,7 @@ let tt = class extends ne {
2148
2160
  allowTransform: h
2149
2161
  };
2150
2162
  {
2151
- 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);
2152
2164
  if (!M)
2153
2165
  return;
2154
2166
  const b = M.getActiveSheet().getSheetId();
@@ -2160,15 +2172,15 @@ let tt = class extends ne {
2160
2172
  const x = N.getWorksheetSkeleton(y);
2161
2173
  if (!x)
2162
2174
  return;
2163
- const { transform: q, data: H } = E, L = this._getSceneAndTransformerByDrawingSearch(w);
2164
- if (L == null)
2175
+ const { transform: Q, data: H } = E, G = this._getSceneAndTransformerByDrawingSearch(w);
2176
+ if (G == null)
2165
2177
  return;
2166
- const { scene: G, canvas: K } = L;
2167
- if (q == null || b !== y)
2178
+ const { scene: L, canvas: J } = G;
2179
+ if (Q == null || b !== y)
2168
2180
  return;
2169
- 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);
2170
2182
  if (ut != null) {
2171
- 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 });
2172
2184
  return;
2173
2185
  }
2174
2186
  const Me = Ct({
@@ -2189,15 +2201,15 @@ let tt = class extends ne {
2189
2201
  height: Me.height,
2190
2202
  zIndex: this._drawingManagerService.getDrawingOrder(w, y).length - 1
2191
2203
  }, de = new Ue(lt, ht);
2192
- G.addObject(de, Ft), E.allowTransform !== !1 && G.attachTransformerTo(de);
2193
- 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 = {
2194
2206
  top: 0,
2195
2207
  //viewMain.top,
2196
2208
  left: ye.left,
2197
2209
  bottom: ye.bottom,
2198
2210
  right: ye.right
2199
2211
  }, ue = {
2200
- dispose: Q,
2212
+ dispose: ee,
2201
2213
  rect: de,
2202
2214
  // position$,
2203
2215
  unitId: w,
@@ -2206,9 +2218,9 @@ let tt = class extends ne {
2206
2218
  domAnchor: n,
2207
2219
  scrollDirectionResponse: "HORIZONTAL"
2208
2220
  /* HORIZONTAL */
2209
- }, 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);
2210
2222
  ue.position$ = Te;
2211
- let Xe = {
2223
+ let Le = {
2212
2224
  position$: Te,
2213
2225
  id: D,
2214
2226
  componentKey: E.componentKey,
@@ -2219,25 +2231,25 @@ let tt = class extends ne {
2219
2231
  onPointerUp: () => {
2220
2232
  },
2221
2233
  onWheel: (j) => {
2222
- K.dispatchEvent(new WheelEvent(j.type, j));
2234
+ J.dispatchEvent(new WheelEvent(j.type, j));
2223
2235
  },
2224
2236
  data: H,
2225
2237
  unitId: w
2226
2238
  };
2227
- e.eventPassThrough && (Xe = {
2228
- ...Xe,
2239
+ e.eventPassThrough && (Le = {
2240
+ ...Le,
2229
2241
  onPointerDown: (j) => {
2230
- K.dispatchEvent(new PointerEvent(j.type, j));
2242
+ J.dispatchEvent(new PointerEvent(j.type, j));
2231
2243
  },
2232
2244
  onPointerMove: (j) => {
2233
- K.dispatchEvent(new PointerEvent(j.type, j));
2245
+ J.dispatchEvent(new PointerEvent(j.type, j));
2234
2246
  },
2235
2247
  onPointerUp: (j) => {
2236
- K.dispatchEvent(new PointerEvent(j.type, j));
2248
+ J.dispatchEvent(new PointerEvent(j.type, j));
2237
2249
  }
2238
- }), this._canvasFloatDomService.addFloatDom(Xe);
2250
+ }), this._canvasFloatDomService.addFloatDom(Le);
2239
2251
  const ft = de.onTransformChange$.subscribeEvent(() => {
2240
- 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);
2241
2253
  Te.next(
2242
2254
  j
2243
2255
  );
@@ -2254,21 +2266,21 @@ let tt = class extends ne {
2254
2266
  left: p.absolute.left,
2255
2267
  top: p.absolute.top
2256
2268
  }
2257
- }, 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, {
2258
2270
  left: Ee.startX,
2259
2271
  top: 0,
2260
2272
  width: n.width,
2261
2273
  height: n.height,
2262
2274
  zIndex: this._drawingManagerService.getDrawingOrder(w, y).length - 1
2263
- }), mt = ge(Ve, L.renderUnit.scene, x.skeleton, T.worksheet, ue);
2275
+ }), mt = ge(He, G.renderUnit.scene, x.skeleton, T.worksheet, ue);
2264
2276
  Te.next(mt);
2265
2277
  }));
2266
2278
  const he = (C = this._renderManagerService.getRenderById(w)) == null ? void 0 : C.with(V);
2267
2279
  he == null || he.currentSkeleton$.subscribe((j) => {
2268
2280
  j && c.sheetId !== j.sheetId && this._removeDom(f, !0);
2269
- }), Q.add(() => {
2281
+ }), ee.add(() => {
2270
2282
  this._canvasFloatDomService.removeFloatDom(D);
2271
- }), ft && Q.add(ft), this._domLayerInfoMap.set(D, ue);
2283
+ }), ft && ee.add(ft), this._domLayerInfoMap.set(D, ue);
2272
2284
  }
2273
2285
  return {
2274
2286
  id: f,
@@ -2290,16 +2302,16 @@ let tt = class extends ne {
2290
2302
  // eslint-disable-next-line max-lines-per-function
2291
2303
  _createRangePositionObserver(t, e, n) {
2292
2304
  let { startRow: r, startColumn: s } = t;
2293
- const o = Je(r, s, n), a = new ke(o), d = Je(t.endRow, t.endColumn, n), u = new ke(d), c = () => {
2294
- 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);
2295
2307
  a.next(m), u.next(_);
2296
2308
  }, l = new _t();
2297
2309
  l.add(e.engine.clientRect$.subscribe(() => c())), l.add(this._commandService.onCommandExecuted((m) => {
2298
- 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) {
2299
2311
  c();
2300
2312
  return;
2301
2313
  }
2302
- (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();
2303
2315
  }));
2304
2316
  const g = (m, _) => {
2305
2317
  r = m, s = _, c();
@@ -2317,7 +2329,7 @@ let tt = class extends ne {
2317
2329
  endY: d.bottom
2318
2330
  }), f = a.pipe(
2319
2331
  Re((m) => {
2320
- const _ = Je(t.endRow, t.endColumn, n);
2332
+ const _ = Ze(t.endRow, t.endColumn, n);
2321
2333
  return {
2322
2334
  rotate: 0,
2323
2335
  width: _.right - m.left,
@@ -2343,16 +2355,16 @@ let tt = class extends ne {
2343
2355
  };
2344
2356
  }
2345
2357
  };
2346
- tt = ys([
2347
- Ce(0, A(J)),
2358
+ tt = Ts([
2359
+ Ce(0, A(Z)),
2348
2360
  Ce(1, Se),
2349
2361
  Ce(2, A(X)),
2350
- Ce(3, ie),
2351
- Ce(4, A(Wi)),
2352
- Ce(5, re),
2362
+ Ce(3, se),
2363
+ Ce(4, A(Bi)),
2364
+ Ce(5, ie),
2353
2365
  Ce(6, A(Jr))
2354
2366
  ], tt);
2355
- function Je(i, t, e) {
2367
+ function Ze(i, t, e) {
2356
2368
  const n = e.getCellWithCoordByIndex(i, t), r = n.isMergedMainCell ? n.mergeInfo : n;
2357
2369
  return {
2358
2370
  left: r.startX,
@@ -2398,8 +2410,8 @@ function Dt(i, t) {
2398
2410
  const e = Number.parseFloat(i);
2399
2411
  return t * e / 100;
2400
2412
  }
2401
- const Ts = (i) => {
2402
- 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) => {
2403
2415
  const { width: a, height: d, angle: u, left: c, top: l } = o.transform, g = Ir(
2404
2416
  {
2405
2417
  left: c != null ? c : 0,
@@ -2439,14 +2451,14 @@ const Ts = (i) => {
2439
2451
  };
2440
2452
  return [o.drawingId, m];
2441
2453
  }), [t, e, n, r]);
2442
- 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)) });
2443
2455
  };
2444
- var Es = Object.getOwnPropertyDescriptor, Os = (i, t, e, n) => {
2445
- 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--)
2446
2458
  (o = i[s]) && (r = o(r) || r);
2447
2459
  return r;
2448
2460
  }, De = (i, t) => (e, n) => t(e, n, i);
2449
- let Ot = class extends ne {
2461
+ let Ot = class extends re {
2450
2462
  constructor(i, t, e, n, r, s, o) {
2451
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();
2452
2464
  }
@@ -2459,7 +2471,7 @@ let Ot = class extends ne {
2459
2471
  const { unitId: n, scene: r, subUnitId: s } = t, o = this._drawingManagerService.getDrawingDataForUnit(n), a = o == null ? void 0 : o[s];
2460
2472
  return a && a.order.forEach((d) => {
2461
2473
  const u = a.data[d];
2462
- 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);
2463
2475
  }), e();
2464
2476
  }
2465
2477
  }
@@ -2480,7 +2492,7 @@ let Ot = class extends ne {
2480
2492
  return e(i);
2481
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]);
2482
2494
  return g.length ? (g.forEach((h) => {
2483
- 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)) {
2484
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 });
2485
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);
2486
2498
  }
@@ -2500,12 +2512,12 @@ let Ot = class extends ne {
2500
2512
  if (o) {
2501
2513
  const a = o.order.map((u) => {
2502
2514
  const c = o.data[u];
2503
- if (c.drawingType === B.DRAWING_CHART)
2515
+ if (c.drawingType === W.DRAWING_CHART)
2504
2516
  return {
2505
2517
  ...c,
2506
2518
  componentKey: this._componetManager.get(Qr)
2507
2519
  };
2508
- if (c.drawingType === B.DRAWING_DOM) {
2520
+ if (c.drawingType === W.DRAWING_DOM) {
2509
2521
  const l = this._sheetPrintInterceptorService.getPrintComponent(c.componentKey);
2510
2522
  return {
2511
2523
  ...c,
@@ -2513,12 +2525,12 @@ let Ot = class extends ne {
2513
2525
  };
2514
2526
  }
2515
2527
  return null;
2516
- }).filter(Boolean), d = ji(Ts, this._injector);
2517
- return Di(
2518
- /* @__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 }),
2519
2531
  t.root
2520
2532
  ), i == null || i.add(() => {
2521
- Ri(t.root);
2533
+ bi(t.root);
2522
2534
  }), e(i);
2523
2535
  }
2524
2536
  }
@@ -2527,21 +2539,21 @@ let Ot = class extends ne {
2527
2539
  );
2528
2540
  }
2529
2541
  };
2530
- Ot = Os([
2542
+ Ot = Ps([
2531
2543
  De(0, A(xr)),
2532
2544
  De(1, A(lr)),
2533
- De(2, ie),
2534
- De(3, J),
2545
+ De(2, se),
2546
+ De(3, Z),
2535
2547
  De(4, A(tt)),
2536
2548
  De(5, A(dr)),
2537
- De(6, A(Ge))
2549
+ De(6, A(Xe))
2538
2550
  ], Ot);
2539
- var Us = Object.getOwnPropertyDescriptor, Ps = (i, t, e, n) => {
2540
- 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--)
2541
2553
  (o = i[s]) && (r = o(r) || r);
2542
2554
  return r;
2543
2555
  }, me = (i, t) => (e, n) => t(e, n, i);
2544
- const As = [
2556
+ const ks = [
2545
2557
  Ln.id,
2546
2558
  Vn.id,
2547
2559
  Hn.id,
@@ -2561,15 +2573,15 @@ const As = [
2561
2573
  sr.id,
2562
2574
  or.id,
2563
2575
  ar.id
2564
- ], Ns = [
2565
- mi.id,
2576
+ ], Ws = [
2566
2577
  pi.id,
2567
2578
  wi.id,
2568
2579
  _i.id,
2569
2580
  Si.id,
2570
- vi.id
2581
+ vi.id,
2582
+ Ii.id
2571
2583
  ];
2572
- let rn = class extends ne {
2584
+ let rn = class extends re {
2573
2585
  constructor(i, t, e, n, r, s, o, a, d) {
2574
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();
2575
2587
  }
@@ -2578,7 +2590,7 @@ let rn = class extends ne {
2578
2590
  this._sheetInterceptorService.interceptAfterCommand({
2579
2591
  /* eslint-disable-next-line complexity */
2580
2592
  getMutations: (i) => {
2581
- if (!As.includes(i.id))
2593
+ if (!ks.includes(i.id))
2582
2594
  return { redos: [], undos: [] };
2583
2595
  if (i.params == null)
2584
2596
  return { redos: [], undos: [] };
@@ -2637,7 +2649,7 @@ let rn = class extends ne {
2637
2649
  );
2638
2650
  }
2639
2651
  _getRangeMoveUndo(i, t) {
2640
- const e = se(this._univerInstanceService);
2652
+ const e = oe(this._univerInstanceService);
2641
2653
  if (e == null)
2642
2654
  return { redos: [], undos: [] };
2643
2655
  const n = e.unitId, r = e.subUnitId, s = [], o = [], a = this._sheetDrawingService.getDrawingData(n, r), d = [], u = [];
@@ -2690,7 +2702,7 @@ let rn = class extends ne {
2690
2702
  S = w == null ? void 0 : w.newSheetTransform, C = w == null ? void 0 : w.newTransform;
2691
2703
  }
2692
2704
  if (S != null && C != null) {
2693
- const w = z(S, this._selectionRenderService, this._skeletonManagerService);
2705
+ const w = K(S, this._selectionRenderService, this._skeletonManagerService);
2694
2706
  n.push({ ...e, sheetTransform: S, transform: w });
2695
2707
  }
2696
2708
  return { updateDrawings: n, deleteDrawings: r };
@@ -2893,7 +2905,7 @@ let rn = class extends ne {
2893
2905
  this._remainDrawingSize(u, s, a);
2894
2906
  continue;
2895
2907
  }
2896
- const w = z({ ...d }, this._selectionRenderService, this._skeletonManagerService);
2908
+ const w = K({ ...d }, this._selectionRenderService, this._skeletonManagerService);
2897
2909
  if (w != null) {
2898
2910
  s.push({
2899
2911
  ...a,
@@ -2910,7 +2922,7 @@ let rn = class extends ne {
2910
2922
  if (t === "insert")
2911
2923
  e = i.unitId, n = i.subUnitId;
2912
2924
  else {
2913
- const r = se(this._univerInstanceService);
2925
+ const r = oe(this._univerInstanceService);
2914
2926
  if (r == null)
2915
2927
  return;
2916
2928
  e = r.unitId, n = r.subUnitId;
@@ -2919,7 +2931,7 @@ let rn = class extends ne {
2919
2931
  }
2920
2932
  _moveRangeInterceptor(i) {
2921
2933
  var I, R;
2922
- const { toRange: t, fromRange: e } = i, n = se(this._univerInstanceService);
2934
+ const { toRange: t, fromRange: e } = i, n = oe(this._univerInstanceService);
2923
2935
  if (!n)
2924
2936
  return { redos: [], undos: [] };
2925
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();
@@ -2948,7 +2960,7 @@ let rn = class extends ne {
2948
2960
  const C = S.sheetTransform, w = {
2949
2961
  to: { ...C.to, row: C.to.row + m, column: C.to.column + _ },
2950
2962
  from: { ...C.from, row: C.from.row + m, column: C.from.column + _ }
2951
- }, y = z(w, this._selectionRenderService, this._skeletonManagerService);
2963
+ }, y = K(w, this._selectionRenderService, this._skeletonManagerService);
2952
2964
  return {
2953
2965
  unitId: r,
2954
2966
  subUnitId: s,
@@ -3060,7 +3072,7 @@ let rn = class extends ne {
3060
3072
  c = {
3061
3073
  from: { ...o },
3062
3074
  to: { ...a, column: u + s }
3063
- }, l = z(c, this._selectionRenderService, this._skeletonManagerService);
3075
+ }, l = K(c, this._selectionRenderService, this._skeletonManagerService);
3064
3076
  else
3065
3077
  return {
3066
3078
  newSheetTransform: $({ ...t }, this._selectionRenderService),
@@ -3083,7 +3095,7 @@ let rn = class extends ne {
3083
3095
  c = {
3084
3096
  from: { ...o, column: d - s },
3085
3097
  to: { ...a, column: u - s }
3086
- }, l = z(c, this._selectionRenderService, this._skeletonManagerService);
3098
+ }, l = K(c, this._selectionRenderService, this._skeletonManagerService);
3087
3099
  else {
3088
3100
  if (d >= e && u <= n)
3089
3101
  return null;
@@ -3092,7 +3104,7 @@ let rn = class extends ne {
3092
3104
  c = {
3093
3105
  from: { ...o },
3094
3106
  to: { ...a, column: u - s }
3095
- }, l = z(c, this._selectionRenderService, this._skeletonManagerService);
3107
+ }, l = K(c, this._selectionRenderService, this._skeletonManagerService);
3096
3108
  else
3097
3109
  return {
3098
3110
  newSheetTransform: $({ ...t }, this._selectionRenderService),
@@ -3120,7 +3132,7 @@ let rn = class extends ne {
3120
3132
  c = {
3121
3133
  from: { ...o },
3122
3134
  to: { ...a, column: e - 1, columnOffset: g.endX - g.startX }
3123
- }, l = z(c, this._selectionRenderService, this._skeletonManagerService);
3135
+ }, l = K(c, this._selectionRenderService, this._skeletonManagerService);
3124
3136
  }
3125
3137
  }
3126
3138
  return c != null && l != null ? {
@@ -3149,7 +3161,7 @@ let rn = class extends ne {
3149
3161
  ...a,
3150
3162
  row: u + s
3151
3163
  }
3152
- }, l = z(c, this._selectionRenderService, this._skeletonManagerService);
3164
+ }, l = K(c, this._selectionRenderService, this._skeletonManagerService);
3153
3165
  else
3154
3166
  return {
3155
3167
  newSheetTransform: $({ ...t }, this._selectionRenderService),
@@ -3172,7 +3184,7 @@ let rn = class extends ne {
3172
3184
  c = {
3173
3185
  from: { ...o, row: d - s },
3174
3186
  to: { ...a, row: u - s }
3175
- }, l = z(c, this._selectionRenderService, this._skeletonManagerService);
3187
+ }, l = K(c, this._selectionRenderService, this._skeletonManagerService);
3176
3188
  else {
3177
3189
  if (d >= e && u <= n)
3178
3190
  return null;
@@ -3181,7 +3193,7 @@ let rn = class extends ne {
3181
3193
  c = {
3182
3194
  from: { ...o },
3183
3195
  to: { ...a, row: u - s }
3184
- }, l = z(c, this._selectionRenderService, this._skeletonManagerService);
3196
+ }, l = K(c, this._selectionRenderService, this._skeletonManagerService);
3185
3197
  else
3186
3198
  return {
3187
3199
  newSheetTransform: $({ ...t }, this._selectionRenderService),
@@ -3204,7 +3216,7 @@ let rn = class extends ne {
3204
3216
  c = {
3205
3217
  from: { ...o },
3206
3218
  to: { ...a, row: e - 1, rowOffset: g.endY - g.startY }
3207
- }, l = z(c, this._selectionRenderService, this._skeletonManagerService);
3219
+ }, l = K(c, this._selectionRenderService, this._skeletonManagerService);
3208
3220
  }
3209
3221
  }
3210
3222
  return c != null && l != null ? {
@@ -3218,7 +3230,7 @@ let rn = class extends ne {
3218
3230
  // but the skeleton changes like other render modules. These two signals are not equivalent.
3219
3231
  // As a temp solution, I subscribed to activate$ here.
3220
3232
  this._commandService.onCommandExecuted((i) => {
3221
- if (i.id === Ii.id) {
3233
+ if (i.id === Ci.id) {
3222
3234
  const { unitId: t, subUnitId: e } = i.params;
3223
3235
  this._updateDrawings(t, e);
3224
3236
  }
@@ -3258,7 +3270,7 @@ let rn = class extends ne {
3258
3270
  d != null && Object.keys(d).forEach((u) => {
3259
3271
  if (s === i && a === t) {
3260
3272
  const c = d[u];
3261
- 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]);
3262
3274
  } else
3263
3275
  r.push(d[u]);
3264
3276
  });
@@ -3269,7 +3281,7 @@ let rn = class extends ne {
3269
3281
  _sheetRefreshListener() {
3270
3282
  this.disposeWithMe(
3271
3283
  this._commandService.onCommandExecuted((i) => {
3272
- Ns.includes(i.id) && requestIdleCallback(() => {
3284
+ Ws.includes(i.id) && requestIdleCallback(() => {
3273
3285
  const t = i.params, { unitId: e, subUnitId: n, ranges: r } = t;
3274
3286
  this._refreshDrawingTransform(e, n, r);
3275
3287
  });
@@ -3299,7 +3311,7 @@ let rn = class extends ne {
3299
3311
  endColumn: p
3300
3312
  }
3301
3313
  ) || g > I || h > S) {
3302
- 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);
3303
3315
  r.push({
3304
3316
  ...o,
3305
3317
  transform: {
@@ -3314,19 +3326,19 @@ let rn = class extends ne {
3314
3326
  }), r.length !== 0 && (this._drawingManagerService.refreshTransform(r), this._commandService.syncExecuteCommand(Y.id, [i]));
3315
3327
  }
3316
3328
  };
3317
- rn = Ps([
3318
- me(1, J),
3329
+ rn = Ns([
3330
+ me(1, Z),
3319
3331
  me(2, X),
3320
- me(3, xe),
3332
+ me(3, Ye),
3321
3333
  me(4, A(V)),
3322
3334
  me(5, A(At)),
3323
- me(6, re),
3324
- me(7, ie),
3335
+ me(6, ie),
3336
+ me(7, se),
3325
3337
  me(8, Se)
3326
3338
  ], rn);
3327
- const ks = (i) => {
3339
+ const Bs = (i) => {
3328
3340
  var v;
3329
- 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];
3330
3342
  if (o == null)
3331
3343
  return;
3332
3344
  const { unitId: a } = o, d = r.getRenderById(a), u = d == null ? void 0 : d.scene;
@@ -3387,27 +3399,27 @@ const ks = (i) => {
3387
3399
  return /* @__PURE__ */ qt(
3388
3400
  "div",
3389
3401
  {
3390
- 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", {
3391
3403
  "univer-hidden": !l
3392
3404
  }),
3393
3405
  children: [
3394
- /* @__PURE__ */ oe(
3406
+ /* @__PURE__ */ ae(
3395
3407
  "header",
3396
3408
  {
3397
3409
  className: "univer-text-gray-600 dark:!univer-text-gray-200",
3398
- children: /* @__PURE__ */ oe("div", { children: e.t("drawing-anchor.title") })
3410
+ children: /* @__PURE__ */ ae("div", { children: e.t("drawing-anchor.title") })
3399
3411
  }
3400
3412
  ),
3401
- /* @__PURE__ */ oe("div", { children: /* @__PURE__ */ qt(Mi, { value: f, onChange: _, direction: "vertical", children: [
3402
- /* @__PURE__ */ oe(Yt, { value: O.Both, children: e.t("drawing-anchor.both") }),
3403
- /* @__PURE__ */ oe(Yt, { value: O.Position, children: e.t("drawing-anchor.position") }),
3404
- /* @__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") })
3405
3417
  ] }) })
3406
3418
  ]
3407
3419
  }
3408
3420
  );
3409
- }, Ws = () => {
3410
- 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);
3411
3423
  return ur(() => {
3412
3424
  const r = i.focus$.subscribe((s) => {
3413
3425
  n(s);
@@ -3416,21 +3428,21 @@ const ks = (i) => {
3416
3428
  r.unsubscribe();
3417
3429
  };
3418
3430
  }, []), !!(e != null && e.length) && /* @__PURE__ */ qt("div", { className: "univer-text-sm", children: [
3419
- /* @__PURE__ */ oe(zi, { drawings: e }),
3420
- /* @__PURE__ */ oe(ks, { drawings: e })
3431
+ /* @__PURE__ */ ae(Ki, { drawings: e }),
3432
+ /* @__PURE__ */ ae(Bs, { drawings: e })
3421
3433
  ] });
3422
3434
  }, Cr = "sheet.menu.image";
3423
- function Bs(i) {
3435
+ function $s(i) {
3424
3436
  return {
3425
3437
  id: Cr,
3426
3438
  type: cn.SUBITEMS,
3427
3439
  icon: "AddImageIcon",
3428
3440
  tooltip: "sheetImage.title",
3429
3441
  hidden$: an(i, F.UNIVER_SHEET),
3430
- disabled$: Yr(i, { workbookTypes: [zt], worksheetTypes: [Kt], rangeTypes: [Ci] })
3442
+ disabled$: Yr(i, { workbookTypes: [zt], worksheetTypes: [Kt], rangeTypes: [Di] })
3431
3443
  };
3432
3444
  }
3433
- function js(i) {
3445
+ function Fs(i) {
3434
3446
  return {
3435
3447
  id: Bt.id,
3436
3448
  title: "sheetImage.upload.float",
@@ -3438,7 +3450,7 @@ function js(i) {
3438
3450
  hidden$: an(i, F.UNIVER_SHEET)
3439
3451
  };
3440
3452
  }
3441
- function $s(i) {
3453
+ function xs(i) {
3442
3454
  return {
3443
3455
  id: dn.id,
3444
3456
  title: "sheetImage.upload.cell",
@@ -3446,89 +3458,89 @@ function $s(i) {
3446
3458
  hidden$: an(i, F.UNIVER_SHEET)
3447
3459
  };
3448
3460
  }
3449
- const Fs = {
3450
- [$i.MEDIA]: {
3461
+ const Ys = {
3462
+ [Fi.MEDIA]: {
3451
3463
  [Cr]: {
3452
3464
  order: 0,
3453
- menuItemFactory: Bs,
3465
+ menuItemFactory: $s,
3454
3466
  [Bt.id]: {
3455
3467
  order: 0,
3456
- menuItemFactory: js
3468
+ menuItemFactory: Fs
3457
3469
  },
3458
3470
  [dn.id]: {
3459
3471
  order: 1,
3460
- menuItemFactory: $s
3472
+ menuItemFactory: xs
3461
3473
  }
3462
3474
  }
3463
3475
  }
3464
3476
  };
3465
3477
  function st(i) {
3466
- 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);
3467
3479
  }
3468
- const xs = {
3480
+ const Gs = {
3469
3481
  id: it.id,
3470
3482
  description: "shortcut.drawing-move-down",
3471
3483
  group: "4_drawing-view",
3472
- binding: Fe.ARROW_DOWN,
3484
+ binding: xe.ARROW_DOWN,
3473
3485
  priority: 100,
3474
3486
  preconditions: st,
3475
3487
  staticParameters: {
3476
3488
  direction: _e.DOWN
3477
3489
  }
3478
- }, Ys = {
3490
+ }, Xs = {
3479
3491
  id: it.id,
3480
3492
  description: "shortcut.drawing-move-up",
3481
3493
  group: "4_drawing-view",
3482
- binding: Fe.ARROW_UP,
3494
+ binding: xe.ARROW_UP,
3483
3495
  priority: 100,
3484
3496
  preconditions: st,
3485
3497
  staticParameters: {
3486
3498
  direction: _e.UP
3487
3499
  }
3488
- }, Gs = {
3500
+ }, Ls = {
3489
3501
  id: it.id,
3490
3502
  description: "shortcut.drawing-move-left",
3491
3503
  group: "4_drawing-view",
3492
- binding: Fe.ARROW_LEFT,
3504
+ binding: xe.ARROW_LEFT,
3493
3505
  priority: 100,
3494
3506
  preconditions: st,
3495
3507
  staticParameters: {
3496
3508
  direction: _e.LEFT
3497
3509
  }
3498
- }, Xs = {
3510
+ }, Vs = {
3499
3511
  id: it.id,
3500
3512
  description: "shortcut.drawing-move-right",
3501
3513
  group: "4_drawing-view",
3502
- binding: Fe.ARROW_RIGHT,
3514
+ binding: xe.ARROW_RIGHT,
3503
3515
  priority: 100,
3504
3516
  preconditions: st,
3505
3517
  staticParameters: {
3506
3518
  direction: _e.RIGHT
3507
3519
  }
3508
- }, Ls = {
3520
+ }, Hs = {
3509
3521
  id: hr.id,
3510
3522
  description: "shortcut.drawing-delete",
3511
3523
  group: "4_drawing-view",
3512
3524
  // when focusing on any other input tag do not trigger this shortcut
3513
3525
  preconditions: st,
3514
- binding: Fe.DELETE,
3515
- mac: Fe.BACKSPACE
3526
+ binding: xe.DELETE,
3527
+ mac: xe.BACKSPACE
3516
3528
  };
3517
- var Vs = Object.getOwnPropertyDescriptor, Hs = (i, t, e, n) => {
3518
- 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--)
3519
3531
  (o = i[s]) && (r = o(r) || r);
3520
3532
  return r;
3521
3533
  }, Ne = (i, t) => (e, n) => t(e, n, i);
3522
- let Ut = class extends ne {
3534
+ let Ut = class extends re {
3523
3535
  constructor(i, t, e, n, r, s) {
3524
3536
  super(), this._componentManager = i, this._menuManagerService = t, this._commandService = e, this._shortcutService = n, this._drawingManagerService = r, this._sheetsSelectionsService = s, this._init();
3525
3537
  }
3526
3538
  _initCustomComponents() {
3527
3539
  const i = this._componentManager;
3528
- this.disposeWithMe(i.register(pr, Ws));
3540
+ this.disposeWithMe(i.register(pr, js));
3529
3541
  }
3530
3542
  _initMenus() {
3531
- this._menuManagerService.mergeMenu(Fs);
3543
+ this._menuManagerService.mergeMenu(Ys);
3532
3544
  }
3533
3545
  _initCommands() {
3534
3546
  [
@@ -3550,11 +3562,11 @@ let Ut = class extends ne {
3550
3562
  _initShortcuts() {
3551
3563
  [
3552
3564
  // sheet drawing shortcuts
3553
- xs,
3554
- Ys,
3555
3565
  Gs,
3556
3566
  Xs,
3557
- Ls
3567
+ Ls,
3568
+ Vs,
3569
+ Hs
3558
3570
  ].forEach((i) => {
3559
3571
  this.disposeWithMe(this._shortcutService.registerShortcut(i));
3560
3572
  });
@@ -3563,20 +3575,20 @@ let Ut = class extends ne {
3563
3575
  this._initCommands(), this._initCustomComponents(), this._initMenus(), this._initShortcuts();
3564
3576
  }
3565
3577
  };
3566
- Ut = Hs([
3578
+ Ut = Ks([
3567
3579
  Ne(0, A(dr)),
3568
- Ne(1, Fi),
3580
+ Ne(1, xi),
3569
3581
  Ne(2, X),
3570
- Ne(3, xi),
3571
- Ne(4, ie),
3582
+ Ne(3, Yi),
3583
+ Ne(4, se),
3572
3584
  Ne(5, A(on))
3573
3585
  ], Ut);
3574
- 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) => {
3575
- 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--)
3576
3588
  (o = i[s]) && (r = o(r) || r);
3577
3589
  return r;
3578
- }, Lt = (i, t) => (e, n) => t(e, n, i), Dr = (i, t, e) => Js(i, typeof t != "symbol" ? t + "" : t, e);
3579
- 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";
3580
3592
  let Pt = class extends oi {
3581
3593
  constructor(i = jn, t, e, n) {
3582
3594
  super(), this._config = i, this._injector = t, this._renderManagerService = e, this._configService = n;
@@ -3585,7 +3597,7 @@ let Pt = class extends oi {
3585
3597
  jn,
3586
3598
  this._config
3587
3599
  );
3588
- 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);
3589
3601
  }
3590
3602
  onStarting() {
3591
3603
  ci(this._injector, [
@@ -3632,11 +3644,11 @@ let Pt = class extends oi {
3632
3644
  }
3633
3645
  };
3634
3646
  Dr(Pt, "type", F.UNIVER_SHEET);
3635
- Dr(Pt, "pluginName", qs);
3636
- Pt = Zs([
3637
- ii(Ui, Gi, Ki, di),
3638
- Lt(1, A(Ge)),
3639
- 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),
3640
3652
  Lt(3, si)
3641
3653
  ], Pt);
3642
3654
  export {
@@ -3649,6 +3661,7 @@ export {
3649
3661
  it as MoveDrawingsCommand,
3650
3662
  rt as RemoveSheetDrawingCommand,
3651
3663
  Cr as SHEETS_IMAGE_MENU_ID,
3664
+ Es as SHEET_FLOAT_DOM_PREFIX,
3652
3665
  fr as SetDrawingArrangeCommand,
3653
3666
  Wt as SetSheetDrawingCommand,
3654
3667
  tt as SheetCanvasFloatDomManagerService,
@@ -3657,6 +3670,6 @@ export {
3657
3670
  mr as UngroupSheetDrawingCommand,
3658
3671
  Pt as UniverSheetsDrawingUIPlugin,
3659
3672
  ge as calcSheetFloatDomPosition,
3660
- z as drawingPositionToTransform,
3673
+ K as drawingPositionToTransform,
3661
3674
  $ as transformToDrawingPosition
3662
3675
  };