@univerjs-pro/docs-shape-ui 1.0.0 → 1.0.2
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 +21 -21
- 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 _0x1478(_0x529bcc,_0x40e564){_0x529bcc=_0x529bcc-0x180;var _0x58ad33=_0x58ad();var _0x1478a6=_0x58ad33[_0x529bcc];return _0x1478a6;}function _0x58ad(){var _0x3212f2=['9sBrgUr','Tên\x20đối\x20tượng','Hiện\x20tất\x20cả','2439815scvIXO','Gạch\x20chân','Tên','Ẩn\x20bảng\x20hình\x20dạng','In\x20nghiêng','Đưa\x20lên\x20trên','amd','Phía\x20sau\x20văn\x20bản','Căn\x20trái','Văn\x20bản','Căn\x20dưới','4034JqHVYI','Xóa','function','19NRHVVl','Gạch\x20ngang','3209292feVCde','Hiện','2206292gSYzxE','Xóa\x20hình\x20dạng','object','Chèn\x20hình\x20dạng','Màu\x20chữ','16724744rItRGW','2142816ViLpub','Chưa\x20có\x20đối\x20tượng','Kiểu','Kiểu\x20hình\x20dạng','Mô\x20tả','Mở\x20bảng\x20hình\x20dạng','1454558RtwyIQ','Xoay\x2090\x20độ\x20ngược\x20chiều\x20kim\x20đồng\x20hồ','Bao\x20quanh','Thêm\x20mô\x20tả','Chọn\x20một\x20đối\x20tượng\x20để\x20chỉnh\x20sửa\x20chi\x20tiết','Ẩn\x20tất\x20cả','Hình\x20dạng','Cắt\x20theo\x20hình\x20dạng','In\x20đậm','Căn\x20phải','Định\x20dạng\x20hình\x20dạng','UniverProDocsShapeUiViVN','Căn\x20đều\x20hai\x20bên','Lớp','Căn\x20giữa','Chuyển\x20đổi\x20văn\x20bản\x20dọc','Căn\x20giữa\x20theo\x20chiều\x20dọc','Đưa\x20xuống\x20dưới'];_0x58ad=function(){return _0x3212f2;};return _0x58ad();}(function(_0x374f9c,_0x38fec1){var _0xc3f764=_0x1478,_0x146088=_0x374f9c();while(!![]){try{var _0x2bc6ac=-parseInt(_0xc3f764(0x1a2))/0x1*(parseInt(_0xc3f764(0x19f))/0x2)+parseInt(_0xc3f764(0x1ac))/0x3+parseInt(_0xc3f764(0x1a6))/0x4+parseInt(_0xc3f764(0x194))/0x5+parseInt(_0xc3f764(0x1a4))/0x6+parseInt(_0xc3f764(0x1b2))/0x7+-parseInt(_0xc3f764(0x1ab))/0x8*(parseInt(_0xc3f764(0x191))/0x9);if(_0x2bc6ac===_0x38fec1)break;else _0x146088['push'](_0x146088['shift']());}catch(_0x181da8){_0x146088['push'](_0x146088['shift']());}}}(_0x58ad,0x59bd0),function(_0x31d40d,_0x2fd858){var _0xa5f144=_0x1478;typeof exports==_0xa5f144(0x1a8)&&typeof module<'u'?module['exports']=_0x2fd858():typeof define==_0xa5f144(0x1a1)&&define[_0xa5f144(0x19a)]?define([],_0x2fd858):(_0x31d40d=typeof globalThis<'u'?globalThis:_0x31d40d||self,_0x31d40d[_0xa5f144(0x18a)]=_0x2fd858());}(this,function(){var _0x196c69=_0x1478;return{'docs-shape-ui':{'mobile':{'text':_0x196c69(0x19d),'style':_0x196c69(0x1ae),'delete':_0x196c69(0x1a0)},'quickStyles':'Kiểu\x20nhanh','title':_0x196c69(0x185),'insertShape':_0x196c69(0x1a9),'openPanel':_0x196c69(0x1b1),'deleteShape':_0x196c69(0x1a7),'hidePanel':_0x196c69(0x197),'formatShape':_0x196c69(0x189),'shapeStyle':_0x196c69(0x1af),'shapePosition':'Vị\x20trí\x20hình\x20dạng','toggleFlipH':'Chuyển\x20đổi\x20lật\x20ngang','toggleFlipV':'Bật/tắt\x20lật\x20dọc','rotateRight90':'Xoay\x2090\x20độ\x20theo\x20chiều\x20kim\x20đồng\x20hồ','rotateLeft90':_0x196c69(0x180),'toggleTextVertical':_0x196c69(0x18e),'objectListPanel':{'title':_0x196c69(0x18c),'open':'Lớp','empty':_0x196c69(0x1ad),'showAll':_0x196c69(0x193),'hideAll':_0x196c69(0x184),'show':_0x196c69(0x1a5),'hide':'Ẩn','moveForward':_0x196c69(0x199),'moveBackward':_0x196c69(0x190),'close':'Đóng','name':_0x196c69(0x196),'nameInput':_0x196c69(0x192),'description':_0x196c69(0x1b0),'descriptionPlaceholder':_0x196c69(0x182),'details':'Chi\x20tiết','noSelection':_0x196c69(0x183)},'toolbar':{'alignLeft':_0x196c69(0x19c),'alignCenter':_0x196c69(0x18d),'alignRight':_0x196c69(0x188),'alignJustify':_0x196c69(0x18b),'bold':_0x196c69(0x187),'italic':_0x196c69(0x198),'underline':_0x196c69(0x195),'strikethrough':_0x196c69(0x1a3),'textColor':_0x196c69(0x1aa),'fillColor':'Màu\x20nền\x20văn\x20bản','resetColor':'Đặt\x20lại\x20màu'},'align':{'top':'Căn\x20trên','middle':_0x196c69(0x18f),'bottom':_0x196c69(0x19e)},'textWrap':{'inline':'Cùng\x20dòng\x20với\x20văn\x20bản','square':_0x196c69(0x181),'topAndBottom':'Trên\x20và\x20dưới','behindText':_0x196c69(0x19b),'inFrontText':'Phía\x20trước\x20văn\x20bản'},'crop':{'shape':_0x196c69(0x186)}}};}));
|
package/lib/umd/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x2c80(_0x52e255,_0x2ec5e1){_0x52e255=_0x52e255-0x136;var _0x4dd01e=_0x4dd0();var _0x2c808d=_0x4dd01e[_0x52e255];return _0x2c808d;}(function(_0x3eb856,_0x5e40f5){var _0x257e83=_0x2c80,_0x1a8570=_0x3eb856();while(!![]){try{var _0x353d62=parseInt(_0x257e83(0x13c))/0x1*(-parseInt(_0x257e83(0x15a))/0x2)+-parseInt(_0x257e83(0x157))/0x3+parseInt(_0x257e83(0x149))/0x4+parseInt(_0x257e83(0x13b))/0x5*(-parseInt(_0x257e83(0x14e))/0x6)+-parseInt(_0x257e83(0x15b))/0x7+-parseInt(_0x257e83(0x15d))/0x8+parseInt(_0x257e83(0x13e))/0x9;if(_0x353d62===_0x5e40f5)break;else _0x1a8570['push'](_0x1a8570['shift']());}catch(_0xacc7d5){_0x1a8570['push'](_0x1a8570['shift']());}}}(_0x4dd0,0x5b9cf),function(_0x318eff,_0x30d71b){var _0x84c09b=_0x2c80;typeof exports==_0x84c09b(0x142)&&typeof module<'u'?module[_0x84c09b(0x13f)]=_0x30d71b():typeof define==_0x84c09b(0x14f)&&define[_0x84c09b(0x151)]?define([],_0x30d71b):(_0x318eff=typeof globalThis<'u'?globalThis:_0x318eff||self,_0x318eff[_0x84c09b(0x148)]=_0x30d71b());}(this,function(){var _0x48c53c=_0x2c80;return{'docs-shape-ui':{'mobile':{'text':'文字','style':'样式','delete':'删除'},'quickStyles':_0x48c53c(0x15f),'title':'形状','insertShape':_0x48c53c(0x14a),'openPanel':_0x48c53c(0x153),'deleteShape':_0x48c53c(0x14d),'hidePanel':_0x48c53c(0x152),'formatShape':_0x48c53c(0x156),'shapeStyle':_0x48c53c(0x139),'shapePosition':'形状位置','toggleFlipH':'切换水平翻转','toggleFlipV':'切换垂直翻转','rotateRight90':'顺时针90度旋转','rotateLeft90':_0x48c53c(0x138),'toggleTextVertical':_0x48c53c(0x144),'objectListPanel':{'title':'图层','open':'图层','empty':_0x48c53c(0x14c),'showAll':_0x48c53c(0x147),'hideAll':_0x48c53c(0x141),'show':'显示','hide':'隐藏','moveForward':'上移一层','moveBackward':_0x48c53c(0x13d),'close':'关闭','name':'名称','nameInput':_0x48c53c(0x146),'description':'描述','descriptionPlaceholder':'添加描述','details':'详情','noSelection':_0x48c53c(0x155)},'toolbar':{'alignLeft':_0x48c53c(0x143),'alignCenter':_0x48c53c(0x150),'alignRight':'右对齐','alignJustify':_0x48c53c(0x15c),'bold':'粗体','italic':'斜体','underline':'下划线','strikethrough':'删除线','textColor':_0x48c53c(0x145),'fillColor':_0x48c53c(0x137),'resetColor':_0x48c53c(0x136)},'align':{'top':_0x48c53c(0x13a),'middle':_0x48c53c(0x160),'bottom':'底部对齐'},'textWrap':{'inline':_0x48c53c(0x15e),'square':_0x48c53c(0x154),'topAndBottom':_0x48c53c(0x14b),'behindText':_0x48c53c(0x140),'inFrontText':_0x48c53c(0x159)},'crop':{'shape':_0x48c53c(0x158)}}};}));function _0x4dd0(){var _0x4198cc=['581595PHHjZj','裁剪为形状','浮于文字上方','2EhNMSk','4314065kqMMrX','两端对齐','3615168cltyOD','嵌入型','快捷样式','垂直居中','重置颜色','文本背景色','逆时针90度旋转','形状样式','顶部对齐','364885rkSAAL','323278ozNDQY','下移一层','17299080JZWIBs','exports','衬于文字下方','全部隐藏','object','左对齐','切换文本竖排','文本颜色','对象名称','全部显示','UniverProDocsShapeUiZhCN','1321476ytGYiH','插入形状','上下型','暂无对象','删除形状','24jmFsDA','function','居中对齐','amd','隐藏形状面板','打开形状面板','四周型','选择对象以编辑详情','格式化形状'];_0x4dd0=function(){return _0x4198cc;};return _0x4dd0();}
|
package/lib/umd/locale/zh-HK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x77683f,_0x3d7fca){var _0x41cfc2=_0x2148,_0x5d74f3=_0x77683f();while(!![]){try{var _0x10114e=parseInt(_0x41cfc2(0x14d))/0x1+parseInt(_0x41cfc2(0x14e))/0x2+-parseInt(_0x41cfc2(0x154))/0x3+parseInt(_0x41cfc2(0x156))/0x4*(-parseInt(_0x41cfc2(0x170))/0x5)+-parseInt(_0x41cfc2(0x163))/0x6*(-parseInt(_0x41cfc2(0x15a))/0x7)+-parseInt(_0x41cfc2(0x16b))/0x8*(-parseInt(_0x41cfc2(0x15c))/0x9)+parseInt(_0x41cfc2(0x158))/0xa;if(_0x10114e===_0x3d7fca)break;else _0x5d74f3['push'](_0x5d74f3['shift']());}catch(_0xe42c6){_0x5d74f3['push'](_0x5d74f3['shift']());}}}(_0x8e0f,0x2d77b),function(_0x380178,_0x1d0aa1){var _0x3d23d2=_0x2148;typeof exports=='object'&&typeof module<'u'?module['exports']=_0x1d0aa1():typeof define==_0x3d23d2(0x16e)&&define['amd']?define([],_0x1d0aa1):(_0x380178=typeof globalThis<'u'?globalThis:_0x380178||self,_0x380178[_0x3d23d2(0x16c)]=_0x1d0aa1());}(this,function(){var _0x48b423=_0x2148;return{'docs-shape-ui':{'mobile':{'text':'文字','style':'樣式','delete':'刪除'},'quickStyles':_0x48b423(0x160),'title':'形狀','insertShape':_0x48b423(0x155),'openPanel':_0x48b423(0x14f),'deleteShape':_0x48b423(0x171),'hidePanel':'隱藏形狀面板','formatShape':'格式化形狀','shapeStyle':_0x48b423(0x151),'shapePosition':_0x48b423(0x161),'toggleFlipH':_0x48b423(0x16a),'toggleFlipV':'切換垂直翻轉','rotateRight90':_0x48b423(0x167),'rotateLeft90':_0x48b423(0x174),'toggleTextVertical':'切換文本豎排','objectListPanel':{'title':'圖層','open':'圖層','empty':_0x48b423(0x15d),'showAll':'全部顯示','hideAll':_0x48b423(0x16d),'show':'顯示','hide':'隱藏','moveForward':_0x48b423(0x14c),'moveBackward':_0x48b423(0x164),'close':'關閉','name':'名稱','nameInput':_0x48b423(0x159),'description':'描述','descriptionPlaceholder':'新增描述','details':'詳情','noSelection':_0x48b423(0x153)},'toolbar':{'alignLeft':_0x48b423(0x152),'alignCenter':_0x48b423(0x175),'alignRight':_0x48b423(0x15f),'alignJustify':'兩端對齊','bold':'粗體','italic':'斜體','underline':'底線','strikethrough':_0x48b423(0x173),'textColor':_0x48b423(0x15e),'fillColor':_0x48b423(0x157),'resetColor':_0x48b423(0x162)},'align':{'top':_0x48b423(0x165),'middle':_0x48b423(0x150),'bottom':_0x48b423(0x15b)},'textWrap':{'inline':_0x48b423(0x16f),'square':'矩形','topAndBottom':_0x48b423(0x168),'behindText':_0x48b423(0x169),'inFrontText':_0x48b423(0x166)},'crop':{'shape':_0x48b423(0x172)}}};}));function _0x2148(_0x8cb52a,_0x540385){_0x8cb52a=_0x8cb52a-0x14c;var _0x8e0f7b=_0x8e0f();var _0x2148d0=_0x8e0f7b[_0x8cb52a];return _0x2148d0;}function _0x8e0f(){var _0x37b808=['18Atixyu','暫無物件','文字顏色','右對齊','快速樣式','圖形位置','重置顏色','17616KBWmCm','下移一層','頂部對齊','文字在後','順時針\x2090\x20度旋轉','上及下','文字在前','切換水平翻轉','175984GMnPfg','UniverProDocsShapeUiZhHK','全部隱藏','function','與文字排列','5bBTmpc','刪除形狀','裁切為形狀','刪除線','逆時針\x2090\x20度旋轉','居中對齊','上移一層','147682IlGCTj','237592eEJJPH','打開形狀面板','垂直居中','圖形樣式','左對齊','選擇物件以編輯詳情','642912qbXbNt','插入形狀','1433716DqheAh','文字背景色','4367500gxSXHM','物件名稱','28RZAuRX','底部對齊'];_0x8e0f=function(){return _0x37b808;};return _0x8e0f();}
|
package/lib/umd/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x20a6b9,_0x592106){var _0x3af3da=_0x3ce4,_0x2e6b38=_0x20a6b9();while(!![]){try{var _0x6a0ae6=-parseInt(_0x3af3da(0x8e))/0x1*(parseInt(_0x3af3da(0xb4))/0x2)+parseInt(_0x3af3da(0xad))/0x3*(parseInt(_0x3af3da(0xa6))/0x4)+-parseInt(_0x3af3da(0xb0))/0x5+-parseInt(_0x3af3da(0xa5))/0x6*(-parseInt(_0x3af3da(0x93))/0x7)+parseInt(_0x3af3da(0x9e))/0x8*(parseInt(_0x3af3da(0x8f))/0x9)+parseInt(_0x3af3da(0x92))/0xa+parseInt(_0x3af3da(0xa9))/0xb*(-parseInt(_0x3af3da(0xb3))/0xc);if(_0x6a0ae6===_0x592106)break;else _0x2e6b38['push'](_0x2e6b38['shift']());}catch(_0x2c6cf1){_0x2e6b38['push'](_0x2e6b38['shift']());}}}(_0x3afc,0x319e1),function(_0xc3002,_0x4ee562){var _0x5970f2=_0x3ce4;typeof exports==_0x5970f2(0xb2)&&typeof module<'u'?module[_0x5970f2(0x9b)]=_0x4ee562():typeof define==_0x5970f2(0x9a)&&define['amd']?define([],_0x4ee562):(_0xc3002=typeof globalThis<'u'?globalThis:_0xc3002||self,_0xc3002['UniverProDocsShapeUiZhTW']=_0x4ee562());}(this,function(){var _0x4b96ea=_0x3ce4;return{'docs-shape-ui':{'mobile':{'text':'文字','style':'樣式','delete':'刪除'},'quickStyles':_0x4b96ea(0x98),'title':'形狀','insertShape':_0x4b96ea(0xa1),'openPanel':_0x4b96ea(0x9d),'deleteShape':_0x4b96ea(0x8d),'hidePanel':_0x4b96ea(0xaf),'formatShape':'格式化形狀','shapeStyle':_0x4b96ea(0x9c),'shapePosition':_0x4b96ea(0xa8),'toggleFlipH':'切換水平翻轉','toggleFlipV':'切換垂直翻轉','rotateRight90':_0x4b96ea(0x95),'rotateLeft90':_0x4b96ea(0x8b),'toggleTextVertical':_0x4b96ea(0x96),'objectListPanel':{'title':'圖層','open':'圖層','empty':_0x4b96ea(0xa0),'showAll':_0x4b96ea(0xb1),'hideAll':_0x4b96ea(0x89),'show':'顯示','hide':'隱藏','moveForward':_0x4b96ea(0xa7),'moveBackward':'下移一層','close':'關閉','name':'名稱','nameInput':_0x4b96ea(0x91),'description':'描述','descriptionPlaceholder':_0x4b96ea(0x8a),'details':_0x4b96ea(0xa4),'noSelection':'選取物件以編輯詳細資料'},'toolbar':{'alignLeft':_0x4b96ea(0xae),'alignCenter':_0x4b96ea(0xab),'alignRight':_0x4b96ea(0xac),'alignJustify':_0x4b96ea(0x9f),'bold':'粗體','italic':'斜體','underline':'底線','strikethrough':_0x4b96ea(0x90),'textColor':_0x4b96ea(0x99),'fillColor':'文字背景色','resetColor':_0x4b96ea(0xaa)},'align':{'top':'頂部對齊','middle':_0x4b96ea(0x8c),'bottom':_0x4b96ea(0x97)},'textWrap':{'inline':'與文字排列','square':'矩形','topAndBottom':_0x4b96ea(0xa3),'behindText':_0x4b96ea(0x94),'inFrontText':_0x4b96ea(0xa2)},'crop':{'shape':'裁切為形狀'}}};}));function _0x3ce4(_0x5141e0,_0x5c59ad){_0x5141e0=_0x5141e0-0x89;var _0x3afcdd=_0x3afc();var _0x3ce4c4=_0x3afcdd[_0x5141e0];return _0x3ce4c4;}function _0x3afc(){var _0x224195=['詳細資料','1274394HWWoYn','1052GOkPEh','上移一層','圖形位置','33ocerNC','重置顏色','居中對齊','右對齊','1695TGZUEb','左對齊','隱藏形狀面板','583920OpUZNF','全部顯示','object','1413948SJCdRW','4BSRBoU','全部隱藏','新增描述','逆時針\x2090\x20度旋轉','垂直居中','刪除形狀','13010Frckjm','9bQqFFS','刪除線','物件名稱','3133640qRrhQM','7ACXfsv','文字在前','順時針\x2090\x20度旋轉','切換文本竖排','底部對齊','快捷樣式','文字顏色','function','exports','圖形樣式','打開形狀面板','201328KSfxar','兩端對齊','暫無物件','插入形狀','文字在後','上及下'];_0x3afc=function(){return _0x224195;};return _0x3afc();}
|
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.2",
|
|
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.
|
|
74
|
-
"@univerjs/icons": "1.43.
|
|
75
|
-
"@univerjs/protocol": "1.0.
|
|
76
|
-
"@univerjs/ui": "1.0.
|
|
60
|
+
"@univerjs-pro/docs-shape": "1.0.2",
|
|
61
|
+
"@univerjs-pro/engine-shape": "1.0.2",
|
|
62
|
+
"@univerjs-pro/license": "1.0.2",
|
|
63
|
+
"@univerjs-pro/shape-editor": "1.0.2",
|
|
64
|
+
"@univerjs-pro/shape-editor-ui": "1.0.2",
|
|
65
|
+
"@univerjs/core": "1.0.2",
|
|
66
|
+
"@univerjs/design": "1.0.2",
|
|
67
|
+
"@univerjs/docs": "1.0.2",
|
|
68
|
+
"@univerjs/docs-drawing": "1.0.2",
|
|
69
|
+
"@univerjs/docs-drawing-ui": "1.0.2",
|
|
70
|
+
"@univerjs/docs-ui": "1.0.2",
|
|
71
|
+
"@univerjs/drawing": "1.0.2",
|
|
72
|
+
"@univerjs/drawing-ui": "1.0.2",
|
|
73
|
+
"@univerjs/engine-render": "1.0.2",
|
|
74
|
+
"@univerjs/icons": "1.43.1",
|
|
75
|
+
"@univerjs/protocol": "1.0.2",
|
|
76
|
+
"@univerjs/ui": "1.0.2"
|
|
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.2",
|
|
80
|
+
"@univerjs-pro/engine-formula": "1.0.2",
|
|
81
|
+
"@univerjs/engine-formula": "1.0.2",
|
|
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
|
-
})[];
|