@univerjs-pro/print 0.10.4 → 0.10.5-nightly.202508290716

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';function _0x2dd8(){const _0x12fe4d=['defineProperty','PrintPaperMargin','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.','FitPage','PrintAlign','printing-canvas-container','Normal','PrintScale','Origin','5139tHYvxK','PRINT_CONTAINER_CLASS','691220CtqdDO','FitWidth',',\x20.','createPrintStyle','Wide','Narrow','Start','Middle','createElement','px\x20','PaperMarginMap','Module','\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.','6915744pzgdwU','3924148RMUaMQ','toStringTag','None','printing-canvas','317112DbogCV','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','FitHeight','\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','914704LixqYE','5EZQBIo','className','\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','Custom','168sDTohG','27cAtSQD','1200229ePanKh','PrintDirection','Portrait'];_0x2dd8=function(){return _0x12fe4d;};return _0x2dd8();}const _0x37fc59=_0x562d;(function(_0x1251b4,_0x38dc24){const _0x28824a=_0x562d,_0x244fde=_0x1251b4();while(!![]){try{const _0x84ccb9=parseInt(_0x28824a(0x98))/0x1+parseInt(_0x28824a(0x96))/0x2*(-parseInt(_0x28824a(0x78))/0x3)+-parseInt(_0x28824a(0x89))/0x4*(-parseInt(_0x28824a(0x92))/0x5)+-parseInt(_0x28824a(0x88))/0x6+-parseInt(_0x28824a(0x91))/0x7+-parseInt(_0x28824a(0x8d))/0x8+-parseInt(_0x28824a(0x97))/0x9*(-parseInt(_0x28824a(0x7a))/0xa);if(_0x84ccb9===_0x38dc24)break;else _0x244fde['push'](_0x244fde['shift']());}catch(_0x580297){_0x244fde['push'](_0x244fde['shift']());}}}(_0x2dd8,0xe10cd));function _0x562d(_0x4dee5c,_0x39a879){const _0x2dd841=_0x2dd8();return _0x562d=function(_0x562de4,_0x12e431){_0x562de4=_0x562de4-0x75;let _0x228f46=_0x2dd841[_0x562de4];return _0x228f46;},_0x562d(_0x4dee5c,_0x39a879);}Object[_0x37fc59(0x9b)](exports,Symbol[_0x37fc59(0x8a)],{'value':_0x37fc59(0x85)});var e=(_0x3d4ade=>(_0x3d4ade[_0x37fc59(0x9a)]=_0x37fc59(0x9a),_0x3d4ade['Landscape']='Landscape',_0x3d4ade))(e||{}),l=(_0x1b7dcc=>(_0x1b7dcc[_0x37fc59(0x77)]=_0x37fc59(0x77),_0x1b7dcc['FitWidth']=_0x37fc59(0x7b),_0x1b7dcc[_0x37fc59(0x8f)]=_0x37fc59(0x8f),_0x1b7dcc['FitPage']=_0x37fc59(0x9e),_0x1b7dcc[_0x37fc59(0x95)]=_0x37fc59(0x95),_0x1b7dcc))(l||{}),c=(_0x139f9d=>(_0x139f9d[_0x37fc59(0x80)]=_0x37fc59(0x80),_0x139f9d['End']='End',_0x139f9d[_0x37fc59(0x81)]=_0x37fc59(0x81),_0x139f9d))(c||{}),i=(_0x3d029e=>(_0x3d029e[_0x37fc59(0x75)]=_0x37fc59(0x75),_0x3d029e['Narrow']=_0x37fc59(0x7f),_0x3d029e[_0x37fc59(0x7e)]='Wide',_0x3d029e[_0x37fc59(0x8b)]=_0x37fc59(0x8b),_0x3d029e))(i||{});const h={[i[_0x37fc59(0x75)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i[_0x37fc59(0x7f)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i[_0x37fc59(0x7e)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x37fc59(0xa0),n=_0x37fc59(0x8c);function m(_0x2c7726,_0x482e54,_0x3f487a){const _0x1c0273=_0x37fc59,_0x474e64=_0x3f487a===e[_0x1c0273(0x9a)]?_0x2c7726:_0x482e54,_0x2e03c7=_0x3f487a===e[_0x1c0273(0x9a)]?_0x482e54:_0x2c7726,_0x5c6392=_0x1c0273(0x87)+n+_0x1c0273(0x94)+_0x474e64+_0x1c0273(0x83)+_0x2e03c7+_0x1c0273(0x9d)+r+_0x1c0273(0x7c)+r+_0x1c0273(0x86)+n+_0x1c0273(0x90)+_0x2e03c7+_0x1c0273(0x8e)+_0x474e64+'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}',_0x4ec2f4=document[_0x1c0273(0x82)]('style');return _0x4ec2f4['innerHTML']=_0x5c6392,_0x4ec2f4[_0x1c0273(0x93)]='offline-printing-css',_0x4ec2f4;}exports['PRINT_CANVAS_CLASS']=n,exports[_0x37fc59(0x79)]=r,exports[_0x37fc59(0x84)]=h,exports[_0x37fc59(0x9f)]=c,exports[_0x37fc59(0x99)]=e,exports[_0x37fc59(0x9c)]=i,exports[_0x37fc59(0x76)]=l,exports[_0x37fc59(0x7d)]=m;
1
+ 'use strict';const _0x573a5f=_0x37a1;(function(_0x381fe4,_0x52c777){const _0x1e5b8c=_0x37a1,_0x5a6178=_0x381fe4();while(!![]){try{const _0x1f893a=parseInt(_0x1e5b8c(0x88))/0x1+-parseInt(_0x1e5b8c(0x8e))/0x2*(parseInt(_0x1e5b8c(0x99))/0x3)+-parseInt(_0x1e5b8c(0xaa))/0x4+-parseInt(_0x1e5b8c(0x83))/0x5*(parseInt(_0x1e5b8c(0x95))/0x6)+parseInt(_0x1e5b8c(0xa1))/0x7*(parseInt(_0x1e5b8c(0xa0))/0x8)+-parseInt(_0x1e5b8c(0x90))/0x9*(parseInt(_0x1e5b8c(0x7f))/0xa)+parseInt(_0x1e5b8c(0x80))/0xb;if(_0x1f893a===_0x52c777)break;else _0x5a6178['push'](_0x5a6178['shift']());}catch(_0x3f1fef){_0x5a6178['push'](_0x5a6178['shift']());}}}(_0x440a,0x1bad0));Object[_0x573a5f(0x98)](exports,Symbol[_0x573a5f(0x94)],{'value':_0x573a5f(0xa9)});function _0x440a(){const _0x52506a=['\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','toStringTag','32874YSXUsA','PRINT_CANVAS_CLASS','\x0a\x20\x20\x20\x20.','defineProperty','42087wAFbZI','\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.','Middle','PRINT_CONTAINER_CLASS','Narrow','Origin','offline-printing-css','1714904iOAVIe','7DLcsyU','PrintScale','Start','px\x20','Normal','PaperMarginMap','printing-canvas','Portrait','Module','651472eWorSE','PrintDirection','innerHTML','PrintPaperMargin','FitPage','10XuVugB','2812194fwNWDZ','End','printing-canvas-container','185qUWdvb','className','Wide','FitHeight','None','40186mTJEGA','Custom','\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','style','FitWidth','createPrintStyle','2svBqZB','Landscape','155007bAybSl','PrintAlign','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}'];_0x440a=function(){return _0x52506a;};return _0x440a();}function _0x37a1(_0x281374,_0x5db5ed){const _0x440af5=_0x440a();return _0x37a1=function(_0x37a1f7,_0x29ab63){_0x37a1f7=_0x37a1f7-0x7e;let _0x28ce4e=_0x440af5[_0x37a1f7];return _0x28ce4e;},_0x37a1(_0x281374,_0x5db5ed);}var e=(_0x13cf3d=>(_0x13cf3d[_0x573a5f(0xa8)]='Portrait',_0x13cf3d['Landscape']=_0x573a5f(0x8f),_0x13cf3d))(e||{}),l=(_0x8b119a=>(_0x8b119a[_0x573a5f(0x9e)]=_0x573a5f(0x9e),_0x8b119a['FitWidth']=_0x573a5f(0x8c),_0x8b119a['FitHeight']=_0x573a5f(0x86),_0x8b119a[_0x573a5f(0x7e)]=_0x573a5f(0x7e),_0x8b119a[_0x573a5f(0x89)]=_0x573a5f(0x89),_0x8b119a))(l||{}),c=(_0x385a36=>(_0x385a36[_0x573a5f(0xa3)]=_0x573a5f(0xa3),_0x385a36[_0x573a5f(0x81)]=_0x573a5f(0x81),_0x385a36[_0x573a5f(0x9b)]=_0x573a5f(0x9b),_0x385a36))(c||{}),i=(_0x4cac75=>(_0x4cac75[_0x573a5f(0xa5)]=_0x573a5f(0xa5),_0x4cac75['Narrow']=_0x573a5f(0x9d),_0x4cac75[_0x573a5f(0x85)]=_0x573a5f(0x85),_0x4cac75[_0x573a5f(0x87)]='None',_0x4cac75))(i||{});const h={[i[_0x573a5f(0xa5)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i[_0x573a5f(0x85)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i[_0x573a5f(0x87)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x573a5f(0x82),n=_0x573a5f(0xa7);function m(_0x1038fe,_0x57dc88,_0x92ebb5){const _0x317576=_0x573a5f,_0x41bf02=_0x92ebb5===e[_0x317576(0xa8)]?_0x1038fe:_0x57dc88,_0xee481a=_0x92ebb5===e[_0x317576(0xa8)]?_0x57dc88:_0x1038fe,_0x4fe476=_0x317576(0x97)+n+_0x317576(0x93)+_0x41bf02+_0x317576(0xa4)+_0xee481a+'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+',\x20.'+r+_0x317576(0x9a)+n+_0x317576(0x8a)+_0xee481a+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x41bf02+_0x317576(0x92),_0x221b7f=document['createElement'](_0x317576(0x8b));return _0x221b7f[_0x317576(0xac)]=_0x4fe476,_0x221b7f[_0x317576(0x84)]=_0x317576(0x9f),_0x221b7f;}exports[_0x573a5f(0x96)]=n,exports[_0x573a5f(0x9c)]=r,exports[_0x573a5f(0xa6)]=h,exports[_0x573a5f(0x91)]=c,exports[_0x573a5f(0xab)]=e,exports[_0x573a5f(0xad)]=i,exports[_0x573a5f(0xa2)]=l,exports[_0x573a5f(0x8d)]=m;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x434243=_0x3adc;(function(_0x4eb3fc,_0x6bffdc){const _0x264c6b=_0x3adc,_0x3b7a8d=_0x4eb3fc();while(!![]){try{const _0x3c7654=-parseInt(_0x264c6b(0x1ee))/0x1*(parseInt(_0x264c6b(0x201))/0x2)+parseInt(_0x264c6b(0x1e1))/0x3*(parseInt(_0x264c6b(0x1ea))/0x4)+-parseInt(_0x264c6b(0x1fd))/0x5*(-parseInt(_0x264c6b(0x1f5))/0x6)+parseInt(_0x264c6b(0x1ef))/0x7*(-parseInt(_0x264c6b(0x1e9))/0x8)+-parseInt(_0x264c6b(0x1f6))/0x9+parseInt(_0x264c6b(0x1ff))/0xa*(-parseInt(_0x264c6b(0x1f8))/0xb)+parseInt(_0x264c6b(0x1f4))/0xc*(parseInt(_0x264c6b(0x1df))/0xd);if(_0x3c7654===_0x6bffdc)break;else _0x3b7a8d['push'](_0x3b7a8d['shift']());}catch(_0x952d7d){_0x3b7a8d['push'](_0x3b7a8d['shift']());}}}(_0x2ee0,0xa07fb));var e=(_0x573b3f=>(_0x573b3f['Portrait']=_0x434243(0x203),_0x573b3f[_0x434243(0x1fc)]='Landscape',_0x573b3f))(e||{}),l=(_0xa3224=>(_0xa3224['Origin']=_0x434243(0x1f9),_0xa3224[_0x434243(0x1fa)]='FitWidth',_0xa3224['FitHeight']=_0x434243(0x1f1),_0xa3224[_0x434243(0x1e0)]=_0x434243(0x1e0),_0xa3224[_0x434243(0x1fe)]=_0x434243(0x1fe),_0xa3224))(l||{}),m=(_0x54f11c=>(_0x54f11c[_0x434243(0x200)]=_0x434243(0x200),_0x54f11c[_0x434243(0x1eb)]='End',_0x54f11c['Middle']='Middle',_0x54f11c))(m||{}),o=(_0x5b85d1=>(_0x5b85d1[_0x434243(0x1e5)]=_0x434243(0x1e5),_0x5b85d1[_0x434243(0x1e7)]='Narrow',_0x5b85d1['Wide']=_0x434243(0x1ed),_0x5b85d1['None']='None',_0x5b85d1))(o||{});function _0x3adc(_0x4b4349,_0x54cfbd){const _0x2ee09d=_0x2ee0();return _0x3adc=function(_0x3adccf,_0x4a6b0a){_0x3adccf=_0x3adccf-0x1de;let _0x293327=_0x2ee09d[_0x3adccf];return _0x293327;},_0x3adc(_0x4b4349,_0x54cfbd);}function _0x2ee0(){const _0xdab2d5=['Custom','550OBUCcs','Start','1687102KCxcxY','innerHTML','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.','5349981ieGLtI','FitPage','23451qacYRD','None','\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','className','Normal','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Narrow','\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','382336SZwYDS','164ZsZDgn','End','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','1UdprXc','63FqTokI','offline-printing-css','FitHeight','\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.','printing-canvas','72YFtxYD','1560648aSNtAz','7027920DRXHJm','style','67573rCnvbN','Origin','FitWidth',',\x20.','Landscape','5XUqjuc'];_0x2ee0=function(){return _0xdab2d5;};return _0x2ee0();}const c={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x434243(0x1e7)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x434243(0x1ed)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x434243(0x1e2)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p='printing-canvas-container',d=_0x434243(0x1f3);function g(_0x15f294,_0x2f83c9,_0x267333){const _0x187891=_0x434243,_0x383590=_0x267333===e[_0x187891(0x203)]?_0x15f294:_0x2f83c9,_0x4d529d=_0x267333===e[_0x187891(0x203)]?_0x2f83c9:_0x15f294,_0x20e421='\x0a\x20\x20\x20\x20.'+d+_0x187891(0x1e3)+_0x383590+'px\x20'+_0x4d529d+_0x187891(0x1de)+p+_0x187891(0x1fb)+p+_0x187891(0x1f2)+d+_0x187891(0x1e8)+_0x4d529d+_0x187891(0x1e6)+_0x383590+_0x187891(0x1ec),_0x374726=document['createElement'](_0x187891(0x1f7));return _0x374726[_0x187891(0x202)]=_0x20e421,_0x374726[_0x187891(0x1e4)]=_0x187891(0x1f0),_0x374726;}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 _0x24ce7f=_0x2cfd;function _0x4091(){const _0x421b7c=['\x0a\x20\x20\x20\x20.','createElement','1206660JqlSww','1127120XQHrMv','FitHeight','Narrow','Origin','Start','826698bXyGuu','Landscape','\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','Normal','Portrait','printing-canvas','Custom','3336928lUcQDb','\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.','1142FXMypW','End','offline-printing-css','Wide',',\x20.','2619545hyMgMh','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.','None','\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\x20width:\x20','FitWidth','className','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}','style','FitPage','2541QaJWgH','155038LwXYkv'];_0x4091=function(){return _0x421b7c;};return _0x4091();}(function(_0x2ab1c9,_0x3ddf8b){const _0x37463c=_0x2cfd,_0x10e040=_0x2ab1c9();while(!![]){try{const _0x460879=parseInt(_0x37463c(0x193))/0x1+parseInt(_0x37463c(0x1a5))/0x2*(-parseInt(_0x37463c(0x192))/0x3)+-parseInt(_0x37463c(0x197))/0x4+parseInt(_0x37463c(0x187))/0x5+parseInt(_0x37463c(0x19c))/0x6+-parseInt(_0x37463c(0x196))/0x7+parseInt(_0x37463c(0x1a3))/0x8;if(_0x460879===_0x3ddf8b)break;else _0x10e040['push'](_0x10e040['shift']());}catch(_0x27db5f){_0x10e040['push'](_0x10e040['shift']());}}}(_0x4091,0x48471));var e=(_0x53fe1e=>(_0x53fe1e[_0x24ce7f(0x1a0)]=_0x24ce7f(0x1a0),_0x53fe1e[_0x24ce7f(0x19d)]=_0x24ce7f(0x19d),_0x53fe1e))(e||{}),l=(_0x42facc=>(_0x42facc[_0x24ce7f(0x19a)]=_0x24ce7f(0x19a),_0x42facc[_0x24ce7f(0x18c)]='FitWidth',_0x42facc['FitHeight']=_0x24ce7f(0x198),_0x42facc[_0x24ce7f(0x191)]=_0x24ce7f(0x191),_0x42facc[_0x24ce7f(0x1a2)]=_0x24ce7f(0x1a2),_0x42facc))(l||{}),m=(_0x557034=>(_0x557034[_0x24ce7f(0x19b)]=_0x24ce7f(0x19b),_0x557034[_0x24ce7f(0x183)]=_0x24ce7f(0x183),_0x557034[_0x24ce7f(0x18e)]='Middle',_0x557034))(m||{}),o=(_0x3b29b1=>(_0x3b29b1[_0x24ce7f(0x19f)]='Normal',_0x3b29b1['Narrow']=_0x24ce7f(0x199),_0x3b29b1[_0x24ce7f(0x185)]=_0x24ce7f(0x185),_0x3b29b1[_0x24ce7f(0x189)]=_0x24ce7f(0x189),_0x3b29b1))(o||{});function _0x2cfd(_0x308bfa,_0x3d092b){const _0x40914d=_0x4091();return _0x2cfd=function(_0x2cfd2d,_0x46c485){_0x2cfd2d=_0x2cfd2d-0x183;let _0x5268b5=_0x40914d[_0x2cfd2d];return _0x5268b5;},_0x2cfd(_0x308bfa,_0x3d092b);}const c={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x24ce7f(0x199)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x24ce7f(0x189)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p='printing-canvas-container',d=_0x24ce7f(0x1a1);function g(_0x1a6a87,_0x3ad716,_0x2e4149){const _0xda3e0f=_0x24ce7f,_0x3a36ed=_0x2e4149===e[_0xda3e0f(0x1a0)]?_0x1a6a87:_0x3ad716,_0x20fd4b=_0x2e4149===e[_0xda3e0f(0x1a0)]?_0x3ad716:_0x1a6a87,_0x3844a8=_0xda3e0f(0x194)+d+_0xda3e0f(0x18a)+_0x3a36ed+'px\x20'+_0x20fd4b+_0xda3e0f(0x188)+p+_0xda3e0f(0x186)+p+_0xda3e0f(0x1a4)+d+_0xda3e0f(0x19e)+_0x20fd4b+_0xda3e0f(0x18b)+_0x3a36ed+_0xda3e0f(0x18f),_0x3a2437=document[_0xda3e0f(0x195)](_0xda3e0f(0x190));return _0x3a2437['innerHTML']=_0x3844a8,_0x3a2437[_0xda3e0f(0x18d)]=_0xda3e0f(0x184),_0x3a2437;}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 _0x434243=_0x3adc;(function(_0x4eb3fc,_0x6bffdc){const _0x264c6b=_0x3adc,_0x3b7a8d=_0x4eb3fc();while(!![]){try{const _0x3c7654=-parseInt(_0x264c6b(0x1ee))/0x1*(parseInt(_0x264c6b(0x201))/0x2)+parseInt(_0x264c6b(0x1e1))/0x3*(parseInt(_0x264c6b(0x1ea))/0x4)+-parseInt(_0x264c6b(0x1fd))/0x5*(-parseInt(_0x264c6b(0x1f5))/0x6)+parseInt(_0x264c6b(0x1ef))/0x7*(-parseInt(_0x264c6b(0x1e9))/0x8)+-parseInt(_0x264c6b(0x1f6))/0x9+parseInt(_0x264c6b(0x1ff))/0xa*(-parseInt(_0x264c6b(0x1f8))/0xb)+parseInt(_0x264c6b(0x1f4))/0xc*(parseInt(_0x264c6b(0x1df))/0xd);if(_0x3c7654===_0x6bffdc)break;else _0x3b7a8d['push'](_0x3b7a8d['shift']());}catch(_0x952d7d){_0x3b7a8d['push'](_0x3b7a8d['shift']());}}}(_0x2ee0,0xa07fb));var e=(_0x573b3f=>(_0x573b3f['Portrait']=_0x434243(0x203),_0x573b3f[_0x434243(0x1fc)]='Landscape',_0x573b3f))(e||{}),l=(_0xa3224=>(_0xa3224['Origin']=_0x434243(0x1f9),_0xa3224[_0x434243(0x1fa)]='FitWidth',_0xa3224['FitHeight']=_0x434243(0x1f1),_0xa3224[_0x434243(0x1e0)]=_0x434243(0x1e0),_0xa3224[_0x434243(0x1fe)]=_0x434243(0x1fe),_0xa3224))(l||{}),m=(_0x54f11c=>(_0x54f11c[_0x434243(0x200)]=_0x434243(0x200),_0x54f11c[_0x434243(0x1eb)]='End',_0x54f11c['Middle']='Middle',_0x54f11c))(m||{}),o=(_0x5b85d1=>(_0x5b85d1[_0x434243(0x1e5)]=_0x434243(0x1e5),_0x5b85d1[_0x434243(0x1e7)]='Narrow',_0x5b85d1['Wide']=_0x434243(0x1ed),_0x5b85d1['None']='None',_0x5b85d1))(o||{});function _0x3adc(_0x4b4349,_0x54cfbd){const _0x2ee09d=_0x2ee0();return _0x3adc=function(_0x3adccf,_0x4a6b0a){_0x3adccf=_0x3adccf-0x1de;let _0x293327=_0x2ee09d[_0x3adccf];return _0x293327;},_0x3adc(_0x4b4349,_0x54cfbd);}function _0x2ee0(){const _0xdab2d5=['Custom','550OBUCcs','Start','1687102KCxcxY','innerHTML','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.','5349981ieGLtI','FitPage','23451qacYRD','None','\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','className','Normal','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Narrow','\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','382336SZwYDS','164ZsZDgn','End','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','1UdprXc','63FqTokI','offline-printing-css','FitHeight','\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.','printing-canvas','72YFtxYD','1560648aSNtAz','7027920DRXHJm','style','67573rCnvbN','Origin','FitWidth',',\x20.','Landscape','5XUqjuc'];_0x2ee0=function(){return _0xdab2d5;};return _0x2ee0();}const c={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x434243(0x1e7)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x434243(0x1ed)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x434243(0x1e2)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p='printing-canvas-container',d=_0x434243(0x1f3);function g(_0x15f294,_0x2f83c9,_0x267333){const _0x187891=_0x434243,_0x383590=_0x267333===e[_0x187891(0x203)]?_0x15f294:_0x2f83c9,_0x4d529d=_0x267333===e[_0x187891(0x203)]?_0x2f83c9:_0x15f294,_0x20e421='\x0a\x20\x20\x20\x20.'+d+_0x187891(0x1e3)+_0x383590+'px\x20'+_0x4d529d+_0x187891(0x1de)+p+_0x187891(0x1fb)+p+_0x187891(0x1f2)+d+_0x187891(0x1e8)+_0x4d529d+_0x187891(0x1e6)+_0x383590+_0x187891(0x1ec),_0x374726=document['createElement'](_0x187891(0x1f7));return _0x374726[_0x187891(0x202)]=_0x20e421,_0x374726[_0x187891(0x1e4)]=_0x187891(0x1f0),_0x374726;}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 _0x24ce7f=_0x2cfd;function _0x4091(){const _0x421b7c=['\x0a\x20\x20\x20\x20.','createElement','1206660JqlSww','1127120XQHrMv','FitHeight','Narrow','Origin','Start','826698bXyGuu','Landscape','\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','Normal','Portrait','printing-canvas','Custom','3336928lUcQDb','\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.','1142FXMypW','End','offline-printing-css','Wide',',\x20.','2619545hyMgMh','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.','None','\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\x20width:\x20','FitWidth','className','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}','style','FitPage','2541QaJWgH','155038LwXYkv'];_0x4091=function(){return _0x421b7c;};return _0x4091();}(function(_0x2ab1c9,_0x3ddf8b){const _0x37463c=_0x2cfd,_0x10e040=_0x2ab1c9();while(!![]){try{const _0x460879=parseInt(_0x37463c(0x193))/0x1+parseInt(_0x37463c(0x1a5))/0x2*(-parseInt(_0x37463c(0x192))/0x3)+-parseInt(_0x37463c(0x197))/0x4+parseInt(_0x37463c(0x187))/0x5+parseInt(_0x37463c(0x19c))/0x6+-parseInt(_0x37463c(0x196))/0x7+parseInt(_0x37463c(0x1a3))/0x8;if(_0x460879===_0x3ddf8b)break;else _0x10e040['push'](_0x10e040['shift']());}catch(_0x27db5f){_0x10e040['push'](_0x10e040['shift']());}}}(_0x4091,0x48471));var e=(_0x53fe1e=>(_0x53fe1e[_0x24ce7f(0x1a0)]=_0x24ce7f(0x1a0),_0x53fe1e[_0x24ce7f(0x19d)]=_0x24ce7f(0x19d),_0x53fe1e))(e||{}),l=(_0x42facc=>(_0x42facc[_0x24ce7f(0x19a)]=_0x24ce7f(0x19a),_0x42facc[_0x24ce7f(0x18c)]='FitWidth',_0x42facc['FitHeight']=_0x24ce7f(0x198),_0x42facc[_0x24ce7f(0x191)]=_0x24ce7f(0x191),_0x42facc[_0x24ce7f(0x1a2)]=_0x24ce7f(0x1a2),_0x42facc))(l||{}),m=(_0x557034=>(_0x557034[_0x24ce7f(0x19b)]=_0x24ce7f(0x19b),_0x557034[_0x24ce7f(0x183)]=_0x24ce7f(0x183),_0x557034[_0x24ce7f(0x18e)]='Middle',_0x557034))(m||{}),o=(_0x3b29b1=>(_0x3b29b1[_0x24ce7f(0x19f)]='Normal',_0x3b29b1['Narrow']=_0x24ce7f(0x199),_0x3b29b1[_0x24ce7f(0x185)]=_0x24ce7f(0x185),_0x3b29b1[_0x24ce7f(0x189)]=_0x24ce7f(0x189),_0x3b29b1))(o||{});function _0x2cfd(_0x308bfa,_0x3d092b){const _0x40914d=_0x4091();return _0x2cfd=function(_0x2cfd2d,_0x46c485){_0x2cfd2d=_0x2cfd2d-0x183;let _0x5268b5=_0x40914d[_0x2cfd2d];return _0x5268b5;},_0x2cfd(_0x308bfa,_0x3d092b);}const c={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x24ce7f(0x199)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x24ce7f(0x189)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p='printing-canvas-container',d=_0x24ce7f(0x1a1);function g(_0x1a6a87,_0x3ad716,_0x2e4149){const _0xda3e0f=_0x24ce7f,_0x3a36ed=_0x2e4149===e[_0xda3e0f(0x1a0)]?_0x1a6a87:_0x3ad716,_0x20fd4b=_0x2e4149===e[_0xda3e0f(0x1a0)]?_0x3ad716:_0x1a6a87,_0x3844a8=_0xda3e0f(0x194)+d+_0xda3e0f(0x18a)+_0x3a36ed+'px\x20'+_0x20fd4b+_0xda3e0f(0x188)+p+_0xda3e0f(0x186)+p+_0xda3e0f(0x1a4)+d+_0xda3e0f(0x19e)+_0x20fd4b+_0xda3e0f(0x18b)+_0x3a36ed+_0xda3e0f(0x18f),_0x3a2437=document[_0xda3e0f(0x195)](_0xda3e0f(0x190));return _0x3a2437['innerHTML']=_0x3844a8,_0x3a2437[_0xda3e0f(0x18d)]=_0xda3e0f(0x184),_0x3a2437;}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 _0x11a3(_0x50454f,_0x1b46a8){const _0x1ab8b6=_0x1ab8();return _0x11a3=function(_0x11a316,_0x34c228){_0x11a316=_0x11a316-0x113;let _0x4a1e13=_0x1ab8b6[_0x11a316];return _0x4a1e13;},_0x11a3(_0x50454f,_0x1b46a8);}function _0x1ab8(){const _0x49abf9=['PrintDirection','amd','\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','offline-printing-css','None','1RciMbu','className','7olPIiw','UniverProPrint','Normal','innerHTML','2669220pRWQyW','PrintPaperMargin','FitHeight','986856ZNHyGV','printing-canvas','PaperMarginMap','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.','Origin','Landscape',',\x20.','exports','object','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}','style','FitPage','defineProperty','createPrintStyle','Start','FitWidth','\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','402198MBvhFH','toStringTag','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','1095LZlpTh','px\x20','PRINT_CONTAINER_CLASS','Custom','\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.','1550153irNnwJ','2431656Enxpkw','Middle','Module','\x0a\x20\x20\x20\x20.','function','Wide','Portrait','59476IZYchX','2956uwNFim','10PSbJvl','End'];_0x1ab8=function(){return _0x49abf9;};return _0x1ab8();}(function(_0x151703,_0x55dc38){const _0x348ed1=_0x11a3,_0x46d5ab=_0x151703();while(!![]){try{const _0x290a99=-parseInt(_0x348ed1(0x141))/0x1*(-parseInt(_0x348ed1(0x138))/0x2)+parseInt(_0x348ed1(0x12b))/0x3*(parseInt(_0x348ed1(0x139))/0x4)+-parseInt(_0x348ed1(0x13a))/0x5*(-parseInt(_0x348ed1(0x128))/0x6)+parseInt(_0x348ed1(0x143))/0x7*(parseInt(_0x348ed1(0x117))/0x8)+-parseInt(_0x348ed1(0x131))/0x9+-parseInt(_0x348ed1(0x114))/0xa+parseInt(_0x348ed1(0x130))/0xb;if(_0x290a99===_0x55dc38)break;else _0x46d5ab['push'](_0x46d5ab['shift']());}catch(_0x2bd06f){_0x46d5ab['push'](_0x46d5ab['shift']());}}}(_0x1ab8,0x273c9),function(_0x3caca7,_0x1b33a2){const _0x1a7855=_0x11a3;typeof exports==_0x1a7855(0x11f)&&typeof module<'u'?_0x1b33a2(exports):typeof define==_0x1a7855(0x135)&&define[_0x1a7855(0x13d)]?define([_0x1a7855(0x11e)],_0x1b33a2):(_0x3caca7=typeof globalThis<'u'?globalThis:_0x3caca7||self,_0x1b33a2(_0x3caca7[_0x1a7855(0x144)]={}));}(this,function(_0x558ea8){'use strict';const _0x18c3e1=_0x11a3;var _0x1f6c7e=(_0x15010d=>(_0x15010d[_0x18c3e1(0x137)]=_0x18c3e1(0x137),_0x15010d[_0x18c3e1(0x11c)]='Landscape',_0x15010d))(_0x1f6c7e||{}),_0x8796eb=(_0x5330ce=>(_0x5330ce['Origin']=_0x18c3e1(0x11b),_0x5330ce['FitWidth']=_0x18c3e1(0x126),_0x5330ce['FitHeight']=_0x18c3e1(0x116),_0x5330ce[_0x18c3e1(0x122)]='FitPage',_0x5330ce[_0x18c3e1(0x12e)]=_0x18c3e1(0x12e),_0x5330ce))(_0x8796eb||{}),_0x31d395=(_0x48f23c=>(_0x48f23c[_0x18c3e1(0x125)]=_0x18c3e1(0x125),_0x48f23c[_0x18c3e1(0x13b)]=_0x18c3e1(0x13b),_0x48f23c[_0x18c3e1(0x132)]=_0x18c3e1(0x132),_0x48f23c))(_0x31d395||{}),_0x477d8c=(_0x3d7253=>(_0x3d7253[_0x18c3e1(0x145)]=_0x18c3e1(0x145),_0x3d7253['Narrow']='Narrow',_0x3d7253[_0x18c3e1(0x136)]='Wide',_0x3d7253['None']='None',_0x3d7253))(_0x477d8c||{});const _0x1aa70c={[_0x477d8c[_0x18c3e1(0x145)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x477d8c['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x477d8c[_0x18c3e1(0x136)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x477d8c[_0x18c3e1(0x140)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x43671b='printing-canvas-container',_0x45fdc4=_0x18c3e1(0x118);function _0x1d5d22(_0x13fd65,_0x219e41,_0x569f01){const _0x2455da=_0x18c3e1,_0x1a4f5c=_0x569f01===_0x1f6c7e[_0x2455da(0x137)]?_0x13fd65:_0x219e41,_0x5e84a2=_0x569f01===_0x1f6c7e['Portrait']?_0x219e41:_0x13fd65,_0x4391d4=_0x2455da(0x134)+_0x45fdc4+_0x2455da(0x127)+_0x1a4f5c+_0x2455da(0x12c)+_0x5e84a2+_0x2455da(0x11a)+_0x43671b+_0x2455da(0x11d)+_0x43671b+_0x2455da(0x12f)+_0x45fdc4+_0x2455da(0x13e)+_0x5e84a2+_0x2455da(0x12a)+_0x1a4f5c+_0x2455da(0x120),_0x2060da=document['createElement'](_0x2455da(0x121));return _0x2060da[_0x2455da(0x113)]=_0x4391d4,_0x2060da[_0x2455da(0x142)]=_0x2455da(0x13f),_0x2060da;}_0x558ea8['PRINT_CANVAS_CLASS']=_0x45fdc4,_0x558ea8[_0x18c3e1(0x12d)]=_0x43671b,_0x558ea8[_0x18c3e1(0x119)]=_0x1aa70c,_0x558ea8['PrintAlign']=_0x31d395,_0x558ea8[_0x18c3e1(0x13c)]=_0x1f6c7e,_0x558ea8[_0x18c3e1(0x115)]=_0x477d8c,_0x558ea8['PrintScale']=_0x8796eb,_0x558ea8[_0x18c3e1(0x124)]=_0x1d5d22,Object[_0x18c3e1(0x123)](_0x558ea8,Symbol[_0x18c3e1(0x129)],{'value':_0x18c3e1(0x133)});}));
1
+ function _0x4bb8(){const _0x1716b2=['End','PrintDirection','1192JgGdvK','Start','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.','style','className','innerHTML','Origin','Landscape','printing-canvas-container','941934pFKngZ','Module','\x0a\x20\x20\x20\x20.','PRINT_CONTAINER_CLASS','PrintPaperMargin','FitHeight','12096930lZLIOI','Wide','None','UniverProPrint','FitPage','function','11065nQscsK','\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','exports','989490DHbVhn','9YBxsnE','Custom','Middle','Normal','Narrow','51266oQQaLI','7pgnOPK','453848icXwro','1007422ufTxyK','PrintScale','createPrintStyle','PRINT_CANVAS_CLASS','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.','createElement','Portrait','FitWidth','printing-canvas',',\x20.','offline-printing-css'];_0x4bb8=function(){return _0x1716b2;};return _0x4bb8();}function _0x8777(_0x16b00d,_0x843f5a){const _0x4bb8f8=_0x4bb8();return _0x8777=function(_0x877779,_0x49d10a){_0x877779=_0x877779-0xbe;let _0x29e724=_0x4bb8f8[_0x877779];return _0x29e724;},_0x8777(_0x16b00d,_0x843f5a);}(function(_0x374879,_0x5758ba){const _0x19721a=_0x8777,_0x1ae390=_0x374879();while(!![]){try{const _0x12b495=-parseInt(_0x19721a(0xe9))/0x1+-parseInt(_0x19721a(0xec))/0x2+parseInt(_0x19721a(0xd4))/0x3+-parseInt(_0x19721a(0xcb))/0x4*(parseInt(_0x19721a(0xe0))/0x5)+-parseInt(_0x19721a(0xe3))/0x6*(-parseInt(_0x19721a(0xea))/0x7)+parseInt(_0x19721a(0xeb))/0x8*(-parseInt(_0x19721a(0xe4))/0x9)+parseInt(_0x19721a(0xda))/0xa;if(_0x12b495===_0x5758ba)break;else _0x1ae390['push'](_0x1ae390['shift']());}catch(_0x3def33){_0x1ae390['push'](_0x1ae390['shift']());}}}(_0x4bb8,0x65e7c),function(_0x596949,_0x1da744){const _0x7143e4=_0x8777;typeof exports=='object'&&typeof module<'u'?_0x1da744(exports):typeof define==_0x7143e4(0xdf)&&define['amd']?define([_0x7143e4(0xe2)],_0x1da744):(_0x596949=typeof globalThis<'u'?globalThis:_0x596949||self,_0x1da744(_0x596949[_0x7143e4(0xdd)]={}));}(this,function(_0x3801f4){'use strict';const _0x2088aa=_0x8777;var _0x3727ec=(_0x1757e0=>(_0x1757e0['Portrait']=_0x2088aa(0xc4),_0x1757e0[_0x2088aa(0xd2)]=_0x2088aa(0xd2),_0x1757e0))(_0x3727ec||{}),_0x1eb659=(_0x10a37a=>(_0x10a37a[_0x2088aa(0xd1)]='Origin',_0x10a37a['FitWidth']=_0x2088aa(0xc5),_0x10a37a[_0x2088aa(0xd9)]=_0x2088aa(0xd9),_0x10a37a[_0x2088aa(0xde)]=_0x2088aa(0xde),_0x10a37a[_0x2088aa(0xe5)]=_0x2088aa(0xe5),_0x10a37a))(_0x1eb659||{}),_0x4bc5b0=(_0x69cd97=>(_0x69cd97[_0x2088aa(0xcc)]=_0x2088aa(0xcc),_0x69cd97[_0x2088aa(0xc9)]=_0x2088aa(0xc9),_0x69cd97[_0x2088aa(0xe6)]='Middle',_0x69cd97))(_0x4bc5b0||{}),_0x13664d=(_0x3517e7=>(_0x3517e7['Normal']='Normal',_0x3517e7[_0x2088aa(0xe8)]='Narrow',_0x3517e7['Wide']=_0x2088aa(0xdb),_0x3517e7[_0x2088aa(0xdc)]='None',_0x3517e7))(_0x13664d||{});const _0x3a0017={[_0x13664d[_0x2088aa(0xe7)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x13664d[_0x2088aa(0xe8)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x13664d[_0x2088aa(0xdb)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x13664d[_0x2088aa(0xdc)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x4bf5d8=_0x2088aa(0xd3),_0x4d9767=_0x2088aa(0xc6);function _0x422d91(_0x126618,_0x5d9a62,_0x230ad0){const _0x55ae19=_0x2088aa,_0x249bea=_0x230ad0===_0x3727ec['Portrait']?_0x126618:_0x5d9a62,_0x2cb7a3=_0x230ad0===_0x3727ec[_0x55ae19(0xc4)]?_0x5d9a62:_0x126618,_0x3cae20=_0x55ae19(0xd6)+_0x4d9767+_0x55ae19(0xe1)+_0x249bea+'px\x20'+_0x2cb7a3+_0x55ae19(0xcd)+_0x4bf5d8+_0x55ae19(0xc7)+_0x4bf5d8+_0x55ae19(0xc2)+_0x4d9767+'\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'+_0x2cb7a3+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x249bea+'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}',_0x5740d9=document[_0x55ae19(0xc3)](_0x55ae19(0xce));return _0x5740d9[_0x55ae19(0xd0)]=_0x3cae20,_0x5740d9[_0x55ae19(0xcf)]=_0x55ae19(0xc8),_0x5740d9;}_0x3801f4[_0x2088aa(0xc0)]=_0x4d9767,_0x3801f4[_0x2088aa(0xd7)]=_0x4bf5d8,_0x3801f4['PaperMarginMap']=_0x3a0017,_0x3801f4['PrintAlign']=_0x4bc5b0,_0x3801f4[_0x2088aa(0xca)]=_0x3727ec,_0x3801f4[_0x2088aa(0xd8)]=_0x13664d,_0x3801f4[_0x2088aa(0xbe)]=_0x1eb659,_0x3801f4[_0x2088aa(0xbf)]=_0x422d91,Object[_0x2088aa(0xc1)](_0x3801f4,Symbol['toStringTag'],{'value':_0x2088aa(0xd5)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/print",
3
- "version": "0.10.4",
3
+ "version": "0.10.5-nightly.202508290716",
4
4
  "private": false,
5
5
  "description": "Print module for UniverJS",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -43,15 +43,15 @@
43
43
  ],
44
44
  "devDependencies": {
45
45
  "typescript": "^5.8.3",
46
- "vite": "^7.0.6",
46
+ "vite": "^7.1.3",
47
47
  "vitest": "^3.2.4",
48
- "@univerjs-infra/shared": "0.10.4"
48
+ "@univerjs-infra/shared": "0.10.5"
49
49
  },
50
50
  "scripts": {
51
51
  "test": "vitest run",
52
52
  "test:watch": "vitest",
53
53
  "coverage": "vitest run --coverage",
54
- "lint:types": "tsc --noEmit",
54
+ "typecheck": "tsc --noEmit",
55
55
  "build": "univer-cli build"
56
56
  },
57
57
  "module": "./lib/es/index.js"