@univerjs-pro/print 0.10.2 → 0.10.3-experimental.20250812-b4b6f1a

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 _0x25bc2a=_0x5c71;(function(_0x4a9407,_0x3d3518){const _0x15bdbb=_0x5c71,_0x273d82=_0x4a9407();while(!![]){try{const _0x1d7cb0=parseInt(_0x15bdbb(0x1fc))/0x1*(parseInt(_0x15bdbb(0x1f6))/0x2)+parseInt(_0x15bdbb(0x1f8))/0x3+-parseInt(_0x15bdbb(0x1f7))/0x4+-parseInt(_0x15bdbb(0x1f5))/0x5*(-parseInt(_0x15bdbb(0x1db))/0x6)+parseInt(_0x15bdbb(0x1de))/0x7+parseInt(_0x15bdbb(0x205))/0x8+-parseInt(_0x15bdbb(0x1e3))/0x9;if(_0x1d7cb0===_0x3d3518)break;else _0x273d82['push'](_0x273d82['shift']());}catch(_0x461b73){_0x273d82['push'](_0x273d82['shift']());}}}(_0x21c1,0x79e6b));function _0x5c71(_0x15549a,_0x4caece){const _0x21c12f=_0x21c1();return _0x5c71=function(_0x5c7181,_0x47bea0){_0x5c7181=_0x5c7181-0x1d9;let _0x4129db=_0x21c12f[_0x5c7181];return _0x4129db;},_0x5c71(_0x15549a,_0x4caece);}Object[_0x25bc2a(0x202)](exports,Symbol[_0x25bc2a(0x1fe)],{'value':_0x25bc2a(0x1f9)});var e=(_0x4cafc7=>(_0x4cafc7[_0x25bc2a(0x200)]=_0x25bc2a(0x200),_0x4cafc7[_0x25bc2a(0x1f1)]=_0x25bc2a(0x1f1),_0x4cafc7))(e||{}),l=(_0x717705=>(_0x717705[_0x25bc2a(0x1df)]=_0x25bc2a(0x1df),_0x717705[_0x25bc2a(0x1e5)]=_0x25bc2a(0x1e5),_0x717705[_0x25bc2a(0x1ff)]='FitHeight',_0x717705[_0x25bc2a(0x1dc)]=_0x25bc2a(0x1dc),_0x717705[_0x25bc2a(0x201)]='Custom',_0x717705))(l||{}),c=(_0x553cc4=>(_0x553cc4[_0x25bc2a(0x1ee)]='Start',_0x553cc4['End']=_0x25bc2a(0x1fd),_0x553cc4['Middle']=_0x25bc2a(0x1dd),_0x553cc4))(c||{}),i=(_0x185549=>(_0x185549[_0x25bc2a(0x1e4)]='Normal',_0x185549['Narrow']=_0x25bc2a(0x1e2),_0x185549[_0x25bc2a(0x1ef)]='Wide',_0x185549[_0x25bc2a(0x1e0)]=_0x25bc2a(0x1e0),_0x185549))(i||{});const h={[i[_0x25bc2a(0x1e4)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i[_0x25bc2a(0x1e2)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i[_0x25bc2a(0x1e0)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x25bc2a(0x1e9),n=_0x25bc2a(0x1f3);function _0x21c1(){const _0x507d6f=['PrintDirection','px\x20','printing-canvas-container',',\x20.','PRINT_CONTAINER_CLASS','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','PrintScale','Start','Wide','\x0a\x20\x20\x20\x20.','Landscape','PrintAlign','printing-canvas','className','40HedCtp','12LTxqpx','183132nXOUJD','537282vFJLvy','Module','style','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}','76293ZtsuzP','End','toStringTag','FitHeight','Portrait','Custom','defineProperty','innerHTML','PrintPaperMargin','7000792VsSfvw','PaperMarginMap','offline-printing-css','553866CPlAOf','FitPage','Middle','2192722MlOBGP','Origin','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','Narrow','18167355zjSQow','Normal','FitWidth','createElement'];_0x21c1=function(){return _0x507d6f;};return _0x21c1();}function m(_0x2d6d1f,_0xea6b24,_0x460681){const _0x4f450e=_0x25bc2a,_0x37d909=_0x460681===e['Portrait']?_0x2d6d1f:_0xea6b24,_0x1982aa=_0x460681===e[_0x4f450e(0x200)]?_0xea6b24:_0x2d6d1f,_0x4a0dba=_0x4f450e(0x1f0)+n+_0x4f450e(0x1e1)+_0x37d909+_0x4f450e(0x1e8)+_0x1982aa+'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+_0x4f450e(0x1ea)+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+'\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'+_0x1982aa+_0x4f450e(0x1ec)+_0x37d909+_0x4f450e(0x1fb),_0x3f4f9d=document[_0x4f450e(0x1e6)](_0x4f450e(0x1fa));return _0x3f4f9d[_0x4f450e(0x203)]=_0x4a0dba,_0x3f4f9d[_0x4f450e(0x1f4)]=_0x4f450e(0x1da),_0x3f4f9d;}exports['PRINT_CANVAS_CLASS']=n,exports[_0x25bc2a(0x1eb)]=r,exports[_0x25bc2a(0x1d9)]=h,exports[_0x25bc2a(0x1f2)]=c,exports[_0x25bc2a(0x1e7)]=e,exports[_0x25bc2a(0x204)]=i,exports[_0x25bc2a(0x1ed)]=l,exports['createPrintStyle']=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 _0x29f701=_0x1a93;(function(_0x4b6122,_0x62f87f){const _0x59d16e=_0x1a93,_0x24e1ad=_0x4b6122();while(!![]){try{const _0x3cfdce=-parseInt(_0x59d16e(0x109))/0x1*(-parseInt(_0x59d16e(0x11a))/0x2)+-parseInt(_0x59d16e(0x116))/0x3+-parseInt(_0x59d16e(0x106))/0x4+-parseInt(_0x59d16e(0x121))/0x5*(parseInt(_0x59d16e(0x10f))/0x6)+-parseInt(_0x59d16e(0xff))/0x7+parseInt(_0x59d16e(0x10a))/0x8+parseInt(_0x59d16e(0x103))/0x9;if(_0x3cfdce===_0x62f87f)break;else _0x24e1ad['push'](_0x24e1ad['shift']());}catch(_0xc488fc){_0x24e1ad['push'](_0x24e1ad['shift']());}}}(_0x49e6,0xd5a7c));function _0x1a93(_0x49220d,_0x38ed3b){const _0x49e6ad=_0x49e6();return _0x1a93=function(_0x1a93bb,_0x4a7887){_0x1a93bb=_0x1a93bb-0xfe;let _0x2f0907=_0x49e6ad[_0x1a93bb];return _0x2f0907;},_0x1a93(_0x49220d,_0x38ed3b);}var e=(_0x4bd2d4=>(_0x4bd2d4[_0x29f701(0x11f)]=_0x29f701(0x11f),_0x4bd2d4['Landscape']=_0x29f701(0x10d),_0x4bd2d4))(e||{}),l=(_0x772c85=>(_0x772c85[_0x29f701(0x119)]=_0x29f701(0x119),_0x772c85[_0x29f701(0x113)]=_0x29f701(0x113),_0x772c85[_0x29f701(0x115)]='FitHeight',_0x772c85[_0x29f701(0x120)]=_0x29f701(0x120),_0x772c85[_0x29f701(0x117)]=_0x29f701(0x117),_0x772c85))(l||{}),m=(_0x4e4ae3=>(_0x4e4ae3['Start']=_0x29f701(0x10e),_0x4e4ae3[_0x29f701(0x101)]='End',_0x4e4ae3[_0x29f701(0x110)]=_0x29f701(0x110),_0x4e4ae3))(m||{}),o=(_0x4e2e14=>(_0x4e2e14[_0x29f701(0x104)]=_0x29f701(0x104),_0x4e2e14[_0x29f701(0x11e)]=_0x29f701(0x11e),_0x4e2e14[_0x29f701(0x100)]=_0x29f701(0x100),_0x4e2e14[_0x29f701(0x111)]='None',_0x4e2e14))(o||{});const c={[o[_0x29f701(0x104)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x29f701(0x11e)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x29f701(0x100)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x29f701(0x111)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x29f701(0x10c),d=_0x29f701(0x112);function g(_0x3c6d74,_0x589b5d,_0xfabc8a){const _0xebc414=_0x29f701,_0x429aac=_0xfabc8a===e[_0xebc414(0x11f)]?_0x3c6d74:_0x589b5d,_0x5c4fb1=_0xfabc8a===e[_0xebc414(0x11f)]?_0x589b5d:_0x3c6d74,_0x2964c2=_0xebc414(0x105)+d+_0xebc414(0x11d)+_0x429aac+_0xebc414(0x118)+_0x5c4fb1+_0xebc414(0x11c)+p+_0xebc414(0x10b)+p+_0xebc414(0x102)+d+_0xebc414(0x11b)+_0x5c4fb1+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x429aac+_0xebc414(0x114),_0x55a326=document['createElement'](_0xebc414(0x108));return _0x55a326[_0xebc414(0xfe)]=_0x2964c2,_0x55a326[_0xebc414(0x122)]=_0xebc414(0x107),_0x55a326;}function _0x49e6(){const _0x32974e=['offline-printing-css','style','22247rWDNyD','11380408PdJAMv',',\x20.','printing-canvas-container','Landscape','Start','1176018BUJdwh','Middle','None','printing-canvas','FitWidth','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}','FitHeight','696816CzNarw','Custom','px\x20','Origin','26OnCPQv','\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','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.','\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','Portrait','FitPage','5dUsouS','className','innerHTML','10209808RvUexY','Wide','End','\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.','14921406HKPDzx','Normal','\x0a\x20\x20\x20\x20.','2430980rtUOKf'];_0x49e6=function(){return _0x32974e;};return _0x49e6();}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 _0x29f701=_0x1a93;(function(_0x4b6122,_0x62f87f){const _0x59d16e=_0x1a93,_0x24e1ad=_0x4b6122();while(!![]){try{const _0x3cfdce=-parseInt(_0x59d16e(0x109))/0x1*(-parseInt(_0x59d16e(0x11a))/0x2)+-parseInt(_0x59d16e(0x116))/0x3+-parseInt(_0x59d16e(0x106))/0x4+-parseInt(_0x59d16e(0x121))/0x5*(parseInt(_0x59d16e(0x10f))/0x6)+-parseInt(_0x59d16e(0xff))/0x7+parseInt(_0x59d16e(0x10a))/0x8+parseInt(_0x59d16e(0x103))/0x9;if(_0x3cfdce===_0x62f87f)break;else _0x24e1ad['push'](_0x24e1ad['shift']());}catch(_0xc488fc){_0x24e1ad['push'](_0x24e1ad['shift']());}}}(_0x49e6,0xd5a7c));function _0x1a93(_0x49220d,_0x38ed3b){const _0x49e6ad=_0x49e6();return _0x1a93=function(_0x1a93bb,_0x4a7887){_0x1a93bb=_0x1a93bb-0xfe;let _0x2f0907=_0x49e6ad[_0x1a93bb];return _0x2f0907;},_0x1a93(_0x49220d,_0x38ed3b);}var e=(_0x4bd2d4=>(_0x4bd2d4[_0x29f701(0x11f)]=_0x29f701(0x11f),_0x4bd2d4['Landscape']=_0x29f701(0x10d),_0x4bd2d4))(e||{}),l=(_0x772c85=>(_0x772c85[_0x29f701(0x119)]=_0x29f701(0x119),_0x772c85[_0x29f701(0x113)]=_0x29f701(0x113),_0x772c85[_0x29f701(0x115)]='FitHeight',_0x772c85[_0x29f701(0x120)]=_0x29f701(0x120),_0x772c85[_0x29f701(0x117)]=_0x29f701(0x117),_0x772c85))(l||{}),m=(_0x4e4ae3=>(_0x4e4ae3['Start']=_0x29f701(0x10e),_0x4e4ae3[_0x29f701(0x101)]='End',_0x4e4ae3[_0x29f701(0x110)]=_0x29f701(0x110),_0x4e4ae3))(m||{}),o=(_0x4e2e14=>(_0x4e2e14[_0x29f701(0x104)]=_0x29f701(0x104),_0x4e2e14[_0x29f701(0x11e)]=_0x29f701(0x11e),_0x4e2e14[_0x29f701(0x100)]=_0x29f701(0x100),_0x4e2e14[_0x29f701(0x111)]='None',_0x4e2e14))(o||{});const c={[o[_0x29f701(0x104)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x29f701(0x11e)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x29f701(0x100)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x29f701(0x111)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x29f701(0x10c),d=_0x29f701(0x112);function g(_0x3c6d74,_0x589b5d,_0xfabc8a){const _0xebc414=_0x29f701,_0x429aac=_0xfabc8a===e[_0xebc414(0x11f)]?_0x3c6d74:_0x589b5d,_0x5c4fb1=_0xfabc8a===e[_0xebc414(0x11f)]?_0x589b5d:_0x3c6d74,_0x2964c2=_0xebc414(0x105)+d+_0xebc414(0x11d)+_0x429aac+_0xebc414(0x118)+_0x5c4fb1+_0xebc414(0x11c)+p+_0xebc414(0x10b)+p+_0xebc414(0x102)+d+_0xebc414(0x11b)+_0x5c4fb1+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x429aac+_0xebc414(0x114),_0x55a326=document['createElement'](_0xebc414(0x108));return _0x55a326[_0xebc414(0xfe)]=_0x2964c2,_0x55a326[_0xebc414(0x122)]=_0xebc414(0x107),_0x55a326;}function _0x49e6(){const _0x32974e=['offline-printing-css','style','22247rWDNyD','11380408PdJAMv',',\x20.','printing-canvas-container','Landscape','Start','1176018BUJdwh','Middle','None','printing-canvas','FitWidth','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}','FitHeight','696816CzNarw','Custom','px\x20','Origin','26OnCPQv','\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','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.','\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','Portrait','FitPage','5dUsouS','className','innerHTML','10209808RvUexY','Wide','End','\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.','14921406HKPDzx','Normal','\x0a\x20\x20\x20\x20.','2430980rtUOKf'];_0x49e6=function(){return _0x32974e;};return _0x49e6();}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 _0x4ae3(_0x1e725b,_0x4e8fa1){const _0x54c54d=_0x54c5();return _0x4ae3=function(_0x4ae3ed,_0x12ec41){_0x4ae3ed=_0x4ae3ed-0x127;let _0x2732fd=_0x54c54d[_0x4ae3ed];return _0x2732fd;},_0x4ae3(_0x1e725b,_0x4e8fa1);}function _0x54c5(){const _0x4cad8b=['Start','\x0a\x20\x20\x20\x20.','Normal','printing-canvas','FitHeight','None','PRINT_CANVAS_CLASS','createElement','Origin','Middle','91RqHXkz','3709754imUUja','1458585mKtDSj','UniverProPrint','End','\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','createPrintStyle','Narrow',',\x20.','px\x20','5130292BUNUAO','6mCdPrC','19120DHNIwu','9637105FnYxHg','Wide','PrintScale','\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','innerHTML','PrintPaperMargin','className','PrintDirection','toStringTag','Portrait','printing-canvas-container','7691000LEzvZw','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}','1qCvGOt','3707400VauLTp','function','FitWidth','FitPage','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Landscape'];_0x54c5=function(){return _0x4cad8b;};return _0x54c5();}(function(_0x3b5815,_0x5dc0a0){const _0x4fd7f6=_0x4ae3,_0x5821a0=_0x3b5815();while(!![]){try{const _0x5f08f6=parseInt(_0x4fd7f6(0x14f))/0x1*(-parseInt(_0x4fd7f6(0x136))/0x2)+parseInt(_0x4fd7f6(0x150))/0x3+-parseInt(_0x4fd7f6(0x13f))/0x4+-parseInt(_0x4fd7f6(0x142))/0x5*(-parseInt(_0x4fd7f6(0x140))/0x6)+-parseInt(_0x4fd7f6(0x135))/0x7*(-parseInt(_0x4fd7f6(0x141))/0x8)+parseInt(_0x4fd7f6(0x137))/0x9+parseInt(_0x4fd7f6(0x14d))/0xa;if(_0x5f08f6===_0x5dc0a0)break;else _0x5821a0['push'](_0x5821a0['shift']());}catch(_0x155e52){_0x5821a0['push'](_0x5821a0['shift']());}}}(_0x54c5,0xf1366),function(_0x5b7442,_0xd68444){const _0x24b4f0=_0x4ae3;typeof exports=='object'&&typeof module<'u'?_0xd68444(exports):typeof define==_0x24b4f0(0x151)&&define['amd']?define(['exports'],_0xd68444):(_0x5b7442=typeof globalThis<'u'?globalThis:_0x5b7442||self,_0xd68444(_0x5b7442[_0x24b4f0(0x138)]={}));}(this,function(_0x4d6a78){'use strict';const _0x1aadae=_0x4ae3;var _0xcbb4a0=(_0x4e3430=>(_0x4e3430[_0x1aadae(0x14b)]=_0x1aadae(0x14b),_0x4e3430[_0x1aadae(0x12a)]=_0x1aadae(0x12a),_0x4e3430))(_0xcbb4a0||{}),_0xa890ce=(_0x5b325e=>(_0x5b325e[_0x1aadae(0x133)]=_0x1aadae(0x133),_0x5b325e[_0x1aadae(0x127)]=_0x1aadae(0x127),_0x5b325e[_0x1aadae(0x12f)]=_0x1aadae(0x12f),_0x5b325e[_0x1aadae(0x128)]=_0x1aadae(0x128),_0x5b325e['Custom']='Custom',_0x5b325e))(_0xa890ce||{}),_0x3ef32f=(_0x359f79=>(_0x359f79['Start']=_0x1aadae(0x12b),_0x359f79['End']=_0x1aadae(0x139),_0x359f79[_0x1aadae(0x134)]=_0x1aadae(0x134),_0x359f79))(_0x3ef32f||{}),_0x5c3dde=(_0x36495f=>(_0x36495f[_0x1aadae(0x12d)]=_0x1aadae(0x12d),_0x36495f[_0x1aadae(0x13c)]=_0x1aadae(0x13c),_0x36495f[_0x1aadae(0x143)]=_0x1aadae(0x143),_0x36495f[_0x1aadae(0x130)]='None',_0x36495f))(_0x5c3dde||{});const _0x333e2c={[_0x5c3dde[_0x1aadae(0x12d)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x5c3dde[_0x1aadae(0x13c)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x5c3dde[_0x1aadae(0x143)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x5c3dde[_0x1aadae(0x130)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x4f1d14=_0x1aadae(0x14c),_0xfcd16=_0x1aadae(0x12e);function _0x476fd7(_0x55e841,_0x23266c,_0x266098){const _0x3ffae4=_0x1aadae,_0x4cd3d4=_0x266098===_0xcbb4a0['Portrait']?_0x55e841:_0x23266c,_0x52a143=_0x266098===_0xcbb4a0[_0x3ffae4(0x14b)]?_0x23266c:_0x55e841,_0x24dcdd=_0x3ffae4(0x12c)+_0xfcd16+_0x3ffae4(0x145)+_0x4cd3d4+_0x3ffae4(0x13e)+_0x52a143+'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.'+_0x4f1d14+_0x3ffae4(0x13d)+_0x4f1d14+'\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.'+_0xfcd16+_0x3ffae4(0x13a)+_0x52a143+_0x3ffae4(0x129)+_0x4cd3d4+_0x3ffae4(0x14e),_0x36ab51=document[_0x3ffae4(0x132)]('style');return _0x36ab51[_0x3ffae4(0x146)]=_0x24dcdd,_0x36ab51[_0x3ffae4(0x148)]='offline-printing-css',_0x36ab51;}_0x4d6a78[_0x1aadae(0x131)]=_0xfcd16,_0x4d6a78['PRINT_CONTAINER_CLASS']=_0x4f1d14,_0x4d6a78['PaperMarginMap']=_0x333e2c,_0x4d6a78['PrintAlign']=_0x3ef32f,_0x4d6a78[_0x1aadae(0x149)]=_0xcbb4a0,_0x4d6a78[_0x1aadae(0x147)]=_0x5c3dde,_0x4d6a78[_0x1aadae(0x144)]=_0xa890ce,_0x4d6a78[_0x1aadae(0x13b)]=_0x476fd7,Object['defineProperty'](_0x4d6a78,Symbol[_0x1aadae(0x14a)],{'value':'Module'});}));
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-experimental.20250812-b4b6f1a",
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",