@univerjs-pro/print 0.4.0-alpha.2 → 0.4.0-experimental.d7288c0-20241017

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 _0xd83baa=_0x5ebc;function _0x44be(){const _0x5db941=['311867hThTuT','PRINT_CONTAINER_CLASS','offline-printing-css',',\x20.','printing-canvas','Origin','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.','None','Normal','Legal','Narrow','Letter','2194110EisDtM','1279965PaEQVK','\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','PaperMarginMap','createElement','createPrintStyle','PrintPaperMargin','Portrait','End','12DBtGan','Wide','1976068ebtmCD','15905186tiwHlP','Tabloid','className','Middle','3287997NQImqJ','FitWidth','Landscape','5zYdOCj','10QRomDX','printing-canvas-container','defineProperty','FitHeight','PRINT_CANVAS_CLASS','\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','Folio','Statement','8BXjkPa','Start','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','995939DXVEFS','style','toStringTag','PaperSizePxMap','Custom','Executive','2Pqaoec'];_0x44be=function(){return _0x5db941;};return _0x44be();}(function(_0x338896,_0x4c59f0){const _0x1016af=_0x5ebc,_0x53a54c=_0x338896();while(!![]){try{const _0x472a62=parseInt(_0x1016af(0x9c))/0x1*(parseInt(_0x1016af(0x9b))/0x2)+-parseInt(_0x1016af(0x76))/0x3+-parseInt(_0x1016af(0x81))/0x4+-parseInt(_0x1016af(0x89))/0x5*(parseInt(_0x1016af(0x75))/0x6)+-parseInt(_0x1016af(0x95))/0x7*(-parseInt(_0x1016af(0x92))/0x8)+-parseInt(_0x1016af(0x86))/0x9*(parseInt(_0x1016af(0x8a))/0xa)+parseInt(_0x1016af(0x82))/0xb*(parseInt(_0x1016af(0x7f))/0xc);if(_0x472a62===_0x4c59f0)break;else _0x53a54c['push'](_0x53a54c['shift']());}catch(_0x2e7de5){_0x53a54c['push'](_0x53a54c['shift']());}}}(_0x44be,0x3ca3c));Object[_0xd83baa(0x8c)](exports,Symbol[_0xd83baa(0x97)],{'value':'Module'});var e=(_0xbd8739=>(_0xbd8739[_0xd83baa(0x74)]=_0xd83baa(0x74),_0xbd8739[_0xd83baa(0x83)]=_0xd83baa(0x83),_0xbd8739[_0xd83baa(0xa5)]=_0xd83baa(0xa5),_0xbd8739[_0xd83baa(0x91)]=_0xd83baa(0x91),_0xbd8739[_0xd83baa(0x9a)]='Executive',_0xbd8739['Folio']=_0xd83baa(0x90),_0xbd8739['A3']='A3',_0xbd8739['A4']='A4',_0xbd8739['A5']='A5',_0xbd8739['B4']='B4',_0xbd8739['B5']='B5',_0xbd8739))(e||{}),i=(_0x48b006=>(_0x48b006[_0xd83baa(0x7d)]=_0xd83baa(0x7d),_0x48b006[_0xd83baa(0x88)]='Landscape',_0x48b006))(i||{}),c=(_0x2cf141=>(_0x2cf141[_0xd83baa(0xa1)]=_0xd83baa(0xa1),_0x2cf141[_0xd83baa(0x87)]=_0xd83baa(0x87),_0x2cf141[_0xd83baa(0x8d)]=_0xd83baa(0x8d),_0x2cf141['FitPage']='FitPage',_0x2cf141[_0xd83baa(0x99)]=_0xd83baa(0x99),_0x2cf141))(c||{}),g=(_0x1f9013=>(_0x1f9013['Start']=_0xd83baa(0x93),_0x1f9013[_0xd83baa(0x7e)]=_0xd83baa(0x7e),_0x1f9013[_0xd83baa(0x85)]=_0xd83baa(0x85),_0x1f9013))(g||{}),o=(_0x15ebf2=>(_0x15ebf2[_0xd83baa(0xa4)]=_0xd83baa(0xa4),_0x15ebf2[_0xd83baa(0xa6)]=_0xd83baa(0xa6),_0x15ebf2[_0xd83baa(0x80)]=_0xd83baa(0x80),_0x15ebf2['None']='None',_0x15ebf2))(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[_0xd83baa(0x9a)]]:{'w':0x2b8,'h':0x3f0},[e[_0xd83baa(0x90)]]:{'w':0x330,'h':0x4e0},[e['Legal']]:{'w':0x330,'h':0x540},[e[_0xd83baa(0x74)]]:{'w':0x330,'h':0x420},[e[_0xd83baa(0x91)]]:{'w':0x210,'h':0x330},[e[_0xd83baa(0x83)]]:{'w':0x420,'h':0x660}},N={[o[_0xd83baa(0xa4)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0xd83baa(0xa6)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0xd83baa(0x80)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0xd83baa(0xa3)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0xd83baa(0x8b),p=_0xd83baa(0xa0);function _0x5ebc(_0x448393,_0x24ce7c){const _0x44be26=_0x44be();return _0x5ebc=function(_0x5ebc33,_0x524a11){_0x5ebc33=_0x5ebc33-0x74;let _0x4c806f=_0x44be26[_0x5ebc33];return _0x4c806f;},_0x5ebc(_0x448393,_0x24ce7c);}function A(_0x4b6d7a,_0x5b864f){const _0x15af59=_0xd83baa,{w:_0x25703d,h:_0x352fc1}=m[_0x4b6d7a],_0x165181=_0x5b864f===i[_0x15af59(0x7d)]?_0x25703d:_0x352fc1,_0x2211e3=_0x5b864f===i[_0x15af59(0x7d)]?_0x352fc1:_0x25703d,_0x25ce06=_0x15af59(0x8f)+_0x165181+'px\x20'+_0x2211e3+_0x15af59(0xa2)+n+_0x15af59(0x9f)+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+_0x15af59(0x77)+_0x2211e3+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x165181+_0x15af59(0x94),_0x5f042e=document[_0x15af59(0x7a)](_0x15af59(0x96));return _0x5f042e['innerHTML']=_0x25ce06,_0x5f042e[_0x15af59(0x84)]=_0x15af59(0x9e),_0x5f042e;}exports[_0xd83baa(0x8e)]=p,exports[_0xd83baa(0x9d)]=n,exports[_0xd83baa(0x79)]=N,exports[_0xd83baa(0x98)]=m,exports['PrintAlign']=g,exports['PrintDirection']=i,exports[_0xd83baa(0x7c)]=o,exports['PrintPaperSize']=e,exports[_0xd83baa(0x78)]=c,exports[_0xd83baa(0x7b)]=A;
1
+ 'use strict';const _0x48c518=_0x2342;(function(_0x2d5b85,_0x22ae88){const _0x280641=_0x2342,_0x4987a8=_0x2d5b85();while(!![]){try{const _0x1520ec=-parseInt(_0x280641(0x16f))/0x1*(-parseInt(_0x280641(0x16b))/0x2)+parseInt(_0x280641(0x16a))/0x3+-parseInt(_0x280641(0x17b))/0x4+parseInt(_0x280641(0x16d))/0x5+-parseInt(_0x280641(0x190))/0x6+-parseInt(_0x280641(0x161))/0x7+parseInt(_0x280641(0x17a))/0x8;if(_0x1520ec===_0x22ae88)break;else _0x4987a8['push'](_0x4987a8['shift']());}catch(_0x57d146){_0x4987a8['push'](_0x4987a8['shift']());}}}(_0x3dfa,0x38817));function _0x2342(_0x182a8c,_0x2b3ae6){const _0x3dfa80=_0x3dfa();return _0x2342=function(_0x23427c,_0x4374a2){_0x23427c=_0x23427c-0x161;let _0x460161=_0x3dfa80[_0x23427c];return _0x460161;},_0x2342(_0x182a8c,_0x2b3ae6);}function _0x3dfa(){const _0x534770=['style','Origin','Statement','None','offline-printing-css','px\x20','Legal','1211280jpgkxb','4GmaMHO','Narrow','420410QejdJJ','className','139892LlELnJ','PrintDirection','FitWidth','\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.','FitHeight','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','PrintPaperMargin','Landscape','Portrait','PaperSizePxMap','Custom','1329776vzqINd','734092MayBgR','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.','Letter','PrintAlign','PrintScale','Normal','innerHTML','Module','Start','createPrintStyle','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','toStringTag','Wide','printing-canvas-container','End',',\x20.','PrintPaperSize','Executive','Folio','\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','1129908GQhhmY','Tabloid','PaperMarginMap','2313920VutOcU','FitPage'];_0x3dfa=function(){return _0x534770;};return _0x3dfa();}Object['defineProperty'](exports,Symbol[_0x48c518(0x187)],{'value':_0x48c518(0x183)});var e=(_0x194db5=>(_0x194db5[_0x48c518(0x17e)]='Letter',_0x194db5[_0x48c518(0x191)]=_0x48c518(0x191),_0x194db5['Legal']=_0x48c518(0x169),_0x194db5[_0x48c518(0x165)]=_0x48c518(0x165),_0x194db5[_0x48c518(0x18d)]=_0x48c518(0x18d),_0x194db5[_0x48c518(0x18e)]='Folio',_0x194db5['A3']='A3',_0x194db5['A4']='A4',_0x194db5['A5']='A5',_0x194db5['B4']='B4',_0x194db5['B5']='B5',_0x194db5))(e||{}),i=(_0x27a98c=>(_0x27a98c[_0x48c518(0x177)]=_0x48c518(0x177),_0x27a98c['Landscape']=_0x48c518(0x176),_0x27a98c))(i||{}),c=(_0x133933=>(_0x133933[_0x48c518(0x164)]=_0x48c518(0x164),_0x133933[_0x48c518(0x171)]='FitWidth',_0x133933['FitHeight']=_0x48c518(0x173),_0x133933[_0x48c518(0x162)]='FitPage',_0x133933[_0x48c518(0x179)]=_0x48c518(0x179),_0x133933))(c||{}),g=(_0x6e193f=>(_0x6e193f[_0x48c518(0x184)]=_0x48c518(0x184),_0x6e193f['End']=_0x48c518(0x18a),_0x6e193f['Middle']='Middle',_0x6e193f))(g||{}),o=(_0x5a5c8c=>(_0x5a5c8c['Normal']='Normal',_0x5a5c8c[_0x48c518(0x16c)]=_0x48c518(0x16c),_0x5a5c8c[_0x48c518(0x188)]=_0x48c518(0x188),_0x5a5c8c[_0x48c518(0x166)]=_0x48c518(0x166),_0x5a5c8c))(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[_0x48c518(0x18d)]]:{'w':0x2b8,'h':0x3f0},[e[_0x48c518(0x18e)]]:{'w':0x330,'h':0x4e0},[e[_0x48c518(0x169)]]:{'w':0x330,'h':0x540},[e['Letter']]:{'w':0x330,'h':0x420},[e[_0x48c518(0x165)]]:{'w':0x210,'h':0x330},[e[_0x48c518(0x191)]]:{'w':0x420,'h':0x660}},N={[o[_0x48c518(0x181)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x48c518(0x16c)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x48c518(0x166)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x48c518(0x189),p=_0x48c518(0x17c);function A(_0x1948d8,_0x1970ef){const _0x3c2b7a=_0x48c518,{w:_0x59b177,h:_0x38d352}=m[_0x1948d8],_0x2368e=_0x1970ef===i[_0x3c2b7a(0x177)]?_0x59b177:_0x38d352,_0x52eddf=_0x1970ef===i[_0x3c2b7a(0x177)]?_0x38d352:_0x59b177,_0x117e2f=_0x3c2b7a(0x18f)+_0x2368e+_0x3c2b7a(0x168)+_0x52eddf+_0x3c2b7a(0x17d)+n+_0x3c2b7a(0x18b)+n+_0x3c2b7a(0x172)+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'+_0x52eddf+_0x3c2b7a(0x186)+_0x2368e+_0x3c2b7a(0x174),_0x130eb8=document['createElement'](_0x3c2b7a(0x163));return _0x130eb8[_0x3c2b7a(0x182)]=_0x117e2f,_0x130eb8[_0x3c2b7a(0x16e)]=_0x3c2b7a(0x167),_0x130eb8;}exports['PRINT_CANVAS_CLASS']=p,exports['PRINT_CONTAINER_CLASS']=n,exports[_0x48c518(0x192)]=N,exports[_0x48c518(0x178)]=m,exports[_0x48c518(0x17f)]=g,exports[_0x48c518(0x170)]=i,exports[_0x48c518(0x175)]=o,exports[_0x48c518(0x18c)]=e,exports[_0x48c518(0x180)]=c,exports[_0x48c518(0x185)]=A;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x25ae55=_0x5da8;(function(_0x3ceeae,_0x59631d){const _0x7a2663=_0x5da8,_0x4acca6=_0x3ceeae();while(!![]){try{const _0x427be8=-parseInt(_0x7a2663(0xcb))/0x1*(-parseInt(_0x7a2663(0xc4))/0x2)+parseInt(_0x7a2663(0xd0))/0x3*(-parseInt(_0x7a2663(0xd6))/0x4)+-parseInt(_0x7a2663(0xba))/0x5*(parseInt(_0x7a2663(0xcf))/0x6)+-parseInt(_0x7a2663(0xc6))/0x7+-parseInt(_0x7a2663(0xd3))/0x8+-parseInt(_0x7a2663(0xe0))/0x9*(parseInt(_0x7a2663(0xd4))/0xa)+parseInt(_0x7a2663(0xbe))/0xb;if(_0x427be8===_0x59631d)break;else _0x4acca6['push'](_0x4acca6['shift']());}catch(_0x2b98de){_0x4acca6['push'](_0x4acca6['shift']());}}}(_0xc088,0xc50be));var o=(_0x13f6b2=>(_0x13f6b2[_0x25ae55(0xd7)]=_0x25ae55(0xd7),_0x13f6b2[_0x25ae55(0xc8)]=_0x25ae55(0xc8),_0x13f6b2[_0x25ae55(0xd1)]='Legal',_0x13f6b2[_0x25ae55(0xbb)]=_0x25ae55(0xbb),_0x13f6b2[_0x25ae55(0xc0)]=_0x25ae55(0xc0),_0x13f6b2[_0x25ae55(0xca)]=_0x25ae55(0xca),_0x13f6b2['A3']='A3',_0x13f6b2['A4']='A4',_0x13f6b2['A5']='A5',_0x13f6b2['B4']='B4',_0x13f6b2['B5']='B5',_0x13f6b2))(o||{}),i=(_0x136976=>(_0x136976[_0x25ae55(0xe3)]=_0x25ae55(0xe3),_0x136976[_0x25ae55(0xe4)]=_0x25ae55(0xe4),_0x136976))(i||{}),w=(_0x3b2b9f=>(_0x3b2b9f[_0x25ae55(0xc9)]=_0x25ae55(0xc9),_0x3b2b9f[_0x25ae55(0xd9)]=_0x25ae55(0xd9),_0x3b2b9f[_0x25ae55(0xcd)]=_0x25ae55(0xcd),_0x3b2b9f[_0x25ae55(0xc5)]=_0x25ae55(0xc5),_0x3b2b9f['Custom']=_0x25ae55(0xdd),_0x3b2b9f))(w||{}),m=(_0x50b4bb=>(_0x50b4bb[_0x25ae55(0xd8)]=_0x25ae55(0xd8),_0x50b4bb['End']=_0x25ae55(0xc2),_0x50b4bb[_0x25ae55(0xcc)]='Middle',_0x50b4bb))(m||{}),e=(_0x34ba20=>(_0x34ba20[_0x25ae55(0xbf)]='Normal',_0x34ba20['Narrow']='Narrow',_0x34ba20[_0x25ae55(0xd5)]='Wide',_0x34ba20['None']=_0x25ae55(0xdf),_0x34ba20))(e||{});function _0xc088(){const _0x3631a0=['Tabloid','Origin','Folio','1XWmyNQ','Middle','FitHeight','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','108DVlTQk','3kHIQdn','Legal','\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.','2125544NQZYYz','79030xshSzI','Wide','897500twhERt','Letter','Start','FitWidth','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.','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','Custom','printing-canvas-container','None','1557jCIQDY','offline-printing-css','createElement','Portrait','Landscape','printing-canvas','196985xTKVKU','Statement',',\x20.','className','36781074PKWYtP','Normal','Executive','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','End','px\x20','2852830guwgbd','FitPage','9776298zgGHlJ','style'];_0xc088=function(){return _0x3631a0;};return _0xc088();}function _0x5da8(_0x1eea06,_0x4027ee){const _0xc088d6=_0xc088();return _0x5da8=function(_0x5da815,_0x2a4552){_0x5da815=_0x5da815-0xb9;let _0x1377f0=_0xc088d6[_0x5da815];return _0x1377f0;},_0x5da8(_0x1eea06,_0x4027ee);}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[_0x25ae55(0xca)]]:{'w':0x330,'h':0x4e0},[o[_0x25ae55(0xd1)]]:{'w':0x330,'h':0x540},[o[_0x25ae55(0xd7)]]:{'w':0x330,'h':0x420},[o[_0x25ae55(0xbb)]]:{'w':0x210,'h':0x330},[o[_0x25ae55(0xc8)]]:{'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['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x25ae55(0xdf)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x25ae55(0xde),p=_0x25ae55(0xb9);function N(_0x544577,_0x2cd393){const _0x28ab84=_0x25ae55,{w:_0x1fb4be,h:_0x24e10f}=g[_0x544577],_0x3884ef=_0x2cd393===i[_0x28ab84(0xe3)]?_0x1fb4be:_0x24e10f,_0x10a225=_0x2cd393===i[_0x28ab84(0xe3)]?_0x24e10f:_0x1fb4be,_0x4a8cf9=_0x28ab84(0xdc)+_0x3884ef+_0x28ab84(0xc3)+_0x10a225+_0x28ab84(0xda)+l+_0x28ab84(0xbc)+l+_0x28ab84(0xd2)+p+_0x28ab84(0xce)+_0x10a225+_0x28ab84(0xc1)+_0x3884ef+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',_0x29f746=document[_0x28ab84(0xe2)](_0x28ab84(0xc7));return _0x29f746[_0x28ab84(0xdb)]=_0x4a8cf9,_0x29f746[_0x28ab84(0xbd)]=_0x28ab84(0xe1),_0x29f746;}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
+ function _0x15f8(_0x5f26bf,_0xa28782){const _0x96d62a=_0x96d6();return _0x15f8=function(_0x15f896,_0x480eeb){_0x15f896=_0x15f896-0xe5;let _0x2a248a=_0x96d62a[_0x15f896];return _0x2a248a;},_0x15f8(_0x5f26bf,_0xa28782);}const _0x380b69=_0x15f8;function _0x96d6(){const _0x407911=['Portrait','Narrow','173495kDckcF','innerHTML','Letter','Normal','780BqTCqS','Custom','End','Tabloid','printing-canvas','offline-printing-css','448MoOpKd','6020146tlgyJM','FitHeight','1401KmYSOW','Origin','px\x20','5034650vuWVME','None','FitWidth','Start','18hdKgTo','554035ebMlqg',',\x20.','\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','Landscape','403604IXNbsH','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Legal','4988928eBWQCU','9fnSwVt','Folio','\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','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','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.','className'];_0x96d6=function(){return _0x407911;};return _0x96d6();}(function(_0x2ae29b,_0x16e701){const _0x26a505=_0x15f8,_0x25ae6f=_0x2ae29b();while(!![]){try{const _0xe67ddf=parseInt(_0x26a505(0x105))/0x1+parseInt(_0x26a505(0xef))/0x2*(-parseInt(_0x26a505(0xf8))/0x3)+parseInt(_0x26a505(0x108))/0x4+parseInt(_0x26a505(0x100))/0x5*(-parseInt(_0x26a505(0xff))/0x6)+parseInt(_0x26a505(0xeb))/0x7*(-parseInt(_0x26a505(0xf5))/0x8)+-parseInt(_0x26a505(0x109))/0x9*(-parseInt(_0x26a505(0xfb))/0xa)+parseInt(_0x26a505(0xf6))/0xb;if(_0xe67ddf===_0x16e701)break;else _0x25ae6f['push'](_0x25ae6f['shift']());}catch(_0x2d1232){_0x25ae6f['push'](_0x25ae6f['shift']());}}}(_0x96d6,0xc3164));var o=(_0x3fd217=>(_0x3fd217['Letter']=_0x380b69(0xed),_0x3fd217[_0x380b69(0xf2)]='Tabloid',_0x3fd217[_0x380b69(0x107)]=_0x380b69(0x107),_0x3fd217['Statement']='Statement',_0x3fd217['Executive']='Executive',_0x3fd217[_0x380b69(0x10a)]=_0x380b69(0x10a),_0x3fd217['A3']='A3',_0x3fd217['A4']='A4',_0x3fd217['A5']='A5',_0x3fd217['B4']='B4',_0x3fd217['B5']='B5',_0x3fd217))(o||{}),i=(_0xad7de=>(_0xad7de[_0x380b69(0xe9)]=_0x380b69(0xe9),_0xad7de[_0x380b69(0x104)]='Landscape',_0xad7de))(i||{}),w=(_0x2f76c6=>(_0x2f76c6['Origin']=_0x380b69(0xf9),_0x2f76c6[_0x380b69(0xfd)]=_0x380b69(0xfd),_0x2f76c6['FitHeight']=_0x380b69(0xf7),_0x2f76c6['FitPage']='FitPage',_0x2f76c6[_0x380b69(0xf0)]=_0x380b69(0xf0),_0x2f76c6))(w||{}),m=(_0x18250a=>(_0x18250a[_0x380b69(0xfe)]=_0x380b69(0xfe),_0x18250a[_0x380b69(0xf1)]='End',_0x18250a['Middle']='Middle',_0x18250a))(m||{}),e=(_0x4b127a=>(_0x4b127a[_0x380b69(0xee)]=_0x380b69(0xee),_0x4b127a['Narrow']=_0x380b69(0xea),_0x4b127a[_0x380b69(0x103)]=_0x380b69(0x103),_0x4b127a[_0x380b69(0xfc)]='None',_0x4b127a))(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[_0x380b69(0x10a)]]:{'w':0x330,'h':0x4e0},[o['Legal']]:{'w':0x330,'h':0x540},[o['Letter']]:{'w':0x330,'h':0x420},[o['Statement']]:{'w':0x210,'h':0x330},[o[_0x380b69(0xf2)]]:{'w':0x420,'h':0x660}},v={[e[_0x380b69(0xee)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x380b69(0xea)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x380b69(0xfc)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l='printing-canvas-container',p=_0x380b69(0xf3);function N(_0x16e74e,_0x24d6ad){const _0x1719e3=_0x380b69,{w:_0x20fb5a,h:_0x30df3d}=g[_0x16e74e],_0x1a3bba=_0x24d6ad===i[_0x1719e3(0xe9)]?_0x20fb5a:_0x30df3d,_0x10e9ff=_0x24d6ad===i[_0x1719e3(0xe9)]?_0x30df3d:_0x20fb5a,_0x19a6e6=_0x1719e3(0xe5)+_0x1a3bba+_0x1719e3(0xfa)+_0x10e9ff+_0x1719e3(0xe7)+l+_0x1719e3(0x101)+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+_0x1719e3(0x102)+_0x10e9ff+_0x1719e3(0x106)+_0x1a3bba+_0x1719e3(0xe6),_0x24bd5f=document['createElement']('style');return _0x24bd5f[_0x1719e3(0xec)]=_0x19a6e6,_0x24bd5f[_0x1719e3(0xe8)]=_0x1719e3(0xf4),_0x24bd5f;}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 _0x1148(){const _0xca2fbd=['toStringTag','702970CsZnOG','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','142602arjZQn','9fXCwTa','3810813EbveHT','Narrow','createPrintStyle','style','None','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','FitWidth','\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.','PRINT_CANVAS_CLASS','786110UvBUDT','4cMgXIL','exports','PrintScale','Tabloid','Custom','Normal','Executive','offline-printing-css','Statement','PaperMarginMap','44ofCpDY','Module','className','56wzTQQC','printing-canvas','Legal','Middle','FitHeight','PrintDirection','FitPage','Origin','End','PrintPaperSize','Letter','9586780KjlKTB','873729TamMhc',',\x20.','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','UniverPrint','object','function','printing-canvas-container','PrintAlign','px\x20','Wide','amd','Landscape','Start','946554WuyzPT','Portrait','createElement','Folio','innerHTML'];_0x1148=function(){return _0xca2fbd;};return _0x1148();}function _0x35cc(_0x63f88e,_0x1dc1eb){const _0x11489f=_0x1148();return _0x35cc=function(_0x35ccfd,_0x1f5470){_0x35ccfd=_0x35ccfd-0x1e0;let _0x3cb752=_0x11489f[_0x35ccfd];return _0x3cb752;},_0x35cc(_0x63f88e,_0x1dc1eb);}(function(_0x10f4d8,_0x1662aa){const _0x12ef4a=_0x35cc,_0x2e9f11=_0x10f4d8();while(!![]){try{const _0xf4fb2=-parseInt(_0x12ef4a(0x1ee))/0x1*(-parseInt(_0x12ef4a(0x1ed))/0x2)+parseInt(_0x12ef4a(0x1ef))/0x3+parseInt(_0x12ef4a(0x1f9))/0x4*(-parseInt(_0x12ef4a(0x1eb))/0x5)+parseInt(_0x12ef4a(0x1e5))/0x6+-parseInt(_0x12ef4a(0x211))/0x7+-parseInt(_0x12ef4a(0x206))/0x8*(-parseInt(_0x12ef4a(0x212))/0x9)+-parseInt(_0x12ef4a(0x1f8))/0xa*(parseInt(_0x12ef4a(0x203))/0xb);if(_0xf4fb2===_0x1662aa)break;else _0x2e9f11['push'](_0x2e9f11['shift']());}catch(_0x527d8f){_0x2e9f11['push'](_0x2e9f11['shift']());}}}(_0x1148,0xe1c38),function(_0x550c61,_0x446fd7){const _0x57ad9d=_0x35cc;typeof exports==_0x57ad9d(0x216)&&typeof module<'u'?_0x446fd7(exports):typeof define==_0x57ad9d(0x217)&&define[_0x57ad9d(0x1e2)]?define([_0x57ad9d(0x1fa)],_0x446fd7):(_0x550c61=typeof globalThis<'u'?globalThis:_0x550c61||self,_0x446fd7(_0x550c61[_0x57ad9d(0x215)]={}));}(this,function(_0x1b70d5){'use strict';const _0x168404=_0x35cc;var _0x5bfa93=(_0x19564d=>(_0x19564d[_0x168404(0x210)]=_0x168404(0x210),_0x19564d['Tabloid']=_0x168404(0x1fc),_0x19564d['Legal']=_0x168404(0x208),_0x19564d[_0x168404(0x201)]=_0x168404(0x201),_0x19564d[_0x168404(0x1ff)]=_0x168404(0x1ff),_0x19564d[_0x168404(0x1e8)]=_0x168404(0x1e8),_0x19564d['A3']='A3',_0x19564d['A4']='A4',_0x19564d['A5']='A5',_0x19564d['B4']='B4',_0x19564d['B5']='B5',_0x19564d))(_0x5bfa93||{}),_0x176bda=(_0x252e27=>(_0x252e27[_0x168404(0x1e6)]=_0x168404(0x1e6),_0x252e27[_0x168404(0x1e3)]=_0x168404(0x1e3),_0x252e27))(_0x176bda||{}),_0x59062a=(_0x8a905=>(_0x8a905['Origin']=_0x168404(0x20d),_0x8a905['FitWidth']=_0x168404(0x1f5),_0x8a905[_0x168404(0x20a)]=_0x168404(0x20a),_0x8a905[_0x168404(0x20c)]=_0x168404(0x20c),_0x8a905['Custom']=_0x168404(0x1fd),_0x8a905))(_0x59062a||{}),_0x3b2a46=(_0x52ae3e=>(_0x52ae3e[_0x168404(0x1e4)]=_0x168404(0x1e4),_0x52ae3e[_0x168404(0x20e)]=_0x168404(0x20e),_0x52ae3e[_0x168404(0x209)]=_0x168404(0x209),_0x52ae3e))(_0x3b2a46||{}),_0x3426cd=(_0x4376bc=>(_0x4376bc[_0x168404(0x1fe)]=_0x168404(0x1fe),_0x4376bc[_0x168404(0x1f0)]=_0x168404(0x1f0),_0x4376bc['Wide']=_0x168404(0x1e1),_0x4376bc[_0x168404(0x1f3)]=_0x168404(0x1f3),_0x4376bc))(_0x3426cd||{});const _0x1b9eda={[_0x5bfa93['A3']]:{'w':0x463,'h':0x633},[_0x5bfa93['A4']]:{'w':0x31a,'h':0x464},[_0x5bfa93['A5']]:{'w':0x22f,'h':0x31a},[_0x5bfa93['B4']]:{'w':0x3b0,'h':0x540},[_0x5bfa93['B5']]:{'w':0x299,'h':0x3b0},[_0x5bfa93[_0x168404(0x1ff)]]:{'w':0x2b8,'h':0x3f0},[_0x5bfa93[_0x168404(0x1e8)]]:{'w':0x330,'h':0x4e0},[_0x5bfa93[_0x168404(0x208)]]:{'w':0x330,'h':0x540},[_0x5bfa93[_0x168404(0x210)]]:{'w':0x330,'h':0x420},[_0x5bfa93[_0x168404(0x201)]]:{'w':0x210,'h':0x330},[_0x5bfa93['Tabloid']]:{'w':0x420,'h':0x660}},_0x2b480f={[_0x3426cd['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x3426cd[_0x168404(0x1f0)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x3426cd[_0x168404(0x1e1)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x3426cd[_0x168404(0x1f3)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x3647a0=_0x168404(0x218),_0x1f9dbe=_0x168404(0x207);function _0x1d0f43(_0x555efb,_0x2116fe){const _0x25801f=_0x168404,{w:_0x3d765b,h:_0x5b0058}=_0x1b9eda[_0x555efb],_0x1c8a1e=_0x2116fe===_0x176bda[_0x25801f(0x1e6)]?_0x3d765b:_0x5b0058,_0x1daa57=_0x2116fe===_0x176bda[_0x25801f(0x1e6)]?_0x5b0058:_0x3d765b,_0x4666f8='\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'+_0x1c8a1e+_0x25801f(0x1e0)+_0x1daa57+'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.'+_0x3647a0+_0x25801f(0x213)+_0x3647a0+_0x25801f(0x1f6)+_0x1f9dbe+_0x25801f(0x1ec)+_0x1daa57+_0x25801f(0x1f4)+_0x1c8a1e+_0x25801f(0x214),_0x1604d3=document[_0x25801f(0x1e7)](_0x25801f(0x1f2));return _0x1604d3[_0x25801f(0x1e9)]=_0x4666f8,_0x1604d3[_0x25801f(0x205)]=_0x25801f(0x200),_0x1604d3;}_0x1b70d5[_0x168404(0x1f7)]=_0x1f9dbe,_0x1b70d5['PRINT_CONTAINER_CLASS']=_0x3647a0,_0x1b70d5[_0x168404(0x202)]=_0x2b480f,_0x1b70d5['PaperSizePxMap']=_0x1b9eda,_0x1b70d5[_0x168404(0x219)]=_0x3b2a46,_0x1b70d5[_0x168404(0x20b)]=_0x176bda,_0x1b70d5['PrintPaperMargin']=_0x3426cd,_0x1b70d5[_0x168404(0x20f)]=_0x5bfa93,_0x1b70d5[_0x168404(0x1fb)]=_0x59062a,_0x1b70d5[_0x168404(0x1f1)]=_0x1d0f43,Object['defineProperty'](_0x1b70d5,Symbol[_0x168404(0x1ea)],{'value':_0x168404(0x204)});}));
1
+ function _0x5a23(_0x4c8120,_0x4e2858){const _0x5464f8=_0x5464();return _0x5a23=function(_0x5a23ae,_0xee281d){_0x5a23ae=_0x5a23ae-0x187;let _0x22d9d0=_0x5464f8[_0x5a23ae];return _0x22d9d0;},_0x5a23(_0x4c8120,_0x4e2858);}function _0x5464(){const _0x2811bd=['\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.','PrintDirection','Legal','PaperMarginMap','PrintAlign','28mPHrCZ','Letter','FitWidth','Origin','PRINT_CONTAINER_CLASS','Portrait','309043uzmRmp','PrintPaperSize','Wide','2795492XKrmBr','Narrow','printing-canvas','FitHeight','defineProperty','743060ZnXzTi','function','Start','None','className','128010RQTRqF',',\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','exports','printing-canvas-container','offline-printing-css','innerHTML','98601StYjyQ','Executive','FitPage','UniverPrint','px\x20','Statement','toStringTag','Normal','Folio','PrintScale','Landscape','createPrintStyle','End','1680RudlCY','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Tabloid','PRINT_CANVAS_CLASS','style','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.','65QBhjfn','287224yWURzr','Custom','4689amBaJs'];_0x5464=function(){return _0x2811bd;};return _0x5464();}(function(_0x2de35c,_0x3a1460){const _0x583358=_0x5a23,_0x55d6a9=_0x2de35c();while(!![]){try{const _0x4ebf68=parseInt(_0x583358(0x1a3))/0x1+-parseInt(_0x583358(0x195))/0x2+-parseInt(_0x583358(0x1b7))/0x3*(-parseInt(_0x583358(0x19d))/0x4)+-parseInt(_0x583358(0x194))/0x5*(parseInt(_0x583358(0x1b0))/0x6)+parseInt(_0x583358(0x1a6))/0x7+parseInt(_0x583358(0x18e))/0x8*(-parseInt(_0x583358(0x197))/0x9)+-parseInt(_0x583358(0x1ab))/0xa;if(_0x4ebf68===_0x3a1460)break;else _0x55d6a9['push'](_0x55d6a9['shift']());}catch(_0x56113c){_0x55d6a9['push'](_0x55d6a9['shift']());}}}(_0x5464,0x517d9),function(_0x3170a1,_0x81be08){const _0x112483=_0x5a23;typeof exports=='object'&&typeof module<'u'?_0x81be08(exports):typeof define==_0x112483(0x1ac)&&define['amd']?define([_0x112483(0x1b3)],_0x81be08):(_0x3170a1=typeof globalThis<'u'?globalThis:_0x3170a1||self,_0x81be08(_0x3170a1[_0x112483(0x1ba)]={}));}(this,function(_0x28de7c){'use strict';const _0x1c7c50=_0x5a23;var _0x5229c1=(_0x47e6cc=>(_0x47e6cc[_0x1c7c50(0x19e)]=_0x1c7c50(0x19e),_0x47e6cc[_0x1c7c50(0x190)]=_0x1c7c50(0x190),_0x47e6cc[_0x1c7c50(0x19a)]=_0x1c7c50(0x19a),_0x47e6cc[_0x1c7c50(0x1bc)]=_0x1c7c50(0x1bc),_0x47e6cc[_0x1c7c50(0x1b8)]=_0x1c7c50(0x1b8),_0x47e6cc['Folio']=_0x1c7c50(0x189),_0x47e6cc['A3']='A3',_0x47e6cc['A4']='A4',_0x47e6cc['A5']='A5',_0x47e6cc['B4']='B4',_0x47e6cc['B5']='B5',_0x47e6cc))(_0x5229c1||{}),_0x20fabc=(_0x510f37=>(_0x510f37[_0x1c7c50(0x1a2)]=_0x1c7c50(0x1a2),_0x510f37[_0x1c7c50(0x18b)]=_0x1c7c50(0x18b),_0x510f37))(_0x20fabc||{}),_0x356323=(_0x3c1fc5=>(_0x3c1fc5[_0x1c7c50(0x1a0)]=_0x1c7c50(0x1a0),_0x3c1fc5[_0x1c7c50(0x19f)]=_0x1c7c50(0x19f),_0x3c1fc5[_0x1c7c50(0x1a9)]=_0x1c7c50(0x1a9),_0x3c1fc5[_0x1c7c50(0x1b9)]=_0x1c7c50(0x1b9),_0x3c1fc5[_0x1c7c50(0x196)]=_0x1c7c50(0x196),_0x3c1fc5))(_0x356323||{}),_0x4f101f=(_0x211260=>(_0x211260['Start']=_0x1c7c50(0x1ad),_0x211260['End']=_0x1c7c50(0x18d),_0x211260['Middle']='Middle',_0x211260))(_0x4f101f||{}),_0x73c768=(_0x2e2ae8=>(_0x2e2ae8[_0x1c7c50(0x188)]=_0x1c7c50(0x188),_0x2e2ae8[_0x1c7c50(0x1a7)]=_0x1c7c50(0x1a7),_0x2e2ae8['Wide']='Wide',_0x2e2ae8['None']='None',_0x2e2ae8))(_0x73c768||{});const _0x48ab2={[_0x5229c1['A3']]:{'w':0x463,'h':0x633},[_0x5229c1['A4']]:{'w':0x31a,'h':0x464},[_0x5229c1['A5']]:{'w':0x22f,'h':0x31a},[_0x5229c1['B4']]:{'w':0x3b0,'h':0x540},[_0x5229c1['B5']]:{'w':0x299,'h':0x3b0},[_0x5229c1[_0x1c7c50(0x1b8)]]:{'w':0x2b8,'h':0x3f0},[_0x5229c1['Folio']]:{'w':0x330,'h':0x4e0},[_0x5229c1[_0x1c7c50(0x19a)]]:{'w':0x330,'h':0x540},[_0x5229c1[_0x1c7c50(0x19e)]]:{'w':0x330,'h':0x420},[_0x5229c1[_0x1c7c50(0x1bc)]]:{'w':0x210,'h':0x330},[_0x5229c1[_0x1c7c50(0x190)]]:{'w':0x420,'h':0x660}},_0x366fa5={[_0x73c768['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x73c768[_0x1c7c50(0x1a7)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x73c768[_0x1c7c50(0x1a5)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x73c768[_0x1c7c50(0x1ae)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x578398=_0x1c7c50(0x1b4),_0x31ec84=_0x1c7c50(0x1a8);function _0x4f6300(_0x5d56fa,_0xcf456d){const _0x387d57=_0x1c7c50,{w:_0x4276ff,h:_0x1cfcb7}=_0x48ab2[_0x5d56fa],_0x58c928=_0xcf456d===_0x20fabc[_0x387d57(0x1a2)]?_0x4276ff:_0x1cfcb7,_0x19a5f1=_0xcf456d===_0x20fabc['Portrait']?_0x1cfcb7:_0x4276ff,_0x413b87=_0x387d57(0x1b2)+_0x58c928+_0x387d57(0x1bb)+_0x19a5f1+_0x387d57(0x193)+_0x578398+_0x387d57(0x1b1)+_0x578398+_0x387d57(0x198)+_0x31ec84+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x19a5f1+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x58c928+_0x387d57(0x18f),_0x9e7b39=document['createElement'](_0x387d57(0x192));return _0x9e7b39[_0x387d57(0x1b6)]=_0x413b87,_0x9e7b39[_0x387d57(0x1af)]=_0x387d57(0x1b5),_0x9e7b39;}_0x28de7c[_0x1c7c50(0x191)]=_0x31ec84,_0x28de7c[_0x1c7c50(0x1a1)]=_0x578398,_0x28de7c[_0x1c7c50(0x19b)]=_0x366fa5,_0x28de7c['PaperSizePxMap']=_0x48ab2,_0x28de7c[_0x1c7c50(0x19c)]=_0x4f101f,_0x28de7c[_0x1c7c50(0x199)]=_0x20fabc,_0x28de7c['PrintPaperMargin']=_0x73c768,_0x28de7c[_0x1c7c50(0x1a4)]=_0x5229c1,_0x28de7c[_0x1c7c50(0x18a)]=_0x356323,_0x28de7c[_0x1c7c50(0x18c)]=_0x4f6300,Object[_0x1c7c50(0x1aa)](_0x28de7c,Symbol[_0x1c7c50(0x187)],{'value':'Module'});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/print",
3
- "version": "0.4.0-alpha.2",
3
+ "version": "0.4.0-experimental.d7288c0-20241017",
4
4
  "private": false,
5
5
  "description": "Print module for UniverJS",
6
6
  "author": "DreamNum <developer@univer.ai>",