@univerjs/docs-drawing-ui 0.25.0 → 1.0.0-alpha.0
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 +1864 -1522
- package/lib/cjs/locale/ar-SA.js +5 -0
- package/lib/cjs/locale/ca-ES.js +5 -0
- package/lib/cjs/locale/de-DE.js +5 -0
- package/lib/cjs/locale/en-US.js +5 -0
- package/lib/cjs/locale/es-ES.js +5 -0
- package/lib/cjs/locale/fa-IR.js +5 -0
- package/lib/cjs/locale/fr-FR.js +5 -0
- package/lib/cjs/locale/id-ID.js +5 -0
- package/lib/cjs/locale/it-IT.js +5 -0
- package/lib/cjs/locale/ja-JP.js +5 -0
- package/lib/cjs/locale/ko-KR.js +5 -0
- package/lib/cjs/locale/pl-PL.js +5 -0
- package/lib/cjs/locale/pt-BR.js +5 -0
- package/lib/cjs/locale/ru-RU.js +5 -0
- package/lib/cjs/locale/sk-SK.js +5 -0
- package/lib/cjs/locale/vi-VN.js +5 -0
- package/lib/cjs/locale/zh-CN.js +5 -0
- package/lib/cjs/locale/zh-HK.js +5 -0
- package/lib/cjs/locale/zh-TW.js +5 -0
- package/lib/es/index.js +1860 -1522
- package/lib/es/locale/ar-SA.js +5 -0
- package/lib/es/locale/ca-ES.js +5 -0
- package/lib/es/locale/de-DE.js +5 -0
- package/lib/es/locale/en-US.js +5 -0
- package/lib/es/locale/es-ES.js +5 -0
- package/lib/es/locale/fa-IR.js +5 -0
- package/lib/es/locale/fr-FR.js +5 -0
- package/lib/es/locale/id-ID.js +5 -0
- package/lib/es/locale/it-IT.js +5 -0
- package/lib/es/locale/ja-JP.js +5 -0
- package/lib/es/locale/ko-KR.js +5 -0
- package/lib/es/locale/pl-PL.js +5 -0
- package/lib/es/locale/pt-BR.js +5 -0
- package/lib/es/locale/ru-RU.js +5 -0
- package/lib/es/locale/sk-SK.js +5 -0
- package/lib/es/locale/vi-VN.js +5 -0
- package/lib/es/locale/zh-CN.js +5 -0
- package/lib/es/locale/zh-HK.js +5 -0
- package/lib/es/locale/zh-TW.js +5 -0
- package/lib/index.js +1860 -1522
- package/lib/locale/ar-SA.js +5 -0
- package/lib/locale/ca-ES.js +5 -0
- package/lib/locale/de-DE.js +5 -0
- package/lib/locale/en-US.js +5 -0
- package/lib/locale/es-ES.js +5 -0
- package/lib/locale/fa-IR.js +5 -0
- package/lib/locale/fr-FR.js +5 -0
- package/lib/locale/id-ID.js +5 -0
- package/lib/locale/it-IT.js +5 -0
- package/lib/locale/ja-JP.js +5 -0
- package/lib/locale/ko-KR.js +5 -0
- package/lib/locale/pl-PL.js +5 -0
- package/lib/locale/pt-BR.js +5 -0
- package/lib/locale/ru-RU.js +5 -0
- package/lib/locale/sk-SK.js +5 -0
- package/lib/locale/vi-VN.js +5 -0
- package/lib/locale/zh-CN.js +5 -0
- package/lib/locale/zh-HK.js +5 -0
- package/lib/locale/zh-TW.js +5 -0
- package/lib/types/commands/commands/insert-shape.command.d.ts +18 -0
- package/lib/types/controllers/components.controller.d.ts +22 -0
- package/lib/types/controllers/render-controllers/doc-drawing-transform-update.controller.d.ts +67 -3
- package/lib/types/controllers/{doc-drawing.controller.d.ts → ui.controller.d.ts} +2 -3
- package/lib/types/index.d.ts +2 -0
- package/lib/types/locale/en-US.d.ts +7 -0
- package/lib/types/locale/types.d.ts +18 -0
- package/lib/types/menu/image.menu.d.ts +4 -2
- package/lib/types/menu/shape.menu.d.ts +26 -0
- package/lib/types/views/{printing-float-dom/index.d.ts → DocPrintingFloatDom.d.ts} +3 -1
- package/lib/types/views/doc-image-panel/DocDrawingPanel.d.ts +1 -1
- package/lib/types/views/doc-image-panel/DocDrawingPosition.d.ts +1 -1
- package/lib/types/views/doc-image-panel/DocDrawingTextWrap.d.ts +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.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/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.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-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +13 -12
package/lib/umd/locale/zh-CN.js
CHANGED
|
@@ -1 +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.UniverDocsDrawingUiZhCN=t())})(this,function(){return{"docs-drawing-ui":{title:`图片`,upload:{float:`插入图片`},panel:{title:`编辑图片`},"image-popup":{replace:`替换`,delete:`删除`,edit:`编辑`,crop:`裁剪`,reset:`重置大小`},"image-text-wrap":{title:`文字环绕`,wrappingStyle:`环绕方式`,square:`四周型`,topAndBottom:`上下型`,inline:`嵌入型`,behindText:`衬于文字下方`,inFrontText:`浮于文字上方`,wrapText:`自动换行`,bothSide:`两侧`,leftOnly:`左侧`,rightOnly:`右侧`,distanceFromText:`距正文`,top:`上(px)`,left:`左(px)`,bottom:`下(px)`,right:`右(px)`},"image-position":{title:`位置`,horizontal:`水平`,vertical:`垂直`,absolutePosition:`绝对位置(px)`,relativePosition:`相对位置`,toTheRightOf:`右侧`,relativeTo:`相对于`,bellow:`下方`,options:`选项`,moveObjectWithText:`对象随文字移动`,column:`栏`,margin:`页边距`,page:`页面`,line:`行`,paragraph:`段落`},"update-status":{exceedMaxSize:`图片大小超过限制, 限制为{0}M`,invalidImageType:`图片类型错误`,exceedMaxCount:`图片只能一次上传{0}张`,invalidImage:`无效图片`},shortcut:{"drawing-view":`绘图视图`,"drawing-move-down":`下移绘图`,"drawing-move-up":`上移绘图`,"drawing-move-left":`左移绘图`,"drawing-move-right":`右移绘图`,"drawing-delete":`删除绘图`}}}});
|
|
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.UniverDocsDrawingUiZhCN=t())})(this,function(){return{"docs-drawing-ui":{title:`图片`,upload:{float:`插入图片`},shape:{insert:{title:`插入图形`,rectangle:`插入矩形`,ellipse:`插入椭圆`}},panel:{title:`编辑图片`},"image-popup":{replace:`替换`,delete:`删除`,edit:`编辑`,crop:`裁剪`,reset:`重置大小`},"image-text-wrap":{title:`文字环绕`,wrappingStyle:`环绕方式`,square:`四周型`,topAndBottom:`上下型`,inline:`嵌入型`,behindText:`衬于文字下方`,inFrontText:`浮于文字上方`,wrapText:`自动换行`,bothSide:`两侧`,leftOnly:`左侧`,rightOnly:`右侧`,distanceFromText:`距正文`,top:`上(px)`,left:`左(px)`,bottom:`下(px)`,right:`右(px)`},"image-position":{title:`位置`,horizontal:`水平`,vertical:`垂直`,absolutePosition:`绝对位置(px)`,relativePosition:`相对位置`,toTheRightOf:`右侧`,relativeTo:`相对于`,bellow:`下方`,options:`选项`,moveObjectWithText:`对象随文字移动`,column:`栏`,margin:`页边距`,page:`页面`,line:`行`,paragraph:`段落`},"update-status":{exceedMaxSize:`图片大小超过限制, 限制为{0}M`,invalidImageType:`图片类型错误`,exceedMaxCount:`图片只能一次上传{0}张`,invalidImage:`无效图片`},shortcut:{"drawing-view":`绘图视图`,"drawing-move-down":`下移绘图`,"drawing-move-up":`上移绘图`,"drawing-move-left":`左移绘图`,"drawing-move-right":`右移绘图`,"drawing-delete":`删除绘图`}}}});
|
package/lib/umd/locale/zh-HK.js
CHANGED
|
@@ -1 +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.UniverDocsDrawingUiZhHK=t())})(this,function(){return{"docs-drawing-ui":{title:`圖片`,upload:{float:`插入圖片`},panel:{title:`編圖`},"image-popup":{replace:`替換`,delete:`刪除`,edit:`編輯`,crop:`裁切`,reset:`重置大小`},"image-text-wrap":{title:`文繞圖`,wrappingStyle:`文繞圖方式`,square:`矩形`,topAndBottom:`上及下`,inline:`與文字排列`,behindText:`文字在前`,inFrontText:`文字在後`,wrapText:`自動換行`,bothSide:`兩側`,leftOnly:`僅左側`,rightOnly:`僅右側`,distanceFromText:`與文字距離`,top:`上(px)`,left:`左(px)`,bottom:`下(px)`,right:`右(px)`},"image-position":{title:`位置`,horizontal:`水平`,vertical:`垂直`,absolutePosition:`絕對位置(px)`,relativePosition:`相對位置`,toTheRightOf:`右側`,relativeTo:`相對於`,bellow:`下方`,options:`選項`,moveObjectWithText:`物件隨文字移動`,column:`欄`,margin:`邊界`,page:`頁面`,line:`行`,paragraph:`段落`},"update-status":{exceedMaxSize:`圖片大小超過限制, 限制為{0}M`,invalidImageType:`圖片類型錯誤`,exceedMaxCount:`圖片只能一次上傳{0}張`,invalidImage:`無效圖片`},shortcut:{"drawing-view":`繪圖檢視`,"drawing-move-down":`下移繪圖`,"drawing-move-up":`上移繪圖`,"drawing-move-left":`左移繪圖`,"drawing-move-right":`右移繪圖`,"drawing-delete":`刪除繪圖`}}}});
|
|
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.UniverDocsDrawingUiZhHK=t())})(this,function(){return{"docs-drawing-ui":{title:`圖片`,upload:{float:`插入圖片`},shape:{insert:{title:`Insert Shape`,rectangle:`Insert Rectangle`,ellipse:`Insert Ellipse`}},panel:{title:`編圖`},"image-popup":{replace:`替換`,delete:`刪除`,edit:`編輯`,crop:`裁切`,reset:`重置大小`},"image-text-wrap":{title:`文繞圖`,wrappingStyle:`文繞圖方式`,square:`矩形`,topAndBottom:`上及下`,inline:`與文字排列`,behindText:`文字在前`,inFrontText:`文字在後`,wrapText:`自動換行`,bothSide:`兩側`,leftOnly:`僅左側`,rightOnly:`僅右側`,distanceFromText:`與文字距離`,top:`上(px)`,left:`左(px)`,bottom:`下(px)`,right:`右(px)`},"image-position":{title:`位置`,horizontal:`水平`,vertical:`垂直`,absolutePosition:`絕對位置(px)`,relativePosition:`相對位置`,toTheRightOf:`右側`,relativeTo:`相對於`,bellow:`下方`,options:`選項`,moveObjectWithText:`物件隨文字移動`,column:`欄`,margin:`邊界`,page:`頁面`,line:`行`,paragraph:`段落`},"update-status":{exceedMaxSize:`圖片大小超過限制, 限制為{0}M`,invalidImageType:`圖片類型錯誤`,exceedMaxCount:`圖片只能一次上傳{0}張`,invalidImage:`無效圖片`},shortcut:{"drawing-view":`繪圖檢視`,"drawing-move-down":`下移繪圖`,"drawing-move-up":`上移繪圖`,"drawing-move-left":`左移繪圖`,"drawing-move-right":`右移繪圖`,"drawing-delete":`刪除繪圖`}}}});
|
package/lib/umd/locale/zh-TW.js
CHANGED
|
@@ -1 +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.UniverDocsDrawingUiZhTW=t())})(this,function(){return{"docs-drawing-ui":{title:`圖片`,upload:{float:`插入圖片`},panel:{title:`編圖`},"image-popup":{replace:`替換`,delete:`刪除`,edit:`編輯`,crop:`裁切`,reset:`重置大小`},"image-text-wrap":{title:`文繞圖`,wrappingStyle:`文繞圖方式`,square:`矩形`,topAndBottom:`上及下`,inline:`與文字排列`,behindText:`文字在前`,inFrontText:`文字在後`,wrapText:`自動換行`,bothSide:`兩側`,leftOnly:`僅左側`,rightOnly:`僅右側`,distanceFromText:`與文字距離`,top:`上(px)`,left:`左(px)`,bottom:`下(px)`,right:`右(px)`},"image-position":{title:`位置`,horizontal:`水平`,vertical:`垂直`,absolutePosition:`絕對位置(px)`,relativePosition:`相對位置`,toTheRightOf:`右側`,relativeTo:`相對於`,bellow:`下方`,options:`選項`,moveObjectWithText:`物件隨文字移動`,column:`欄`,margin:`邊界`,page:`頁面`,line:`行`,paragraph:`段落`},"update-status":{exceedMaxSize:`圖片大小超過限制, 限制為{0}M`,invalidImageType:`圖片類型錯誤`,exceedMaxCount:`圖片只能一次上傳{0}張`,invalidImage:`無效圖片`},shortcut:{"drawing-view":`繪圖檢視`,"drawing-move-down":`下移繪圖`,"drawing-move-up":`上移繪圖`,"drawing-move-left":`左移繪圖`,"drawing-move-right":`右移繪圖`,"drawing-delete":`刪除繪圖`}}}});
|
|
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.UniverDocsDrawingUiZhTW=t())})(this,function(){return{"docs-drawing-ui":{title:`圖片`,upload:{float:`插入圖片`},shape:{insert:{title:`Insert Shape`,rectangle:`Insert Rectangle`,ellipse:`Insert Ellipse`}},panel:{title:`編圖`},"image-popup":{replace:`替換`,delete:`刪除`,edit:`編輯`,crop:`裁切`,reset:`重置大小`},"image-text-wrap":{title:`文繞圖`,wrappingStyle:`文繞圖方式`,square:`矩形`,topAndBottom:`上及下`,inline:`與文字排列`,behindText:`文字在前`,inFrontText:`文字在後`,wrapText:`自動換行`,bothSide:`兩側`,leftOnly:`僅左側`,rightOnly:`僅右側`,distanceFromText:`與文字距離`,top:`上(px)`,left:`左(px)`,bottom:`下(px)`,right:`右(px)`},"image-position":{title:`位置`,horizontal:`水平`,vertical:`垂直`,absolutePosition:`絕對位置(px)`,relativePosition:`相對位置`,toTheRightOf:`右側`,relativeTo:`相對於`,bellow:`下方`,options:`選項`,moveObjectWithText:`物件隨文字移動`,column:`欄`,margin:`邊界`,page:`頁面`,line:`行`,paragraph:`段落`},"update-status":{exceedMaxSize:`圖片大小超過限制, 限制為{0}M`,invalidImageType:`圖片類型錯誤`,exceedMaxCount:`圖片只能一次上傳{0}張`,invalidImage:`無效圖片`},shortcut:{"drawing-view":`繪圖檢視`,"drawing-move-down":`下移繪圖`,"drawing-move-up":`上移繪圖`,"drawing-move-left":`左移繪圖`,"drawing-move-right":`右移繪圖`,"drawing-delete":`刪除繪圖`}}}});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs/docs-drawing-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-alpha.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Drawing UI integration for Univer Docs.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -58,24 +58,25 @@
|
|
|
58
58
|
"rxjs": ">=7.0.0"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@univerjs/
|
|
62
|
-
"@univerjs/
|
|
63
|
-
"@univerjs/docs
|
|
64
|
-
"@univerjs/docs-
|
|
65
|
-
"@univerjs/
|
|
66
|
-
"@univerjs/drawing
|
|
67
|
-
"@univerjs/
|
|
68
|
-
"@univerjs/
|
|
69
|
-
"@univerjs/
|
|
61
|
+
"@univerjs/design": "1.0.0-alpha.0",
|
|
62
|
+
"@univerjs/core": "1.0.0-alpha.0",
|
|
63
|
+
"@univerjs/docs": "1.0.0-alpha.0",
|
|
64
|
+
"@univerjs/docs-drawing": "1.0.0-alpha.0",
|
|
65
|
+
"@univerjs/docs-ui": "1.0.0-alpha.0",
|
|
66
|
+
"@univerjs/drawing": "1.0.0-alpha.0",
|
|
67
|
+
"@univerjs/drawing-ui": "1.0.0-alpha.0",
|
|
68
|
+
"@univerjs/engine-render": "1.0.0-alpha.0",
|
|
69
|
+
"@univerjs/ui": "1.0.0-alpha.0"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
+
"@testing-library/react": "^16.3.2",
|
|
72
73
|
"postcss": "^8.5.15",
|
|
73
74
|
"react": "18.3.1",
|
|
74
75
|
"rxjs": "^7.8.2",
|
|
75
76
|
"tailwindcss": "3.4.18",
|
|
76
77
|
"typescript": "^6.0.3",
|
|
77
|
-
"vitest": "^4.1.
|
|
78
|
-
"@univerjs-infra/shared": "0.
|
|
78
|
+
"vitest": "^4.1.9",
|
|
79
|
+
"@univerjs-infra/shared": "1.0.0-alpha.0"
|
|
79
80
|
},
|
|
80
81
|
"scripts": {
|
|
81
82
|
"test": "vitest run",
|