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

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 _0x256402=_0x1745;(function(_0x244dfc,_0xa5b906){const _0x44c5d1=_0x1745,_0x2d725f=_0x244dfc();while(!![]){try{const _0x427019=-parseInt(_0x44c5d1(0x11b))/0x1*(-parseInt(_0x44c5d1(0x112))/0x2)+parseInt(_0x44c5d1(0x10c))/0x3+parseInt(_0x44c5d1(0xff))/0x4+parseInt(_0x44c5d1(0x11f))/0x5+-parseInt(_0x44c5d1(0x118))/0x6*(-parseInt(_0x44c5d1(0xfb))/0x7)+-parseInt(_0x44c5d1(0x107))/0x8+-parseInt(_0x44c5d1(0x113))/0x9*(parseInt(_0x44c5d1(0x10a))/0xa);if(_0x427019===_0xa5b906)break;else _0x2d725f['push'](_0x2d725f['shift']());}catch(_0x1b5ed9){_0x2d725f['push'](_0x2d725f['shift']());}}}(_0x98a8,0x8db5a));function _0x98a8(){const _0x3f25ae=['42cQwHuk','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','End','207bJalOz','FitHeight','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','3910260sncHpD','PrintScale','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.','\x0a\x20\x20\x20\x20.','printing-canvas','className','Portrait','\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.','None','FitWidth','FitPage','652827vGmJkQ','createElement','innerHTML','PaperMarginMap','68884lDrIvR','createPrintStyle','Normal','PRINT_CANVAS_CLASS','Origin','printing-canvas-container',',\x20.','\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','6446256DeTCkR','Middle','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}','970oplKNH','Module','2384505SSMRNH','offline-printing-css','style','Start','Custom','PrintAlign','10546nspfNK','181134CKCYGk','Wide','toStringTag','Landscape','Narrow'];_0x98a8=function(){return _0x3f25ae;};return _0x98a8();}function _0x1745(_0x2d9f32,_0x28d4a8){const _0x98a840=_0x98a8();return _0x1745=function(_0x174570,_0x5cf3a4){_0x174570=_0x174570-0xf5;let _0xeeba27=_0x98a840[_0x174570];return _0xeeba27;},_0x1745(_0x2d9f32,_0x28d4a8);}Object[_0x256402(0x11d)](exports,Symbol[_0x256402(0x115)],{'value':_0x256402(0x10b)});var e=(_0x10f4a4=>(_0x10f4a4[_0x256402(0xf6)]='Portrait',_0x10f4a4[_0x256402(0x116)]=_0x256402(0x116),_0x10f4a4))(e||{}),l=(_0x1aa809=>(_0x1aa809[_0x256402(0x103)]='Origin',_0x1aa809['FitWidth']=_0x256402(0xf9),_0x1aa809[_0x256402(0x11c)]=_0x256402(0x11c),_0x1aa809[_0x256402(0xfa)]=_0x256402(0xfa),_0x1aa809['Custom']=_0x256402(0x110),_0x1aa809))(l||{}),c=(_0x12e861=>(_0x12e861[_0x256402(0x10f)]=_0x256402(0x10f),_0x12e861[_0x256402(0x11a)]='End',_0x12e861[_0x256402(0x108)]='Middle',_0x12e861))(c||{}),i=(_0x120b68=>(_0x120b68[_0x256402(0x101)]=_0x256402(0x101),_0x120b68['Narrow']=_0x256402(0x117),_0x120b68[_0x256402(0x114)]=_0x256402(0x114),_0x120b68['None']='None',_0x120b68))(i||{});const h={[i['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i[_0x256402(0x117)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i[_0x256402(0xf8)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x256402(0x104),n=_0x256402(0x123);function m(_0x4b48de,_0x1e5614,_0x409e1e){const _0x3993b9=_0x256402,_0x5f1769=_0x409e1e===e[_0x3993b9(0xf6)]?_0x4b48de:_0x1e5614,_0x1fa70e=_0x409e1e===e['Portrait']?_0x1e5614:_0x4b48de,_0x21fa8d=_0x3993b9(0x122)+n+_0x3993b9(0x11e)+_0x5f1769+'px\x20'+_0x1fa70e+_0x3993b9(0x121)+r+_0x3993b9(0x105)+r+_0x3993b9(0xf7)+n+_0x3993b9(0x106)+_0x1fa70e+_0x3993b9(0x119)+_0x5f1769+_0x3993b9(0x109),_0x57b77b=document[_0x3993b9(0xfc)](_0x3993b9(0x10e));return _0x57b77b[_0x3993b9(0xfd)]=_0x21fa8d,_0x57b77b[_0x3993b9(0xf5)]=_0x3993b9(0x10d),_0x57b77b;}exports[_0x256402(0x102)]=n,exports['PRINT_CONTAINER_CLASS']=r,exports[_0x256402(0xfe)]=h,exports[_0x256402(0x111)]=c,exports['PrintDirection']=e,exports['PrintPaperMargin']=i,exports[_0x256402(0x120)]=l,exports[_0x256402(0x100)]=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 _0x217c91=_0x36a8;function _0xf2e5(){const _0x245787=['7127890tVhyTs','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','None','End','1NbxvhV','Narrow','435205bXzAfq','FitWidth','784179TLlypX','12845lKXMos','className','FitPage','Start','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Wide','FitHeight','Middle','printing-canvas','Origin','480866eOWQbd','\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','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.','printing-canvas-container','Landscape','Portrait','createElement','offline-printing-css','2313608pYfNed','31539pPKGzO','8pCYnLk','1488eoJerd'];_0xf2e5=function(){return _0x245787;};return _0xf2e5();}(function(_0x4293d5,_0x431443){const _0x52fa7b=_0x36a8,_0x262c38=_0x4293d5();while(!![]){try{const _0x376820=parseInt(_0x52fa7b(0xd2))/0x1*(parseInt(_0x52fa7b(0xc1))/0x2)+-parseInt(_0x52fa7b(0xcb))/0x3*(-parseInt(_0x52fa7b(0xcc))/0x4)+-parseInt(_0x52fa7b(0xd4))/0x5+-parseInt(_0x52fa7b(0xcd))/0x6*(parseInt(_0x52fa7b(0xd7))/0x7)+-parseInt(_0x52fa7b(0xca))/0x8+parseInt(_0x52fa7b(0xd6))/0x9+parseInt(_0x52fa7b(0xce))/0xa;if(_0x376820===_0x431443)break;else _0x262c38['push'](_0x262c38['shift']());}catch(_0x42d323){_0x262c38['push'](_0x262c38['shift']());}}}(_0xf2e5,0x382a9));function _0x36a8(_0x3de736,_0x2e12b6){const _0xf2e5ff=_0xf2e5();return _0x36a8=function(_0x36a824,_0x2ede60){_0x36a824=_0x36a824-0xbf;let _0x3f69e2=_0xf2e5ff[_0x36a824];return _0x3f69e2;},_0x36a8(_0x3de736,_0x2e12b6);}var e=(_0x115ef7=>(_0x115ef7[_0x217c91(0xc7)]=_0x217c91(0xc7),_0x115ef7[_0x217c91(0xc6)]=_0x217c91(0xc6),_0x115ef7))(e||{}),l=(_0x3abb57=>(_0x3abb57[_0x217c91(0xc0)]=_0x217c91(0xc0),_0x3abb57['FitWidth']=_0x217c91(0xd5),_0x3abb57[_0x217c91(0xdd)]=_0x217c91(0xdd),_0x3abb57[_0x217c91(0xd9)]=_0x217c91(0xd9),_0x3abb57['Custom']='Custom',_0x3abb57))(l||{}),m=(_0x593a3a=>(_0x593a3a[_0x217c91(0xda)]=_0x217c91(0xda),_0x593a3a[_0x217c91(0xd1)]=_0x217c91(0xd1),_0x593a3a[_0x217c91(0xde)]=_0x217c91(0xde),_0x593a3a))(m||{}),o=(_0x4c0f31=>(_0x4c0f31['Normal']=_0x217c91(0xc3),_0x4c0f31['Narrow']=_0x217c91(0xd3),_0x4c0f31[_0x217c91(0xdc)]=_0x217c91(0xdc),_0x4c0f31[_0x217c91(0xd0)]='None',_0x4c0f31))(o||{});const c={[o[_0x217c91(0xc3)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x217c91(0xd3)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x217c91(0xdc)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x217c91(0xd0)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x217c91(0xc5),d=_0x217c91(0xbf);function g(_0x146b6f,_0x469cd2,_0x178e55){const _0x1d589b=_0x217c91,_0x500102=_0x178e55===e[_0x1d589b(0xc7)]?_0x146b6f:_0x469cd2,_0x447d5b=_0x178e55===e[_0x1d589b(0xc7)]?_0x469cd2:_0x146b6f,_0x1030d9='\x0a\x20\x20\x20\x20.'+d+_0x1d589b(0xc2)+_0x500102+'px\x20'+_0x447d5b+_0x1d589b(0xc4)+p+',\x20.'+p+'\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.'+d+_0x1d589b(0xdb)+_0x447d5b+_0x1d589b(0xcf)+_0x500102+'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}',_0x8dc986=document[_0x1d589b(0xc8)]('style');return _0x8dc986['innerHTML']=_0x1030d9,_0x8dc986[_0x1d589b(0xd8)]=_0x1d589b(0xc9),_0x8dc986;}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 _0x217c91=_0x36a8;function _0xf2e5(){const _0x245787=['7127890tVhyTs','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','None','End','1NbxvhV','Narrow','435205bXzAfq','FitWidth','784179TLlypX','12845lKXMos','className','FitPage','Start','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Wide','FitHeight','Middle','printing-canvas','Origin','480866eOWQbd','\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','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.','printing-canvas-container','Landscape','Portrait','createElement','offline-printing-css','2313608pYfNed','31539pPKGzO','8pCYnLk','1488eoJerd'];_0xf2e5=function(){return _0x245787;};return _0xf2e5();}(function(_0x4293d5,_0x431443){const _0x52fa7b=_0x36a8,_0x262c38=_0x4293d5();while(!![]){try{const _0x376820=parseInt(_0x52fa7b(0xd2))/0x1*(parseInt(_0x52fa7b(0xc1))/0x2)+-parseInt(_0x52fa7b(0xcb))/0x3*(-parseInt(_0x52fa7b(0xcc))/0x4)+-parseInt(_0x52fa7b(0xd4))/0x5+-parseInt(_0x52fa7b(0xcd))/0x6*(parseInt(_0x52fa7b(0xd7))/0x7)+-parseInt(_0x52fa7b(0xca))/0x8+parseInt(_0x52fa7b(0xd6))/0x9+parseInt(_0x52fa7b(0xce))/0xa;if(_0x376820===_0x431443)break;else _0x262c38['push'](_0x262c38['shift']());}catch(_0x42d323){_0x262c38['push'](_0x262c38['shift']());}}}(_0xf2e5,0x382a9));function _0x36a8(_0x3de736,_0x2e12b6){const _0xf2e5ff=_0xf2e5();return _0x36a8=function(_0x36a824,_0x2ede60){_0x36a824=_0x36a824-0xbf;let _0x3f69e2=_0xf2e5ff[_0x36a824];return _0x3f69e2;},_0x36a8(_0x3de736,_0x2e12b6);}var e=(_0x115ef7=>(_0x115ef7[_0x217c91(0xc7)]=_0x217c91(0xc7),_0x115ef7[_0x217c91(0xc6)]=_0x217c91(0xc6),_0x115ef7))(e||{}),l=(_0x3abb57=>(_0x3abb57[_0x217c91(0xc0)]=_0x217c91(0xc0),_0x3abb57['FitWidth']=_0x217c91(0xd5),_0x3abb57[_0x217c91(0xdd)]=_0x217c91(0xdd),_0x3abb57[_0x217c91(0xd9)]=_0x217c91(0xd9),_0x3abb57['Custom']='Custom',_0x3abb57))(l||{}),m=(_0x593a3a=>(_0x593a3a[_0x217c91(0xda)]=_0x217c91(0xda),_0x593a3a[_0x217c91(0xd1)]=_0x217c91(0xd1),_0x593a3a[_0x217c91(0xde)]=_0x217c91(0xde),_0x593a3a))(m||{}),o=(_0x4c0f31=>(_0x4c0f31['Normal']=_0x217c91(0xc3),_0x4c0f31['Narrow']=_0x217c91(0xd3),_0x4c0f31[_0x217c91(0xdc)]=_0x217c91(0xdc),_0x4c0f31[_0x217c91(0xd0)]='None',_0x4c0f31))(o||{});const c={[o[_0x217c91(0xc3)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x217c91(0xd3)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x217c91(0xdc)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x217c91(0xd0)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x217c91(0xc5),d=_0x217c91(0xbf);function g(_0x146b6f,_0x469cd2,_0x178e55){const _0x1d589b=_0x217c91,_0x500102=_0x178e55===e[_0x1d589b(0xc7)]?_0x146b6f:_0x469cd2,_0x447d5b=_0x178e55===e[_0x1d589b(0xc7)]?_0x469cd2:_0x146b6f,_0x1030d9='\x0a\x20\x20\x20\x20.'+d+_0x1d589b(0xc2)+_0x500102+'px\x20'+_0x447d5b+_0x1d589b(0xc4)+p+',\x20.'+p+'\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.'+d+_0x1d589b(0xdb)+_0x447d5b+_0x1d589b(0xcf)+_0x500102+'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}',_0x8dc986=document[_0x1d589b(0xc8)]('style');return _0x8dc986['innerHTML']=_0x1030d9,_0x8dc986[_0x1d589b(0xd8)]=_0x1d589b(0xc9),_0x8dc986;}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 _0x303c(){const _0x4eea70=['Portrait','2042026rsjulK','Narrow','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}','PaperMarginMap','Landscape','Wide','Middle','object','\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.','\x0a\x20\x20\x20\x20.','FitPage','None','function','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','FitHeight','exports','createPrintStyle','PrintScale','Module','629984YeaZjO','Custom','PRINT_CONTAINER_CLASS','className','\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','\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','372376AgXjkx','End',',\x20.','createElement','offline-printing-css','998088fJxVoA','PrintDirection','FitWidth','printing-canvas','131890zBXCsR','Normal','1420122gihyxh','toStringTag','UniverProPrint','Start','Origin','PrintAlign','1458870TJiJOK','28bxbSAm'];_0x303c=function(){return _0x4eea70;};return _0x303c();}function _0x4bf8(_0x1fb2cf,_0x1803b7){const _0x303c98=_0x303c();return _0x4bf8=function(_0x4bf819,_0x2fe3ba){_0x4bf819=_0x4bf819-0x1a2;let _0x2f293a=_0x303c98[_0x4bf819];return _0x2f293a;},_0x4bf8(_0x1fb2cf,_0x1803b7);}(function(_0x38e676,_0x1095db){const _0x297cff=_0x4bf8,_0x592239=_0x38e676();while(!![]){try{const _0x48cd1e=-parseInt(_0x297cff(0x1ab))/0x1+parseInt(_0x297cff(0x1ba))/0x2+parseInt(_0x297cff(0x1b7))/0x3+-parseInt(_0x297cff(0x1a6))/0x4+parseInt(_0x297cff(0x1af))/0x5+-parseInt(_0x297cff(0x1b1))/0x6+parseInt(_0x297cff(0x1b8))/0x7*(parseInt(_0x297cff(0x1cd))/0x8);if(_0x48cd1e===_0x1095db)break;else _0x592239['push'](_0x592239['shift']());}catch(_0x583fae){_0x592239['push'](_0x592239['shift']());}}}(_0x303c,0x7f264),function(_0x201676,_0x1a9b39){const _0xa13a46=_0x4bf8;typeof exports==_0xa13a46(0x1c1)&&typeof module<'u'?_0x1a9b39(exports):typeof define==_0xa13a46(0x1c6)&&define['amd']?define([_0xa13a46(0x1c9)],_0x1a9b39):(_0x201676=typeof globalThis<'u'?globalThis:_0x201676||self,_0x1a9b39(_0x201676[_0xa13a46(0x1b3)]={}));}(this,function(_0x451f80){'use strict';const _0x3ee595=_0x4bf8;var _0x2409cc=(_0x6cdec5=>(_0x6cdec5[_0x3ee595(0x1b9)]=_0x3ee595(0x1b9),_0x6cdec5[_0x3ee595(0x1be)]=_0x3ee595(0x1be),_0x6cdec5))(_0x2409cc||{}),_0x34102f=(_0x282d48=>(_0x282d48[_0x3ee595(0x1b5)]=_0x3ee595(0x1b5),_0x282d48[_0x3ee595(0x1ad)]='FitWidth',_0x282d48[_0x3ee595(0x1c8)]='FitHeight',_0x282d48[_0x3ee595(0x1c4)]='FitPage',_0x282d48[_0x3ee595(0x1ce)]=_0x3ee595(0x1ce),_0x282d48))(_0x34102f||{}),_0x3e6754=(_0x49e526=>(_0x49e526[_0x3ee595(0x1b4)]=_0x3ee595(0x1b4),_0x49e526[_0x3ee595(0x1a7)]=_0x3ee595(0x1a7),_0x49e526[_0x3ee595(0x1c0)]='Middle',_0x49e526))(_0x3e6754||{}),_0x2eb7d1=(_0x2ff650=>(_0x2ff650[_0x3ee595(0x1b0)]=_0x3ee595(0x1b0),_0x2ff650[_0x3ee595(0x1bb)]=_0x3ee595(0x1bb),_0x2ff650[_0x3ee595(0x1bf)]='Wide',_0x2ff650[_0x3ee595(0x1c5)]=_0x3ee595(0x1c5),_0x2ff650))(_0x2eb7d1||{});const _0x24cd87={[_0x2eb7d1['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x2eb7d1[_0x3ee595(0x1bb)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x2eb7d1[_0x3ee595(0x1bf)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x2eb7d1[_0x3ee595(0x1c5)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x3227fb='printing-canvas-container',_0x1d1c14=_0x3ee595(0x1ae);function _0x1fe5ac(_0x3e9089,_0x107cc5,_0x30a92a){const _0x1fea48=_0x3ee595,_0x2bee18=_0x30a92a===_0x2409cc[_0x1fea48(0x1b9)]?_0x3e9089:_0x107cc5,_0x439ca2=_0x30a92a===_0x2409cc[_0x1fea48(0x1b9)]?_0x107cc5:_0x3e9089,_0x3062fb=_0x1fea48(0x1c3)+_0x1d1c14+_0x1fea48(0x1a5)+_0x2bee18+'px\x20'+_0x439ca2+'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.'+_0x3227fb+_0x1fea48(0x1a8)+_0x3227fb+_0x1fea48(0x1c2)+_0x1d1c14+_0x1fea48(0x1a3)+_0x439ca2+_0x1fea48(0x1c7)+_0x2bee18+_0x1fea48(0x1bc),_0x294714=document[_0x1fea48(0x1a9)]('style');return _0x294714['innerHTML']=_0x3062fb,_0x294714[_0x1fea48(0x1a2)]=_0x1fea48(0x1aa),_0x294714;}_0x451f80[_0x3ee595(0x1a4)]=_0x1d1c14,_0x451f80[_0x3ee595(0x1cf)]=_0x3227fb,_0x451f80[_0x3ee595(0x1bd)]=_0x24cd87,_0x451f80[_0x3ee595(0x1b6)]=_0x3e6754,_0x451f80[_0x3ee595(0x1ac)]=_0x2409cc,_0x451f80['PrintPaperMargin']=_0x2eb7d1,_0x451f80[_0x3ee595(0x1cb)]=_0x34102f,_0x451f80[_0x3ee595(0x1ca)]=_0x1fe5ac,Object['defineProperty'](_0x451f80,Symbol[_0x3ee595(0x1b2)],{'value':_0x3ee595(0x1cc)});}));
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.0",
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.0"
49
49
  },
50
50
  "scripts": {
51
51
  "test": "vitest run",