@univerjs/docs-drawing-ui 0.15.1 → 0.15.2-insiders.20260122-b1556b1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +120 -122
- package/lib/index.js +120 -122
- package/lib/umd/index.js +1 -1
- package/package.json +11 -11
- package/LICENSE +0 -176
package/lib/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
var Pn = Object.defineProperty;
|
|
2
2
|
var xn = (r, e, t) => e in r ? Pn(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
3
|
var me = (r, e, t) => xn(r, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { CommandType as q, ICommandService as V, IUniverInstanceService as z, TextX as _t, JSONX as $, MemoryCursor as Nn, TextXActionType as Y, IUndoRedoService as Kt, BuildTextUtils as Un, ArrangeTypeEnum as Ze, Tools as Ae, Inject as Z, IContextService as Yt, LocaleService as lt, Disposable as xe, WrapTextType as $e, PositionedObjectLayoutType as k, BooleanNumber as se, DrawingTypeEnum as Pe, ObjectRelativeFromV as W, ObjectRelativeFromH as J, FOCUSING_COMMON_DRAWINGS as nt, UniverInstanceType as ve, Direction as he, DisposableCollection as Ln, toDisposable as ze, fromEventSubject as Zt, generateRandomId as Qt, DocumentFlavor as pt, DOCS_ZEN_EDITOR_UNIT_ID_KEY as St, FOCUSING_DOC as Bn, FOCUSING_UNIVER_EDITOR as Fn, UndoCommand as kn, RedoCommand as Wn, Injector as Jt, DOC_DRAWING_PRINTING_COMPONENT_KEY as Gn, throttle as Et, COLORS as Hn, RxDisposable as Vn,
|
|
5
|
-
import { IDocDrawingService as Ne, UniverDocsDrawingPlugin as
|
|
4
|
+
import { CommandType as q, ICommandService as V, IUniverInstanceService as z, TextX as _t, JSONX as $, MemoryCursor as Nn, TextXActionType as Y, IUndoRedoService as Kt, BuildTextUtils as Un, ArrangeTypeEnum as Ze, Tools as Ae, Inject as Z, IContextService as Yt, LocaleService as lt, Disposable as xe, WrapTextType as $e, PositionedObjectLayoutType as k, BooleanNumber as se, DrawingTypeEnum as Pe, ObjectRelativeFromV as W, ObjectRelativeFromH as J, FOCUSING_COMMON_DRAWINGS as nt, UniverInstanceType as ve, Direction as he, DisposableCollection as Ln, toDisposable as ze, fromEventSubject as Zt, generateRandomId as Qt, DocumentFlavor as pt, DOCS_ZEN_EDITOR_UNIT_ID_KEY as St, FOCUSING_DOC as Bn, FOCUSING_UNIVER_EDITOR as Fn, UndoCommand as kn, RedoCommand as Wn, Injector as Jt, DOC_DRAWING_PRINTING_COMPONENT_KEY as Gn, throttle as Et, COLORS as Hn, RxDisposable as Vn, isInternalEditorID as jn, LifecycleService as $n, LifecycleStages as Rt, DependentOn as zn, IConfigService as Xn, Plugin as qn, merge as Kn } from "@univerjs/core";
|
|
5
|
+
import { IDocDrawingService as Ne, UniverDocsDrawingPlugin as Yn } from "@univerjs/docs-drawing";
|
|
6
6
|
import { RichTextEditingMutation as ee, DocSelectionManagerService as Dt, DocSkeletonManagerService as te } from "@univerjs/docs";
|
|
7
|
-
import { DocSelectionRenderService as Me, getRichTextEditPath as Xe, getCustomBlockIdsInSelections as
|
|
8
|
-
import { IRenderManagerService as Q, DocumentEditArea as Fe, getCurrentTypeOfRenderer as
|
|
9
|
-
import { MessageType as Lt, clsx as sn, InputNumber as Be, Select as Bt, Checkbox as
|
|
10
|
-
import { IImageIoService as
|
|
11
|
-
import { IMessageService as
|
|
12
|
-
import { BehaviorSubject as Ot, debounceTime as dn, map as Ht, switchMap as
|
|
13
|
-
import { DrawingRenderService as gn, DrawingCommonPanel as
|
|
7
|
+
import { DocSelectionRenderService as Me, getRichTextEditPath as Xe, getCustomBlockIdsInSelections as Zn, docDrawingPositionToTransform as en, VIEWPORT_KEY as tn, SetDocZoomRatioOperation as nn, DocPrintInterceptorService as Qn, NodePositionConvertToCursor as At, getOneTextSelectionRange as Pt, getAnchorBounding as Jn, TEXT_RANGE_LAYER_INDEX as ei, getDocObject as ti, DocCanvasPopManagerService as ni, IEditorService as ii } from "@univerjs/docs-ui";
|
|
8
|
+
import { IRenderManagerService as Q, DocumentEditArea as Fe, getCurrentTypeOfRenderer as ri, CURSOR_TYPE as xt, Liquid as rn, PageLayoutType as Nt, DocumentSkeletonPageType as Ut, Vector2 as si, Rect as oi, getColor as ai, TRANSFORM_CHANGE_OBSERVABLE_TYPE as ci } from "@univerjs/engine-render";
|
|
9
|
+
import { MessageType as Lt, clsx as sn, InputNumber as Be, Select as Bt, Checkbox as di, RadioGroup as Ft, Radio as Te, render as gi, unmount as li } from "@univerjs/design";
|
|
10
|
+
import { IImageIoService as ui, IDrawingManagerService as fe, DRAWING_IMAGE_ALLOW_IMAGE_LIST as hi, DRAWING_IMAGE_COUNT_LIMIT as kt, ImageUploadStatusType as mt, DRAWING_IMAGE_ALLOW_SIZE as fi, getImageSize as pi, getDrawingShapeKeyByDrawingSearch as mi, DRAWING_IMAGE_WIDTH_LIMIT as Wt, DRAWING_IMAGE_HEIGHT_LIMIT as Gt, UniverDrawingPlugin as wi } from "@univerjs/drawing";
|
|
11
|
+
import { IMessageService as vi, ILocalFileService as Ii, ISidebarService as _i, CanvasFloatDomService as Si, useDependency as we, getMenuHiddenObservable as on, MenuItemType as an, RibbonInsertGroup as Di, KeyCode as ke, ComponentManager as cn, IMenuManagerService as Oi, IShortcutService as Ti, PrintFloatDomSingle as Mi, connectInjector as yi, UniverUIPlugin as bi } from "@univerjs/ui";
|
|
12
|
+
import { BehaviorSubject as Ot, debounceTime as dn, map as Ht, switchMap as Ci, of as Ei, Observable as Ri, takeUntil as Vt, filter as jt } from "rxjs";
|
|
13
|
+
import { DrawingRenderService as gn, DrawingCommonPanel as Ai, ImageCropperObject as Pi, COMPONENT_IMAGE_POPUP_MENU as xi, OpenImageCropOperation as Ni, ImageResetSizeOperation as Ui, UniverDrawingUIPlugin as Li } from "@univerjs/drawing-ui";
|
|
14
14
|
import { jsxs as X, jsx as M } from "react/jsx-runtime";
|
|
15
|
-
import { useState as re, useEffect as Tt, useMemo as
|
|
15
|
+
import { useState as re, useEffect as Tt, useMemo as Bi } from "react";
|
|
16
16
|
const Mt = {
|
|
17
17
|
id: "doc.command.remove-doc-image",
|
|
18
18
|
type: q.COMMAND,
|
|
@@ -116,7 +116,7 @@ const Mt = {
|
|
|
116
116
|
else {
|
|
117
117
|
const v = Un.selection.delete([s], l, 0, null, !1);
|
|
118
118
|
f.push(...v);
|
|
119
|
-
const N =
|
|
119
|
+
const N = Zn(l, [s]), G = (L = o.getDrawings()) != null ? L : {}, x = (R = o.getDrawingsOrder()) != null ? R : [], H = N.sort((I, _) => x.indexOf(I) > x.indexOf(_) ? -1 : x.indexOf(I) < x.indexOf(_) ? 1 : 0);
|
|
120
120
|
if (H.length > 0)
|
|
121
121
|
for (const I of H) {
|
|
122
122
|
const _ = G[I], E = x.indexOf(I);
|
|
@@ -206,8 +206,8 @@ class ut {
|
|
|
206
206
|
this._refreshDrawings$.next(e);
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
var
|
|
210
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
209
|
+
var Fi = Object.getOwnPropertyDescriptor, ki = (r, e, t, n) => {
|
|
210
|
+
for (var i = n > 1 ? void 0 : n ? Fi(e, t) : e, s = r.length - 1, o; s >= 0; s--)
|
|
211
211
|
(o = r[s]) && (i = o(i) || i);
|
|
212
212
|
return i;
|
|
213
213
|
}, le = (r, e) => (t, n) => e(t, n, r);
|
|
@@ -221,7 +221,7 @@ let it = class extends xe {
|
|
|
221
221
|
async insertDocImage() {
|
|
222
222
|
const r = await this._fileOpenerService.openFile({
|
|
223
223
|
multiple: !0,
|
|
224
|
-
accept:
|
|
224
|
+
accept: hi.map((t) => `.${t.replace("image/", "")}`).join(",")
|
|
225
225
|
}), e = r.length;
|
|
226
226
|
return e > kt ? (this._messageService.show({
|
|
227
227
|
type: Lt.Error,
|
|
@@ -238,7 +238,7 @@ let it = class extends xe {
|
|
|
238
238
|
let o = "";
|
|
239
239
|
switch (s) {
|
|
240
240
|
case mt.ERROR_EXCEED_SIZE:
|
|
241
|
-
o = this._localeService.t("update-status.exceedMaxSize", String(
|
|
241
|
+
o = this._localeService.t("update-status.exceedMaxSize", String(fi / (1024 * 1024)));
|
|
242
242
|
break;
|
|
243
243
|
case mt.ERROR_IMAGE_TYPE:
|
|
244
244
|
o = this._localeService.t("update-status.invalidImageType");
|
|
@@ -258,7 +258,7 @@ let it = class extends xe {
|
|
|
258
258
|
for (const i of e) {
|
|
259
259
|
if (i == null)
|
|
260
260
|
continue;
|
|
261
|
-
const { imageId: s, imageSourceType: o, source: c, base64Cache: d } = i, { width: a, height: g, image: u } = await
|
|
261
|
+
const { imageId: s, imageSourceType: o, source: c, base64Cache: d } = i, { width: a, height: g, image: u } = await pi(d || "");
|
|
262
262
|
this._imageIoService.addImageSourceCache(s, o, u);
|
|
263
263
|
let l = 1;
|
|
264
264
|
if (a > Wt || g > Gt) {
|
|
@@ -402,7 +402,7 @@ let it = class extends xe {
|
|
|
402
402
|
return;
|
|
403
403
|
const i = r.getSnapshot(), { drawings: s = {} } = i, o = n.getEditArea() === Fe.BODY;
|
|
404
404
|
for (const d of Object.keys(s)) {
|
|
405
|
-
const a = s[d], g =
|
|
405
|
+
const a = s[d], g = mi({ unitId: t, drawingId: a.drawingId, subUnitId: t }), u = e.fuzzyMathObjects(g, !0);
|
|
406
406
|
if (u.length)
|
|
407
407
|
for (const l of u) {
|
|
408
408
|
e.detachTransformerFrom(l);
|
|
@@ -450,19 +450,19 @@ let it = class extends xe {
|
|
|
450
450
|
this._docSelectionManagerService.replaceDocRanges(n);
|
|
451
451
|
}
|
|
452
452
|
};
|
|
453
|
-
it =
|
|
453
|
+
it = ki([
|
|
454
454
|
le(1, V),
|
|
455
455
|
le(2, Z(Dt)),
|
|
456
456
|
le(3, Q),
|
|
457
|
-
le(4,
|
|
457
|
+
le(4, ui),
|
|
458
458
|
le(5, Ne),
|
|
459
459
|
le(6, fe),
|
|
460
460
|
le(7, Yt),
|
|
461
|
-
le(8,
|
|
461
|
+
le(8, vi),
|
|
462
462
|
le(9, Z(lt)),
|
|
463
463
|
le(10, Z(Me)),
|
|
464
464
|
le(11, Z(ut)),
|
|
465
|
-
le(12,
|
|
465
|
+
le(12, Ii)
|
|
466
466
|
], it);
|
|
467
467
|
const pn = {
|
|
468
468
|
id: "doc.command.insert-float-image",
|
|
@@ -470,11 +470,11 @@ const pn = {
|
|
|
470
470
|
handler: (r) => {
|
|
471
471
|
var n, i;
|
|
472
472
|
const e = r.get(z), t = r.get(Q);
|
|
473
|
-
return (i = (n =
|
|
473
|
+
return (i = (n = ri(ve.UNIVER_DOC, e, t)) == null ? void 0 : n.with(it).insertDocImage()) != null ? i : !1;
|
|
474
474
|
}
|
|
475
475
|
};
|
|
476
476
|
var ue = /* @__PURE__ */ ((r) => (r.INLINE = "inline", r.BEHIND_TEXT = "behindText", r.IN_FRONT_OF_TEXT = "inFrontOfText", r.WRAP_SQUARE = "wrapSquare", r.WRAP_TOP_AND_BOTTOM = "wrapTopAndBottom", r))(ue || {});
|
|
477
|
-
const
|
|
477
|
+
const Wi = {
|
|
478
478
|
inline: k.INLINE,
|
|
479
479
|
wrapSquare: k.WRAP_SQUARE,
|
|
480
480
|
wrapTopAndBottom: k.WRAP_TOP_AND_BOTTOM,
|
|
@@ -571,7 +571,7 @@ const wn = {
|
|
|
571
571
|
return !1;
|
|
572
572
|
const f = g.getEditArea(), h = u.getTransformerByCreate(), { pages: m, skeHeaders: p, skeFooters: w } = a, D = $.getInstance(), S = [], { drawings: O = {} } = l.getSnapshot();
|
|
573
573
|
for (const R of t) {
|
|
574
|
-
const { drawingId: v } = R, N = O[v].layoutType, G =
|
|
574
|
+
const { drawingId: v } = R, N = O[v].layoutType, G = Wi[n];
|
|
575
575
|
if (N !== G) {
|
|
576
576
|
const _ = D.replaceOp(["drawings", v, "layoutType"], N, G);
|
|
577
577
|
S.push(_);
|
|
@@ -861,7 +861,7 @@ const wn = {
|
|
|
861
861
|
});
|
|
862
862
|
return u.refreshControls(), !!h;
|
|
863
863
|
}
|
|
864
|
-
},
|
|
864
|
+
}, Gi = {
|
|
865
865
|
id: "doc.operation.clear-drawing-transformer",
|
|
866
866
|
type: q.MUTATION,
|
|
867
867
|
handler: (r, e) => {
|
|
@@ -875,7 +875,7 @@ const wn = {
|
|
|
875
875
|
id: "sidebar.operation.doc-image",
|
|
876
876
|
type: q.COMMAND,
|
|
877
877
|
handler: async (r, e) => {
|
|
878
|
-
const t = r.get(
|
|
878
|
+
const t = r.get(_i), n = r.get(lt), i = r.get(fe);
|
|
879
879
|
return e.value === "open" ? t.open({
|
|
880
880
|
header: { title: n.t("docImage.panel.title") },
|
|
881
881
|
children: { label: Dn },
|
|
@@ -893,8 +893,8 @@ const wn = {
|
|
|
893
893
|
return e == null ? !1 : (t.focusDrawing([e]), n.executeCommand(On.id, { value: "open" }), !0);
|
|
894
894
|
}
|
|
895
895
|
};
|
|
896
|
-
var
|
|
897
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
896
|
+
var Hi = Object.getOwnPropertyDescriptor, Vi = (r, e, t, n) => {
|
|
897
|
+
for (var i = n > 1 ? void 0 : n ? Hi(e, t) : e, s = r.length - 1, o; s >= 0; s--)
|
|
898
898
|
(o = r[s]) && (i = o(i) || i);
|
|
899
899
|
return i;
|
|
900
900
|
}, Le = (r, e) => (t, n) => e(t, n, r);
|
|
@@ -1045,8 +1045,8 @@ let rt = class extends xe {
|
|
|
1045
1045
|
const n = t.getUnitId(), i = this._renderManagerService.getRenderById(n);
|
|
1046
1046
|
return i ? { render: i, unitId: n } : null;
|
|
1047
1047
|
}),
|
|
1048
|
-
|
|
1049
|
-
(t) => t ? Zt(t.render.scene.getViewport(tn.VIEW_MAIN).onScrollAfter$).pipe(Ht(() => ({ unitId: t.unitId }))) :
|
|
1048
|
+
Ci(
|
|
1049
|
+
(t) => t ? Zt(t.render.scene.getViewport(tn.VIEW_MAIN).onScrollAfter$).pipe(Ht(() => ({ unitId: t.unitId }))) : Ei(null)
|
|
1050
1050
|
)
|
|
1051
1051
|
).subscribe((t) => {
|
|
1052
1052
|
if (!t) return;
|
|
@@ -1102,15 +1102,15 @@ let rt = class extends xe {
|
|
|
1102
1102
|
return this._commandService.syncExecuteCommand(yt.id, h), f;
|
|
1103
1103
|
}
|
|
1104
1104
|
};
|
|
1105
|
-
rt =
|
|
1105
|
+
rt = Vi([
|
|
1106
1106
|
Le(0, Q),
|
|
1107
1107
|
Le(1, fe),
|
|
1108
1108
|
Le(2, Z(gn)),
|
|
1109
|
-
Le(3, Z(
|
|
1109
|
+
Le(3, Z(Si)),
|
|
1110
1110
|
Le(4, z),
|
|
1111
1111
|
Le(5, V)
|
|
1112
1112
|
], rt);
|
|
1113
|
-
const
|
|
1113
|
+
const ji = "docs-drawing-ui.config", $t = {}, zt = -1e3, Xt = 1e3, $i = (r) => {
|
|
1114
1114
|
const e = we(V), t = we(lt), n = we(fe), i = we(Q), s = we(z), { drawings: o } = r, c = o[0];
|
|
1115
1115
|
if (c == null)
|
|
1116
1116
|
return;
|
|
@@ -1380,7 +1380,7 @@ const Vi = "docs-drawing-ui.config", $t = {}, zt = -1e3, Xt = 1e3, ji = (r) => {
|
|
|
1380
1380
|
}
|
|
1381
1381
|
),
|
|
1382
1382
|
/* @__PURE__ */ M("div", { children: /* @__PURE__ */ M(
|
|
1383
|
-
|
|
1383
|
+
di,
|
|
1384
1384
|
{
|
|
1385
1385
|
disabled: p,
|
|
1386
1386
|
checked: y,
|
|
@@ -1391,7 +1391,7 @@ const Vi = "docs-drawing-ui.config", $t = {}, zt = -1e3, Xt = 1e3, ji = (r) => {
|
|
|
1391
1391
|
]
|
|
1392
1392
|
}
|
|
1393
1393
|
);
|
|
1394
|
-
}, Qe = 0, Je = 100,
|
|
1394
|
+
}, Qe = 0, Je = 100, zi = (r) => {
|
|
1395
1395
|
const e = we(V), t = we(lt), n = we(fe), i = we(Q), s = we(z), { drawings: o } = r, c = o[0];
|
|
1396
1396
|
if (c == null)
|
|
1397
1397
|
return null;
|
|
@@ -1644,7 +1644,7 @@ const Vi = "docs-drawing-ui.config", $t = {}, zt = -1e3, Xt = 1e3, ji = (r) => {
|
|
|
1644
1644
|
]
|
|
1645
1645
|
}
|
|
1646
1646
|
);
|
|
1647
|
-
},
|
|
1647
|
+
}, Xi = () => {
|
|
1648
1648
|
const r = we(fe), e = r.getFocusDrawings(), [t, n] = re(e);
|
|
1649
1649
|
return Tt(() => {
|
|
1650
1650
|
const i = r.focus$.subscribe((s) => {
|
|
@@ -1654,13 +1654,13 @@ const Vi = "docs-drawing-ui.config", $t = {}, zt = -1e3, Xt = 1e3, ji = (r) => {
|
|
|
1654
1654
|
i.unsubscribe();
|
|
1655
1655
|
};
|
|
1656
1656
|
}, []), !!(t != null && t.length) && /* @__PURE__ */ X("div", { className: "univer-text-sm", children: [
|
|
1657
|
-
/* @__PURE__ */ M(
|
|
1658
|
-
/* @__PURE__ */ M(
|
|
1659
|
-
/* @__PURE__ */ M(
|
|
1657
|
+
/* @__PURE__ */ M(Ai, { drawings: t, hasAlign: !1, hasCropper: !1, hasGroup: !1, hasTransform: !1 }),
|
|
1658
|
+
/* @__PURE__ */ M(zi, { drawings: t }),
|
|
1659
|
+
/* @__PURE__ */ M($i, { drawings: t })
|
|
1660
1660
|
] });
|
|
1661
|
-
}, yn = "doc.menu.image", bn = pn.id,
|
|
1661
|
+
}, yn = "doc.menu.image", bn = pn.id, qi = (r) => {
|
|
1662
1662
|
const e = r.get(Dt), t = r.get(z);
|
|
1663
|
-
return new
|
|
1663
|
+
return new Ri((n) => {
|
|
1664
1664
|
const i = e.textSelection$.subscribe(() => {
|
|
1665
1665
|
var o;
|
|
1666
1666
|
const s = e.getActiveTextRange();
|
|
@@ -1682,17 +1682,17 @@ const Vi = "docs-drawing-ui.config", $t = {}, zt = -1e3, Xt = 1e3, ji = (r) => {
|
|
|
1682
1682
|
return () => i.unsubscribe();
|
|
1683
1683
|
});
|
|
1684
1684
|
};
|
|
1685
|
-
function
|
|
1685
|
+
function Ki(r) {
|
|
1686
1686
|
return {
|
|
1687
1687
|
id: yn,
|
|
1688
1688
|
type: an.SUBITEMS,
|
|
1689
1689
|
icon: "AddImageIcon",
|
|
1690
1690
|
tooltip: "docImage.title",
|
|
1691
|
-
disabled$:
|
|
1691
|
+
disabled$: qi(r),
|
|
1692
1692
|
hidden$: on(r, ve.UNIVER_DOC, void 0, St)
|
|
1693
1693
|
};
|
|
1694
1694
|
}
|
|
1695
|
-
function
|
|
1695
|
+
function Yi(r) {
|
|
1696
1696
|
return {
|
|
1697
1697
|
id: bn,
|
|
1698
1698
|
title: "docImage.upload.float",
|
|
@@ -1700,14 +1700,14 @@ function Ki(r) {
|
|
|
1700
1700
|
hidden$: on(r, ve.UNIVER_DOC, void 0, St)
|
|
1701
1701
|
};
|
|
1702
1702
|
}
|
|
1703
|
-
const
|
|
1704
|
-
[
|
|
1703
|
+
const Zi = {
|
|
1704
|
+
[Di.MEDIA]: {
|
|
1705
1705
|
[yn]: {
|
|
1706
1706
|
order: 0,
|
|
1707
|
-
menuItemFactory:
|
|
1707
|
+
menuItemFactory: Ki,
|
|
1708
1708
|
[bn]: {
|
|
1709
1709
|
order: 0,
|
|
1710
|
-
menuItemFactory:
|
|
1710
|
+
menuItemFactory: Yi
|
|
1711
1711
|
}
|
|
1712
1712
|
}
|
|
1713
1713
|
}
|
|
@@ -1715,7 +1715,7 @@ const Yi = {
|
|
|
1715
1715
|
function Ye(r) {
|
|
1716
1716
|
return r.getContextValue(Bn) && r.getContextValue(Fn) && r.getContextValue(nt);
|
|
1717
1717
|
}
|
|
1718
|
-
const
|
|
1718
|
+
const Qi = {
|
|
1719
1719
|
id: Ke.id,
|
|
1720
1720
|
description: "shortcut.drawing-move-down",
|
|
1721
1721
|
group: "4_drawing-view",
|
|
@@ -1725,7 +1725,7 @@ const Zi = {
|
|
|
1725
1725
|
staticParameters: {
|
|
1726
1726
|
direction: he.DOWN
|
|
1727
1727
|
}
|
|
1728
|
-
},
|
|
1728
|
+
}, Ji = {
|
|
1729
1729
|
id: Ke.id,
|
|
1730
1730
|
description: "shortcut.drawing-move-up",
|
|
1731
1731
|
group: "4_drawing-view",
|
|
@@ -1735,7 +1735,7 @@ const Zi = {
|
|
|
1735
1735
|
staticParameters: {
|
|
1736
1736
|
direction: he.UP
|
|
1737
1737
|
}
|
|
1738
|
-
},
|
|
1738
|
+
}, er = {
|
|
1739
1739
|
id: Ke.id,
|
|
1740
1740
|
description: "shortcut.drawing-move-left",
|
|
1741
1741
|
group: "4_drawing-view",
|
|
@@ -1745,7 +1745,7 @@ const Zi = {
|
|
|
1745
1745
|
staticParameters: {
|
|
1746
1746
|
direction: he.LEFT
|
|
1747
1747
|
}
|
|
1748
|
-
},
|
|
1748
|
+
}, tr = {
|
|
1749
1749
|
id: Ke.id,
|
|
1750
1750
|
description: "shortcut.drawing-move-right",
|
|
1751
1751
|
group: "4_drawing-view",
|
|
@@ -1755,7 +1755,7 @@ const Zi = {
|
|
|
1755
1755
|
staticParameters: {
|
|
1756
1756
|
direction: he.RIGHT
|
|
1757
1757
|
}
|
|
1758
|
-
},
|
|
1758
|
+
}, nr = {
|
|
1759
1759
|
id: ln.id,
|
|
1760
1760
|
description: "shortcut.drawing-delete",
|
|
1761
1761
|
group: "4_drawing-view",
|
|
@@ -1764,8 +1764,8 @@ const Zi = {
|
|
|
1764
1764
|
binding: ke.DELETE,
|
|
1765
1765
|
mac: ke.BACKSPACE
|
|
1766
1766
|
};
|
|
1767
|
-
var
|
|
1768
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
1767
|
+
var ir = Object.getOwnPropertyDescriptor, rr = (r, e, t, n) => {
|
|
1768
|
+
for (var i = n > 1 ? void 0 : n ? ir(e, t) : e, s = r.length - 1, o; s >= 0; s--)
|
|
1769
1769
|
(o = r[s]) && (i = o(i) || i);
|
|
1770
1770
|
return i;
|
|
1771
1771
|
}, et = (r, e) => (t, n) => e(t, n, r);
|
|
@@ -1775,10 +1775,10 @@ let st = class extends xe {
|
|
|
1775
1775
|
}
|
|
1776
1776
|
_initCustomComponents() {
|
|
1777
1777
|
const r = this._componentManager;
|
|
1778
|
-
this.disposeWithMe(r.register(Dn,
|
|
1778
|
+
this.disposeWithMe(r.register(Dn, Xi));
|
|
1779
1779
|
}
|
|
1780
1780
|
_initMenus() {
|
|
1781
|
-
this._menuManagerService.mergeMenu(
|
|
1781
|
+
this._menuManagerService.mergeMenu(Zi);
|
|
1782
1782
|
}
|
|
1783
1783
|
_initCommands() {
|
|
1784
1784
|
[
|
|
@@ -1792,7 +1792,7 @@ let st = class extends xe {
|
|
|
1792
1792
|
Sn,
|
|
1793
1793
|
Mt,
|
|
1794
1794
|
On,
|
|
1795
|
-
|
|
1795
|
+
Gi,
|
|
1796
1796
|
Tn,
|
|
1797
1797
|
un,
|
|
1798
1798
|
fn,
|
|
@@ -1804,11 +1804,11 @@ let st = class extends xe {
|
|
|
1804
1804
|
_initShortcuts() {
|
|
1805
1805
|
[
|
|
1806
1806
|
// sheet drawing shortcuts
|
|
1807
|
-
Zi,
|
|
1808
1807
|
Qi,
|
|
1809
1808
|
Ji,
|
|
1810
1809
|
er,
|
|
1811
|
-
tr
|
|
1810
|
+
tr,
|
|
1811
|
+
nr
|
|
1812
1812
|
].forEach((r) => {
|
|
1813
1813
|
this.disposeWithMe(this._shortcutService.registerShortcut(r));
|
|
1814
1814
|
});
|
|
@@ -1817,18 +1817,18 @@ let st = class extends xe {
|
|
|
1817
1817
|
this._initCommands(), this._initCustomComponents(), this._initMenus(), this._initShortcuts();
|
|
1818
1818
|
}
|
|
1819
1819
|
};
|
|
1820
|
-
st =
|
|
1820
|
+
st = rr([
|
|
1821
1821
|
et(0, Z(cn)),
|
|
1822
|
-
et(1,
|
|
1822
|
+
et(1, Oi),
|
|
1823
1823
|
et(2, V),
|
|
1824
|
-
et(3,
|
|
1824
|
+
et(3, Ti)
|
|
1825
1825
|
], st);
|
|
1826
|
-
var
|
|
1827
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
1826
|
+
var sr = Object.getOwnPropertyDescriptor, or = (r, e, t, n) => {
|
|
1827
|
+
for (var i = n > 1 ? void 0 : n ? sr(e, t) : e, s = r.length - 1, o; s >= 0; s--)
|
|
1828
1828
|
(o = r[s]) && (i = o(i) || i);
|
|
1829
1829
|
return i;
|
|
1830
1830
|
}, He = (r, e) => (t, n) => e(t, n, r);
|
|
1831
|
-
function
|
|
1831
|
+
function ar(r) {
|
|
1832
1832
|
var n, i, s, o;
|
|
1833
1833
|
if ($.isNoop(r) || !Array.isArray(r))
|
|
1834
1834
|
return null;
|
|
@@ -1851,7 +1851,7 @@ function or(r) {
|
|
|
1851
1851
|
});
|
|
1852
1852
|
return t;
|
|
1853
1853
|
}
|
|
1854
|
-
function
|
|
1854
|
+
function cr(r) {
|
|
1855
1855
|
if (!Array.isArray(r) || r.length < 3 || r[0] !== "drawingsOrder")
|
|
1856
1856
|
return [];
|
|
1857
1857
|
const e = [];
|
|
@@ -1878,7 +1878,7 @@ let ot = class extends xe {
|
|
|
1878
1878
|
this._commandService.beforeCommandExecuted((r) => {
|
|
1879
1879
|
if (r.id !== ee.id)
|
|
1880
1880
|
return;
|
|
1881
|
-
const e = r.params, { unitId: t, actions: n } = e, i =
|
|
1881
|
+
const e = r.params, { unitId: t, actions: n } = e, i = ar(n);
|
|
1882
1882
|
if (i != null)
|
|
1883
1883
|
for (const { type: s, drawingId: o, drawing: c } of i)
|
|
1884
1884
|
s === "add" ? this._addDrawings(t, [c]) : this._removeDrawings(t, [o]);
|
|
@@ -1888,7 +1888,7 @@ let ot = class extends xe {
|
|
|
1888
1888
|
if (r.id !== ee.id)
|
|
1889
1889
|
return;
|
|
1890
1890
|
const e = r.params, { unitId: t, actions: n } = e;
|
|
1891
|
-
|
|
1891
|
+
cr(n).length > 0 && this._updateDrawingsOrder(t);
|
|
1892
1892
|
})
|
|
1893
1893
|
), this.disposeWithMe(
|
|
1894
1894
|
this._commandService.onCommandExecuted((r) => {
|
|
@@ -1934,15 +1934,15 @@ let ot = class extends xe {
|
|
|
1934
1934
|
n.orderNotification(s), i.orderNotification(s);
|
|
1935
1935
|
}
|
|
1936
1936
|
};
|
|
1937
|
-
ot =
|
|
1937
|
+
ot = or([
|
|
1938
1938
|
He(0, z),
|
|
1939
1939
|
He(1, V),
|
|
1940
1940
|
He(2, fe),
|
|
1941
1941
|
He(3, Ne),
|
|
1942
1942
|
He(4, Q)
|
|
1943
1943
|
], ot);
|
|
1944
|
-
const
|
|
1945
|
-
const { floatDomInfos: e, scene: t, offset: n, bound: i } = r, s = i.right - i.left, o = i.bottom - i.top, c =
|
|
1944
|
+
const dr = (r) => {
|
|
1945
|
+
const { floatDomInfos: e, scene: t, offset: n, bound: i } = r, s = i.right - i.left, o = i.bottom - i.top, c = Bi(() => e.map((d) => {
|
|
1946
1946
|
const { width: a = 0, height: g = 0, left: u = 0, top: l = 0 } = d.transform, h = Mn(
|
|
1947
1947
|
{
|
|
1948
1948
|
left: u,
|
|
@@ -1969,10 +1969,10 @@ const cr = (r) => {
|
|
|
1969
1969
|
};
|
|
1970
1970
|
return [d.drawingId, m];
|
|
1971
1971
|
}).filter(([d, a]) => !(a.position.endX < 0 || a.position.endY < 0 || a.position.startX > s || a.position.startY > o)), [e, t, n, s, o]);
|
|
1972
|
-
return /* @__PURE__ */ M("div", { className: "univer-absolute univer-left-0 univer-top-0", children: c.map(([d, a]) => /* @__PURE__ */ M(
|
|
1972
|
+
return /* @__PURE__ */ M("div", { className: "univer-absolute univer-left-0 univer-top-0", children: c.map(([d, a]) => /* @__PURE__ */ M(Mi, { layer: a, id: d, position: a.position }, d)) });
|
|
1973
1973
|
};
|
|
1974
|
-
var
|
|
1975
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
1974
|
+
var gr = Object.getOwnPropertyDescriptor, lr = (r, e, t, n) => {
|
|
1975
|
+
for (var i = n > 1 ? void 0 : n ? gr(e, t) : e, s = r.length - 1, o; s >= 0; s--)
|
|
1976
1976
|
(o = r[s]) && (i = o(i) || i);
|
|
1977
1977
|
return i;
|
|
1978
1978
|
}, Ve = (r, e) => (t, n) => e(t, n, r);
|
|
@@ -2019,8 +2019,8 @@ let at = class extends xe {
|
|
|
2019
2019
|
};
|
|
2020
2020
|
}
|
|
2021
2021
|
return null;
|
|
2022
|
-
}).filter(Boolean), c =
|
|
2023
|
-
return
|
|
2022
|
+
}).filter(Boolean), c = yi(dr, this._injector);
|
|
2023
|
+
return gi(
|
|
2024
2024
|
/* @__PURE__ */ M(
|
|
2025
2025
|
c,
|
|
2026
2026
|
{
|
|
@@ -2034,7 +2034,7 @@ let at = class extends xe {
|
|
|
2034
2034
|
),
|
|
2035
2035
|
e.root
|
|
2036
2036
|
), r == null || r.add(() => {
|
|
2037
|
-
|
|
2037
|
+
li(e.root);
|
|
2038
2038
|
}), t(r);
|
|
2039
2039
|
}
|
|
2040
2040
|
}
|
|
@@ -2043,19 +2043,19 @@ let at = class extends xe {
|
|
|
2043
2043
|
);
|
|
2044
2044
|
}
|
|
2045
2045
|
};
|
|
2046
|
-
at =
|
|
2047
|
-
Ve(0, Z(
|
|
2046
|
+
at = lr([
|
|
2047
|
+
Ve(0, Z(Qn)),
|
|
2048
2048
|
Ve(1, Z(gn)),
|
|
2049
2049
|
Ve(2, fe),
|
|
2050
2050
|
Ve(3, Z(cn)),
|
|
2051
2051
|
Ve(4, Z(Jt))
|
|
2052
2052
|
], at);
|
|
2053
|
-
var
|
|
2054
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
2053
|
+
var ur = Object.getOwnPropertyDescriptor, hr = (r, e, t, n) => {
|
|
2054
|
+
for (var i = n > 1 ? void 0 : n ? ur(e, t) : e, s = r.length - 1, o; s >= 0; s--)
|
|
2055
2055
|
(o = r[s]) && (i = o(i) || i);
|
|
2056
2056
|
return i;
|
|
2057
2057
|
}, tt = (r, e) => (t, n) => e(t, n, r);
|
|
2058
|
-
const
|
|
2058
|
+
const fr = "__InlineDrawingAnchor__";
|
|
2059
2059
|
function qt(r) {
|
|
2060
2060
|
const { path: e } = r;
|
|
2061
2061
|
return e.some((t) => t === "cells");
|
|
@@ -2481,7 +2481,7 @@ let ct = class extends xe {
|
|
|
2481
2481
|
return { scene: n, transformer: i };
|
|
2482
2482
|
}
|
|
2483
2483
|
_getTransformCoordForDocumentOffset(e, t, n, i) {
|
|
2484
|
-
const { documentTransform: s } = e.getOffsetConfig(), o = t.transformVector2SceneCoord(
|
|
2484
|
+
const { documentTransform: s } = e.getOffsetConfig(), o = t.transformVector2SceneCoord(si.FromArray([n, i]));
|
|
2485
2485
|
if (o)
|
|
2486
2486
|
return s.clone().invert().applyPoint(o);
|
|
2487
2487
|
}
|
|
@@ -2492,23 +2492,23 @@ let ct = class extends xe {
|
|
|
2492
2492
|
const { mainComponent: i, scene: s } = n, o = i, {
|
|
2493
2493
|
docsLeft: c,
|
|
2494
2494
|
docsTop: d
|
|
2495
|
-
} = o.getOffsetConfig(), a =
|
|
2495
|
+
} = o.getOffsetConfig(), a = Jn(t), { left: g, top: u, height: l } = a, f = g + c, h = u + d;
|
|
2496
2496
|
if (this._anchorShape) {
|
|
2497
2497
|
this._anchorShape.transformByState({ left: f, top: h, height: l }), this._anchorShape.show();
|
|
2498
2498
|
return;
|
|
2499
2499
|
}
|
|
2500
|
-
const m = 6, p = new
|
|
2500
|
+
const m = 6, p = new oi(fr + Qt(m), {
|
|
2501
2501
|
left: f,
|
|
2502
2502
|
top: h,
|
|
2503
2503
|
height: l,
|
|
2504
2504
|
strokeWidth: 2,
|
|
2505
|
-
stroke:
|
|
2505
|
+
stroke: ai(Hn.darkgray, 1),
|
|
2506
2506
|
evented: !1
|
|
2507
2507
|
});
|
|
2508
|
-
this._anchorShape = p, s.addObject(p,
|
|
2508
|
+
this._anchorShape = p, s.addObject(p, ei);
|
|
2509
2509
|
}
|
|
2510
2510
|
_getDocObject() {
|
|
2511
|
-
return
|
|
2511
|
+
return ti(this._univerInstanceService, this._renderManagerService);
|
|
2512
2512
|
}
|
|
2513
2513
|
_getPageContentSize(e) {
|
|
2514
2514
|
const t = this._renderManagerService.getRenderById(e.unitId), n = t == null ? void 0 : t.with(te).getSkeleton(), i = 500, s = 500, o = n == null ? void 0 : n.getSkeletonData();
|
|
@@ -2539,14 +2539,14 @@ let ct = class extends xe {
|
|
|
2539
2539
|
};
|
|
2540
2540
|
}
|
|
2541
2541
|
};
|
|
2542
|
-
ct =
|
|
2542
|
+
ct = hr([
|
|
2543
2543
|
tt(0, V),
|
|
2544
2544
|
tt(1, z),
|
|
2545
2545
|
tt(2, fe),
|
|
2546
2546
|
tt(3, Q)
|
|
2547
2547
|
], ct);
|
|
2548
|
-
var
|
|
2549
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
2548
|
+
var pr = Object.getOwnPropertyDescriptor, mr = (r, e, t, n) => {
|
|
2549
|
+
for (var i = n > 1 ? void 0 : n ? pr(e, t) : e, s = r.length - 1, o; s >= 0; s--)
|
|
2550
2550
|
(o = r[s]) && (i = o(i) || i);
|
|
2551
2551
|
return i;
|
|
2552
2552
|
}, je = (r, e) => (t, n) => e(t, n, r);
|
|
@@ -2572,12 +2572,12 @@ let dt = class extends Vn {
|
|
|
2572
2572
|
if (!e)
|
|
2573
2573
|
return;
|
|
2574
2574
|
const t = e.getUnitId();
|
|
2575
|
-
this._renderManagerService.has(t) && !this._initImagePopupMenu.has(t) && (this._popupMenuListener(t), this._initImagePopupMenu.add(t));
|
|
2575
|
+
jn(t) || this._renderManagerService.has(t) && !this._initImagePopupMenu.has(t) && (this._popupMenuListener(t), this._initImagePopupMenu.add(t));
|
|
2576
2576
|
}
|
|
2577
2577
|
_hasCropObject(e) {
|
|
2578
2578
|
const t = e.getAllObjects();
|
|
2579
2579
|
for (const n of t)
|
|
2580
|
-
if (n instanceof
|
|
2580
|
+
if (n instanceof Pi)
|
|
2581
2581
|
return !0;
|
|
2582
2582
|
return !1;
|
|
2583
2583
|
}
|
|
@@ -2608,7 +2608,7 @@ let dt = class extends Vn {
|
|
|
2608
2608
|
const { unitId: g, subUnitId: u, drawingId: l, drawingType: f } = a, h = this._canvasPopManagerService.attachPopupToObject(
|
|
2609
2609
|
c,
|
|
2610
2610
|
{
|
|
2611
|
-
componentKey:
|
|
2611
|
+
componentKey: xi,
|
|
2612
2612
|
direction: "horizontal",
|
|
2613
2613
|
offset: [2, 0],
|
|
2614
2614
|
extraProps: {
|
|
@@ -2625,11 +2625,9 @@ let dt = class extends Vn {
|
|
|
2625
2625
|
}
|
|
2626
2626
|
)
|
|
2627
2627
|
), this.disposeWithMe(
|
|
2628
|
-
n.clearControl$.subscribe(
|
|
2629
|
-
() =>
|
|
2630
|
-
|
|
2631
|
-
}
|
|
2632
|
-
)
|
|
2628
|
+
n.clearControl$.subscribe(() => {
|
|
2629
|
+
i.forEach((o) => o.dispose()), i.length = 0, this._contextService.setContextValue(nt, !1), this._drawingManagerService.focusDrawing(null);
|
|
2630
|
+
})
|
|
2633
2631
|
), this.disposeWithMe(
|
|
2634
2632
|
n.changing$.subscribe(
|
|
2635
2633
|
() => {
|
|
@@ -2662,7 +2660,7 @@ let dt = class extends Vn {
|
|
|
2662
2660
|
{
|
|
2663
2661
|
label: "image-popup.crop",
|
|
2664
2662
|
index: 2,
|
|
2665
|
-
commandId:
|
|
2663
|
+
commandId: Ni.id,
|
|
2666
2664
|
commandParams: { unitId: e, subUnitId: t, drawingId: n },
|
|
2667
2665
|
disable: !0
|
|
2668
2666
|
// TODO: @JOCS, feature is not ready.
|
|
@@ -2670,7 +2668,7 @@ let dt = class extends Vn {
|
|
|
2670
2668
|
{
|
|
2671
2669
|
label: "image-popup.reset",
|
|
2672
2670
|
index: 3,
|
|
2673
|
-
commandId:
|
|
2671
|
+
commandId: Ui.id,
|
|
2674
2672
|
commandParams: [{ unitId: e, subUnitId: t, drawingId: n }],
|
|
2675
2673
|
disable: !0
|
|
2676
2674
|
// TODO: @JOCS, feature is not ready.
|
|
@@ -2678,15 +2676,15 @@ let dt = class extends Vn {
|
|
|
2678
2676
|
];
|
|
2679
2677
|
}
|
|
2680
2678
|
};
|
|
2681
|
-
dt =
|
|
2679
|
+
dt = mr([
|
|
2682
2680
|
je(0, fe),
|
|
2683
|
-
je(1, Z(
|
|
2681
|
+
je(1, Z(ni)),
|
|
2684
2682
|
je(2, Q),
|
|
2685
2683
|
je(3, z),
|
|
2686
2684
|
je(4, Yt)
|
|
2687
2685
|
], dt);
|
|
2688
|
-
var
|
|
2689
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
2686
|
+
var wr = Object.getOwnPropertyDescriptor, vr = (r, e, t, n) => {
|
|
2687
|
+
for (var i = n > 1 ? void 0 : n ? wr(e, t) : e, s = r.length - 1, o; s >= 0; s--)
|
|
2690
2688
|
(o = r[s]) && (i = o(i) || i);
|
|
2691
2689
|
return i;
|
|
2692
2690
|
}, Re = (r, e) => (t, n) => e(t, n, r);
|
|
@@ -2733,7 +2731,7 @@ let It = class extends xe {
|
|
|
2733
2731
|
_initResize() {
|
|
2734
2732
|
this.disposeWithMe(
|
|
2735
2733
|
Zt(this._context.engine.onTransformChange$).pipe(
|
|
2736
|
-
jt((e) => e.type ===
|
|
2734
|
+
jt((e) => e.type === ci.resize),
|
|
2737
2735
|
dn(16)
|
|
2738
2736
|
).subscribe(() => {
|
|
2739
2737
|
var n;
|
|
@@ -2828,30 +2826,30 @@ let It = class extends xe {
|
|
|
2828
2826
|
this._lifecycleService.stage >= Rt.Rendered ? this._docSkeletonManagerService.getSkeleton() ? e() : setTimeout(e, 500) : this.disposeWithMe(this._lifecycleService.lifecycle$.pipe(jt((t) => t === Rt.Rendered)).subscribe(e));
|
|
2829
2827
|
}
|
|
2830
2828
|
};
|
|
2831
|
-
It =
|
|
2829
|
+
It = vr([
|
|
2832
2830
|
Re(1, Z(te)),
|
|
2833
2831
|
Re(2, V),
|
|
2834
|
-
Re(3,
|
|
2832
|
+
Re(3, ii),
|
|
2835
2833
|
Re(4, fe),
|
|
2836
2834
|
Re(5, Z(ut)),
|
|
2837
2835
|
Re(6, z),
|
|
2838
|
-
Re(7, Z(
|
|
2836
|
+
Re(7, Z($n))
|
|
2839
2837
|
], It);
|
|
2840
|
-
var
|
|
2841
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
2838
|
+
var Ir = Object.defineProperty, _r = Object.getOwnPropertyDescriptor, Sr = (r, e, t) => e in r ? Ir(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Dr = (r, e, t, n) => {
|
|
2839
|
+
for (var i = n > 1 ? void 0 : n ? _r(e, t) : e, s = r.length - 1, o; s >= 0; s--)
|
|
2842
2840
|
(o = r[s]) && (i = o(i) || i);
|
|
2843
2841
|
return i;
|
|
2844
|
-
}, vt = (r, e) => (t, n) => e(t, n, r), Cn = (r, e, t) =>
|
|
2845
|
-
const
|
|
2846
|
-
let gt = class extends
|
|
2842
|
+
}, vt = (r, e) => (t, n) => e(t, n, r), Cn = (r, e, t) => Sr(r, typeof e != "symbol" ? e + "" : e, t);
|
|
2843
|
+
const Or = "DOC_DRAWING_UI_PLUGIN";
|
|
2844
|
+
let gt = class extends qn {
|
|
2847
2845
|
constructor(r = $t, e, t, n) {
|
|
2848
2846
|
super(), this._config = r, this._injector = e, this._renderManagerSrv = t, this._configService = n;
|
|
2849
|
-
const { ...i } =
|
|
2847
|
+
const { ...i } = Kn(
|
|
2850
2848
|
{},
|
|
2851
2849
|
$t,
|
|
2852
2850
|
this._config
|
|
2853
2851
|
);
|
|
2854
|
-
this._configService.setConfig(
|
|
2852
|
+
this._configService.setConfig(ji, i);
|
|
2855
2853
|
}
|
|
2856
2854
|
onStarting() {
|
|
2857
2855
|
[
|
|
@@ -2875,15 +2873,15 @@ let gt = class extends Xn {
|
|
|
2875
2873
|
}
|
|
2876
2874
|
};
|
|
2877
2875
|
Cn(gt, "type", ve.UNIVER_DOC);
|
|
2878
|
-
Cn(gt, "pluginName",
|
|
2879
|
-
gt =
|
|
2880
|
-
|
|
2876
|
+
Cn(gt, "pluginName", Or);
|
|
2877
|
+
gt = Dr([
|
|
2878
|
+
zn(Li, wi, Yn, bi),
|
|
2881
2879
|
vt(1, Z(Jt)),
|
|
2882
2880
|
vt(2, Q),
|
|
2883
|
-
vt(3,
|
|
2881
|
+
vt(3, Xn)
|
|
2884
2882
|
], gt);
|
|
2885
2883
|
export {
|
|
2886
|
-
|
|
2884
|
+
Gi as ClearDocDrawingTransformerOperation,
|
|
2887
2885
|
yn as DOCS_IMAGE_MENU_ID,
|
|
2888
2886
|
ln as DeleteDocDrawingsCommand,
|
|
2889
2887
|
rt as DocFloatDomController,
|