@univerjs/docs-drawing-ui 0.15.2-insiders.20260124-12fc7f0 → 0.15.3-insiders.20260131-b9b8805
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/locale/sk-SK.js +1 -0
- package/lib/es/index.js +16 -16
- package/lib/es/locale/sk-SK.js +62 -0
- package/lib/index.js +16 -16
- package/lib/locale/sk-SK.js +62 -0
- package/lib/types/locale/sk-SK.d.ts +3 -0
- package/lib/umd/locale/sk-SK.js +1 -0
- package/package.json +12 -12
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e={docImage:{title:"Obrázok",upload:{float:"Vložiť obrázok"},panel:{title:"Upraviť obrázok"}},"image-popup":{replace:"Nahradiť",delete:"Odstrániť",edit:"Upraviť",crop:"Orezať",reset:"Obnoviť veľkosť"},"image-text-wrap":{title:"Obtekanie textu",wrappingStyle:"Štýl obtekania",square:"Obdĺžnikové",topAndBottom:"Hore a dole",inline:"V riadku s textom",behindText:"Za textom",inFrontText:"Pred textom",wrapText:"Obtekať text",bothSide:"Obe strany",leftOnly:"Len ľavá",rightOnly:"Len pravá",distanceFromText:"Vzdialenosť od textu",top:"Hore (px)",left:"Vľavo (px)",bottom:"Dole (px)",right:"Vpravo (px)"},"image-position":{title:"Pozícia",horizontal:"Vodorovne",vertical:"Zvisle",absolutePosition:"Absolútna pozícia (px)",relativePosition:"Relatívna pozícia",toTheRightOf:"vpravo od",relativeTo:"vzhľadom na",bellow:"pod",options:"Možnosti",moveObjectWithText:"Presunúť objekt s textom",column:"Stĺpec",margin:"Okraj",page:"Strana",line:"Riadok",paragraph:"Odsek"},"update-status":{exceedMaxSize:"Veľkosť obrázka prekračuje limit, limit je {0}M",invalidImageType:"Neplatný typ obrázka",exceedMaxCount:"Naraz možno nahrať iba {0} obrázkov",invalidImage:"Neplatný obrázok"}};module.exports=e;
|
package/lib/es/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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,
|
|
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, 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, IContextService as Yt, 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, Plugin as Xn, merge as qn, IConfigService as Kn } from "@univerjs/core";
|
|
5
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
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
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,
|
|
10
|
-
import {
|
|
11
|
-
import { IMessageService as vi, ILocalFileService as Ii, ISidebarService as _i, CanvasFloatDomService as Si, useDependency as we,
|
|
9
|
+
import { MessageType as Lt, InputNumber as Be, Select as Bt, Checkbox as di, clsx as sn, RadioGroup as Ft, Radio as Te, render as gi, unmount as li } from "@univerjs/design";
|
|
10
|
+
import { DRAWING_IMAGE_ALLOW_IMAGE_LIST as ui, DRAWING_IMAGE_COUNT_LIMIT as kt, ImageUploadStatusType as mt, DRAWING_IMAGE_ALLOW_SIZE as hi, getImageSize as fi, getDrawingShapeKeyByDrawingSearch as pi, DRAWING_IMAGE_WIDTH_LIMIT as Wt, DRAWING_IMAGE_HEIGHT_LIMIT as Gt, IImageIoService as mi, IDrawingManagerService as fe, UniverDrawingPlugin as wi } from "@univerjs/drawing";
|
|
11
|
+
import { IMessageService as vi, ILocalFileService as Ii, ISidebarService as _i, CanvasFloatDomService as Si, useDependency as we, MenuItemType as on, getMenuHiddenObservable 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
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
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";
|
|
@@ -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: ui.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(hi / (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 fi(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 = pi({ 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);
|
|
@@ -454,7 +454,7 @@ it = ki([
|
|
|
454
454
|
le(1, V),
|
|
455
455
|
le(2, Z(Dt)),
|
|
456
456
|
le(3, Q),
|
|
457
|
-
le(4,
|
|
457
|
+
le(4, mi),
|
|
458
458
|
le(5, Ne),
|
|
459
459
|
le(6, fe),
|
|
460
460
|
le(7, Yt),
|
|
@@ -1685,19 +1685,19 @@ const ji = "docs-drawing-ui.config", $t = {}, zt = -1e3, Xt = 1e3, $i = (r) => {
|
|
|
1685
1685
|
function Ki(r) {
|
|
1686
1686
|
return {
|
|
1687
1687
|
id: yn,
|
|
1688
|
-
type:
|
|
1688
|
+
type: on.SUBITEMS,
|
|
1689
1689
|
icon: "AddImageIcon",
|
|
1690
1690
|
tooltip: "docImage.title",
|
|
1691
1691
|
disabled$: qi(r),
|
|
1692
|
-
hidden$:
|
|
1692
|
+
hidden$: an(r, ve.UNIVER_DOC, void 0, St)
|
|
1693
1693
|
};
|
|
1694
1694
|
}
|
|
1695
1695
|
function Yi(r) {
|
|
1696
1696
|
return {
|
|
1697
1697
|
id: bn,
|
|
1698
1698
|
title: "docImage.upload.float",
|
|
1699
|
-
type:
|
|
1700
|
-
hidden$:
|
|
1699
|
+
type: on.BUTTON,
|
|
1700
|
+
hidden$: an(r, ve.UNIVER_DOC, void 0, St)
|
|
1701
1701
|
};
|
|
1702
1702
|
}
|
|
1703
1703
|
const Zi = {
|
|
@@ -2841,10 +2841,10 @@ var Ir = Object.defineProperty, _r = Object.getOwnPropertyDescriptor, Sr = (r, e
|
|
|
2841
2841
|
return i;
|
|
2842
2842
|
}, vt = (r, e) => (t, n) => e(t, n, r), Cn = (r, e, t) => Sr(r, typeof e != "symbol" ? e + "" : e, t);
|
|
2843
2843
|
const Or = "DOC_DRAWING_UI_PLUGIN";
|
|
2844
|
-
let gt = class extends
|
|
2844
|
+
let gt = class extends Xn {
|
|
2845
2845
|
constructor(r = $t, e, t, n) {
|
|
2846
2846
|
super(), this._config = r, this._injector = e, this._renderManagerSrv = t, this._configService = n;
|
|
2847
|
-
const { ...i } =
|
|
2847
|
+
const { ...i } = qn(
|
|
2848
2848
|
{},
|
|
2849
2849
|
$t,
|
|
2850
2850
|
this._config
|
|
@@ -2878,7 +2878,7 @@ gt = Dr([
|
|
|
2878
2878
|
zn(Li, wi, Yn, bi),
|
|
2879
2879
|
vt(1, Z(Jt)),
|
|
2880
2880
|
vt(2, Q),
|
|
2881
|
-
vt(3,
|
|
2881
|
+
vt(3, Kn)
|
|
2882
2882
|
], gt);
|
|
2883
2883
|
export {
|
|
2884
2884
|
Gi as ClearDocDrawingTransformerOperation,
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
docImage: {
|
|
3
|
+
title: "Obrázok",
|
|
4
|
+
upload: {
|
|
5
|
+
float: "Vložiť obrázok"
|
|
6
|
+
},
|
|
7
|
+
panel: {
|
|
8
|
+
title: "Upraviť obrázok"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"image-popup": {
|
|
12
|
+
replace: "Nahradiť",
|
|
13
|
+
delete: "Odstrániť",
|
|
14
|
+
edit: "Upraviť",
|
|
15
|
+
crop: "Orezať",
|
|
16
|
+
reset: "Obnoviť veľkosť"
|
|
17
|
+
},
|
|
18
|
+
"image-text-wrap": {
|
|
19
|
+
title: "Obtekanie textu",
|
|
20
|
+
wrappingStyle: "Štýl obtekania",
|
|
21
|
+
square: "Obdĺžnikové",
|
|
22
|
+
topAndBottom: "Hore a dole",
|
|
23
|
+
inline: "V riadku s textom",
|
|
24
|
+
behindText: "Za textom",
|
|
25
|
+
inFrontText: "Pred textom",
|
|
26
|
+
wrapText: "Obtekať text",
|
|
27
|
+
bothSide: "Obe strany",
|
|
28
|
+
leftOnly: "Len ľavá",
|
|
29
|
+
rightOnly: "Len pravá",
|
|
30
|
+
distanceFromText: "Vzdialenosť od textu",
|
|
31
|
+
top: "Hore (px)",
|
|
32
|
+
left: "Vľavo (px)",
|
|
33
|
+
bottom: "Dole (px)",
|
|
34
|
+
right: "Vpravo (px)"
|
|
35
|
+
},
|
|
36
|
+
"image-position": {
|
|
37
|
+
title: "Pozícia",
|
|
38
|
+
horizontal: "Vodorovne",
|
|
39
|
+
vertical: "Zvisle",
|
|
40
|
+
absolutePosition: "Absolútna pozícia (px)",
|
|
41
|
+
relativePosition: "Relatívna pozícia",
|
|
42
|
+
toTheRightOf: "vpravo od",
|
|
43
|
+
relativeTo: "vzhľadom na",
|
|
44
|
+
bellow: "pod",
|
|
45
|
+
options: "Možnosti",
|
|
46
|
+
moveObjectWithText: "Presunúť objekt s textom",
|
|
47
|
+
column: "Stĺpec",
|
|
48
|
+
margin: "Okraj",
|
|
49
|
+
page: "Strana",
|
|
50
|
+
line: "Riadok",
|
|
51
|
+
paragraph: "Odsek"
|
|
52
|
+
},
|
|
53
|
+
"update-status": {
|
|
54
|
+
exceedMaxSize: "Veľkosť obrázka prekračuje limit, limit je {0}M",
|
|
55
|
+
invalidImageType: "Neplatný typ obrázka",
|
|
56
|
+
exceedMaxCount: "Naraz možno nahrať iba {0} obrázkov",
|
|
57
|
+
invalidImage: "Neplatný obrázok"
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
export {
|
|
61
|
+
e as default
|
|
62
|
+
};
|
package/lib/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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,
|
|
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, 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, IContextService as Yt, 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, Plugin as Xn, merge as qn, IConfigService as Kn } from "@univerjs/core";
|
|
5
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
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
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,
|
|
10
|
-
import {
|
|
11
|
-
import { IMessageService as vi, ILocalFileService as Ii, ISidebarService as _i, CanvasFloatDomService as Si, useDependency as we,
|
|
9
|
+
import { MessageType as Lt, InputNumber as Be, Select as Bt, Checkbox as di, clsx as sn, RadioGroup as Ft, Radio as Te, render as gi, unmount as li } from "@univerjs/design";
|
|
10
|
+
import { DRAWING_IMAGE_ALLOW_IMAGE_LIST as ui, DRAWING_IMAGE_COUNT_LIMIT as kt, ImageUploadStatusType as mt, DRAWING_IMAGE_ALLOW_SIZE as hi, getImageSize as fi, getDrawingShapeKeyByDrawingSearch as pi, DRAWING_IMAGE_WIDTH_LIMIT as Wt, DRAWING_IMAGE_HEIGHT_LIMIT as Gt, IImageIoService as mi, IDrawingManagerService as fe, UniverDrawingPlugin as wi } from "@univerjs/drawing";
|
|
11
|
+
import { IMessageService as vi, ILocalFileService as Ii, ISidebarService as _i, CanvasFloatDomService as Si, useDependency as we, MenuItemType as on, getMenuHiddenObservable 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
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
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";
|
|
@@ -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: ui.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(hi / (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 fi(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 = pi({ 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);
|
|
@@ -454,7 +454,7 @@ it = ki([
|
|
|
454
454
|
le(1, V),
|
|
455
455
|
le(2, Z(Dt)),
|
|
456
456
|
le(3, Q),
|
|
457
|
-
le(4,
|
|
457
|
+
le(4, mi),
|
|
458
458
|
le(5, Ne),
|
|
459
459
|
le(6, fe),
|
|
460
460
|
le(7, Yt),
|
|
@@ -1685,19 +1685,19 @@ const ji = "docs-drawing-ui.config", $t = {}, zt = -1e3, Xt = 1e3, $i = (r) => {
|
|
|
1685
1685
|
function Ki(r) {
|
|
1686
1686
|
return {
|
|
1687
1687
|
id: yn,
|
|
1688
|
-
type:
|
|
1688
|
+
type: on.SUBITEMS,
|
|
1689
1689
|
icon: "AddImageIcon",
|
|
1690
1690
|
tooltip: "docImage.title",
|
|
1691
1691
|
disabled$: qi(r),
|
|
1692
|
-
hidden$:
|
|
1692
|
+
hidden$: an(r, ve.UNIVER_DOC, void 0, St)
|
|
1693
1693
|
};
|
|
1694
1694
|
}
|
|
1695
1695
|
function Yi(r) {
|
|
1696
1696
|
return {
|
|
1697
1697
|
id: bn,
|
|
1698
1698
|
title: "docImage.upload.float",
|
|
1699
|
-
type:
|
|
1700
|
-
hidden$:
|
|
1699
|
+
type: on.BUTTON,
|
|
1700
|
+
hidden$: an(r, ve.UNIVER_DOC, void 0, St)
|
|
1701
1701
|
};
|
|
1702
1702
|
}
|
|
1703
1703
|
const Zi = {
|
|
@@ -2841,10 +2841,10 @@ var Ir = Object.defineProperty, _r = Object.getOwnPropertyDescriptor, Sr = (r, e
|
|
|
2841
2841
|
return i;
|
|
2842
2842
|
}, vt = (r, e) => (t, n) => e(t, n, r), Cn = (r, e, t) => Sr(r, typeof e != "symbol" ? e + "" : e, t);
|
|
2843
2843
|
const Or = "DOC_DRAWING_UI_PLUGIN";
|
|
2844
|
-
let gt = class extends
|
|
2844
|
+
let gt = class extends Xn {
|
|
2845
2845
|
constructor(r = $t, e, t, n) {
|
|
2846
2846
|
super(), this._config = r, this._injector = e, this._renderManagerSrv = t, this._configService = n;
|
|
2847
|
-
const { ...i } =
|
|
2847
|
+
const { ...i } = qn(
|
|
2848
2848
|
{},
|
|
2849
2849
|
$t,
|
|
2850
2850
|
this._config
|
|
@@ -2878,7 +2878,7 @@ gt = Dr([
|
|
|
2878
2878
|
zn(Li, wi, Yn, bi),
|
|
2879
2879
|
vt(1, Z(Jt)),
|
|
2880
2880
|
vt(2, Q),
|
|
2881
|
-
vt(3,
|
|
2881
|
+
vt(3, Kn)
|
|
2882
2882
|
], gt);
|
|
2883
2883
|
export {
|
|
2884
2884
|
Gi as ClearDocDrawingTransformerOperation,
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
docImage: {
|
|
3
|
+
title: "Obrázok",
|
|
4
|
+
upload: {
|
|
5
|
+
float: "Vložiť obrázok"
|
|
6
|
+
},
|
|
7
|
+
panel: {
|
|
8
|
+
title: "Upraviť obrázok"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"image-popup": {
|
|
12
|
+
replace: "Nahradiť",
|
|
13
|
+
delete: "Odstrániť",
|
|
14
|
+
edit: "Upraviť",
|
|
15
|
+
crop: "Orezať",
|
|
16
|
+
reset: "Obnoviť veľkosť"
|
|
17
|
+
},
|
|
18
|
+
"image-text-wrap": {
|
|
19
|
+
title: "Obtekanie textu",
|
|
20
|
+
wrappingStyle: "Štýl obtekania",
|
|
21
|
+
square: "Obdĺžnikové",
|
|
22
|
+
topAndBottom: "Hore a dole",
|
|
23
|
+
inline: "V riadku s textom",
|
|
24
|
+
behindText: "Za textom",
|
|
25
|
+
inFrontText: "Pred textom",
|
|
26
|
+
wrapText: "Obtekať text",
|
|
27
|
+
bothSide: "Obe strany",
|
|
28
|
+
leftOnly: "Len ľavá",
|
|
29
|
+
rightOnly: "Len pravá",
|
|
30
|
+
distanceFromText: "Vzdialenosť od textu",
|
|
31
|
+
top: "Hore (px)",
|
|
32
|
+
left: "Vľavo (px)",
|
|
33
|
+
bottom: "Dole (px)",
|
|
34
|
+
right: "Vpravo (px)"
|
|
35
|
+
},
|
|
36
|
+
"image-position": {
|
|
37
|
+
title: "Pozícia",
|
|
38
|
+
horizontal: "Vodorovne",
|
|
39
|
+
vertical: "Zvisle",
|
|
40
|
+
absolutePosition: "Absolútna pozícia (px)",
|
|
41
|
+
relativePosition: "Relatívna pozícia",
|
|
42
|
+
toTheRightOf: "vpravo od",
|
|
43
|
+
relativeTo: "vzhľadom na",
|
|
44
|
+
bellow: "pod",
|
|
45
|
+
options: "Možnosti",
|
|
46
|
+
moveObjectWithText: "Presunúť objekt s textom",
|
|
47
|
+
column: "Stĺpec",
|
|
48
|
+
margin: "Okraj",
|
|
49
|
+
page: "Strana",
|
|
50
|
+
line: "Riadok",
|
|
51
|
+
paragraph: "Odsek"
|
|
52
|
+
},
|
|
53
|
+
"update-status": {
|
|
54
|
+
exceedMaxSize: "Veľkosť obrázka prekračuje limit, limit je {0}M",
|
|
55
|
+
invalidImageType: "Neplatný typ obrázka",
|
|
56
|
+
exceedMaxCount: "Naraz možno nahrať iba {0} obrázkov",
|
|
57
|
+
invalidImage: "Neplatný obrázok"
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
export {
|
|
61
|
+
e as default
|
|
62
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(e,t){typeof exports=="object"&&typeof module<"u"?module.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.UniverDocsDrawingUiSkSK=t())})(this,(function(){"use strict";return{docImage:{title:"Obrázok",upload:{float:"Vložiť obrázok"},panel:{title:"Upraviť obrázok"}},"image-popup":{replace:"Nahradiť",delete:"Odstrániť",edit:"Upraviť",crop:"Orezať",reset:"Obnoviť veľkosť"},"image-text-wrap":{title:"Obtekanie textu",wrappingStyle:"Štýl obtekania",square:"Obdĺžnikové",topAndBottom:"Hore a dole",inline:"V riadku s textom",behindText:"Za textom",inFrontText:"Pred textom",wrapText:"Obtekať text",bothSide:"Obe strany",leftOnly:"Len ľavá",rightOnly:"Len pravá",distanceFromText:"Vzdialenosť od textu",top:"Hore (px)",left:"Vľavo (px)",bottom:"Dole (px)",right:"Vpravo (px)"},"image-position":{title:"Pozícia",horizontal:"Vodorovne",vertical:"Zvisle",absolutePosition:"Absolútna pozícia (px)",relativePosition:"Relatívna pozícia",toTheRightOf:"vpravo od",relativeTo:"vzhľadom na",bellow:"pod",options:"Možnosti",moveObjectWithText:"Presunúť objekt s textom",column:"Stĺpec",margin:"Okraj",page:"Strana",line:"Riadok",paragraph:"Odsek"},"update-status":{exceedMaxSize:"Veľkosť obrázka prekračuje limit, limit je {0}M",invalidImageType:"Neplatný typ obrázka",exceedMaxCount:"Naraz možno nahrať iba {0} obrázkov",invalidImage:"Neplatný obrázok"}}}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs/docs-drawing-ui",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.3-insiders.20260131-b9b8805",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -52,15 +52,15 @@
|
|
|
52
52
|
"rxjs": ">=7.0.0"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@univerjs/core": "0.15.
|
|
56
|
-
"@univerjs/
|
|
57
|
-
"@univerjs/
|
|
58
|
-
"@univerjs/
|
|
59
|
-
"@univerjs/docs-
|
|
60
|
-
"@univerjs/
|
|
61
|
-
"@univerjs/
|
|
62
|
-
"@univerjs/
|
|
63
|
-
"@univerjs/ui": "0.15.
|
|
55
|
+
"@univerjs/core": "0.15.3-insiders.20260131-b9b8805",
|
|
56
|
+
"@univerjs/design": "0.15.3-insiders.20260131-b9b8805",
|
|
57
|
+
"@univerjs/docs": "0.15.3-insiders.20260131-b9b8805",
|
|
58
|
+
"@univerjs/drawing-ui": "0.15.3-insiders.20260131-b9b8805",
|
|
59
|
+
"@univerjs/docs-drawing": "0.15.3-insiders.20260131-b9b8805",
|
|
60
|
+
"@univerjs/docs-ui": "0.15.3-insiders.20260131-b9b8805",
|
|
61
|
+
"@univerjs/engine-render": "0.15.3-insiders.20260131-b9b8805",
|
|
62
|
+
"@univerjs/drawing": "0.15.3-insiders.20260131-b9b8805",
|
|
63
|
+
"@univerjs/ui": "0.15.3-insiders.20260131-b9b8805"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"postcss": "^8.5.6",
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
"tailwindcss": "3.4.18",
|
|
70
70
|
"typescript": "^5.9.3",
|
|
71
71
|
"vite": "^7.3.1",
|
|
72
|
-
"vitest": "^4.0.
|
|
73
|
-
"@univerjs-infra/shared": "0.15.
|
|
72
|
+
"vitest": "^4.0.18",
|
|
73
|
+
"@univerjs-infra/shared": "0.15.3"
|
|
74
74
|
},
|
|
75
75
|
"scripts": {
|
|
76
76
|
"test": "vitest run",
|