@univerjs-pro/docs-shape-ui 1.0.0 → 1.0.1
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/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.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/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.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-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +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 +20 -20
- package/lib/types/controllers/config.schema.d.ts +0 -7
- package/lib/types/controllers/docs-shape-ui.controller.d.ts +0 -64
- package/lib/types/controllers/menu.schema.d.ts +0 -2
- package/lib/types/view-model/shape-data-model.d.ts +0 -6
- package/lib/types/views/ShapeOptions.d.ts +0 -30
- package/lib/types/views/shape-editor-panel/ShapeLineEditor.d.ts +0 -11
- package/lib/types/views/shape-editor-panel/index.d.ts +0 -1
- package/lib/types/views/shape-floating-toolbar/shape-floating-toolbar-utils.d.ts +0 -10
- package/lib/types/views/shape-text-editor/Editor.d.ts +0 -21
- package/lib/types/views/shape-text-editor/ShapePositionWrapper.d.ts +0 -15
- package/lib/types/views/shape-text-editor/ShapeTextFloatToolbar.d.ts +0 -1
- package/lib/types/views/shape-text-editor/hooks/use-shape-position.d.ts +0 -29
- package/lib/types/views/shapes.d.ts +0 -58
package/lib/umd/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x2500(){var _0x4db8d8=['Căn\x20trái','Căn\x20phải','Màu\x20nền\x20văn\x20bản','Đặt\x20lại\x20màu','Đóng','Bao\x20quanh','Đưa\x20xuống\x20dưới','Màu\x20chữ','19835469tAIxzn','Hiện','Căn\x20giữa','Chuyển\x20đổi\x20văn\x20bản\x20dọc','Phía\x20sau\x20văn\x20bản','Đưa\x20lên\x20trên','Hiện\x20tất\x20cả','96797TUfvwK','437355OsBkrN','Tên','function','16eRraLQ','Ẩn\x20tất\x20cả','In\x20đậm','exports','Căn\x20trên','Tên\x20đối\x20tượng','Mô\x20tả','Căn\x20dưới','Ẩn\x20bảng\x20hình\x20dạng','4BeiMwO','Xóa\x20hình\x20dạng','Cùng\x20dòng\x20với\x20văn\x20bản','2739784GCtkaA','Chi\x20tiết','3108045FDptWM','amd','Kiểu\x20hình\x20dạng','Trên\x20và\x20dưới','Chèn\x20hình\x20dạng','Định\x20dạng\x20hình\x20dạng','Chọn\x20một\x20đối\x20tượng\x20để\x20chỉnh\x20sửa\x20chi\x20tiết','Gạch\x20chân','In\x20nghiêng','Vị\x20trí\x20hình\x20dạng','Xoay\x2090\x20độ\x20theo\x20chiều\x20kim\x20đồng\x20hồ','4987962LgESZF','Xóa','5126748OAFpbx','Văn\x20bản','Mở\x20bảng\x20hình\x20dạng','Căn\x20đều\x20hai\x20bên','10UZmrYX','Cắt\x20theo\x20hình\x20dạng'];_0x2500=function(){return _0x4db8d8;};return _0x2500();}function _0x4a39(_0x3631e6,_0x1ec695){_0x3631e6=_0x3631e6-0x147;var _0x250013=_0x2500();var _0x4a39c9=_0x250013[_0x3631e6];return _0x4a39c9;}(function(_0x260758,_0xe72bb2){var _0x265ed4=_0x4a39,_0x295f72=_0x260758();while(!![]){try{var _0x52dfec=parseInt(_0x265ed4(0x178))/0x1*(parseInt(_0x265ed4(0x148))/0x2)+-parseInt(_0x265ed4(0x179))/0x3*(-parseInt(_0x265ed4(0x151))/0x4)+parseInt(_0x265ed4(0x156))/0x5+parseInt(_0x265ed4(0x163))/0x6+parseInt(_0x265ed4(0x161))/0x7+-parseInt(_0x265ed4(0x154))/0x8+parseInt(_0x265ed4(0x171))/0x9*(-parseInt(_0x265ed4(0x167))/0xa);if(_0x52dfec===_0xe72bb2)break;else _0x295f72['push'](_0x295f72['shift']());}catch(_0x37e2e8){_0x295f72['push'](_0x295f72['shift']());}}}(_0x2500,0x894cc),function(_0x453410,_0x2b800c){var _0x54e554=_0x4a39;typeof exports=='object'&&typeof module<'u'?module[_0x54e554(0x14b)]=_0x2b800c():typeof define==_0x54e554(0x147)&&define[_0x54e554(0x157)]?define([],_0x2b800c):(_0x453410=typeof globalThis<'u'?globalThis:_0x453410||self,_0x453410['UniverProDocsShapeUiViVN']=_0x2b800c());}(this,function(){var _0x50757e=_0x4a39;return{'docs-shape-ui':{'mobile':{'text':_0x50757e(0x164),'style':'Kiểu','delete':_0x50757e(0x162)},'quickStyles':'Kiểu\x20nhanh','title':'Hình\x20dạng','insertShape':_0x50757e(0x15a),'openPanel':_0x50757e(0x165),'deleteShape':_0x50757e(0x152),'hidePanel':_0x50757e(0x150),'formatShape':_0x50757e(0x15b),'shapeStyle':_0x50757e(0x158),'shapePosition':_0x50757e(0x15f),'toggleFlipH':'Chuyển\x20đổi\x20lật\x20ngang','toggleFlipV':'Bật/tắt\x20lật\x20dọc','rotateRight90':_0x50757e(0x160),'rotateLeft90':'Xoay\x2090\x20độ\x20ngược\x20chiều\x20kim\x20đồng\x20hồ','toggleTextVertical':_0x50757e(0x174),'objectListPanel':{'title':'Lớp','open':'Lớp','empty':'Chưa\x20có\x20đối\x20tượng','showAll':_0x50757e(0x177),'hideAll':_0x50757e(0x149),'show':_0x50757e(0x172),'hide':'Ẩn','moveForward':_0x50757e(0x176),'moveBackward':_0x50757e(0x16f),'close':_0x50757e(0x16d),'name':_0x50757e(0x17a),'nameInput':_0x50757e(0x14d),'description':_0x50757e(0x14e),'descriptionPlaceholder':'Thêm\x20mô\x20tả','details':_0x50757e(0x155),'noSelection':_0x50757e(0x15c)},'toolbar':{'alignLeft':_0x50757e(0x169),'alignCenter':_0x50757e(0x173),'alignRight':_0x50757e(0x16a),'alignJustify':_0x50757e(0x166),'bold':_0x50757e(0x14a),'italic':_0x50757e(0x15e),'underline':_0x50757e(0x15d),'strikethrough':'Gạch\x20ngang','textColor':_0x50757e(0x170),'fillColor':_0x50757e(0x16b),'resetColor':_0x50757e(0x16c)},'align':{'top':_0x50757e(0x14c),'middle':'Căn\x20giữa\x20theo\x20chiều\x20dọc','bottom':_0x50757e(0x14f)},'textWrap':{'inline':_0x50757e(0x153),'square':_0x50757e(0x16e),'topAndBottom':_0x50757e(0x159),'behindText':_0x50757e(0x175),'inFrontText':'Phía\x20trước\x20văn\x20bản'},'crop':{'shape':_0x50757e(0x168)}}};}));
|
package/lib/umd/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x1551(_0x46ef9b,_0x378558){_0x46ef9b=_0x46ef9b-0x65;var _0x5c2d33=_0x5c2d();var _0x1551a4=_0x5c2d33[_0x46ef9b];return _0x1551a4;}(function(_0x1573b0,_0x2a1cf1){var _0x10078a=_0x1551,_0x502ba4=_0x1573b0();while(!![]){try{var _0x440384=parseInt(_0x10078a(0x75))/0x1+parseInt(_0x10078a(0x7f))/0x2+parseInt(_0x10078a(0x69))/0x3+-parseInt(_0x10078a(0x7c))/0x4*(-parseInt(_0x10078a(0x66))/0x5)+-parseInt(_0x10078a(0x6f))/0x6*(-parseInt(_0x10078a(0x91))/0x7)+parseInt(_0x10078a(0x81))/0x8*(parseInt(_0x10078a(0x93))/0x9)+-parseInt(_0x10078a(0x70))/0xa*(parseInt(_0x10078a(0x8a))/0xb);if(_0x440384===_0x2a1cf1)break;else _0x502ba4['push'](_0x502ba4['shift']());}catch(_0x49d036){_0x502ba4['push'](_0x502ba4['shift']());}}}(_0x5c2d,0x4afa6),function(_0x177fd7,_0x338acd){var _0x40c9d4=_0x1551;typeof exports==_0x40c9d4(0x71)&&typeof module<'u'?module['exports']=_0x338acd():typeof define=='function'&&define[_0x40c9d4(0x80)]?define([],_0x338acd):(_0x177fd7=typeof globalThis<'u'?globalThis:_0x177fd7||self,_0x177fd7[_0x40c9d4(0x90)]=_0x338acd());}(this,function(){var _0x4adc41=_0x1551;return{'docs-shape-ui':{'mobile':{'text':'文字','style':'样式','delete':'删除'},'quickStyles':_0x4adc41(0x6a),'title':'形状','insertShape':'插入形状','openPanel':_0x4adc41(0x8e),'deleteShape':_0x4adc41(0x77),'hidePanel':'隐藏形状面板','formatShape':_0x4adc41(0x7e),'shapeStyle':_0x4adc41(0x7b),'shapePosition':_0x4adc41(0x85),'toggleFlipH':_0x4adc41(0x6e),'toggleFlipV':_0x4adc41(0x92),'rotateRight90':_0x4adc41(0x86),'rotateLeft90':_0x4adc41(0x6d),'toggleTextVertical':_0x4adc41(0x87),'objectListPanel':{'title':'图层','open':'图层','empty':_0x4adc41(0x72),'showAll':_0x4adc41(0x7a),'hideAll':_0x4adc41(0x8c),'show':'显示','hide':'隐藏','moveForward':'上移一层','moveBackward':_0x4adc41(0x8b),'close':'关闭','name':'名称','nameInput':_0x4adc41(0x8d),'description':'描述','descriptionPlaceholder':_0x4adc41(0x68),'details':'详情','noSelection':_0x4adc41(0x74)},'toolbar':{'alignLeft':_0x4adc41(0x82),'alignCenter':_0x4adc41(0x83),'alignRight':_0x4adc41(0x67),'alignJustify':_0x4adc41(0x76),'bold':'粗体','italic':'斜体','underline':'下划线','strikethrough':_0x4adc41(0x78),'textColor':_0x4adc41(0x84),'fillColor':_0x4adc41(0x6b),'resetColor':_0x4adc41(0x89)},'align':{'top':_0x4adc41(0x79),'middle':_0x4adc41(0x88),'bottom':_0x4adc41(0x6c)},'textWrap':{'inline':'嵌入型','square':_0x4adc41(0x7d),'topAndBottom':_0x4adc41(0x8f),'behindText':_0x4adc41(0x73),'inFrontText':_0x4adc41(0x65)},'crop':{'shape':'裁剪为形状'}}};}));function _0x5c2d(){var _0x4e23bc=['下移一层','全部隐藏','对象名称','打开形状面板','上下型','UniverProDocsShapeUiZhCN','805MqGWgP','切换垂直翻转','4923vkwwZG','浮于文字上方','5sdgWCi','右对齐','添加描述','240534EnorMQ','快捷样式','文本背景色','底部对齐','逆时针90度旋转','切换水平翻转','8196epUlxc','10BIxOKZ','object','暂无对象','衬于文字下方','选择对象以编辑详情','172594btVEbY','两端对齐','删除形状','删除线','顶部对齐','全部显示','形状样式','1959864obmSwI','四周型','格式化形状','696636dGGYmS','amd','1480GLIAwX','左对齐','居中对齐','文本颜色','形状位置','顺时针90度旋转','切换文本竖排','垂直居中','重置颜色','11464541SuwPYv'];_0x5c2d=function(){return _0x4e23bc;};return _0x5c2d();}
|
package/lib/umd/locale/zh-HK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xe1adeb,_0x457f6b){var _0x567c95=_0x2777,_0x178088=_0xe1adeb();while(!![]){try{var _0x3bd9ae=-parseInt(_0x567c95(0x13c))/0x1*(-parseInt(_0x567c95(0x13b))/0x2)+-parseInt(_0x567c95(0x148))/0x3*(parseInt(_0x567c95(0x155))/0x4)+-parseInt(_0x567c95(0x131))/0x5*(parseInt(_0x567c95(0x141))/0x6)+-parseInt(_0x567c95(0x156))/0x7+-parseInt(_0x567c95(0x13f))/0x8*(parseInt(_0x567c95(0x134))/0x9)+parseInt(_0x567c95(0x142))/0xa*(parseInt(_0x567c95(0x12c))/0xb)+-parseInt(_0x567c95(0x143))/0xc;if(_0x3bd9ae===_0x457f6b)break;else _0x178088['push'](_0x178088['shift']());}catch(_0x37539a){_0x178088['push'](_0x178088['shift']());}}}(_0x1f0e,0x82a52),function(_0x278b90,_0x476cca){var _0x2ea015=_0x2777;typeof exports==_0x2ea015(0x14d)&&typeof module<'u'?module[_0x2ea015(0x146)]=_0x476cca():typeof define==_0x2ea015(0x13e)&&define[_0x2ea015(0x14a)]?define([],_0x476cca):(_0x278b90=typeof globalThis<'u'?globalThis:_0x278b90||self,_0x278b90['UniverProDocsShapeUiZhHK']=_0x476cca());}(this,function(){var _0xf24d52=_0x2777;return{'docs-shape-ui':{'mobile':{'text':'文字','style':'樣式','delete':'刪除'},'quickStyles':'快速樣式','title':'形狀','insertShape':'插入形狀','openPanel':_0xf24d52(0x147),'deleteShape':_0xf24d52(0x144),'hidePanel':'隱藏形狀面板','formatShape':_0xf24d52(0x151),'shapeStyle':_0xf24d52(0x14b),'shapePosition':_0xf24d52(0x137),'toggleFlipH':'切換水平翻轉','toggleFlipV':_0xf24d52(0x12d),'rotateRight90':_0xf24d52(0x149),'rotateLeft90':_0xf24d52(0x14c),'toggleTextVertical':_0xf24d52(0x135),'objectListPanel':{'title':'圖層','open':'圖層','empty':_0xf24d52(0x12f),'showAll':_0xf24d52(0x139),'hideAll':_0xf24d52(0x13a),'show':'顯示','hide':'隱藏','moveForward':_0xf24d52(0x138),'moveBackward':'下移一層','close':'關閉','name':'名稱','nameInput':_0xf24d52(0x133),'description':'描述','descriptionPlaceholder':_0xf24d52(0x145),'details':'詳情','noSelection':_0xf24d52(0x130)},'toolbar':{'alignLeft':_0xf24d52(0x14e),'alignCenter':_0xf24d52(0x153),'alignRight':_0xf24d52(0x132),'alignJustify':_0xf24d52(0x136),'bold':'粗體','italic':'斜體','underline':'底線','strikethrough':_0xf24d52(0x152),'textColor':_0xf24d52(0x14f),'fillColor':_0xf24d52(0x13d),'resetColor':_0xf24d52(0x150)},'align':{'top':_0xf24d52(0x154),'middle':_0xf24d52(0x140),'bottom':'底部對齊'},'textWrap':{'inline':'與文字排列','square':'矩形','topAndBottom':'上及下','behindText':'文字在前','inFrontText':'文字在後'},'crop':{'shape':_0xf24d52(0x12e)}}};}));function _0x2777(_0x26d6b3,_0x5eb909){_0x26d6b3=_0x26d6b3-0x12c;var _0x1f0e4c=_0x1f0e();var _0x27774a=_0x1f0e4c[_0x26d6b3];return _0x27774a;}function _0x1f0e(){var _0x4f226a=['exports','打開形狀面板','11406lWxvrb','順時針\x2090\x20度旋轉','amd','圖形樣式','逆時針\x2090\x20度旋轉','object','左對齊','文字顏色','重置顏色','格式化形狀','刪除線','居中對齊','頂部對齊','12sbtwrw','1546419KvaoZP','583FRcOdc','切換垂直翻轉','裁切為形狀','暫無物件','選擇物件以編輯詳情','215lKGQMW','右對齊','物件名稱','1197pxszja','切換文本豎排','兩端對齊','圖形位置','上移一層','全部顯示','全部隱藏','591402nWsmMc','3iJcAgv','文字背景色','function','296TTYHMB','垂直居中','14898gKywCV','94490MNmJFc','6105180hkqCrB','刪除形狀','新增描述'];_0x1f0e=function(){return _0x4f226a;};return _0x1f0e();}
|
package/lib/umd/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x4485(_0x5cf2ed,_0x5b1523){_0x5cf2ed=_0x5cf2ed-0xed;var _0xf7a779=_0xf7a7();var _0x4485c2=_0xf7a779[_0x5cf2ed];return _0x4485c2;}function _0xf7a7(){var _0x4ccd19=['重置顏色','格式化形狀','上移一層','與文字排列','圖形樣式','182950yWnHxA','裁切為形狀','上及下','切換文本竖排','全部顯示','切換水平翻轉','右對齊','選取物件以編輯詳細資料','1083128lqNbHa','快捷樣式','隱藏形狀面板','插入形狀','刪除線','12ZpyFgH','順時針\x2090\x20度旋轉','1498707NHwvfl','2485440heNeBA','277005FMLjQh','文字顏色','暫無物件','文字在後','object','詳細資料','圖形位置','exports','左對齊','切換垂直翻轉','1472946KBCYoT','刪除形狀','UniverProDocsShapeUiZhTW','兩端對齊','打開形狀面板','4802152lLawWi','function','文字在前','2iJRavf','文字背景色'];_0xf7a7=function(){return _0x4ccd19;};return _0xf7a7();}(function(_0xcc4767,_0x30c445){var _0x484769=_0x4485,_0x105de5=_0xcc4767();while(!![]){try{var _0x1d3a54=-parseInt(_0x484769(0x111))/0x1+parseInt(_0x484769(0xf9))/0x2*(parseInt(_0x484769(0xf1))/0x3)+-parseInt(_0x484769(0x108))/0x4+-parseInt(_0x484769(0x100))/0x5+parseInt(_0x484769(0x10d))/0x6*(-parseInt(_0x484769(0x10f))/0x7)+parseInt(_0x484769(0xf6))/0x8+parseInt(_0x484769(0x110))/0x9;if(_0x1d3a54===_0x30c445)break;else _0x105de5['push'](_0x105de5['shift']());}catch(_0x3a1cc1){_0x105de5['push'](_0x105de5['shift']());}}}(_0xf7a7,0x56a10),function(_0x1bd138,_0x3caf1c){var _0x1b5464=_0x4485;typeof exports==_0x1b5464(0x115)&&typeof module<'u'?module[_0x1b5464(0xee)]=_0x3caf1c():typeof define==_0x1b5464(0xf7)&&define['amd']?define([],_0x3caf1c):(_0x1bd138=typeof globalThis<'u'?globalThis:_0x1bd138||self,_0x1bd138[_0x1b5464(0xf3)]=_0x3caf1c());}(this,function(){var _0x3207e4=_0x4485;return{'docs-shape-ui':{'mobile':{'text':'文字','style':'樣式','delete':'刪除'},'quickStyles':_0x3207e4(0x109),'title':'形狀','insertShape':_0x3207e4(0x10b),'openPanel':_0x3207e4(0xf5),'deleteShape':_0x3207e4(0xf2),'hidePanel':_0x3207e4(0x10a),'formatShape':_0x3207e4(0xfc),'shapeStyle':_0x3207e4(0xff),'shapePosition':_0x3207e4(0xed),'toggleFlipH':_0x3207e4(0x105),'toggleFlipV':_0x3207e4(0xf0),'rotateRight90':_0x3207e4(0x10e),'rotateLeft90':'逆時針\x2090\x20度旋轉','toggleTextVertical':_0x3207e4(0x103),'objectListPanel':{'title':'圖層','open':'圖層','empty':_0x3207e4(0x113),'showAll':_0x3207e4(0x104),'hideAll':'全部隱藏','show':'顯示','hide':'隱藏','moveForward':_0x3207e4(0xfd),'moveBackward':'下移一層','close':'關閉','name':'名稱','nameInput':'物件名稱','description':'描述','descriptionPlaceholder':'新增描述','details':_0x3207e4(0x116),'noSelection':_0x3207e4(0x107)},'toolbar':{'alignLeft':_0x3207e4(0xef),'alignCenter':'居中對齊','alignRight':_0x3207e4(0x106),'alignJustify':_0x3207e4(0xf4),'bold':'粗體','italic':'斜體','underline':'底線','strikethrough':_0x3207e4(0x10c),'textColor':_0x3207e4(0x112),'fillColor':_0x3207e4(0xfa),'resetColor':_0x3207e4(0xfb)},'align':{'top':'頂部對齊','middle':'垂直居中','bottom':'底部對齊'},'textWrap':{'inline':_0x3207e4(0xfe),'square':'矩形','topAndBottom':_0x3207e4(0x102),'behindText':_0x3207e4(0xf8),'inFrontText':_0x3207e4(0x114)},'crop':{'shape':_0x3207e4(0x101)}}};}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/docs-shape-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Shape and drawing UI integration for Univer Docs.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -57,28 +57,28 @@
|
|
|
57
57
|
"rxjs": ">=7.0.0"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@univerjs-pro/docs-shape": "1.0.
|
|
61
|
-
"@univerjs-pro/engine-shape": "1.0.
|
|
62
|
-
"@univerjs-pro/license": "1.0.
|
|
63
|
-
"@univerjs-pro/shape-editor": "1.0.
|
|
64
|
-
"@univerjs-pro/shape-editor-ui": "1.0.
|
|
65
|
-
"@univerjs/core": "1.0.
|
|
66
|
-
"@univerjs/design": "1.0.
|
|
67
|
-
"@univerjs/docs": "1.0.
|
|
68
|
-
"@univerjs/docs-drawing": "1.0.
|
|
69
|
-
"@univerjs/docs-drawing-ui": "1.0.
|
|
70
|
-
"@univerjs/docs-ui": "1.0.
|
|
71
|
-
"@univerjs/drawing": "1.0.
|
|
72
|
-
"@univerjs/drawing-ui": "1.0.
|
|
73
|
-
"@univerjs/engine-render": "1.0.
|
|
60
|
+
"@univerjs-pro/docs-shape": "1.0.1",
|
|
61
|
+
"@univerjs-pro/engine-shape": "1.0.1",
|
|
62
|
+
"@univerjs-pro/license": "1.0.1",
|
|
63
|
+
"@univerjs-pro/shape-editor": "1.0.1",
|
|
64
|
+
"@univerjs-pro/shape-editor-ui": "1.0.1",
|
|
65
|
+
"@univerjs/core": "1.0.1",
|
|
66
|
+
"@univerjs/design": "1.0.1",
|
|
67
|
+
"@univerjs/docs": "1.0.1",
|
|
68
|
+
"@univerjs/docs-drawing": "1.0.1",
|
|
69
|
+
"@univerjs/docs-drawing-ui": "1.0.1",
|
|
70
|
+
"@univerjs/docs-ui": "1.0.1",
|
|
71
|
+
"@univerjs/drawing": "1.0.1",
|
|
72
|
+
"@univerjs/drawing-ui": "1.0.1",
|
|
73
|
+
"@univerjs/engine-render": "1.0.1",
|
|
74
74
|
"@univerjs/icons": "1.43.0",
|
|
75
|
-
"@univerjs/protocol": "1.0.
|
|
76
|
-
"@univerjs/ui": "1.0.
|
|
75
|
+
"@univerjs/protocol": "1.0.1",
|
|
76
|
+
"@univerjs/ui": "1.0.1"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
|
-
"@univerjs-infra/shared": "1.0.
|
|
80
|
-
"@univerjs-pro/engine-formula": "1.0.
|
|
81
|
-
"@univerjs/engine-formula": "1.0.
|
|
79
|
+
"@univerjs-infra/shared": "1.0.1",
|
|
80
|
+
"@univerjs-pro/engine-formula": "1.0.1",
|
|
81
|
+
"@univerjs/engine-formula": "1.0.1",
|
|
82
82
|
"postcss": "^8.5.26",
|
|
83
83
|
"react": "18.3.1",
|
|
84
84
|
"rxjs": "7.8.2",
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { MenuConfig } from '@univerjs/ui';
|
|
2
|
-
export declare const DOCS_SHAPE_UI_PLUGIN_CONFIG_KEY = "docs-shape-ui.config";
|
|
3
|
-
export declare const configSymbol: unique symbol;
|
|
4
|
-
export interface IUniverDocsShapeUIConfig {
|
|
5
|
-
menu?: MenuConfig;
|
|
6
|
-
}
|
|
7
|
-
export declare const defaultPluginConfig: IUniverDocsShapeUIConfig;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { DocsShapeService } from '@univerjs-pro/docs-shape';
|
|
2
|
-
import { Disposable, DrawingTypeEnum, ICommandService, IContextService, IUniverInstanceService, LocaleService } from '@univerjs/core';
|
|
3
|
-
import { DocCanvasPopManagerService } from '@univerjs/docs-ui';
|
|
4
|
-
import { IDrawingManagerService } from '@univerjs/drawing';
|
|
5
|
-
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
6
|
-
import { ComponentManager, IMenuManagerService, ISidebarService } from '@univerjs/ui';
|
|
7
|
-
import { ShapeTextEditingService } from '../services/shape-text-editing.service';
|
|
8
|
-
export declare class DocsShapeUIController extends Disposable {
|
|
9
|
-
private readonly _univerInstanceService;
|
|
10
|
-
private _sidebarService;
|
|
11
|
-
protected readonly _menuManagerService: IMenuManagerService;
|
|
12
|
-
private _docsShapeService;
|
|
13
|
-
private readonly _localeService;
|
|
14
|
-
private _componentManager;
|
|
15
|
-
private readonly _commandService;
|
|
16
|
-
private _drawingManagerService;
|
|
17
|
-
private readonly _docCanvasPopManagerService;
|
|
18
|
-
private readonly _renderManagerService;
|
|
19
|
-
private readonly _contextService;
|
|
20
|
-
private readonly _shapeTextEditingService;
|
|
21
|
-
private _sidebarDisposable;
|
|
22
|
-
private _activeShapeInfo;
|
|
23
|
-
private _isOpenedShapeEditPanel;
|
|
24
|
-
private _initializedShapePopupMenu;
|
|
25
|
-
private _disposePopups;
|
|
26
|
-
constructor(_univerInstanceService: IUniverInstanceService, _sidebarService: ISidebarService, _menuManagerService: IMenuManagerService, _docsShapeService: DocsShapeService, _localeService: LocaleService, _componentManager: ComponentManager, _commandService: ICommandService, _drawingManagerService: IDrawingManagerService, _docCanvasPopManagerService: DocCanvasPopManagerService, _renderManagerService: IRenderManagerService, _contextService: IContextService, _shapeTextEditingService: ShapeTextEditingService);
|
|
27
|
-
private _initMenu;
|
|
28
|
-
private _initShapePopupMenu;
|
|
29
|
-
getShapePopupMenus(unitId: string, subUnitId: string, drawingId: string, drawingType: DrawingTypeEnum): ({
|
|
30
|
-
label: string;
|
|
31
|
-
index: number;
|
|
32
|
-
commandId: string;
|
|
33
|
-
commandParams: {
|
|
34
|
-
unitId: string;
|
|
35
|
-
subUnitId: string;
|
|
36
|
-
drawingId: string;
|
|
37
|
-
drawings?: undefined;
|
|
38
|
-
};
|
|
39
|
-
disable: boolean;
|
|
40
|
-
} | {
|
|
41
|
-
label: string;
|
|
42
|
-
index: number;
|
|
43
|
-
commandId: string;
|
|
44
|
-
commandParams: {
|
|
45
|
-
unitId: string;
|
|
46
|
-
drawings: {
|
|
47
|
-
unitId: string;
|
|
48
|
-
subUnitId: string;
|
|
49
|
-
drawingId: string;
|
|
50
|
-
}[];
|
|
51
|
-
subUnitId?: undefined;
|
|
52
|
-
drawingId?: undefined;
|
|
53
|
-
};
|
|
54
|
-
disable: boolean;
|
|
55
|
-
})[];
|
|
56
|
-
private _getShapeInfo;
|
|
57
|
-
private _createShapePopupMenu;
|
|
58
|
-
private _clearPopups;
|
|
59
|
-
private _popupMenuListener;
|
|
60
|
-
private _registerOperations;
|
|
61
|
-
private _registerComponent;
|
|
62
|
-
private _openShapeEditPanel;
|
|
63
|
-
private _closeShapeEditPanel;
|
|
64
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { ShapeFillEnum, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
|
|
2
|
-
export declare const shapeFillOptions: {
|
|
3
|
-
label: string;
|
|
4
|
-
value: ShapeFillEnum;
|
|
5
|
-
}[];
|
|
6
|
-
export declare const shapeTypeOptions: (ShapeTypeEnum | {
|
|
7
|
-
type: ShapeTypeEnum;
|
|
8
|
-
endArrow: boolean;
|
|
9
|
-
startArrow?: undefined;
|
|
10
|
-
horizontal?: undefined;
|
|
11
|
-
vertical?: undefined;
|
|
12
|
-
} | {
|
|
13
|
-
type: ShapeTypeEnum;
|
|
14
|
-
endArrow: boolean;
|
|
15
|
-
startArrow: boolean;
|
|
16
|
-
horizontal?: undefined;
|
|
17
|
-
vertical?: undefined;
|
|
18
|
-
} | {
|
|
19
|
-
type: ShapeTypeEnum;
|
|
20
|
-
horizontal: boolean;
|
|
21
|
-
endArrow?: undefined;
|
|
22
|
-
startArrow?: undefined;
|
|
23
|
-
vertical?: undefined;
|
|
24
|
-
} | {
|
|
25
|
-
type: ShapeTypeEnum;
|
|
26
|
-
vertical: boolean;
|
|
27
|
-
endArrow?: undefined;
|
|
28
|
-
startArrow?: undefined;
|
|
29
|
-
horizontal?: undefined;
|
|
30
|
-
})[];
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { IShapeData } from '@univerjs-pro/engine-shape';
|
|
2
|
-
interface IShapeLineProps {
|
|
3
|
-
unitId: string;
|
|
4
|
-
subUnitId: string;
|
|
5
|
-
shapeId: string;
|
|
6
|
-
shapeData: IShapeData;
|
|
7
|
-
isLineShape: boolean;
|
|
8
|
-
disableShapeOption: boolean;
|
|
9
|
-
}
|
|
10
|
-
export declare function ShapeLineEditor(props: IShapeLineProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ShapeEditPanel } from './ShapeEditorPanel';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { IShapeData } from '@univerjs-pro/engine-shape';
|
|
2
|
-
import type { ITextStyle } from '@univerjs/core';
|
|
3
|
-
import { HorizontalAlign, VerticalAlign } from '@univerjs/core';
|
|
4
|
-
interface IShapeTextUpdateOptions {
|
|
5
|
-
textStyle?: ITextStyle;
|
|
6
|
-
verticalAlign?: VerticalAlign;
|
|
7
|
-
horizontalAlign?: HorizontalAlign;
|
|
8
|
-
}
|
|
9
|
-
export declare function buildShapeTextDataUpdate(shapeData: IShapeData, options: IShapeTextUpdateOptions): IShapeData;
|
|
10
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { IKeyboardEventConfig } from '@univerjs/docs-ui';
|
|
2
|
-
import type { CSSProperties } from 'react';
|
|
3
|
-
import { ICommandService } from '@univerjs/core';
|
|
4
|
-
export interface IShapeEditorProps {
|
|
5
|
-
containerWidth: number;
|
|
6
|
-
containerHeight: number;
|
|
7
|
-
scaleX: number;
|
|
8
|
-
scaleY: number;
|
|
9
|
-
}
|
|
10
|
-
export declare function getShapeTextEditorContentStyle(containerWidth: number, containerHeight: number): CSSProperties;
|
|
11
|
-
export declare function applyShapeTextEditorCanvasTransparency(renderer: {
|
|
12
|
-
engine?: {
|
|
13
|
-
getCanvasElement?: () => HTMLElement | null;
|
|
14
|
-
};
|
|
15
|
-
} | null | undefined | void): void;
|
|
16
|
-
export declare function getShapeTextEditorKeyboardConfig(commandService: Pick<ICommandService, 'executeCommand'>): IKeyboardEventConfig;
|
|
17
|
-
/**
|
|
18
|
-
* Shape editor component - second layer DOM.
|
|
19
|
-
* Handles document editing, content height tracking, and vertical alignment.
|
|
20
|
-
*/
|
|
21
|
-
export declare const ShapeEditor: (props: IShapeEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
export interface IShapePositionWrapperProps {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
onPositionUpdate?: (position: {
|
|
5
|
-
width: number;
|
|
6
|
-
height: number;
|
|
7
|
-
scaleX: number;
|
|
8
|
-
scaleY: number;
|
|
9
|
-
}) => void;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Position wrapper component that handles shape positioning in DOM.
|
|
13
|
-
* This is the first layer DOM that tracks shape position with scroll.
|
|
14
|
-
*/
|
|
15
|
-
export declare const ShapePositionWrapper: import("react").MemoExoticComponent<(props: IShapePositionWrapperProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function ShapeTextFloatToolbar(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { IEditingParams } from '../../../services/shape-text-editing.service';
|
|
2
|
-
import type { Nullable } from '@univerjs/core';
|
|
3
|
-
import type { Scene } from '@univerjs/engine-render';
|
|
4
|
-
export interface IShapePosition {
|
|
5
|
-
left: number;
|
|
6
|
-
top: number;
|
|
7
|
-
width: number;
|
|
8
|
-
height: number;
|
|
9
|
-
angle: number;
|
|
10
|
-
scaleX: number;
|
|
11
|
-
scaleY: number;
|
|
12
|
-
}
|
|
13
|
-
export interface IShapePositionResult {
|
|
14
|
-
position: IShapePosition;
|
|
15
|
-
updatePosition: () => void;
|
|
16
|
-
}
|
|
17
|
-
export declare function calcShapePosition(shapeLeft: number, shapeTop: number, shapeWidth: number, shapeHeight: number, shapeAngle: number, scene: Scene): IShapePosition;
|
|
18
|
-
export interface IUseShapePositionOptions {
|
|
19
|
-
editingParams: Nullable<IEditingParams>;
|
|
20
|
-
scene: Nullable<Scene>;
|
|
21
|
-
getShapeTransform: () => Nullable<{
|
|
22
|
-
left: number;
|
|
23
|
-
top: number;
|
|
24
|
-
width: number;
|
|
25
|
-
height: number;
|
|
26
|
-
angle: number;
|
|
27
|
-
}>;
|
|
28
|
-
}
|
|
29
|
-
export declare function useShapePosition(options: IUseShapePositionOptions): IShapePositionResult;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { ShapeTypeEnum } from '@univerjs-pro/engine-shape';
|
|
2
|
-
export declare enum ShapeGroupEnum {
|
|
3
|
-
Line = "line",
|
|
4
|
-
Rectangle = "rectangle",
|
|
5
|
-
BasicShape = "basicShape",
|
|
6
|
-
BlockArrow = "blockArrow",
|
|
7
|
-
EquationShape = "equationShape",
|
|
8
|
-
Flowchart = "flowchart",
|
|
9
|
-
StarAndBanner = "starAndBanner",
|
|
10
|
-
Callout = "callout",
|
|
11
|
-
Other = "other"
|
|
12
|
-
}
|
|
13
|
-
export declare const shapeTypeOptions: ({
|
|
14
|
-
group: ShapeGroupEnum;
|
|
15
|
-
type: ShapeTypeEnum;
|
|
16
|
-
icon: string;
|
|
17
|
-
name: string;
|
|
18
|
-
endArrow?: undefined;
|
|
19
|
-
startArrow?: undefined;
|
|
20
|
-
horizontal?: undefined;
|
|
21
|
-
vertical?: undefined;
|
|
22
|
-
} | {
|
|
23
|
-
group: ShapeGroupEnum;
|
|
24
|
-
type: ShapeTypeEnum;
|
|
25
|
-
icon: string;
|
|
26
|
-
name: string;
|
|
27
|
-
endArrow: boolean;
|
|
28
|
-
startArrow?: undefined;
|
|
29
|
-
horizontal?: undefined;
|
|
30
|
-
vertical?: undefined;
|
|
31
|
-
} | {
|
|
32
|
-
group: ShapeGroupEnum;
|
|
33
|
-
type: ShapeTypeEnum;
|
|
34
|
-
icon: string;
|
|
35
|
-
name: string;
|
|
36
|
-
endArrow: boolean;
|
|
37
|
-
startArrow: boolean;
|
|
38
|
-
horizontal?: undefined;
|
|
39
|
-
vertical?: undefined;
|
|
40
|
-
} | {
|
|
41
|
-
group: ShapeGroupEnum;
|
|
42
|
-
type: ShapeTypeEnum;
|
|
43
|
-
icon: string;
|
|
44
|
-
name: string;
|
|
45
|
-
horizontal: boolean;
|
|
46
|
-
endArrow?: undefined;
|
|
47
|
-
startArrow?: undefined;
|
|
48
|
-
vertical?: undefined;
|
|
49
|
-
} | {
|
|
50
|
-
group: ShapeGroupEnum;
|
|
51
|
-
type: ShapeTypeEnum;
|
|
52
|
-
icon: string;
|
|
53
|
-
name: string;
|
|
54
|
-
vertical: boolean;
|
|
55
|
-
endArrow?: undefined;
|
|
56
|
-
startArrow?: undefined;
|
|
57
|
-
horizontal?: undefined;
|
|
58
|
-
})[];
|