@univerjs-pro/print 0.10.6 → 0.10.7

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 _0x3adad9=_0x507f;(function(_0x4cb917,_0x58b41b){const _0x2899d9=_0x507f,_0x5f4099=_0x4cb917();while(!![]){try{const _0x5603d7=parseInt(_0x2899d9(0x1dd))/0x1*(parseInt(_0x2899d9(0x1cb))/0x2)+parseInt(_0x2899d9(0x1e1))/0x3+parseInt(_0x2899d9(0x1c4))/0x4+parseInt(_0x2899d9(0x1d3))/0x5+-parseInt(_0x2899d9(0x1dc))/0x6+-parseInt(_0x2899d9(0x1e9))/0x7+parseInt(_0x2899d9(0x1ed))/0x8*(-parseInt(_0x2899d9(0x1e6))/0x9);if(_0x5603d7===_0x58b41b)break;else _0x5f4099['push'](_0x5f4099['shift']());}catch(_0x544e55){_0x5f4099['push'](_0x5f4099['shift']());}}}(_0x7350,0xc92b9));Object[_0x3adad9(0x1c5)](exports,Symbol[_0x3adad9(0x1e0)],{'value':_0x3adad9(0x1d2)});var e=(_0x53e68b=>(_0x53e68b['Portrait']='Portrait',_0x53e68b[_0x3adad9(0x1ce)]=_0x3adad9(0x1ce),_0x53e68b))(e||{}),l=(_0x4e1f74=>(_0x4e1f74[_0x3adad9(0x1eb)]=_0x3adad9(0x1eb),_0x4e1f74[_0x3adad9(0x1d9)]=_0x3adad9(0x1d9),_0x4e1f74[_0x3adad9(0x1ca)]=_0x3adad9(0x1ca),_0x4e1f74['FitPage']=_0x3adad9(0x1c3),_0x4e1f74[_0x3adad9(0x1c7)]=_0x3adad9(0x1c7),_0x4e1f74))(l||{}),c=(_0x249c71=>(_0x249c71[_0x3adad9(0x1cd)]=_0x3adad9(0x1cd),_0x249c71[_0x3adad9(0x1e4)]=_0x3adad9(0x1e4),_0x249c71[_0x3adad9(0x1d5)]=_0x3adad9(0x1d5),_0x249c71))(c||{}),i=(_0x41f045=>(_0x41f045[_0x3adad9(0x1cf)]='Normal',_0x41f045[_0x3adad9(0x1d0)]=_0x3adad9(0x1d0),_0x41f045[_0x3adad9(0x1d7)]='Wide',_0x41f045[_0x3adad9(0x1d6)]=_0x3adad9(0x1d6),_0x41f045))(i||{});const h={[i[_0x3adad9(0x1cf)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i[_0x3adad9(0x1d0)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i[_0x3adad9(0x1d6)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r='printing-canvas-container',n='printing-canvas';function m(_0x1ff4f0,_0x3c629f,_0x345fa3){const _0x5343d6=_0x3adad9,_0x5311a0=_0x345fa3===e[_0x5343d6(0x1e2)]?_0x1ff4f0:_0x3c629f,_0x2703b5=_0x345fa3===e[_0x5343d6(0x1e2)]?_0x3c629f:_0x1ff4f0,_0x43f475=_0x5343d6(0x1df)+n+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20'+_0x5311a0+_0x5343d6(0x1e7)+_0x2703b5+_0x5343d6(0x1e3)+r+_0x5343d6(0x1e8)+r+_0x5343d6(0x1c6)+n+_0x5343d6(0x1c9)+_0x2703b5+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x5311a0+'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}',_0x5dcadd=document[_0x5343d6(0x1d1)](_0x5343d6(0x1d4));return _0x5dcadd[_0x5343d6(0x1ec)]=_0x43f475,_0x5dcadd['className']=_0x5343d6(0x1d8),_0x5dcadd;}function _0x7350(){const _0x4702a0=['PrintPaperMargin','PRINT_CONTAINER_CLASS','1132764DXdCmL','2NxFgyh','PRINT_CANVAS_CLASS','\x0a\x20\x20\x20\x20.','toStringTag','894396AeTbFH','Portrait','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.','End','createPrintStyle','2019033OkjdsR','px\x20',',\x20.','1145389XdgHWW','PaperMarginMap','Origin','innerHTML','56ReUKke','FitPage','3175040ffDJaK','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.','Custom','PrintDirection','\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','FitHeight','1224706oMVOfr','PrintScale','Start','Landscape','Normal','Narrow','createElement','Module','2150875KwWeVw','style','Middle','None','Wide','offline-printing-css','FitWidth'];_0x7350=function(){return _0x4702a0;};return _0x7350();}function _0x507f(_0x1b4127,_0x32a81f){const _0x73509c=_0x7350();return _0x507f=function(_0x507fb9,_0x47772d){_0x507fb9=_0x507fb9-0x1c3;let _0x3606f2=_0x73509c[_0x507fb9];return _0x3606f2;},_0x507f(_0x1b4127,_0x32a81f);}exports[_0x3adad9(0x1de)]=n,exports[_0x3adad9(0x1db)]=r,exports[_0x3adad9(0x1ea)]=h,exports['PrintAlign']=c,exports[_0x3adad9(0x1c8)]=e,exports[_0x3adad9(0x1da)]=i,exports[_0x3adad9(0x1cc)]=l,exports[_0x3adad9(0x1e5)]=m;
1
+ 'use strict';const _0x5dbec4=_0x4a40;(function(_0x1585d8,_0x210fdd){const _0x3319bc=_0x4a40,_0x3de232=_0x1585d8();while(!![]){try{const _0x5519c3=parseInt(_0x3319bc(0x101))/0x1+parseInt(_0x3319bc(0x104))/0x2*(parseInt(_0x3319bc(0x123))/0x3)+parseInt(_0x3319bc(0x118))/0x4*(parseInt(_0x3319bc(0x10e))/0x5)+-parseInt(_0x3319bc(0xfd))/0x6+parseInt(_0x3319bc(0x117))/0x7+parseInt(_0x3319bc(0xfc))/0x8*(parseInt(_0x3319bc(0x10d))/0x9)+-parseInt(_0x3319bc(0x11a))/0xa*(parseInt(_0x3319bc(0x126))/0xb);if(_0x5519c3===_0x210fdd)break;else _0x3de232['push'](_0x3de232['shift']());}catch(_0x355fd0){_0x3de232['push'](_0x3de232['shift']());}}}(_0x13ab,0x5ae74));Object['defineProperty'](exports,Symbol[_0x5dbec4(0x114)],{'value':_0x5dbec4(0x127)});var e=(_0x385844=>(_0x385844['Portrait']=_0x5dbec4(0x125),_0x385844[_0x5dbec4(0xfe)]=_0x5dbec4(0xfe),_0x385844))(e||{}),l=(_0xb93603=>(_0xb93603[_0x5dbec4(0xff)]=_0x5dbec4(0xff),_0xb93603['FitWidth']=_0x5dbec4(0x103),_0xb93603[_0x5dbec4(0x11f)]=_0x5dbec4(0x11f),_0xb93603[_0x5dbec4(0x113)]=_0x5dbec4(0x113),_0xb93603['Custom']=_0x5dbec4(0x10b),_0xb93603))(l||{}),c=(_0x143166=>(_0x143166[_0x5dbec4(0x109)]=_0x5dbec4(0x109),_0x143166[_0x5dbec4(0x116)]=_0x5dbec4(0x116),_0x143166[_0x5dbec4(0x11c)]=_0x5dbec4(0x11c),_0x143166))(c||{}),i=(_0x10326c=>(_0x10326c['Normal']=_0x5dbec4(0x107),_0x10326c['Narrow']=_0x5dbec4(0x122),_0x10326c[_0x5dbec4(0x11e)]=_0x5dbec4(0x11e),_0x10326c[_0x5dbec4(0x10f)]=_0x5dbec4(0x10f),_0x10326c))(i||{});const h={[i[_0x5dbec4(0x107)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i[_0x5dbec4(0x122)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i[_0x5dbec4(0x11e)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i[_0x5dbec4(0x10f)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x5dbec4(0x110),n='printing-canvas';function _0x4a40(_0x1906b6,_0x3f2448){const _0x13ab9c=_0x13ab();return _0x4a40=function(_0x4a4084,_0x46f849){_0x4a4084=_0x4a4084-0xfa;let _0x524a60=_0x13ab9c[_0x4a4084];return _0x524a60;},_0x4a40(_0x1906b6,_0x3f2448);}function _0x13ab(){const _0x2f5b7b=['Origin','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','687094SCKnJb','px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','FitWidth','3742WBBIJE','px\x20','PrintPaperMargin','Normal','PRINT_CONTAINER_CLASS','Start','offline-printing-css','Custom',',\x20.','663786iLaOsD','1838330vSalaP','None','printing-canvas-container','PaperMarginMap','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','FitPage','toStringTag','\x0a\x20\x20\x20\x20.','End','417865mwrHwh','4rXSNpb','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','50EEIZli','createElement','Middle','style','Wide','FitHeight','PrintAlign','PRINT_CANVAS_CLASS','Narrow','339GdCwQr','innerHTML','Portrait','845009nWfIJW','Module','PrintScale','PrintDirection','8KxDbLw','3859182WaawXj','Landscape'];_0x13ab=function(){return _0x2f5b7b;};return _0x13ab();}function m(_0x302eb7,_0x286952,_0x31b82d){const _0x7611f4=_0x5dbec4,_0x2c4f8c=_0x31b82d===e[_0x7611f4(0x125)]?_0x302eb7:_0x286952,_0xfcefd5=_0x31b82d===e['Portrait']?_0x286952:_0x302eb7,_0x2c194e=_0x7611f4(0x115)+n+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20'+_0x2c4f8c+_0x7611f4(0x105)+_0xfcefd5+_0x7611f4(0x102)+r+_0x7611f4(0x10c)+r+'\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.'+n+_0x7611f4(0x119)+_0xfcefd5+_0x7611f4(0x112)+_0x2c4f8c+_0x7611f4(0x100),_0x5d09d8=document[_0x7611f4(0x11b)](_0x7611f4(0x11d));return _0x5d09d8[_0x7611f4(0x124)]=_0x2c194e,_0x5d09d8['className']=_0x7611f4(0x10a),_0x5d09d8;}exports[_0x5dbec4(0x121)]=n,exports[_0x5dbec4(0x108)]=r,exports[_0x5dbec4(0x111)]=h,exports[_0x5dbec4(0x120)]=c,exports[_0x5dbec4(0xfb)]=e,exports[_0x5dbec4(0x106)]=i,exports[_0x5dbec4(0xfa)]=l,exports['createPrintStyle']=m;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x470f97=_0x5c9f;(function(_0x4f3e00,_0x16cb93){const _0x1f637d=_0x5c9f,_0x1c715d=_0x4f3e00();while(!![]){try{const _0x4e4944=-parseInt(_0x1f637d(0xf5))/0x1+-parseInt(_0x1f637d(0xfe))/0x2*(-parseInt(_0x1f637d(0x10c))/0x3)+-parseInt(_0x1f637d(0x107))/0x4+parseInt(_0x1f637d(0xf3))/0x5+-parseInt(_0x1f637d(0xef))/0x6*(-parseInt(_0x1f637d(0xfc))/0x7)+parseInt(_0x1f637d(0xf6))/0x8*(-parseInt(_0x1f637d(0x108))/0x9)+parseInt(_0x1f637d(0xf8))/0xa;if(_0x4e4944===_0x16cb93)break;else _0x1c715d['push'](_0x1c715d['shift']());}catch(_0x51f68d){_0x1c715d['push'](_0x1c715d['shift']());}}}(_0x105d,0x5fdcd));function _0x5c9f(_0x4f4fb4,_0xf3f57a){const _0x105de9=_0x105d();return _0x5c9f=function(_0x5c9f65,_0x146b1e){_0x5c9f65=_0x5c9f65-0xef;let _0x250fb4=_0x105de9[_0x5c9f65];return _0x250fb4;},_0x5c9f(_0x4f4fb4,_0xf3f57a);}var e=(_0x2bd01b=>(_0x2bd01b[_0x470f97(0x10a)]=_0x470f97(0x10a),_0x2bd01b[_0x470f97(0x10e)]='Landscape',_0x2bd01b))(e||{}),l=(_0x543e87=>(_0x543e87[_0x470f97(0x102)]=_0x470f97(0x102),_0x543e87[_0x470f97(0xf0)]=_0x470f97(0xf0),_0x543e87[_0x470f97(0xf2)]=_0x470f97(0xf2),_0x543e87[_0x470f97(0x104)]=_0x470f97(0x104),_0x543e87['Custom']='Custom',_0x543e87))(l||{}),m=(_0x1f203e=>(_0x1f203e[_0x470f97(0x10b)]=_0x470f97(0x10b),_0x1f203e['End']='End',_0x1f203e[_0x470f97(0x103)]=_0x470f97(0x103),_0x1f203e))(m||{}),o=(_0x30526c=>(_0x30526c[_0x470f97(0xff)]='Normal',_0x30526c[_0x470f97(0x106)]=_0x470f97(0x106),_0x30526c['Wide']=_0x470f97(0xf9),_0x30526c['None']=_0x470f97(0x109),_0x30526c))(o||{});const c={[o[_0x470f97(0xff)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x470f97(0x106)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x470f97(0x100),d=_0x470f97(0x10d);function g(_0x4b049c,_0x11f7f,_0x3bbf15){const _0x576737=_0x470f97,_0x2f018d=_0x3bbf15===e[_0x576737(0x10a)]?_0x4b049c:_0x11f7f,_0x40dd8a=_0x3bbf15===e['Portrait']?_0x11f7f:_0x4b049c,_0x4128fb='\x0a\x20\x20\x20\x20.'+d+_0x576737(0x105)+_0x2f018d+_0x576737(0xf1)+_0x40dd8a+'px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.'+p+_0x576737(0xf4)+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+_0x576737(0xfd)+_0x40dd8a+_0x576737(0x101)+_0x2f018d+_0x576737(0xfa),_0x294094=document['createElement'](_0x576737(0xf7));return _0x294094['innerHTML']=_0x4128fb,_0x294094['className']=_0x576737(0xfb),_0x294094;}function _0x105d(){const _0xff0903=['4471854HaIaoR','FitWidth','px\x20','FitHeight','3595640onWTsg',',\x20.','528909zsSXts','389656dCWnKB','style','4152290DsfLQi','Wide','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','offline-printing-css','7ZFqMUK','\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','27590zecqGA','Normal','printing-canvas-container','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Origin','Middle','FitPage','\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','Narrow','825528EgTxvR','144QIwykL','None','Portrait','Start','6mKaObv','printing-canvas','Landscape'];_0x105d=function(){return _0xff0903;};return _0x105d();}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,m as PrintAlign,e as PrintDirection,o as PrintPaperMargin,l as PrintScale,g as createPrintStyle};
1
+ function _0x44d6(){const _0x128609=['7sAQoUK','1195230IqMrBx','4yByjhO',',\x20.','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','className','Middle','None','3154464uLYHjN','Start','291908ZfuKGT','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','printing-canvas-container','Normal','px\x20','6878770WBTuKN','1002465rGJdBf','6BdtFQX','printing-canvas','FitPage','style','875826UyLYkX','Portrait','End','createElement','offline-printing-css','FitHeight','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Landscape','Wide','Narrow','140799VhpHPX','FitWidth','Custom','Origin','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'];_0x44d6=function(){return _0x128609;};return _0x44d6();}const _0x5e86e9=_0x2eeb;(function(_0x3bf8e6,_0x4323cc){const _0x5a7fd5=_0x2eeb,_0x533a75=_0x3bf8e6();while(!![]){try{const _0x770ab1=parseInt(_0x5a7fd5(0x1bc))/0x1*(parseInt(_0x5a7fd5(0x1c3))/0x2)+-parseInt(_0x5a7fd5(0x1ae))/0x3*(-parseInt(_0x5a7fd5(0x1a7))/0x4)+-parseInt(_0x5a7fd5(0x1ad))/0x5+parseInt(_0x5a7fd5(0x1c2))/0x6*(-parseInt(_0x5a7fd5(0x1c1))/0x7)+-parseInt(_0x5a7fd5(0x1c9))/0x8+-parseInt(_0x5a7fd5(0x1b2))/0x9+parseInt(_0x5a7fd5(0x1ac))/0xa;if(_0x770ab1===_0x4323cc)break;else _0x533a75['push'](_0x533a75['shift']());}catch(_0x57d88b){_0x533a75['push'](_0x533a75['shift']());}}}(_0x44d6,0x36b6d));var e=(_0x313999=>(_0x313999['Portrait']=_0x5e86e9(0x1b3),_0x313999['Landscape']=_0x5e86e9(0x1b9),_0x313999))(e||{}),l=(_0x4026ea=>(_0x4026ea[_0x5e86e9(0x1bf)]='Origin',_0x4026ea[_0x5e86e9(0x1bd)]=_0x5e86e9(0x1bd),_0x4026ea[_0x5e86e9(0x1b7)]='FitHeight',_0x4026ea['FitPage']=_0x5e86e9(0x1b0),_0x4026ea[_0x5e86e9(0x1be)]=_0x5e86e9(0x1be),_0x4026ea))(l||{}),m=(_0x49501f=>(_0x49501f[_0x5e86e9(0x1a6)]=_0x5e86e9(0x1a6),_0x49501f[_0x5e86e9(0x1b4)]='End',_0x49501f[_0x5e86e9(0x1c7)]=_0x5e86e9(0x1c7),_0x49501f))(m||{}),o=(_0x1ab0db=>(_0x1ab0db['Normal']='Normal',_0x1ab0db[_0x5e86e9(0x1bb)]=_0x5e86e9(0x1bb),_0x1ab0db[_0x5e86e9(0x1ba)]=_0x5e86e9(0x1ba),_0x1ab0db[_0x5e86e9(0x1c8)]=_0x5e86e9(0x1c8),_0x1ab0db))(o||{});const c={[o[_0x5e86e9(0x1aa)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x5e86e9(0x1bb)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x5e86e9(0x1c8)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x5e86e9(0x1a9),d=_0x5e86e9(0x1af);function _0x2eeb(_0x28ccd6,_0x15eecf){const _0x44d65b=_0x44d6();return _0x2eeb=function(_0x2eeba3,_0x165797){_0x2eeba3=_0x2eeba3-0x1a6;let _0x1937aa=_0x44d65b[_0x2eeba3];return _0x1937aa;},_0x2eeb(_0x28ccd6,_0x15eecf);}function g(_0x31016a,_0x4422d2,_0xcec3fd){const _0x2c9eff=_0x5e86e9,_0x28cd53=_0xcec3fd===e[_0x2c9eff(0x1b3)]?_0x31016a:_0x4422d2,_0x50da1a=_0xcec3fd===e[_0x2c9eff(0x1b3)]?_0x4422d2:_0x31016a,_0x8bbea5='\x0a\x20\x20\x20\x20.'+d+_0x2c9eff(0x1a8)+_0x28cd53+_0x2c9eff(0x1ab)+_0x50da1a+'px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.'+p+_0x2c9eff(0x1c4)+p+_0x2c9eff(0x1c5)+d+_0x2c9eff(0x1c0)+_0x50da1a+_0x2c9eff(0x1b8)+_0x28cd53+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}',_0x57c8da=document[_0x2c9eff(0x1b5)](_0x2c9eff(0x1b1));return _0x57c8da['innerHTML']=_0x8bbea5,_0x57c8da[_0x2c9eff(0x1c6)]=_0x2c9eff(0x1b6),_0x57c8da;}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,m as PrintAlign,e as PrintDirection,o as PrintPaperMargin,l as PrintScale,g as createPrintStyle};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x470f97=_0x5c9f;(function(_0x4f3e00,_0x16cb93){const _0x1f637d=_0x5c9f,_0x1c715d=_0x4f3e00();while(!![]){try{const _0x4e4944=-parseInt(_0x1f637d(0xf5))/0x1+-parseInt(_0x1f637d(0xfe))/0x2*(-parseInt(_0x1f637d(0x10c))/0x3)+-parseInt(_0x1f637d(0x107))/0x4+parseInt(_0x1f637d(0xf3))/0x5+-parseInt(_0x1f637d(0xef))/0x6*(-parseInt(_0x1f637d(0xfc))/0x7)+parseInt(_0x1f637d(0xf6))/0x8*(-parseInt(_0x1f637d(0x108))/0x9)+parseInt(_0x1f637d(0xf8))/0xa;if(_0x4e4944===_0x16cb93)break;else _0x1c715d['push'](_0x1c715d['shift']());}catch(_0x51f68d){_0x1c715d['push'](_0x1c715d['shift']());}}}(_0x105d,0x5fdcd));function _0x5c9f(_0x4f4fb4,_0xf3f57a){const _0x105de9=_0x105d();return _0x5c9f=function(_0x5c9f65,_0x146b1e){_0x5c9f65=_0x5c9f65-0xef;let _0x250fb4=_0x105de9[_0x5c9f65];return _0x250fb4;},_0x5c9f(_0x4f4fb4,_0xf3f57a);}var e=(_0x2bd01b=>(_0x2bd01b[_0x470f97(0x10a)]=_0x470f97(0x10a),_0x2bd01b[_0x470f97(0x10e)]='Landscape',_0x2bd01b))(e||{}),l=(_0x543e87=>(_0x543e87[_0x470f97(0x102)]=_0x470f97(0x102),_0x543e87[_0x470f97(0xf0)]=_0x470f97(0xf0),_0x543e87[_0x470f97(0xf2)]=_0x470f97(0xf2),_0x543e87[_0x470f97(0x104)]=_0x470f97(0x104),_0x543e87['Custom']='Custom',_0x543e87))(l||{}),m=(_0x1f203e=>(_0x1f203e[_0x470f97(0x10b)]=_0x470f97(0x10b),_0x1f203e['End']='End',_0x1f203e[_0x470f97(0x103)]=_0x470f97(0x103),_0x1f203e))(m||{}),o=(_0x30526c=>(_0x30526c[_0x470f97(0xff)]='Normal',_0x30526c[_0x470f97(0x106)]=_0x470f97(0x106),_0x30526c['Wide']=_0x470f97(0xf9),_0x30526c['None']=_0x470f97(0x109),_0x30526c))(o||{});const c={[o[_0x470f97(0xff)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x470f97(0x106)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x470f97(0x100),d=_0x470f97(0x10d);function g(_0x4b049c,_0x11f7f,_0x3bbf15){const _0x576737=_0x470f97,_0x2f018d=_0x3bbf15===e[_0x576737(0x10a)]?_0x4b049c:_0x11f7f,_0x40dd8a=_0x3bbf15===e['Portrait']?_0x11f7f:_0x4b049c,_0x4128fb='\x0a\x20\x20\x20\x20.'+d+_0x576737(0x105)+_0x2f018d+_0x576737(0xf1)+_0x40dd8a+'px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.'+p+_0x576737(0xf4)+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+_0x576737(0xfd)+_0x40dd8a+_0x576737(0x101)+_0x2f018d+_0x576737(0xfa),_0x294094=document['createElement'](_0x576737(0xf7));return _0x294094['innerHTML']=_0x4128fb,_0x294094['className']=_0x576737(0xfb),_0x294094;}function _0x105d(){const _0xff0903=['4471854HaIaoR','FitWidth','px\x20','FitHeight','3595640onWTsg',',\x20.','528909zsSXts','389656dCWnKB','style','4152290DsfLQi','Wide','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','offline-printing-css','7ZFqMUK','\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','27590zecqGA','Normal','printing-canvas-container','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Origin','Middle','FitPage','\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','Narrow','825528EgTxvR','144QIwykL','None','Portrait','Start','6mKaObv','printing-canvas','Landscape'];_0x105d=function(){return _0xff0903;};return _0x105d();}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,m as PrintAlign,e as PrintDirection,o as PrintPaperMargin,l as PrintScale,g as createPrintStyle};
1
+ function _0x44d6(){const _0x128609=['7sAQoUK','1195230IqMrBx','4yByjhO',',\x20.','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','className','Middle','None','3154464uLYHjN','Start','291908ZfuKGT','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','printing-canvas-container','Normal','px\x20','6878770WBTuKN','1002465rGJdBf','6BdtFQX','printing-canvas','FitPage','style','875826UyLYkX','Portrait','End','createElement','offline-printing-css','FitHeight','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Landscape','Wide','Narrow','140799VhpHPX','FitWidth','Custom','Origin','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'];_0x44d6=function(){return _0x128609;};return _0x44d6();}const _0x5e86e9=_0x2eeb;(function(_0x3bf8e6,_0x4323cc){const _0x5a7fd5=_0x2eeb,_0x533a75=_0x3bf8e6();while(!![]){try{const _0x770ab1=parseInt(_0x5a7fd5(0x1bc))/0x1*(parseInt(_0x5a7fd5(0x1c3))/0x2)+-parseInt(_0x5a7fd5(0x1ae))/0x3*(-parseInt(_0x5a7fd5(0x1a7))/0x4)+-parseInt(_0x5a7fd5(0x1ad))/0x5+parseInt(_0x5a7fd5(0x1c2))/0x6*(-parseInt(_0x5a7fd5(0x1c1))/0x7)+-parseInt(_0x5a7fd5(0x1c9))/0x8+-parseInt(_0x5a7fd5(0x1b2))/0x9+parseInt(_0x5a7fd5(0x1ac))/0xa;if(_0x770ab1===_0x4323cc)break;else _0x533a75['push'](_0x533a75['shift']());}catch(_0x57d88b){_0x533a75['push'](_0x533a75['shift']());}}}(_0x44d6,0x36b6d));var e=(_0x313999=>(_0x313999['Portrait']=_0x5e86e9(0x1b3),_0x313999['Landscape']=_0x5e86e9(0x1b9),_0x313999))(e||{}),l=(_0x4026ea=>(_0x4026ea[_0x5e86e9(0x1bf)]='Origin',_0x4026ea[_0x5e86e9(0x1bd)]=_0x5e86e9(0x1bd),_0x4026ea[_0x5e86e9(0x1b7)]='FitHeight',_0x4026ea['FitPage']=_0x5e86e9(0x1b0),_0x4026ea[_0x5e86e9(0x1be)]=_0x5e86e9(0x1be),_0x4026ea))(l||{}),m=(_0x49501f=>(_0x49501f[_0x5e86e9(0x1a6)]=_0x5e86e9(0x1a6),_0x49501f[_0x5e86e9(0x1b4)]='End',_0x49501f[_0x5e86e9(0x1c7)]=_0x5e86e9(0x1c7),_0x49501f))(m||{}),o=(_0x1ab0db=>(_0x1ab0db['Normal']='Normal',_0x1ab0db[_0x5e86e9(0x1bb)]=_0x5e86e9(0x1bb),_0x1ab0db[_0x5e86e9(0x1ba)]=_0x5e86e9(0x1ba),_0x1ab0db[_0x5e86e9(0x1c8)]=_0x5e86e9(0x1c8),_0x1ab0db))(o||{});const c={[o[_0x5e86e9(0x1aa)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x5e86e9(0x1bb)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x5e86e9(0x1c8)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x5e86e9(0x1a9),d=_0x5e86e9(0x1af);function _0x2eeb(_0x28ccd6,_0x15eecf){const _0x44d65b=_0x44d6();return _0x2eeb=function(_0x2eeba3,_0x165797){_0x2eeba3=_0x2eeba3-0x1a6;let _0x1937aa=_0x44d65b[_0x2eeba3];return _0x1937aa;},_0x2eeb(_0x28ccd6,_0x15eecf);}function g(_0x31016a,_0x4422d2,_0xcec3fd){const _0x2c9eff=_0x5e86e9,_0x28cd53=_0xcec3fd===e[_0x2c9eff(0x1b3)]?_0x31016a:_0x4422d2,_0x50da1a=_0xcec3fd===e[_0x2c9eff(0x1b3)]?_0x4422d2:_0x31016a,_0x8bbea5='\x0a\x20\x20\x20\x20.'+d+_0x2c9eff(0x1a8)+_0x28cd53+_0x2c9eff(0x1ab)+_0x50da1a+'px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.'+p+_0x2c9eff(0x1c4)+p+_0x2c9eff(0x1c5)+d+_0x2c9eff(0x1c0)+_0x50da1a+_0x2c9eff(0x1b8)+_0x28cd53+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}',_0x57c8da=document[_0x2c9eff(0x1b5)](_0x2c9eff(0x1b1));return _0x57c8da['innerHTML']=_0x8bbea5,_0x57c8da[_0x2c9eff(0x1c6)]=_0x2c9eff(0x1b6),_0x57c8da;}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,m as PrintAlign,e as PrintDirection,o as PrintPaperMargin,l as PrintScale,g as createPrintStyle};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x3d63(){const _0x377667=['Middle','33cNXIIX','offline-printing-css','exports','innerHTML','Custom','None','PrintScale','Narrow','798670mGKzyE','1997785CXgVYT','\x0a\x20\x20\x20\x20.','printing-canvas-container','837652BALnqS','FitPage','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','39816wydRGC','UniverProPrint','defineProperty','3TnfgPc','function','px\x20','End','toStringTag','Start','368298qzuXIs','Wide','PrintDirection','PaperMarginMap','createPrintStyle','amd','PrintPaperMargin','6hJQJFS','Portrait','676332oyTHZF','1168oLOZCc','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','createElement','Normal','12kewbVY','Origin','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','1778567SsRXDh','\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;\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.','FitHeight','object'];_0x3d63=function(){return _0x377667;};return _0x3d63();}function _0x510f(_0x335b61,_0x28278e){const _0x3d6389=_0x3d63();return _0x510f=function(_0x510f77,_0x51737c){_0x510f77=_0x510f77-0x153;let _0x4a37ab=_0x3d6389[_0x510f77];return _0x4a37ab;},_0x510f(_0x335b61,_0x28278e);}(function(_0x43d5a1,_0x125370){const _0x162ce9=_0x510f,_0x2f4a1a=_0x43d5a1();while(!![]){try{const _0x49f41e=parseInt(_0x162ce9(0x15d))/0x1*(-parseInt(_0x162ce9(0x163))/0x2)+parseInt(_0x162ce9(0x16a))/0x3*(parseInt(_0x162ce9(0x157))/0x4)+-parseInt(_0x162ce9(0x154))/0x5*(-parseInt(_0x162ce9(0x171))/0x6)+parseInt(_0x162ce9(0x175))/0x7+-parseInt(_0x162ce9(0x16d))/0x8*(parseInt(_0x162ce9(0x15a))/0x9)+parseInt(_0x162ce9(0x153))/0xa+parseInt(_0x162ce9(0x17b))/0xb*(parseInt(_0x162ce9(0x16c))/0xc);if(_0x49f41e===_0x125370)break;else _0x2f4a1a['push'](_0x2f4a1a['shift']());}catch(_0x1981db){_0x2f4a1a['push'](_0x2f4a1a['shift']());}}}(_0x3d63,0x7f97c),function(_0x2d72b6,_0x2c8f2d){const _0x30e0af=_0x510f;typeof exports==_0x30e0af(0x179)&&typeof module<'u'?_0x2c8f2d(exports):typeof define==_0x30e0af(0x15e)&&define[_0x30e0af(0x168)]?define([_0x30e0af(0x17d)],_0x2c8f2d):(_0x2d72b6=typeof globalThis<'u'?globalThis:_0x2d72b6||self,_0x2c8f2d(_0x2d72b6[_0x30e0af(0x15b)]={}));}(this,function(_0x1eef1d){'use strict';const _0x431719=_0x510f;var _0xd5cf01=(_0x44a698=>(_0x44a698['Portrait']=_0x431719(0x16b),_0x44a698['Landscape']='Landscape',_0x44a698))(_0xd5cf01||{}),_0xd7576=(_0x549761=>(_0x549761[_0x431719(0x172)]='Origin',_0x549761['FitWidth']='FitWidth',_0x549761[_0x431719(0x178)]='FitHeight',_0x549761[_0x431719(0x158)]='FitPage',_0x549761[_0x431719(0x17f)]=_0x431719(0x17f),_0x549761))(_0xd7576||{}),_0x5e86be=(_0x5c7384=>(_0x5c7384[_0x431719(0x162)]=_0x431719(0x162),_0x5c7384[_0x431719(0x160)]=_0x431719(0x160),_0x5c7384['Middle']=_0x431719(0x17a),_0x5c7384))(_0x5e86be||{}),_0x3ca67b=(_0xf0dff2=>(_0xf0dff2[_0x431719(0x170)]=_0x431719(0x170),_0xf0dff2[_0x431719(0x182)]=_0x431719(0x182),_0xf0dff2[_0x431719(0x164)]=_0x431719(0x164),_0xf0dff2[_0x431719(0x180)]=_0x431719(0x180),_0xf0dff2))(_0x3ca67b||{});const _0x419389={[_0x3ca67b['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x3ca67b['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x3ca67b[_0x431719(0x164)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x3ca67b['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x1eb0c1=_0x431719(0x156),_0x396ee1='printing-canvas';function _0x33f92a(_0xd02bba,_0x6fbf51,_0x4f6378){const _0xfe47d=_0x431719,_0x35667a=_0x4f6378===_0xd5cf01[_0xfe47d(0x16b)]?_0xd02bba:_0x6fbf51,_0x49a448=_0x4f6378===_0xd5cf01[_0xfe47d(0x16b)]?_0x6fbf51:_0xd02bba,_0x3a1787=_0xfe47d(0x155)+_0x396ee1+_0xfe47d(0x176)+_0x35667a+_0xfe47d(0x15f)+_0x49a448+_0xfe47d(0x177)+_0x1eb0c1+',\x20.'+_0x1eb0c1+_0xfe47d(0x16e)+_0x396ee1+_0xfe47d(0x159)+_0x49a448+_0xfe47d(0x174)+_0x35667a+_0xfe47d(0x173),_0x106ac8=document[_0xfe47d(0x16f)]('style');return _0x106ac8[_0xfe47d(0x17e)]=_0x3a1787,_0x106ac8['className']=_0xfe47d(0x17c),_0x106ac8;}_0x1eef1d['PRINT_CANVAS_CLASS']=_0x396ee1,_0x1eef1d['PRINT_CONTAINER_CLASS']=_0x1eb0c1,_0x1eef1d[_0x431719(0x166)]=_0x419389,_0x1eef1d['PrintAlign']=_0x5e86be,_0x1eef1d[_0x431719(0x165)]=_0xd5cf01,_0x1eef1d[_0x431719(0x169)]=_0x3ca67b,_0x1eef1d[_0x431719(0x181)]=_0xd7576,_0x1eef1d[_0x431719(0x167)]=_0x33f92a,Object[_0x431719(0x15c)](_0x1eef1d,Symbol[_0x431719(0x161)],{'value':'Module'});}));
1
+ function _0x1564(){const _0x136559=['style','451338poQkQS','\x0a\x20\x20\x20\x20.','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','createElement','916zZdWQn','PaperMarginMap','PrintDirection','Wide','PRINT_CONTAINER_CLASS','5169760ZGOTNR','4448279dkpFvq',',\x20.','None','Normal','End','function','45IIsDyu','Origin','innerHTML','Module','323450kShsgQ','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','offline-printing-css','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','861535AzTBdI','2652RKjBtJ','toStringTag','FitWidth','defineProperty','amd','PrintScale','18433UBXcOf','Portrait','21FnZigC','Start','createPrintStyle','FitPage','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Narrow','58TxOaYD','Middle','Custom','printing-canvas','FitHeight','exports'];_0x1564=function(){return _0x136559;};return _0x1564();}function _0x4471(_0x4c1c83,_0x12cf91){const _0x1564bf=_0x1564();return _0x4471=function(_0x44712c,_0xef01ca){_0x44712c=_0x44712c-0x188;let _0x56dae1=_0x1564bf[_0x44712c];return _0x56dae1;},_0x4471(_0x4c1c83,_0x12cf91);}(function(_0x171bff,_0x11facd){const _0x21f7d1=_0x4471,_0x56298d=_0x171bff();while(!![]){try{const _0x4de57e=parseInt(_0x21f7d1(0x19b))/0x1*(parseInt(_0x21f7d1(0x1a3))/0x2)+-parseInt(_0x21f7d1(0x195))/0x3*(parseInt(_0x21f7d1(0x1ae))/0x4)+parseInt(_0x21f7d1(0x194))/0x5+parseInt(_0x21f7d1(0x1aa))/0x6*(parseInt(_0x21f7d1(0x19d))/0x7)+-parseInt(_0x21f7d1(0x1b3))/0x8+parseInt(_0x21f7d1(0x18c))/0x9*(-parseInt(_0x21f7d1(0x190))/0xa)+parseInt(_0x21f7d1(0x1b4))/0xb;if(_0x4de57e===_0x11facd)break;else _0x56298d['push'](_0x56298d['shift']());}catch(_0x4d865d){_0x56298d['push'](_0x56298d['shift']());}}}(_0x1564,0x4fb8d),function(_0x581e0e,_0x599578){const _0x2ca1be=_0x4471;typeof exports=='object'&&typeof module<'u'?_0x599578(exports):typeof define==_0x2ca1be(0x18b)&&define[_0x2ca1be(0x199)]?define([_0x2ca1be(0x1a8)],_0x599578):(_0x581e0e=typeof globalThis<'u'?globalThis:_0x581e0e||self,_0x599578(_0x581e0e['UniverProPrint']={}));}(this,function(_0x240a00){'use strict';const _0x577960=_0x4471;var _0x1c5771=(_0x306807=>(_0x306807[_0x577960(0x19c)]=_0x577960(0x19c),_0x306807['Landscape']='Landscape',_0x306807))(_0x1c5771||{}),_0x12af90=(_0x3404e2=>(_0x3404e2['Origin']=_0x577960(0x18d),_0x3404e2['FitWidth']=_0x577960(0x197),_0x3404e2[_0x577960(0x1a7)]=_0x577960(0x1a7),_0x3404e2['FitPage']=_0x577960(0x1a0),_0x3404e2[_0x577960(0x1a5)]=_0x577960(0x1a5),_0x3404e2))(_0x12af90||{}),_0x526ed2=(_0x4fb77d=>(_0x4fb77d[_0x577960(0x19e)]=_0x577960(0x19e),_0x4fb77d['End']=_0x577960(0x18a),_0x4fb77d[_0x577960(0x1a4)]='Middle',_0x4fb77d))(_0x526ed2||{}),_0x5e531d=(_0x327bea=>(_0x327bea[_0x577960(0x189)]=_0x577960(0x189),_0x327bea[_0x577960(0x1a2)]=_0x577960(0x1a2),_0x327bea[_0x577960(0x1b1)]=_0x577960(0x1b1),_0x327bea[_0x577960(0x188)]=_0x577960(0x188),_0x327bea))(_0x5e531d||{});const _0x1bdad2={[_0x5e531d[_0x577960(0x189)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x5e531d[_0x577960(0x1a2)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x5e531d[_0x577960(0x1b1)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x5e531d[_0x577960(0x188)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x13ce82='printing-canvas-container',_0x20419c=_0x577960(0x1a6);function _0x227a22(_0x5cd2d2,_0x56c4a9,_0x4960a5){const _0x599372=_0x577960,_0x3b538c=_0x4960a5===_0x1c5771[_0x599372(0x19c)]?_0x5cd2d2:_0x56c4a9,_0xaa2440=_0x4960a5===_0x1c5771['Portrait']?_0x56c4a9:_0x5cd2d2,_0x38bf95=_0x599372(0x1ab)+_0x20419c+_0x599372(0x193)+_0x3b538c+'px\x20'+_0xaa2440+'px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.'+_0x13ce82+_0x599372(0x1b5)+_0x13ce82+_0x599372(0x1ac)+_0x20419c+_0x599372(0x1a1)+_0xaa2440+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x3b538c+_0x599372(0x191),_0x2caa79=document[_0x599372(0x1ad)](_0x599372(0x1a9));return _0x2caa79[_0x599372(0x18e)]=_0x38bf95,_0x2caa79['className']=_0x599372(0x192),_0x2caa79;}_0x240a00['PRINT_CANVAS_CLASS']=_0x20419c,_0x240a00[_0x577960(0x1b2)]=_0x13ce82,_0x240a00[_0x577960(0x1af)]=_0x1bdad2,_0x240a00['PrintAlign']=_0x526ed2,_0x240a00[_0x577960(0x1b0)]=_0x1c5771,_0x240a00['PrintPaperMargin']=_0x5e531d,_0x240a00[_0x577960(0x19a)]=_0x12af90,_0x240a00[_0x577960(0x19f)]=_0x227a22,Object[_0x577960(0x198)](_0x240a00,Symbol[_0x577960(0x196)],{'value':_0x577960(0x18f)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/print",
3
- "version": "0.10.6",
3
+ "version": "0.10.7",
4
4
  "private": false,
5
5
  "description": "Print module for UniverJS",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -42,10 +42,10 @@
42
42
  "lib"
43
43
  ],
44
44
  "devDependencies": {
45
- "typescript": "^5.8.3",
45
+ "typescript": "^5.9.2",
46
46
  "vite": "^7.1.3",
47
47
  "vitest": "^3.2.4",
48
- "@univerjs-infra/shared": "0.10.6"
48
+ "@univerjs-infra/shared": "0.10.7"
49
49
  },
50
50
  "scripts": {
51
51
  "test": "vitest run",