@univerjs/docs-drawing-ui 0.5.5-nightly.202501210925 → 0.5.5-nightly.202501220324
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 -9
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +55 -85
- package/lib/types/views/doc-image-panel/DocDrawingPanel.d.ts +16 -2
- package/lib/types/views/doc-image-panel/DocDrawingPosition.d.ts +1 -2
- package/lib/types/views/doc-image-panel/DocDrawingTextWrap.d.ts +1 -2
- package/lib/umd/index.js +1 -9
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +11 -11
package/lib/es/index.js
CHANGED
|
@@ -12,7 +12,8 @@ import { RichTextEditingMutation, DocSkeletonManagerService, DocSelectionManager
|
|
|
12
12
|
import { DocSelectionRenderService, getRichTextEditPath, NodePositionConvertToCursor, getOneTextSelectionRange, getAnchorBounding, TEXT_RANGE_LAYER_INDEX, getDocObject, getCustomBlockIdsInSelections, docDrawingPositionToTransform, DocCanvasPopManagerService, IEditorService, SetDocZoomRatioOperation } from "@univerjs/docs-ui";
|
|
13
13
|
import { BehaviorSubject, debounceTime, Observable, takeUntil, filter } from "rxjs";
|
|
14
14
|
import { MessageType, InputNumber, Select, Checkbox, RadioGroup, Radio } from "@univerjs/design";
|
|
15
|
-
import
|
|
15
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
16
|
+
import { forwardRef, useRef, createElement, useState, useEffect } from "react";
|
|
16
17
|
const DOCS_DRAWING_UI_PLUGIN_CONFIG_KEY = "docs-drawing-ui.config", defaultPluginConfig = {};
|
|
17
18
|
var __defProp$6 = Object.defineProperty, __getOwnPropDesc$6 = Object.getOwnPropertyDescriptor, __decorateClass$6 = /* @__PURE__ */ __name((decorators, target, key, kind) => {
|
|
18
19
|
for (var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$6(target, key) : target, i = decorators.length - 1, decorator; i >= 0; i--)
|
|
@@ -1549,37 +1550,6 @@ const InsertDocImageCommand = {
|
|
|
1549
1550
|
return params == null ? !1 : (drawingManagerService.focusDrawing([params]), commandService.executeCommand(SidebarDocDrawingOperation.id, { value: "open" }), !0);
|
|
1550
1551
|
}, "handler")
|
|
1551
1552
|
};
|
|
1552
|
-
var jsxRuntime = { exports: {} }, reactJsxRuntime_production_min = {};
|
|
1553
|
-
/**
|
|
1554
|
-
* @license React
|
|
1555
|
-
* react-jsx-runtime.production.min.js
|
|
1556
|
-
*
|
|
1557
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1558
|
-
*
|
|
1559
|
-
* This source code is licensed under the MIT license found in the
|
|
1560
|
-
* LICENSE file in the root directory of this source tree.
|
|
1561
|
-
*/
|
|
1562
|
-
var hasRequiredReactJsxRuntime_production_min;
|
|
1563
|
-
function requireReactJsxRuntime_production_min() {
|
|
1564
|
-
if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
|
|
1565
|
-
hasRequiredReactJsxRuntime_production_min = 1;
|
|
1566
|
-
var f = require$$0, k = Symbol.for("react.element"), l = Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
1567
|
-
function q(c, a, g) {
|
|
1568
|
-
var b, d = {}, e = null, h = null;
|
|
1569
|
-
g !== void 0 && (e = "" + g), a.key !== void 0 && (e = "" + a.key), a.ref !== void 0 && (h = a.ref);
|
|
1570
|
-
for (b in a) m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
|
|
1571
|
-
if (c && c.defaultProps) for (b in a = c.defaultProps, a) d[b] === void 0 && (d[b] = a[b]);
|
|
1572
|
-
return { $$typeof: k, type: c, key: e, ref: h, props: d, _owner: n.current };
|
|
1573
|
-
}
|
|
1574
|
-
return __name(q, "q"), reactJsxRuntime_production_min.Fragment = l, reactJsxRuntime_production_min.jsx = q, reactJsxRuntime_production_min.jsxs = q, reactJsxRuntime_production_min;
|
|
1575
|
-
}
|
|
1576
|
-
__name(requireReactJsxRuntime_production_min, "requireReactJsxRuntime_production_min");
|
|
1577
|
-
var hasRequiredJsxRuntime;
|
|
1578
|
-
function requireJsxRuntime() {
|
|
1579
|
-
return hasRequiredJsxRuntime || (hasRequiredJsxRuntime = 1, jsxRuntime.exports = requireReactJsxRuntime_production_min()), jsxRuntime.exports;
|
|
1580
|
-
}
|
|
1581
|
-
__name(requireJsxRuntime, "requireJsxRuntime");
|
|
1582
|
-
var jsxRuntimeExports = requireJsxRuntime();
|
|
1583
1553
|
function r(e) {
|
|
1584
1554
|
var t, f, n = "";
|
|
1585
1555
|
if (typeof e == "string" || typeof e == "number") n += e;
|
|
@@ -1772,13 +1742,13 @@ const imageCommonPanel = "univer-image-common-panel", imageCommonPanelGrid = "un
|
|
|
1772
1742
|
return () => {
|
|
1773
1743
|
subscription.unsubscribe(), mutationListener.dispose();
|
|
1774
1744
|
};
|
|
1775
|
-
}, []), /* @__PURE__ */
|
|
1776
|
-
/* @__PURE__ */
|
|
1777
|
-
/* @__PURE__ */
|
|
1778
|
-
/* @__PURE__ */
|
|
1779
|
-
/* @__PURE__ */
|
|
1780
|
-
/* @__PURE__ */
|
|
1781
|
-
/* @__PURE__ */
|
|
1745
|
+
}, []), /* @__PURE__ */ jsxs("div", { className: clsx(styles.imageCommonPanelGrid, styles.imageCommonPanelBorder), style: { display: showPanel ? "block" : "none" }, children: [
|
|
1746
|
+
/* @__PURE__ */ jsx("div", { className: styles.imageCommonPanelRow, children: /* @__PURE__ */ jsx("div", { className: clsx(styles.imageCommonPanelColumn, styles.imageCommonPanelTitle), children: /* @__PURE__ */ jsx("div", { children: localeService.t("image-position.title") }) }) }),
|
|
1747
|
+
/* @__PURE__ */ jsx("div", { className: styles.imageCommonPanelRow, children: /* @__PURE__ */ jsx("div", { className: clsx(styles.imageCommonPanelColumn, styles.imageCommonPanelSubtitle), children: /* @__PURE__ */ jsx("div", { children: localeService.t("image-position.horizontal") }) }) }),
|
|
1748
|
+
/* @__PURE__ */ jsxs("div", { className: styles.imageCommonPanelRow, children: [
|
|
1749
|
+
/* @__PURE__ */ jsx("div", { className: clsx(styles.imageCommonPanelColumn, styles.imageCommonPanelSpan2), children: /* @__PURE__ */ jsxs("label", { children: [
|
|
1750
|
+
/* @__PURE__ */ jsx("div", { className: styles.imageCommonPanelRow, children: /* @__PURE__ */ jsx("div", { className: styles.imageCommonPanelColumn, children: localeService.t("image-position.absolutePosition") }) }),
|
|
1751
|
+
/* @__PURE__ */ jsx("div", { className: styles.imageCommonPanelRow, children: /* @__PURE__ */ jsx("div", { className: styles.imageCommonPanelColumn, children: /* @__PURE__ */ jsx(
|
|
1782
1752
|
InputNumber,
|
|
1783
1753
|
{
|
|
1784
1754
|
min: MIN_OFFSET,
|
|
@@ -1796,9 +1766,9 @@ const imageCommonPanel = "univer-image-common-panel", imageCommonPanelGrid = "un
|
|
|
1796
1766
|
}
|
|
1797
1767
|
) }) })
|
|
1798
1768
|
] }) }),
|
|
1799
|
-
/* @__PURE__ */
|
|
1800
|
-
/* @__PURE__ */
|
|
1801
|
-
/* @__PURE__ */
|
|
1769
|
+
/* @__PURE__ */ jsx("div", { className: clsx(styles.imageCommonPanelColumn, styles.imageCommonPanelSpan2), children: /* @__PURE__ */ jsxs("label", { children: [
|
|
1770
|
+
/* @__PURE__ */ jsx("div", { className: styles.imageCommonPanelRow, children: /* @__PURE__ */ jsx("div", { className: styles.imageCommonPanelColumn, children: localeService.t("image-position.toTheRightOf") }) }),
|
|
1771
|
+
/* @__PURE__ */ jsx("div", { className: styles.imageCommonPanelRow, children: /* @__PURE__ */ jsx("div", { className: styles.imageCommonPanelColumn, children: /* @__PURE__ */ jsx(
|
|
1802
1772
|
Select,
|
|
1803
1773
|
{
|
|
1804
1774
|
value: String(hPosition.relativeFrom),
|
|
@@ -1809,11 +1779,11 @@ const imageCommonPanel = "univer-image-common-panel", imageCommonPanelGrid = "un
|
|
|
1809
1779
|
) }) })
|
|
1810
1780
|
] }) })
|
|
1811
1781
|
] }),
|
|
1812
|
-
/* @__PURE__ */
|
|
1813
|
-
/* @__PURE__ */
|
|
1814
|
-
/* @__PURE__ */
|
|
1815
|
-
/* @__PURE__ */
|
|
1816
|
-
/* @__PURE__ */
|
|
1782
|
+
/* @__PURE__ */ jsx("div", { className: styles.imageCommonPanelRow, children: /* @__PURE__ */ jsx("div", { className: clsx(styles.imageCommonPanelColumn, styles.imageCommonPanelSubtitle), children: /* @__PURE__ */ jsx("div", { children: localeService.t("image-position.vertical") }) }) }),
|
|
1783
|
+
/* @__PURE__ */ jsxs("div", { className: styles.imageCommonPanelRow, children: [
|
|
1784
|
+
/* @__PURE__ */ jsx("div", { className: clsx(styles.imageCommonPanelColumn, styles.imageCommonPanelSpan2), children: /* @__PURE__ */ jsxs("label", { children: [
|
|
1785
|
+
/* @__PURE__ */ jsx("div", { className: styles.imageCommonPanelRow, children: /* @__PURE__ */ jsx("div", { className: styles.imageCommonPanelColumn, children: localeService.t("image-position.absolutePosition") }) }),
|
|
1786
|
+
/* @__PURE__ */ jsx("div", { className: styles.imageCommonPanelRow, children: /* @__PURE__ */ jsx("div", { className: styles.imageCommonPanelColumn, children: /* @__PURE__ */ jsx(
|
|
1817
1787
|
InputNumber,
|
|
1818
1788
|
{
|
|
1819
1789
|
min: MIN_OFFSET,
|
|
@@ -1831,9 +1801,9 @@ const imageCommonPanel = "univer-image-common-panel", imageCommonPanelGrid = "un
|
|
|
1831
1801
|
}
|
|
1832
1802
|
) }) })
|
|
1833
1803
|
] }) }),
|
|
1834
|
-
/* @__PURE__ */
|
|
1835
|
-
/* @__PURE__ */
|
|
1836
|
-
/* @__PURE__ */
|
|
1804
|
+
/* @__PURE__ */ jsx("div", { className: clsx(styles.imageCommonPanelColumn, styles.imageCommonPanelSpan2), children: /* @__PURE__ */ jsxs("label", { children: [
|
|
1805
|
+
/* @__PURE__ */ jsx("div", { className: styles.imageCommonPanelRow, children: /* @__PURE__ */ jsx("div", { className: styles.imageCommonPanelColumn, children: localeService.t("image-position.bellow") }) }),
|
|
1806
|
+
/* @__PURE__ */ jsx("div", { className: styles.imageCommonPanelRow, children: /* @__PURE__ */ jsx("div", { className: styles.imageCommonPanelColumn, children: /* @__PURE__ */ jsx(
|
|
1837
1807
|
Select,
|
|
1838
1808
|
{
|
|
1839
1809
|
disabled,
|
|
@@ -1844,8 +1814,8 @@ const imageCommonPanel = "univer-image-common-panel", imageCommonPanelGrid = "un
|
|
|
1844
1814
|
) }) })
|
|
1845
1815
|
] }) })
|
|
1846
1816
|
] }),
|
|
1847
|
-
/* @__PURE__ */
|
|
1848
|
-
/* @__PURE__ */
|
|
1817
|
+
/* @__PURE__ */ jsx("div", { className: styles.imageCommonPanelRow, children: /* @__PURE__ */ jsx("div", { className: clsx(styles.imageCommonPanelColumn, styles.imageCommonPanelSubtitle), children: /* @__PURE__ */ jsx("div", { children: localeService.t("image-position.options") }) }) }),
|
|
1818
|
+
/* @__PURE__ */ jsx("div", { className: styles.imageCommonPanelRow, style: { marginBottom: "50px" }, children: /* @__PURE__ */ jsx("div", { className: styles.imageCommonPanelColumn, children: /* @__PURE__ */ jsx(Checkbox, { disabled, checked: followTextMove, onChange: handleFollowTextMoveCheck, children: localeService.t("image-position.moveObjectWithText") }) }) })
|
|
1849
1819
|
] });
|
|
1850
1820
|
}, "DocDrawingPosition"), MIN_MARGIN = 0, MAX_MARGIN = 100, DocDrawingTextWrap = /* @__PURE__ */ __name((props) => {
|
|
1851
1821
|
const commandService = useDependency(ICommandService), localeService = useDependency(LocaleService), drawingManagerService = useDependency(IDrawingManagerService), renderManagerService = useDependency(IRenderManagerService), univerInstanceService = useDependency(IUniverInstanceService), { drawings } = props, drawingParam = drawings[0];
|
|
@@ -1974,27 +1944,27 @@ const imageCommonPanel = "univer-image-common-panel", imageCommonPanelGrid = "un
|
|
|
1974
1944
|
return () => {
|
|
1975
1945
|
subscription.unsubscribe(), mutationListener.dispose();
|
|
1976
1946
|
};
|
|
1977
|
-
}, []), /* @__PURE__ */
|
|
1978
|
-
/* @__PURE__ */
|
|
1979
|
-
/* @__PURE__ */
|
|
1980
|
-
/* @__PURE__ */
|
|
1981
|
-
/* @__PURE__ */
|
|
1982
|
-
/* @__PURE__ */
|
|
1983
|
-
/* @__PURE__ */
|
|
1984
|
-
/* @__PURE__ */
|
|
1985
|
-
/* @__PURE__ */
|
|
1947
|
+
}, []), /* @__PURE__ */ jsxs("div", { className: clsx(styles.imageCommonPanelGrid, styles.imageCommonPanelBorder), style: { display: showPanel ? "block" : "none" }, children: [
|
|
1948
|
+
/* @__PURE__ */ jsx("div", { className: styles.imageCommonPanelRow, children: /* @__PURE__ */ jsx("div", { className: clsx(styles.imageCommonPanelColumn, styles.imageCommonPanelTitle), children: /* @__PURE__ */ jsx("div", { children: localeService.t("image-text-wrap.title") }) }) }),
|
|
1949
|
+
/* @__PURE__ */ jsx("div", { className: styles.imageCommonPanelRow, children: /* @__PURE__ */ jsx("div", { className: clsx(styles.imageCommonPanelColumn, styles.imageCommonPanelSubtitle), children: /* @__PURE__ */ jsx("div", { children: localeService.t("image-text-wrap.wrappingStyle") }) }) }),
|
|
1950
|
+
/* @__PURE__ */ jsx("div", { className: clsx(styles.imageCommonPanelRow), children: /* @__PURE__ */ jsx("div", { className: clsx(styles.imageCommonPanelColumn), children: /* @__PURE__ */ jsxs(RadioGroup, { value: wrappingStyle, onChange: handleWrappingStyleChange, direction: "vertical", children: [
|
|
1951
|
+
/* @__PURE__ */ jsx(Radio, { value: TextWrappingStyle.INLINE, children: localeService.t("image-text-wrap.inline") }),
|
|
1952
|
+
/* @__PURE__ */ jsx(Radio, { value: TextWrappingStyle.WRAP_SQUARE, children: localeService.t("image-text-wrap.square") }),
|
|
1953
|
+
/* @__PURE__ */ jsx(Radio, { value: TextWrappingStyle.WRAP_TOP_AND_BOTTOM, children: localeService.t("image-text-wrap.topAndBottom") }),
|
|
1954
|
+
/* @__PURE__ */ jsx(Radio, { value: TextWrappingStyle.BEHIND_TEXT, children: localeService.t("image-text-wrap.behindText") }),
|
|
1955
|
+
/* @__PURE__ */ jsx(Radio, { value: TextWrappingStyle.IN_FRONT_OF_TEXT, children: localeService.t("image-text-wrap.inFrontText") })
|
|
1986
1956
|
] }) }) }),
|
|
1987
|
-
/* @__PURE__ */
|
|
1988
|
-
/* @__PURE__ */
|
|
1989
|
-
/* @__PURE__ */
|
|
1990
|
-
/* @__PURE__ */
|
|
1991
|
-
/* @__PURE__ */
|
|
1957
|
+
/* @__PURE__ */ jsx("div", { className: styles.imageCommonPanelRow, children: /* @__PURE__ */ jsx("div", { className: clsx(styles.imageCommonPanelColumn, styles.imageCommonPanelSubtitle), children: /* @__PURE__ */ jsx("div", { children: localeService.t("image-text-wrap.wrapText") }) }) }),
|
|
1958
|
+
/* @__PURE__ */ jsx("div", { className: clsx(styles.imageCommonPanelRow), children: /* @__PURE__ */ jsx("div", { className: clsx(styles.imageCommonPanelColumn), children: /* @__PURE__ */ jsxs(RadioGroup, { disabled: disableWrapText, value: wrapText, onChange: handleWrapTextChange, direction: "horizontal", children: [
|
|
1959
|
+
/* @__PURE__ */ jsx(Radio, { value: WrapTextType.BOTH_SIDES, children: localeService.t("image-text-wrap.bothSide") }),
|
|
1960
|
+
/* @__PURE__ */ jsx(Radio, { value: WrapTextType.LEFT, children: localeService.t("image-text-wrap.leftOnly") }),
|
|
1961
|
+
/* @__PURE__ */ jsx(Radio, { value: WrapTextType.RIGHT, children: localeService.t("image-text-wrap.rightOnly") })
|
|
1992
1962
|
] }) }) }),
|
|
1993
|
-
/* @__PURE__ */
|
|
1994
|
-
/* @__PURE__ */
|
|
1995
|
-
/* @__PURE__ */
|
|
1996
|
-
/* @__PURE__ */
|
|
1997
|
-
/* @__PURE__ */
|
|
1963
|
+
/* @__PURE__ */ jsx("div", { className: styles.imageCommonPanelRow, children: /* @__PURE__ */ jsx("div", { className: clsx(styles.imageCommonPanelColumn, styles.imageCommonPanelSubtitle), children: /* @__PURE__ */ jsx("div", { children: localeService.t("image-text-wrap.distanceFromText") }) }) }),
|
|
1964
|
+
/* @__PURE__ */ jsxs("div", { className: styles.imageCommonPanelRow, children: [
|
|
1965
|
+
/* @__PURE__ */ jsx("div", { className: clsx(styles.imageCommonPanelColumn, styles.imageCommonPanelSpan2), children: /* @__PURE__ */ jsxs("label", { children: [
|
|
1966
|
+
/* @__PURE__ */ jsx("div", { className: styles.imageCommonPanelRow, children: /* @__PURE__ */ jsx("div", { className: styles.imageCommonPanelColumn, children: localeService.t("image-text-wrap.top") }) }),
|
|
1967
|
+
/* @__PURE__ */ jsx("div", { className: styles.imageCommonPanelRow, children: /* @__PURE__ */ jsx("div", { className: styles.imageCommonPanelColumn, children: /* @__PURE__ */ jsx(
|
|
1998
1968
|
InputNumber,
|
|
1999
1969
|
{
|
|
2000
1970
|
min: MIN_MARGIN,
|
|
@@ -2009,9 +1979,9 @@ const imageCommonPanel = "univer-image-common-panel", imageCommonPanelGrid = "un
|
|
|
2009
1979
|
}
|
|
2010
1980
|
) }) })
|
|
2011
1981
|
] }) }),
|
|
2012
|
-
/* @__PURE__ */
|
|
2013
|
-
/* @__PURE__ */
|
|
2014
|
-
/* @__PURE__ */
|
|
1982
|
+
/* @__PURE__ */ jsx("div", { className: clsx(styles.imageCommonPanelColumn, styles.imageCommonPanelSpan2), children: /* @__PURE__ */ jsxs("label", { children: [
|
|
1983
|
+
/* @__PURE__ */ jsx("div", { className: styles.imageCommonPanelRow, children: /* @__PURE__ */ jsx("div", { className: styles.imageCommonPanelColumn, children: localeService.t("image-text-wrap.left") }) }),
|
|
1984
|
+
/* @__PURE__ */ jsx("div", { className: styles.imageCommonPanelRow, children: /* @__PURE__ */ jsx("div", { className: styles.imageCommonPanelColumn, children: /* @__PURE__ */ jsx(
|
|
2015
1985
|
InputNumber,
|
|
2016
1986
|
{
|
|
2017
1987
|
min: MIN_MARGIN,
|
|
@@ -2027,10 +1997,10 @@ const imageCommonPanel = "univer-image-common-panel", imageCommonPanelGrid = "un
|
|
|
2027
1997
|
) }) })
|
|
2028
1998
|
] }) })
|
|
2029
1999
|
] }),
|
|
2030
|
-
/* @__PURE__ */
|
|
2031
|
-
/* @__PURE__ */
|
|
2032
|
-
/* @__PURE__ */
|
|
2033
|
-
/* @__PURE__ */
|
|
2000
|
+
/* @__PURE__ */ jsxs("div", { className: styles.imageCommonPanelRow, children: [
|
|
2001
|
+
/* @__PURE__ */ jsx("div", { className: clsx(styles.imageCommonPanelColumn, styles.imageCommonPanelSpan2), children: /* @__PURE__ */ jsxs("label", { children: [
|
|
2002
|
+
/* @__PURE__ */ jsx("div", { className: styles.imageCommonPanelRow, children: /* @__PURE__ */ jsx("div", { className: styles.imageCommonPanelColumn, children: localeService.t("image-text-wrap.bottom") }) }),
|
|
2003
|
+
/* @__PURE__ */ jsx("div", { className: styles.imageCommonPanelRow, children: /* @__PURE__ */ jsx("div", { className: styles.imageCommonPanelColumn, children: /* @__PURE__ */ jsx(
|
|
2034
2004
|
InputNumber,
|
|
2035
2005
|
{
|
|
2036
2006
|
min: MIN_MARGIN,
|
|
@@ -2045,9 +2015,9 @@ const imageCommonPanel = "univer-image-common-panel", imageCommonPanelGrid = "un
|
|
|
2045
2015
|
}
|
|
2046
2016
|
) }) })
|
|
2047
2017
|
] }) }),
|
|
2048
|
-
/* @__PURE__ */
|
|
2049
|
-
/* @__PURE__ */
|
|
2050
|
-
/* @__PURE__ */
|
|
2018
|
+
/* @__PURE__ */ jsx("div", { className: clsx(styles.imageCommonPanelColumn, styles.imageCommonPanelSpan2), children: /* @__PURE__ */ jsxs("label", { children: [
|
|
2019
|
+
/* @__PURE__ */ jsx("div", { className: styles.imageCommonPanelRow, children: /* @__PURE__ */ jsx("div", { className: styles.imageCommonPanelColumn, children: localeService.t("image-text-wrap.right") }) }),
|
|
2020
|
+
/* @__PURE__ */ jsx("div", { className: styles.imageCommonPanelRow, children: /* @__PURE__ */ jsx("div", { className: styles.imageCommonPanelColumn, children: /* @__PURE__ */ jsx(
|
|
2051
2021
|
InputNumber,
|
|
2052
2022
|
{
|
|
2053
2023
|
min: MIN_MARGIN,
|
|
@@ -2073,10 +2043,10 @@ const imageCommonPanel = "univer-image-common-panel", imageCommonPanelGrid = "un
|
|
|
2073
2043
|
return () => {
|
|
2074
2044
|
focusDispose.unsubscribe();
|
|
2075
2045
|
};
|
|
2076
|
-
}, []), !!(drawings != null && drawings.length) && /* @__PURE__ */
|
|
2077
|
-
/* @__PURE__ */
|
|
2078
|
-
/* @__PURE__ */
|
|
2079
|
-
/* @__PURE__ */
|
|
2046
|
+
}, []), !!(drawings != null && drawings.length) && /* @__PURE__ */ jsxs("div", { className: styles.imageCommonPanel, children: [
|
|
2047
|
+
/* @__PURE__ */ jsx(DrawingCommonPanel, { drawings, hasAlign: !1, hasCropper: !1, hasGroup: !1, hasTransform: !1 }),
|
|
2048
|
+
/* @__PURE__ */ jsx(DocDrawingTextWrap, { drawings }),
|
|
2049
|
+
/* @__PURE__ */ jsx(DocDrawingPosition, { drawings })
|
|
2080
2050
|
] });
|
|
2081
2051
|
}, "DocDrawingPanel"), ImageUploadIcon = "addition-and-subtraction-single", DOCS_IMAGE_MENU_ID = "doc.menu.image", IMAGE_MENU_UPLOAD_FLOAT_ID = InsertDocImageCommand.id, getDisableWhenSelectionInTableObservable = /* @__PURE__ */ __name((accessor) => {
|
|
2082
2052
|
const docSelectionManagerService = accessor.get(DocSelectionManagerService), univerInstanceService = accessor.get(IUniverInstanceService);
|
|
@@ -1,2 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export declare const DocDrawingPanel: () => false | import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IDrawingParam } from '@univerjs/core';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
2
|
export interface IDocDrawingPositionProps {
|
|
4
3
|
drawings: IDrawingParam[];
|
|
5
4
|
}
|
|
6
|
-
export declare const DocDrawingPosition: (props: IDocDrawingPositionProps) =>
|
|
5
|
+
export declare const DocDrawingPosition: (props: IDocDrawingPositionProps) => import("react/jsx-runtime").JSX.Element | undefined;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IDrawingParam } from '@univerjs/core';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
2
|
export interface IDocDrawingTextWrapProps {
|
|
4
3
|
drawings: IDrawingParam[];
|
|
5
4
|
}
|
|
6
|
-
export declare const DocDrawingTextWrap: (props: IDocDrawingTextWrapProps) =>
|
|
5
|
+
export declare const DocDrawingTextWrap: (props: IDocDrawingTextWrapProps) => import("react/jsx-runtime").JSX.Element | null;
|