@univerjs-pro/print 0.7.0-beta.0 → 0.7.0-beta.1

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 _0xde8337=_0x46e9;(function(_0x4daea4,_0xfe7455){const _0xd4a2d5=_0x46e9,_0x52ff57=_0x4daea4();while(!![]){try{const _0x1c9aa5=-parseInt(_0xd4a2d5(0x18f))/0x1*(parseInt(_0xd4a2d5(0x19c))/0x2)+parseInt(_0xd4a2d5(0x1b2))/0x3*(-parseInt(_0xd4a2d5(0x197))/0x4)+-parseInt(_0xd4a2d5(0x1a1))/0x5*(-parseInt(_0xd4a2d5(0x1b1))/0x6)+parseInt(_0xd4a2d5(0x18b))/0x7+parseInt(_0xd4a2d5(0x1a2))/0x8+parseInt(_0xd4a2d5(0x189))/0x9*(-parseInt(_0xd4a2d5(0x1ad))/0xa)+parseInt(_0xd4a2d5(0x1a4))/0xb*(parseInt(_0xd4a2d5(0x191))/0xc);if(_0x1c9aa5===_0xfe7455)break;else _0x52ff57['push'](_0x52ff57['shift']());}catch(_0xefaead){_0x52ff57['push'](_0x52ff57['shift']());}}}(_0x91fc,0x443cf));function _0x46e9(_0x335986,_0x5685ff){const _0x91fcc6=_0x91fc();return _0x46e9=function(_0x46e9fd,_0x57f1fa){_0x46e9fd=_0x46e9fd-0x188;let _0x428f3c=_0x91fcc6[_0x46e9fd];return _0x428f3c;},_0x46e9(_0x335986,_0x5685ff);}function _0x91fc(){const _0x6faaca=['\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.','PrintAlign','FitPage','innerHTML','PrintDirection','px\x20','createPrintStyle','FitWidth','70RqxMDO','PRINT_CONTAINER_CLASS','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Custom','30dprIlE','834747vyTnhb','Start','Normal','5778ATLiJo','defineProperty','1223516hMWQXD','Portrait','End','PrintPaperMargin','14538IdbBMb','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','1070736eSSdWl','Narrow','className','Wide',',\x20.','createElement','8TVxbIA','offline-printing-css','Module','Origin','FitHeight','64GnAYdf','Middle','None','\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','PRINT_CANVAS_CLASS','235435EFwLdJ','4308608NqSBlf','Landscape','44CHpjIi'];_0x91fc=function(){return _0x6faaca;};return _0x91fc();}Object[_0xde8337(0x18a)](exports,Symbol['toStringTag'],{'value':_0xde8337(0x199)});var e=(_0xe34a9e=>(_0xe34a9e[_0xde8337(0x18c)]='Portrait',_0xe34a9e[_0xde8337(0x1a3)]='Landscape',_0xe34a9e))(e||{}),d=(_0x2d0de5=>(_0x2d0de5['Origin']=_0xde8337(0x19a),_0x2d0de5[_0xde8337(0x1ac)]='FitWidth',_0x2d0de5[_0xde8337(0x19b)]='FitHeight',_0x2d0de5[_0xde8337(0x1a7)]=_0xde8337(0x1a7),_0x2d0de5[_0xde8337(0x1b0)]=_0xde8337(0x1b0),_0x2d0de5))(d||{}),l=(_0x58c7c5=>(_0x58c7c5[_0xde8337(0x1b3)]=_0xde8337(0x1b3),_0x58c7c5[_0xde8337(0x18d)]=_0xde8337(0x18d),_0x58c7c5[_0xde8337(0x19d)]=_0xde8337(0x19d),_0x58c7c5))(l||{}),i=(_0x437d2f=>(_0x437d2f[_0xde8337(0x188)]='Normal',_0x437d2f[_0xde8337(0x192)]=_0xde8337(0x192),_0x437d2f[_0xde8337(0x194)]=_0xde8337(0x194),_0x437d2f[_0xde8337(0x19e)]=_0xde8337(0x19e),_0x437d2f))(i||{});const h={[i[_0xde8337(0x188)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i[_0xde8337(0x192)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i[_0xde8337(0x19e)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r='printing-canvas-container',c='printing-canvas';function m(_0x54824a,_0x3e818d,_0x414557){const _0x2bae8e=_0xde8337,_0x3764f4=_0x414557===e['Portrait']?_0x54824a:_0x3e818d,_0x389db6=_0x414557===e[_0x2bae8e(0x18c)]?_0x3e818d:_0x54824a,_0x2527a1=_0x2bae8e(0x19f)+_0x3764f4+_0x2bae8e(0x1aa)+_0x389db6+'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.'+r+_0x2bae8e(0x195)+r+_0x2bae8e(0x1a5)+c+_0x2bae8e(0x1af)+_0x389db6+_0x2bae8e(0x190)+_0x3764f4+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',_0x1a4041=document[_0x2bae8e(0x196)]('style');return _0x1a4041[_0x2bae8e(0x1a8)]=_0x2527a1,_0x1a4041[_0x2bae8e(0x193)]=_0x2bae8e(0x198),_0x1a4041;}exports[_0xde8337(0x1a0)]=c,exports[_0xde8337(0x1ae)]=r,exports['PaperMarginMap']=h,exports[_0xde8337(0x1a6)]=l,exports[_0xde8337(0x1a9)]=e,exports[_0xde8337(0x18e)]=i,exports['PrintScale']=d,exports[_0xde8337(0x1ab)]=m;
1
+ 'use strict';const _0x9bd185=_0x2fa8;(function(_0x47f48d,_0x104bb6){const _0x550d49=_0x2fa8,_0x18a3b3=_0x47f48d();while(!![]){try{const _0x2bced5=parseInt(_0x550d49(0x174))/0x1+parseInt(_0x550d49(0x15f))/0x2+parseInt(_0x550d49(0x165))/0x3+parseInt(_0x550d49(0x150))/0x4*(-parseInt(_0x550d49(0x175))/0x5)+parseInt(_0x550d49(0x16a))/0x6+-parseInt(_0x550d49(0x176))/0x7*(parseInt(_0x550d49(0x167))/0x8)+-parseInt(_0x550d49(0x15d))/0x9;if(_0x2bced5===_0x104bb6)break;else _0x18a3b3['push'](_0x18a3b3['shift']());}catch(_0x3371fc){_0x18a3b3['push'](_0x18a3b3['shift']());}}}(_0x1f25,0x1ecbb));Object[_0x9bd185(0x153)](exports,Symbol[_0x9bd185(0x16e)],{'value':'Module'});function _0x2fa8(_0x102f1f,_0x32a7ac){const _0x1f258a=_0x1f25();return _0x2fa8=function(_0x2fa885,_0x3d399a){_0x2fa885=_0x2fa885-0x14e;let _0x4a17fa=_0x1f258a[_0x2fa885];return _0x4a17fa;},_0x2fa8(_0x102f1f,_0x32a7ac);}var e=(_0x3f296f=>(_0x3f296f['Portrait']='Portrait',_0x3f296f[_0x9bd185(0x157)]=_0x9bd185(0x157),_0x3f296f))(e||{}),l=(_0x53d974=>(_0x53d974['Origin']=_0x9bd185(0x15c),_0x53d974['FitWidth']=_0x9bd185(0x154),_0x53d974[_0x9bd185(0x159)]=_0x9bd185(0x159),_0x53d974[_0x9bd185(0x15b)]='FitPage',_0x53d974[_0x9bd185(0x156)]=_0x9bd185(0x156),_0x53d974))(l||{}),c=(_0x55b61a=>(_0x55b61a[_0x9bd185(0x158)]='Start',_0x55b61a['End']=_0x9bd185(0x15a),_0x55b61a[_0x9bd185(0x168)]=_0x9bd185(0x168),_0x55b61a))(c||{}),i=(_0x4a5b47=>(_0x4a5b47['Normal']=_0x9bd185(0x164),_0x4a5b47[_0x9bd185(0x152)]='Narrow',_0x4a5b47['Wide']=_0x9bd185(0x172),_0x4a5b47[_0x9bd185(0x16c)]=_0x9bd185(0x16c),_0x4a5b47))(i||{});const h={[i[_0x9bd185(0x164)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i[_0x9bd185(0x152)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i[_0x9bd185(0x16c)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x9bd185(0x171),n='printing-canvas';function m(_0x412d9e,_0x7c4e2f,_0x1e1f7a){const _0x6a5149=_0x9bd185,_0xfbc353=_0x1e1f7a===e[_0x6a5149(0x163)]?_0x412d9e:_0x7c4e2f,_0x2adc11=_0x1e1f7a===e['Portrait']?_0x7c4e2f:_0x412d9e,_0x5646cf=_0x6a5149(0x170)+n+'\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'+_0xfbc353+'px\x20'+_0x2adc11+_0x6a5149(0x14f)+r+_0x6a5149(0x166)+r+'\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.'+n+_0x6a5149(0x15e)+_0x2adc11+_0x6a5149(0x14e)+_0xfbc353+_0x6a5149(0x16f),_0x48421b=document[_0x6a5149(0x16b)]('style');return _0x48421b['innerHTML']=_0x5646cf,_0x48421b[_0x6a5149(0x161)]=_0x6a5149(0x155),_0x48421b;}exports[_0x9bd185(0x160)]=n,exports['PRINT_CONTAINER_CLASS']=r,exports[_0x9bd185(0x173)]=h,exports[_0x9bd185(0x16d)]=c,exports[_0x9bd185(0x162)]=e,exports[_0x9bd185(0x169)]=i,exports[_0x9bd185(0x151)]=l,exports['createPrintStyle']=m;function _0x1f25(){const _0x2ae44f=[',\x20.','119848sTQnSa','Middle','PrintPaperMargin','646764lZHupW','createElement','None','PrintAlign','toStringTag','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}','\x0a\x20\x20\x20\x20.','printing-canvas-container','Wide','PaperMarginMap','230011ZEuPAb','10iNrdrH','77GCcUfE','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\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.','338288xxXvhW','PrintScale','Narrow','defineProperty','FitWidth','offline-printing-css','Custom','Landscape','Start','FitHeight','End','FitPage','Origin','2612475lSXgcv','\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','338994kqsWKM','PRINT_CANVAS_CLASS','className','PrintDirection','Portrait','Normal','729141njhzko'];_0x1f25=function(){return _0x2ae44f;};return _0x1f25();}
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- function _0x53bc(){const _0x2e68d0=['FitHeight','2064RYwBYx','Origin','4285HDAbLe','End','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.','72cRpHUw','Portrait','Normal','27720610CPXTBl','Narrow','Landscape','749getjhZ','\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','None','Custom','FitWidth','Wide','Start','printing-canvas-container','2082150tqaYyr','createElement','Middle','\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.','FitPage','527278yTWgrw','className','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','218223DyTyeG','px\x20','49218afbHMx','696512MnMcDr','style','offline-printing-css'];_0x53bc=function(){return _0x2e68d0;};return _0x53bc();}const _0x3a9436=_0x1a4b;function _0x1a4b(_0x116b94,_0x50bb2a){const _0x53bcdb=_0x53bc();return _0x1a4b=function(_0x1a4b89,_0x5cf987){_0x1a4b89=_0x1a4b89-0x1f4;let _0x48f40e=_0x53bcdb[_0x1a4b89];return _0x48f40e;},_0x1a4b(_0x116b94,_0x50bb2a);}(function(_0x460197,_0x4398cd){const _0x28b93d=_0x1a4b,_0x5b1172=_0x460197();while(!![]){try{const _0x186d6e=-parseInt(_0x28b93d(0x1f5))/0x1+-parseInt(_0x28b93d(0x214))/0x2+-parseInt(_0x28b93d(0x20f))/0x3+-parseInt(_0x28b93d(0x1fc))/0x4*(-parseInt(_0x28b93d(0x1fe))/0x5)+-parseInt(_0x28b93d(0x1f7))/0x6*(parseInt(_0x28b93d(0x207))/0x7)+-parseInt(_0x28b93d(0x1f8))/0x8*(parseInt(_0x28b93d(0x201))/0x9)+parseInt(_0x28b93d(0x204))/0xa;if(_0x186d6e===_0x4398cd)break;else _0x5b1172['push'](_0x5b1172['shift']());}catch(_0xe45960){_0x5b1172['push'](_0x5b1172['shift']());}}}(_0x53bc,0x71500));var e=(_0x2c23a2=>(_0x2c23a2[_0x3a9436(0x202)]='Portrait',_0x2c23a2[_0x3a9436(0x206)]=_0x3a9436(0x206),_0x2c23a2))(e||{}),h=(_0x76e792=>(_0x76e792[_0x3a9436(0x1fd)]=_0x3a9436(0x1fd),_0x76e792[_0x3a9436(0x20b)]=_0x3a9436(0x20b),_0x76e792[_0x3a9436(0x1fb)]=_0x3a9436(0x1fb),_0x76e792[_0x3a9436(0x213)]=_0x3a9436(0x213),_0x76e792[_0x3a9436(0x20a)]=_0x3a9436(0x20a),_0x76e792))(h||{}),l=(_0xca383a=>(_0xca383a[_0x3a9436(0x20d)]='Start',_0xca383a[_0x3a9436(0x1ff)]=_0x3a9436(0x1ff),_0xca383a[_0x3a9436(0x211)]='Middle',_0xca383a))(l||{}),o=(_0x512a56=>(_0x512a56[_0x3a9436(0x203)]=_0x3a9436(0x203),_0x512a56[_0x3a9436(0x205)]=_0x3a9436(0x205),_0x512a56[_0x3a9436(0x20c)]=_0x3a9436(0x20c),_0x512a56[_0x3a9436(0x209)]=_0x3a9436(0x209),_0x512a56))(o||{});const c={[o[_0x3a9436(0x203)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x3a9436(0x205)]]:{'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}},d=_0x3a9436(0x20e),m='printing-canvas';function g(_0x175fdf,_0x70f02,_0x321ed6){const _0x54c6ed=_0x3a9436,_0x4fa1f4=_0x321ed6===e[_0x54c6ed(0x202)]?_0x175fdf:_0x70f02,_0x552f32=_0x321ed6===e[_0x54c6ed(0x202)]?_0x70f02:_0x175fdf,_0x4b798b=_0x54c6ed(0x208)+_0x4fa1f4+_0x54c6ed(0x1f6)+_0x552f32+_0x54c6ed(0x200)+d+',\x20.'+d+_0x54c6ed(0x212)+m+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x552f32+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x4fa1f4+_0x54c6ed(0x1f4),_0x9c7710=document[_0x54c6ed(0x210)](_0x54c6ed(0x1f9));return _0x9c7710['innerHTML']=_0x4b798b,_0x9c7710[_0x54c6ed(0x215)]=_0x54c6ed(0x1fa),_0x9c7710;}export{m as PRINT_CANVAS_CLASS,d as PRINT_CONTAINER_CLASS,c as PaperMarginMap,l as PrintAlign,e as PrintDirection,o as PrintPaperMargin,h as PrintScale,g as createPrintStyle};
1
+ const _0x33cadb=_0x228d;(function(_0x31687e,_0x4f659f){const _0x3c4422=_0x228d,_0x4a227c=_0x31687e();while(!![]){try{const _0x1ce32a=-parseInt(_0x3c4422(0x1cc))/0x1+parseInt(_0x3c4422(0x1d2))/0x2*(parseInt(_0x3c4422(0x1de))/0x3)+parseInt(_0x3c4422(0x1d7))/0x4*(parseInt(_0x3c4422(0x1db))/0x5)+parseInt(_0x3c4422(0x1e5))/0x6*(parseInt(_0x3c4422(0x1d3))/0x7)+-parseInt(_0x3c4422(0x1dd))/0x8*(-parseInt(_0x3c4422(0x1ec))/0x9)+-parseInt(_0x3c4422(0x1c7))/0xa+-parseInt(_0x3c4422(0x1e9))/0xb*(-parseInt(_0x3c4422(0x1e8))/0xc);if(_0x1ce32a===_0x4f659f)break;else _0x4a227c['push'](_0x4a227c['shift']());}catch(_0x5e65dc){_0x4a227c['push'](_0x4a227c['shift']());}}}(_0x5432,0xbeec7));var e=(_0xe0e9b6=>(_0xe0e9b6[_0x33cadb(0x1ca)]='Portrait',_0xe0e9b6[_0x33cadb(0x1e2)]=_0x33cadb(0x1e2),_0xe0e9b6))(e||{}),l=(_0xcf71a4=>(_0xcf71a4['Origin']=_0x33cadb(0x1df),_0xcf71a4[_0x33cadb(0x1d5)]=_0x33cadb(0x1d5),_0xcf71a4[_0x33cadb(0x1cd)]=_0x33cadb(0x1cd),_0xcf71a4['FitPage']=_0x33cadb(0x1e7),_0xcf71a4[_0x33cadb(0x1eb)]=_0x33cadb(0x1eb),_0xcf71a4))(l||{}),m=(_0x98b1da=>(_0x98b1da[_0x33cadb(0x1e0)]=_0x33cadb(0x1e0),_0x98b1da[_0x33cadb(0x1ea)]=_0x33cadb(0x1ea),_0x98b1da[_0x33cadb(0x1d1)]=_0x33cadb(0x1d1),_0x98b1da))(m||{}),o=(_0x520f61=>(_0x520f61['Normal']=_0x33cadb(0x1ce),_0x520f61[_0x33cadb(0x1d9)]=_0x33cadb(0x1d9),_0x520f61['Wide']=_0x33cadb(0x1c6),_0x520f61[_0x33cadb(0x1d4)]=_0x33cadb(0x1d4),_0x520f61))(o||{});const c={[o[_0x33cadb(0x1ce)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x33cadb(0x1d9)]]:{'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}},p=_0x33cadb(0x1e6),d=_0x33cadb(0x1d8);function _0x228d(_0x3f60f8,_0x5a7deb){const _0x5432e8=_0x5432();return _0x228d=function(_0x228d6f,_0x58a97a){_0x228d6f=_0x228d6f-0x1c5;let _0x536c8f=_0x5432e8[_0x228d6f];return _0x536c8f;},_0x228d(_0x3f60f8,_0x5a7deb);}function g(_0x3bd4a8,_0x592b74,_0x597320){const _0x121bf2=_0x33cadb,_0x34b8ed=_0x597320===e[_0x121bf2(0x1ca)]?_0x3bd4a8:_0x592b74,_0x2bfb70=_0x597320===e['Portrait']?_0x592b74:_0x3bd4a8,_0x366c16='\x0a\x20\x20\x20\x20.'+d+_0x121bf2(0x1e4)+_0x34b8ed+_0x121bf2(0x1dc)+_0x2bfb70+_0x121bf2(0x1da)+p+_0x121bf2(0x1e1)+p+_0x121bf2(0x1d6)+d+_0x121bf2(0x1c8)+_0x2bfb70+_0x121bf2(0x1e3)+_0x34b8ed+_0x121bf2(0x1cb),_0x136d83=document[_0x121bf2(0x1c5)](_0x121bf2(0x1cf));return _0x136d83[_0x121bf2(0x1c9)]=_0x366c16,_0x136d83[_0x121bf2(0x1d0)]='offline-printing-css',_0x136d83;}function _0x5432(){const _0x32578b=['23466mjqNJd','printing-canvas-container','FitPage','12yOHGPN','16869622NkjZwZ','End','Custom','43074mPrSyL','createElement','Wide','8168840ktfHlT','\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','innerHTML','Portrait','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}','1243480lxGoCw','FitHeight','Normal','style','className','Middle','74874iPeHSE','1113loZLUa','None','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.','12gDsFTy','printing-canvas','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.','152065mZAIWV','px\x20','808DVaroQ','9XMhThw','Origin','Start',',\x20.','Landscape','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','\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'];_0x5432=function(){return _0x32578b;};return _0x5432();}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,m as PrintAlign,e as PrintDirection,o as PrintPaperMargin,l as PrintScale,g as createPrintStyle};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- function _0x53bc(){const _0x2e68d0=['FitHeight','2064RYwBYx','Origin','4285HDAbLe','End','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.','72cRpHUw','Portrait','Normal','27720610CPXTBl','Narrow','Landscape','749getjhZ','\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','None','Custom','FitWidth','Wide','Start','printing-canvas-container','2082150tqaYyr','createElement','Middle','\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.','FitPage','527278yTWgrw','className','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','218223DyTyeG','px\x20','49218afbHMx','696512MnMcDr','style','offline-printing-css'];_0x53bc=function(){return _0x2e68d0;};return _0x53bc();}const _0x3a9436=_0x1a4b;function _0x1a4b(_0x116b94,_0x50bb2a){const _0x53bcdb=_0x53bc();return _0x1a4b=function(_0x1a4b89,_0x5cf987){_0x1a4b89=_0x1a4b89-0x1f4;let _0x48f40e=_0x53bcdb[_0x1a4b89];return _0x48f40e;},_0x1a4b(_0x116b94,_0x50bb2a);}(function(_0x460197,_0x4398cd){const _0x28b93d=_0x1a4b,_0x5b1172=_0x460197();while(!![]){try{const _0x186d6e=-parseInt(_0x28b93d(0x1f5))/0x1+-parseInt(_0x28b93d(0x214))/0x2+-parseInt(_0x28b93d(0x20f))/0x3+-parseInt(_0x28b93d(0x1fc))/0x4*(-parseInt(_0x28b93d(0x1fe))/0x5)+-parseInt(_0x28b93d(0x1f7))/0x6*(parseInt(_0x28b93d(0x207))/0x7)+-parseInt(_0x28b93d(0x1f8))/0x8*(parseInt(_0x28b93d(0x201))/0x9)+parseInt(_0x28b93d(0x204))/0xa;if(_0x186d6e===_0x4398cd)break;else _0x5b1172['push'](_0x5b1172['shift']());}catch(_0xe45960){_0x5b1172['push'](_0x5b1172['shift']());}}}(_0x53bc,0x71500));var e=(_0x2c23a2=>(_0x2c23a2[_0x3a9436(0x202)]='Portrait',_0x2c23a2[_0x3a9436(0x206)]=_0x3a9436(0x206),_0x2c23a2))(e||{}),h=(_0x76e792=>(_0x76e792[_0x3a9436(0x1fd)]=_0x3a9436(0x1fd),_0x76e792[_0x3a9436(0x20b)]=_0x3a9436(0x20b),_0x76e792[_0x3a9436(0x1fb)]=_0x3a9436(0x1fb),_0x76e792[_0x3a9436(0x213)]=_0x3a9436(0x213),_0x76e792[_0x3a9436(0x20a)]=_0x3a9436(0x20a),_0x76e792))(h||{}),l=(_0xca383a=>(_0xca383a[_0x3a9436(0x20d)]='Start',_0xca383a[_0x3a9436(0x1ff)]=_0x3a9436(0x1ff),_0xca383a[_0x3a9436(0x211)]='Middle',_0xca383a))(l||{}),o=(_0x512a56=>(_0x512a56[_0x3a9436(0x203)]=_0x3a9436(0x203),_0x512a56[_0x3a9436(0x205)]=_0x3a9436(0x205),_0x512a56[_0x3a9436(0x20c)]=_0x3a9436(0x20c),_0x512a56[_0x3a9436(0x209)]=_0x3a9436(0x209),_0x512a56))(o||{});const c={[o[_0x3a9436(0x203)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x3a9436(0x205)]]:{'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}},d=_0x3a9436(0x20e),m='printing-canvas';function g(_0x175fdf,_0x70f02,_0x321ed6){const _0x54c6ed=_0x3a9436,_0x4fa1f4=_0x321ed6===e[_0x54c6ed(0x202)]?_0x175fdf:_0x70f02,_0x552f32=_0x321ed6===e[_0x54c6ed(0x202)]?_0x70f02:_0x175fdf,_0x4b798b=_0x54c6ed(0x208)+_0x4fa1f4+_0x54c6ed(0x1f6)+_0x552f32+_0x54c6ed(0x200)+d+',\x20.'+d+_0x54c6ed(0x212)+m+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x552f32+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x4fa1f4+_0x54c6ed(0x1f4),_0x9c7710=document[_0x54c6ed(0x210)](_0x54c6ed(0x1f9));return _0x9c7710['innerHTML']=_0x4b798b,_0x9c7710[_0x54c6ed(0x215)]=_0x54c6ed(0x1fa),_0x9c7710;}export{m as PRINT_CANVAS_CLASS,d as PRINT_CONTAINER_CLASS,c as PaperMarginMap,l as PrintAlign,e as PrintDirection,o as PrintPaperMargin,h as PrintScale,g as createPrintStyle};
1
+ const _0x33cadb=_0x228d;(function(_0x31687e,_0x4f659f){const _0x3c4422=_0x228d,_0x4a227c=_0x31687e();while(!![]){try{const _0x1ce32a=-parseInt(_0x3c4422(0x1cc))/0x1+parseInt(_0x3c4422(0x1d2))/0x2*(parseInt(_0x3c4422(0x1de))/0x3)+parseInt(_0x3c4422(0x1d7))/0x4*(parseInt(_0x3c4422(0x1db))/0x5)+parseInt(_0x3c4422(0x1e5))/0x6*(parseInt(_0x3c4422(0x1d3))/0x7)+-parseInt(_0x3c4422(0x1dd))/0x8*(-parseInt(_0x3c4422(0x1ec))/0x9)+-parseInt(_0x3c4422(0x1c7))/0xa+-parseInt(_0x3c4422(0x1e9))/0xb*(-parseInt(_0x3c4422(0x1e8))/0xc);if(_0x1ce32a===_0x4f659f)break;else _0x4a227c['push'](_0x4a227c['shift']());}catch(_0x5e65dc){_0x4a227c['push'](_0x4a227c['shift']());}}}(_0x5432,0xbeec7));var e=(_0xe0e9b6=>(_0xe0e9b6[_0x33cadb(0x1ca)]='Portrait',_0xe0e9b6[_0x33cadb(0x1e2)]=_0x33cadb(0x1e2),_0xe0e9b6))(e||{}),l=(_0xcf71a4=>(_0xcf71a4['Origin']=_0x33cadb(0x1df),_0xcf71a4[_0x33cadb(0x1d5)]=_0x33cadb(0x1d5),_0xcf71a4[_0x33cadb(0x1cd)]=_0x33cadb(0x1cd),_0xcf71a4['FitPage']=_0x33cadb(0x1e7),_0xcf71a4[_0x33cadb(0x1eb)]=_0x33cadb(0x1eb),_0xcf71a4))(l||{}),m=(_0x98b1da=>(_0x98b1da[_0x33cadb(0x1e0)]=_0x33cadb(0x1e0),_0x98b1da[_0x33cadb(0x1ea)]=_0x33cadb(0x1ea),_0x98b1da[_0x33cadb(0x1d1)]=_0x33cadb(0x1d1),_0x98b1da))(m||{}),o=(_0x520f61=>(_0x520f61['Normal']=_0x33cadb(0x1ce),_0x520f61[_0x33cadb(0x1d9)]=_0x33cadb(0x1d9),_0x520f61['Wide']=_0x33cadb(0x1c6),_0x520f61[_0x33cadb(0x1d4)]=_0x33cadb(0x1d4),_0x520f61))(o||{});const c={[o[_0x33cadb(0x1ce)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x33cadb(0x1d9)]]:{'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}},p=_0x33cadb(0x1e6),d=_0x33cadb(0x1d8);function _0x228d(_0x3f60f8,_0x5a7deb){const _0x5432e8=_0x5432();return _0x228d=function(_0x228d6f,_0x58a97a){_0x228d6f=_0x228d6f-0x1c5;let _0x536c8f=_0x5432e8[_0x228d6f];return _0x536c8f;},_0x228d(_0x3f60f8,_0x5a7deb);}function g(_0x3bd4a8,_0x592b74,_0x597320){const _0x121bf2=_0x33cadb,_0x34b8ed=_0x597320===e[_0x121bf2(0x1ca)]?_0x3bd4a8:_0x592b74,_0x2bfb70=_0x597320===e['Portrait']?_0x592b74:_0x3bd4a8,_0x366c16='\x0a\x20\x20\x20\x20.'+d+_0x121bf2(0x1e4)+_0x34b8ed+_0x121bf2(0x1dc)+_0x2bfb70+_0x121bf2(0x1da)+p+_0x121bf2(0x1e1)+p+_0x121bf2(0x1d6)+d+_0x121bf2(0x1c8)+_0x2bfb70+_0x121bf2(0x1e3)+_0x34b8ed+_0x121bf2(0x1cb),_0x136d83=document[_0x121bf2(0x1c5)](_0x121bf2(0x1cf));return _0x136d83[_0x121bf2(0x1c9)]=_0x366c16,_0x136d83[_0x121bf2(0x1d0)]='offline-printing-css',_0x136d83;}function _0x5432(){const _0x32578b=['23466mjqNJd','printing-canvas-container','FitPage','12yOHGPN','16869622NkjZwZ','End','Custom','43074mPrSyL','createElement','Wide','8168840ktfHlT','\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','innerHTML','Portrait','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}','1243480lxGoCw','FitHeight','Normal','style','className','Middle','74874iPeHSE','1113loZLUa','None','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.','12gDsFTy','printing-canvas','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.','152065mZAIWV','px\x20','808DVaroQ','9XMhThw','Origin','Start',',\x20.','Landscape','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','\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'];_0x5432=function(){return _0x32578b;};return _0x5432();}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,m as PrintAlign,e as PrintDirection,o as PrintPaperMargin,l as PrintScale,g as createPrintStyle};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x210b(_0x578aa4,_0x2e2a90){const _0x24d081=_0x24d0();return _0x210b=function(_0x210b1d,_0x4b56ad){_0x210b1d=_0x210b1d-0xc9;let _0x4a2d83=_0x24d081[_0x210b1d];return _0x4a2d83;},_0x210b(_0x578aa4,_0x2e2a90);}function _0x24d0(){const _0x1da46b=['None','PrintDirection','28fKYKaX','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Middle','createElement','PRINT_CANVAS_CLASS','End',',\x20.','innerHTML','Custom','createPrintStyle','px\x20','amd','Narrow','Portrait','FitHeight','defineProperty','object','style','Wide','PRINT_CONTAINER_CLASS','className','exports','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','2838672ZQFhkB','349595BUEqxH','PrintScale','PrintAlign','FitPage','357254cxQEnI','Normal','\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','470880oUQkAl','function','UniverProPrint','1974176ZXkNZQ','toStringTag','Start','offline-printing-css','Origin','1509828wFdENt','44OsQGJU','\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.','FitWidth','101615BUFXnC'];_0x24d0=function(){return _0x1da46b;};return _0x24d0();}(function(_0x3a8d26,_0x55b4db){const _0x243f73=_0x210b,_0x3c2376=_0x3a8d26();while(!![]){try{const _0x55eef2=-parseInt(_0x243f73(0xd0))/0x1+parseInt(_0x243f73(0xd4))/0x2+parseInt(_0x243f73(0xdf))/0x3+-parseInt(_0x243f73(0xe0))/0x4*(-parseInt(_0x243f73(0xe3))/0x5)+-parseInt(_0x243f73(0xd7))/0x6*(-parseInt(_0x243f73(0xe6))/0x7)+-parseInt(_0x243f73(0xda))/0x8+-parseInt(_0x243f73(0xcf))/0x9;if(_0x55eef2===_0x55b4db)break;else _0x3c2376['push'](_0x3c2376['shift']());}catch(_0x2932e0){_0x3c2376['push'](_0x3c2376['shift']());}}}(_0x24d0,0x4b191),function(_0x5ac7b2,_0x5c9101){const _0x5aebcf=_0x210b;typeof exports==_0x5aebcf(0xf6)&&typeof module<'u'?_0x5c9101(exports):typeof define==_0x5aebcf(0xd8)&&define[_0x5aebcf(0xf1)]?define([_0x5aebcf(0xcd)],_0x5c9101):(_0x5ac7b2=typeof globalThis<'u'?globalThis:_0x5ac7b2||self,_0x5c9101(_0x5ac7b2[_0x5aebcf(0xd9)]={}));}(this,function(_0x505ca3){'use strict';const _0x5f39b6=_0x210b;var _0x1f7e66=(_0x1d96be=>(_0x1d96be['Portrait']='Portrait',_0x1d96be['Landscape']='Landscape',_0x1d96be))(_0x1f7e66||{}),_0x26edc2=(_0x2f1ad9=>(_0x2f1ad9[_0x5f39b6(0xde)]=_0x5f39b6(0xde),_0x2f1ad9[_0x5f39b6(0xe2)]='FitWidth',_0x2f1ad9[_0x5f39b6(0xf4)]=_0x5f39b6(0xf4),_0x2f1ad9[_0x5f39b6(0xd3)]=_0x5f39b6(0xd3),_0x2f1ad9[_0x5f39b6(0xee)]=_0x5f39b6(0xee),_0x2f1ad9))(_0x26edc2||{}),_0x43b3de=(_0x4c80db=>(_0x4c80db[_0x5f39b6(0xdc)]=_0x5f39b6(0xdc),_0x4c80db[_0x5f39b6(0xeb)]='End',_0x4c80db['Middle']=_0x5f39b6(0xe8),_0x4c80db))(_0x43b3de||{}),_0x1ab81b=(_0x300a44=>(_0x300a44[_0x5f39b6(0xd5)]=_0x5f39b6(0xd5),_0x300a44['Narrow']=_0x5f39b6(0xf2),_0x300a44[_0x5f39b6(0xca)]=_0x5f39b6(0xca),_0x300a44['None']='None',_0x300a44))(_0x1ab81b||{});const _0x5e5c83={[_0x1ab81b['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x1ab81b[_0x5f39b6(0xf2)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x1ab81b[_0x5f39b6(0xca)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x1ab81b[_0x5f39b6(0xe4)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x15a8ac='printing-canvas-container',_0x3c29cd='printing-canvas';function _0x3f13ab(_0x5ed533,_0x193143,_0x15d5ef){const _0x59c2a3=_0x5f39b6,_0x2790ae=_0x15d5ef===_0x1f7e66[_0x59c2a3(0xf3)]?_0x5ed533:_0x193143,_0x546bee=_0x15d5ef===_0x1f7e66[_0x59c2a3(0xf3)]?_0x193143:_0x5ed533,_0x37118f=_0x59c2a3(0xd6)+_0x2790ae+_0x59c2a3(0xf0)+_0x546bee+'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.'+_0x15a8ac+_0x59c2a3(0xec)+_0x15a8ac+_0x59c2a3(0xe1)+_0x3c29cd+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x546bee+_0x59c2a3(0xce)+_0x2790ae+_0x59c2a3(0xe7),_0x433998=document[_0x59c2a3(0xe9)](_0x59c2a3(0xc9));return _0x433998[_0x59c2a3(0xed)]=_0x37118f,_0x433998[_0x59c2a3(0xcc)]=_0x59c2a3(0xdd),_0x433998;}_0x505ca3[_0x5f39b6(0xea)]=_0x3c29cd,_0x505ca3[_0x5f39b6(0xcb)]=_0x15a8ac,_0x505ca3['PaperMarginMap']=_0x5e5c83,_0x505ca3[_0x5f39b6(0xd2)]=_0x43b3de,_0x505ca3[_0x5f39b6(0xe5)]=_0x1f7e66,_0x505ca3['PrintPaperMargin']=_0x1ab81b,_0x505ca3[_0x5f39b6(0xd1)]=_0x26edc2,_0x505ca3[_0x5f39b6(0xef)]=_0x3f13ab,Object[_0x5f39b6(0xf5)](_0x505ca3,Symbol[_0x5f39b6(0xdb)],{'value':'Module'});}));
1
+ function _0x4d13(_0x218dd6,_0x457187){const _0x26ed6e=_0x26ed();return _0x4d13=function(_0x4d130e,_0x5ec1af){_0x4d130e=_0x4d130e-0xa6;let _0x4a01e6=_0x26ed6e[_0x4d130e];return _0x4a01e6;},_0x4d13(_0x218dd6,_0x457187);}(function(_0x53097c,_0x1273e5){const _0x2e23c0=_0x4d13,_0x1ef016=_0x53097c();while(!![]){try{const _0x2c5229=-parseInt(_0x2e23c0(0xc0))/0x1*(-parseInt(_0x2e23c0(0xce))/0x2)+-parseInt(_0x2e23c0(0xaf))/0x3+-parseInt(_0x2e23c0(0xc1))/0x4*(-parseInt(_0x2e23c0(0xc3))/0x5)+parseInt(_0x2e23c0(0xab))/0x6+parseInt(_0x2e23c0(0xcb))/0x7*(parseInt(_0x2e23c0(0xc9))/0x8)+-parseInt(_0x2e23c0(0xd0))/0x9+-parseInt(_0x2e23c0(0xbc))/0xa;if(_0x2c5229===_0x1273e5)break;else _0x1ef016['push'](_0x1ef016['shift']());}catch(_0xb26ee0){_0x1ef016['push'](_0x1ef016['shift']());}}}(_0x26ed,0xd16ba),function(_0x261d5b,_0x393fd6){const _0xb01ba0=_0x4d13;typeof exports==_0xb01ba0(0xb1)&&typeof module<'u'?_0x393fd6(exports):typeof define==_0xb01ba0(0xb7)&&define['amd']?define([_0xb01ba0(0xc6)],_0x393fd6):(_0x261d5b=typeof globalThis<'u'?globalThis:_0x261d5b||self,_0x393fd6(_0x261d5b['UniverProPrint']={}));}(this,function(_0x38c15a){'use strict';const _0x277dbf=_0x4d13;var _0x5664c9=(_0x3600e2=>(_0x3600e2['Portrait']=_0x277dbf(0xa6),_0x3600e2[_0x277dbf(0xb4)]=_0x277dbf(0xb4),_0x3600e2))(_0x5664c9||{}),_0x347248=(_0xb30049=>(_0xb30049[_0x277dbf(0xa8)]='Origin',_0xb30049[_0x277dbf(0xc4)]='FitWidth',_0xb30049['FitHeight']=_0x277dbf(0xc8),_0xb30049[_0x277dbf(0xbd)]=_0x277dbf(0xbd),_0xb30049[_0x277dbf(0xbf)]='Custom',_0xb30049))(_0x347248||{}),_0x2936e1=(_0x11d51e=>(_0x11d51e[_0x277dbf(0xcc)]=_0x277dbf(0xcc),_0x11d51e[_0x277dbf(0xcd)]=_0x277dbf(0xcd),_0x11d51e[_0x277dbf(0xd3)]='Middle',_0x11d51e))(_0x2936e1||{}),_0x12c00a=(_0xf49502=>(_0xf49502[_0x277dbf(0xb3)]=_0x277dbf(0xb3),_0xf49502[_0x277dbf(0xaa)]=_0x277dbf(0xaa),_0xf49502[_0x277dbf(0xc5)]=_0x277dbf(0xc5),_0xf49502['None']=_0x277dbf(0xbb),_0xf49502))(_0x12c00a||{});const _0x25b17b={[_0x12c00a['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x12c00a[_0x277dbf(0xaa)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x12c00a['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x12c00a[_0x277dbf(0xbb)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x451f07=_0x277dbf(0xb2),_0x143b35=_0x277dbf(0xc7);function _0x5ae61d(_0x3006fa,_0x176cd0,_0x54e650){const _0x4928d7=_0x277dbf,_0x1e062f=_0x54e650===_0x5664c9[_0x4928d7(0xa6)]?_0x3006fa:_0x176cd0,_0x4b54f2=_0x54e650===_0x5664c9[_0x4928d7(0xa6)]?_0x176cd0:_0x3006fa,_0xebde24='\x0a\x20\x20\x20\x20.'+_0x143b35+_0x4928d7(0xad)+_0x1e062f+_0x4928d7(0xb5)+_0x4b54f2+'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.'+_0x451f07+_0x4928d7(0xd4)+_0x451f07+_0x4928d7(0xb8)+_0x143b35+'\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'+_0x4b54f2+_0x4928d7(0xb9)+_0x1e062f+_0x4928d7(0xc2),_0x49c459=document[_0x4928d7(0xcf)](_0x4928d7(0xbe));return _0x49c459[_0x4928d7(0xd1)]=_0xebde24,_0x49c459['className']='offline-printing-css',_0x49c459;}_0x38c15a[_0x277dbf(0xb6)]=_0x143b35,_0x38c15a[_0x277dbf(0xa9)]=_0x451f07,_0x38c15a[_0x277dbf(0xac)]=_0x25b17b,_0x38c15a['PrintAlign']=_0x2936e1,_0x38c15a[_0x277dbf(0xba)]=_0x5664c9,_0x38c15a[_0x277dbf(0xca)]=_0x12c00a,_0x38c15a[_0x277dbf(0xa7)]=_0x347248,_0x38c15a['createPrintStyle']=_0x5ae61d,Object[_0x277dbf(0xae)](_0x38c15a,Symbol[_0x277dbf(0xb0)],{'value':_0x277dbf(0xd2)});}));function _0x26ed(){const _0x22b6e3=['Wide','exports','printing-canvas','FitHeight','3782072fLWZHG','PrintPaperMargin','21WoUNvh','Start','End','2000118HFzvJj','createElement','7338708VNWfoQ','innerHTML','Module','Middle',',\x20.','Portrait','PrintScale','Origin','PRINT_CONTAINER_CLASS','Narrow','3288090vKDOFN','PaperMarginMap','\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','defineProperty','1995753sxpZHx','toStringTag','object','printing-canvas-container','Normal','Landscape','px\x20','PRINT_CANVAS_CLASS','function','\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.','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','PrintDirection','None','22277300pSbrpS','FitPage','style','Custom','1dqvExW','533276tLAsmU','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}','60bHbuBk','FitWidth'];_0x26ed=function(){return _0x22b6e3;};return _0x26ed();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/print",
3
- "version": "0.7.0-beta.0",
3
+ "version": "0.7.0-beta.1",
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.8.3",
46
- "vite": "^6.3.3",
47
- "vitest": "^3.1.2",
48
- "@univerjs-infra/shared": "0.7.0-beta.0"
46
+ "vite": "^6.3.5",
47
+ "vitest": "^3.1.3",
48
+ "@univerjs-infra/shared": "0.7.0-beta.1"
49
49
  },
50
50
  "scripts": {
51
51
  "test": "vitest run",