@univerjs-pro/print 0.6.7 → 0.6.9-nightly.202504021607

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 _0x5705f3=_0x3f60;function _0x3f60(_0x59f16f,_0x279169){const _0x3be241=_0x3be2();return _0x3f60=function(_0x3f60cd,_0x4e9caa){_0x3f60cd=_0x3f60cd-0x177;let _0x435d7a=_0x3be241[_0x3f60cd];return _0x435d7a;},_0x3f60(_0x59f16f,_0x279169);}(function(_0xde56a5,_0x1cea78){const _0x516600=_0x3f60,_0x5a641e=_0xde56a5();while(!![]){try{const _0x3e1867=parseInt(_0x516600(0x1a2))/0x1*(-parseInt(_0x516600(0x180))/0x2)+parseInt(_0x516600(0x19c))/0x3+parseInt(_0x516600(0x183))/0x4+-parseInt(_0x516600(0x1a4))/0x5*(-parseInt(_0x516600(0x17d))/0x6)+parseInt(_0x516600(0x190))/0x7*(parseInt(_0x516600(0x18a))/0x8)+-parseInt(_0x516600(0x17e))/0x9+-parseInt(_0x516600(0x19b))/0xa;if(_0x3e1867===_0x1cea78)break;else _0x5a641e['push'](_0x5a641e['shift']());}catch(_0x4df418){_0x5a641e['push'](_0x5a641e['shift']());}}}(_0x3be2,0xf3f15));Object['defineProperty'](exports,Symbol[_0x5705f3(0x18b)],{'value':'Module'});var e=(_0x3d5f0e=>(_0x3d5f0e['Letter']=_0x5705f3(0x187),_0x3d5f0e[_0x5705f3(0x186)]=_0x5705f3(0x186),_0x3d5f0e[_0x5705f3(0x1a6)]=_0x5705f3(0x1a6),_0x3d5f0e[_0x5705f3(0x177)]=_0x5705f3(0x177),_0x3d5f0e[_0x5705f3(0x19e)]=_0x5705f3(0x19e),_0x3d5f0e[_0x5705f3(0x17b)]=_0x5705f3(0x17b),_0x3d5f0e['A3']='A3',_0x3d5f0e['A4']='A4',_0x3d5f0e['A5']='A5',_0x3d5f0e['B4']='B4',_0x3d5f0e['B5']='B5',_0x3d5f0e))(e||{}),i=(_0x1cf997=>(_0x1cf997[_0x5705f3(0x1a5)]=_0x5705f3(0x1a5),_0x1cf997['Landscape']=_0x5705f3(0x184),_0x1cf997))(i||{}),c=(_0xfa922e=>(_0xfa922e['Origin']=_0x5705f3(0x19a),_0xfa922e[_0x5705f3(0x1a7)]='FitWidth',_0xfa922e['FitHeight']=_0x5705f3(0x192),_0xfa922e[_0x5705f3(0x199)]='FitPage',_0xfa922e['Custom']='Custom',_0xfa922e))(c||{}),g=(_0xeb6e53=>(_0xeb6e53[_0x5705f3(0x19f)]=_0x5705f3(0x19f),_0xeb6e53[_0x5705f3(0x179)]=_0x5705f3(0x179),_0xeb6e53[_0x5705f3(0x181)]=_0x5705f3(0x181),_0xeb6e53))(g||{}),o=(_0x454cc4=>(_0x454cc4[_0x5705f3(0x196)]=_0x5705f3(0x196),_0x454cc4[_0x5705f3(0x1a3)]=_0x5705f3(0x1a3),_0x454cc4[_0x5705f3(0x1a0)]=_0x5705f3(0x1a0),_0x454cc4['None']=_0x5705f3(0x18c),_0x454cc4))(o||{});function _0x3be2(){const _0x433c1d=['3002660tluuTU','Landscape','printing-canvas','Tabloid','Letter','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','innerHTML','246592GinwMB','toStringTag','None','\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','px;\x20\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','offline-printing-css','119TrRXrC','PrintPaperMargin','FitHeight','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','className','px\x20','Normal','printing-canvas-container','style','FitPage','Origin','33990740fCsEhu','5928762oNcJrW','createPrintStyle','Executive','Start','Wide','PaperMarginMap','1kDNipE','Narrow','23005YdUdRm','Portrait','Legal','FitWidth','Statement','PaperSizePxMap','End','createElement','Folio','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','2232tYwBCH','2773881tbQfPj','PrintDirection','512054PyEfrD','Middle','PrintScale'];_0x3be2=function(){return _0x433c1d;};return _0x3be2();}const m={[e['A3']]:{'w':0x463,'h':0x633},[e['A4']]:{'w':0x31a,'h':0x464},[e['A5']]:{'w':0x22f,'h':0x31a},[e['B4']]:{'w':0x3b0,'h':0x540},[e['B5']]:{'w':0x299,'h':0x3b0},[e['Executive']]:{'w':0x2b8,'h':0x3f0},[e[_0x5705f3(0x17b)]]:{'w':0x330,'h':0x4e0},[e['Legal']]:{'w':0x330,'h':0x540},[e[_0x5705f3(0x187)]]:{'w':0x330,'h':0x420},[e[_0x5705f3(0x177)]]:{'w':0x210,'h':0x330},[e['Tabloid']]:{'w':0x420,'h':0x660}},N={[o[_0x5705f3(0x196)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x5705f3(0x1a0)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x5705f3(0x18c)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x5705f3(0x197),p=_0x5705f3(0x185);function A(_0x5908ef,_0x1d802f){const _0x2221b7=_0x5705f3,{w:_0x348cd2,h:_0x29b98d}=m[_0x5908ef],_0x177b2a=_0x1d802f===i[_0x2221b7(0x1a5)]?_0x348cd2:_0x29b98d,_0x25b381=_0x1d802f===i['Portrait']?_0x29b98d:_0x348cd2,_0x6050d0=_0x2221b7(0x18d)+_0x177b2a+_0x2221b7(0x195)+_0x25b381+_0x2221b7(0x18e)+n+',\x20.'+n+_0x2221b7(0x17c)+p+_0x2221b7(0x193)+_0x25b381+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x177b2a+_0x2221b7(0x188),_0x1236f5=document[_0x2221b7(0x17a)](_0x2221b7(0x198));return _0x1236f5[_0x2221b7(0x189)]=_0x6050d0,_0x1236f5[_0x2221b7(0x194)]=_0x2221b7(0x18f),_0x1236f5;}exports['PRINT_CANVAS_CLASS']=p,exports['PRINT_CONTAINER_CLASS']=n,exports[_0x5705f3(0x1a1)]=N,exports[_0x5705f3(0x178)]=m,exports['PrintAlign']=g,exports[_0x5705f3(0x17f)]=i,exports[_0x5705f3(0x191)]=o,exports['PrintPaperSize']=e,exports[_0x5705f3(0x182)]=c,exports[_0x5705f3(0x19d)]=A;
1
+ 'use strict';function _0x5c89(){const _0x19924f=['Statement','7kCTCxz','FitWidth','\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','4447210UazsTi','style','PRINT_CONTAINER_CLASS','PrintPaperSize','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','printing-canvas-container','84746xPUtgl','Start','984690KaJWQg','px\x20','FitHeight','End','px;\x20\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','PrintPaperMargin','className','Normal','offline-printing-css','toStringTag','Tabloid','3wRhJXX','Legal','Wide','createElement','PrintScale','13388CDmXGS','3090456oAERtY','Origin','210iNJiRe',',\x20.','Custom','FitPage','Letter','Executive','Middle','createPrintStyle','defineProperty','Module','Narrow','None','4625599jizAmT','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Folio','PRINT_CANVAS_CLASS','Portrait','183iNvWgb','PaperMarginMap','56694mzTYRP','innerHTML','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Landscape'];_0x5c89=function(){return _0x19924f;};return _0x5c89();}const _0x4e416a=_0x1190;(function(_0x30616c,_0x166bff){const _0x1fd906=_0x1190,_0x3d0725=_0x30616c();while(!![]){try{const _0x4be286=-parseInt(_0x1fd906(0x129))/0x1*(-parseInt(_0x1fd906(0x152))/0x2)+-parseInt(_0x1fd906(0x142))/0x3*(-parseInt(_0x1fd906(0x12e))/0x4)+parseInt(_0x1fd906(0x131))/0x5*(-parseInt(_0x1fd906(0x144))/0x6)+-parseInt(_0x1fd906(0x149))/0x7*(-parseInt(_0x1fd906(0x12f))/0x8)+-parseInt(_0x1fd906(0x11e))/0x9+parseInt(_0x1fd906(0x14c))/0xa+-parseInt(_0x1fd906(0x13d))/0xb;if(_0x4be286===_0x166bff)break;else _0x3d0725['push'](_0x3d0725['shift']());}catch(_0x87e333){_0x3d0725['push'](_0x3d0725['shift']());}}}(_0x5c89,0x39811));Object[_0x4e416a(0x139)](exports,Symbol[_0x4e416a(0x127)],{'value':_0x4e416a(0x13a)});var e=(_0x32f10a=>(_0x32f10a[_0x4e416a(0x135)]='Letter',_0x32f10a[_0x4e416a(0x128)]=_0x4e416a(0x128),_0x32f10a['Legal']=_0x4e416a(0x12a),_0x32f10a[_0x4e416a(0x148)]=_0x4e416a(0x148),_0x32f10a[_0x4e416a(0x136)]='Executive',_0x32f10a[_0x4e416a(0x13f)]=_0x4e416a(0x13f),_0x32f10a['A3']='A3',_0x32f10a['A4']='A4',_0x32f10a['A5']='A5',_0x32f10a['B4']='B4',_0x32f10a['B5']='B5',_0x32f10a))(e||{}),i=(_0x50f29c=>(_0x50f29c[_0x4e416a(0x141)]=_0x4e416a(0x141),_0x50f29c[_0x4e416a(0x147)]=_0x4e416a(0x147),_0x50f29c))(i||{}),c=(_0x39a16c=>(_0x39a16c[_0x4e416a(0x130)]='Origin',_0x39a16c[_0x4e416a(0x14a)]='FitWidth',_0x39a16c[_0x4e416a(0x120)]='FitHeight',_0x39a16c[_0x4e416a(0x134)]=_0x4e416a(0x134),_0x39a16c[_0x4e416a(0x133)]='Custom',_0x39a16c))(c||{}),g=(_0x173fa6=>(_0x173fa6['Start']=_0x4e416a(0x153),_0x173fa6[_0x4e416a(0x121)]=_0x4e416a(0x121),_0x173fa6[_0x4e416a(0x137)]=_0x4e416a(0x137),_0x173fa6))(g||{}),o=(_0x3aa868=>(_0x3aa868['Normal']=_0x4e416a(0x125),_0x3aa868[_0x4e416a(0x13b)]=_0x4e416a(0x13b),_0x3aa868['Wide']=_0x4e416a(0x12b),_0x3aa868[_0x4e416a(0x13c)]=_0x4e416a(0x13c),_0x3aa868))(o||{});const m={[e['A3']]:{'w':0x463,'h':0x633},[e['A4']]:{'w':0x31a,'h':0x464},[e['A5']]:{'w':0x22f,'h':0x31a},[e['B4']]:{'w':0x3b0,'h':0x540},[e['B5']]:{'w':0x299,'h':0x3b0},[e['Executive']]:{'w':0x2b8,'h':0x3f0},[e['Folio']]:{'w':0x330,'h':0x4e0},[e['Legal']]:{'w':0x330,'h':0x540},[e[_0x4e416a(0x135)]]:{'w':0x330,'h':0x420},[e[_0x4e416a(0x148)]]:{'w':0x210,'h':0x330},[e[_0x4e416a(0x128)]]:{'w':0x420,'h':0x660}},N={[o[_0x4e416a(0x125)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x4e416a(0x13b)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x4e416a(0x12b)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x4e416a(0x13c)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x4e416a(0x151),p='printing-canvas';function _0x1190(_0x32e6bb,_0x22ee51){const _0x5c892f=_0x5c89();return _0x1190=function(_0x119062,_0x4eda7a){_0x119062=_0x119062-0x11e;let _0x3a63ee=_0x5c892f[_0x119062];return _0x3a63ee;},_0x1190(_0x32e6bb,_0x22ee51);}function A(_0x5d5fcc,_0x4da81d){const _0x1867d9=_0x4e416a,{w:_0x1b741e,h:_0x1026cc}=m[_0x5d5fcc],_0x4fe6e2=_0x4da81d===i[_0x1867d9(0x141)]?_0x1b741e:_0x1026cc,_0x2d909b=_0x4da81d===i['Portrait']?_0x1026cc:_0x1b741e,_0x124af5=_0x1867d9(0x14b)+_0x4fe6e2+_0x1867d9(0x11f)+_0x2d909b+_0x1867d9(0x122)+n+_0x1867d9(0x132)+n+_0x1867d9(0x150)+p+_0x1867d9(0x13e)+_0x2d909b+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x4fe6e2+_0x1867d9(0x146),_0x935639=document[_0x1867d9(0x12c)](_0x1867d9(0x14d));return _0x935639[_0x1867d9(0x145)]=_0x124af5,_0x935639[_0x1867d9(0x124)]=_0x1867d9(0x126),_0x935639;}exports[_0x4e416a(0x140)]=p,exports[_0x4e416a(0x14e)]=n,exports[_0x4e416a(0x143)]=N,exports['PaperSizePxMap']=m,exports['PrintAlign']=g,exports['PrintDirection']=i,exports[_0x4e416a(0x123)]=o,exports[_0x4e416a(0x14f)]=e,exports[_0x4e416a(0x12d)]=c,exports[_0x4e416a(0x138)]=A;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0xeb1a5=_0x5c17;(function(_0x946cc6,_0x465d9f){const _0x30fd7f=_0x5c17,_0x2238e7=_0x946cc6();while(!![]){try{const _0x218ecc=-parseInt(_0x30fd7f(0x1eb))/0x1+parseInt(_0x30fd7f(0x209))/0x2+parseInt(_0x30fd7f(0x1fd))/0x3*(-parseInt(_0x30fd7f(0x1f6))/0x4)+parseInt(_0x30fd7f(0x1ec))/0x5*(parseInt(_0x30fd7f(0x1e8))/0x6)+parseInt(_0x30fd7f(0x1ff))/0x7*(-parseInt(_0x30fd7f(0x1fe))/0x8)+parseInt(_0x30fd7f(0x1f4))/0x9*(parseInt(_0x30fd7f(0x206))/0xa)+parseInt(_0x30fd7f(0x1fb))/0xb;if(_0x218ecc===_0x465d9f)break;else _0x2238e7['push'](_0x2238e7['shift']());}catch(_0x27e18c){_0x2238e7['push'](_0x2238e7['shift']());}}}(_0x5dcc,0xbd8c2));var o=(_0x499820=>(_0x499820[_0xeb1a5(0x1f1)]=_0xeb1a5(0x1f1),_0x499820[_0xeb1a5(0x204)]=_0xeb1a5(0x204),_0x499820[_0xeb1a5(0x201)]=_0xeb1a5(0x201),_0x499820[_0xeb1a5(0x1e4)]=_0xeb1a5(0x1e4),_0x499820[_0xeb1a5(0x1ef)]=_0xeb1a5(0x1ef),_0x499820['Folio']=_0xeb1a5(0x1f7),_0x499820['A3']='A3',_0x499820['A4']='A4',_0x499820['A5']='A5',_0x499820['B4']='B4',_0x499820['B5']='B5',_0x499820))(o||{}),i=(_0x55df33=>(_0x55df33[_0xeb1a5(0x203)]=_0xeb1a5(0x203),_0x55df33[_0xeb1a5(0x1e7)]=_0xeb1a5(0x1e7),_0x55df33))(i||{}),w=(_0x1c763e=>(_0x1c763e['Origin']=_0xeb1a5(0x1f0),_0x1c763e[_0xeb1a5(0x1e5)]=_0xeb1a5(0x1e5),_0x1c763e[_0xeb1a5(0x20a)]='FitHeight',_0x1c763e[_0xeb1a5(0x20c)]=_0xeb1a5(0x20c),_0x1c763e[_0xeb1a5(0x1e9)]=_0xeb1a5(0x1e9),_0x1c763e))(w||{}),m=(_0x290de4=>(_0x290de4[_0xeb1a5(0x1fa)]=_0xeb1a5(0x1fa),_0x290de4[_0xeb1a5(0x1e6)]=_0xeb1a5(0x1e6),_0x290de4[_0xeb1a5(0x1f9)]=_0xeb1a5(0x1f9),_0x290de4))(m||{}),e=(_0x1c1708=>(_0x1c1708[_0xeb1a5(0x1fc)]=_0xeb1a5(0x1fc),_0x1c1708[_0xeb1a5(0x20b)]=_0xeb1a5(0x20b),_0x1c1708['Wide']=_0xeb1a5(0x207),_0x1c1708[_0xeb1a5(0x1f3)]=_0xeb1a5(0x1f3),_0x1c1708))(e||{});function _0x5c17(_0x2dae13,_0x4a3276){const _0x5dcc6d=_0x5dcc();return _0x5c17=function(_0x5c1773,_0x4b58ec){_0x5c1773=_0x5c1773-0x1e4;let _0xa42c0=_0x5dcc6d[_0x5c1773];return _0xa42c0;},_0x5c17(_0x2dae13,_0x4a3276);}function _0x5dcc(){const _0x2d00f2=['FitHeight','Narrow','FitPage','style','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','innerHTML','Statement','FitWidth','End','Landscape','6YSzogk','Custom','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','499212ZLvWDA','740885kcErrX','\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Executive','Origin','Letter','className','None','9SdDvjb','px;\x20\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','744zXoEWq','Folio','printing-canvas-container','Middle','Start','9001839ZJplkY','Normal','12837ImQJMg','1464TQFidp','24535MoJQUu','offline-printing-css','Legal','px\x20','Portrait','Tabloid','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','12317380xKGxCt','Wide',',\x20.','1029286IWjacH'];_0x5dcc=function(){return _0x2d00f2;};return _0x5dcc();}const g={[o['A3']]:{'w':0x463,'h':0x633},[o['A4']]:{'w':0x31a,'h':0x464},[o['A5']]:{'w':0x22f,'h':0x31a},[o['B4']]:{'w':0x3b0,'h':0x540},[o['B5']]:{'w':0x299,'h':0x3b0},[o[_0xeb1a5(0x1ef)]]:{'w':0x2b8,'h':0x3f0},[o[_0xeb1a5(0x1f7)]]:{'w':0x330,'h':0x4e0},[o['Legal']]:{'w':0x330,'h':0x540},[o['Letter']]:{'w':0x330,'h':0x420},[o['Statement']]:{'w':0x210,'h':0x330},[o['Tabloid']]:{'w':0x420,'h':0x660}},v={[e['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0xeb1a5(0x20b)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0xeb1a5(0x207)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0xeb1a5(0x1f3)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0xeb1a5(0x1f8),p='printing-canvas';function N(_0x35c7dc,_0x468826){const _0xfb8418=_0xeb1a5,{w:_0x242180,h:_0xac38be}=g[_0x35c7dc],_0x4bae8a=_0x468826===i[_0xfb8418(0x203)]?_0x242180:_0xac38be,_0x36ff9e=_0x468826===i[_0xfb8418(0x203)]?_0xac38be:_0x242180,_0x1a7c15=_0xfb8418(0x1ed)+_0x4bae8a+_0xfb8418(0x202)+_0x36ff9e+_0xfb8418(0x1f5)+l+_0xfb8418(0x208)+l+_0xfb8418(0x205)+p+_0xfb8418(0x1ea)+_0x36ff9e+_0xfb8418(0x1ee)+_0x4bae8a+_0xfb8418(0x20e),_0x1535e0=document['createElement'](_0xfb8418(0x20d));return _0x1535e0[_0xfb8418(0x20f)]=_0x1a7c15,_0x1535e0[_0xfb8418(0x1f2)]=_0xfb8418(0x200),_0x1535e0;}export{p as PRINT_CANVAS_CLASS,l as PRINT_CONTAINER_CLASS,v as PaperMarginMap,g as PaperSizePxMap,m as PrintAlign,i as PrintDirection,e as PrintPaperMargin,o as PrintPaperSize,w as PrintScale,N as createPrintStyle};
1
+ function _0xa11d(_0x3a3732,_0x284631){const _0xd1549e=_0xd154();return _0xa11d=function(_0xa11d38,_0x426dc3){_0xa11d38=_0xa11d38-0x67;let _0x45458b=_0xd1549e[_0xa11d38];return _0x45458b;},_0xa11d(_0x3a3732,_0x284631);}function _0xd154(){const _0x1d6baa=['FitPage','242673WQyMla','Start','offline-printing-css','Custom','340ygxaUm','Tabloid','FitHeight','None','329KKzpIf','Wide','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Normal','style','15287841rEiuRb','Origin','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','FitWidth','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Executive','Letter','createElement','px;\x20\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','15088slEdwx','Statement','2613160DUNldy','Landscape','End',',\x20.','Folio','467661wRmThE','848236dvZpUT','Portrait','Middle','Legal','Narrow','24972pInsCU'];_0xd154=function(){return _0x1d6baa;};return _0xd154();}const _0x5714b1=_0xa11d;(function(_0xd6e529,_0x2c0458){const _0x50846a=_0xa11d,_0x40d192=_0xd6e529();while(!![]){try{const _0x56091a=parseInt(_0x50846a(0x89))/0x1+-parseInt(_0x50846a(0x82))/0x2+-parseInt(_0x50846a(0x81))/0x3+-parseInt(_0x50846a(0x7c))/0x4+-parseInt(_0x50846a(0x68))/0x5*(parseInt(_0x50846a(0x87))/0x6)+-parseInt(_0x50846a(0x6c))/0x7*(parseInt(_0x50846a(0x7a))/0x8)+parseInt(_0x50846a(0x71))/0x9;if(_0x56091a===_0x2c0458)break;else _0x40d192['push'](_0x40d192['shift']());}catch(_0xea8efb){_0x40d192['push'](_0x40d192['shift']());}}}(_0xd154,0x521f1));var o=(_0x5140b8=>(_0x5140b8[_0x5714b1(0x77)]=_0x5714b1(0x77),_0x5140b8[_0x5714b1(0x69)]=_0x5714b1(0x69),_0x5140b8[_0x5714b1(0x85)]=_0x5714b1(0x85),_0x5140b8['Statement']=_0x5714b1(0x7b),_0x5140b8[_0x5714b1(0x76)]='Executive',_0x5140b8[_0x5714b1(0x80)]=_0x5714b1(0x80),_0x5140b8['A3']='A3',_0x5140b8['A4']='A4',_0x5140b8['A5']='A5',_0x5140b8['B4']='B4',_0x5140b8['B5']='B5',_0x5140b8))(o||{}),i=(_0x289bb9=>(_0x289bb9['Portrait']=_0x5714b1(0x83),_0x289bb9[_0x5714b1(0x7d)]='Landscape',_0x289bb9))(i||{}),w=(_0x39b6e1=>(_0x39b6e1['Origin']=_0x5714b1(0x72),_0x39b6e1['FitWidth']=_0x5714b1(0x74),_0x39b6e1['FitHeight']=_0x5714b1(0x6a),_0x39b6e1[_0x5714b1(0x88)]='FitPage',_0x39b6e1['Custom']=_0x5714b1(0x67),_0x39b6e1))(w||{}),m=(_0x593526=>(_0x593526[_0x5714b1(0x8a)]='Start',_0x593526[_0x5714b1(0x7e)]=_0x5714b1(0x7e),_0x593526[_0x5714b1(0x84)]=_0x5714b1(0x84),_0x593526))(m||{}),e=(_0x40db69=>(_0x40db69[_0x5714b1(0x6f)]='Normal',_0x40db69[_0x5714b1(0x86)]=_0x5714b1(0x86),_0x40db69[_0x5714b1(0x6d)]=_0x5714b1(0x6d),_0x40db69[_0x5714b1(0x6b)]=_0x5714b1(0x6b),_0x40db69))(e||{});const g={[o['A3']]:{'w':0x463,'h':0x633},[o['A4']]:{'w':0x31a,'h':0x464},[o['A5']]:{'w':0x22f,'h':0x31a},[o['B4']]:{'w':0x3b0,'h':0x540},[o['B5']]:{'w':0x299,'h':0x3b0},[o[_0x5714b1(0x76)]]:{'w':0x2b8,'h':0x3f0},[o[_0x5714b1(0x80)]]:{'w':0x330,'h':0x4e0},[o[_0x5714b1(0x85)]]:{'w':0x330,'h':0x540},[o[_0x5714b1(0x77)]]:{'w':0x330,'h':0x420},[o[_0x5714b1(0x7b)]]:{'w':0x210,'h':0x330},[o['Tabloid']]:{'w':0x420,'h':0x660}},v={[e['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x5714b1(0x86)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0x5714b1(0x6d)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x5714b1(0x6b)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l='printing-canvas-container',p='printing-canvas';function N(_0x258660,_0x5c25a7){const _0x974942=_0x5714b1,{w:_0x5b45dc,h:_0x1c4cf5}=g[_0x258660],_0x56f54e=_0x5c25a7===i[_0x974942(0x83)]?_0x5b45dc:_0x1c4cf5,_0x3fd4c9=_0x5c25a7===i[_0x974942(0x83)]?_0x1c4cf5:_0x5b45dc,_0x1c0d60='\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20'+_0x56f54e+'px\x20'+_0x3fd4c9+_0x974942(0x79)+l+_0x974942(0x7f)+l+_0x974942(0x73)+p+_0x974942(0x75)+_0x3fd4c9+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x56f54e+_0x974942(0x6e),_0x149acb=document[_0x974942(0x78)](_0x974942(0x70));return _0x149acb['innerHTML']=_0x1c0d60,_0x149acb['className']=_0x974942(0x8b),_0x149acb;}export{p as PRINT_CANVAS_CLASS,l as PRINT_CONTAINER_CLASS,v as PaperMarginMap,g as PaperSizePxMap,m as PrintAlign,i as PrintDirection,e as PrintPaperMargin,o as PrintPaperSize,w as PrintScale,N as createPrintStyle};
package/lib/index.js ADDED
@@ -0,0 +1 @@
1
+ function _0xa11d(_0x3a3732,_0x284631){const _0xd1549e=_0xd154();return _0xa11d=function(_0xa11d38,_0x426dc3){_0xa11d38=_0xa11d38-0x67;let _0x45458b=_0xd1549e[_0xa11d38];return _0x45458b;},_0xa11d(_0x3a3732,_0x284631);}function _0xd154(){const _0x1d6baa=['FitPage','242673WQyMla','Start','offline-printing-css','Custom','340ygxaUm','Tabloid','FitHeight','None','329KKzpIf','Wide','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Normal','style','15287841rEiuRb','Origin','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','FitWidth','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Executive','Letter','createElement','px;\x20\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','15088slEdwx','Statement','2613160DUNldy','Landscape','End',',\x20.','Folio','467661wRmThE','848236dvZpUT','Portrait','Middle','Legal','Narrow','24972pInsCU'];_0xd154=function(){return _0x1d6baa;};return _0xd154();}const _0x5714b1=_0xa11d;(function(_0xd6e529,_0x2c0458){const _0x50846a=_0xa11d,_0x40d192=_0xd6e529();while(!![]){try{const _0x56091a=parseInt(_0x50846a(0x89))/0x1+-parseInt(_0x50846a(0x82))/0x2+-parseInt(_0x50846a(0x81))/0x3+-parseInt(_0x50846a(0x7c))/0x4+-parseInt(_0x50846a(0x68))/0x5*(parseInt(_0x50846a(0x87))/0x6)+-parseInt(_0x50846a(0x6c))/0x7*(parseInt(_0x50846a(0x7a))/0x8)+parseInt(_0x50846a(0x71))/0x9;if(_0x56091a===_0x2c0458)break;else _0x40d192['push'](_0x40d192['shift']());}catch(_0xea8efb){_0x40d192['push'](_0x40d192['shift']());}}}(_0xd154,0x521f1));var o=(_0x5140b8=>(_0x5140b8[_0x5714b1(0x77)]=_0x5714b1(0x77),_0x5140b8[_0x5714b1(0x69)]=_0x5714b1(0x69),_0x5140b8[_0x5714b1(0x85)]=_0x5714b1(0x85),_0x5140b8['Statement']=_0x5714b1(0x7b),_0x5140b8[_0x5714b1(0x76)]='Executive',_0x5140b8[_0x5714b1(0x80)]=_0x5714b1(0x80),_0x5140b8['A3']='A3',_0x5140b8['A4']='A4',_0x5140b8['A5']='A5',_0x5140b8['B4']='B4',_0x5140b8['B5']='B5',_0x5140b8))(o||{}),i=(_0x289bb9=>(_0x289bb9['Portrait']=_0x5714b1(0x83),_0x289bb9[_0x5714b1(0x7d)]='Landscape',_0x289bb9))(i||{}),w=(_0x39b6e1=>(_0x39b6e1['Origin']=_0x5714b1(0x72),_0x39b6e1['FitWidth']=_0x5714b1(0x74),_0x39b6e1['FitHeight']=_0x5714b1(0x6a),_0x39b6e1[_0x5714b1(0x88)]='FitPage',_0x39b6e1['Custom']=_0x5714b1(0x67),_0x39b6e1))(w||{}),m=(_0x593526=>(_0x593526[_0x5714b1(0x8a)]='Start',_0x593526[_0x5714b1(0x7e)]=_0x5714b1(0x7e),_0x593526[_0x5714b1(0x84)]=_0x5714b1(0x84),_0x593526))(m||{}),e=(_0x40db69=>(_0x40db69[_0x5714b1(0x6f)]='Normal',_0x40db69[_0x5714b1(0x86)]=_0x5714b1(0x86),_0x40db69[_0x5714b1(0x6d)]=_0x5714b1(0x6d),_0x40db69[_0x5714b1(0x6b)]=_0x5714b1(0x6b),_0x40db69))(e||{});const g={[o['A3']]:{'w':0x463,'h':0x633},[o['A4']]:{'w':0x31a,'h':0x464},[o['A5']]:{'w':0x22f,'h':0x31a},[o['B4']]:{'w':0x3b0,'h':0x540},[o['B5']]:{'w':0x299,'h':0x3b0},[o[_0x5714b1(0x76)]]:{'w':0x2b8,'h':0x3f0},[o[_0x5714b1(0x80)]]:{'w':0x330,'h':0x4e0},[o[_0x5714b1(0x85)]]:{'w':0x330,'h':0x540},[o[_0x5714b1(0x77)]]:{'w':0x330,'h':0x420},[o[_0x5714b1(0x7b)]]:{'w':0x210,'h':0x330},[o['Tabloid']]:{'w':0x420,'h':0x660}},v={[e['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x5714b1(0x86)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0x5714b1(0x6d)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x5714b1(0x6b)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l='printing-canvas-container',p='printing-canvas';function N(_0x258660,_0x5c25a7){const _0x974942=_0x5714b1,{w:_0x5b45dc,h:_0x1c4cf5}=g[_0x258660],_0x56f54e=_0x5c25a7===i[_0x974942(0x83)]?_0x5b45dc:_0x1c4cf5,_0x3fd4c9=_0x5c25a7===i[_0x974942(0x83)]?_0x1c4cf5:_0x5b45dc,_0x1c0d60='\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20'+_0x56f54e+'px\x20'+_0x3fd4c9+_0x974942(0x79)+l+_0x974942(0x7f)+l+_0x974942(0x73)+p+_0x974942(0x75)+_0x3fd4c9+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x56f54e+_0x974942(0x6e),_0x149acb=document[_0x974942(0x78)](_0x974942(0x70));return _0x149acb['innerHTML']=_0x1c0d60,_0x149acb['className']=_0x974942(0x8b),_0x149acb;}export{p as PRINT_CANVAS_CLASS,l as PRINT_CONTAINER_CLASS,v as PaperMarginMap,g as PaperSizePxMap,m as PrintAlign,i as PrintDirection,e as PrintPaperMargin,o as PrintPaperSize,w as PrintScale,N as createPrintStyle};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0xe1ff(){const _0xb08ebf=['Custom',',\x20.','21228DIJDCz','innerHTML','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','Portrait','function','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','object','Wide','85ufushV','14HeZEWD','className','Folio','UniverProPrint','116520RzcMIu','toStringTag','229761VIOQep','PrintAlign','Legal','printing-canvas','amd','207458RpTLHr','Statement','offline-printing-css','Narrow','Start','style','360SwiEnX','printing-canvas-container','Module','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','FitPage','PaperSizePxMap','PRINT_CONTAINER_CLASS','Landscape','60ohRBhL','Normal','None','6169422mUcHJn','PrintDirection','Executive','exports','Letter','13542hiiyzk','Origin','px\x20','Middle','FitWidth','10601349aWCbbe','Tabloid','PrintScale'];_0xe1ff=function(){return _0xb08ebf;};return _0xe1ff();}function _0x5c42(_0x21c672,_0x20b132){const _0xe1ff97=_0xe1ff();return _0x5c42=function(_0x5c4277,_0x52378a){_0x5c4277=_0x5c4277-0xc4;let _0x22d5e7=_0xe1ff97[_0x5c4277];return _0x22d5e7;},_0x5c42(_0x21c672,_0x20b132);}(function(_0x2ba04a,_0x24a74c){const _0x17bfd0=_0x5c42,_0x12f875=_0x2ba04a();while(!![]){try{const _0xd8a9e7=-parseInt(_0x17bfd0(0xe2))/0x1*(-parseInt(_0x17bfd0(0xed))/0x2)+-parseInt(_0x17bfd0(0xf3))/0x3*(parseInt(_0x17bfd0(0xd8))/0x4)+parseInt(_0x17bfd0(0xe1))/0x5*(parseInt(_0x17bfd0(0xce))/0x6)+-parseInt(_0x17bfd0(0xc9))/0x7+parseInt(_0x17bfd0(0xe6))/0x8+-parseInt(_0x17bfd0(0xe8))/0x9*(parseInt(_0x17bfd0(0xc6))/0xa)+parseInt(_0x17bfd0(0xd3))/0xb;if(_0xd8a9e7===_0x24a74c)break;else _0x12f875['push'](_0x12f875['shift']());}catch(_0x644501){_0x12f875['push'](_0x12f875['shift']());}}}(_0xe1ff,0xc2b63),function(_0x14c75c,_0x21b6db){const _0x1178ff=_0x5c42;typeof exports==_0x1178ff(0xdf)&&typeof module<'u'?_0x21b6db(exports):typeof define==_0x1178ff(0xdd)&&define[_0x1178ff(0xec)]?define([_0x1178ff(0xcc)],_0x21b6db):(_0x14c75c=typeof globalThis<'u'?globalThis:_0x14c75c||self,_0x21b6db(_0x14c75c[_0x1178ff(0xe5)]={}));}(this,function(_0x353b81){'use strict';const _0x208830=_0x5c42;var _0x5f0a2f=(_0x51f33b=>(_0x51f33b[_0x208830(0xcd)]=_0x208830(0xcd),_0x51f33b[_0x208830(0xd4)]=_0x208830(0xd4),_0x51f33b['Legal']='Legal',_0x51f33b['Statement']=_0x208830(0xee),_0x51f33b['Executive']=_0x208830(0xcb),_0x51f33b['Folio']=_0x208830(0xe4),_0x51f33b['A3']='A3',_0x51f33b['A4']='A4',_0x51f33b['A5']='A5',_0x51f33b['B4']='B4',_0x51f33b['B5']='B5',_0x51f33b))(_0x5f0a2f||{}),_0x5a68b0=(_0x1000e0=>(_0x1000e0['Portrait']=_0x208830(0xdc),_0x1000e0[_0x208830(0xc5)]='Landscape',_0x1000e0))(_0x5a68b0||{}),_0x1d9afe=(_0x46e321=>(_0x46e321[_0x208830(0xcf)]='Origin',_0x46e321[_0x208830(0xd2)]=_0x208830(0xd2),_0x46e321['FitHeight']='FitHeight',_0x46e321[_0x208830(0xf7)]=_0x208830(0xf7),_0x46e321['Custom']=_0x208830(0xd6),_0x46e321))(_0x1d9afe||{}),_0x31bdf8=(_0x3b2928=>(_0x3b2928['Start']=_0x208830(0xf1),_0x3b2928['End']='End',_0x3b2928['Middle']=_0x208830(0xd1),_0x3b2928))(_0x31bdf8||{}),_0x4a72ee=(_0x5608df=>(_0x5608df[_0x208830(0xc7)]=_0x208830(0xc7),_0x5608df['Narrow']=_0x208830(0xf0),_0x5608df[_0x208830(0xe0)]=_0x208830(0xe0),_0x5608df[_0x208830(0xc8)]='None',_0x5608df))(_0x4a72ee||{});const _0x1406ed={[_0x5f0a2f['A3']]:{'w':0x463,'h':0x633},[_0x5f0a2f['A4']]:{'w':0x31a,'h':0x464},[_0x5f0a2f['A5']]:{'w':0x22f,'h':0x31a},[_0x5f0a2f['B4']]:{'w':0x3b0,'h':0x540},[_0x5f0a2f['B5']]:{'w':0x299,'h':0x3b0},[_0x5f0a2f[_0x208830(0xcb)]]:{'w':0x2b8,'h':0x3f0},[_0x5f0a2f['Folio']]:{'w':0x330,'h':0x4e0},[_0x5f0a2f[_0x208830(0xea)]]:{'w':0x330,'h':0x540},[_0x5f0a2f['Letter']]:{'w':0x330,'h':0x420},[_0x5f0a2f[_0x208830(0xee)]]:{'w':0x210,'h':0x330},[_0x5f0a2f[_0x208830(0xd4)]]:{'w':0x420,'h':0x660}},_0x543c25={[_0x4a72ee[_0x208830(0xc7)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x4a72ee[_0x208830(0xf0)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x4a72ee[_0x208830(0xe0)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x4a72ee['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x14a6d3=_0x208830(0xf4),_0x493393=_0x208830(0xeb);function _0x25fc09(_0x631832,_0x451921){const _0x126c29=_0x208830,{w:_0x18419e,h:_0x500ab0}=_0x1406ed[_0x631832],_0x443ce0=_0x451921===_0x5a68b0[_0x126c29(0xdc)]?_0x18419e:_0x500ab0,_0x1e559d=_0x451921===_0x5a68b0['Portrait']?_0x500ab0:_0x18419e,_0xb866d1=_0x126c29(0xdb)+_0x443ce0+_0x126c29(0xd0)+_0x1e559d+'px;\x20\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.'+_0x14a6d3+_0x126c29(0xd7)+_0x14a6d3+'\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.'+_0x493393+_0x126c29(0xf6)+_0x1e559d+_0x126c29(0xda)+_0x443ce0+_0x126c29(0xde),_0x325da7=document['createElement'](_0x126c29(0xf2));return _0x325da7[_0x126c29(0xd9)]=_0xb866d1,_0x325da7[_0x126c29(0xe3)]=_0x126c29(0xef),_0x325da7;}_0x353b81['PRINT_CANVAS_CLASS']=_0x493393,_0x353b81[_0x208830(0xc4)]=_0x14a6d3,_0x353b81['PaperMarginMap']=_0x543c25,_0x353b81[_0x208830(0xf8)]=_0x1406ed,_0x353b81[_0x208830(0xe9)]=_0x31bdf8,_0x353b81[_0x208830(0xca)]=_0x5a68b0,_0x353b81['PrintPaperMargin']=_0x4a72ee,_0x353b81['PrintPaperSize']=_0x5f0a2f,_0x353b81[_0x208830(0xd5)]=_0x1d9afe,_0x353b81['createPrintStyle']=_0x25fc09,Object['defineProperty'](_0x353b81,Symbol[_0x208830(0xe7)],{'value':_0x208830(0xf5)});}));
1
+ function _0x2285(_0x230aae,_0x35a5da){const _0x4ce2fd=_0x4ce2();return _0x2285=function(_0x22854b,_0x5ae497){_0x22854b=_0x22854b-0x153;let _0x36e2c5=_0x4ce2fd[_0x22854b];return _0x36e2c5;},_0x2285(_0x230aae,_0x35a5da);}function _0x4ce2(){const _0x10bae3=['amd','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','PrintDirection','offline-printing-css','PrintAlign','Executive','500275ZKjDmS','Wide','innerHTML','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','Narrow','1648780WJmZLa','478584PppCwy','PrintScale','End','None','exports','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Origin','Tabloid','Statement','Normal','Custom','Folio','Landscape','28AhzvbH','px;\x20\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','FitWidth','3PxqRee','PaperSizePxMap','FitPage','Module',',\x20.','Legal','createElement','defineProperty','px\x20','className','FitHeight','Middle','printing-canvas-container','PaperMarginMap','toStringTag','1409292KYpmaS','2735544rorVqZ','PrintPaperMargin','Letter','createPrintStyle','\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','UniverProPrint','Start','1326904hoIZND','Portrait','style','PrintPaperSize','842622elalUJ'];_0x4ce2=function(){return _0x10bae3;};return _0x4ce2();}(function(_0x4bf260,_0x446d8b){const _0x429104=_0x2285,_0x41f0a5=_0x4bf260();while(!![]){try{const _0xf847db=-parseInt(_0x429104(0x187))/0x1+parseInt(_0x429104(0x180))/0x2*(parseInt(_0x429104(0x165))/0x3)+parseInt(_0x429104(0x174))/0x4+parseInt(_0x429104(0x154))/0x5+parseInt(_0x429104(0x175))/0x6+parseInt(_0x429104(0x162))/0x7*(-parseInt(_0x429104(0x17c))/0x8)+-parseInt(_0x429104(0x155))/0x9;if(_0xf847db===_0x446d8b)break;else _0x41f0a5['push'](_0x41f0a5['shift']());}catch(_0x36f9b9){_0x41f0a5['push'](_0x41f0a5['shift']());}}}(_0x4ce2,0x5398b),function(_0x1a331d,_0x3aa175){const _0x3942c3=_0x2285;typeof exports=='object'&&typeof module<'u'?_0x3aa175(exports):typeof define=='function'&&define[_0x3942c3(0x181)]?define([_0x3942c3(0x159)],_0x3aa175):(_0x1a331d=typeof globalThis<'u'?globalThis:_0x1a331d||self,_0x3aa175(_0x1a331d[_0x3942c3(0x17a)]={}));}(this,function(_0x50aa23){'use strict';const _0x5d4d46=_0x2285;var _0x492d86=(_0x816c6d=>(_0x816c6d[_0x5d4d46(0x177)]=_0x5d4d46(0x177),_0x816c6d[_0x5d4d46(0x15c)]='Tabloid',_0x816c6d[_0x5d4d46(0x16a)]=_0x5d4d46(0x16a),_0x816c6d['Statement']='Statement',_0x816c6d[_0x5d4d46(0x186)]='Executive',_0x816c6d['Folio']='Folio',_0x816c6d['A3']='A3',_0x816c6d['A4']='A4',_0x816c6d['A5']='A5',_0x816c6d['B4']='B4',_0x816c6d['B5']='B5',_0x816c6d))(_0x492d86||{}),_0x5c02c0=(_0x24666f=>(_0x24666f[_0x5d4d46(0x17d)]=_0x5d4d46(0x17d),_0x24666f['Landscape']=_0x5d4d46(0x161),_0x24666f))(_0x5c02c0||{}),_0x31e66c=(_0x1bf980=>(_0x1bf980[_0x5d4d46(0x15b)]=_0x5d4d46(0x15b),_0x1bf980[_0x5d4d46(0x164)]=_0x5d4d46(0x164),_0x1bf980['FitHeight']=_0x5d4d46(0x16f),_0x1bf980[_0x5d4d46(0x167)]=_0x5d4d46(0x167),_0x1bf980[_0x5d4d46(0x15f)]=_0x5d4d46(0x15f),_0x1bf980))(_0x31e66c||{}),_0x28980b=(_0x4747c4=>(_0x4747c4[_0x5d4d46(0x17b)]=_0x5d4d46(0x17b),_0x4747c4[_0x5d4d46(0x157)]=_0x5d4d46(0x157),_0x4747c4[_0x5d4d46(0x170)]=_0x5d4d46(0x170),_0x4747c4))(_0x28980b||{}),_0x523196=(_0x3f514a=>(_0x3f514a[_0x5d4d46(0x15e)]=_0x5d4d46(0x15e),_0x3f514a['Narrow']=_0x5d4d46(0x153),_0x3f514a[_0x5d4d46(0x188)]=_0x5d4d46(0x188),_0x3f514a[_0x5d4d46(0x158)]=_0x5d4d46(0x158),_0x3f514a))(_0x523196||{});const _0x1aa31e={[_0x492d86['A3']]:{'w':0x463,'h':0x633},[_0x492d86['A4']]:{'w':0x31a,'h':0x464},[_0x492d86['A5']]:{'w':0x22f,'h':0x31a},[_0x492d86['B4']]:{'w':0x3b0,'h':0x540},[_0x492d86['B5']]:{'w':0x299,'h':0x3b0},[_0x492d86[_0x5d4d46(0x186)]]:{'w':0x2b8,'h':0x3f0},[_0x492d86[_0x5d4d46(0x160)]]:{'w':0x330,'h':0x4e0},[_0x492d86[_0x5d4d46(0x16a)]]:{'w':0x330,'h':0x540},[_0x492d86[_0x5d4d46(0x177)]]:{'w':0x330,'h':0x420},[_0x492d86[_0x5d4d46(0x15d)]]:{'w':0x210,'h':0x330},[_0x492d86[_0x5d4d46(0x15c)]]:{'w':0x420,'h':0x660}},_0x467768={[_0x523196[_0x5d4d46(0x15e)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x523196[_0x5d4d46(0x153)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x523196[_0x5d4d46(0x188)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x523196['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x2de694=_0x5d4d46(0x171),_0x1e1c59='printing-canvas';function _0x21d38b(_0x11af58,_0x37d847){const _0x24454c=_0x5d4d46,{w:_0xf9028f,h:_0x39d0a4}=_0x1aa31e[_0x11af58],_0x1ba5a2=_0x37d847===_0x5c02c0[_0x24454c(0x17d)]?_0xf9028f:_0x39d0a4,_0x4e58ec=_0x37d847===_0x5c02c0['Portrait']?_0x39d0a4:_0xf9028f,_0x40b9c5=_0x24454c(0x179)+_0x1ba5a2+_0x24454c(0x16d)+_0x4e58ec+_0x24454c(0x163)+_0x2de694+_0x24454c(0x169)+_0x2de694+_0x24454c(0x18a)+_0x1e1c59+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x4e58ec+_0x24454c(0x15a)+_0x1ba5a2+_0x24454c(0x182),_0x32977b=document[_0x24454c(0x16b)](_0x24454c(0x17e));return _0x32977b[_0x24454c(0x189)]=_0x40b9c5,_0x32977b[_0x24454c(0x16e)]=_0x24454c(0x184),_0x32977b;}_0x50aa23['PRINT_CANVAS_CLASS']=_0x1e1c59,_0x50aa23['PRINT_CONTAINER_CLASS']=_0x2de694,_0x50aa23[_0x5d4d46(0x172)]=_0x467768,_0x50aa23[_0x5d4d46(0x166)]=_0x1aa31e,_0x50aa23[_0x5d4d46(0x185)]=_0x28980b,_0x50aa23[_0x5d4d46(0x183)]=_0x5c02c0,_0x50aa23[_0x5d4d46(0x176)]=_0x523196,_0x50aa23[_0x5d4d46(0x17f)]=_0x492d86,_0x50aa23[_0x5d4d46(0x156)]=_0x31e66c,_0x50aa23[_0x5d4d46(0x178)]=_0x21d38b,Object[_0x5d4d46(0x16c)](_0x50aa23,Symbol[_0x5d4d46(0x173)],{'value':_0x5d4d46(0x168)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/print",
3
- "version": "0.6.7",
3
+ "version": "0.6.9-nightly.202504021607",
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.8.2",
46
46
  "vite": "^6.2.2",
47
47
  "vitest": "^3.0.9",
48
- "@univerjs-infra/shared": "0.6.7"
48
+ "@univerjs-infra/shared": "0.6.9"
49
49
  },
50
50
  "scripts": {
51
51
  "test": "vitest run",