@univerjs-pro/print 0.4.0 → 0.4.1-experimental.20241022-507567a
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 +2 -2
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x3ae64a=_0x33da;(function(_0x3a8b75,_0x2df066){const _0x66bc4b=_0x33da,_0x3f97c0=_0x3a8b75();while(!![]){try{const _0x348813=-parseInt(_0x66bc4b(0x135))/0x1+-parseInt(_0x66bc4b(0x138))/0x2*(parseInt(_0x66bc4b(0x145))/0x3)+parseInt(_0x66bc4b(0x12f))/0x4+parseInt(_0x66bc4b(0x154))/0x5*(parseInt(_0x66bc4b(0x14f))/0x6)+-parseInt(_0x66bc4b(0x13f))/0x7*(parseInt(_0x66bc4b(0x12e))/0x8)+-parseInt(_0x66bc4b(0x137))/0x9+parseInt(_0x66bc4b(0x156))/0xa*(parseInt(_0x66bc4b(0x144))/0xb);if(_0x348813===_0x2df066)break;else _0x3f97c0['push'](_0x3f97c0['shift']());}catch(_0x14eb72){_0x3f97c0['push'](_0x3f97c0['shift']());}}}(_0x592e,0x94b39));function _0x33da(_0x299439,_0x4a4802){const _0x592e21=_0x592e();return _0x33da=function(_0x33da63,_0x5828ea){_0x33da63=_0x33da63-0x129;let _0x3adf0e=_0x592e21[_0x33da63];return _0x3adf0e;},_0x33da(_0x299439,_0x4a4802);}Object[_0x3ae64a(0x158)](exports,Symbol['toStringTag'],{'value':_0x3ae64a(0x147)});var e=(_0x51a938=>(_0x51a938[_0x3ae64a(0x12c)]='Letter',_0x51a938[_0x3ae64a(0x149)]='Tabloid',_0x51a938[_0x3ae64a(0x141)]=_0x3ae64a(0x141),_0x51a938[_0x3ae64a(0x153)]=_0x3ae64a(0x153),_0x51a938[_0x3ae64a(0x152)]=_0x3ae64a(0x152),_0x51a938[_0x3ae64a(0x143)]=_0x3ae64a(0x143),_0x51a938['A3']='A3',_0x51a938['A4']='A4',_0x51a938['A5']='A5',_0x51a938['B4']='B4',_0x51a938['B5']='B5',_0x51a938))(e||{}),i=(_0x416e91=>(_0x416e91[_0x3ae64a(0x15b)]=_0x3ae64a(0x15b),_0x416e91[_0x3ae64a(0x148)]=_0x3ae64a(0x148),_0x416e91))(i||{}),c=(_0x371915=>(_0x371915[_0x3ae64a(0x12a)]=_0x3ae64a(0x12a),_0x371915[_0x3ae64a(0x14d)]='FitWidth',_0x371915[_0x3ae64a(0x139)]='FitHeight',_0x371915[_0x3ae64a(0x136)]=_0x3ae64a(0x136),_0x371915[_0x3ae64a(0x130)]=_0x3ae64a(0x130),_0x371915))(c||{}),g=(_0x20fda5=>(_0x20fda5[_0x3ae64a(0x13b)]=_0x3ae64a(0x13b),_0x20fda5[_0x3ae64a(0x12d)]=_0x3ae64a(0x12d),_0x20fda5[_0x3ae64a(0x159)]=_0x3ae64a(0x159),_0x20fda5))(g||{}),o=(_0x4c9119=>(_0x4c9119[_0x3ae64a(0x146)]='Normal',_0x4c9119[_0x3ae64a(0x13d)]=_0x3ae64a(0x13d),_0x4c9119[_0x3ae64a(0x129)]=_0x3ae64a(0x129),_0x4c9119[_0x3ae64a(0x15a)]=_0x3ae64a(0x15a),_0x4c9119))(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[_0x3ae64a(0x143)]]:{'w':0x330,'h':0x4e0},[e[_0x3ae64a(0x141)]]:{'w':0x330,'h':0x540},[e[_0x3ae64a(0x12c)]]:{'w':0x330,'h':0x420},[e['Statement']]:{'w':0x210,'h':0x330},[e['Tabloid']]:{'w':0x420,'h':0x660}},N={[o[_0x3ae64a(0x146)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x3ae64a(0x13d)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x3ae64a(0x129)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x3ae64a(0x15a)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x3ae64a(0x13c),p=_0x3ae64a(0x150);function _0x592e(){const _0x531a8a=['Statement','5rVQWlq','PaperSizePxMap','10DRseAo','createElement','defineProperty','Middle','None','Portrait','innerHTML','\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','Origin','className','Letter','End','80iFticK','713328cwVKRu','Custom','style',',\x20.','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','PRINT_CONTAINER_CLASS','218833MidDwV','FitPage','7207830qilvuJ','106OjzeYf','FitHeight','px\x20','Start','printing-canvas-container','Narrow','PrintPaperSize','600040RxZyQJ','PrintPaperMargin','Legal','offline-printing-css','Folio','33706167UymNHt','62844VbKOfu','Normal','Module','Landscape','Tabloid','PrintScale','\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.','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','FitWidth','createPrintStyle','2122194wEjynu','printing-canvas','PaperMarginMap','Executive'];_0x592e=function(){return _0x531a8a;};return _0x592e();}function A(_0x536a7f,_0x35992e){const _0x30ffb7=_0x3ae64a,{w:_0x1e397e,h:_0x3df0ba}=m[_0x536a7f],_0x260ea3=_0x35992e===i[_0x30ffb7(0x15b)]?_0x1e397e:_0x3df0ba,_0x7ffa67=_0x35992e===i[_0x30ffb7(0x15b)]?_0x3df0ba:_0x1e397e,_0x3cb1c0=_0x30ffb7(0x15d)+_0x260ea3+_0x30ffb7(0x13a)+_0x7ffa67+'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.'+n+_0x30ffb7(0x132)+n+_0x30ffb7(0x14b)+p+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x7ffa67+_0x30ffb7(0x14c)+_0x260ea3+_0x30ffb7(0x133),_0x435754=document[_0x30ffb7(0x157)](_0x30ffb7(0x131));return _0x435754[_0x30ffb7(0x15c)]=_0x3cb1c0,_0x435754[_0x30ffb7(0x12b)]=_0x30ffb7(0x142),_0x435754;}exports['PRINT_CANVAS_CLASS']=p,exports[_0x3ae64a(0x134)]=n,exports[_0x3ae64a(0x151)]=N,exports[_0x3ae64a(0x155)]=m,exports['PrintAlign']=g,exports['PrintDirection']=i,exports[_0x3ae64a(0x140)]=o,exports[_0x3ae64a(0x13e)]=e,exports[_0x3ae64a(0x14a)]=c,exports[_0x3ae64a(0x14e)]=A;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x420eba=_0x3899;(function(_0x52259d,_0x467203){const _0x383b44=_0x3899,_0x34566d=_0x52259d();while(!![]){try{const _0x4d2bbf=parseInt(_0x383b44(0x156))/0x1+-parseInt(_0x383b44(0x141))/0x2+-parseInt(_0x383b44(0x14d))/0x3+parseInt(_0x383b44(0x13f))/0x4*(-parseInt(_0x383b44(0x13e))/0x5)+parseInt(_0x383b44(0x149))/0x6*(parseInt(_0x383b44(0x151))/0x7)+parseInt(_0x383b44(0x150))/0x8*(-parseInt(_0x383b44(0x144))/0x9)+parseInt(_0x383b44(0x163))/0xa;if(_0x4d2bbf===_0x467203)break;else _0x34566d['push'](_0x34566d['shift']());}catch(_0x5aa653){_0x34566d['push'](_0x34566d['shift']());}}}(_0x5079,0x7e0c2));function _0x3899(_0x45dac6,_0x2086e9){const _0x5079d2=_0x5079();return _0x3899=function(_0x38993d,_0x5ba750){_0x38993d=_0x38993d-0x13c;let _0x53cfac=_0x5079d2[_0x38993d];return _0x53cfac;},_0x3899(_0x45dac6,_0x2086e9);}var o=(_0xa67ed3=>(_0xa67ed3[_0x420eba(0x153)]=_0x420eba(0x153),_0xa67ed3[_0x420eba(0x13c)]=_0x420eba(0x13c),_0xa67ed3['Legal']=_0x420eba(0x158),_0xa67ed3[_0x420eba(0x14b)]=_0x420eba(0x14b),_0xa67ed3[_0x420eba(0x146)]=_0x420eba(0x146),_0xa67ed3[_0x420eba(0x145)]=_0x420eba(0x145),_0xa67ed3['A3']='A3',_0xa67ed3['A4']='A4',_0xa67ed3['A5']='A5',_0xa67ed3['B4']='B4',_0xa67ed3['B5']='B5',_0xa67ed3))(o||{}),i=(_0x4654fd=>(_0x4654fd[_0x420eba(0x154)]=_0x420eba(0x154),_0x4654fd[_0x420eba(0x152)]=_0x420eba(0x152),_0x4654fd))(i||{}),w=(_0x39b169=>(_0x39b169[_0x420eba(0x15c)]='Origin',_0x39b169[_0x420eba(0x15d)]=_0x420eba(0x15d),_0x39b169[_0x420eba(0x161)]=_0x420eba(0x161),_0x39b169[_0x420eba(0x164)]=_0x420eba(0x164),_0x39b169[_0x420eba(0x14e)]=_0x420eba(0x14e),_0x39b169))(w||{}),m=(_0x28f662=>(_0x28f662[_0x420eba(0x162)]=_0x420eba(0x162),_0x28f662['End']=_0x420eba(0x143),_0x28f662[_0x420eba(0x140)]='Middle',_0x28f662))(m||{}),e=(_0x5e5e95=>(_0x5e5e95['Normal']='Normal',_0x5e5e95[_0x420eba(0x14a)]=_0x420eba(0x14a),_0x5e5e95[_0x420eba(0x15e)]='Wide',_0x5e5e95[_0x420eba(0x160)]='None',_0x5e5e95))(e||{});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['Folio']]:{'w':0x330,'h':0x4e0},[o[_0x420eba(0x158)]]:{'w':0x330,'h':0x540},[o[_0x420eba(0x153)]]:{'w':0x330,'h':0x420},[o[_0x420eba(0x14b)]]:{'w':0x210,'h':0x330},[o[_0x420eba(0x13c)]]:{'w':0x420,'h':0x660}},v={[e[_0x420eba(0x142)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x420eba(0x14a)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x420eba(0x160)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x420eba(0x147),p=_0x420eba(0x13d);function _0x5079(){const _0x3c5d17=['FitPage','Tabloid','printing-canvas','2695eWUBvA','7612Ajhxuc','Middle','984458uBtGWx','Normal','End','27lDQdLD','Folio','Executive','printing-canvas-container','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','6ahXyKe','Narrow','Statement','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.','1377099XzlzgN','Custom','px\x20','386640QkuJgO','6416305xLFwtd','Landscape','Letter','Portrait','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','716769eBWiSA','className','Legal','innerHTML',',\x20.','createElement','Origin','FitWidth','Wide','\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','None','FitHeight','Start','10048750sQlTPq'];_0x5079=function(){return _0x3c5d17;};return _0x5079();}function N(_0x2d1641,_0x3d2861){const _0x7fc5c3=_0x420eba,{w:_0x4fa1c6,h:_0x29ba99}=g[_0x2d1641],_0x24aa08=_0x3d2861===i[_0x7fc5c3(0x154)]?_0x4fa1c6:_0x29ba99,_0x20921c=_0x3d2861===i[_0x7fc5c3(0x154)]?_0x29ba99:_0x4fa1c6,_0x38d3a0=_0x7fc5c3(0x15f)+_0x24aa08+_0x7fc5c3(0x14f)+_0x20921c+_0x7fc5c3(0x14c)+l+_0x7fc5c3(0x15a)+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+_0x7fc5c3(0x148)+_0x20921c+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x24aa08+_0x7fc5c3(0x155),_0x3c1e2f=document[_0x7fc5c3(0x15b)]('style');return _0x3c1e2f[_0x7fc5c3(0x159)]=_0x38d3a0,_0x3c1e2f[_0x7fc5c3(0x157)]='offline-printing-css',_0x3c1e2f;}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 _0x5071(){const _0x3a5d34=['End','FitPage','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','239319CuMgsN','FitHeight','amd','\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.','\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','Executive','1623575hWVKEU','None','FitWidth','313835ySJSHa','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','UniverPrint','object','PRINT_CONTAINER_CLASS','Tabloid','8yYXKfH','PaperMarginMap','PaperSizePxMap','Normal','338144CzyoEt','34520DfVnSA','Start','Letter',',\x20.','Legal','style','defineProperty','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','printing-canvas-container','PRINT_CANVAS_CLASS','Wide','Middle','2592540IDFzuO','Custom','315jOAoMW','4YUkFuW','exports','1721391KIMTQZ','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.','Statement','px\x20','Origin','Portrait','Narrow','Folio','PrintAlign','createPrintStyle','offline-printing-css','className'];_0x5071=function(){return _0x3a5d34;};return _0x5071();}function _0x565e(_0x2c06cb,_0x61ae17){const _0x507130=_0x5071();return _0x565e=function(_0x565e83,_0x30d8e3){_0x565e83=_0x565e83-0x13b;let _0x5ea38f=_0x507130[_0x565e83];return _0x5ea38f;},_0x565e(_0x2c06cb,_0x61ae17);}(function(_0x1fde61,_0x241208){const _0x22db0f=_0x565e,_0x4c5def=_0x1fde61();while(!![]){try{const _0x49846f=parseInt(_0x22db0f(0x13b))/0x1*(parseInt(_0x22db0f(0x155))/0x2)+parseInt(_0x22db0f(0x166))/0x3+parseInt(_0x22db0f(0x145))/0x4+-parseInt(_0x22db0f(0x16c))/0x5+-parseInt(_0x22db0f(0x152))/0x6+-parseInt(_0x22db0f(0x157))/0x7*(-parseInt(_0x22db0f(0x141))/0x8)+parseInt(_0x22db0f(0x154))/0x9*(parseInt(_0x22db0f(0x146))/0xa);if(_0x49846f===_0x241208)break;else _0x4c5def['push'](_0x4c5def['shift']());}catch(_0x21dbf8){_0x4c5def['push'](_0x4c5def['shift']());}}}(_0x5071,0x621f3),function(_0x51408d,_0x5ba5e1){const _0x3ad1fc=_0x565e;typeof exports==_0x3ad1fc(0x13e)&&typeof module<'u'?_0x5ba5e1(exports):typeof define=='function'&&define[_0x3ad1fc(0x168)]?define([_0x3ad1fc(0x156)],_0x5ba5e1):(_0x51408d=typeof globalThis<'u'?globalThis:_0x51408d||self,_0x5ba5e1(_0x51408d[_0x3ad1fc(0x13d)]={}));}(this,function(_0x2e6ffe){'use strict';const _0x575ab7=_0x565e;var _0x52ed52=(_0x25718e=>(_0x25718e[_0x575ab7(0x148)]=_0x575ab7(0x148),_0x25718e[_0x575ab7(0x140)]=_0x575ab7(0x140),_0x25718e[_0x575ab7(0x14a)]='Legal',_0x25718e[_0x575ab7(0x159)]=_0x575ab7(0x159),_0x25718e[_0x575ab7(0x16b)]=_0x575ab7(0x16b),_0x25718e[_0x575ab7(0x15e)]=_0x575ab7(0x15e),_0x25718e['A3']='A3',_0x25718e['A4']='A4',_0x25718e['A5']='A5',_0x25718e['B4']='B4',_0x25718e['B5']='B5',_0x25718e))(_0x52ed52||{}),_0x246fde=(_0xb927dd=>(_0xb927dd['Portrait']=_0x575ab7(0x15c),_0xb927dd['Landscape']='Landscape',_0xb927dd))(_0x246fde||{}),_0x2fec98=(_0x1147d3=>(_0x1147d3['Origin']=_0x575ab7(0x15b),_0x1147d3['FitWidth']=_0x575ab7(0x16e),_0x1147d3['FitHeight']=_0x575ab7(0x167),_0x1147d3[_0x575ab7(0x164)]='FitPage',_0x1147d3[_0x575ab7(0x153)]='Custom',_0x1147d3))(_0x2fec98||{}),_0x162005=(_0x48050f=>(_0x48050f[_0x575ab7(0x147)]='Start',_0x48050f[_0x575ab7(0x163)]='End',_0x48050f[_0x575ab7(0x151)]=_0x575ab7(0x151),_0x48050f))(_0x162005||{}),_0x276228=(_0xa98ca0=>(_0xa98ca0[_0x575ab7(0x144)]=_0x575ab7(0x144),_0xa98ca0['Narrow']=_0x575ab7(0x15d),_0xa98ca0[_0x575ab7(0x150)]='Wide',_0xa98ca0[_0x575ab7(0x16d)]='None',_0xa98ca0))(_0x276228||{});const _0x3536c4={[_0x52ed52['A3']]:{'w':0x463,'h':0x633},[_0x52ed52['A4']]:{'w':0x31a,'h':0x464},[_0x52ed52['A5']]:{'w':0x22f,'h':0x31a},[_0x52ed52['B4']]:{'w':0x3b0,'h':0x540},[_0x52ed52['B5']]:{'w':0x299,'h':0x3b0},[_0x52ed52['Executive']]:{'w':0x2b8,'h':0x3f0},[_0x52ed52['Folio']]:{'w':0x330,'h':0x4e0},[_0x52ed52['Legal']]:{'w':0x330,'h':0x540},[_0x52ed52[_0x575ab7(0x148)]]:{'w':0x330,'h':0x420},[_0x52ed52[_0x575ab7(0x159)]]:{'w':0x210,'h':0x330},[_0x52ed52[_0x575ab7(0x140)]]:{'w':0x420,'h':0x660}},_0x55d623={[_0x276228['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x276228['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x276228[_0x575ab7(0x150)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x276228[_0x575ab7(0x16d)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x55f2ca=_0x575ab7(0x14e),_0x3b702e='printing-canvas';function _0x4f9d82(_0x302466,_0x12ccf0){const _0x4a3088=_0x575ab7,{w:_0x2f6776,h:_0x1cfab4}=_0x3536c4[_0x302466],_0x5a86f2=_0x12ccf0===_0x246fde['Portrait']?_0x2f6776:_0x1cfab4,_0x436471=_0x12ccf0===_0x246fde['Portrait']?_0x1cfab4:_0x2f6776,_0x517bba=_0x4a3088(0x16a)+_0x5a86f2+_0x4a3088(0x15a)+_0x436471+_0x4a3088(0x158)+_0x55f2ca+_0x4a3088(0x149)+_0x55f2ca+_0x4a3088(0x169)+_0x3b702e+_0x4a3088(0x13c)+_0x436471+_0x4a3088(0x14d)+_0x5a86f2+_0x4a3088(0x165),_0x3fc511=document['createElement'](_0x4a3088(0x14b));return _0x3fc511['innerHTML']=_0x517bba,_0x3fc511[_0x4a3088(0x162)]=_0x4a3088(0x161),_0x3fc511;}_0x2e6ffe[_0x575ab7(0x14f)]=_0x3b702e,_0x2e6ffe[_0x575ab7(0x13f)]=_0x55f2ca,_0x2e6ffe[_0x575ab7(0x142)]=_0x55d623,_0x2e6ffe[_0x575ab7(0x143)]=_0x3536c4,_0x2e6ffe[_0x575ab7(0x15f)]=_0x162005,_0x2e6ffe['PrintDirection']=_0x246fde,_0x2e6ffe['PrintPaperMargin']=_0x276228,_0x2e6ffe['PrintPaperSize']=_0x52ed52,_0x2e6ffe['PrintScale']=_0x2fec98,_0x2e6ffe[_0x575ab7(0x160)]=_0x4f9d82,Object[_0x575ab7(0x14c)](_0x2e6ffe,Symbol['toStringTag'],{'value':'Module'});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1-experimental.20241022-507567a",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Print module for UniverJS",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"typescript": "5.6.3",
|
|
47
47
|
"vite": "^5.4.8",
|
|
48
48
|
"vitest": "^2.1.2",
|
|
49
|
-
"@univerjs-infra/shared": "0.4.
|
|
49
|
+
"@univerjs-infra/shared": "0.4.1"
|
|
50
50
|
},
|
|
51
51
|
"univerSpace": {
|
|
52
52
|
".": {
|