@univerjs-pro/print 0.5.1 → 0.5.2-nightly.202412281605
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/es/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +4 -4
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x3f08(){const _0x572403=['3373398ZTlWwB',',\x20.','Letter','printing-canvas-container','FitHeight','PrintScale','Wide','Landscape','FitPage','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','Origin','Module','Start','2705751yyHile','px;\x20\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','FitWidth','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','1mObHWU','Executive','Statement','Narrow','20svdray','4237576XCpqwX','PaperSizePxMap','innerHTML','Custom','325072qDecMi','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','1008387EcVUhO','PrintDirection','Normal','createPrintStyle','Folio','15044360uynYUm','Tabloid','defineProperty','254516aNmWws','Legal','px\x20','None','End','Portrait','Middle','PrintAlign','className','16IctIKs'];_0x3f08=function(){return _0x572403;};return _0x3f08();}const _0x54e01b=_0x32c3;function _0x32c3(_0x305448,_0x51359d){const _0x3f086f=_0x3f08();return _0x32c3=function(_0x32c3b6,_0x3cc885){_0x32c3b6=_0x32c3b6-0xb2;let _0x5d8ab7=_0x3f086f[_0x32c3b6];return _0x5d8ab7;},_0x32c3(_0x305448,_0x51359d);}(function(_0x3c6cc9,_0xf810cf){const _0x1c66c0=_0x32c3,_0x222989=_0x3c6cc9();while(!![]){try{const _0x1048bd=-parseInt(_0x1c66c0(0xbf))/0x1*(-parseInt(_0x1c66c0(0xd2))/0x2)+-parseInt(_0x1c66c0(0xca))/0x3+-parseInt(_0x1c66c0(0xc8))/0x4*(-parseInt(_0x1c66c0(0xc3))/0x5)+parseInt(_0x1c66c0(0xdc))/0x6+parseInt(_0x1c66c0(0xc4))/0x7+parseInt(_0x1c66c0(0xdb))/0x8*(parseInt(_0x1c66c0(0xbb))/0x9)+-parseInt(_0x1c66c0(0xcf))/0xa;if(_0x1048bd===_0xf810cf)break;else _0x222989['push'](_0x222989['shift']());}catch(_0xd7c1ae){_0x222989['push'](_0x222989['shift']());}}}(_0x3f08,0x5cee4));Object[_0x54e01b(0xd1)](exports,Symbol['toStringTag'],{'value':_0x54e01b(0xb9)});var e=(_0x27bb52=>(_0x27bb52[_0x54e01b(0xde)]=_0x54e01b(0xde),_0x27bb52[_0x54e01b(0xd0)]=_0x54e01b(0xd0),_0x27bb52[_0x54e01b(0xd3)]=_0x54e01b(0xd3),_0x27bb52[_0x54e01b(0xc1)]=_0x54e01b(0xc1),_0x27bb52['Executive']=_0x54e01b(0xc0),_0x27bb52[_0x54e01b(0xce)]=_0x54e01b(0xce),_0x27bb52['A3']='A3',_0x27bb52['A4']='A4',_0x27bb52['A5']='A5',_0x27bb52['B4']='B4',_0x27bb52['B5']='B5',_0x27bb52))(e||{}),i=(_0x51ae31=>(_0x51ae31[_0x54e01b(0xd7)]=_0x54e01b(0xd7),_0x51ae31[_0x54e01b(0xb5)]='Landscape',_0x51ae31))(i||{}),c=(_0x5f09d1=>(_0x5f09d1[_0x54e01b(0xb8)]=_0x54e01b(0xb8),_0x5f09d1[_0x54e01b(0xbd)]='FitWidth',_0x5f09d1['FitHeight']=_0x54e01b(0xb2),_0x5f09d1['FitPage']=_0x54e01b(0xb6),_0x5f09d1[_0x54e01b(0xc7)]=_0x54e01b(0xc7),_0x5f09d1))(c||{}),g=(_0x28fb85=>(_0x28fb85[_0x54e01b(0xba)]=_0x54e01b(0xba),_0x28fb85[_0x54e01b(0xd6)]='End',_0x28fb85[_0x54e01b(0xd8)]=_0x54e01b(0xd8),_0x28fb85))(g||{}),o=(_0x3beab3=>(_0x3beab3[_0x54e01b(0xcc)]=_0x54e01b(0xcc),_0x3beab3[_0x54e01b(0xc2)]=_0x54e01b(0xc2),_0x3beab3[_0x54e01b(0xb4)]=_0x54e01b(0xb4),_0x3beab3[_0x54e01b(0xd5)]='None',_0x3beab3))(o||{});const m={[e['A3']]:{'w':0x463,'h':0x633},[e['A4']]:{'w':0x31a,'h':0x464},[e['A5']]:{'w':0x22f,'h':0x31a},[e['B4']]:{'w':0x3b0,'h':0x540},[e['B5']]:{'w':0x299,'h':0x3b0},[e['Executive']]:{'w':0x2b8,'h':0x3f0},[e[_0x54e01b(0xce)]]:{'w':0x330,'h':0x4e0},[e[_0x54e01b(0xd3)]]:{'w':0x330,'h':0x540},[e[_0x54e01b(0xde)]]:{'w':0x330,'h':0x420},[e[_0x54e01b(0xc1)]]:{'w':0x210,'h':0x330},[e['Tabloid']]:{'w':0x420,'h':0x660}},N={[o[_0x54e01b(0xcc)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x54e01b(0xc2)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x54e01b(0xb4)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x54e01b(0xd5)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x54e01b(0xdf),p='printing-canvas';function A(_0x14b96d,_0x1f0080){const _0x485892=_0x54e01b,{w:_0x3a56e4,h:_0x5c6ac6}=m[_0x14b96d],_0x1eef12=_0x1f0080===i['Portrait']?_0x3a56e4:_0x5c6ac6,_0x12f3a0=_0x1f0080===i['Portrait']?_0x5c6ac6:_0x3a56e4,_0x467ca6='\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20'+_0x1eef12+_0x485892(0xd4)+_0x12f3a0+_0x485892(0xbc)+n+_0x485892(0xdd)+n+_0x485892(0xb7)+p+_0x485892(0xbe)+_0x12f3a0+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x1eef12+_0x485892(0xc9),_0x5ccdc9=document['createElement']('style');return _0x5ccdc9[_0x485892(0xc6)]=_0x467ca6,_0x5ccdc9[_0x485892(0xda)]='offline-printing-css',_0x5ccdc9;}exports['PRINT_CANVAS_CLASS']=p,exports['PRINT_CONTAINER_CLASS']=n,exports['PaperMarginMap']=N,exports[_0x54e01b(0xc5)]=m,exports[_0x54e01b(0xd9)]=g,exports[_0x54e01b(0xcb)]=i,exports['PrintPaperMargin']=o,exports['PrintPaperSize']=e,exports[_0x54e01b(0xb3)]=c,exports[_0x54e01b(0xcd)]=A;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x214f40=_0x5044;(function(_0x556dfb,_0x18c26c){const _0x566bfd=_0x5044,_0x585c6a=_0x556dfb();while(!![]){try{const _0x57f3bb=-parseInt(_0x566bfd(0x1eb))/0x1*(parseInt(_0x566bfd(0x1f7))/0x2)+-parseInt(_0x566bfd(0x1f9))/0x3+parseInt(_0x566bfd(0x1ef))/0x4+parseInt(_0x566bfd(0x1fb))/0x5+parseInt(_0x566bfd(0x1fd))/0x6*(parseInt(_0x566bfd(0x1f0))/0x7)+-parseInt(_0x566bfd(0x1f2))/0x8*(parseInt(_0x566bfd(0x1ec))/0x9)+parseInt(_0x566bfd(0x20e))/0xa;if(_0x57f3bb===_0x18c26c)break;else _0x585c6a['push'](_0x585c6a['shift']());}catch(_0x3a0e81){_0x585c6a['push'](_0x585c6a['shift']());}}}(_0x2352,0x739a8));var o=(_0x29d858=>(_0x29d858[_0x214f40(0x1f1)]=_0x214f40(0x1f1),_0x29d858['Tabloid']=_0x214f40(0x202),_0x29d858[_0x214f40(0x1fa)]=_0x214f40(0x1fa),_0x29d858[_0x214f40(0x205)]=_0x214f40(0x205),_0x29d858[_0x214f40(0x206)]=_0x214f40(0x206),_0x29d858[_0x214f40(0x1ff)]=_0x214f40(0x1ff),_0x29d858['A3']='A3',_0x29d858['A4']='A4',_0x29d858['A5']='A5',_0x29d858['B4']='B4',_0x29d858['B5']='B5',_0x29d858))(o||{}),i=(_0xde3b2f=>(_0xde3b2f[_0x214f40(0x20c)]=_0x214f40(0x20c),_0xde3b2f['Landscape']=_0x214f40(0x1fe),_0xde3b2f))(i||{}),w=(_0x14e33b=>(_0x14e33b['Origin']=_0x214f40(0x20f),_0x14e33b['FitWidth']='FitWidth',_0x14e33b[_0x214f40(0x208)]=_0x214f40(0x208),_0x14e33b[_0x214f40(0x201)]=_0x214f40(0x201),_0x14e33b[_0x214f40(0x20b)]=_0x214f40(0x20b),_0x14e33b))(w||{}),m=(_0x357635=>(_0x357635[_0x214f40(0x1fc)]=_0x214f40(0x1fc),_0x357635[_0x214f40(0x203)]=_0x214f40(0x203),_0x357635[_0x214f40(0x209)]='Middle',_0x357635))(m||{}),e=(_0x28fe76=>(_0x28fe76[_0x214f40(0x1ee)]=_0x214f40(0x1ee),_0x28fe76[_0x214f40(0x1f3)]=_0x214f40(0x1f3),_0x28fe76[_0x214f40(0x20a)]=_0x214f40(0x20a),_0x28fe76['None']=_0x214f40(0x20d),_0x28fe76))(e||{});function _0x2352(){const _0x4a5fee=['Normal','1387480MlMZzV','1820VkBXAX','Letter','8pvpyos','Narrow','createElement','style','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','1086jmrbmk',',\x20.','2609784GtJMKu','Legal','1404000HkGKwj','Start','8574HZmEvP','Landscape','Folio','px\x20','FitPage','Tabloid','End','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Statement','Executive','className','FitHeight','Middle','Wide','Custom','Portrait','None','15814360CZmeMV','Origin','1605BkvLMZ','3291219ojopml','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'];_0x2352=function(){return _0x4a5fee;};return _0x2352();}const g={[o['A3']]:{'w':0x463,'h':0x633},[o['A4']]:{'w':0x31a,'h':0x464},[o['A5']]:{'w':0x22f,'h':0x31a},[o['B4']]:{'w':0x3b0,'h':0x540},[o['B5']]:{'w':0x299,'h':0x3b0},[o['Executive']]:{'w':0x2b8,'h':0x3f0},[o[_0x214f40(0x1ff)]]:{'w':0x330,'h':0x4e0},[o[_0x214f40(0x1fa)]]:{'w':0x330,'h':0x540},[o['Letter']]:{'w':0x330,'h':0x420},[o[_0x214f40(0x205)]]:{'w':0x210,'h':0x330},[o['Tabloid']]:{'w':0x420,'h':0x660}},v={[e['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0x214f40(0x20a)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x214f40(0x20d)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l='printing-canvas-container',p='printing-canvas';function _0x5044(_0x2e5588,_0x21b6fd){const _0x23528a=_0x2352();return _0x5044=function(_0x50442a,_0x54090e){_0x50442a=_0x50442a-0x1eb;let _0x5c1375=_0x23528a[_0x50442a];return _0x5c1375;},_0x5044(_0x2e5588,_0x21b6fd);}function N(_0x7a382c,_0x2e19c0){const _0x8f08c=_0x214f40,{w:_0x1ee245,h:_0x465778}=g[_0x7a382c],_0x3da6ef=_0x2e19c0===i[_0x8f08c(0x20c)]?_0x1ee245:_0x465778,_0x19e6fe=_0x2e19c0===i['Portrait']?_0x465778:_0x1ee245,_0x582a7e='\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20'+_0x3da6ef+_0x8f08c(0x200)+_0x19e6fe+'px;\x20\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.'+l+_0x8f08c(0x1f8)+l+'\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.'+p+_0x8f08c(0x1ed)+_0x19e6fe+_0x8f08c(0x204)+_0x3da6ef+_0x8f08c(0x1f6),_0x201d09=document[_0x8f08c(0x1f4)](_0x8f08c(0x1f5));return _0x201d09['innerHTML']=_0x582a7e,_0x201d09[_0x8f08c(0x207)]='offline-printing-css',_0x201d09;}export{p as PRINT_CANVAS_CLASS,l as PRINT_CONTAINER_CLASS,v as PaperMarginMap,g as PaperSizePxMap,m as PrintAlign,i as PrintDirection,e as PrintPaperMargin,o as PrintPaperSize,w as PrintScale,N as createPrintStyle};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x211b(){const _0x370a2b=[',\x20.','\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','Wide','Legal','function','style','5907328UmSrbf','UniverProPrint','Narrow','toStringTag','createElement','Statement','PrintAlign','PaperMarginMap','Portrait','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','322173xCYppb','None','3821952rYMnri','innerHTML','offline-printing-css','Folio','9997134XHdRpt','PrintPaperMargin','FitHeight','Tabloid','Normal','className','Origin','4038741TkvUSz','Start','PrintDirection','6676375Wujanh','Letter','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','PrintScale','Landscape','PRINT_CANVAS_CLASS','Executive','6eCgqEZ','FitPage','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','PRINT_CONTAINER_CLASS','1858155SAiTaC','FitWidth','Middle'];_0x211b=function(){return _0x370a2b;};return _0x211b();}function _0x52a9(_0x5860fd,_0x26108b){const _0x211b7a=_0x211b();return _0x52a9=function(_0x52a917,_0x201f00){_0x52a917=_0x52a917-0x147;let _0x444e50=_0x211b7a[_0x52a917];return _0x444e50;},_0x52a9(_0x5860fd,_0x26108b);}(function(_0x32cb54,_0x641033){const _0x56e7e8=_0x52a9,_0x4c2b33=_0x32cb54();while(!![]){try{const _0x13d42a=-parseInt(_0x56e7e8(0x14b))/0x1*(-parseInt(_0x56e7e8(0x162))/0x2)+parseInt(_0x56e7e8(0x166))/0x3+parseInt(_0x56e7e8(0x14d))/0x4+-parseInt(_0x56e7e8(0x15b))/0x5+-parseInt(_0x56e7e8(0x151))/0x6+parseInt(_0x56e7e8(0x158))/0x7+parseInt(_0x56e7e8(0x16f))/0x8;if(_0x13d42a===_0x641033)break;else _0x4c2b33['push'](_0x4c2b33['shift']());}catch(_0x657a65){_0x4c2b33['push'](_0x4c2b33['shift']());}}}(_0x211b,0xd0d0b),function(_0x3aacce,_0x14cf7b){const _0x7cd1cf=_0x52a9;typeof exports=='object'&&typeof module<'u'?_0x14cf7b(exports):typeof define==_0x7cd1cf(0x16d)&&define['amd']?define(['exports'],_0x14cf7b):(_0x3aacce=typeof globalThis<'u'?globalThis:_0x3aacce||self,_0x14cf7b(_0x3aacce[_0x7cd1cf(0x170)]={}));}(this,function(_0x436114){'use strict';const _0x5ba411=_0x52a9;var _0x177992=(_0x375215=>(_0x375215[_0x5ba411(0x15c)]=_0x5ba411(0x15c),_0x375215[_0x5ba411(0x154)]='Tabloid',_0x375215[_0x5ba411(0x16c)]=_0x5ba411(0x16c),_0x375215['Statement']=_0x5ba411(0x174),_0x375215[_0x5ba411(0x161)]=_0x5ba411(0x161),_0x375215[_0x5ba411(0x150)]=_0x5ba411(0x150),_0x375215['A3']='A3',_0x375215['A4']='A4',_0x375215['A5']='A5',_0x375215['B4']='B4',_0x375215['B5']='B5',_0x375215))(_0x177992||{}),_0xc31a69=(_0x32075d=>(_0x32075d[_0x5ba411(0x149)]='Portrait',_0x32075d[_0x5ba411(0x15f)]=_0x5ba411(0x15f),_0x32075d))(_0xc31a69||{}),_0x3d1008=(_0x15cea2=>(_0x15cea2[_0x5ba411(0x157)]='Origin',_0x15cea2[_0x5ba411(0x167)]=_0x5ba411(0x167),_0x15cea2[_0x5ba411(0x153)]=_0x5ba411(0x153),_0x15cea2[_0x5ba411(0x163)]=_0x5ba411(0x163),_0x15cea2['Custom']='Custom',_0x15cea2))(_0x3d1008||{}),_0x1fd5a9=(_0x2ca102=>(_0x2ca102[_0x5ba411(0x159)]=_0x5ba411(0x159),_0x2ca102['End']='End',_0x2ca102[_0x5ba411(0x168)]=_0x5ba411(0x168),_0x2ca102))(_0x1fd5a9||{}),_0x2dbc01=(_0x90f535=>(_0x90f535[_0x5ba411(0x155)]=_0x5ba411(0x155),_0x90f535[_0x5ba411(0x171)]='Narrow',_0x90f535[_0x5ba411(0x16b)]=_0x5ba411(0x16b),_0x90f535[_0x5ba411(0x14c)]=_0x5ba411(0x14c),_0x90f535))(_0x2dbc01||{});const _0x28f7e3={[_0x177992['A3']]:{'w':0x463,'h':0x633},[_0x177992['A4']]:{'w':0x31a,'h':0x464},[_0x177992['A5']]:{'w':0x22f,'h':0x31a},[_0x177992['B4']]:{'w':0x3b0,'h':0x540},[_0x177992['B5']]:{'w':0x299,'h':0x3b0},[_0x177992[_0x5ba411(0x161)]]:{'w':0x2b8,'h':0x3f0},[_0x177992[_0x5ba411(0x150)]]:{'w':0x330,'h':0x4e0},[_0x177992['Legal']]:{'w':0x330,'h':0x540},[_0x177992[_0x5ba411(0x15c)]]:{'w':0x330,'h':0x420},[_0x177992[_0x5ba411(0x174)]]:{'w':0x210,'h':0x330},[_0x177992['Tabloid']]:{'w':0x420,'h':0x660}},_0x2b903b={[_0x2dbc01[_0x5ba411(0x155)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x2dbc01['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x2dbc01[_0x5ba411(0x16b)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x2dbc01['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x44d57e='printing-canvas-container',_0x21c389='printing-canvas';function _0x1b7bc3(_0x11d5c9,_0x282ee3){const _0x40214d=_0x5ba411,{w:_0x227e89,h:_0x44a69f}=_0x28f7e3[_0x11d5c9],_0x154943=_0x282ee3===_0xc31a69[_0x40214d(0x149)]?_0x227e89:_0x44a69f,_0x26a08f=_0x282ee3===_0xc31a69['Portrait']?_0x44a69f:_0x227e89,_0x57479d=_0x40214d(0x16a)+_0x154943+'px\x20'+_0x26a08f+'px;\x20\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.'+_0x44d57e+_0x40214d(0x169)+_0x44d57e+'\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.'+_0x21c389+_0x40214d(0x15d)+_0x26a08f+_0x40214d(0x164)+_0x154943+_0x40214d(0x14a),_0x6d8401=document[_0x40214d(0x173)](_0x40214d(0x16e));return _0x6d8401[_0x40214d(0x14e)]=_0x57479d,_0x6d8401[_0x40214d(0x156)]=_0x40214d(0x14f),_0x6d8401;}_0x436114[_0x5ba411(0x160)]=_0x21c389,_0x436114[_0x5ba411(0x165)]=_0x44d57e,_0x436114[_0x5ba411(0x148)]=_0x2b903b,_0x436114['PaperSizePxMap']=_0x28f7e3,_0x436114[_0x5ba411(0x147)]=_0x1fd5a9,_0x436114[_0x5ba411(0x15a)]=_0xc31a69,_0x436114[_0x5ba411(0x152)]=_0x2dbc01,_0x436114['PrintPaperSize']=_0x177992,_0x436114[_0x5ba411(0x15e)]=_0x3d1008,_0x436114['createPrintStyle']=_0x1b7bc3,Object['defineProperty'](_0x436114,Symbol[_0x5ba411(0x172)],{'value':'Module'});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2-nightly.202412281605",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Print module for UniverJS",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
],
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"typescript": "^5.7.2",
|
|
46
|
-
"vite": "^6.0.
|
|
47
|
-
"vitest": "^2.1.
|
|
48
|
-
"@univerjs-infra/shared": "0.5.
|
|
46
|
+
"vite": "^6.0.3",
|
|
47
|
+
"vitest": "^2.1.8",
|
|
48
|
+
"@univerjs-infra/shared": "0.5.2"
|
|
49
49
|
},
|
|
50
50
|
"space": {
|
|
51
51
|
".": {
|