@univerjs-pro/print 0.10.12 → 0.10.13

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 _0x589864=_0x14df;(function(_0x57a6c4,_0x2c7505){const _0xc40dc4=_0x14df,_0x3c3cb9=_0x57a6c4();while(!![]){try{const _0x59cbd8=parseInt(_0xc40dc4(0x164))/0x1+-parseInt(_0xc40dc4(0x16a))/0x2*(-parseInt(_0xc40dc4(0x154))/0x3)+-parseInt(_0xc40dc4(0x170))/0x4+parseInt(_0xc40dc4(0x155))/0x5*(-parseInt(_0xc40dc4(0x16c))/0x6)+parseInt(_0xc40dc4(0x162))/0x7*(parseInt(_0xc40dc4(0x151))/0x8)+parseInt(_0xc40dc4(0x167))/0x9+parseInt(_0xc40dc4(0x165))/0xa*(parseInt(_0xc40dc4(0x160))/0xb);if(_0x59cbd8===_0x2c7505)break;else _0x3c3cb9['push'](_0x3c3cb9['shift']());}catch(_0x1b2443){_0x3c3cb9['push'](_0x3c3cb9['shift']());}}}(_0x1540,0xbe816));function _0x14df(_0x535f73,_0x371c32){const _0x154008=_0x1540();return _0x14df=function(_0x14df5c,_0x557849){_0x14df5c=_0x14df5c-0x14b;let _0x36b37f=_0x154008[_0x14df5c];return _0x36b37f;},_0x14df(_0x535f73,_0x371c32);}function _0x1540(){const _0x3b1314=['\x0a\x20\x20\x20\x20.','Landscape','40WgpHTy','innerHTML','createPrintStyle','6uFXLGf','4571375BEvUhU','PaperMarginMap','FitWidth','FitPage','FitHeight','Narrow','defineProperty','Start','Portrait','Normal','printing-canvas','39413nkivPc','offline-printing-css','343385uiNYCe','Middle','660103rKfpEz','490VErgAH','px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','8506872tljmQJ','Origin','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','910786TVZDYD',',\x20.','6AOsZze','End','None','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','4969416dRiugV','Wide','PRINT_CONTAINER_CLASS','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','Custom','createElement','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','style'];_0x1540=function(){return _0x3b1314;};return _0x1540();}Object[_0x589864(0x15b)](exports,Symbol['toStringTag'],{'value':'Module'});var i=(_0x2a50b2=>(_0x2a50b2[_0x589864(0x15d)]='Portrait',_0x2a50b2[_0x589864(0x150)]=_0x589864(0x150),_0x2a50b2))(i||{}),l=(_0xe39af5=>(_0xe39af5[_0x589864(0x168)]=_0x589864(0x168),_0xe39af5[_0x589864(0x157)]='FitWidth',_0xe39af5[_0x589864(0x159)]=_0x589864(0x159),_0xe39af5[_0x589864(0x158)]='FitPage',_0xe39af5[_0x589864(0x14b)]='Custom',_0xe39af5))(l||{}),m=(_0xdb002c=>(_0xdb002c[_0x589864(0x15c)]=_0x589864(0x15c),_0xdb002c['End']=_0x589864(0x16d),_0xdb002c[_0x589864(0x163)]=_0x589864(0x163),_0xdb002c))(m||{}),o=(_0x217016=>(_0x217016['Normal']=_0x589864(0x15e),_0x217016[_0x589864(0x15a)]=_0x589864(0x15a),_0x217016[_0x589864(0x171)]='Wide',_0x217016['None']=_0x589864(0x16e),_0x217016['Custom']=_0x589864(0x14b),_0x217016))(o||{});const g={[o[_0x589864(0x15e)]]:{'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[_0x589864(0x16e)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x589864(0x14b)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r='printing-canvas-container',n=_0x589864(0x15f);function h(_0x259627,_0x23c4f5,_0x50ad96){const _0x261920=_0x589864,_0x3e9fe7=_0x50ad96===i[_0x261920(0x15d)]?_0x259627:_0x23c4f5,_0x196090=_0x50ad96===i[_0x261920(0x15d)]?_0x23c4f5:_0x259627,_0x5b4a8f=_0x261920(0x14f)+n+_0x261920(0x173)+_0x3e9fe7+'px\x20'+_0x196090+_0x261920(0x166)+r+_0x261920(0x16b)+r+_0x261920(0x14d)+n+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x196090+_0x261920(0x16f)+_0x3e9fe7+_0x261920(0x169),_0x227ef1=document[_0x261920(0x14c)](_0x261920(0x14e));return _0x227ef1[_0x261920(0x152)]=_0x5b4a8f,_0x227ef1['className']=_0x261920(0x161),_0x227ef1;}exports['PRINT_CANVAS_CLASS']=n,exports[_0x589864(0x172)]=r,exports[_0x589864(0x156)]=g,exports['PrintAlign']=m,exports['PrintDirection']=i,exports['PrintPaperMargin']=o,exports['PrintScale']=l,exports[_0x589864(0x153)]=h;
1
+ 'use strict';const _0x22ce4e=_0x5600;(function(_0x43b1d4,_0x36f2d1){const _0x5a79db=_0x5600,_0x4657ff=_0x43b1d4();while(!![]){try{const _0x4f860d=parseInt(_0x5a79db(0xbb))/0x1+parseInt(_0x5a79db(0xb0))/0x2*(parseInt(_0x5a79db(0xaa))/0x3)+-parseInt(_0x5a79db(0xc0))/0x4*(-parseInt(_0x5a79db(0xb5))/0x5)+-parseInt(_0x5a79db(0xc3))/0x6*(parseInt(_0x5a79db(0x9f))/0x7)+parseInt(_0x5a79db(0xba))/0x8+parseInt(_0x5a79db(0xb1))/0x9*(parseInt(_0x5a79db(0xa0))/0xa)+-parseInt(_0x5a79db(0xb3))/0xb;if(_0x4f860d===_0x36f2d1)break;else _0x4657ff['push'](_0x4657ff['shift']());}catch(_0x5eb5b0){_0x4657ff['push'](_0x4657ff['shift']());}}}(_0x2f3b,0x91ecb));function _0x5600(_0xcb6db,_0x46285b){const _0x2f3b37=_0x2f3b();return _0x5600=function(_0x560093,_0x4e27cf){_0x560093=_0x560093-0x99;let _0x3d5d2f=_0x2f3b37[_0x560093];return _0x3d5d2f;},_0x5600(_0xcb6db,_0x46285b);}function _0x2f3b(){const _0x3a30d6=['PaperMarginMap','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','Portrait','Narrow','FitWidth','26mMijRj','2615256jaWElR','PrintScale','12958924DswrNq','Normal','695xfdRPK','PRINT_CANVAS_CLASS','End','style','createElement','2681704ZykHqW','801194jMsVVQ','Origin','Wide','className','printing-canvas-container','12332SkSBhW','Middle','FitPage','865398RrMfBI','printing-canvas','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','PrintDirection','None','Landscape','PRINT_CONTAINER_CLASS','innerHTML','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','Start','35DjkNpU','20voGZrm','\x0a\x20\x20\x20\x20.','createPrintStyle','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Custom','offline-printing-css','FitHeight','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','px\x20','Module','80964ctIJcB'];_0x2f3b=function(){return _0x3a30d6;};return _0x2f3b();}Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x22ce4e(0xa9)});var i=(_0x42f2f6=>(_0x42f2f6[_0x22ce4e(0xad)]=_0x22ce4e(0xad),_0x42f2f6[_0x22ce4e(0x9a)]='Landscape',_0x42f2f6))(i||{}),l=(_0x3963ee=>(_0x3963ee[_0x22ce4e(0xbc)]='Origin',_0x3963ee[_0x22ce4e(0xaf)]=_0x22ce4e(0xaf),_0x3963ee[_0x22ce4e(0xa6)]=_0x22ce4e(0xa6),_0x3963ee[_0x22ce4e(0xc2)]='FitPage',_0x3963ee['Custom']=_0x22ce4e(0xa4),_0x3963ee))(l||{}),m=(_0xd24446=>(_0xd24446[_0x22ce4e(0x9e)]=_0x22ce4e(0x9e),_0xd24446[_0x22ce4e(0xb7)]=_0x22ce4e(0xb7),_0xd24446[_0x22ce4e(0xc1)]='Middle',_0xd24446))(m||{}),o=(_0x13ad75=>(_0x13ad75[_0x22ce4e(0xb4)]=_0x22ce4e(0xb4),_0x13ad75[_0x22ce4e(0xae)]=_0x22ce4e(0xae),_0x13ad75[_0x22ce4e(0xbd)]=_0x22ce4e(0xbd),_0x13ad75[_0x22ce4e(0x99)]=_0x22ce4e(0x99),_0x13ad75[_0x22ce4e(0xa4)]=_0x22ce4e(0xa4),_0x13ad75))(o||{});const g={[o[_0x22ce4e(0xb4)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x22ce4e(0xae)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x22ce4e(0xbd)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x22ce4e(0x99)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x22ce4e(0xa4)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x22ce4e(0xbf),n=_0x22ce4e(0xc4);function h(_0x555ac1,_0x1d2964,_0x20acf5){const _0x4739ff=_0x22ce4e,_0x5ce0ac=_0x20acf5===i['Portrait']?_0x555ac1:_0x1d2964,_0x14c989=_0x20acf5===i[_0x4739ff(0xad)]?_0x1d2964:_0x555ac1,_0x274a1d=_0x4739ff(0xa1)+n+_0x4739ff(0xa7)+_0x5ce0ac+_0x4739ff(0xa8)+_0x14c989+'px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.'+r+',\x20.'+r+_0x4739ff(0xac)+n+_0x4739ff(0xc5)+_0x14c989+_0x4739ff(0xa3)+_0x5ce0ac+_0x4739ff(0x9d),_0x196c44=document[_0x4739ff(0xb9)](_0x4739ff(0xb8));return _0x196c44[_0x4739ff(0x9c)]=_0x274a1d,_0x196c44[_0x4739ff(0xbe)]=_0x4739ff(0xa5),_0x196c44;}exports[_0x22ce4e(0xb6)]=n,exports[_0x22ce4e(0x9b)]=r,exports[_0x22ce4e(0xab)]=g,exports['PrintAlign']=m,exports[_0x22ce4e(0xc6)]=i,exports['PrintPaperMargin']=o,exports[_0x22ce4e(0xb2)]=l,exports[_0x22ce4e(0xa2)]=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- function _0x27ab(_0x4ab19e,_0x3cb57b){const _0x53bfcb=_0x53bf();return _0x27ab=function(_0x27ab62,_0x44f18a){_0x27ab62=_0x27ab62-0x18f;let _0x3d2189=_0x53bfcb[_0x27ab62];return _0x3d2189;},_0x27ab(_0x4ab19e,_0x3cb57b);}const _0x2357e2=_0x27ab;function _0x53bf(){const _0x1d8b2b=['Landscape','Portrait','Normal','20EkfpfT','printing-canvas','1405422SkKoIF','None','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','offline-printing-css','Narrow','Start','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','Middle','Wide','1470131fBHbfF','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','28279170ywdKAy','100653GTNqFH','2662004chGwVh','Custom','px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','8177301WOlIez','style','FitWidth','24hPfNGn','createElement','20udUcCh','px\x20',',\x20.','End','Origin','FitPage','className','FitHeight','1025103UoZHgT','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','printing-canvas-container','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}'];_0x53bf=function(){return _0x1d8b2b;};return _0x53bf();}(function(_0x48cf00,_0x403a8a){const _0xfb204b=_0x27ab,_0xebe6e8=_0x48cf00();while(!![]){try{const _0x3f4cbb=-parseInt(_0xfb204b(0x1ad))/0x1+parseInt(_0xfb204b(0x1b1))/0x2+parseInt(_0xfb204b(0x19b))/0x3*(-parseInt(_0xfb204b(0x193))/0x4)+-parseInt(_0xfb204b(0x1a2))/0x5*(parseInt(_0xfb204b(0x1a4))/0x6)+parseInt(_0xfb204b(0x1b0))/0x7*(-parseInt(_0xfb204b(0x191))/0x8)+parseInt(_0xfb204b(0x1b4))/0x9+parseInt(_0xfb204b(0x1af))/0xa;if(_0x3f4cbb===_0x403a8a)break;else _0xebe6e8['push'](_0xebe6e8['shift']());}catch(_0x367297){_0xebe6e8['push'](_0xebe6e8['shift']());}}}(_0x53bf,0xdddf3));var e=(_0x5e11ef=>(_0x5e11ef[_0x2357e2(0x1a0)]='Portrait',_0x5e11ef[_0x2357e2(0x19f)]=_0x2357e2(0x19f),_0x5e11ef))(e||{}),h=(_0x54f32d=>(_0x54f32d[_0x2357e2(0x197)]=_0x2357e2(0x197),_0x54f32d[_0x2357e2(0x190)]=_0x2357e2(0x190),_0x54f32d[_0x2357e2(0x19a)]='FitHeight',_0x54f32d[_0x2357e2(0x198)]=_0x2357e2(0x198),_0x54f32d[_0x2357e2(0x1b2)]=_0x2357e2(0x1b2),_0x54f32d))(h||{}),l=(_0x400aa5=>(_0x400aa5['Start']=_0x2357e2(0x1a9),_0x400aa5[_0x2357e2(0x196)]=_0x2357e2(0x196),_0x400aa5[_0x2357e2(0x1ab)]=_0x2357e2(0x1ab),_0x400aa5))(l||{}),o=(_0x35b252=>(_0x35b252[_0x2357e2(0x1a1)]=_0x2357e2(0x1a1),_0x35b252['Narrow']=_0x2357e2(0x1a8),_0x35b252[_0x2357e2(0x1ac)]=_0x2357e2(0x1ac),_0x35b252[_0x2357e2(0x1a5)]=_0x2357e2(0x1a5),_0x35b252[_0x2357e2(0x1b2)]=_0x2357e2(0x1b2),_0x35b252))(o||{});const c={[o['Normal']]:{'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['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x2357e2(0x1b2)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x2357e2(0x19d),d=_0x2357e2(0x1a3);function g(_0x7e7f55,_0x420de3,_0x4891a3){const _0x43f548=_0x2357e2,_0x800ca7=_0x4891a3===e[_0x43f548(0x1a0)]?_0x7e7f55:_0x420de3,_0x70856d=_0x4891a3===e[_0x43f548(0x1a0)]?_0x420de3:_0x7e7f55,_0x5a58ff='\x0a\x20\x20\x20\x20.'+d+_0x43f548(0x1aa)+_0x800ca7+_0x43f548(0x194)+_0x70856d+_0x43f548(0x1b3)+p+_0x43f548(0x195)+p+_0x43f548(0x1ae)+d+_0x43f548(0x1a6)+_0x70856d+_0x43f548(0x19c)+_0x800ca7+_0x43f548(0x19e),_0x21bcbc=document[_0x43f548(0x192)](_0x43f548(0x18f));return _0x21bcbc['innerHTML']=_0x5a58ff,_0x21bcbc[_0x43f548(0x199)]=_0x43f548(0x1a7),_0x21bcbc;}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,l as PrintAlign,e as PrintDirection,o as PrintPaperMargin,h as PrintScale,g as createPrintStyle};
1
+ function _0x2f25(_0x576a28,_0x27a4b3){const _0x468fa8=_0x468f();return _0x2f25=function(_0x2f2530,_0x333e71){_0x2f2530=_0x2f2530-0xfc;let _0x5a54a4=_0x468fa8[_0x2f2530];return _0x5a54a4;},_0x2f25(_0x576a28,_0x27a4b3);}const _0x5e3dfb=_0x2f25;(function(_0x63374f,_0xc4e60a){const _0x1a811d=_0x2f25,_0x5eaeb8=_0x63374f();while(!![]){try{const _0x3a5c1a=-parseInt(_0x1a811d(0x106))/0x1*(-parseInt(_0x1a811d(0x118))/0x2)+parseInt(_0x1a811d(0x10d))/0x3*(-parseInt(_0x1a811d(0x10f))/0x4)+-parseInt(_0x1a811d(0x108))/0x5+-parseInt(_0x1a811d(0x107))/0x6+-parseInt(_0x1a811d(0x116))/0x7+-parseInt(_0x1a811d(0x104))/0x8*(-parseInt(_0x1a811d(0x119))/0x9)+parseInt(_0x1a811d(0xfc))/0xa;if(_0x3a5c1a===_0xc4e60a)break;else _0x5eaeb8['push'](_0x5eaeb8['shift']());}catch(_0x22f50f){_0x5eaeb8['push'](_0x5eaeb8['shift']());}}}(_0x468f,0x80986));var e=(_0x31b8cf=>(_0x31b8cf['Portrait']=_0x5e3dfb(0x103),_0x31b8cf['Landscape']=_0x5e3dfb(0x11d),_0x31b8cf))(e||{}),h=(_0x4bfbaf=>(_0x4bfbaf['Origin']=_0x5e3dfb(0x113),_0x4bfbaf['FitWidth']=_0x5e3dfb(0x10a),_0x4bfbaf[_0x5e3dfb(0x112)]=_0x5e3dfb(0x112),_0x4bfbaf[_0x5e3dfb(0xff)]=_0x5e3dfb(0xff),_0x4bfbaf['Custom']=_0x5e3dfb(0x100),_0x4bfbaf))(h||{}),l=(_0x1f887e=>(_0x1f887e[_0x5e3dfb(0x114)]='Start',_0x1f887e['End']='End',_0x1f887e[_0x5e3dfb(0xfe)]=_0x5e3dfb(0xfe),_0x1f887e))(l||{}),o=(_0x5bbf53=>(_0x5bbf53[_0x5e3dfb(0x11e)]=_0x5e3dfb(0x11e),_0x5bbf53[_0x5e3dfb(0x101)]=_0x5e3dfb(0x101),_0x5bbf53['Wide']=_0x5e3dfb(0x10c),_0x5bbf53['None']='None',_0x5bbf53[_0x5e3dfb(0x100)]=_0x5e3dfb(0x100),_0x5bbf53))(o||{});const c={[o[_0x5e3dfb(0x11e)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x5e3dfb(0x101)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x5e3dfb(0x10c)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x5e3dfb(0x11a)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x5e3dfb(0x100)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p='printing-canvas-container',d=_0x5e3dfb(0x11b);function g(_0x7e7da0,_0x46924d,_0x4f34fc){const _0x3f96c7=_0x5e3dfb,_0x38d659=_0x4f34fc===e[_0x3f96c7(0x103)]?_0x7e7da0:_0x46924d,_0x347298=_0x4f34fc===e['Portrait']?_0x46924d:_0x7e7da0,_0x292e59=_0x3f96c7(0x11c)+d+_0x3f96c7(0x110)+_0x38d659+_0x3f96c7(0x10e)+_0x347298+_0x3f96c7(0x102)+p+_0x3f96c7(0x111)+p+'\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.'+d+_0x3f96c7(0x10b)+_0x347298+_0x3f96c7(0xfd)+_0x38d659+_0x3f96c7(0x109),_0x532d67=document[_0x3f96c7(0x105)]('style');return _0x532d67['innerHTML']=_0x292e59,_0x532d67[_0x3f96c7(0x117)]=_0x3f96c7(0x115),_0x532d67;}function _0x468f(){const _0x538c95=['Normal','18249260DpgCcv','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Middle','FitPage','Custom','Narrow','px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','Portrait','134024lahiir','createElement','2AyOGSu','2935842UdkXMt','3960160gWHoXE','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','FitWidth','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Wide','56766yvRmMU','px\x20','104qyakiF','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20',',\x20.','FitHeight','Origin','Start','offline-printing-css','4966073jFsmgF','className','950008cBtMTQ','126igaOEs','None','printing-canvas','\x0a\x20\x20\x20\x20.','Landscape'];_0x468f=function(){return _0x538c95;};return _0x468f();}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,l as PrintAlign,e as PrintDirection,o as PrintPaperMargin,h as PrintScale,g as createPrintStyle};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- function _0x27ab(_0x4ab19e,_0x3cb57b){const _0x53bfcb=_0x53bf();return _0x27ab=function(_0x27ab62,_0x44f18a){_0x27ab62=_0x27ab62-0x18f;let _0x3d2189=_0x53bfcb[_0x27ab62];return _0x3d2189;},_0x27ab(_0x4ab19e,_0x3cb57b);}const _0x2357e2=_0x27ab;function _0x53bf(){const _0x1d8b2b=['Landscape','Portrait','Normal','20EkfpfT','printing-canvas','1405422SkKoIF','None','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','offline-printing-css','Narrow','Start','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','Middle','Wide','1470131fBHbfF','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','28279170ywdKAy','100653GTNqFH','2662004chGwVh','Custom','px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','8177301WOlIez','style','FitWidth','24hPfNGn','createElement','20udUcCh','px\x20',',\x20.','End','Origin','FitPage','className','FitHeight','1025103UoZHgT','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','printing-canvas-container','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}'];_0x53bf=function(){return _0x1d8b2b;};return _0x53bf();}(function(_0x48cf00,_0x403a8a){const _0xfb204b=_0x27ab,_0xebe6e8=_0x48cf00();while(!![]){try{const _0x3f4cbb=-parseInt(_0xfb204b(0x1ad))/0x1+parseInt(_0xfb204b(0x1b1))/0x2+parseInt(_0xfb204b(0x19b))/0x3*(-parseInt(_0xfb204b(0x193))/0x4)+-parseInt(_0xfb204b(0x1a2))/0x5*(parseInt(_0xfb204b(0x1a4))/0x6)+parseInt(_0xfb204b(0x1b0))/0x7*(-parseInt(_0xfb204b(0x191))/0x8)+parseInt(_0xfb204b(0x1b4))/0x9+parseInt(_0xfb204b(0x1af))/0xa;if(_0x3f4cbb===_0x403a8a)break;else _0xebe6e8['push'](_0xebe6e8['shift']());}catch(_0x367297){_0xebe6e8['push'](_0xebe6e8['shift']());}}}(_0x53bf,0xdddf3));var e=(_0x5e11ef=>(_0x5e11ef[_0x2357e2(0x1a0)]='Portrait',_0x5e11ef[_0x2357e2(0x19f)]=_0x2357e2(0x19f),_0x5e11ef))(e||{}),h=(_0x54f32d=>(_0x54f32d[_0x2357e2(0x197)]=_0x2357e2(0x197),_0x54f32d[_0x2357e2(0x190)]=_0x2357e2(0x190),_0x54f32d[_0x2357e2(0x19a)]='FitHeight',_0x54f32d[_0x2357e2(0x198)]=_0x2357e2(0x198),_0x54f32d[_0x2357e2(0x1b2)]=_0x2357e2(0x1b2),_0x54f32d))(h||{}),l=(_0x400aa5=>(_0x400aa5['Start']=_0x2357e2(0x1a9),_0x400aa5[_0x2357e2(0x196)]=_0x2357e2(0x196),_0x400aa5[_0x2357e2(0x1ab)]=_0x2357e2(0x1ab),_0x400aa5))(l||{}),o=(_0x35b252=>(_0x35b252[_0x2357e2(0x1a1)]=_0x2357e2(0x1a1),_0x35b252['Narrow']=_0x2357e2(0x1a8),_0x35b252[_0x2357e2(0x1ac)]=_0x2357e2(0x1ac),_0x35b252[_0x2357e2(0x1a5)]=_0x2357e2(0x1a5),_0x35b252[_0x2357e2(0x1b2)]=_0x2357e2(0x1b2),_0x35b252))(o||{});const c={[o['Normal']]:{'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['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x2357e2(0x1b2)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x2357e2(0x19d),d=_0x2357e2(0x1a3);function g(_0x7e7f55,_0x420de3,_0x4891a3){const _0x43f548=_0x2357e2,_0x800ca7=_0x4891a3===e[_0x43f548(0x1a0)]?_0x7e7f55:_0x420de3,_0x70856d=_0x4891a3===e[_0x43f548(0x1a0)]?_0x420de3:_0x7e7f55,_0x5a58ff='\x0a\x20\x20\x20\x20.'+d+_0x43f548(0x1aa)+_0x800ca7+_0x43f548(0x194)+_0x70856d+_0x43f548(0x1b3)+p+_0x43f548(0x195)+p+_0x43f548(0x1ae)+d+_0x43f548(0x1a6)+_0x70856d+_0x43f548(0x19c)+_0x800ca7+_0x43f548(0x19e),_0x21bcbc=document[_0x43f548(0x192)](_0x43f548(0x18f));return _0x21bcbc['innerHTML']=_0x5a58ff,_0x21bcbc[_0x43f548(0x199)]=_0x43f548(0x1a7),_0x21bcbc;}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,l as PrintAlign,e as PrintDirection,o as PrintPaperMargin,h as PrintScale,g as createPrintStyle};
1
+ function _0x2f25(_0x576a28,_0x27a4b3){const _0x468fa8=_0x468f();return _0x2f25=function(_0x2f2530,_0x333e71){_0x2f2530=_0x2f2530-0xfc;let _0x5a54a4=_0x468fa8[_0x2f2530];return _0x5a54a4;},_0x2f25(_0x576a28,_0x27a4b3);}const _0x5e3dfb=_0x2f25;(function(_0x63374f,_0xc4e60a){const _0x1a811d=_0x2f25,_0x5eaeb8=_0x63374f();while(!![]){try{const _0x3a5c1a=-parseInt(_0x1a811d(0x106))/0x1*(-parseInt(_0x1a811d(0x118))/0x2)+parseInt(_0x1a811d(0x10d))/0x3*(-parseInt(_0x1a811d(0x10f))/0x4)+-parseInt(_0x1a811d(0x108))/0x5+-parseInt(_0x1a811d(0x107))/0x6+-parseInt(_0x1a811d(0x116))/0x7+-parseInt(_0x1a811d(0x104))/0x8*(-parseInt(_0x1a811d(0x119))/0x9)+parseInt(_0x1a811d(0xfc))/0xa;if(_0x3a5c1a===_0xc4e60a)break;else _0x5eaeb8['push'](_0x5eaeb8['shift']());}catch(_0x22f50f){_0x5eaeb8['push'](_0x5eaeb8['shift']());}}}(_0x468f,0x80986));var e=(_0x31b8cf=>(_0x31b8cf['Portrait']=_0x5e3dfb(0x103),_0x31b8cf['Landscape']=_0x5e3dfb(0x11d),_0x31b8cf))(e||{}),h=(_0x4bfbaf=>(_0x4bfbaf['Origin']=_0x5e3dfb(0x113),_0x4bfbaf['FitWidth']=_0x5e3dfb(0x10a),_0x4bfbaf[_0x5e3dfb(0x112)]=_0x5e3dfb(0x112),_0x4bfbaf[_0x5e3dfb(0xff)]=_0x5e3dfb(0xff),_0x4bfbaf['Custom']=_0x5e3dfb(0x100),_0x4bfbaf))(h||{}),l=(_0x1f887e=>(_0x1f887e[_0x5e3dfb(0x114)]='Start',_0x1f887e['End']='End',_0x1f887e[_0x5e3dfb(0xfe)]=_0x5e3dfb(0xfe),_0x1f887e))(l||{}),o=(_0x5bbf53=>(_0x5bbf53[_0x5e3dfb(0x11e)]=_0x5e3dfb(0x11e),_0x5bbf53[_0x5e3dfb(0x101)]=_0x5e3dfb(0x101),_0x5bbf53['Wide']=_0x5e3dfb(0x10c),_0x5bbf53['None']='None',_0x5bbf53[_0x5e3dfb(0x100)]=_0x5e3dfb(0x100),_0x5bbf53))(o||{});const c={[o[_0x5e3dfb(0x11e)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x5e3dfb(0x101)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x5e3dfb(0x10c)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x5e3dfb(0x11a)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x5e3dfb(0x100)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p='printing-canvas-container',d=_0x5e3dfb(0x11b);function g(_0x7e7da0,_0x46924d,_0x4f34fc){const _0x3f96c7=_0x5e3dfb,_0x38d659=_0x4f34fc===e[_0x3f96c7(0x103)]?_0x7e7da0:_0x46924d,_0x347298=_0x4f34fc===e['Portrait']?_0x46924d:_0x7e7da0,_0x292e59=_0x3f96c7(0x11c)+d+_0x3f96c7(0x110)+_0x38d659+_0x3f96c7(0x10e)+_0x347298+_0x3f96c7(0x102)+p+_0x3f96c7(0x111)+p+'\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.'+d+_0x3f96c7(0x10b)+_0x347298+_0x3f96c7(0xfd)+_0x38d659+_0x3f96c7(0x109),_0x532d67=document[_0x3f96c7(0x105)]('style');return _0x532d67['innerHTML']=_0x292e59,_0x532d67[_0x3f96c7(0x117)]=_0x3f96c7(0x115),_0x532d67;}function _0x468f(){const _0x538c95=['Normal','18249260DpgCcv','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Middle','FitPage','Custom','Narrow','px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','Portrait','134024lahiir','createElement','2AyOGSu','2935842UdkXMt','3960160gWHoXE','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','FitWidth','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Wide','56766yvRmMU','px\x20','104qyakiF','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20',',\x20.','FitHeight','Origin','Start','offline-printing-css','4966073jFsmgF','className','950008cBtMTQ','126igaOEs','None','printing-canvas','\x0a\x20\x20\x20\x20.','Landscape'];_0x468f=function(){return _0x538c95;};return _0x468f();}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,l as PrintAlign,e as PrintDirection,o as PrintPaperMargin,h as PrintScale,g as createPrintStyle};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x2bbb(){const _0xacc371=['\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','createElement','FitPage','printing-canvas-container','createPrintStyle','Normal','Portrait','PaperMarginMap','Custom','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','function','10755432EnEQLe','Origin','PrintPaperMargin','className','447669NwYOuk','exports','18slOUao','FitWidth','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.',',\x20.','8722020unBatW','Wide','12BDlFKy','toStringTag','FitHeight','PrintDirection','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','1709575qaYnwS','PRINT_CANVAS_CLASS','Narrow','End','Middle','None','53wiKexO','11518912IweIvz','PrintAlign','amd','Module','px\x20','23836nQiYaq','4440905kqQMGE','PrintScale','Start','UniverProPrint','defineProperty','Landscape','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','style'];_0x2bbb=function(){return _0xacc371;};return _0x2bbb();}function _0x123f(_0x4bc692,_0x4167b6){const _0x2bbb26=_0x2bbb();return _0x123f=function(_0x123f7d,_0x1fe31e){_0x123f7d=_0x123f7d-0x1a4;let _0x14c79c=_0x2bbb26[_0x123f7d];return _0x14c79c;},_0x123f(_0x4bc692,_0x4167b6);}(function(_0x676695,_0x3d19f4){const _0x5c7e01=_0x123f,_0x322772=_0x676695();while(!![]){try{const _0x30077b=parseInt(_0x5c7e01(0x1c3))/0x1*(parseInt(_0x5c7e01(0x1c9))/0x2)+parseInt(_0x5c7e01(0x1b0))/0x3*(parseInt(_0x5c7e01(0x1b8))/0x4)+-parseInt(_0x5c7e01(0x1bd))/0x5*(-parseInt(_0x5c7e01(0x1b2))/0x6)+-parseInt(_0x5c7e01(0x1ca))/0x7+parseInt(_0x5c7e01(0x1c4))/0x8+-parseInt(_0x5c7e01(0x1ac))/0x9+-parseInt(_0x5c7e01(0x1b6))/0xa;if(_0x30077b===_0x3d19f4)break;else _0x322772['push'](_0x322772['shift']());}catch(_0x2bb4e3){_0x322772['push'](_0x322772['shift']());}}}(_0x2bbb,0xcde03),function(_0x635441,_0x252355){const _0x4b1846=_0x123f;typeof exports=='object'&&typeof module<'u'?_0x252355(exports):typeof define==_0x4b1846(0x1ab)&&define[_0x4b1846(0x1c6)]?define([_0x4b1846(0x1b1)],_0x252355):(_0x635441=typeof globalThis<'u'?globalThis:_0x635441||self,_0x252355(_0x635441[_0x4b1846(0x1cd)]={}));}(this,function(_0xb93a93){'use strict';const _0x2e3642=_0x123f;var _0x390a8e=(_0xced785=>(_0xced785[_0x2e3642(0x1a7)]='Portrait',_0xced785[_0x2e3642(0x1cf)]='Landscape',_0xced785))(_0x390a8e||{}),_0x2e0389=(_0x2d7d10=>(_0x2d7d10[_0x2e3642(0x1ad)]=_0x2e3642(0x1ad),_0x2d7d10[_0x2e3642(0x1b3)]=_0x2e3642(0x1b3),_0x2d7d10[_0x2e3642(0x1ba)]=_0x2e3642(0x1ba),_0x2d7d10['FitPage']=_0x2e3642(0x1d4),_0x2d7d10[_0x2e3642(0x1a9)]=_0x2e3642(0x1a9),_0x2d7d10))(_0x2e0389||{}),_0x495aa6=(_0x28adec=>(_0x28adec[_0x2e3642(0x1cc)]='Start',_0x28adec[_0x2e3642(0x1c0)]=_0x2e3642(0x1c0),_0x28adec[_0x2e3642(0x1c1)]=_0x2e3642(0x1c1),_0x28adec))(_0x495aa6||{}),_0x1ba74d=(_0x63bd9d=>(_0x63bd9d[_0x2e3642(0x1a6)]=_0x2e3642(0x1a6),_0x63bd9d[_0x2e3642(0x1bf)]='Narrow',_0x63bd9d[_0x2e3642(0x1b7)]=_0x2e3642(0x1b7),_0x63bd9d['None']=_0x2e3642(0x1c2),_0x63bd9d[_0x2e3642(0x1a9)]=_0x2e3642(0x1a9),_0x63bd9d))(_0x1ba74d||{});const _0x447a96={[_0x1ba74d['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x1ba74d[_0x2e3642(0x1bf)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x1ba74d[_0x2e3642(0x1b7)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x1ba74d[_0x2e3642(0x1c2)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x1ba74d[_0x2e3642(0x1a9)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x23fa68=_0x2e3642(0x1a4),_0x1ffbf1='printing-canvas';function _0x208a02(_0x136620,_0x2c1eef,_0x519ffe){const _0x432ee9=_0x2e3642,_0x3fb0e9=_0x519ffe===_0x390a8e[_0x432ee9(0x1a7)]?_0x136620:_0x2c1eef,_0x4eae9a=_0x519ffe===_0x390a8e[_0x432ee9(0x1a7)]?_0x2c1eef:_0x136620,_0x27f16f='\x0a\x20\x20\x20\x20.'+_0x1ffbf1+_0x432ee9(0x1aa)+_0x3fb0e9+_0x432ee9(0x1c8)+_0x4eae9a+'px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.'+_0x23fa68+_0x432ee9(0x1b5)+_0x23fa68+_0x432ee9(0x1b4)+_0x1ffbf1+_0x432ee9(0x1d2)+_0x4eae9a+_0x432ee9(0x1d0)+_0x3fb0e9+_0x432ee9(0x1bc),_0x4eeec9=document[_0x432ee9(0x1d3)](_0x432ee9(0x1d1));return _0x4eeec9['innerHTML']=_0x27f16f,_0x4eeec9[_0x432ee9(0x1af)]='offline-printing-css',_0x4eeec9;}_0xb93a93[_0x2e3642(0x1be)]=_0x1ffbf1,_0xb93a93['PRINT_CONTAINER_CLASS']=_0x23fa68,_0xb93a93[_0x2e3642(0x1a8)]=_0x447a96,_0xb93a93[_0x2e3642(0x1c5)]=_0x495aa6,_0xb93a93[_0x2e3642(0x1bb)]=_0x390a8e,_0xb93a93[_0x2e3642(0x1ae)]=_0x1ba74d,_0xb93a93[_0x2e3642(0x1cb)]=_0x2e0389,_0xb93a93[_0x2e3642(0x1a5)]=_0x208a02,Object[_0x2e3642(0x1ce)](_0xb93a93,Symbol[_0x2e3642(0x1b9)],{'value':_0x2e3642(0x1c7)});}));
1
+ function _0x228c(_0x1bb5d8,_0x5c9481){const _0x16322e=_0x1632();return _0x228c=function(_0x228c20,_0x137ddd){_0x228c20=_0x228c20-0x12e;let _0x36b5e6=_0x16322e[_0x228c20];return _0x36b5e6;},_0x228c(_0x1bb5d8,_0x5c9481);}(function(_0x41f45b,_0xf5d59b){const _0xeee8c2=_0x228c,_0x18b582=_0x41f45b();while(!![]){try{const _0x5cde76=parseInt(_0xeee8c2(0x149))/0x1+parseInt(_0xeee8c2(0x130))/0x2*(parseInt(_0xeee8c2(0x157))/0x3)+parseInt(_0xeee8c2(0x14e))/0x4*(parseInt(_0xeee8c2(0x131))/0x5)+parseInt(_0xeee8c2(0x136))/0x6+parseInt(_0xeee8c2(0x133))/0x7+parseInt(_0xeee8c2(0x14b))/0x8+-parseInt(_0xeee8c2(0x13b))/0x9*(parseInt(_0xeee8c2(0x147))/0xa);if(_0x5cde76===_0xf5d59b)break;else _0x18b582['push'](_0x18b582['shift']());}catch(_0x237e1b){_0x18b582['push'](_0x18b582['shift']());}}}(_0x1632,0x36582),function(_0x1efd51,_0x306f94){const _0x3c1cbe=_0x228c;typeof exports=='object'&&typeof module<'u'?_0x306f94(exports):typeof define==_0x3c1cbe(0x14f)&&define[_0x3c1cbe(0x13a)]?define([_0x3c1cbe(0x13c)],_0x306f94):(_0x1efd51=typeof globalThis<'u'?globalThis:_0x1efd51||self,_0x306f94(_0x1efd51['UniverProPrint']={}));}(this,function(_0x219e81){'use strict';const _0x177437=_0x228c;var _0x487339=(_0x48eb0b=>(_0x48eb0b[_0x177437(0x15c)]=_0x177437(0x15c),_0x48eb0b[_0x177437(0x148)]='Landscape',_0x48eb0b))(_0x487339||{}),_0x49c882=(_0x357002=>(_0x357002[_0x177437(0x154)]=_0x177437(0x154),_0x357002[_0x177437(0x14a)]=_0x177437(0x14a),_0x357002[_0x177437(0x12f)]=_0x177437(0x12f),_0x357002[_0x177437(0x142)]=_0x177437(0x142),_0x357002[_0x177437(0x152)]=_0x177437(0x152),_0x357002))(_0x49c882||{}),_0x1a1bc7=(_0x506ce7=>(_0x506ce7[_0x177437(0x156)]=_0x177437(0x156),_0x506ce7[_0x177437(0x13f)]='End',_0x506ce7[_0x177437(0x135)]=_0x177437(0x135),_0x506ce7))(_0x1a1bc7||{}),_0x63623e=(_0x55b40d=>(_0x55b40d[_0x177437(0x12e)]=_0x177437(0x12e),_0x55b40d[_0x177437(0x151)]=_0x177437(0x151),_0x55b40d[_0x177437(0x145)]=_0x177437(0x145),_0x55b40d[_0x177437(0x144)]=_0x177437(0x144),_0x55b40d[_0x177437(0x152)]=_0x177437(0x152),_0x55b40d))(_0x63623e||{});const _0x43d9e3={[_0x63623e[_0x177437(0x12e)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x63623e['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x63623e['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x63623e['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x63623e['Custom']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x5cdd02=_0x177437(0x132),_0x3d1ba5=_0x177437(0x150);function _0xc61754(_0x5bc88d,_0x3acd3e,_0x1f97dd){const _0x20dbef=_0x177437,_0x4a4305=_0x1f97dd===_0x487339[_0x20dbef(0x15c)]?_0x5bc88d:_0x3acd3e,_0x570311=_0x1f97dd===_0x487339[_0x20dbef(0x15c)]?_0x3acd3e:_0x5bc88d,_0x7c401b=_0x20dbef(0x155)+_0x3d1ba5+_0x20dbef(0x146)+_0x4a4305+_0x20dbef(0x140)+_0x570311+_0x20dbef(0x138)+_0x5cdd02+',\x20.'+_0x5cdd02+_0x20dbef(0x134)+_0x3d1ba5+_0x20dbef(0x137)+_0x570311+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x4a4305+_0x20dbef(0x15a),_0x1eaab8=document[_0x20dbef(0x14c)](_0x20dbef(0x158));return _0x1eaab8[_0x20dbef(0x153)]=_0x7c401b,_0x1eaab8['className']=_0x20dbef(0x141),_0x1eaab8;}_0x219e81[_0x177437(0x15e)]=_0x3d1ba5,_0x219e81[_0x177437(0x13e)]=_0x5cdd02,_0x219e81[_0x177437(0x13d)]=_0x43d9e3,_0x219e81[_0x177437(0x159)]=_0x1a1bc7,_0x219e81[_0x177437(0x15b)]=_0x487339,_0x219e81['PrintPaperMargin']=_0x63623e,_0x219e81[_0x177437(0x143)]=_0x49c882,_0x219e81[_0x177437(0x15d)]=_0xc61754,Object['defineProperty'](_0x219e81,Symbol[_0x177437(0x139)],{'value':_0x177437(0x14d)});}));function _0x1632(){const _0x4affac=['function','printing-canvas','Narrow','Custom','innerHTML','Origin','\x0a\x20\x20\x20\x20.','Start','1161195NwyNhe','style','PrintAlign','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','PrintDirection','Portrait','createPrintStyle','PRINT_CANVAS_CLASS','Normal','FitHeight','2sIWQzu','10ydeALH','printing-canvas-container','673589CnHsMz','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','Middle','1237170FAcdsB','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','toStringTag','amd','7532451gfvQAm','exports','PaperMarginMap','PRINT_CONTAINER_CLASS','End','px\x20','offline-printing-css','FitPage','PrintScale','None','Wide','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','10PnQviY','Landscape','170686jKqpRG','FitWidth','1375952oBsXRm','createElement','Module','54732AoZvan'];_0x1632=function(){return _0x4affac;};return _0x1632();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/print",
3
- "version": "0.10.12",
3
+ "version": "0.10.13",
4
4
  "private": false,
5
5
  "description": "Print module for UniverJS",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -45,7 +45,7 @@
45
45
  "typescript": "^5.9.3",
46
46
  "vite": "^7.1.10",
47
47
  "vitest": "^3.2.4",
48
- "@univerjs-infra/shared": "0.10.12"
48
+ "@univerjs-infra/shared": "0.10.13"
49
49
  },
50
50
  "scripts": {
51
51
  "test": "vitest run",