@univerjs-pro/print 0.10.12 → 0.10.13-nightly.202510290902

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 _0x5a7799=_0x381b;function _0x5493(){const _0x1e4f4a=['printing-canvas','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','342MWKbqe','4009614kAMkBv','Start','PRINT_CONTAINER_CLASS','FitHeight','Custom','Landscape','FitWidth','3YUkhHR','None','style','Normal','\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','6060838YEXisp','Portrait','px\x20','createPrintStyle','2489877tVVDoD','PrintAlign','\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.','PrintDirection','5113745OrBjXQ','\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','3976GTnOve','4190MFLqxJ','5422792VRnbTY','Narrow','defineProperty','39941kumaMJ','24mVwvJJ','offline-printing-css','PrintPaperMargin',',\x20.','toStringTag','FitPage','createElement','PrintScale','End','PRINT_CANVAS_CLASS'];_0x5493=function(){return _0x1e4f4a;};return _0x5493();}function _0x381b(_0x1acfd8,_0x1484e7){const _0x54938c=_0x5493();return _0x381b=function(_0x381bac,_0x5e818b){_0x381bac=_0x381bac-0x194;let _0x51f822=_0x54938c[_0x381bac];return _0x51f822;},_0x381b(_0x1acfd8,_0x1484e7);}(function(_0x517881,_0x484839){const _0x5d65dd=_0x381b,_0x411b93=_0x517881();while(!![]){try{const _0xf22bb0=parseInt(_0x5d65dd(0x1b7))/0x1*(parseInt(_0x5d65dd(0x19f))/0x2)+parseInt(_0x5d65dd(0x1a7))/0x3*(-parseInt(_0x5d65dd(0x1b9))/0x4)+-parseInt(_0x5d65dd(0x1b5))/0x5+-parseInt(_0x5d65dd(0x1a0))/0x6+parseInt(_0x5d65dd(0x1ad))/0x7+parseInt(_0x5d65dd(0x1bd))/0x8*(parseInt(_0x5d65dd(0x1b1))/0x9)+-parseInt(_0x5d65dd(0x1b8))/0xa*(-parseInt(_0x5d65dd(0x1bc))/0xb);if(_0xf22bb0===_0x484839)break;else _0x411b93['push'](_0x411b93['shift']());}catch(_0x223eaa){_0x411b93['push'](_0x411b93['shift']());}}}(_0x5493,0xcf9ba));Object[_0x5a7799(0x1bb)](exports,Symbol[_0x5a7799(0x197)],{'value':'Module'});var i=(_0x5ea40e=>(_0x5ea40e[_0x5a7799(0x1ae)]=_0x5a7799(0x1ae),_0x5ea40e[_0x5a7799(0x1a5)]=_0x5a7799(0x1a5),_0x5ea40e))(i||{}),l=(_0x5a6c7a=>(_0x5a6c7a['Origin']='Origin',_0x5a6c7a[_0x5a7799(0x1a6)]='FitWidth',_0x5a6c7a[_0x5a7799(0x1a3)]=_0x5a7799(0x1a3),_0x5a6c7a[_0x5a7799(0x198)]='FitPage',_0x5a6c7a[_0x5a7799(0x1a4)]='Custom',_0x5a6c7a))(l||{}),m=(_0x552962=>(_0x552962[_0x5a7799(0x1a1)]=_0x5a7799(0x1a1),_0x552962[_0x5a7799(0x19b)]=_0x5a7799(0x19b),_0x552962[_0x5a7799(0x1ac)]=_0x5a7799(0x1ac),_0x552962))(m||{}),o=(_0x375b4c=>(_0x375b4c[_0x5a7799(0x1aa)]=_0x5a7799(0x1aa),_0x375b4c[_0x5a7799(0x1ba)]=_0x5a7799(0x1ba),_0x375b4c['Wide']='Wide',_0x375b4c[_0x5a7799(0x1a8)]=_0x5a7799(0x1a8),_0x375b4c[_0x5a7799(0x1a4)]=_0x5a7799(0x1a4),_0x375b4c))(o||{});const g={[o[_0x5a7799(0x1aa)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x5a7799(0x1ba)]]:{'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[_0x5a7799(0x1a4)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r='printing-canvas-container',n=_0x5a7799(0x19d);function h(_0x35f33d,_0x29181c,_0x40bf77){const _0x4580a9=_0x5a7799,_0x26fc02=_0x40bf77===i[_0x4580a9(0x1ae)]?_0x35f33d:_0x29181c,_0x1084cd=_0x40bf77===i['Portrait']?_0x29181c:_0x35f33d,_0x48134b='\x0a\x20\x20\x20\x20.'+n+_0x4580a9(0x1ab)+_0x26fc02+_0x4580a9(0x1af)+_0x1084cd+'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+_0x4580a9(0x196)+r+_0x4580a9(0x1b3)+n+_0x4580a9(0x1b6)+_0x1084cd+_0x4580a9(0x19e)+_0x26fc02+'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}',_0x1707ac=document[_0x4580a9(0x199)](_0x4580a9(0x1a9));return _0x1707ac['innerHTML']=_0x48134b,_0x1707ac['className']=_0x4580a9(0x194),_0x1707ac;}exports[_0x5a7799(0x19c)]=n,exports[_0x5a7799(0x1a2)]=r,exports['PaperMarginMap']=g,exports[_0x5a7799(0x1b2)]=m,exports[_0x5a7799(0x1b4)]=i,exports[_0x5a7799(0x195)]=o,exports[_0x5a7799(0x19a)]=l,exports[_0x5a7799(0x1b0)]=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
+ const _0x3d1c67=_0x360f;(function(_0x3dc566,_0x10a978){const _0x26c7ff=_0x360f,_0x32f7c0=_0x3dc566();while(!![]){try{const _0x41585e=-parseInt(_0x26c7ff(0xa0))/0x1+parseInt(_0x26c7ff(0xa4))/0x2*(parseInt(_0x26c7ff(0xaa))/0x3)+-parseInt(_0x26c7ff(0xb7))/0x4+parseInt(_0x26c7ff(0xa9))/0x5*(-parseInt(_0x26c7ff(0xb4))/0x6)+-parseInt(_0x26c7ff(0xb2))/0x7+parseInt(_0x26c7ff(0xa1))/0x8+-parseInt(_0x26c7ff(0xaf))/0x9;if(_0x41585e===_0x10a978)break;else _0x32f7c0['push'](_0x32f7c0['shift']());}catch(_0x1d56fe){_0x32f7c0['push'](_0x32f7c0['shift']());}}}(_0x5622,0xa5b69));function _0x360f(_0x2cd6f4,_0x64fcf5){const _0x56222f=_0x5622();return _0x360f=function(_0x360f49,_0x1fe0c7){_0x360f49=_0x360f49-0x9b;let _0x2d25f5=_0x56222f[_0x360f49];return _0x2d25f5;},_0x360f(_0x2cd6f4,_0x64fcf5);}var e=(_0x4588e3=>(_0x4588e3['Portrait']=_0x3d1c67(0x9e),_0x4588e3[_0x3d1c67(0xbe)]=_0x3d1c67(0xbe),_0x4588e3))(e||{}),h=(_0x41b53c=>(_0x41b53c['Origin']=_0x3d1c67(0x9c),_0x41b53c['FitWidth']=_0x3d1c67(0xba),_0x41b53c[_0x3d1c67(0xb0)]=_0x3d1c67(0xb0),_0x41b53c[_0x3d1c67(0xb3)]='FitPage',_0x41b53c[_0x3d1c67(0xbb)]=_0x3d1c67(0xbb),_0x41b53c))(h||{}),l=(_0x556109=>(_0x556109[_0x3d1c67(0xbf)]='Start',_0x556109['End']=_0x3d1c67(0xa8),_0x556109[_0x3d1c67(0xae)]=_0x3d1c67(0xae),_0x556109))(l||{}),o=(_0x4bc021=>(_0x4bc021['Normal']='Normal',_0x4bc021['Narrow']='Narrow',_0x4bc021[_0x3d1c67(0xb5)]=_0x3d1c67(0xb5),_0x4bc021[_0x3d1c67(0xbc)]=_0x3d1c67(0xbc),_0x4bc021['Custom']='Custom',_0x4bc021))(o||{});function _0x5622(){const _0x24eaed=['Landscape','Start','createElement','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}','Portrait','\x0a\x20\x20\x20\x20.','145052XxPyyL','10466760umvtOf','style','px\x20','160774FreUez','innerHTML','className','Narrow','End','1165SRhvSu','39FcOhIt','\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.','offline-printing-css','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.','Middle','2625300GQBDqh','FitHeight','Normal','391874psXunK','FitPage','29742uVEsBO','Wide','printing-canvas','107600DXrPPr','\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','printing-canvas-container','FitWidth','Custom','None',',\x20.'];_0x5622=function(){return _0x24eaed;};return _0x5622();}const c={[o[_0x3d1c67(0xb1)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x3d1c67(0xa7)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x3d1c67(0xb5)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x3d1c67(0xbc)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x3d1c67(0xbb)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x3d1c67(0xb9),d=_0x3d1c67(0xb6);function g(_0x7df9c3,_0x1c842c,_0x2cdb6e){const _0x4696fb=_0x3d1c67,_0x29f144=_0x2cdb6e===e['Portrait']?_0x7df9c3:_0x1c842c,_0x4221ba=_0x2cdb6e===e[_0x4696fb(0x9e)]?_0x1c842c:_0x7df9c3,_0x34b23e=_0x4696fb(0x9f)+d+'\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'+_0x29f144+_0x4696fb(0xa3)+_0x4221ba+_0x4696fb(0xad)+p+_0x4696fb(0xbd)+p+_0x4696fb(0xab)+d+_0x4696fb(0xb8)+_0x4221ba+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x29f144+_0x4696fb(0x9d),_0x4a0634=document[_0x4696fb(0x9b)](_0x4696fb(0xa2));return _0x4a0634[_0x4696fb(0xa5)]=_0x34b23e,_0x4a0634[_0x4696fb(0xa6)]=_0x4696fb(0xac),_0x4a0634;}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
+ const _0x3d1c67=_0x360f;(function(_0x3dc566,_0x10a978){const _0x26c7ff=_0x360f,_0x32f7c0=_0x3dc566();while(!![]){try{const _0x41585e=-parseInt(_0x26c7ff(0xa0))/0x1+parseInt(_0x26c7ff(0xa4))/0x2*(parseInt(_0x26c7ff(0xaa))/0x3)+-parseInt(_0x26c7ff(0xb7))/0x4+parseInt(_0x26c7ff(0xa9))/0x5*(-parseInt(_0x26c7ff(0xb4))/0x6)+-parseInt(_0x26c7ff(0xb2))/0x7+parseInt(_0x26c7ff(0xa1))/0x8+-parseInt(_0x26c7ff(0xaf))/0x9;if(_0x41585e===_0x10a978)break;else _0x32f7c0['push'](_0x32f7c0['shift']());}catch(_0x1d56fe){_0x32f7c0['push'](_0x32f7c0['shift']());}}}(_0x5622,0xa5b69));function _0x360f(_0x2cd6f4,_0x64fcf5){const _0x56222f=_0x5622();return _0x360f=function(_0x360f49,_0x1fe0c7){_0x360f49=_0x360f49-0x9b;let _0x2d25f5=_0x56222f[_0x360f49];return _0x2d25f5;},_0x360f(_0x2cd6f4,_0x64fcf5);}var e=(_0x4588e3=>(_0x4588e3['Portrait']=_0x3d1c67(0x9e),_0x4588e3[_0x3d1c67(0xbe)]=_0x3d1c67(0xbe),_0x4588e3))(e||{}),h=(_0x41b53c=>(_0x41b53c['Origin']=_0x3d1c67(0x9c),_0x41b53c['FitWidth']=_0x3d1c67(0xba),_0x41b53c[_0x3d1c67(0xb0)]=_0x3d1c67(0xb0),_0x41b53c[_0x3d1c67(0xb3)]='FitPage',_0x41b53c[_0x3d1c67(0xbb)]=_0x3d1c67(0xbb),_0x41b53c))(h||{}),l=(_0x556109=>(_0x556109[_0x3d1c67(0xbf)]='Start',_0x556109['End']=_0x3d1c67(0xa8),_0x556109[_0x3d1c67(0xae)]=_0x3d1c67(0xae),_0x556109))(l||{}),o=(_0x4bc021=>(_0x4bc021['Normal']='Normal',_0x4bc021['Narrow']='Narrow',_0x4bc021[_0x3d1c67(0xb5)]=_0x3d1c67(0xb5),_0x4bc021[_0x3d1c67(0xbc)]=_0x3d1c67(0xbc),_0x4bc021['Custom']='Custom',_0x4bc021))(o||{});function _0x5622(){const _0x24eaed=['Landscape','Start','createElement','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}','Portrait','\x0a\x20\x20\x20\x20.','145052XxPyyL','10466760umvtOf','style','px\x20','160774FreUez','innerHTML','className','Narrow','End','1165SRhvSu','39FcOhIt','\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.','offline-printing-css','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.','Middle','2625300GQBDqh','FitHeight','Normal','391874psXunK','FitPage','29742uVEsBO','Wide','printing-canvas','107600DXrPPr','\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','printing-canvas-container','FitWidth','Custom','None',',\x20.'];_0x5622=function(){return _0x24eaed;};return _0x5622();}const c={[o[_0x3d1c67(0xb1)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x3d1c67(0xa7)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x3d1c67(0xb5)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x3d1c67(0xbc)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x3d1c67(0xbb)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x3d1c67(0xb9),d=_0x3d1c67(0xb6);function g(_0x7df9c3,_0x1c842c,_0x2cdb6e){const _0x4696fb=_0x3d1c67,_0x29f144=_0x2cdb6e===e['Portrait']?_0x7df9c3:_0x1c842c,_0x4221ba=_0x2cdb6e===e[_0x4696fb(0x9e)]?_0x1c842c:_0x7df9c3,_0x34b23e=_0x4696fb(0x9f)+d+'\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'+_0x29f144+_0x4696fb(0xa3)+_0x4221ba+_0x4696fb(0xad)+p+_0x4696fb(0xbd)+p+_0x4696fb(0xab)+d+_0x4696fb(0xb8)+_0x4221ba+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x29f144+_0x4696fb(0x9d),_0x4a0634=document[_0x4696fb(0x9b)](_0x4696fb(0xa2));return _0x4a0634[_0x4696fb(0xa5)]=_0x34b23e,_0x4a0634[_0x4696fb(0xa6)]=_0x4696fb(0xac),_0x4a0634;}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 _0x5094(_0x5dcbfa,_0x4f347e){const _0x3f8b13=_0x3f8b();return _0x5094=function(_0x509490,_0x3fa148){_0x509490=_0x509490-0x155;let _0x3dc14b=_0x3f8b13[_0x509490];return _0x3dc14b;},_0x5094(_0x5dcbfa,_0x4f347e);}(function(_0x1c80bf,_0x5cf814){const _0x545c38=_0x5094,_0x6216e9=_0x1c80bf();while(!![]){try{const _0x38f047=-parseInt(_0x545c38(0x17d))/0x1+parseInt(_0x545c38(0x172))/0x2*(parseInt(_0x545c38(0x15f))/0x3)+-parseInt(_0x545c38(0x156))/0x4*(parseInt(_0x545c38(0x15a))/0x5)+parseInt(_0x545c38(0x169))/0x6+parseInt(_0x545c38(0x157))/0x7*(-parseInt(_0x545c38(0x159))/0x8)+-parseInt(_0x545c38(0x16a))/0x9*(parseInt(_0x545c38(0x180))/0xa)+parseInt(_0x545c38(0x171))/0xb;if(_0x38f047===_0x5cf814)break;else _0x6216e9['push'](_0x6216e9['shift']());}catch(_0x3b693a){_0x6216e9['push'](_0x6216e9['shift']());}}}(_0x3f8b,0xb1cec),function(_0x5da810,_0x44e682){const _0x40048c=_0x5094;typeof exports==_0x40048c(0x166)&&typeof module<'u'?_0x44e682(exports):typeof define=='function'&&define[_0x40048c(0x175)]?define([_0x40048c(0x164)],_0x44e682):(_0x5da810=typeof globalThis<'u'?globalThis:_0x5da810||self,_0x44e682(_0x5da810[_0x40048c(0x181)]={}));}(this,function(_0x5673b8){'use strict';const _0x49f275=_0x5094;var _0xad3197=(_0x387c3e=>(_0x387c3e[_0x49f275(0x177)]=_0x49f275(0x177),_0x387c3e[_0x49f275(0x155)]=_0x49f275(0x155),_0x387c3e))(_0xad3197||{}),_0x57a567=(_0x535401=>(_0x535401[_0x49f275(0x16f)]=_0x49f275(0x16f),_0x535401['FitWidth']=_0x49f275(0x158),_0x535401[_0x49f275(0x17e)]='FitHeight',_0x535401['FitPage']=_0x49f275(0x161),_0x535401['Custom']=_0x49f275(0x15b),_0x535401))(_0x57a567||{}),_0x1399ce=(_0x484411=>(_0x484411[_0x49f275(0x182)]=_0x49f275(0x182),_0x484411[_0x49f275(0x176)]='End',_0x484411['Middle']=_0x49f275(0x16e),_0x484411))(_0x1399ce||{}),_0x1f517f=(_0x5818fa=>(_0x5818fa[_0x49f275(0x167)]=_0x49f275(0x167),_0x5818fa[_0x49f275(0x15e)]=_0x49f275(0x15e),_0x5818fa['Wide']=_0x49f275(0x15d),_0x5818fa['None']='None',_0x5818fa[_0x49f275(0x15b)]='Custom',_0x5818fa))(_0x1f517f||{});const _0x404d86={[_0x1f517f[_0x49f275(0x167)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x1f517f['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x1f517f[_0x49f275(0x15d)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x1f517f[_0x49f275(0x168)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x1f517f[_0x49f275(0x15b)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x34246c='printing-canvas-container',_0x3da6c9=_0x49f275(0x160);function _0x45bc5b(_0x3fd64d,_0x555d55,_0xffa732){const _0x3c6472=_0x49f275,_0x530323=_0xffa732===_0xad3197['Portrait']?_0x3fd64d:_0x555d55,_0x2b4b1f=_0xffa732===_0xad3197['Portrait']?_0x555d55:_0x3fd64d,_0x557a8d=_0x3c6472(0x170)+_0x3da6c9+'\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'+_0x530323+_0x3c6472(0x17a)+_0x2b4b1f+_0x3c6472(0x173)+_0x34246c+',\x20.'+_0x34246c+'\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.'+_0x3da6c9+_0x3c6472(0x15c)+_0x2b4b1f+_0x3c6472(0x165)+_0x530323+_0x3c6472(0x185),_0xbc2dae=document['createElement'](_0x3c6472(0x178));return _0xbc2dae[_0x3c6472(0x16c)]=_0x557a8d,_0xbc2dae[_0x3c6472(0x174)]='offline-printing-css',_0xbc2dae;}_0x5673b8[_0x49f275(0x163)]=_0x3da6c9,_0x5673b8[_0x49f275(0x179)]=_0x34246c,_0x5673b8[_0x49f275(0x17b)]=_0x404d86,_0x5673b8['PrintAlign']=_0x1399ce,_0x5673b8[_0x49f275(0x162)]=_0xad3197,_0x5673b8[_0x49f275(0x17c)]=_0x1f517f,_0x5673b8[_0x49f275(0x183)]=_0x57a567,_0x5673b8[_0x49f275(0x17f)]=_0x45bc5b,Object[_0x49f275(0x184)](_0x5673b8,Symbol[_0x49f275(0x16b)],{'value':_0x49f275(0x16d)});}));function _0x3f8b(){const _0x22ff5c=['px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','object','Normal','None','6120240gOKIlE','45djaXNG','toStringTag','innerHTML','Module','Middle','Origin','\x0a\x20\x20\x20\x20.','27965652braCsX','54Nwbbyz','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.','className','amd','End','Portrait','style','PRINT_CONTAINER_CLASS','px\x20','PaperMarginMap','PrintPaperMargin','379894WdYQnH','FitHeight','createPrintStyle','1434930oMONTr','UniverProPrint','Start','PrintScale','defineProperty','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}','Landscape','16648XrYTFB','7GxnlMl','FitWidth','8827792FsKCuw','1360FaGUph','Custom','\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','Narrow','55425GOMffZ','printing-canvas','FitPage','PrintDirection','PRINT_CANVAS_CLASS','exports'];_0x3f8b=function(){return _0x22ff5c;};return _0x3f8b();}
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-nightly.202510290902",
4
4
  "private": false,
5
5
  "description": "Print module for UniverJS",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -43,9 +43,9 @@
43
43
  ],
44
44
  "devDependencies": {
45
45
  "typescript": "^5.9.3",
46
- "vite": "^7.1.10",
46
+ "vite": "^7.1.12",
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",