@univerjs-pro/print 0.10.2 → 0.10.3

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 _0x37c74d=_0xa96d;(function(_0x3b740d,_0x1b86bf){const _0x2f084b=_0xa96d,_0xc1562a=_0x3b740d();while(!![]){try{const _0x1ccd1d=parseInt(_0x2f084b(0x82))/0x1*(-parseInt(_0x2f084b(0x75))/0x2)+parseInt(_0x2f084b(0x87))/0x3*(-parseInt(_0x2f084b(0x79))/0x4)+parseInt(_0x2f084b(0x83))/0x5+-parseInt(_0x2f084b(0x94))/0x6*(parseInt(_0x2f084b(0x84))/0x7)+-parseInt(_0x2f084b(0x93))/0x8+-parseInt(_0x2f084b(0x7c))/0x9*(-parseInt(_0x2f084b(0x76))/0xa)+parseInt(_0x2f084b(0x8b))/0xb;if(_0x1ccd1d===_0x1b86bf)break;else _0xc1562a['push'](_0xc1562a['shift']());}catch(_0x53eaf6){_0xc1562a['push'](_0xc1562a['shift']());}}}(_0x2f6b,0x90f6a));Object[_0x37c74d(0x74)](exports,Symbol['toStringTag'],{'value':_0x37c74d(0x72)});var e=(_0x4c69c2=>(_0x4c69c2[_0x37c74d(0x90)]=_0x37c74d(0x90),_0x4c69c2[_0x37c74d(0x91)]=_0x37c74d(0x91),_0x4c69c2))(e||{}),l=(_0x49238e=>(_0x49238e[_0x37c74d(0x96)]='Origin',_0x49238e['FitWidth']=_0x37c74d(0x70),_0x49238e[_0x37c74d(0x80)]=_0x37c74d(0x80),_0x49238e[_0x37c74d(0x8a)]=_0x37c74d(0x8a),_0x49238e[_0x37c74d(0x95)]=_0x37c74d(0x95),_0x49238e))(l||{}),c=(_0x2005b2=>(_0x2005b2[_0x37c74d(0x7f)]='Start',_0x2005b2['End']=_0x37c74d(0x88),_0x2005b2[_0x37c74d(0x86)]='Middle',_0x2005b2))(c||{}),i=(_0x156fdf=>(_0x156fdf[_0x37c74d(0x8c)]=_0x37c74d(0x8c),_0x156fdf[_0x37c74d(0x7e)]=_0x37c74d(0x7e),_0x156fdf['Wide']=_0x37c74d(0x98),_0x156fdf['None']='None',_0x156fdf))(i||{});const h={[i['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i[_0x37c74d(0x7e)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i[_0x37c74d(0x98)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i[_0x37c74d(0x77)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x37c74d(0x71),n=_0x37c74d(0x81);function _0xa96d(_0x2f76da,_0x18a8f1){const _0x2f6b1e=_0x2f6b();return _0xa96d=function(_0xa96d9c,_0x2d93ac){_0xa96d9c=_0xa96d9c-0x70;let _0x4e3247=_0x2f6b1e[_0xa96d9c];return _0x4e3247;},_0xa96d(_0x2f76da,_0x18a8f1);}function m(_0x395fef,_0x2125a8,_0x5c3191){const _0x238bcf=_0x37c74d,_0xcbfebf=_0x5c3191===e[_0x238bcf(0x90)]?_0x395fef:_0x2125a8,_0x562756=_0x5c3191===e[_0x238bcf(0x90)]?_0x2125a8:_0x395fef,_0x4d5fcf=_0x238bcf(0x7a)+n+_0x238bcf(0x89)+_0xcbfebf+'px\x20'+_0x562756+_0x238bcf(0x97)+r+_0x238bcf(0x7b)+r+_0x238bcf(0x8d)+n+_0x238bcf(0x8f)+_0x562756+_0x238bcf(0x73)+_0xcbfebf+_0x238bcf(0x8e),_0x56096a=document['createElement'](_0x238bcf(0x99));return _0x56096a['innerHTML']=_0x4d5fcf,_0x56096a['className']=_0x238bcf(0x85),_0x56096a;}exports[_0x37c74d(0x92)]=n,exports[_0x37c74d(0x78)]=r,exports[_0x37c74d(0x7d)]=h,exports['PrintAlign']=c,exports['PrintDirection']=e,exports['PrintPaperMargin']=i,exports['PrintScale']=l,exports['createPrintStyle']=m;function _0x2f6b(){const _0x1a220f=['FitHeight','printing-canvas','74176KSiTjQ','1095365TeDBAl','1120JVGgyH','offline-printing-css','Middle','453SmabkF','End','\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','FitPage','16827074WLspLO','Normal','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','\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','Portrait','Landscape','PRINT_CANVAS_CLASS','5687648wiJfVe','18678ZSonaS','Custom','Origin','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.','Wide','style','FitWidth','printing-canvas-container','Module','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','defineProperty','16aYFjiK','7538620pdEdHM','None','PRINT_CONTAINER_CLASS','2820rcQQBM','\x0a\x20\x20\x20\x20.',',\x20.','9eeANyZ','PaperMarginMap','Narrow','Start'];_0x2f6b=function(){return _0x1a220f;};return _0x2f6b();}
1
+ 'use strict';const _0x5061bc=_0x4731;function _0x4731(_0x589b5c,_0x3b77f8){const _0x2340ba=_0x2340();return _0x4731=function(_0x47313c,_0x4b65a0){_0x47313c=_0x47313c-0xd4;let _0x532547=_0x2340ba[_0x47313c];return _0x532547;},_0x4731(_0x589b5c,_0x3b77f8);}(function(_0x3420c0,_0x325ad3){const _0x36c96d=_0x4731,_0x1d4184=_0x3420c0();while(!![]){try{const _0x19a1f5=-parseInt(_0x36c96d(0xde))/0x1*(-parseInt(_0x36c96d(0xed))/0x2)+parseInt(_0x36c96d(0xf2))/0x3*(-parseInt(_0x36c96d(0xf5))/0x4)+-parseInt(_0x36c96d(0xd4))/0x5*(parseInt(_0x36c96d(0xd9))/0x6)+parseInt(_0x36c96d(0xe9))/0x7*(-parseInt(_0x36c96d(0x105))/0x8)+-parseInt(_0x36c96d(0x103))/0x9+-parseInt(_0x36c96d(0xec))/0xa*(parseInt(_0x36c96d(0xf9))/0xb)+-parseInt(_0x36c96d(0xdb))/0xc*(-parseInt(_0x36c96d(0xd7))/0xd);if(_0x19a1f5===_0x325ad3)break;else _0x1d4184['push'](_0x1d4184['shift']());}catch(_0x17ce1c){_0x1d4184['push'](_0x1d4184['shift']());}}}(_0x2340,0xd4879));Object[_0x5061bc(0xfd)](exports,Symbol[_0x5061bc(0xf4)],{'value':_0x5061bc(0xf8)});var e=(_0x5c46b8=>(_0x5c46b8[_0x5061bc(0xff)]='Portrait',_0x5c46b8[_0x5061bc(0xe3)]=_0x5061bc(0xe3),_0x5c46b8))(e||{}),l=(_0x535b7d=>(_0x535b7d[_0x5061bc(0xf3)]=_0x5061bc(0xf3),_0x535b7d[_0x5061bc(0xf1)]=_0x5061bc(0xf1),_0x535b7d[_0x5061bc(0xe1)]=_0x5061bc(0xe1),_0x535b7d[_0x5061bc(0xdd)]=_0x5061bc(0xdd),_0x535b7d['Custom']='Custom',_0x535b7d))(l||{}),c=(_0x3bbca9=>(_0x3bbca9['Start']=_0x5061bc(0xef),_0x3bbca9[_0x5061bc(0xf0)]=_0x5061bc(0xf0),_0x3bbca9[_0x5061bc(0xfa)]=_0x5061bc(0xfa),_0x3bbca9))(c||{}),i=(_0x1c869d=>(_0x1c869d[_0x5061bc(0xe7)]=_0x5061bc(0xe7),_0x1c869d[_0x5061bc(0x100)]=_0x5061bc(0x100),_0x1c869d[_0x5061bc(0xdf)]=_0x5061bc(0xdf),_0x1c869d[_0x5061bc(0xd6)]=_0x5061bc(0xd6),_0x1c869d))(i||{});function _0x2340(){const _0x5f000e=['None','4589hZaHXt','\x0a\x20\x20\x20\x20.','6LgIQsN','PaperMarginMap','60528iAgruR','className','FitPage','1VUcmxp','Wide','style','FitHeight','offline-printing-css','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',',\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.','Normal','printing-canvas-container','466529GUmDlD','PRINT_CONTAINER_CLASS','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','1807330liNYeu','3038236bXVPSE','printing-canvas','Start','End','FitWidth','33JXzduj','Origin','toStringTag','57444MnDsLH','PrintDirection','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}','Module','33QYmXLt','Middle','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','PRINT_CANVAS_CLASS','defineProperty','createPrintStyle','Portrait','Narrow','PrintPaperMargin','PrintAlign','6162768xxbCUF','PrintScale','112DOySon','555745eKFVHQ','\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.'];_0x2340=function(){return _0x5f000e;};return _0x2340();}const h={[i[_0x5061bc(0xe7)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i[_0x5061bc(0x100)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i[_0x5061bc(0xdf)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x5061bc(0xe8),n=_0x5061bc(0xee);function m(_0x2abbe2,_0x59153f,_0x24ce49){const _0x2c23f7=_0x5061bc,_0x5b8f74=_0x24ce49===e[_0x2c23f7(0xff)]?_0x2abbe2:_0x59153f,_0x46a012=_0x24ce49===e[_0x2c23f7(0xff)]?_0x59153f:_0x2abbe2,_0x4c87c4=_0x2c23f7(0xd8)+n+_0x2c23f7(0xeb)+_0x5b8f74+'px\x20'+_0x46a012+_0x2c23f7(0xe6)+r+_0x2c23f7(0xe5)+r+_0x2c23f7(0xd5)+n+_0x2c23f7(0xe4)+_0x46a012+_0x2c23f7(0xfb)+_0x5b8f74+_0x2c23f7(0xf7),_0xb30c49=document['createElement'](_0x2c23f7(0xe0));return _0xb30c49['innerHTML']=_0x4c87c4,_0xb30c49[_0x2c23f7(0xdc)]=_0x2c23f7(0xe2),_0xb30c49;}exports[_0x5061bc(0xfc)]=n,exports[_0x5061bc(0xea)]=r,exports[_0x5061bc(0xda)]=h,exports[_0x5061bc(0x102)]=c,exports[_0x5061bc(0xf6)]=e,exports[_0x5061bc(0x101)]=i,exports[_0x5061bc(0x104)]=l,exports[_0x5061bc(0xfe)]=m;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- function _0x3542(_0x33bee6,_0x104adb){const _0x2fa39d=_0x2fa3();return _0x3542=function(_0x35428f,_0x36e4b4){_0x35428f=_0x35428f-0x17f;let _0x55dcc5=_0x2fa39d[_0x35428f];return _0x55dcc5;},_0x3542(_0x33bee6,_0x104adb);}const _0x217402=_0x3542;function _0x2fa3(){const _0x3566b5=['10pADqsC','Middle','FitWidth','px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','Portrait','1594952mfsYHW','309726DZjXic','Landscape','className','Start','printing-canvas','End','createElement','Normal','1930020QORffV','FitHeight','7bOJwJL','offline-printing-css','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}','889326hYESHc','Wide','style','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','\x0a\x20\x20\x20\x20.','None','651951BivSJp','10HVsCKj','6957940YtKLtI','Custom','printing-canvas-container','innerHTML','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','11533878twnxCy','Origin'];_0x2fa3=function(){return _0x3566b5;};return _0x2fa3();}(function(_0x1cf2f8,_0x9c98e2){const _0x8fa530=_0x3542,_0x486a85=_0x1cf2f8();while(!![]){try{const _0x58a340=parseInt(_0x8fa530(0x196))/0x1*(parseInt(_0x8fa530(0x186))/0x2)+-parseInt(_0x8fa530(0x185))/0x3+-parseInt(_0x8fa530(0x19e))/0x4+-parseInt(_0x8fa530(0x187))/0x5+-parseInt(_0x8fa530(0x17f))/0x6+parseInt(_0x8fa530(0x1a0))/0x7*(parseInt(_0x8fa530(0x195))/0x8)+parseInt(_0x8fa530(0x18e))/0x9*(parseInt(_0x8fa530(0x190))/0xa);if(_0x58a340===_0x9c98e2)break;else _0x486a85['push'](_0x486a85['shift']());}catch(_0xd4eba4){_0x486a85['push'](_0x486a85['shift']());}}}(_0x2fa3,0xc0d96));var e=(_0x72839b=>(_0x72839b['Portrait']=_0x217402(0x194),_0x72839b[_0x217402(0x197)]='Landscape',_0x72839b))(e||{}),l=(_0xd3f6=>(_0xd3f6[_0x217402(0x18f)]=_0x217402(0x18f),_0xd3f6[_0x217402(0x192)]=_0x217402(0x192),_0xd3f6[_0x217402(0x19f)]='FitHeight',_0xd3f6[_0x217402(0x18b)]=_0x217402(0x18b),_0xd3f6[_0x217402(0x188)]=_0x217402(0x188),_0xd3f6))(l||{}),m=(_0x35c08e=>(_0x35c08e[_0x217402(0x199)]='Start',_0x35c08e[_0x217402(0x19b)]=_0x217402(0x19b),_0x35c08e[_0x217402(0x191)]='Middle',_0x35c08e))(m||{}),o=(_0x242592=>(_0x242592[_0x217402(0x19d)]=_0x217402(0x19d),_0x242592[_0x217402(0x18d)]=_0x217402(0x18d),_0x242592[_0x217402(0x180)]=_0x217402(0x180),_0x242592['None']=_0x217402(0x184),_0x242592))(o||{});const c={[o[_0x217402(0x19d)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x217402(0x18d)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x217402(0x180)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x217402(0x184)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x217402(0x189),d=_0x217402(0x19a);function g(_0x53fbc3,_0x7bbc6b,_0x5cd576){const _0x6743db=_0x217402,_0xc9c4e2=_0x5cd576===e['Portrait']?_0x53fbc3:_0x7bbc6b,_0x318521=_0x5cd576===e[_0x6743db(0x194)]?_0x7bbc6b:_0x53fbc3,_0x4de708=_0x6743db(0x183)+d+'\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'+_0xc9c4e2+'px\x20'+_0x318521+_0x6743db(0x193)+p+',\x20.'+p+'\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.'+d+_0x6743db(0x18c)+_0x318521+_0x6743db(0x182)+_0xc9c4e2+_0x6743db(0x1a2),_0x564983=document[_0x6743db(0x19c)](_0x6743db(0x181));return _0x564983[_0x6743db(0x18a)]=_0x4de708,_0x564983[_0x6743db(0x198)]=_0x6743db(0x1a1),_0x564983;}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 _0x21962d=_0x3931;(function(_0x5a86c7,_0x1c31d1){const _0x1ee929=_0x3931,_0x3f9e8e=_0x5a86c7();while(!![]){try{const _0x5e4dce=-parseInt(_0x1ee929(0x114))/0x1+-parseInt(_0x1ee929(0x11c))/0x2+parseInt(_0x1ee929(0x127))/0x3+parseInt(_0x1ee929(0x126))/0x4*(parseInt(_0x1ee929(0x12a))/0x5)+-parseInt(_0x1ee929(0x120))/0x6+-parseInt(_0x1ee929(0x123))/0x7+parseInt(_0x1ee929(0x111))/0x8;if(_0x5e4dce===_0x1c31d1)break;else _0x3f9e8e['push'](_0x3f9e8e['shift']());}catch(_0x5a44f2){_0x3f9e8e['push'](_0x3f9e8e['shift']());}}}(_0x4a53,0xb265f));var e=(_0x2e6fa5=>(_0x2e6fa5[_0x21962d(0x12c)]=_0x21962d(0x12c),_0x2e6fa5['Landscape']=_0x21962d(0x12f),_0x2e6fa5))(e||{}),l=(_0x5f2644=>(_0x5f2644['Origin']=_0x21962d(0x11e),_0x5f2644[_0x21962d(0x11d)]=_0x21962d(0x11d),_0x5f2644[_0x21962d(0x122)]=_0x21962d(0x122),_0x5f2644[_0x21962d(0x121)]=_0x21962d(0x121),_0x5f2644[_0x21962d(0x128)]=_0x21962d(0x128),_0x5f2644))(l||{}),m=(_0x7b3a32=>(_0x7b3a32[_0x21962d(0x119)]=_0x21962d(0x119),_0x7b3a32[_0x21962d(0x117)]=_0x21962d(0x117),_0x7b3a32[_0x21962d(0x129)]=_0x21962d(0x129),_0x7b3a32))(m||{}),o=(_0x8143e1=>(_0x8143e1[_0x21962d(0x124)]=_0x21962d(0x124),_0x8143e1[_0x21962d(0x112)]=_0x21962d(0x112),_0x8143e1[_0x21962d(0x115)]='Wide',_0x8143e1[_0x21962d(0x116)]=_0x21962d(0x116),_0x8143e1))(o||{});function _0x3931(_0x4b38fa,_0x50e99f){const _0x4a538d=_0x4a53();return _0x3931=function(_0x3931d9,_0x2b8019){_0x3931d9=_0x3931d9-0x111;let _0x4ecd4f=_0x4a538d[_0x3931d9];return _0x4ecd4f;},_0x3931(_0x4b38fa,_0x50e99f);}function _0x4a53(){const _0x3abe09=['1429653ebwMke','Wide','None','End','\x0a\x20\x20\x20\x20.','Start','\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.','style','1648916dWnEpW','FitWidth','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}','4923312mjvdjl','FitPage','FitHeight','4819556nojFwx','Normal','innerHTML','4OooPBS','1587174ejCYSs','Custom','Middle','2721655zHZRAy','createElement','Portrait','printing-canvas','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.','Landscape','px\x20','27364008XzOEbH','Narrow','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'];_0x4a53=function(){return _0x3abe09;};return _0x4a53();}const c={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'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='printing-canvas-container',d=_0x21962d(0x12d);function g(_0x42e6c2,_0x1b7779,_0x460faa){const _0x325545=_0x21962d,_0x506812=_0x460faa===e[_0x325545(0x12c)]?_0x42e6c2:_0x1b7779,_0x4911bf=_0x460faa===e[_0x325545(0x12c)]?_0x1b7779:_0x42e6c2,_0x5d9934=_0x325545(0x118)+d+'\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'+_0x506812+_0x325545(0x130)+_0x4911bf+_0x325545(0x12e)+p+',\x20.'+p+_0x325545(0x11a)+d+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x4911bf+_0x325545(0x113)+_0x506812+_0x325545(0x11f),_0xd21717=document[_0x325545(0x12b)](_0x325545(0x11b));return _0xd21717[_0x325545(0x125)]=_0x5d9934,_0xd21717['className']='offline-printing-css',_0xd21717;}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,m as PrintAlign,e as PrintDirection,o as PrintPaperMargin,l as PrintScale,g as createPrintStyle};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- function _0x3542(_0x33bee6,_0x104adb){const _0x2fa39d=_0x2fa3();return _0x3542=function(_0x35428f,_0x36e4b4){_0x35428f=_0x35428f-0x17f;let _0x55dcc5=_0x2fa39d[_0x35428f];return _0x55dcc5;},_0x3542(_0x33bee6,_0x104adb);}const _0x217402=_0x3542;function _0x2fa3(){const _0x3566b5=['10pADqsC','Middle','FitWidth','px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','Portrait','1594952mfsYHW','309726DZjXic','Landscape','className','Start','printing-canvas','End','createElement','Normal','1930020QORffV','FitHeight','7bOJwJL','offline-printing-css','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}','889326hYESHc','Wide','style','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','\x0a\x20\x20\x20\x20.','None','651951BivSJp','10HVsCKj','6957940YtKLtI','Custom','printing-canvas-container','innerHTML','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','11533878twnxCy','Origin'];_0x2fa3=function(){return _0x3566b5;};return _0x2fa3();}(function(_0x1cf2f8,_0x9c98e2){const _0x8fa530=_0x3542,_0x486a85=_0x1cf2f8();while(!![]){try{const _0x58a340=parseInt(_0x8fa530(0x196))/0x1*(parseInt(_0x8fa530(0x186))/0x2)+-parseInt(_0x8fa530(0x185))/0x3+-parseInt(_0x8fa530(0x19e))/0x4+-parseInt(_0x8fa530(0x187))/0x5+-parseInt(_0x8fa530(0x17f))/0x6+parseInt(_0x8fa530(0x1a0))/0x7*(parseInt(_0x8fa530(0x195))/0x8)+parseInt(_0x8fa530(0x18e))/0x9*(parseInt(_0x8fa530(0x190))/0xa);if(_0x58a340===_0x9c98e2)break;else _0x486a85['push'](_0x486a85['shift']());}catch(_0xd4eba4){_0x486a85['push'](_0x486a85['shift']());}}}(_0x2fa3,0xc0d96));var e=(_0x72839b=>(_0x72839b['Portrait']=_0x217402(0x194),_0x72839b[_0x217402(0x197)]='Landscape',_0x72839b))(e||{}),l=(_0xd3f6=>(_0xd3f6[_0x217402(0x18f)]=_0x217402(0x18f),_0xd3f6[_0x217402(0x192)]=_0x217402(0x192),_0xd3f6[_0x217402(0x19f)]='FitHeight',_0xd3f6[_0x217402(0x18b)]=_0x217402(0x18b),_0xd3f6[_0x217402(0x188)]=_0x217402(0x188),_0xd3f6))(l||{}),m=(_0x35c08e=>(_0x35c08e[_0x217402(0x199)]='Start',_0x35c08e[_0x217402(0x19b)]=_0x217402(0x19b),_0x35c08e[_0x217402(0x191)]='Middle',_0x35c08e))(m||{}),o=(_0x242592=>(_0x242592[_0x217402(0x19d)]=_0x217402(0x19d),_0x242592[_0x217402(0x18d)]=_0x217402(0x18d),_0x242592[_0x217402(0x180)]=_0x217402(0x180),_0x242592['None']=_0x217402(0x184),_0x242592))(o||{});const c={[o[_0x217402(0x19d)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x217402(0x18d)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x217402(0x180)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x217402(0x184)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x217402(0x189),d=_0x217402(0x19a);function g(_0x53fbc3,_0x7bbc6b,_0x5cd576){const _0x6743db=_0x217402,_0xc9c4e2=_0x5cd576===e['Portrait']?_0x53fbc3:_0x7bbc6b,_0x318521=_0x5cd576===e[_0x6743db(0x194)]?_0x7bbc6b:_0x53fbc3,_0x4de708=_0x6743db(0x183)+d+'\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'+_0xc9c4e2+'px\x20'+_0x318521+_0x6743db(0x193)+p+',\x20.'+p+'\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.'+d+_0x6743db(0x18c)+_0x318521+_0x6743db(0x182)+_0xc9c4e2+_0x6743db(0x1a2),_0x564983=document[_0x6743db(0x19c)](_0x6743db(0x181));return _0x564983[_0x6743db(0x18a)]=_0x4de708,_0x564983[_0x6743db(0x198)]=_0x6743db(0x1a1),_0x564983;}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 _0x21962d=_0x3931;(function(_0x5a86c7,_0x1c31d1){const _0x1ee929=_0x3931,_0x3f9e8e=_0x5a86c7();while(!![]){try{const _0x5e4dce=-parseInt(_0x1ee929(0x114))/0x1+-parseInt(_0x1ee929(0x11c))/0x2+parseInt(_0x1ee929(0x127))/0x3+parseInt(_0x1ee929(0x126))/0x4*(parseInt(_0x1ee929(0x12a))/0x5)+-parseInt(_0x1ee929(0x120))/0x6+-parseInt(_0x1ee929(0x123))/0x7+parseInt(_0x1ee929(0x111))/0x8;if(_0x5e4dce===_0x1c31d1)break;else _0x3f9e8e['push'](_0x3f9e8e['shift']());}catch(_0x5a44f2){_0x3f9e8e['push'](_0x3f9e8e['shift']());}}}(_0x4a53,0xb265f));var e=(_0x2e6fa5=>(_0x2e6fa5[_0x21962d(0x12c)]=_0x21962d(0x12c),_0x2e6fa5['Landscape']=_0x21962d(0x12f),_0x2e6fa5))(e||{}),l=(_0x5f2644=>(_0x5f2644['Origin']=_0x21962d(0x11e),_0x5f2644[_0x21962d(0x11d)]=_0x21962d(0x11d),_0x5f2644[_0x21962d(0x122)]=_0x21962d(0x122),_0x5f2644[_0x21962d(0x121)]=_0x21962d(0x121),_0x5f2644[_0x21962d(0x128)]=_0x21962d(0x128),_0x5f2644))(l||{}),m=(_0x7b3a32=>(_0x7b3a32[_0x21962d(0x119)]=_0x21962d(0x119),_0x7b3a32[_0x21962d(0x117)]=_0x21962d(0x117),_0x7b3a32[_0x21962d(0x129)]=_0x21962d(0x129),_0x7b3a32))(m||{}),o=(_0x8143e1=>(_0x8143e1[_0x21962d(0x124)]=_0x21962d(0x124),_0x8143e1[_0x21962d(0x112)]=_0x21962d(0x112),_0x8143e1[_0x21962d(0x115)]='Wide',_0x8143e1[_0x21962d(0x116)]=_0x21962d(0x116),_0x8143e1))(o||{});function _0x3931(_0x4b38fa,_0x50e99f){const _0x4a538d=_0x4a53();return _0x3931=function(_0x3931d9,_0x2b8019){_0x3931d9=_0x3931d9-0x111;let _0x4ecd4f=_0x4a538d[_0x3931d9];return _0x4ecd4f;},_0x3931(_0x4b38fa,_0x50e99f);}function _0x4a53(){const _0x3abe09=['1429653ebwMke','Wide','None','End','\x0a\x20\x20\x20\x20.','Start','\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.','style','1648916dWnEpW','FitWidth','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}','4923312mjvdjl','FitPage','FitHeight','4819556nojFwx','Normal','innerHTML','4OooPBS','1587174ejCYSs','Custom','Middle','2721655zHZRAy','createElement','Portrait','printing-canvas','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.','Landscape','px\x20','27364008XzOEbH','Narrow','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'];_0x4a53=function(){return _0x3abe09;};return _0x4a53();}const c={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'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='printing-canvas-container',d=_0x21962d(0x12d);function g(_0x42e6c2,_0x1b7779,_0x460faa){const _0x325545=_0x21962d,_0x506812=_0x460faa===e[_0x325545(0x12c)]?_0x42e6c2:_0x1b7779,_0x4911bf=_0x460faa===e[_0x325545(0x12c)]?_0x1b7779:_0x42e6c2,_0x5d9934=_0x325545(0x118)+d+'\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'+_0x506812+_0x325545(0x130)+_0x4911bf+_0x325545(0x12e)+p+',\x20.'+p+_0x325545(0x11a)+d+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x4911bf+_0x325545(0x113)+_0x506812+_0x325545(0x11f),_0xd21717=document[_0x325545(0x12b)](_0x325545(0x11b));return _0xd21717[_0x325545(0x125)]=_0x5d9934,_0xd21717['className']='offline-printing-css',_0xd21717;}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 _0x5204(_0x1e6177,_0x1bace7){const _0x582a84=_0x582a();return _0x5204=function(_0x52040f,_0x8941){_0x52040f=_0x52040f-0x17c;let _0x14d912=_0x582a84[_0x52040f];return _0x14d912;},_0x5204(_0x1e6177,_0x1bace7);}(function(_0x3ab6fc,_0x1848f6){const _0x2ddc42=_0x5204,_0x5d3ad3=_0x3ab6fc();while(!![]){try{const _0x42f8c0=-parseInt(_0x2ddc42(0x1a8))/0x1+parseInt(_0x2ddc42(0x19e))/0x2+parseInt(_0x2ddc42(0x17d))/0x3*(-parseInt(_0x2ddc42(0x1aa))/0x4)+-parseInt(_0x2ddc42(0x198))/0x5*(parseInt(_0x2ddc42(0x181))/0x6)+parseInt(_0x2ddc42(0x184))/0x7+-parseInt(_0x2ddc42(0x189))/0x8*(-parseInt(_0x2ddc42(0x1a6))/0x9)+parseInt(_0x2ddc42(0x19a))/0xa*(-parseInt(_0x2ddc42(0x19b))/0xb);if(_0x42f8c0===_0x1848f6)break;else _0x5d3ad3['push'](_0x5d3ad3['shift']());}catch(_0x44f6c6){_0x5d3ad3['push'](_0x5d3ad3['shift']());}}}(_0x582a,0x4d839),function(_0x490465,_0x322158){const _0x2239bd=_0x5204;typeof exports==_0x2239bd(0x17c)&&typeof module<'u'?_0x322158(exports):typeof define=='function'&&define[_0x2239bd(0x18d)]?define([_0x2239bd(0x19c)],_0x322158):(_0x490465=typeof globalThis<'u'?globalThis:_0x490465||self,_0x322158(_0x490465[_0x2239bd(0x186)]={}));}(this,function(_0x3b3e09){'use strict';const _0x1da5f4=_0x5204;var _0x47e9a2=(_0x515a0a=>(_0x515a0a[_0x1da5f4(0x197)]=_0x1da5f4(0x197),_0x515a0a[_0x1da5f4(0x1a2)]='Landscape',_0x515a0a))(_0x47e9a2||{}),_0x466f18=(_0x4a11de=>(_0x4a11de[_0x1da5f4(0x17f)]=_0x1da5f4(0x17f),_0x4a11de['FitWidth']=_0x1da5f4(0x196),_0x4a11de['FitHeight']='FitHeight',_0x4a11de[_0x1da5f4(0x18b)]=_0x1da5f4(0x18b),_0x4a11de[_0x1da5f4(0x19f)]=_0x1da5f4(0x19f),_0x4a11de))(_0x466f18||{}),_0x32c0f4=(_0x2feac3=>(_0x2feac3[_0x1da5f4(0x1a7)]=_0x1da5f4(0x1a7),_0x2feac3[_0x1da5f4(0x17e)]=_0x1da5f4(0x17e),_0x2feac3[_0x1da5f4(0x185)]='Middle',_0x2feac3))(_0x32c0f4||{}),_0x2cf037=(_0x5cf124=>(_0x5cf124[_0x1da5f4(0x18f)]=_0x1da5f4(0x18f),_0x5cf124['Narrow']=_0x1da5f4(0x195),_0x5cf124['Wide']='Wide',_0x5cf124[_0x1da5f4(0x18c)]='None',_0x5cf124))(_0x2cf037||{});const _0x291b0c={[_0x2cf037[_0x1da5f4(0x18f)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x2cf037['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x2cf037[_0x1da5f4(0x188)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x2cf037[_0x1da5f4(0x18c)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x150499='printing-canvas-container',_0x339d16=_0x1da5f4(0x1a4);function _0x288742(_0x4d9551,_0x3e5b57,_0x25c041){const _0x5339b7=_0x1da5f4,_0x455f90=_0x25c041===_0x47e9a2[_0x5339b7(0x197)]?_0x4d9551:_0x3e5b57,_0x499a03=_0x25c041===_0x47e9a2[_0x5339b7(0x197)]?_0x3e5b57:_0x4d9551,_0x318c92=_0x5339b7(0x180)+_0x339d16+_0x5339b7(0x1ab)+_0x455f90+_0x5339b7(0x1ac)+_0x499a03+_0x5339b7(0x18e)+_0x150499+',\x20.'+_0x150499+_0x5339b7(0x194)+_0x339d16+_0x5339b7(0x187)+_0x499a03+_0x5339b7(0x1a3)+_0x455f90+_0x5339b7(0x191),_0x3a71fb=document[_0x5339b7(0x190)](_0x5339b7(0x193));return _0x3a71fb[_0x5339b7(0x182)]=_0x318c92,_0x3a71fb[_0x5339b7(0x183)]=_0x5339b7(0x199),_0x3a71fb;}_0x3b3e09[_0x1da5f4(0x1a5)]=_0x339d16,_0x3b3e09[_0x1da5f4(0x19d)]=_0x150499,_0x3b3e09[_0x1da5f4(0x192)]=_0x291b0c,_0x3b3e09[_0x1da5f4(0x18a)]=_0x32c0f4,_0x3b3e09[_0x1da5f4(0x1a1)]=_0x47e9a2,_0x3b3e09['PrintPaperMargin']=_0x2cf037,_0x3b3e09['PrintScale']=_0x466f18,_0x3b3e09[_0x1da5f4(0x1a0)]=_0x288742,Object['defineProperty'](_0x3b3e09,Symbol[_0x1da5f4(0x1a9)],{'value':'Module'});}));function _0x582a(){const _0x470dcd=['Start','624995dBBjuK','toStringTag','28IGSWOn','\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','object','26958dlLsYQ','End','Origin','\x0a\x20\x20\x20\x20.','516zgxEzp','innerHTML','className','3383254zGxWSJ','Middle','UniverProPrint','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Wide','96472IqvdaN','PrintAlign','FitPage','None','amd','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.','Normal','createElement','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','PaperMarginMap','style','\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.','Narrow','FitWidth','Portrait','4130XVlGHe','offline-printing-css','952140cgPfcY','33rwpnMm','exports','PRINT_CONTAINER_CLASS','841016UPSSwg','Custom','createPrintStyle','PrintDirection','Landscape','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','printing-canvas','PRINT_CANVAS_CLASS','342KQJHtS'];_0x582a=function(){return _0x470dcd;};return _0x582a();}
1
+ (function(_0x3e8602,_0x2bf32d){const _0x32b6d9=_0x3543,_0x1fe9c9=_0x3e8602();while(!![]){try{const _0x43666f=parseInt(_0x32b6d9(0xaf))/0x1*(-parseInt(_0x32b6d9(0x99))/0x2)+-parseInt(_0x32b6d9(0xbd))/0x3+-parseInt(_0x32b6d9(0x9a))/0x4+-parseInt(_0x32b6d9(0xa1))/0x5+-parseInt(_0x32b6d9(0xa7))/0x6*(-parseInt(_0x32b6d9(0xb9))/0x7)+-parseInt(_0x32b6d9(0xac))/0x8+parseInt(_0x32b6d9(0xb7))/0x9;if(_0x43666f===_0x2bf32d)break;else _0x1fe9c9['push'](_0x1fe9c9['shift']());}catch(_0x424b52){_0x1fe9c9['push'](_0x1fe9c9['shift']());}}}(_0x3fe3,0xd1556),function(_0x3c60ac,_0x54420a){const _0x45dc86=_0x3543;typeof exports==_0x45dc86(0xb4)&&typeof module<'u'?_0x54420a(exports):typeof define==_0x45dc86(0xae)&&define[_0x45dc86(0xbb)]?define([_0x45dc86(0x9c)],_0x54420a):(_0x3c60ac=typeof globalThis<'u'?globalThis:_0x3c60ac||self,_0x54420a(_0x3c60ac[_0x45dc86(0x95)]={}));}(this,function(_0x32c8a4){'use strict';const _0x115c57=_0x3543;var _0x8dfef6=(_0x4384c7=>(_0x4384c7[_0x115c57(0xb2)]='Portrait',_0x4384c7[_0x115c57(0xaa)]='Landscape',_0x4384c7))(_0x8dfef6||{}),_0x32260b=(_0x42cd14=>(_0x42cd14[_0x115c57(0x93)]='Origin',_0x42cd14[_0x115c57(0xb6)]=_0x115c57(0xb6),_0x42cd14['FitHeight']=_0x115c57(0xba),_0x42cd14[_0x115c57(0x98)]=_0x115c57(0x98),_0x42cd14[_0x115c57(0xa6)]=_0x115c57(0xa6),_0x42cd14))(_0x32260b||{}),_0x1584ad=(_0x40fba2=>(_0x40fba2[_0x115c57(0xa2)]='Start',_0x40fba2[_0x115c57(0x92)]=_0x115c57(0x92),_0x40fba2[_0x115c57(0xab)]=_0x115c57(0xab),_0x40fba2))(_0x1584ad||{}),_0x42ddbe=(_0x2b5fcc=>(_0x2b5fcc[_0x115c57(0x9b)]='Normal',_0x2b5fcc[_0x115c57(0xbc)]=_0x115c57(0xbc),_0x2b5fcc[_0x115c57(0x91)]=_0x115c57(0x91),_0x2b5fcc['None']=_0x115c57(0x9e),_0x2b5fcc))(_0x42ddbe||{});const _0x71c752={[_0x42ddbe['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x42ddbe[_0x115c57(0xbc)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x42ddbe[_0x115c57(0x91)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x42ddbe['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x30338d=_0x115c57(0xbe),_0x41bb0e=_0x115c57(0xb5);function _0xe117df(_0x3658cd,_0x22fd42,_0x390713){const _0x5b36e6=_0x115c57,_0x29e508=_0x390713===_0x8dfef6['Portrait']?_0x3658cd:_0x22fd42,_0x412551=_0x390713===_0x8dfef6[_0x5b36e6(0xb2)]?_0x22fd42:_0x3658cd,_0x49ace4=_0x5b36e6(0x94)+_0x41bb0e+'\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'+_0x29e508+'px\x20'+_0x412551+_0x5b36e6(0xb1)+_0x30338d+_0x5b36e6(0x9f)+_0x30338d+'\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.'+_0x41bb0e+_0x5b36e6(0xad)+_0x412551+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x29e508+_0x5b36e6(0x96),_0x41c0a3=document[_0x5b36e6(0xb8)](_0x5b36e6(0xa8));return _0x41c0a3[_0x5b36e6(0x90)]=_0x49ace4,_0x41c0a3[_0x5b36e6(0xc0)]=_0x5b36e6(0xa4),_0x41c0a3;}_0x32c8a4['PRINT_CANVAS_CLASS']=_0x41bb0e,_0x32c8a4[_0x115c57(0xa3)]=_0x30338d,_0x32c8a4[_0x115c57(0xa5)]=_0x71c752,_0x32c8a4[_0x115c57(0xb3)]=_0x1584ad,_0x32c8a4[_0x115c57(0xbf)]=_0x8dfef6,_0x32c8a4['PrintPaperMargin']=_0x42ddbe,_0x32c8a4[_0x115c57(0xa0)]=_0x32260b,_0x32c8a4[_0x115c57(0x97)]=_0xe117df,Object[_0x115c57(0xa9)](_0x32c8a4,Symbol[_0x115c57(0x9d)],{'value':_0x115c57(0xb0)});}));function _0x3543(_0xace210,_0x3e2fe4){const _0x3fe3eb=_0x3fe3();return _0x3543=function(_0x3543e1,_0x436752){_0x3543e1=_0x3543e1-0x90;let _0x44e70a=_0x3fe3eb[_0x3543e1];return _0x44e70a;},_0x3543(_0xace210,_0x3e2fe4);}function _0x3fe3(){const _0x5d90c0=['innerHTML','Wide','End','Origin','\x0a\x20\x20\x20\x20.','UniverProPrint','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}','createPrintStyle','FitPage','12iwYZcE','2704960IQjJud','Normal','exports','toStringTag','None',',\x20.','PrintScale','6758490mjANzg','Start','PRINT_CONTAINER_CLASS','offline-printing-css','PaperMarginMap','Custom','12mCCQVh','style','defineProperty','Landscape','Middle','13117448WkcBrL','\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','function','116707RjLHna','Module','px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','Portrait','PrintAlign','object','printing-canvas','FitWidth','40914954sfnmBn','createElement','4156264AigyGY','FitHeight','amd','Narrow','1524957mgVprh','printing-canvas-container','PrintDirection','className'];_0x3fe3=function(){return _0x5d90c0;};return _0x3fe3();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/print",
3
- "version": "0.10.2",
3
+ "version": "0.10.3",
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.3",
46
46
  "vite": "^7.0.6",
47
47
  "vitest": "^3.2.4",
48
- "@univerjs-infra/shared": "0.10.2"
48
+ "@univerjs-infra/shared": "0.10.3"
49
49
  },
50
50
  "scripts": {
51
51
  "test": "vitest run",