@univerjs-pro/print 0.10.7 → 0.10.8

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 _0x5dbec4=_0x4a40;(function(_0x1585d8,_0x210fdd){const _0x3319bc=_0x4a40,_0x3de232=_0x1585d8();while(!![]){try{const _0x5519c3=parseInt(_0x3319bc(0x101))/0x1+parseInt(_0x3319bc(0x104))/0x2*(parseInt(_0x3319bc(0x123))/0x3)+parseInt(_0x3319bc(0x118))/0x4*(parseInt(_0x3319bc(0x10e))/0x5)+-parseInt(_0x3319bc(0xfd))/0x6+parseInt(_0x3319bc(0x117))/0x7+parseInt(_0x3319bc(0xfc))/0x8*(parseInt(_0x3319bc(0x10d))/0x9)+-parseInt(_0x3319bc(0x11a))/0xa*(parseInt(_0x3319bc(0x126))/0xb);if(_0x5519c3===_0x210fdd)break;else _0x3de232['push'](_0x3de232['shift']());}catch(_0x355fd0){_0x3de232['push'](_0x3de232['shift']());}}}(_0x13ab,0x5ae74));Object['defineProperty'](exports,Symbol[_0x5dbec4(0x114)],{'value':_0x5dbec4(0x127)});var e=(_0x385844=>(_0x385844['Portrait']=_0x5dbec4(0x125),_0x385844[_0x5dbec4(0xfe)]=_0x5dbec4(0xfe),_0x385844))(e||{}),l=(_0xb93603=>(_0xb93603[_0x5dbec4(0xff)]=_0x5dbec4(0xff),_0xb93603['FitWidth']=_0x5dbec4(0x103),_0xb93603[_0x5dbec4(0x11f)]=_0x5dbec4(0x11f),_0xb93603[_0x5dbec4(0x113)]=_0x5dbec4(0x113),_0xb93603['Custom']=_0x5dbec4(0x10b),_0xb93603))(l||{}),c=(_0x143166=>(_0x143166[_0x5dbec4(0x109)]=_0x5dbec4(0x109),_0x143166[_0x5dbec4(0x116)]=_0x5dbec4(0x116),_0x143166[_0x5dbec4(0x11c)]=_0x5dbec4(0x11c),_0x143166))(c||{}),i=(_0x10326c=>(_0x10326c['Normal']=_0x5dbec4(0x107),_0x10326c['Narrow']=_0x5dbec4(0x122),_0x10326c[_0x5dbec4(0x11e)]=_0x5dbec4(0x11e),_0x10326c[_0x5dbec4(0x10f)]=_0x5dbec4(0x10f),_0x10326c))(i||{});const h={[i[_0x5dbec4(0x107)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i[_0x5dbec4(0x122)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i[_0x5dbec4(0x11e)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i[_0x5dbec4(0x10f)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x5dbec4(0x110),n='printing-canvas';function _0x4a40(_0x1906b6,_0x3f2448){const _0x13ab9c=_0x13ab();return _0x4a40=function(_0x4a4084,_0x46f849){_0x4a4084=_0x4a4084-0xfa;let _0x524a60=_0x13ab9c[_0x4a4084];return _0x524a60;},_0x4a40(_0x1906b6,_0x3f2448);}function _0x13ab(){const _0x2f5b7b=['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}','687094SCKnJb','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.','FitWidth','3742WBBIJE','px\x20','PrintPaperMargin','Normal','PRINT_CONTAINER_CLASS','Start','offline-printing-css','Custom',',\x20.','663786iLaOsD','1838330vSalaP','None','printing-canvas-container','PaperMarginMap','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','FitPage','toStringTag','\x0a\x20\x20\x20\x20.','End','417865mwrHwh','4rXSNpb','\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','50EEIZli','createElement','Middle','style','Wide','FitHeight','PrintAlign','PRINT_CANVAS_CLASS','Narrow','339GdCwQr','innerHTML','Portrait','845009nWfIJW','Module','PrintScale','PrintDirection','8KxDbLw','3859182WaawXj','Landscape'];_0x13ab=function(){return _0x2f5b7b;};return _0x13ab();}function m(_0x302eb7,_0x286952,_0x31b82d){const _0x7611f4=_0x5dbec4,_0x2c4f8c=_0x31b82d===e[_0x7611f4(0x125)]?_0x302eb7:_0x286952,_0xfcefd5=_0x31b82d===e['Portrait']?_0x286952:_0x302eb7,_0x2c194e=_0x7611f4(0x115)+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'+_0x2c4f8c+_0x7611f4(0x105)+_0xfcefd5+_0x7611f4(0x102)+r+_0x7611f4(0x10c)+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+_0x7611f4(0x119)+_0xfcefd5+_0x7611f4(0x112)+_0x2c4f8c+_0x7611f4(0x100),_0x5d09d8=document[_0x7611f4(0x11b)](_0x7611f4(0x11d));return _0x5d09d8[_0x7611f4(0x124)]=_0x2c194e,_0x5d09d8['className']=_0x7611f4(0x10a),_0x5d09d8;}exports[_0x5dbec4(0x121)]=n,exports[_0x5dbec4(0x108)]=r,exports[_0x5dbec4(0x111)]=h,exports[_0x5dbec4(0x120)]=c,exports[_0x5dbec4(0xfb)]=e,exports[_0x5dbec4(0x106)]=i,exports[_0x5dbec4(0xfa)]=l,exports['createPrintStyle']=m;
1
+ 'use strict';const _0x2a30df=_0x2357;function _0x2357(_0x2c5a99,_0x5eb630){const _0x39a480=_0x39a4();return _0x2357=function(_0x2357e6,_0xf9a21b){_0x2357e6=_0x2357e6-0x121;let _0x227640=_0x39a480[_0x2357e6];return _0x227640;},_0x2357(_0x2c5a99,_0x5eb630);}(function(_0xdbdb2d,_0x6797e8){const _0x3b63fa=_0x2357,_0xde9fab=_0xdbdb2d();while(!![]){try{const _0x450b39=-parseInt(_0x3b63fa(0x130))/0x1+parseInt(_0x3b63fa(0x133))/0x2+parseInt(_0x3b63fa(0x135))/0x3+-parseInt(_0x3b63fa(0x149))/0x4+parseInt(_0x3b63fa(0x126))/0x5+-parseInt(_0x3b63fa(0x132))/0x6+parseInt(_0x3b63fa(0x13f))/0x7;if(_0x450b39===_0x6797e8)break;else _0xde9fab['push'](_0xde9fab['shift']());}catch(_0xd9a062){_0xde9fab['push'](_0xde9fab['shift']());}}}(_0x39a4,0xd8671));Object[_0x2a30df(0x14c)](exports,Symbol[_0x2a30df(0x136)],{'value':_0x2a30df(0x134)});var i=(_0x314743=>(_0x314743['Portrait']=_0x2a30df(0x148),_0x314743['Landscape']=_0x2a30df(0x139),_0x314743))(i||{}),l=(_0x38a1d0=>(_0x38a1d0[_0x2a30df(0x144)]='Origin',_0x38a1d0[_0x2a30df(0x123)]=_0x2a30df(0x123),_0x38a1d0['FitHeight']=_0x2a30df(0x12c),_0x38a1d0[_0x2a30df(0x122)]=_0x2a30df(0x122),_0x38a1d0['Custom']=_0x2a30df(0x125),_0x38a1d0))(l||{}),m=(_0x6bc7b4=>(_0x6bc7b4[_0x2a30df(0x12e)]='Start',_0x6bc7b4[_0x2a30df(0x141)]=_0x2a30df(0x141),_0x6bc7b4[_0x2a30df(0x13c)]='Middle',_0x6bc7b4))(m||{}),o=(_0x4cb1b5=>(_0x4cb1b5['Normal']=_0x2a30df(0x13b),_0x4cb1b5['Narrow']=_0x2a30df(0x12f),_0x4cb1b5[_0x2a30df(0x138)]=_0x2a30df(0x138),_0x4cb1b5[_0x2a30df(0x13d)]=_0x2a30df(0x13d),_0x4cb1b5[_0x2a30df(0x125)]='Custom',_0x4cb1b5))(o||{});const g={[o[_0x2a30df(0x13b)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x2a30df(0x138)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x2a30df(0x13d)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x2a30df(0x125)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r='printing-canvas-container',n=_0x2a30df(0x12a);function h(_0x29e954,_0x6427fd,_0x46d3ca){const _0x2d4475=_0x2a30df,_0x33dab4=_0x46d3ca===i[_0x2d4475(0x148)]?_0x29e954:_0x6427fd,_0x22164f=_0x46d3ca===i[_0x2d4475(0x148)]?_0x6427fd:_0x29e954,_0xd3a80a=_0x2d4475(0x147)+n+_0x2d4475(0x121)+_0x33dab4+_0x2d4475(0x127)+_0x22164f+_0x2d4475(0x128)+r+_0x2d4475(0x140)+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+_0x2d4475(0x143)+_0x22164f+_0x2d4475(0x13e)+_0x33dab4+_0x2d4475(0x12d),_0x19d191=document[_0x2d4475(0x145)](_0x2d4475(0x137));return _0x19d191[_0x2d4475(0x14a)]=_0xd3a80a,_0x19d191[_0x2d4475(0x129)]=_0x2d4475(0x12b),_0x19d191;}function _0x39a4(){const _0x13277d=['printing-canvas','offline-printing-css','FitHeight','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','Narrow','1670261kOzOyo','PrintAlign','6293574XPPPib','1021628nXgYId','Module','3752676vlJlpq','toStringTag','style','Wide','Landscape','PrintScale','Normal','Middle','None','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','6445859eEYWXl',',\x20.','End','PrintPaperMargin','\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','Origin','createElement','createPrintStyle','\x0a\x20\x20\x20\x20.','Portrait','3194632OQqMNM','innerHTML','PaperMarginMap','defineProperty','\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','FitPage','FitWidth','PrintDirection','Custom','8608450excrwT','px\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.','className'];_0x39a4=function(){return _0x13277d;};return _0x39a4();}exports['PRINT_CANVAS_CLASS']=n,exports['PRINT_CONTAINER_CLASS']=r,exports[_0x2a30df(0x14b)]=g,exports[_0x2a30df(0x131)]=m,exports[_0x2a30df(0x124)]=i,exports[_0x2a30df(0x142)]=o,exports[_0x2a30df(0x13a)]=l,exports[_0x2a30df(0x146)]=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- function _0x44d6(){const _0x128609=['7sAQoUK','1195230IqMrBx','4yByjhO',',\x20.','\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.','className','Middle','None','3154464uLYHjN','Start','291908ZfuKGT','\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','printing-canvas-container','Normal','px\x20','6878770WBTuKN','1002465rGJdBf','6BdtFQX','printing-canvas','FitPage','style','875826UyLYkX','Portrait','End','createElement','offline-printing-css','FitHeight','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Landscape','Wide','Narrow','140799VhpHPX','FitWidth','Custom','Origin','\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'];_0x44d6=function(){return _0x128609;};return _0x44d6();}const _0x5e86e9=_0x2eeb;(function(_0x3bf8e6,_0x4323cc){const _0x5a7fd5=_0x2eeb,_0x533a75=_0x3bf8e6();while(!![]){try{const _0x770ab1=parseInt(_0x5a7fd5(0x1bc))/0x1*(parseInt(_0x5a7fd5(0x1c3))/0x2)+-parseInt(_0x5a7fd5(0x1ae))/0x3*(-parseInt(_0x5a7fd5(0x1a7))/0x4)+-parseInt(_0x5a7fd5(0x1ad))/0x5+parseInt(_0x5a7fd5(0x1c2))/0x6*(-parseInt(_0x5a7fd5(0x1c1))/0x7)+-parseInt(_0x5a7fd5(0x1c9))/0x8+-parseInt(_0x5a7fd5(0x1b2))/0x9+parseInt(_0x5a7fd5(0x1ac))/0xa;if(_0x770ab1===_0x4323cc)break;else _0x533a75['push'](_0x533a75['shift']());}catch(_0x57d88b){_0x533a75['push'](_0x533a75['shift']());}}}(_0x44d6,0x36b6d));var e=(_0x313999=>(_0x313999['Portrait']=_0x5e86e9(0x1b3),_0x313999['Landscape']=_0x5e86e9(0x1b9),_0x313999))(e||{}),l=(_0x4026ea=>(_0x4026ea[_0x5e86e9(0x1bf)]='Origin',_0x4026ea[_0x5e86e9(0x1bd)]=_0x5e86e9(0x1bd),_0x4026ea[_0x5e86e9(0x1b7)]='FitHeight',_0x4026ea['FitPage']=_0x5e86e9(0x1b0),_0x4026ea[_0x5e86e9(0x1be)]=_0x5e86e9(0x1be),_0x4026ea))(l||{}),m=(_0x49501f=>(_0x49501f[_0x5e86e9(0x1a6)]=_0x5e86e9(0x1a6),_0x49501f[_0x5e86e9(0x1b4)]='End',_0x49501f[_0x5e86e9(0x1c7)]=_0x5e86e9(0x1c7),_0x49501f))(m||{}),o=(_0x1ab0db=>(_0x1ab0db['Normal']='Normal',_0x1ab0db[_0x5e86e9(0x1bb)]=_0x5e86e9(0x1bb),_0x1ab0db[_0x5e86e9(0x1ba)]=_0x5e86e9(0x1ba),_0x1ab0db[_0x5e86e9(0x1c8)]=_0x5e86e9(0x1c8),_0x1ab0db))(o||{});const c={[o[_0x5e86e9(0x1aa)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x5e86e9(0x1bb)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x5e86e9(0x1c8)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x5e86e9(0x1a9),d=_0x5e86e9(0x1af);function _0x2eeb(_0x28ccd6,_0x15eecf){const _0x44d65b=_0x44d6();return _0x2eeb=function(_0x2eeba3,_0x165797){_0x2eeba3=_0x2eeba3-0x1a6;let _0x1937aa=_0x44d65b[_0x2eeba3];return _0x1937aa;},_0x2eeb(_0x28ccd6,_0x15eecf);}function g(_0x31016a,_0x4422d2,_0xcec3fd){const _0x2c9eff=_0x5e86e9,_0x28cd53=_0xcec3fd===e[_0x2c9eff(0x1b3)]?_0x31016a:_0x4422d2,_0x50da1a=_0xcec3fd===e[_0x2c9eff(0x1b3)]?_0x4422d2:_0x31016a,_0x8bbea5='\x0a\x20\x20\x20\x20.'+d+_0x2c9eff(0x1a8)+_0x28cd53+_0x2c9eff(0x1ab)+_0x50da1a+'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.'+p+_0x2c9eff(0x1c4)+p+_0x2c9eff(0x1c5)+d+_0x2c9eff(0x1c0)+_0x50da1a+_0x2c9eff(0x1b8)+_0x28cd53+'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}',_0x57c8da=document[_0x2c9eff(0x1b5)](_0x2c9eff(0x1b1));return _0x57c8da['innerHTML']=_0x8bbea5,_0x57c8da[_0x2c9eff(0x1c6)]=_0x2c9eff(0x1b6),_0x57c8da;}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};
1
+ function _0x3abd(){const _0x57a5a8=['offline-printing-css','FitWidth','Landscape','55636XLTTBF','8HhwOzp','className','140169HJJcVN','\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','None','180BwNOnN','FitPage','\x0a\x20\x20\x20\x20.','createElement','10Ejiuxj','Middle','\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.','164826jeOams','Start','Origin','600383TSjHdT','\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','Portrait','FitHeight','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.','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}','162404uZdOWt','4VWLUnB','Narrow','End','Normal','Wide','6ErsbuW','printing-canvas-container','printing-canvas','Custom',',\x20.','454758nBsNwl','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','2057652sIXRzc'];_0x3abd=function(){return _0x57a5a8;};return _0x3abd();}const _0x5f2e58=_0x2847;function _0x2847(_0x3cfd65,_0x5882a3){const _0x3abdb0=_0x3abd();return _0x2847=function(_0x28472b,_0x1b6fb5){_0x28472b=_0x28472b-0xa0;let _0xdbf7f7=_0x3abdb0[_0x28472b];return _0xdbf7f7;},_0x2847(_0x3cfd65,_0x5882a3);}(function(_0x4b356a,_0x198d82){const _0x10e064=_0x2847,_0x281936=_0x4b356a();while(!![]){try{const _0x3bc2b2=-parseInt(_0x10e064(0xad))/0x1*(parseInt(_0x10e064(0xa2))/0x2)+-parseInt(_0x10e064(0xb0))/0x3*(parseInt(_0x10e064(0xc4))/0x4)+-parseInt(_0x10e064(0xb7))/0x5*(-parseInt(_0x10e064(0xa7))/0x6)+parseInt(_0x10e064(0xbd))/0x7+-parseInt(_0x10e064(0xae))/0x8*(-parseInt(_0x10e064(0xba))/0x9)+-parseInt(_0x10e064(0xb3))/0xa*(-parseInt(_0x10e064(0xc3))/0xb)+-parseInt(_0x10e064(0xa9))/0xc;if(_0x3bc2b2===_0x198d82)break;else _0x281936['push'](_0x281936['shift']());}catch(_0x95f7e6){_0x281936['push'](_0x281936['shift']());}}}(_0x3abd,0x2147f));var e=(_0x27143e=>(_0x27143e[_0x5f2e58(0xbf)]=_0x5f2e58(0xbf),_0x27143e[_0x5f2e58(0xac)]=_0x5f2e58(0xac),_0x27143e))(e||{}),h=(_0x1ad40a=>(_0x1ad40a[_0x5f2e58(0xbc)]='Origin',_0x1ad40a[_0x5f2e58(0xab)]=_0x5f2e58(0xab),_0x1ad40a[_0x5f2e58(0xc0)]=_0x5f2e58(0xc0),_0x1ad40a['FitPage']=_0x5f2e58(0xb4),_0x1ad40a[_0x5f2e58(0xa5)]=_0x5f2e58(0xa5),_0x1ad40a))(h||{}),l=(_0x1b39d5=>(_0x1b39d5['Start']=_0x5f2e58(0xbb),_0x1b39d5[_0x5f2e58(0xc6)]='End',_0x1b39d5[_0x5f2e58(0xb8)]=_0x5f2e58(0xb8),_0x1b39d5))(l||{}),o=(_0xe1f636=>(_0xe1f636['Normal']=_0x5f2e58(0xa0),_0xe1f636[_0x5f2e58(0xc5)]=_0x5f2e58(0xc5),_0xe1f636[_0x5f2e58(0xa1)]=_0x5f2e58(0xa1),_0xe1f636[_0x5f2e58(0xb2)]=_0x5f2e58(0xb2),_0xe1f636[_0x5f2e58(0xa5)]='Custom',_0xe1f636))(o||{});const c={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x5f2e58(0xc5)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x5f2e58(0xa1)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x5f2e58(0xb2)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o['Custom']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x5f2e58(0xa3),d=_0x5f2e58(0xa4);function g(_0x27118f,_0x2eef8f,_0x5a31c5){const _0x2de8d1=_0x5f2e58,_0x1e3e1f=_0x5a31c5===e['Portrait']?_0x27118f:_0x2eef8f,_0x505ba5=_0x5a31c5===e['Portrait']?_0x2eef8f:_0x27118f,_0x2fa812=_0x2de8d1(0xb5)+d+_0x2de8d1(0xb1)+_0x1e3e1f+'px\x20'+_0x505ba5+_0x2de8d1(0xc1)+p+_0x2de8d1(0xa6)+p+_0x2de8d1(0xb9)+d+_0x2de8d1(0xbe)+_0x505ba5+_0x2de8d1(0xa8)+_0x1e3e1f+_0x2de8d1(0xc2),_0x290a91=document[_0x2de8d1(0xb6)]('style');return _0x290a91['innerHTML']=_0x2fa812,_0x290a91[_0x2de8d1(0xaf)]=_0x2de8d1(0xaa),_0x290a91;}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 _0x44d6(){const _0x128609=['7sAQoUK','1195230IqMrBx','4yByjhO',',\x20.','\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.','className','Middle','None','3154464uLYHjN','Start','291908ZfuKGT','\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','printing-canvas-container','Normal','px\x20','6878770WBTuKN','1002465rGJdBf','6BdtFQX','printing-canvas','FitPage','style','875826UyLYkX','Portrait','End','createElement','offline-printing-css','FitHeight','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Landscape','Wide','Narrow','140799VhpHPX','FitWidth','Custom','Origin','\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'];_0x44d6=function(){return _0x128609;};return _0x44d6();}const _0x5e86e9=_0x2eeb;(function(_0x3bf8e6,_0x4323cc){const _0x5a7fd5=_0x2eeb,_0x533a75=_0x3bf8e6();while(!![]){try{const _0x770ab1=parseInt(_0x5a7fd5(0x1bc))/0x1*(parseInt(_0x5a7fd5(0x1c3))/0x2)+-parseInt(_0x5a7fd5(0x1ae))/0x3*(-parseInt(_0x5a7fd5(0x1a7))/0x4)+-parseInt(_0x5a7fd5(0x1ad))/0x5+parseInt(_0x5a7fd5(0x1c2))/0x6*(-parseInt(_0x5a7fd5(0x1c1))/0x7)+-parseInt(_0x5a7fd5(0x1c9))/0x8+-parseInt(_0x5a7fd5(0x1b2))/0x9+parseInt(_0x5a7fd5(0x1ac))/0xa;if(_0x770ab1===_0x4323cc)break;else _0x533a75['push'](_0x533a75['shift']());}catch(_0x57d88b){_0x533a75['push'](_0x533a75['shift']());}}}(_0x44d6,0x36b6d));var e=(_0x313999=>(_0x313999['Portrait']=_0x5e86e9(0x1b3),_0x313999['Landscape']=_0x5e86e9(0x1b9),_0x313999))(e||{}),l=(_0x4026ea=>(_0x4026ea[_0x5e86e9(0x1bf)]='Origin',_0x4026ea[_0x5e86e9(0x1bd)]=_0x5e86e9(0x1bd),_0x4026ea[_0x5e86e9(0x1b7)]='FitHeight',_0x4026ea['FitPage']=_0x5e86e9(0x1b0),_0x4026ea[_0x5e86e9(0x1be)]=_0x5e86e9(0x1be),_0x4026ea))(l||{}),m=(_0x49501f=>(_0x49501f[_0x5e86e9(0x1a6)]=_0x5e86e9(0x1a6),_0x49501f[_0x5e86e9(0x1b4)]='End',_0x49501f[_0x5e86e9(0x1c7)]=_0x5e86e9(0x1c7),_0x49501f))(m||{}),o=(_0x1ab0db=>(_0x1ab0db['Normal']='Normal',_0x1ab0db[_0x5e86e9(0x1bb)]=_0x5e86e9(0x1bb),_0x1ab0db[_0x5e86e9(0x1ba)]=_0x5e86e9(0x1ba),_0x1ab0db[_0x5e86e9(0x1c8)]=_0x5e86e9(0x1c8),_0x1ab0db))(o||{});const c={[o[_0x5e86e9(0x1aa)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x5e86e9(0x1bb)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x5e86e9(0x1c8)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x5e86e9(0x1a9),d=_0x5e86e9(0x1af);function _0x2eeb(_0x28ccd6,_0x15eecf){const _0x44d65b=_0x44d6();return _0x2eeb=function(_0x2eeba3,_0x165797){_0x2eeba3=_0x2eeba3-0x1a6;let _0x1937aa=_0x44d65b[_0x2eeba3];return _0x1937aa;},_0x2eeb(_0x28ccd6,_0x15eecf);}function g(_0x31016a,_0x4422d2,_0xcec3fd){const _0x2c9eff=_0x5e86e9,_0x28cd53=_0xcec3fd===e[_0x2c9eff(0x1b3)]?_0x31016a:_0x4422d2,_0x50da1a=_0xcec3fd===e[_0x2c9eff(0x1b3)]?_0x4422d2:_0x31016a,_0x8bbea5='\x0a\x20\x20\x20\x20.'+d+_0x2c9eff(0x1a8)+_0x28cd53+_0x2c9eff(0x1ab)+_0x50da1a+'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.'+p+_0x2c9eff(0x1c4)+p+_0x2c9eff(0x1c5)+d+_0x2c9eff(0x1c0)+_0x50da1a+_0x2c9eff(0x1b8)+_0x28cd53+'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}',_0x57c8da=document[_0x2c9eff(0x1b5)](_0x2c9eff(0x1b1));return _0x57c8da['innerHTML']=_0x8bbea5,_0x57c8da[_0x2c9eff(0x1c6)]=_0x2c9eff(0x1b6),_0x57c8da;}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};
1
+ function _0x3abd(){const _0x57a5a8=['offline-printing-css','FitWidth','Landscape','55636XLTTBF','8HhwOzp','className','140169HJJcVN','\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','None','180BwNOnN','FitPage','\x0a\x20\x20\x20\x20.','createElement','10Ejiuxj','Middle','\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.','164826jeOams','Start','Origin','600383TSjHdT','\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','Portrait','FitHeight','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.','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}','162404uZdOWt','4VWLUnB','Narrow','End','Normal','Wide','6ErsbuW','printing-canvas-container','printing-canvas','Custom',',\x20.','454758nBsNwl','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','2057652sIXRzc'];_0x3abd=function(){return _0x57a5a8;};return _0x3abd();}const _0x5f2e58=_0x2847;function _0x2847(_0x3cfd65,_0x5882a3){const _0x3abdb0=_0x3abd();return _0x2847=function(_0x28472b,_0x1b6fb5){_0x28472b=_0x28472b-0xa0;let _0xdbf7f7=_0x3abdb0[_0x28472b];return _0xdbf7f7;},_0x2847(_0x3cfd65,_0x5882a3);}(function(_0x4b356a,_0x198d82){const _0x10e064=_0x2847,_0x281936=_0x4b356a();while(!![]){try{const _0x3bc2b2=-parseInt(_0x10e064(0xad))/0x1*(parseInt(_0x10e064(0xa2))/0x2)+-parseInt(_0x10e064(0xb0))/0x3*(parseInt(_0x10e064(0xc4))/0x4)+-parseInt(_0x10e064(0xb7))/0x5*(-parseInt(_0x10e064(0xa7))/0x6)+parseInt(_0x10e064(0xbd))/0x7+-parseInt(_0x10e064(0xae))/0x8*(-parseInt(_0x10e064(0xba))/0x9)+-parseInt(_0x10e064(0xb3))/0xa*(-parseInt(_0x10e064(0xc3))/0xb)+-parseInt(_0x10e064(0xa9))/0xc;if(_0x3bc2b2===_0x198d82)break;else _0x281936['push'](_0x281936['shift']());}catch(_0x95f7e6){_0x281936['push'](_0x281936['shift']());}}}(_0x3abd,0x2147f));var e=(_0x27143e=>(_0x27143e[_0x5f2e58(0xbf)]=_0x5f2e58(0xbf),_0x27143e[_0x5f2e58(0xac)]=_0x5f2e58(0xac),_0x27143e))(e||{}),h=(_0x1ad40a=>(_0x1ad40a[_0x5f2e58(0xbc)]='Origin',_0x1ad40a[_0x5f2e58(0xab)]=_0x5f2e58(0xab),_0x1ad40a[_0x5f2e58(0xc0)]=_0x5f2e58(0xc0),_0x1ad40a['FitPage']=_0x5f2e58(0xb4),_0x1ad40a[_0x5f2e58(0xa5)]=_0x5f2e58(0xa5),_0x1ad40a))(h||{}),l=(_0x1b39d5=>(_0x1b39d5['Start']=_0x5f2e58(0xbb),_0x1b39d5[_0x5f2e58(0xc6)]='End',_0x1b39d5[_0x5f2e58(0xb8)]=_0x5f2e58(0xb8),_0x1b39d5))(l||{}),o=(_0xe1f636=>(_0xe1f636['Normal']=_0x5f2e58(0xa0),_0xe1f636[_0x5f2e58(0xc5)]=_0x5f2e58(0xc5),_0xe1f636[_0x5f2e58(0xa1)]=_0x5f2e58(0xa1),_0xe1f636[_0x5f2e58(0xb2)]=_0x5f2e58(0xb2),_0xe1f636[_0x5f2e58(0xa5)]='Custom',_0xe1f636))(o||{});const c={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x5f2e58(0xc5)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x5f2e58(0xa1)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x5f2e58(0xb2)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o['Custom']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x5f2e58(0xa3),d=_0x5f2e58(0xa4);function g(_0x27118f,_0x2eef8f,_0x5a31c5){const _0x2de8d1=_0x5f2e58,_0x1e3e1f=_0x5a31c5===e['Portrait']?_0x27118f:_0x2eef8f,_0x505ba5=_0x5a31c5===e['Portrait']?_0x2eef8f:_0x27118f,_0x2fa812=_0x2de8d1(0xb5)+d+_0x2de8d1(0xb1)+_0x1e3e1f+'px\x20'+_0x505ba5+_0x2de8d1(0xc1)+p+_0x2de8d1(0xa6)+p+_0x2de8d1(0xb9)+d+_0x2de8d1(0xbe)+_0x505ba5+_0x2de8d1(0xa8)+_0x1e3e1f+_0x2de8d1(0xc2),_0x290a91=document[_0x2de8d1(0xb6)]('style');return _0x290a91['innerHTML']=_0x2fa812,_0x290a91[_0x2de8d1(0xaf)]=_0x2de8d1(0xaa),_0x290a91;}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};
@@ -18,7 +18,8 @@ export declare enum PrintPaperMargin {
18
18
  Normal = "Normal",
19
19
  Narrow = "Narrow",
20
20
  Wide = "Wide",
21
- None = "None"
21
+ None = "None",
22
+ Custom = "Custom"
22
23
  }
23
24
  export interface IPrintMargin {
24
25
  top: number;
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x1564(){const _0x136559=['style','451338poQkQS','\x0a\x20\x20\x20\x20.','\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.','createElement','916zZdWQn','PaperMarginMap','PrintDirection','Wide','PRINT_CONTAINER_CLASS','5169760ZGOTNR','4448279dkpFvq',',\x20.','None','Normal','End','function','45IIsDyu','Origin','innerHTML','Module','323450kShsgQ','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}','offline-printing-css','\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','861535AzTBdI','2652RKjBtJ','toStringTag','FitWidth','defineProperty','amd','PrintScale','18433UBXcOf','Portrait','21FnZigC','Start','createPrintStyle','FitPage','\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','Narrow','58TxOaYD','Middle','Custom','printing-canvas','FitHeight','exports'];_0x1564=function(){return _0x136559;};return _0x1564();}function _0x4471(_0x4c1c83,_0x12cf91){const _0x1564bf=_0x1564();return _0x4471=function(_0x44712c,_0xef01ca){_0x44712c=_0x44712c-0x188;let _0x56dae1=_0x1564bf[_0x44712c];return _0x56dae1;},_0x4471(_0x4c1c83,_0x12cf91);}(function(_0x171bff,_0x11facd){const _0x21f7d1=_0x4471,_0x56298d=_0x171bff();while(!![]){try{const _0x4de57e=parseInt(_0x21f7d1(0x19b))/0x1*(parseInt(_0x21f7d1(0x1a3))/0x2)+-parseInt(_0x21f7d1(0x195))/0x3*(parseInt(_0x21f7d1(0x1ae))/0x4)+parseInt(_0x21f7d1(0x194))/0x5+parseInt(_0x21f7d1(0x1aa))/0x6*(parseInt(_0x21f7d1(0x19d))/0x7)+-parseInt(_0x21f7d1(0x1b3))/0x8+parseInt(_0x21f7d1(0x18c))/0x9*(-parseInt(_0x21f7d1(0x190))/0xa)+parseInt(_0x21f7d1(0x1b4))/0xb;if(_0x4de57e===_0x11facd)break;else _0x56298d['push'](_0x56298d['shift']());}catch(_0x4d865d){_0x56298d['push'](_0x56298d['shift']());}}}(_0x1564,0x4fb8d),function(_0x581e0e,_0x599578){const _0x2ca1be=_0x4471;typeof exports=='object'&&typeof module<'u'?_0x599578(exports):typeof define==_0x2ca1be(0x18b)&&define[_0x2ca1be(0x199)]?define([_0x2ca1be(0x1a8)],_0x599578):(_0x581e0e=typeof globalThis<'u'?globalThis:_0x581e0e||self,_0x599578(_0x581e0e['UniverProPrint']={}));}(this,function(_0x240a00){'use strict';const _0x577960=_0x4471;var _0x1c5771=(_0x306807=>(_0x306807[_0x577960(0x19c)]=_0x577960(0x19c),_0x306807['Landscape']='Landscape',_0x306807))(_0x1c5771||{}),_0x12af90=(_0x3404e2=>(_0x3404e2['Origin']=_0x577960(0x18d),_0x3404e2['FitWidth']=_0x577960(0x197),_0x3404e2[_0x577960(0x1a7)]=_0x577960(0x1a7),_0x3404e2['FitPage']=_0x577960(0x1a0),_0x3404e2[_0x577960(0x1a5)]=_0x577960(0x1a5),_0x3404e2))(_0x12af90||{}),_0x526ed2=(_0x4fb77d=>(_0x4fb77d[_0x577960(0x19e)]=_0x577960(0x19e),_0x4fb77d['End']=_0x577960(0x18a),_0x4fb77d[_0x577960(0x1a4)]='Middle',_0x4fb77d))(_0x526ed2||{}),_0x5e531d=(_0x327bea=>(_0x327bea[_0x577960(0x189)]=_0x577960(0x189),_0x327bea[_0x577960(0x1a2)]=_0x577960(0x1a2),_0x327bea[_0x577960(0x1b1)]=_0x577960(0x1b1),_0x327bea[_0x577960(0x188)]=_0x577960(0x188),_0x327bea))(_0x5e531d||{});const _0x1bdad2={[_0x5e531d[_0x577960(0x189)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x5e531d[_0x577960(0x1a2)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x5e531d[_0x577960(0x1b1)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x5e531d[_0x577960(0x188)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x13ce82='printing-canvas-container',_0x20419c=_0x577960(0x1a6);function _0x227a22(_0x5cd2d2,_0x56c4a9,_0x4960a5){const _0x599372=_0x577960,_0x3b538c=_0x4960a5===_0x1c5771[_0x599372(0x19c)]?_0x5cd2d2:_0x56c4a9,_0xaa2440=_0x4960a5===_0x1c5771['Portrait']?_0x56c4a9:_0x5cd2d2,_0x38bf95=_0x599372(0x1ab)+_0x20419c+_0x599372(0x193)+_0x3b538c+'px\x20'+_0xaa2440+'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.'+_0x13ce82+_0x599372(0x1b5)+_0x13ce82+_0x599372(0x1ac)+_0x20419c+_0x599372(0x1a1)+_0xaa2440+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x3b538c+_0x599372(0x191),_0x2caa79=document[_0x599372(0x1ad)](_0x599372(0x1a9));return _0x2caa79[_0x599372(0x18e)]=_0x38bf95,_0x2caa79['className']=_0x599372(0x192),_0x2caa79;}_0x240a00['PRINT_CANVAS_CLASS']=_0x20419c,_0x240a00[_0x577960(0x1b2)]=_0x13ce82,_0x240a00[_0x577960(0x1af)]=_0x1bdad2,_0x240a00['PrintAlign']=_0x526ed2,_0x240a00[_0x577960(0x1b0)]=_0x1c5771,_0x240a00['PrintPaperMargin']=_0x5e531d,_0x240a00[_0x577960(0x19a)]=_0x12af90,_0x240a00[_0x577960(0x19f)]=_0x227a22,Object[_0x577960(0x198)](_0x240a00,Symbol[_0x577960(0x196)],{'value':_0x577960(0x18f)});}));
1
+ (function(_0xa9a2b8,_0x22fec1){const _0x4f7b4a=_0x45f3,_0x162af4=_0xa9a2b8();while(!![]){try{const _0x4bff59=-parseInt(_0x4f7b4a(0x1f2))/0x1+parseInt(_0x4f7b4a(0x212))/0x2+-parseInt(_0x4f7b4a(0x20a))/0x3+-parseInt(_0x4f7b4a(0x21b))/0x4+parseInt(_0x4f7b4a(0x1ff))/0x5*(parseInt(_0x4f7b4a(0x204))/0x6)+-parseInt(_0x4f7b4a(0x1f4))/0x7*(-parseInt(_0x4f7b4a(0x206))/0x8)+-parseInt(_0x4f7b4a(0x203))/0x9*(-parseInt(_0x4f7b4a(0x20d))/0xa);if(_0x4bff59===_0x22fec1)break;else _0x162af4['push'](_0x162af4['shift']());}catch(_0xb8bf5c){_0x162af4['push'](_0x162af4['shift']());}}}(_0x1f06,0x1b138),function(_0x42d0c3,_0x23bc0b){const _0x56c529=_0x45f3;typeof exports=='object'&&typeof module<'u'?_0x23bc0b(exports):typeof define==_0x56c529(0x214)&&define[_0x56c529(0x1fb)]?define([_0x56c529(0x20b)],_0x23bc0b):(_0x42d0c3=typeof globalThis<'u'?globalThis:_0x42d0c3||self,_0x23bc0b(_0x42d0c3[_0x56c529(0x1fa)]={}));}(this,function(_0xb87fa8){'use strict';const _0x413f41=_0x45f3;var _0x130c20=(_0x4d2004=>(_0x4d2004[_0x413f41(0x202)]=_0x413f41(0x202),_0x4d2004[_0x413f41(0x211)]='Landscape',_0x4d2004))(_0x130c20||{}),_0x2da385=(_0x40f2b4=>(_0x40f2b4['Origin']=_0x413f41(0x201),_0x40f2b4[_0x413f41(0x210)]=_0x413f41(0x210),_0x40f2b4[_0x413f41(0x1f6)]=_0x413f41(0x1f6),_0x40f2b4[_0x413f41(0x208)]='FitPage',_0x40f2b4[_0x413f41(0x216)]='Custom',_0x40f2b4))(_0x2da385||{}),_0x3e428d=(_0x4c889e=>(_0x4c889e['Start']=_0x413f41(0x1f3),_0x4c889e['End']=_0x413f41(0x20c),_0x4c889e[_0x413f41(0x205)]=_0x413f41(0x205),_0x4c889e))(_0x3e428d||{}),_0x1546d8=(_0x2f1433=>(_0x2f1433[_0x413f41(0x217)]=_0x413f41(0x217),_0x2f1433['Narrow']='Narrow',_0x2f1433[_0x413f41(0x218)]='Wide',_0x2f1433[_0x413f41(0x213)]=_0x413f41(0x213),_0x2f1433['Custom']=_0x413f41(0x216),_0x2f1433))(_0x1546d8||{});const _0x4dbeaf={[_0x1546d8[_0x413f41(0x217)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x1546d8[_0x413f41(0x1fc)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x1546d8['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x1546d8[_0x413f41(0x213)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x1546d8['Custom']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x267b96='printing-canvas-container',_0x4485fd=_0x413f41(0x20e);function _0x5c3859(_0x2d4eae,_0x180849,_0x3bcb15){const _0x2c4ebc=_0x413f41,_0x3f612f=_0x3bcb15===_0x130c20[_0x2c4ebc(0x202)]?_0x2d4eae:_0x180849,_0x392935=_0x3bcb15===_0x130c20[_0x2c4ebc(0x202)]?_0x180849:_0x2d4eae,_0x171d08=_0x2c4ebc(0x1f8)+_0x4485fd+'\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'+_0x3f612f+_0x2c4ebc(0x1f7)+_0x392935+_0x2c4ebc(0x1fd)+_0x267b96+_0x2c4ebc(0x20f)+_0x267b96+'\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.'+_0x4485fd+'\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'+_0x392935+_0x2c4ebc(0x207)+_0x3f612f+'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}',_0x4dca60=document[_0x2c4ebc(0x1fe)]('style');return _0x4dca60[_0x2c4ebc(0x200)]=_0x171d08,_0x4dca60[_0x2c4ebc(0x1f9)]=_0x2c4ebc(0x1f5),_0x4dca60;}_0xb87fa8['PRINT_CANVAS_CLASS']=_0x4485fd,_0xb87fa8['PRINT_CONTAINER_CLASS']=_0x267b96,_0xb87fa8['PaperMarginMap']=_0x4dbeaf,_0xb87fa8['PrintAlign']=_0x3e428d,_0xb87fa8['PrintDirection']=_0x130c20,_0xb87fa8['PrintPaperMargin']=_0x1546d8,_0xb87fa8[_0x413f41(0x21a)]=_0x2da385,_0xb87fa8[_0x413f41(0x209)]=_0x5c3859,Object[_0x413f41(0x219)](_0xb87fa8,Symbol[_0x413f41(0x215)],{'value':'Module'});}));function _0x45f3(_0x6307c1,_0x106abe){const _0x1f066d=_0x1f06();return _0x45f3=function(_0x45f330,_0xf0f202){_0x45f330=_0x45f330-0x1f2;let _0x192828=_0x1f066d[_0x45f330];return _0x192828;},_0x45f3(_0x6307c1,_0x106abe);}function _0x1f06(){const _0x4e0757=['createPrintStyle','249981ZzBUoT','exports','End','18460wAfjCT','printing-canvas',',\x20.','FitWidth','Landscape','110334aLaYIf','None','function','toStringTag','Custom','Normal','Wide','defineProperty','PrintScale','74896gOGlBH','135469Myxlob','Start','2555WOkrBR','offline-printing-css','FitHeight','px\x20','\x0a\x20\x20\x20\x20.','className','UniverProPrint','amd','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.','createElement','5MyMqlm','innerHTML','Origin','Portrait','981bwzaOz','109878zHTUXQ','Middle','1616LLgfKF','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','FitPage'];_0x1f06=function(){return _0x4e0757;};return _0x1f06();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/print",
3
- "version": "0.10.7",
3
+ "version": "0.10.8",
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.2",
46
46
  "vite": "^7.1.3",
47
47
  "vitest": "^3.2.4",
48
- "@univerjs-infra/shared": "0.10.7"
48
+ "@univerjs-infra/shared": "0.10.8"
49
49
  },
50
50
  "scripts": {
51
51
  "test": "vitest run",