@univerjs-pro/print 0.5.2 → 0.5.3

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 CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x52a516=_0x1fc8;(function(_0x336fe1,_0xc3eebf){const _0x1a631f=_0x1fc8,_0x3bf69e=_0x336fe1();while(!![]){try{const _0x1f258a=parseInt(_0x1a631f(0x196))/0x1*(parseInt(_0x1a631f(0x1a1))/0x2)+-parseInt(_0x1a631f(0x198))/0x3*(parseInt(_0x1a631f(0x17d))/0x4)+-parseInt(_0x1a631f(0x1a3))/0x5+parseInt(_0x1a631f(0x19d))/0x6+parseInt(_0x1a631f(0x190))/0x7+-parseInt(_0x1a631f(0x199))/0x8*(-parseInt(_0x1a631f(0x183))/0x9)+parseInt(_0x1a631f(0x17c))/0xa;if(_0x1f258a===_0xc3eebf)break;else _0x3bf69e['push'](_0x3bf69e['shift']());}catch(_0xa8cde5){_0x3bf69e['push'](_0x3bf69e['shift']());}}}(_0x5aa7,0x3f6d4));Object[_0x52a516(0x181)](exports,Symbol[_0x52a516(0x1a0)],{'value':_0x52a516(0x19f)});var e=(_0x12a869=>(_0x12a869[_0x52a516(0x19b)]=_0x52a516(0x19b),_0x12a869[_0x52a516(0x195)]=_0x52a516(0x195),_0x12a869['Legal']=_0x52a516(0x18f),_0x12a869['Statement']='Statement',_0x12a869['Executive']=_0x52a516(0x1a9),_0x12a869[_0x52a516(0x1a6)]=_0x52a516(0x1a6),_0x12a869['A3']='A3',_0x12a869['A4']='A4',_0x12a869['A5']='A5',_0x12a869['B4']='B4',_0x12a869['B5']='B5',_0x12a869))(e||{}),i=(_0x128a1f=>(_0x128a1f['Portrait']=_0x52a516(0x193),_0x128a1f[_0x52a516(0x194)]=_0x52a516(0x194),_0x128a1f))(i||{}),c=(_0x1e754b=>(_0x1e754b[_0x52a516(0x191)]=_0x52a516(0x191),_0x1e754b['FitWidth']=_0x52a516(0x19e),_0x1e754b[_0x52a516(0x18b)]=_0x52a516(0x18b),_0x1e754b['FitPage']='FitPage',_0x1e754b[_0x52a516(0x17e)]=_0x52a516(0x17e),_0x1e754b))(c||{}),g=(_0x1a12b4=>(_0x1a12b4[_0x52a516(0x188)]=_0x52a516(0x188),_0x1a12b4[_0x52a516(0x182)]=_0x52a516(0x182),_0x1a12b4['Middle']='Middle',_0x1a12b4))(g||{}),o=(_0x3583f9=>(_0x3583f9['Normal']=_0x52a516(0x180),_0x3583f9[_0x52a516(0x1a8)]=_0x52a516(0x1a8),_0x3583f9[_0x52a516(0x1a4)]=_0x52a516(0x1a4),_0x3583f9[_0x52a516(0x19c)]=_0x52a516(0x19c),_0x3583f9))(o||{});function _0x1fc8(_0x3fef49,_0x20f480){const _0x5aa793=_0x5aa7();return _0x1fc8=function(_0x1fc855,_0x1fba94){_0x1fc855=_0x1fc855-0x17c;let _0x51f940=_0x5aa793[_0x1fc855];return _0x51f940;},_0x1fc8(_0x3fef49,_0x20f480);}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[_0x52a516(0x1a9)]]:{'w':0x2b8,'h':0x3f0},[e['Folio']]:{'w':0x330,'h':0x4e0},[e[_0x52a516(0x18f)]]:{'w':0x330,'h':0x540},[e['Letter']]:{'w':0x330,'h':0x420},[e[_0x52a516(0x19a)]]:{'w':0x210,'h':0x330},[e[_0x52a516(0x195)]]:{'w':0x420,'h':0x660}},N={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x52a516(0x1a8)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x52a516(0x1a4)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x52a516(0x19c)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x52a516(0x1a2),p=_0x52a516(0x18c);function A(_0x57b5fd,_0x2c025e){const _0x4997fc=_0x52a516,{w:_0x24f16d,h:_0x46abca}=m[_0x57b5fd],_0xd4e300=_0x2c025e===i['Portrait']?_0x24f16d:_0x46abca,_0x20cc18=_0x2c025e===i[_0x4997fc(0x193)]?_0x46abca:_0x24f16d,_0x606243='\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'+_0xd4e300+'px\x20'+_0x20cc18+_0x4997fc(0x17f)+n+',\x20.'+n+'\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+_0x4997fc(0x18a)+_0x20cc18+_0x4997fc(0x18e)+_0xd4e300+_0x4997fc(0x192),_0x3f4aff=document['createElement'](_0x4997fc(0x18d));return _0x3f4aff[_0x4997fc(0x187)]=_0x606243,_0x3f4aff[_0x4997fc(0x1aa)]='offline-printing-css',_0x3f4aff;}function _0x5aa7(){const _0xdfaa97=['toStringTag','52dIdyWy','printing-canvas-container','440930DABuYF','Wide','PRINT_CONTAINER_CLASS','Folio','PrintScale','Narrow','Executive','className','4144570gzkiHP','2220bhbHje','Custom','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.','Normal','defineProperty','End','9qDmmLp','PRINT_CANVAS_CLASS','createPrintStyle','PaperSizePxMap','innerHTML','Start','PaperMarginMap','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','FitHeight','printing-canvas','style','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Legal','509530piVErz','Origin','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Portrait','Landscape','Tabloid','1164WsThuY','PrintAlign','2733WBavPz','891096knaaXZ','Statement','Letter','None','1348134HwajCV','FitWidth','Module'];_0x5aa7=function(){return _0xdfaa97;};return _0x5aa7();}exports[_0x52a516(0x184)]=p,exports[_0x52a516(0x1a5)]=n,exports[_0x52a516(0x189)]=N,exports[_0x52a516(0x186)]=m,exports[_0x52a516(0x197)]=g,exports['PrintDirection']=i,exports['PrintPaperMargin']=o,exports['PrintPaperSize']=e,exports[_0x52a516(0x1a7)]=c,exports[_0x52a516(0x185)]=A;
1
+ 'use strict';const _0x2ef264=_0x58ae;(function(_0x22ccb6,_0x142e23){const _0x52015b=_0x58ae,_0x16e933=_0x22ccb6();while(!![]){try{const _0xcfa261=-parseInt(_0x52015b(0x153))/0x1+-parseInt(_0x52015b(0x14d))/0x2*(parseInt(_0x52015b(0x16a))/0x3)+-parseInt(_0x52015b(0x161))/0x4+-parseInt(_0x52015b(0x17a))/0x5*(-parseInt(_0x52015b(0x172))/0x6)+-parseInt(_0x52015b(0x163))/0x7*(-parseInt(_0x52015b(0x15b))/0x8)+parseInt(_0x52015b(0x158))/0x9+parseInt(_0x52015b(0x17b))/0xa*(parseInt(_0x52015b(0x168))/0xb);if(_0xcfa261===_0x142e23)break;else _0x16e933['push'](_0x16e933['shift']());}catch(_0x72c3db){_0x16e933['push'](_0x16e933['shift']());}}}(_0x4ed2,0xa5ff6));Object[_0x2ef264(0x16f)](exports,Symbol[_0x2ef264(0x15f)],{'value':_0x2ef264(0x156)});function _0x58ae(_0xde73bb,_0x207b9c){const _0x4ed21e=_0x4ed2();return _0x58ae=function(_0x58ae67,_0x274b5f){_0x58ae67=_0x58ae67-0x14a;let _0x3e6185=_0x4ed21e[_0x58ae67];return _0x3e6185;},_0x58ae(_0xde73bb,_0x207b9c);}function _0x4ed2(){const _0x1f98e6=['defineProperty','PaperMarginMap','Normal','6BgRjEr','FitHeight','PRINT_CANVAS_CLASS','style','Custom','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','PrintScale','Narrow','428215hEhGyB','10IRsXdc','PrintPaperSize','End','FitWidth','Legal','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','26tPXfRd','Folio',',\x20.','Portrait','Start','createPrintStyle','746977MktfTd','Middle','createElement','Module','\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','8148474liQsVK','None','offline-printing-css','136foWWeP','Executive','PRINT_CONTAINER_CLASS','PrintAlign','toStringTag','Wide','4211656QnlCkC','Letter','274162rceCbq','FitPage','Landscape','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.','\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.','10375805qTXCpe','printing-canvas-container','27759zbfmaH','Tabloid','Statement','Origin','innerHTML'];_0x4ed2=function(){return _0x1f98e6;};return _0x4ed2();}var e=(_0x3e0c06=>(_0x3e0c06[_0x2ef264(0x162)]='Letter',_0x3e0c06[_0x2ef264(0x16b)]=_0x2ef264(0x16b),_0x3e0c06[_0x2ef264(0x14b)]=_0x2ef264(0x14b),_0x3e0c06[_0x2ef264(0x16c)]=_0x2ef264(0x16c),_0x3e0c06['Executive']=_0x2ef264(0x15c),_0x3e0c06['Folio']=_0x2ef264(0x14e),_0x3e0c06['A3']='A3',_0x3e0c06['A4']='A4',_0x3e0c06['A5']='A5',_0x3e0c06['B4']='B4',_0x3e0c06['B5']='B5',_0x3e0c06))(e||{}),i=(_0x26462d=>(_0x26462d[_0x2ef264(0x150)]=_0x2ef264(0x150),_0x26462d[_0x2ef264(0x165)]='Landscape',_0x26462d))(i||{}),c=(_0x344444=>(_0x344444['Origin']=_0x2ef264(0x16d),_0x344444[_0x2ef264(0x14a)]='FitWidth',_0x344444[_0x2ef264(0x173)]='FitHeight',_0x344444['FitPage']=_0x2ef264(0x164),_0x344444[_0x2ef264(0x176)]='Custom',_0x344444))(c||{}),g=(_0x5f43ba=>(_0x5f43ba[_0x2ef264(0x151)]=_0x2ef264(0x151),_0x5f43ba[_0x2ef264(0x17d)]='End',_0x5f43ba[_0x2ef264(0x154)]=_0x2ef264(0x154),_0x5f43ba))(g||{}),o=(_0x409894=>(_0x409894[_0x2ef264(0x171)]=_0x2ef264(0x171),_0x409894[_0x2ef264(0x179)]=_0x2ef264(0x179),_0x409894['Wide']=_0x2ef264(0x160),_0x409894[_0x2ef264(0x159)]='None',_0x409894))(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['Folio']]:{'w':0x330,'h':0x4e0},[e['Legal']]:{'w':0x330,'h':0x540},[e[_0x2ef264(0x162)]]:{'w':0x330,'h':0x420},[e['Statement']]:{'w':0x210,'h':0x330},[e[_0x2ef264(0x16b)]]:{'w':0x420,'h':0x660}},N={[o[_0x2ef264(0x171)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x2ef264(0x159)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x2ef264(0x169),p='printing-canvas';function A(_0x5926f2,_0x3bacd5){const _0x114339=_0x2ef264,{w:_0x18bad4,h:_0xd38591}=m[_0x5926f2],_0xc41d3=_0x3bacd5===i[_0x114339(0x150)]?_0x18bad4:_0xd38591,_0x40edec=_0x3bacd5===i[_0x114339(0x150)]?_0xd38591:_0x18bad4,_0x3bdfbc=_0x114339(0x157)+_0xc41d3+'px\x20'+_0x40edec+_0x114339(0x166)+n+_0x114339(0x14f)+n+_0x114339(0x167)+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'+_0x40edec+_0x114339(0x14c)+_0xc41d3+_0x114339(0x177),_0x3ef378=document[_0x114339(0x155)](_0x114339(0x175));return _0x3ef378[_0x114339(0x16e)]=_0x3bdfbc,_0x3ef378['className']=_0x114339(0x15a),_0x3ef378;}exports[_0x2ef264(0x174)]=p,exports[_0x2ef264(0x15d)]=n,exports[_0x2ef264(0x170)]=N,exports['PaperSizePxMap']=m,exports[_0x2ef264(0x15e)]=g,exports['PrintDirection']=i,exports['PrintPaperMargin']=o,exports[_0x2ef264(0x17c)]=e,exports[_0x2ef264(0x178)]=c,exports[_0x2ef264(0x152)]=A;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1be646=_0x4a79;(function(_0x36ee97,_0x1adbe){const _0x24aa55=_0x4a79,_0x307dd0=_0x36ee97();while(!![]){try{const _0x16986f=parseInt(_0x24aa55(0xa0))/0x1*(-parseInt(_0x24aa55(0xa6))/0x2)+parseInt(_0x24aa55(0x97))/0x3+-parseInt(_0x24aa55(0x9f))/0x4+-parseInt(_0x24aa55(0xad))/0x5+parseInt(_0x24aa55(0xb8))/0x6*(parseInt(_0x24aa55(0x94))/0x7)+parseInt(_0x24aa55(0x96))/0x8*(parseInt(_0x24aa55(0x9d))/0x9)+parseInt(_0x24aa55(0x99))/0xa;if(_0x16986f===_0x1adbe)break;else _0x307dd0['push'](_0x307dd0['shift']());}catch(_0x87ca48){_0x307dd0['push'](_0x307dd0['shift']());}}}(_0xaa1e,0xdfa0f));function _0x4a79(_0x4f2d33,_0x397b2a){const _0xaa1e66=_0xaa1e();return _0x4a79=function(_0x4a79c4,_0x5f1353){_0x4a79c4=_0x4a79c4-0x92;let _0x50631c=_0xaa1e66[_0x4a79c4];return _0x50631c;},_0x4a79(_0x4f2d33,_0x397b2a);}var o=(_0x19af38=>(_0x19af38['Letter']=_0x1be646(0xb9),_0x19af38['Tabloid']=_0x1be646(0x9e),_0x19af38[_0x1be646(0xa8)]='Legal',_0x19af38[_0x1be646(0xaf)]=_0x1be646(0xaf),_0x19af38[_0x1be646(0x9a)]=_0x1be646(0x9a),_0x19af38['Folio']='Folio',_0x19af38['A3']='A3',_0x19af38['A4']='A4',_0x19af38['A5']='A5',_0x19af38['B4']='B4',_0x19af38['B5']='B5',_0x19af38))(o||{}),i=(_0x5995ba=>(_0x5995ba[_0x1be646(0x98)]=_0x1be646(0x98),_0x5995ba[_0x1be646(0xa9)]=_0x1be646(0xa9),_0x5995ba))(i||{}),w=(_0x2c4416=>(_0x2c4416['Origin']=_0x1be646(0xb4),_0x2c4416['FitWidth']=_0x1be646(0x9c),_0x2c4416[_0x1be646(0xb2)]=_0x1be646(0xb2),_0x2c4416['FitPage']='FitPage',_0x2c4416[_0x1be646(0xac)]='Custom',_0x2c4416))(w||{}),m=(_0x452689=>(_0x452689[_0x1be646(0xa1)]=_0x1be646(0xa1),_0x452689[_0x1be646(0xa7)]=_0x1be646(0xa7),_0x452689[_0x1be646(0xba)]=_0x1be646(0xba),_0x452689))(m||{}),e=(_0x4dad00=>(_0x4dad00[_0x1be646(0xaa)]=_0x1be646(0xaa),_0x4dad00[_0x1be646(0xb3)]='Narrow',_0x4dad00['Wide']=_0x1be646(0xb1),_0x4dad00[_0x1be646(0x9b)]=_0x1be646(0x9b),_0x4dad00))(e||{});function _0xaa1e(){const _0x5d3e84=['Origin','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','offline-printing-css','className','376062jSMXVe','Letter','Middle','\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','\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.','91CvhwME','px\x20','56gTPjfE','1247565RKFhHd','Portrait','1037840acfTTI','Executive','None','FitWidth','2222919CnIRRe','Tabloid','3890112YUydWa','2oJJuKe','Start','createElement','style','printing-canvas','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.','320626yiarss','End','Legal','Landscape','Normal','printing-canvas-container','Custom','4271200pGWUpk','innerHTML','Statement','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Wide','FitHeight','Narrow'];_0xaa1e=function(){return _0x5d3e84;};return _0xaa1e();}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[_0x1be646(0x9a)]]:{'w':0x2b8,'h':0x3f0},[o['Folio']]:{'w':0x330,'h':0x4e0},[o[_0x1be646(0xa8)]]:{'w':0x330,'h':0x540},[o[_0x1be646(0xb9)]]:{'w':0x330,'h':0x420},[o[_0x1be646(0xaf)]]:{'w':0x210,'h':0x330},[o['Tabloid']]:{'w':0x420,'h':0x660}},v={[e[_0x1be646(0xaa)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x1be646(0xb3)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0x1be646(0xb1)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x1be646(0x9b)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x1be646(0xab),p=_0x1be646(0xa4);function N(_0x54f590,_0x359057){const _0x267693=_0x1be646,{w:_0x35848e,h:_0x5a5248}=g[_0x54f590],_0x56f28e=_0x359057===i[_0x267693(0x98)]?_0x35848e:_0x5a5248,_0x3d4502=_0x359057===i[_0x267693(0x98)]?_0x5a5248:_0x35848e,_0x2b5abd=_0x267693(0x92)+_0x56f28e+_0x267693(0x95)+_0x3d4502+_0x267693(0xa5)+l+',\x20.'+l+_0x267693(0x93)+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'+_0x3d4502+_0x267693(0xb0)+_0x56f28e+_0x267693(0xb5),_0x572287=document[_0x267693(0xa2)](_0x267693(0xa3));return _0x572287[_0x267693(0xae)]=_0x2b5abd,_0x572287[_0x267693(0xb7)]=_0x267693(0xb6),_0x572287;}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};
1
+ const _0x422fe5=_0x586a;(function(_0x382a69,_0x2eaa3a){const _0x392050=_0x586a,_0x184b58=_0x382a69();while(!![]){try{const _0x4ea9c8=-parseInt(_0x392050(0x137))/0x1*(parseInt(_0x392050(0x13c))/0x2)+parseInt(_0x392050(0x14d))/0x3+parseInt(_0x392050(0x136))/0x4*(parseInt(_0x392050(0x141))/0x5)+-parseInt(_0x392050(0x153))/0x6+-parseInt(_0x392050(0x14e))/0x7+-parseInt(_0x392050(0x14b))/0x8+-parseInt(_0x392050(0x15a))/0x9*(parseInt(_0x392050(0x155))/0xa);if(_0x4ea9c8===_0x2eaa3a)break;else _0x184b58['push'](_0x184b58['shift']());}catch(_0x5ea912){_0x184b58['push'](_0x184b58['shift']());}}}(_0x4147,0x25444));var o=(_0x17726f=>(_0x17726f[_0x422fe5(0x154)]=_0x422fe5(0x154),_0x17726f['Tabloid']=_0x422fe5(0x147),_0x17726f[_0x422fe5(0x142)]=_0x422fe5(0x142),_0x17726f[_0x422fe5(0x151)]='Statement',_0x17726f[_0x422fe5(0x158)]=_0x422fe5(0x158),_0x17726f[_0x422fe5(0x159)]=_0x422fe5(0x159),_0x17726f['A3']='A3',_0x17726f['A4']='A4',_0x17726f['A5']='A5',_0x17726f['B4']='B4',_0x17726f['B5']='B5',_0x17726f))(o||{}),i=(_0x2f3303=>(_0x2f3303['Portrait']='Portrait',_0x2f3303['Landscape']=_0x422fe5(0x14f),_0x2f3303))(i||{}),w=(_0xec4d79=>(_0xec4d79[_0x422fe5(0x14a)]=_0x422fe5(0x14a),_0xec4d79['FitWidth']='FitWidth',_0xec4d79['FitHeight']=_0x422fe5(0x13a),_0xec4d79[_0x422fe5(0x150)]='FitPage',_0xec4d79[_0x422fe5(0x145)]=_0x422fe5(0x145),_0xec4d79))(w||{}),m=(_0x5c0d5f=>(_0x5c0d5f[_0x422fe5(0x13b)]=_0x422fe5(0x13b),_0x5c0d5f[_0x422fe5(0x13f)]=_0x422fe5(0x13f),_0x5c0d5f['Middle']=_0x422fe5(0x13d),_0x5c0d5f))(m||{}),e=(_0x5848eb=>(_0x5848eb['Normal']=_0x422fe5(0x135),_0x5848eb[_0x422fe5(0x14c)]=_0x422fe5(0x14c),_0x5848eb[_0x422fe5(0x157)]='Wide',_0x5848eb[_0x422fe5(0x148)]=_0x422fe5(0x148),_0x5848eb))(e||{});function _0x4147(){const _0x120742=['px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Origin','339224OmnjZw','Narrow','849360OqXRbq','1126447vnmIxc','Landscape','FitPage','Statement','innerHTML','144rZVcQC','Letter','21260qKhekm','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Wide','Executive','Folio','108vgqTET','Normal','22812AFyKxV','169657cVHOFU','px\x20','offline-printing-css','FitHeight','Start','2Tbzmis','Middle','printing-canvas-container','End','printing-canvas','235xUrfnx','Legal',',\x20.','\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.','Custom','Portrait','Tabloid','None'];_0x4147=function(){return _0x120742;};return _0x4147();}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[_0x422fe5(0x158)]]:{'w':0x2b8,'h':0x3f0},[o[_0x422fe5(0x159)]]:{'w':0x330,'h':0x4e0},[o[_0x422fe5(0x142)]]:{'w':0x330,'h':0x540},[o[_0x422fe5(0x154)]]:{'w':0x330,'h':0x420},[o[_0x422fe5(0x151)]]:{'w':0x210,'h':0x330},[o['Tabloid']]:{'w':0x420,'h':0x660}},v={[e[_0x422fe5(0x135)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x422fe5(0x14c)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x422fe5(0x148)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x422fe5(0x13e),p=_0x422fe5(0x140);function _0x586a(_0x5c7a51,_0x2928f0){const _0x414792=_0x4147();return _0x586a=function(_0x586ad5,_0x32c760){_0x586ad5=_0x586ad5-0x135;let _0xbd475b=_0x414792[_0x586ad5];return _0xbd475b;},_0x586a(_0x5c7a51,_0x2928f0);}function N(_0x20e18a,_0x443c0e){const _0x3cc5fb=_0x422fe5,{w:_0x175a6f,h:_0x400c66}=g[_0x20e18a],_0x389437=_0x443c0e===i[_0x3cc5fb(0x146)]?_0x175a6f:_0x400c66,_0x1d7b6e=_0x443c0e===i[_0x3cc5fb(0x146)]?_0x400c66:_0x175a6f,_0x13b438='\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'+_0x389437+_0x3cc5fb(0x138)+_0x1d7b6e+'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+_0x3cc5fb(0x143)+l+_0x3cc5fb(0x144)+p+_0x3cc5fb(0x156)+_0x1d7b6e+_0x3cc5fb(0x149)+_0x389437+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',_0x627c68=document['createElement']('style');return _0x627c68[_0x3cc5fb(0x152)]=_0x13b438,_0x627c68['className']=_0x3cc5fb(0x139),_0x627c68;}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(_0x4f52d3,_0x483b42){const _0x5d50c8=_0x4f1f,_0x2ff51a=_0x4f52d3();while(!![]){try{const _0x57bb09=-parseInt(_0x5d50c8(0x15b))/0x1+parseInt(_0x5d50c8(0x14d))/0x2+parseInt(_0x5d50c8(0x14f))/0x3*(parseInt(_0x5d50c8(0x151))/0x4)+-parseInt(_0x5d50c8(0x14c))/0x5+parseInt(_0x5d50c8(0x15a))/0x6+-parseInt(_0x5d50c8(0x140))/0x7*(parseInt(_0x5d50c8(0x153))/0x8)+-parseInt(_0x5d50c8(0x160))/0x9*(-parseInt(_0x5d50c8(0x16c))/0xa);if(_0x57bb09===_0x483b42)break;else _0x2ff51a['push'](_0x2ff51a['shift']());}catch(_0x33afb4){_0x2ff51a['push'](_0x2ff51a['shift']());}}}(_0x18ac,0x2ab2b),function(_0x1aa4c0,_0x338231){const _0x154824=_0x4f1f;typeof exports==_0x154824(0x144)&&typeof module<'u'?_0x338231(exports):typeof define==_0x154824(0x155)&&define[_0x154824(0x16b)]?define(['exports'],_0x338231):(_0x1aa4c0=typeof globalThis<'u'?globalThis:_0x1aa4c0||self,_0x338231(_0x1aa4c0['UniverProPrint']={}));}(this,function(_0x3e96fe){'use strict';const _0x33a526=_0x4f1f;var _0x2d635a=(_0x39b431=>(_0x39b431[_0x33a526(0x162)]='Letter',_0x39b431[_0x33a526(0x14e)]=_0x33a526(0x14e),_0x39b431[_0x33a526(0x13a)]=_0x33a526(0x13a),_0x39b431[_0x33a526(0x145)]='Statement',_0x39b431[_0x33a526(0x150)]=_0x33a526(0x150),_0x39b431[_0x33a526(0x15d)]=_0x33a526(0x15d),_0x39b431['A3']='A3',_0x39b431['A4']='A4',_0x39b431['A5']='A5',_0x39b431['B4']='B4',_0x39b431['B5']='B5',_0x39b431))(_0x2d635a||{}),_0x4597ab=(_0x4d0940=>(_0x4d0940['Portrait']=_0x33a526(0x163),_0x4d0940['Landscape']=_0x33a526(0x167),_0x4d0940))(_0x4597ab||{}),_0x1414be=(_0x331c81=>(_0x331c81[_0x33a526(0x147)]=_0x33a526(0x147),_0x331c81[_0x33a526(0x169)]=_0x33a526(0x169),_0x331c81[_0x33a526(0x158)]=_0x33a526(0x158),_0x331c81[_0x33a526(0x15c)]='FitPage',_0x331c81[_0x33a526(0x154)]=_0x33a526(0x154),_0x331c81))(_0x1414be||{}),_0x547521=(_0x3f0c15=>(_0x3f0c15[_0x33a526(0x166)]=_0x33a526(0x166),_0x3f0c15[_0x33a526(0x139)]=_0x33a526(0x139),_0x3f0c15[_0x33a526(0x142)]=_0x33a526(0x142),_0x3f0c15))(_0x547521||{}),_0x522ff7=(_0x3e8589=>(_0x3e8589[_0x33a526(0x148)]=_0x33a526(0x148),_0x3e8589[_0x33a526(0x138)]=_0x33a526(0x138),_0x3e8589['Wide']=_0x33a526(0x15e),_0x3e8589['None']=_0x33a526(0x13e),_0x3e8589))(_0x522ff7||{});const _0x5d5786={[_0x2d635a['A3']]:{'w':0x463,'h':0x633},[_0x2d635a['A4']]:{'w':0x31a,'h':0x464},[_0x2d635a['A5']]:{'w':0x22f,'h':0x31a},[_0x2d635a['B4']]:{'w':0x3b0,'h':0x540},[_0x2d635a['B5']]:{'w':0x299,'h':0x3b0},[_0x2d635a[_0x33a526(0x150)]]:{'w':0x2b8,'h':0x3f0},[_0x2d635a['Folio']]:{'w':0x330,'h':0x4e0},[_0x2d635a[_0x33a526(0x13a)]]:{'w':0x330,'h':0x540},[_0x2d635a[_0x33a526(0x162)]]:{'w':0x330,'h':0x420},[_0x2d635a[_0x33a526(0x145)]]:{'w':0x210,'h':0x330},[_0x2d635a[_0x33a526(0x14e)]]:{'w':0x420,'h':0x660}},_0x6b0912={[_0x522ff7[_0x33a526(0x148)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x522ff7['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x522ff7[_0x33a526(0x15e)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x522ff7['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x20fa3e='printing-canvas-container',_0x253660=_0x33a526(0x157);function _0x4cb7d9(_0x5b7007,_0x5e748e){const _0x4e6b07=_0x33a526,{w:_0x26b7bb,h:_0x4f289e}=_0x5d5786[_0x5b7007],_0x4b1cf2=_0x5e748e===_0x4597ab[_0x4e6b07(0x163)]?_0x26b7bb:_0x4f289e,_0x5c7993=_0x5e748e===_0x4597ab[_0x4e6b07(0x163)]?_0x4f289e:_0x26b7bb,_0x9002a9=_0x4e6b07(0x149)+_0x4b1cf2+_0x4e6b07(0x168)+_0x5c7993+'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.'+_0x20fa3e+_0x4e6b07(0x164)+_0x20fa3e+_0x4e6b07(0x152)+_0x253660+_0x4e6b07(0x13b)+_0x5c7993+_0x4e6b07(0x13c)+_0x4b1cf2+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',_0x3526f6=document[_0x4e6b07(0x156)](_0x4e6b07(0x14b));return _0x3526f6['innerHTML']=_0x9002a9,_0x3526f6[_0x4e6b07(0x137)]=_0x4e6b07(0x146),_0x3526f6;}_0x3e96fe[_0x33a526(0x143)]=_0x253660,_0x3e96fe[_0x33a526(0x159)]=_0x20fa3e,_0x3e96fe['PaperMarginMap']=_0x6b0912,_0x3e96fe[_0x33a526(0x165)]=_0x5d5786,_0x3e96fe[_0x33a526(0x141)]=_0x547521,_0x3e96fe[_0x33a526(0x15f)]=_0x4597ab,_0x3e96fe[_0x33a526(0x161)]=_0x522ff7,_0x3e96fe[_0x33a526(0x13d)]=_0x2d635a,_0x3e96fe[_0x33a526(0x16a)]=_0x1414be,_0x3e96fe['createPrintStyle']=_0x4cb7d9,Object[_0x33a526(0x14a)](_0x3e96fe,Symbol[_0x33a526(0x136)],{'value':_0x33a526(0x13f)});}));function _0x4f1f(_0x114a5e,_0x18a883){const _0x18ac9e=_0x18ac();return _0x4f1f=function(_0x4f1f43,_0x36537f){_0x4f1f43=_0x4f1f43-0x136;let _0x253261=_0x18ac9e[_0x4f1f43];return _0x253261;},_0x4f1f(_0x114a5e,_0x18a883);}function _0x18ac(){const _0x2890f3=['\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.','96qTGojJ','Custom','function','createElement','printing-canvas','FitHeight','PRINT_CONTAINER_CLASS','1110120QyhmvI','248673etKyTz','FitPage','Folio','Wide','PrintDirection','588213sHaMJQ','PrintPaperMargin','Letter','Portrait',',\x20.','PaperSizePxMap','Start','Landscape','px\x20','FitWidth','PrintScale','amd','70meghwj','toStringTag','className','Narrow','End','Legal','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','PrintPaperSize','None','Module','203266rPWKrO','PrintAlign','Middle','PRINT_CANVAS_CLASS','object','Statement','offline-printing-css','Origin','Normal','\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','defineProperty','style','422395RlvGcd','166818AEsPvR','Tabloid','21PKECWD','Executive','74612IeMGhH'];_0x18ac=function(){return _0x2890f3;};return _0x18ac();}
1
+ (function(_0x10ac31,_0x5f2e3a){const _0x18d6a6=_0x578a,_0x3a5076=_0x10ac31();while(!![]){try{const _0x406c1f=parseInt(_0x18d6a6(0x10c))/0x1+-parseInt(_0x18d6a6(0x10e))/0x2+parseInt(_0x18d6a6(0xe4))/0x3+parseInt(_0x18d6a6(0xf2))/0x4+parseInt(_0x18d6a6(0x10d))/0x5*(parseInt(_0x18d6a6(0xf5))/0x6)+-parseInt(_0x18d6a6(0x106))/0x7+parseInt(_0x18d6a6(0x112))/0x8;if(_0x406c1f===_0x5f2e3a)break;else _0x3a5076['push'](_0x3a5076['shift']());}catch(_0x3b032b){_0x3a5076['push'](_0x3a5076['shift']());}}}(_0x33b6,0x7e5d6),function(_0x31fc53,_0xd6f4){const _0x47495d=_0x578a;typeof exports=='object'&&typeof module<'u'?_0xd6f4(exports):typeof define==_0x47495d(0x100)&&define['amd']?define(['exports'],_0xd6f4):(_0x31fc53=typeof globalThis<'u'?globalThis:_0x31fc53||self,_0xd6f4(_0x31fc53[_0x47495d(0x111)]={}));}(this,function(_0x46f138){'use strict';const _0x28dbb3=_0x578a;var _0x531df4=(_0x1d3a7e=>(_0x1d3a7e[_0x28dbb3(0xfd)]=_0x28dbb3(0xfd),_0x1d3a7e['Tabloid']='Tabloid',_0x1d3a7e['Legal']=_0x28dbb3(0xf1),_0x1d3a7e['Statement']=_0x28dbb3(0xe2),_0x1d3a7e[_0x28dbb3(0xee)]=_0x28dbb3(0xee),_0x1d3a7e['Folio']=_0x28dbb3(0x105),_0x1d3a7e['A3']='A3',_0x1d3a7e['A4']='A4',_0x1d3a7e['A5']='A5',_0x1d3a7e['B4']='B4',_0x1d3a7e['B5']='B5',_0x1d3a7e))(_0x531df4||{}),_0x19fcc7=(_0x3b09ff=>(_0x3b09ff[_0x28dbb3(0xf0)]=_0x28dbb3(0xf0),_0x3b09ff[_0x28dbb3(0xf4)]='Landscape',_0x3b09ff))(_0x19fcc7||{}),_0x584ca4=(_0x2eef10=>(_0x2eef10[_0x28dbb3(0xea)]=_0x28dbb3(0xea),_0x2eef10[_0x28dbb3(0xe7)]=_0x28dbb3(0xe7),_0x2eef10[_0x28dbb3(0x109)]=_0x28dbb3(0x109),_0x2eef10[_0x28dbb3(0xed)]=_0x28dbb3(0xed),_0x2eef10['Custom']=_0x28dbb3(0xe6),_0x2eef10))(_0x584ca4||{}),_0x586a65=(_0x3d2915=>(_0x3d2915[_0x28dbb3(0x108)]=_0x28dbb3(0x108),_0x3d2915[_0x28dbb3(0x102)]=_0x28dbb3(0x102),_0x3d2915[_0x28dbb3(0xf3)]='Middle',_0x3d2915))(_0x586a65||{}),_0x1aea8f=(_0x47504e=>(_0x47504e[_0x28dbb3(0xe8)]=_0x28dbb3(0xe8),_0x47504e['Narrow']='Narrow',_0x47504e[_0x28dbb3(0x10b)]=_0x28dbb3(0x10b),_0x47504e[_0x28dbb3(0xe9)]='None',_0x47504e))(_0x1aea8f||{});const _0x22a40f={[_0x531df4['A3']]:{'w':0x463,'h':0x633},[_0x531df4['A4']]:{'w':0x31a,'h':0x464},[_0x531df4['A5']]:{'w':0x22f,'h':0x31a},[_0x531df4['B4']]:{'w':0x3b0,'h':0x540},[_0x531df4['B5']]:{'w':0x299,'h':0x3b0},[_0x531df4[_0x28dbb3(0xee)]]:{'w':0x2b8,'h':0x3f0},[_0x531df4[_0x28dbb3(0x105)]]:{'w':0x330,'h':0x4e0},[_0x531df4[_0x28dbb3(0xf1)]]:{'w':0x330,'h':0x540},[_0x531df4[_0x28dbb3(0xfd)]]:{'w':0x330,'h':0x420},[_0x531df4[_0x28dbb3(0xe2)]]:{'w':0x210,'h':0x330},[_0x531df4[_0x28dbb3(0xf9)]]:{'w':0x420,'h':0x660}},_0xae9cd8={[_0x1aea8f[_0x28dbb3(0xe8)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x1aea8f[_0x28dbb3(0xe3)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x1aea8f['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x1aea8f[_0x28dbb3(0xe9)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x3dddab='printing-canvas-container',_0x453a18=_0x28dbb3(0xfb);function _0x1c31dc(_0x4e2cbd,_0x3ce437){const _0x527c5e=_0x28dbb3,{w:_0x16fab5,h:_0x1f1dc6}=_0x22a40f[_0x4e2cbd],_0x16e303=_0x3ce437===_0x19fcc7[_0x527c5e(0xf0)]?_0x16fab5:_0x1f1dc6,_0x4536b1=_0x3ce437===_0x19fcc7[_0x527c5e(0xf0)]?_0x1f1dc6:_0x16fab5,_0x3f8bf5='\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'+_0x16e303+'px\x20'+_0x4536b1+'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.'+_0x3dddab+_0x527c5e(0x104)+_0x3dddab+_0x527c5e(0xfe)+_0x453a18+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x4536b1+_0x527c5e(0x103)+_0x16e303+_0x527c5e(0xe1),_0x22f0cd=document[_0x527c5e(0x10f)]('style');return _0x22f0cd[_0x527c5e(0xeb)]=_0x3f8bf5,_0x22f0cd[_0x527c5e(0xff)]=_0x527c5e(0xf7),_0x22f0cd;}_0x46f138[_0x28dbb3(0xfc)]=_0x453a18,_0x46f138['PRINT_CONTAINER_CLASS']=_0x3dddab,_0x46f138[_0x28dbb3(0xf6)]=_0xae9cd8,_0x46f138[_0x28dbb3(0xe5)]=_0x22a40f,_0x46f138[_0x28dbb3(0x110)]=_0x586a65,_0x46f138[_0x28dbb3(0xe0)]=_0x19fcc7,_0x46f138[_0x28dbb3(0xef)]=_0x1aea8f,_0x46f138[_0x28dbb3(0xfa)]=_0x531df4,_0x46f138[_0x28dbb3(0xf8)]=_0x584ca4,_0x46f138[_0x28dbb3(0xec)]=_0x1c31dc,Object[_0x28dbb3(0x107)](_0x46f138,Symbol[_0x28dbb3(0x10a)],{'value':_0x28dbb3(0x101)});}));function _0x578a(_0x43143d,_0x301fae){const _0x33b634=_0x33b6();return _0x578a=function(_0x578a20,_0x12f091){_0x578a20=_0x578a20-0xe0;let _0x509ad9=_0x33b634[_0x578a20];return _0x509ad9;},_0x578a(_0x43143d,_0x301fae);}function _0x33b6(){const _0x59ab89=['Custom','FitWidth','Normal','None','Origin','innerHTML','createPrintStyle','FitPage','Executive','PrintPaperMargin','Portrait','Legal','3243092eqPiHx','Middle','Landscape','42uNuqqm','PaperMarginMap','offline-printing-css','PrintScale','Tabloid','PrintPaperSize','printing-canvas','PRINT_CANVAS_CLASS','Letter','\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.','className','function','Module','End','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20',',\x20.','Folio','6025257kBYVLy','defineProperty','Start','FitHeight','toStringTag','Wide','181882ZpCLaa','225315NvAIsX','1515826essSxZ','createElement','PrintAlign','UniverProPrint','6355352MSEPsI','PrintDirection','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Statement','Narrow','101217sUnRLh','PaperSizePxMap'];_0x33b6=function(){return _0x59ab89;};return _0x33b6();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/print",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "private": false,
5
5
  "description": "Print module for UniverJS",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -43,22 +43,9 @@
43
43
  ],
44
44
  "devDependencies": {
45
45
  "typescript": "^5.7.2",
46
- "vite": "^6.0.3",
46
+ "vite": "^6.0.6",
47
47
  "vitest": "^2.1.8",
48
- "@univerjs-infra/shared": "0.5.2"
49
- },
50
- "space": {
51
- ".": {
52
- "import": "./lib/es/index.js",
53
- "require": "./lib/cjs/index.js",
54
- "types": "./lib/types/index.d.ts"
55
- },
56
- "./*": {
57
- "import": "./lib/es/*",
58
- "require": "./lib/cjs/*",
59
- "types": "./lib/types/index.d.ts"
60
- },
61
- "./lib/*": "./lib/*"
48
+ "@univerjs-infra/shared": "0.5.3"
62
49
  },
63
50
  "scripts": {
64
51
  "test": "vitest run",