@univerjs-pro/print 0.7.0 → 0.8.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 _0x27930c=_0x4680;(function(_0x137ad5,_0x190e80){const _0x3000b8=_0x4680,_0x130fd7=_0x137ad5();while(!![]){try{const _0x3055bc=parseInt(_0x3000b8(0x1e7))/0x1*(-parseInt(_0x3000b8(0x1dc))/0x2)+parseInt(_0x3000b8(0x1fd))/0x3*(-parseInt(_0x3000b8(0x1e0))/0x4)+-parseInt(_0x3000b8(0x1ee))/0x5*(-parseInt(_0x3000b8(0x1ec))/0x6)+parseInt(_0x3000b8(0x1eb))/0x7+parseInt(_0x3000b8(0x1d4))/0x8*(parseInt(_0x3000b8(0x1de))/0x9)+parseInt(_0x3000b8(0x1df))/0xa+-parseInt(_0x3000b8(0x1f0))/0xb;if(_0x3055bc===_0x190e80)break;else _0x130fd7['push'](_0x130fd7['shift']());}catch(_0x15afd9){_0x130fd7['push'](_0x130fd7['shift']());}}}(_0x4d07,0x6de36));Object[_0x27930c(0x1e6)](exports,Symbol[_0x27930c(0x1d7)],{'value':_0x27930c(0x1da)});function _0x4d07(){const _0x14fa90=['596212njAxfR','\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','\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\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','innerHTML','Normal','defineProperty','2LZDJSH','PrintAlign','FitWidth','None','6128724oDrSzV','6PyccBp','\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','1200505Uefdjg','Wide','13553276hGNiFe','Origin','FitPage','FitHeight',',\x20.','style','End','className','PaperMarginMap','Landscape','printing-canvas-container','Portrait','Middle','3RKyGLZ','Custom','offline-printing-css','px\x20','PrintScale','createPrintStyle','8egfAFg','printing-canvas','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','toStringTag','Start','PRINT_CONTAINER_CLASS','Module','\x0a\x20\x20\x20\x20.','120746bCqkkD','createElement','2641689TdrMtO','5428630kXBJKL'];_0x4d07=function(){return _0x14fa90;};return _0x4d07();}var e=(_0x46ddcf=>(_0x46ddcf[_0x27930c(0x1fb)]=_0x27930c(0x1fb),_0x46ddcf[_0x27930c(0x1f9)]=_0x27930c(0x1f9),_0x46ddcf))(e||{}),l=(_0x43d978=>(_0x43d978[_0x27930c(0x1f1)]=_0x27930c(0x1f1),_0x43d978[_0x27930c(0x1e9)]=_0x27930c(0x1e9),_0x43d978[_0x27930c(0x1f3)]='FitHeight',_0x43d978[_0x27930c(0x1f2)]=_0x27930c(0x1f2),_0x43d978['Custom']=_0x27930c(0x1cf),_0x43d978))(l||{}),c=(_0x2c5cae=>(_0x2c5cae[_0x27930c(0x1d8)]=_0x27930c(0x1d8),_0x2c5cae[_0x27930c(0x1f6)]=_0x27930c(0x1f6),_0x2c5cae[_0x27930c(0x1fc)]=_0x27930c(0x1fc),_0x2c5cae))(c||{}),i=(_0x5cb6e3=>(_0x5cb6e3[_0x27930c(0x1e5)]='Normal',_0x5cb6e3['Narrow']='Narrow',_0x5cb6e3[_0x27930c(0x1ef)]=_0x27930c(0x1ef),_0x5cb6e3[_0x27930c(0x1ea)]=_0x27930c(0x1ea),_0x5cb6e3))(i||{});const h={[i[_0x27930c(0x1e5)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x27930c(0x1fa),n=_0x27930c(0x1d5);function m(_0x22d417,_0x1e5055,_0x18dbe5){const _0x127a4f=_0x27930c,_0xc43419=_0x18dbe5===e['Portrait']?_0x22d417:_0x1e5055,_0x1e3497=_0x18dbe5===e[_0x127a4f(0x1fb)]?_0x1e5055:_0x22d417,_0x4ea73e=_0x127a4f(0x1db)+n+_0x127a4f(0x1ed)+_0xc43419+_0x127a4f(0x1d1)+_0x1e3497+'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+_0x127a4f(0x1f4)+r+_0x127a4f(0x1e2)+n+_0x127a4f(0x1e1)+_0x1e3497+_0x127a4f(0x1d6)+_0xc43419+_0x127a4f(0x1e3),_0x7eda64=document[_0x127a4f(0x1dd)](_0x127a4f(0x1f5));return _0x7eda64[_0x127a4f(0x1e4)]=_0x4ea73e,_0x7eda64[_0x127a4f(0x1f7)]=_0x127a4f(0x1d0),_0x7eda64;}function _0x4680(_0x195628,_0x5a3237){const _0x4d0775=_0x4d07();return _0x4680=function(_0x468018,_0x1a56b0){_0x468018=_0x468018-0x1cf;let _0x81a569=_0x4d0775[_0x468018];return _0x81a569;},_0x4680(_0x195628,_0x5a3237);}exports['PRINT_CANVAS_CLASS']=n,exports[_0x27930c(0x1d9)]=r,exports[_0x27930c(0x1f8)]=h,exports[_0x27930c(0x1e8)]=c,exports['PrintDirection']=e,exports['PrintPaperMargin']=i,exports[_0x27930c(0x1d2)]=l,exports[_0x27930c(0x1d3)]=m;
1
+ 'use strict';const _0x1b6c39=_0x5a89;function _0x5a89(_0x1a5c6d,_0x5dbbbf){const _0x4a5094=_0x4a50();return _0x5a89=function(_0x5a89ce,_0x77c147){_0x5a89ce=_0x5a89ce-0x144;let _0x5eae03=_0x4a5094[_0x5a89ce];return _0x5eae03;},_0x5a89(_0x1a5c6d,_0x5dbbbf);}function _0x4a50(){const _0x35136c=['Narrow','PRINT_CONTAINER_CLASS','Origin','110pCKfBq','PrintPaperMargin','toStringTag','printing-canvas','17418klsVVs','Portrait','144WlDVNQ','printing-canvas-container','createPrintStyle','Landscape','Start','PrintAlign','FitHeight','Normal','25744wPtGFj','1246DRFTjC','\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','PRINT_CANVAS_CLASS','1803835VCvHDF','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','PrintDirection','1150YmozeL','Wide','defineProperty','\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.','175232mBFRJB','\x0a\x20\x20\x20\x20.','End','Middle','innerHTML',',\x20.','Module','className','708504goybCv','Custom','340BXyImE','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','None','PaperMarginMap','33879nKiyZb','\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','708516hAcneu'];_0x4a50=function(){return _0x35136c;};return _0x4a50();}(function(_0x44541b,_0x47bdd6){const _0x3331d2=_0x5a89,_0x427d37=_0x44541b();while(!![]){try{const _0x17d2f8=-parseInt(_0x3331d2(0x170))/0x1+-parseInt(_0x3331d2(0x14a))/0x2+parseInt(_0x3331d2(0x151))/0x3*(parseInt(_0x3331d2(0x14c))/0x4)+parseInt(_0x3331d2(0x16c))/0x5*(parseInt(_0x3331d2(0x15b))/0x6)+parseInt(_0x3331d2(0x166))/0x7*(parseInt(_0x3331d2(0x165))/0x8)+parseInt(_0x3331d2(0x153))/0x9*(parseInt(_0x3331d2(0x157))/0xa)+-parseInt(_0x3331d2(0x169))/0xb*(parseInt(_0x3331d2(0x15d))/0xc);if(_0x17d2f8===_0x47bdd6)break;else _0x427d37['push'](_0x427d37['shift']());}catch(_0x463fcb){_0x427d37['push'](_0x427d37['shift']());}}}(_0x4a50,0x8aee3));Object[_0x1b6c39(0x16e)](exports,Symbol[_0x1b6c39(0x159)],{'value':_0x1b6c39(0x148)});var e=(_0x271eac=>(_0x271eac[_0x1b6c39(0x15c)]=_0x1b6c39(0x15c),_0x271eac[_0x1b6c39(0x160)]='Landscape',_0x271eac))(e||{}),l=(_0x15d924=>(_0x15d924[_0x1b6c39(0x156)]=_0x1b6c39(0x156),_0x15d924[_0x1b6c39(0x14e)]='FitWidth',_0x15d924[_0x1b6c39(0x163)]='FitHeight',_0x15d924['FitPage']='FitPage',_0x15d924['Custom']=_0x1b6c39(0x14b),_0x15d924))(l||{}),c=(_0x20c517=>(_0x20c517[_0x1b6c39(0x161)]=_0x1b6c39(0x161),_0x20c517[_0x1b6c39(0x144)]=_0x1b6c39(0x144),_0x20c517[_0x1b6c39(0x145)]=_0x1b6c39(0x145),_0x20c517))(c||{}),i=(_0x2fe466=>(_0x2fe466[_0x1b6c39(0x164)]=_0x1b6c39(0x164),_0x2fe466[_0x1b6c39(0x154)]=_0x1b6c39(0x154),_0x2fe466[_0x1b6c39(0x16d)]=_0x1b6c39(0x16d),_0x2fe466[_0x1b6c39(0x14f)]=_0x1b6c39(0x14f),_0x2fe466))(i||{});const h={[i[_0x1b6c39(0x164)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i[_0x1b6c39(0x154)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i[_0x1b6c39(0x16d)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i[_0x1b6c39(0x14f)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x1b6c39(0x15e),n=_0x1b6c39(0x15a);function m(_0x15ec4f,_0x21c801,_0x440573){const _0x50c7ca=_0x1b6c39,_0x56a989=_0x440573===e['Portrait']?_0x15ec4f:_0x21c801,_0x43f749=_0x440573===e[_0x50c7ca(0x15c)]?_0x21c801:_0x15ec4f,_0x59d2f4=_0x50c7ca(0x171)+n+_0x50c7ca(0x152)+_0x56a989+'px\x20'+_0x43f749+_0x50c7ca(0x14d)+r+_0x50c7ca(0x147)+r+_0x50c7ca(0x16f)+n+_0x50c7ca(0x167)+_0x43f749+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x56a989+_0x50c7ca(0x16a),_0x53f772=document['createElement']('style');return _0x53f772[_0x50c7ca(0x146)]=_0x59d2f4,_0x53f772[_0x50c7ca(0x149)]='offline-printing-css',_0x53f772;}exports[_0x1b6c39(0x168)]=n,exports[_0x1b6c39(0x155)]=r,exports[_0x1b6c39(0x150)]=h,exports[_0x1b6c39(0x162)]=c,exports[_0x1b6c39(0x16b)]=e,exports[_0x1b6c39(0x158)]=i,exports['PrintScale']=l,exports[_0x1b6c39(0x15f)]=m;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- function _0x27e2(_0x147064,_0xd27b7){const _0x432091=_0x4320();return _0x27e2=function(_0x27e2ea,_0x4839f4){_0x27e2ea=_0x27e2ea-0xff;let _0x98fa2c=_0x432091[_0x27e2ea];return _0x98fa2c;},_0x27e2(_0x147064,_0xd27b7);}const _0x561295=_0x27e2;(function(_0x1a1bad,_0x26b372){const _0x1135d6=_0x27e2,_0x64807b=_0x1a1bad();while(!![]){try{const _0x387255=-parseInt(_0x1135d6(0x11f))/0x1*(-parseInt(_0x1135d6(0x109))/0x2)+parseInt(_0x1135d6(0x104))/0x3+-parseInt(_0x1135d6(0x11c))/0x4*(parseInt(_0x1135d6(0x116))/0x5)+-parseInt(_0x1135d6(0x10b))/0x6*(-parseInt(_0x1135d6(0x10f))/0x7)+-parseInt(_0x1135d6(0x118))/0x8*(-parseInt(_0x1135d6(0x103))/0x9)+parseInt(_0x1135d6(0x114))/0xa*(parseInt(_0x1135d6(0x122))/0xb)+-parseInt(_0x1135d6(0x11d))/0xc;if(_0x387255===_0x26b372)break;else _0x64807b['push'](_0x64807b['shift']());}catch(_0x4ddffd){_0x64807b['push'](_0x64807b['shift']());}}}(_0x4320,0xdfc5a));var e=(_0x3f5d0a=>(_0x3f5d0a[_0x561295(0x10e)]='Portrait',_0x3f5d0a[_0x561295(0x123)]=_0x561295(0x123),_0x3f5d0a))(e||{}),l=(_0x5aab67=>(_0x5aab67[_0x561295(0x106)]=_0x561295(0x106),_0x5aab67[_0x561295(0x10c)]=_0x561295(0x10c),_0x5aab67['FitHeight']=_0x561295(0x108),_0x5aab67['FitPage']='FitPage',_0x5aab67['Custom']=_0x561295(0x10d),_0x5aab67))(l||{}),m=(_0x30a3ff=>(_0x30a3ff['Start']=_0x561295(0x121),_0x30a3ff[_0x561295(0x120)]=_0x561295(0x120),_0x30a3ff['Middle']=_0x561295(0x111),_0x30a3ff))(m||{}),o=(_0x59e028=>(_0x59e028[_0x561295(0x107)]=_0x561295(0x107),_0x59e028[_0x561295(0x11e)]=_0x561295(0x11e),_0x59e028['Wide']='Wide',_0x59e028[_0x561295(0x10a)]=_0x561295(0x10a),_0x59e028))(o||{});function _0x4320(){const _0x437738=['7ADvbfb','createElement','Middle','className','printing-canvas-container','1277500ULTugZ','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.','2798165NNGHzJ','px\x20','9236888FgaGvb','printing-canvas','style','\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','4sqmMNr','23177652itOrBh','Narrow','85817RdLWwA','End','Start','11mjGyJk','Landscape','innerHTML','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','px;\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}','Wide','9CpOjFy','3782667SNcNjx','\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.','Origin','Normal','FitHeight','20ZHogkx','None','37524ruTQhG','FitWidth','Custom','Portrait'];_0x4320=function(){return _0x437738;};return _0x4320();}const c={[o[_0x561295(0x107)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x561295(0x11e)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x561295(0x102)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x561295(0x10a)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x561295(0x113),d=_0x561295(0x119);function g(_0x489f32,_0x508d8a,_0x2f4ec8){const _0x4bc687=_0x561295,_0x140d3f=_0x2f4ec8===e['Portrait']?_0x489f32:_0x508d8a,_0x1c2231=_0x2f4ec8===e[_0x4bc687(0x10e)]?_0x508d8a:_0x489f32,_0x4eae7d='\x0a\x20\x20\x20\x20.'+d+_0x4bc687(0x100)+_0x140d3f+_0x4bc687(0x117)+_0x1c2231+_0x4bc687(0x115)+p+',\x20.'+p+_0x4bc687(0x105)+d+_0x4bc687(0x11b)+_0x1c2231+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x140d3f+_0x4bc687(0x101),_0x1d40ac=document[_0x4bc687(0x110)](_0x4bc687(0x11a));return _0x1d40ac[_0x4bc687(0xff)]=_0x4eae7d,_0x1d40ac[_0x4bc687(0x112)]='offline-printing-css',_0x1d40ac;}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
+ const _0x56cec0=_0x19d7;(function(_0xcf5e91,_0x402e80){const _0x10308d=_0x19d7,_0x446bc3=_0xcf5e91();while(!![]){try{const _0x37e53a=-parseInt(_0x10308d(0xa7))/0x1*(parseInt(_0x10308d(0xa8))/0x2)+-parseInt(_0x10308d(0xb8))/0x3*(parseInt(_0x10308d(0xa3))/0x4)+-parseInt(_0x10308d(0xa9))/0x5*(-parseInt(_0x10308d(0xad))/0x6)+-parseInt(_0x10308d(0x9e))/0x7+parseInt(_0x10308d(0xa6))/0x8+-parseInt(_0x10308d(0xa5))/0x9*(-parseInt(_0x10308d(0x9b))/0xa)+-parseInt(_0x10308d(0xb5))/0xb;if(_0x37e53a===_0x402e80)break;else _0x446bc3['push'](_0x446bc3['shift']());}catch(_0x53abcc){_0x446bc3['push'](_0x446bc3['shift']());}}}(_0x12c7,0x56804));function _0x12c7(){const _0x401de7=['\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.','78iMfxrT','printing-canvas-container','Narrow','Wide','20AystrP','FitHeight','None','1151052wHVbGw','Custom','createElement','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20',',\x20.','7196cJQylN','Middle','2601270tKSXiA','2048272OqJnvv','7xJzsGF','79706nfOqEL','736045HghSBl','Landscape','className','Normal','6uHpwUB','FitPage','Origin','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','px;\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}','End','FitWidth','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.','1504954HLWlIS','Portrait'];_0x12c7=function(){return _0x401de7;};return _0x12c7();}var e=(_0x16a066=>(_0x16a066[_0x56cec0(0xb6)]='Portrait',_0x16a066[_0x56cec0(0xaa)]=_0x56cec0(0xaa),_0x16a066))(e||{}),l=(_0x53f89f=>(_0x53f89f[_0x56cec0(0xaf)]=_0x56cec0(0xaf),_0x53f89f['FitWidth']=_0x56cec0(0xb3),_0x53f89f[_0x56cec0(0x9c)]=_0x56cec0(0x9c),_0x53f89f[_0x56cec0(0xae)]='FitPage',_0x53f89f[_0x56cec0(0x9f)]='Custom',_0x53f89f))(l||{}),m=(_0x5bfce8=>(_0x5bfce8['Start']='Start',_0x5bfce8[_0x56cec0(0xb2)]=_0x56cec0(0xb2),_0x5bfce8['Middle']=_0x56cec0(0xa4),_0x5bfce8))(m||{}),o=(_0x598a5a=>(_0x598a5a['Normal']=_0x56cec0(0xac),_0x598a5a[_0x56cec0(0x99)]=_0x56cec0(0x99),_0x598a5a['Wide']=_0x56cec0(0x9a),_0x598a5a[_0x56cec0(0x9d)]=_0x56cec0(0x9d),_0x598a5a))(o||{});const c={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x56cec0(0x99)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x56cec0(0x9a)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x56cec0(0x9d)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x56cec0(0xb9),d='printing-canvas';function g(_0x311929,_0x5731d1,_0x90e3c8){const _0x50c14d=_0x56cec0,_0x2c6e02=_0x90e3c8===e['Portrait']?_0x311929:_0x5731d1,_0x38db8d=_0x90e3c8===e[_0x50c14d(0xb6)]?_0x5731d1:_0x311929,_0x3bd79f='\x0a\x20\x20\x20\x20.'+d+_0x50c14d(0xb0)+_0x2c6e02+'px\x20'+_0x38db8d+_0x50c14d(0xb4)+p+_0x50c14d(0xa2)+p+_0x50c14d(0xb7)+d+'\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'+_0x38db8d+_0x50c14d(0xa1)+_0x2c6e02+_0x50c14d(0xb1),_0x45e3a9=document[_0x50c14d(0xa0)]('style');return _0x45e3a9['innerHTML']=_0x3bd79f,_0x45e3a9[_0x50c14d(0xab)]='offline-printing-css',_0x45e3a9;}function _0x19d7(_0x187131,_0x56a720){const _0x12c765=_0x12c7();return _0x19d7=function(_0x19d792,_0x1b2a9b){_0x19d792=_0x19d792-0x99;let _0x1b4aee=_0x12c765[_0x19d792];return _0x1b4aee;},_0x19d7(_0x187131,_0x56a720);}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 _0x27e2(_0x147064,_0xd27b7){const _0x432091=_0x4320();return _0x27e2=function(_0x27e2ea,_0x4839f4){_0x27e2ea=_0x27e2ea-0xff;let _0x98fa2c=_0x432091[_0x27e2ea];return _0x98fa2c;},_0x27e2(_0x147064,_0xd27b7);}const _0x561295=_0x27e2;(function(_0x1a1bad,_0x26b372){const _0x1135d6=_0x27e2,_0x64807b=_0x1a1bad();while(!![]){try{const _0x387255=-parseInt(_0x1135d6(0x11f))/0x1*(-parseInt(_0x1135d6(0x109))/0x2)+parseInt(_0x1135d6(0x104))/0x3+-parseInt(_0x1135d6(0x11c))/0x4*(parseInt(_0x1135d6(0x116))/0x5)+-parseInt(_0x1135d6(0x10b))/0x6*(-parseInt(_0x1135d6(0x10f))/0x7)+-parseInt(_0x1135d6(0x118))/0x8*(-parseInt(_0x1135d6(0x103))/0x9)+parseInt(_0x1135d6(0x114))/0xa*(parseInt(_0x1135d6(0x122))/0xb)+-parseInt(_0x1135d6(0x11d))/0xc;if(_0x387255===_0x26b372)break;else _0x64807b['push'](_0x64807b['shift']());}catch(_0x4ddffd){_0x64807b['push'](_0x64807b['shift']());}}}(_0x4320,0xdfc5a));var e=(_0x3f5d0a=>(_0x3f5d0a[_0x561295(0x10e)]='Portrait',_0x3f5d0a[_0x561295(0x123)]=_0x561295(0x123),_0x3f5d0a))(e||{}),l=(_0x5aab67=>(_0x5aab67[_0x561295(0x106)]=_0x561295(0x106),_0x5aab67[_0x561295(0x10c)]=_0x561295(0x10c),_0x5aab67['FitHeight']=_0x561295(0x108),_0x5aab67['FitPage']='FitPage',_0x5aab67['Custom']=_0x561295(0x10d),_0x5aab67))(l||{}),m=(_0x30a3ff=>(_0x30a3ff['Start']=_0x561295(0x121),_0x30a3ff[_0x561295(0x120)]=_0x561295(0x120),_0x30a3ff['Middle']=_0x561295(0x111),_0x30a3ff))(m||{}),o=(_0x59e028=>(_0x59e028[_0x561295(0x107)]=_0x561295(0x107),_0x59e028[_0x561295(0x11e)]=_0x561295(0x11e),_0x59e028['Wide']='Wide',_0x59e028[_0x561295(0x10a)]=_0x561295(0x10a),_0x59e028))(o||{});function _0x4320(){const _0x437738=['7ADvbfb','createElement','Middle','className','printing-canvas-container','1277500ULTugZ','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.','2798165NNGHzJ','px\x20','9236888FgaGvb','printing-canvas','style','\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','4sqmMNr','23177652itOrBh','Narrow','85817RdLWwA','End','Start','11mjGyJk','Landscape','innerHTML','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','px;\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}','Wide','9CpOjFy','3782667SNcNjx','\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.','Origin','Normal','FitHeight','20ZHogkx','None','37524ruTQhG','FitWidth','Custom','Portrait'];_0x4320=function(){return _0x437738;};return _0x4320();}const c={[o[_0x561295(0x107)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x561295(0x11e)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x561295(0x102)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x561295(0x10a)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x561295(0x113),d=_0x561295(0x119);function g(_0x489f32,_0x508d8a,_0x2f4ec8){const _0x4bc687=_0x561295,_0x140d3f=_0x2f4ec8===e['Portrait']?_0x489f32:_0x508d8a,_0x1c2231=_0x2f4ec8===e[_0x4bc687(0x10e)]?_0x508d8a:_0x489f32,_0x4eae7d='\x0a\x20\x20\x20\x20.'+d+_0x4bc687(0x100)+_0x140d3f+_0x4bc687(0x117)+_0x1c2231+_0x4bc687(0x115)+p+',\x20.'+p+_0x4bc687(0x105)+d+_0x4bc687(0x11b)+_0x1c2231+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x140d3f+_0x4bc687(0x101),_0x1d40ac=document[_0x4bc687(0x110)](_0x4bc687(0x11a));return _0x1d40ac[_0x4bc687(0xff)]=_0x4eae7d,_0x1d40ac[_0x4bc687(0x112)]='offline-printing-css',_0x1d40ac;}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
+ const _0x56cec0=_0x19d7;(function(_0xcf5e91,_0x402e80){const _0x10308d=_0x19d7,_0x446bc3=_0xcf5e91();while(!![]){try{const _0x37e53a=-parseInt(_0x10308d(0xa7))/0x1*(parseInt(_0x10308d(0xa8))/0x2)+-parseInt(_0x10308d(0xb8))/0x3*(parseInt(_0x10308d(0xa3))/0x4)+-parseInt(_0x10308d(0xa9))/0x5*(-parseInt(_0x10308d(0xad))/0x6)+-parseInt(_0x10308d(0x9e))/0x7+parseInt(_0x10308d(0xa6))/0x8+-parseInt(_0x10308d(0xa5))/0x9*(-parseInt(_0x10308d(0x9b))/0xa)+-parseInt(_0x10308d(0xb5))/0xb;if(_0x37e53a===_0x402e80)break;else _0x446bc3['push'](_0x446bc3['shift']());}catch(_0x53abcc){_0x446bc3['push'](_0x446bc3['shift']());}}}(_0x12c7,0x56804));function _0x12c7(){const _0x401de7=['\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.','78iMfxrT','printing-canvas-container','Narrow','Wide','20AystrP','FitHeight','None','1151052wHVbGw','Custom','createElement','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20',',\x20.','7196cJQylN','Middle','2601270tKSXiA','2048272OqJnvv','7xJzsGF','79706nfOqEL','736045HghSBl','Landscape','className','Normal','6uHpwUB','FitPage','Origin','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','px;\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}','End','FitWidth','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.','1504954HLWlIS','Portrait'];_0x12c7=function(){return _0x401de7;};return _0x12c7();}var e=(_0x16a066=>(_0x16a066[_0x56cec0(0xb6)]='Portrait',_0x16a066[_0x56cec0(0xaa)]=_0x56cec0(0xaa),_0x16a066))(e||{}),l=(_0x53f89f=>(_0x53f89f[_0x56cec0(0xaf)]=_0x56cec0(0xaf),_0x53f89f['FitWidth']=_0x56cec0(0xb3),_0x53f89f[_0x56cec0(0x9c)]=_0x56cec0(0x9c),_0x53f89f[_0x56cec0(0xae)]='FitPage',_0x53f89f[_0x56cec0(0x9f)]='Custom',_0x53f89f))(l||{}),m=(_0x5bfce8=>(_0x5bfce8['Start']='Start',_0x5bfce8[_0x56cec0(0xb2)]=_0x56cec0(0xb2),_0x5bfce8['Middle']=_0x56cec0(0xa4),_0x5bfce8))(m||{}),o=(_0x598a5a=>(_0x598a5a['Normal']=_0x56cec0(0xac),_0x598a5a[_0x56cec0(0x99)]=_0x56cec0(0x99),_0x598a5a['Wide']=_0x56cec0(0x9a),_0x598a5a[_0x56cec0(0x9d)]=_0x56cec0(0x9d),_0x598a5a))(o||{});const c={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x56cec0(0x99)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x56cec0(0x9a)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x56cec0(0x9d)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x56cec0(0xb9),d='printing-canvas';function g(_0x311929,_0x5731d1,_0x90e3c8){const _0x50c14d=_0x56cec0,_0x2c6e02=_0x90e3c8===e['Portrait']?_0x311929:_0x5731d1,_0x38db8d=_0x90e3c8===e[_0x50c14d(0xb6)]?_0x5731d1:_0x311929,_0x3bd79f='\x0a\x20\x20\x20\x20.'+d+_0x50c14d(0xb0)+_0x2c6e02+'px\x20'+_0x38db8d+_0x50c14d(0xb4)+p+_0x50c14d(0xa2)+p+_0x50c14d(0xb7)+d+'\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'+_0x38db8d+_0x50c14d(0xa1)+_0x2c6e02+_0x50c14d(0xb1),_0x45e3a9=document[_0x50c14d(0xa0)]('style');return _0x45e3a9['innerHTML']=_0x3bd79f,_0x45e3a9[_0x50c14d(0xab)]='offline-printing-css',_0x45e3a9;}function _0x19d7(_0x187131,_0x56a720){const _0x12c765=_0x12c7();return _0x19d7=function(_0x19d792,_0x1b2a9b){_0x19d792=_0x19d792-0x99;let _0x1b4aee=_0x12c765[_0x19d792];return _0x1b4aee;},_0x19d7(_0x187131,_0x56a720);}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 _0x2d9d(){const _0x3fa2a7=['PrintScale','\x0a\x20\x20\x20\x20.','94340JEtiEx','Narrow','exports','29337zRQjRt','4629324Cpwlie','createPrintStyle','PrintDirection','Middle','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}','PRINT_CONTAINER_CLASS','PRINT_CANVAS_CLASS','PrintPaperMargin','px\x20','amd','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','35tDVRoB','className','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.','function','PrintAlign','14584drGeGs',',\x20.','PaperMarginMap','printing-canvas-container','390eUNfYN','None','Module','54ZGspID','2307782SahAaI','toStringTag','4761LkuHFj','defineProperty','1dClzQy','\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','Normal','\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','Start','FitPage','\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.','Wide','innerHTML','221102NSisVZ','Landscape','Portrait','createElement','Origin','1803009dBBSLI'];_0x2d9d=function(){return _0x3fa2a7;};return _0x2d9d();}function _0x5833(_0x430629,_0x23ccee){const _0x2d9d80=_0x2d9d();return _0x5833=function(_0x5833db,_0x215f91){_0x5833db=_0x5833db-0x1a4;let _0x525ee3=_0x2d9d80[_0x5833db];return _0x525ee3;},_0x5833(_0x430629,_0x23ccee);}(function(_0x37991e,_0x2b09e1){const _0x24d027=_0x5833,_0x3a0cb5=_0x37991e();while(!![]){try{const _0x5c779f=parseInt(_0x24d027(0x1bc))/0x1*(-parseInt(_0x24d027(0x1b8))/0x2)+parseInt(_0x24d027(0x1ca))/0x3+parseInt(_0x24d027(0x1cd))/0x4*(parseInt(_0x24d027(0x1ab))/0x5)+parseInt(_0x24d027(0x1b7))/0x6*(parseInt(_0x24d027(0x1c5))/0x7)+-parseInt(_0x24d027(0x1b0))/0x8*(-parseInt(_0x24d027(0x1ba))/0x9)+parseInt(_0x24d027(0x1b4))/0xa*(parseInt(_0x24d027(0x1d0))/0xb)+-parseInt(_0x24d027(0x1d1))/0xc;if(_0x5c779f===_0x2b09e1)break;else _0x3a0cb5['push'](_0x3a0cb5['shift']());}catch(_0x4ef41b){_0x3a0cb5['push'](_0x3a0cb5['shift']());}}}(_0x2d9d,0x8d60c),function(_0x38432a,_0x85832a){const _0x517b53=_0x5833;typeof exports=='object'&&typeof module<'u'?_0x85832a(exports):typeof define==_0x517b53(0x1ae)&&define[_0x517b53(0x1a9)]?define([_0x517b53(0x1cf)],_0x85832a):(_0x38432a=typeof globalThis<'u'?globalThis:_0x38432a||self,_0x85832a(_0x38432a['UniverProPrint']={}));}(this,function(_0x47ada9){'use strict';const _0x45862f=_0x5833;var _0xe0b069=(_0x5c029e=>(_0x5c029e[_0x45862f(0x1c7)]=_0x45862f(0x1c7),_0x5c029e[_0x45862f(0x1c6)]='Landscape',_0x5c029e))(_0xe0b069||{}),_0x57bc5b=(_0x523a54=>(_0x523a54[_0x45862f(0x1c9)]=_0x45862f(0x1c9),_0x523a54['FitWidth']='FitWidth',_0x523a54[_0x45862f(0x1d5)]='FitHeight',_0x523a54[_0x45862f(0x1c1)]=_0x45862f(0x1c1),_0x523a54['Custom']='Custom',_0x523a54))(_0x57bc5b||{}),_0x444e88=(_0x54882a=>(_0x54882a[_0x45862f(0x1c0)]=_0x45862f(0x1c0),_0x54882a['End']='End',_0x54882a[_0x45862f(0x1d4)]=_0x45862f(0x1d4),_0x54882a))(_0x444e88||{}),_0x1491b8=(_0x44a1df=>(_0x44a1df[_0x45862f(0x1be)]=_0x45862f(0x1be),_0x44a1df['Narrow']=_0x45862f(0x1ce),_0x44a1df[_0x45862f(0x1c3)]=_0x45862f(0x1c3),_0x44a1df[_0x45862f(0x1b5)]=_0x45862f(0x1b5),_0x44a1df))(_0x1491b8||{});const _0x104652={[_0x1491b8[_0x45862f(0x1be)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x1491b8[_0x45862f(0x1ce)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x1491b8[_0x45862f(0x1c3)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x1491b8['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x4d8042=_0x45862f(0x1b3),_0x5147fb='printing-canvas';function _0x381e59(_0x1ce987,_0x217bb3,_0x1f99cb){const _0xf61f73=_0x45862f,_0x28bb76=_0x1f99cb===_0xe0b069[_0xf61f73(0x1c7)]?_0x1ce987:_0x217bb3,_0x545880=_0x1f99cb===_0xe0b069['Portrait']?_0x217bb3:_0x1ce987,_0x2c1dde=_0xf61f73(0x1cc)+_0x5147fb+_0xf61f73(0x1bd)+_0x28bb76+_0xf61f73(0x1a8)+_0x545880+_0xf61f73(0x1ad)+_0x4d8042+_0xf61f73(0x1b1)+_0x4d8042+_0xf61f73(0x1c2)+_0x5147fb+_0xf61f73(0x1bf)+_0x545880+_0xf61f73(0x1aa)+_0x28bb76+_0xf61f73(0x1a4),_0x175a01=document[_0xf61f73(0x1c8)]('style');return _0x175a01[_0xf61f73(0x1c4)]=_0x2c1dde,_0x175a01[_0xf61f73(0x1ac)]='offline-printing-css',_0x175a01;}_0x47ada9[_0x45862f(0x1a6)]=_0x5147fb,_0x47ada9[_0x45862f(0x1a5)]=_0x4d8042,_0x47ada9[_0x45862f(0x1b2)]=_0x104652,_0x47ada9[_0x45862f(0x1af)]=_0x444e88,_0x47ada9[_0x45862f(0x1d3)]=_0xe0b069,_0x47ada9[_0x45862f(0x1a7)]=_0x1491b8,_0x47ada9[_0x45862f(0x1cb)]=_0x57bc5b,_0x47ada9[_0x45862f(0x1d2)]=_0x381e59,Object[_0x45862f(0x1bb)](_0x47ada9,Symbol[_0x45862f(0x1b9)],{'value':_0x45862f(0x1b6)});}));
1
+ function _0x5935(_0x458100,_0x5e60ce){const _0x207be4=_0x207b();return _0x5935=function(_0x5935f9,_0x1c24be){_0x5935f9=_0x5935f9-0xcb;let _0x4c4603=_0x207be4[_0x5935f9];return _0x4c4603;},_0x5935(_0x458100,_0x5e60ce);}(function(_0x538934,_0x167845){const _0x337898=_0x5935,_0x5ef88e=_0x538934();while(!![]){try{const _0x2982a1=-parseInt(_0x337898(0xd0))/0x1+-parseInt(_0x337898(0xf3))/0x2*(-parseInt(_0x337898(0xf5))/0x3)+-parseInt(_0x337898(0xe7))/0x4*(parseInt(_0x337898(0xd6))/0x5)+-parseInt(_0x337898(0xdb))/0x6*(-parseInt(_0x337898(0xd9))/0x7)+parseInt(_0x337898(0xe9))/0x8+parseInt(_0x337898(0xf0))/0x9*(-parseInt(_0x337898(0xec))/0xa)+parseInt(_0x337898(0xf6))/0xb;if(_0x2982a1===_0x167845)break;else _0x5ef88e['push'](_0x5ef88e['shift']());}catch(_0x2c7746){_0x5ef88e['push'](_0x5ef88e['shift']());}}}(_0x207b,0x1a859),function(_0x4f00f2,_0x24880e){const _0x12963b=_0x5935;typeof exports==_0x12963b(0xe8)&&typeof module<'u'?_0x24880e(exports):typeof define==_0x12963b(0xf9)&&define[_0x12963b(0xe5)]?define([_0x12963b(0xf4)],_0x24880e):(_0x4f00f2=typeof globalThis<'u'?globalThis:_0x4f00f2||self,_0x24880e(_0x4f00f2[_0x12963b(0xde)]={}));}(this,function(_0x2c860e){'use strict';const _0x2bfaaf=_0x5935;var _0x26c6c7=(_0x56adf9=>(_0x56adf9['Portrait']=_0x2bfaaf(0xea),_0x56adf9[_0x2bfaaf(0xce)]=_0x2bfaaf(0xce),_0x56adf9))(_0x26c6c7||{}),_0x54a513=(_0x2a2d33=>(_0x2a2d33[_0x2bfaaf(0xcf)]=_0x2bfaaf(0xcf),_0x2a2d33[_0x2bfaaf(0xeb)]='FitWidth',_0x2a2d33[_0x2bfaaf(0xfc)]=_0x2bfaaf(0xfc),_0x2a2d33[_0x2bfaaf(0xfb)]=_0x2bfaaf(0xfb),_0x2a2d33['Custom']=_0x2bfaaf(0xe6),_0x2a2d33))(_0x54a513||{}),_0x34eac8=(_0x36cd1c=>(_0x36cd1c[_0x2bfaaf(0xe0)]='Start',_0x36cd1c['End']='End',_0x36cd1c[_0x2bfaaf(0xdd)]=_0x2bfaaf(0xdd),_0x36cd1c))(_0x34eac8||{}),_0x43308d=(_0x3adcd5=>(_0x3adcd5[_0x2bfaaf(0xef)]='Normal',_0x3adcd5[_0x2bfaaf(0xdf)]='Narrow',_0x3adcd5[_0x2bfaaf(0xed)]='Wide',_0x3adcd5['None']=_0x2bfaaf(0xd4),_0x3adcd5))(_0x43308d||{});const _0x6ab42b={[_0x43308d[_0x2bfaaf(0xef)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x43308d[_0x2bfaaf(0xdf)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x43308d[_0x2bfaaf(0xed)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x43308d[_0x2bfaaf(0xd4)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0xe2e876=_0x2bfaaf(0xcb),_0x336b98=_0x2bfaaf(0xfa);function _0x404231(_0x4df858,_0x143da7,_0x513b6d){const _0x1ab911=_0x2bfaaf,_0xe6da46=_0x513b6d===_0x26c6c7[_0x1ab911(0xea)]?_0x4df858:_0x143da7,_0x117ac0=_0x513b6d===_0x26c6c7[_0x1ab911(0xea)]?_0x143da7:_0x4df858,_0x4556dd=_0x1ab911(0xcd)+_0x336b98+_0x1ab911(0xd1)+_0xe6da46+_0x1ab911(0xd3)+_0x117ac0+_0x1ab911(0xf2)+_0xe2e876+_0x1ab911(0xda)+_0xe2e876+_0x1ab911(0xe3)+_0x336b98+_0x1ab911(0xcc)+_0x117ac0+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0xe6da46+'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}',_0x12976d=document[_0x1ab911(0xd5)](_0x1ab911(0xe1));return _0x12976d[_0x1ab911(0xf7)]=_0x4556dd,_0x12976d[_0x1ab911(0xf8)]=_0x1ab911(0xee),_0x12976d;}_0x2c860e['PRINT_CANVAS_CLASS']=_0x336b98,_0x2c860e[_0x2bfaaf(0xe2)]=_0xe2e876,_0x2c860e['PaperMarginMap']=_0x6ab42b,_0x2c860e['PrintAlign']=_0x34eac8,_0x2c860e['PrintDirection']=_0x26c6c7,_0x2c860e[_0x2bfaaf(0xd8)]=_0x43308d,_0x2c860e[_0x2bfaaf(0xd2)]=_0x54a513,_0x2c860e[_0x2bfaaf(0xd7)]=_0x404231,Object[_0x2bfaaf(0xdc)](_0x2c860e,Symbol[_0x2bfaaf(0xe4)],{'value':_0x2bfaaf(0xf1)});}));function _0x207b(){const _0x4cc599=['1569NucRbc','3186414CNMmwt','innerHTML','className','function','printing-canvas','FitPage','FitHeight','printing-canvas-container','\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','\x0a\x20\x20\x20\x20.','Landscape','Origin','215856yqKmlD','\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','PrintScale','px\x20','None','createElement','324505jKtVFo','createPrintStyle','PrintPaperMargin','147unHadq',',\x20.','678LIxiQM','defineProperty','Middle','UniverProPrint','Narrow','Start','style','PRINT_CONTAINER_CLASS','\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.','toStringTag','amd','Custom','12iBLcub','object','1285288IuAjMV','Portrait','FitWidth','836170lBclIu','Wide','offline-printing-css','Normal','9yZdHjB','Module','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.','574TYMwPW','exports'];_0x207b=function(){return _0x4cc599;};return _0x207b();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/print",
3
- "version": "0.7.0",
3
+ "version": "0.8.0-beta.1",
4
4
  "private": false,
5
5
  "description": "Print module for UniverJS",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -44,8 +44,8 @@
44
44
  "devDependencies": {
45
45
  "typescript": "^5.8.3",
46
46
  "vite": "^6.3.5",
47
- "vitest": "^3.1.3",
48
- "@univerjs-infra/shared": "0.7.0"
47
+ "vitest": "^3.1.4",
48
+ "@univerjs-infra/shared": "0.8.0-beta.1"
49
49
  },
50
50
  "scripts": {
51
51
  "test": "vitest run",