@univerjs-pro/print 0.10.2 → 0.10.3-nightly.202508121228

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';function _0xa856(_0x22f526,_0x52afc0){const _0x50b1c7=_0x50b1();return _0xa856=function(_0xa85614,_0x1d5606){_0xa85614=_0xa85614-0xb4;let _0xb1d695=_0x50b1c7[_0xa85614];return _0xb1d695;},_0xa856(_0x22f526,_0x52afc0);}const _0x3d76ef=_0xa856;(function(_0x715957,_0x14947a){const _0x1e857b=_0xa856,_0x4c49dd=_0x715957();while(!![]){try{const _0x7bc32c=-parseInt(_0x1e857b(0xb5))/0x1*(parseInt(_0x1e857b(0xd9))/0x2)+-parseInt(_0x1e857b(0xbd))/0x3+-parseInt(_0x1e857b(0xdb))/0x4*(parseInt(_0x1e857b(0xb4))/0x5)+-parseInt(_0x1e857b(0xd4))/0x6+-parseInt(_0x1e857b(0xde))/0x7+parseInt(_0x1e857b(0xcf))/0x8+parseInt(_0x1e857b(0xb9))/0x9;if(_0x7bc32c===_0x14947a)break;else _0x4c49dd['push'](_0x4c49dd['shift']());}catch(_0x440331){_0x4c49dd['push'](_0x4c49dd['shift']());}}}(_0x50b1,0x3142f));Object[_0x3d76ef(0xc4)](exports,Symbol[_0x3d76ef(0xce)],{'value':'Module'});var e=(_0x4b36ae=>(_0x4b36ae[_0x3d76ef(0xcc)]=_0x3d76ef(0xcc),_0x4b36ae['Landscape']=_0x3d76ef(0xc7),_0x4b36ae))(e||{}),l=(_0x58cb17=>(_0x58cb17[_0x3d76ef(0xba)]=_0x3d76ef(0xba),_0x58cb17[_0x3d76ef(0xbc)]=_0x3d76ef(0xbc),_0x58cb17[_0x3d76ef(0xc2)]=_0x3d76ef(0xc2),_0x58cb17[_0x3d76ef(0xc5)]='FitPage',_0x58cb17[_0x3d76ef(0xd1)]='Custom',_0x58cb17))(l||{}),c=(_0x59ffa2=>(_0x59ffa2[_0x3d76ef(0xdd)]=_0x3d76ef(0xdd),_0x59ffa2['End']=_0x3d76ef(0xc1),_0x59ffa2['Middle']=_0x3d76ef(0xca),_0x59ffa2))(c||{}),i=(_0x3955be=>(_0x3955be['Normal']='Normal',_0x3955be[_0x3d76ef(0xbe)]=_0x3d76ef(0xbe),_0x3955be[_0x3d76ef(0xd5)]=_0x3d76ef(0xd5),_0x3955be[_0x3d76ef(0xb8)]=_0x3d76ef(0xb8),_0x3955be))(i||{});const h={[i[_0x3d76ef(0xd6)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i[_0x3d76ef(0xd5)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i[_0x3d76ef(0xb8)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x3d76ef(0xcd),n=_0x3d76ef(0xd8);function m(_0x37ac22,_0x454f2c,_0x478ea6){const _0x7c0e9b=_0x3d76ef,_0x1a3980=_0x478ea6===e['Portrait']?_0x37ac22:_0x454f2c,_0x1c44b2=_0x478ea6===e['Portrait']?_0x454f2c:_0x37ac22,_0x30fde0=_0x7c0e9b(0xb6)+n+_0x7c0e9b(0xc3)+_0x1a3980+'px\x20'+_0x1c44b2+_0x7c0e9b(0xcb)+r+_0x7c0e9b(0xc8)+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'+_0x1c44b2+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x1a3980+'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}',_0x4f93f0=document[_0x7c0e9b(0xc6)](_0x7c0e9b(0xd3));return _0x4f93f0[_0x7c0e9b(0xc9)]=_0x30fde0,_0x4f93f0[_0x7c0e9b(0xbb)]=_0x7c0e9b(0xc0),_0x4f93f0;}function _0x50b1(){const _0x30fd47=['Wide','Normal','PRINT_CONTAINER_CLASS','printing-canvas','2ztrkVh','PrintScale','10180ZErdah','PrintDirection','Start','2193331gHqnxH','55WKVHCz','50833eYTYxo','\x0a\x20\x20\x20\x20.','createPrintStyle','None','6487020NayLqM','Origin','className','FitWidth','250236dYqgDf','Narrow','PRINT_CANVAS_CLASS','offline-printing-css','End','FitHeight','\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','defineProperty','FitPage','createElement','Landscape',',\x20.','innerHTML','Middle','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','printing-canvas-container','toStringTag','2701288OScuwQ','PrintAlign','Custom','PrintPaperMargin','style','2286558hLlTqA'];_0x50b1=function(){return _0x30fd47;};return _0x50b1();}exports[_0x3d76ef(0xbf)]=n,exports[_0x3d76ef(0xd7)]=r,exports['PaperMarginMap']=h,exports[_0x3d76ef(0xd0)]=c,exports[_0x3d76ef(0xdc)]=e,exports[_0x3d76ef(0xd2)]=i,exports[_0x3d76ef(0xda)]=l,exports[_0x3d76ef(0xb7)]=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 _0x1b429f=_0x4b9f;(function(_0x583985,_0x30fa8a){const _0x1aa40e=_0x4b9f,_0x27af2e=_0x583985();while(!![]){try{const _0x4fd66a=-parseInt(_0x1aa40e(0x7c))/0x1+-parseInt(_0x1aa40e(0x88))/0x2*(parseInt(_0x1aa40e(0x8f))/0x3)+parseInt(_0x1aa40e(0x75))/0x4+parseInt(_0x1aa40e(0x80))/0x5*(-parseInt(_0x1aa40e(0x73))/0x6)+parseInt(_0x1aa40e(0x8c))/0x7*(-parseInt(_0x1aa40e(0x78))/0x8)+-parseInt(_0x1aa40e(0x89))/0x9+-parseInt(_0x1aa40e(0x83))/0xa*(-parseInt(_0x1aa40e(0x8d))/0xb);if(_0x4fd66a===_0x30fa8a)break;else _0x27af2e['push'](_0x27af2e['shift']());}catch(_0x41ced3){_0x27af2e['push'](_0x27af2e['shift']());}}}(_0x1844,0x729ad));var e=(_0x1d8bc5=>(_0x1d8bc5[_0x1b429f(0x8a)]=_0x1b429f(0x8a),_0x1d8bc5['Landscape']=_0x1b429f(0x6f),_0x1d8bc5))(e||{}),l=(_0x6a084e=>(_0x6a084e['Origin']=_0x1b429f(0x8e),_0x6a084e[_0x1b429f(0x82)]=_0x1b429f(0x82),_0x6a084e[_0x1b429f(0x71)]=_0x1b429f(0x71),_0x6a084e['FitPage']=_0x1b429f(0x81),_0x6a084e[_0x1b429f(0x7a)]=_0x1b429f(0x7a),_0x6a084e))(l||{}),m=(_0x21f394=>(_0x21f394[_0x1b429f(0x6d)]='Start',_0x21f394[_0x1b429f(0x70)]='End',_0x21f394[_0x1b429f(0x84)]=_0x1b429f(0x84),_0x21f394))(m||{}),o=(_0x50219a=>(_0x50219a[_0x1b429f(0x92)]='Normal',_0x50219a[_0x1b429f(0x93)]='Narrow',_0x50219a[_0x1b429f(0x85)]=_0x1b429f(0x85),_0x50219a[_0x1b429f(0x79)]=_0x1b429f(0x79),_0x50219a))(o||{});function _0x1844(){const _0x6f65e5=['106630czEVvY','\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.','innerHTML','10vWXXyP','FitPage','FitWidth','606580ypFiKn','Middle','Wide','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}','679876bcvrmk','3713454ITIjHk','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.','926569cqsDcI','330XLMlLK','Origin','6AjtxDq','offline-printing-css','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','Normal','Narrow','printing-canvas','Start','printing-canvas-container','Landscape','End','FitHeight','style','380736EcHQBQ',',\x20.','3609096tvUYvH','className','\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','56BMILAn','None','Custom','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'];_0x1844=function(){return _0x6f65e5;};return _0x1844();}const c={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x1b429f(0x85)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x1b429f(0x79)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x1b429f(0x6e),d=_0x1b429f(0x94);function _0x4b9f(_0x3de091,_0x2ed8e4){const _0x184425=_0x1844();return _0x4b9f=function(_0x4b9f30,_0xf57fda){_0x4b9f30=_0x4b9f30-0x6d;let _0xd38de1=_0x184425[_0x4b9f30];return _0xd38de1;},_0x4b9f(_0x3de091,_0x2ed8e4);}function g(_0x416897,_0x3f9d62,_0x540c78){const _0xc40328=_0x1b429f,_0x577765=_0x540c78===e[_0xc40328(0x8a)]?_0x416897:_0x3f9d62,_0x36816e=_0x540c78===e[_0xc40328(0x8a)]?_0x3f9d62:_0x416897,_0x2ae0e3=_0xc40328(0x7e)+d+_0xc40328(0x91)+_0x577765+'px\x20'+_0x36816e+_0xc40328(0x8b)+p+_0xc40328(0x74)+p+_0xc40328(0x7d)+d+_0xc40328(0x77)+_0x36816e+_0xc40328(0x7b)+_0x577765+_0xc40328(0x87),_0x55f250=document[_0xc40328(0x86)](_0xc40328(0x72));return _0x55f250[_0xc40328(0x7f)]=_0x2ae0e3,_0x55f250[_0xc40328(0x76)]=_0xc40328(0x90),_0x55f250;}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 _0x1b429f=_0x4b9f;(function(_0x583985,_0x30fa8a){const _0x1aa40e=_0x4b9f,_0x27af2e=_0x583985();while(!![]){try{const _0x4fd66a=-parseInt(_0x1aa40e(0x7c))/0x1+-parseInt(_0x1aa40e(0x88))/0x2*(parseInt(_0x1aa40e(0x8f))/0x3)+parseInt(_0x1aa40e(0x75))/0x4+parseInt(_0x1aa40e(0x80))/0x5*(-parseInt(_0x1aa40e(0x73))/0x6)+parseInt(_0x1aa40e(0x8c))/0x7*(-parseInt(_0x1aa40e(0x78))/0x8)+-parseInt(_0x1aa40e(0x89))/0x9+-parseInt(_0x1aa40e(0x83))/0xa*(-parseInt(_0x1aa40e(0x8d))/0xb);if(_0x4fd66a===_0x30fa8a)break;else _0x27af2e['push'](_0x27af2e['shift']());}catch(_0x41ced3){_0x27af2e['push'](_0x27af2e['shift']());}}}(_0x1844,0x729ad));var e=(_0x1d8bc5=>(_0x1d8bc5[_0x1b429f(0x8a)]=_0x1b429f(0x8a),_0x1d8bc5['Landscape']=_0x1b429f(0x6f),_0x1d8bc5))(e||{}),l=(_0x6a084e=>(_0x6a084e['Origin']=_0x1b429f(0x8e),_0x6a084e[_0x1b429f(0x82)]=_0x1b429f(0x82),_0x6a084e[_0x1b429f(0x71)]=_0x1b429f(0x71),_0x6a084e['FitPage']=_0x1b429f(0x81),_0x6a084e[_0x1b429f(0x7a)]=_0x1b429f(0x7a),_0x6a084e))(l||{}),m=(_0x21f394=>(_0x21f394[_0x1b429f(0x6d)]='Start',_0x21f394[_0x1b429f(0x70)]='End',_0x21f394[_0x1b429f(0x84)]=_0x1b429f(0x84),_0x21f394))(m||{}),o=(_0x50219a=>(_0x50219a[_0x1b429f(0x92)]='Normal',_0x50219a[_0x1b429f(0x93)]='Narrow',_0x50219a[_0x1b429f(0x85)]=_0x1b429f(0x85),_0x50219a[_0x1b429f(0x79)]=_0x1b429f(0x79),_0x50219a))(o||{});function _0x1844(){const _0x6f65e5=['106630czEVvY','\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.','innerHTML','10vWXXyP','FitPage','FitWidth','606580ypFiKn','Middle','Wide','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}','679876bcvrmk','3713454ITIjHk','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.','926569cqsDcI','330XLMlLK','Origin','6AjtxDq','offline-printing-css','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','Normal','Narrow','printing-canvas','Start','printing-canvas-container','Landscape','End','FitHeight','style','380736EcHQBQ',',\x20.','3609096tvUYvH','className','\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','56BMILAn','None','Custom','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'];_0x1844=function(){return _0x6f65e5;};return _0x1844();}const c={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x1b429f(0x85)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x1b429f(0x79)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x1b429f(0x6e),d=_0x1b429f(0x94);function _0x4b9f(_0x3de091,_0x2ed8e4){const _0x184425=_0x1844();return _0x4b9f=function(_0x4b9f30,_0xf57fda){_0x4b9f30=_0x4b9f30-0x6d;let _0xd38de1=_0x184425[_0x4b9f30];return _0xd38de1;},_0x4b9f(_0x3de091,_0x2ed8e4);}function g(_0x416897,_0x3f9d62,_0x540c78){const _0xc40328=_0x1b429f,_0x577765=_0x540c78===e[_0xc40328(0x8a)]?_0x416897:_0x3f9d62,_0x36816e=_0x540c78===e[_0xc40328(0x8a)]?_0x3f9d62:_0x416897,_0x2ae0e3=_0xc40328(0x7e)+d+_0xc40328(0x91)+_0x577765+'px\x20'+_0x36816e+_0xc40328(0x8b)+p+_0xc40328(0x74)+p+_0xc40328(0x7d)+d+_0xc40328(0x77)+_0x36816e+_0xc40328(0x7b)+_0x577765+_0xc40328(0x87),_0x55f250=document[_0xc40328(0x86)](_0xc40328(0x72));return _0x55f250[_0xc40328(0x7f)]=_0x2ae0e3,_0x55f250[_0xc40328(0x76)]=_0xc40328(0x90),_0x55f250;}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(_0x30f280,_0x36b63e){const _0x50ce99=_0x1dc7,_0x14b00d=_0x30f280();while(!![]){try{const _0x1971c2=-parseInt(_0x50ce99(0xe9))/0x1+-parseInt(_0x50ce99(0xe1))/0x2+parseInt(_0x50ce99(0xda))/0x3*(parseInt(_0x50ce99(0xf0))/0x4)+-parseInt(_0x50ce99(0xf7))/0x5*(parseInt(_0x50ce99(0xef))/0x6)+parseInt(_0x50ce99(0xe7))/0x7*(-parseInt(_0x50ce99(0xec))/0x8)+-parseInt(_0x50ce99(0xdd))/0x9*(parseInt(_0x50ce99(0xd4))/0xa)+-parseInt(_0x50ce99(0xf8))/0xb*(-parseInt(_0x50ce99(0xd9))/0xc);if(_0x1971c2===_0x36b63e)break;else _0x14b00d['push'](_0x14b00d['shift']());}catch(_0x2024bd){_0x14b00d['push'](_0x14b00d['shift']());}}}(_0x1a67,0x90260),function(_0x30890f,_0x551c06){const _0x5ee256=_0x1dc7;typeof exports==_0x5ee256(0xf3)&&typeof module<'u'?_0x551c06(exports):typeof define==_0x5ee256(0xf6)&&define[_0x5ee256(0xee)]?define([_0x5ee256(0xe5)],_0x551c06):(_0x30890f=typeof globalThis<'u'?globalThis:_0x30890f||self,_0x551c06(_0x30890f['UniverProPrint']={}));}(this,function(_0x471ff4){'use strict';const _0x2a6324=_0x1dc7;var _0x5b43eb=(_0x296c83=>(_0x296c83[_0x2a6324(0xe2)]=_0x2a6324(0xe2),_0x296c83[_0x2a6324(0xf5)]=_0x2a6324(0xf5),_0x296c83))(_0x5b43eb||{}),_0x3a2863=(_0x4ebcea=>(_0x4ebcea['Origin']='Origin',_0x4ebcea[_0x2a6324(0xf4)]=_0x2a6324(0xf4),_0x4ebcea[_0x2a6324(0xfb)]='FitHeight',_0x4ebcea[_0x2a6324(0xde)]=_0x2a6324(0xde),_0x4ebcea[_0x2a6324(0xfd)]=_0x2a6324(0xfd),_0x4ebcea))(_0x3a2863||{}),_0x44635f=(_0x40bc63=>(_0x40bc63[_0x2a6324(0xe4)]=_0x2a6324(0xe4),_0x40bc63['End']=_0x2a6324(0xd8),_0x40bc63[_0x2a6324(0xfc)]=_0x2a6324(0xfc),_0x40bc63))(_0x44635f||{}),_0x303bb2=(_0x191893=>(_0x191893[_0x2a6324(0xe8)]='Normal',_0x191893[_0x2a6324(0xdf)]=_0x2a6324(0xdf),_0x191893['Wide']=_0x2a6324(0xe6),_0x191893[_0x2a6324(0xd3)]='None',_0x191893))(_0x303bb2||{});const _0x2f1698={[_0x303bb2[_0x2a6324(0xe8)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x303bb2[_0x2a6324(0xdf)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x303bb2[_0x2a6324(0xe6)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x303bb2['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x1f6217=_0x2a6324(0xe0),_0x447122=_0x2a6324(0xf1);function _0x13ca67(_0x14c085,_0x34da0b,_0x52434e){const _0x24fee7=_0x2a6324,_0x444518=_0x52434e===_0x5b43eb['Portrait']?_0x14c085:_0x34da0b,_0x2b8be1=_0x52434e===_0x5b43eb[_0x24fee7(0xe2)]?_0x34da0b:_0x14c085,_0x334f8a=_0x24fee7(0xe3)+_0x447122+_0x24fee7(0xdb)+_0x444518+'px\x20'+_0x2b8be1+'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.'+_0x1f6217+',\x20.'+_0x1f6217+'\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.'+_0x447122+_0x24fee7(0xea)+_0x2b8be1+_0x24fee7(0xd1)+_0x444518+_0x24fee7(0xf2),_0x49ca77=document[_0x24fee7(0xfa)](_0x24fee7(0xd7));return _0x49ca77['innerHTML']=_0x334f8a,_0x49ca77['className']=_0x24fee7(0xd6),_0x49ca77;}_0x471ff4[_0x2a6324(0xff)]=_0x447122,_0x471ff4[_0x2a6324(0xd5)]=_0x1f6217,_0x471ff4[_0x2a6324(0xeb)]=_0x2f1698,_0x471ff4['PrintAlign']=_0x44635f,_0x471ff4[_0x2a6324(0xdc)]=_0x5b43eb,_0x471ff4[_0x2a6324(0xd0)]=_0x303bb2,_0x471ff4['PrintScale']=_0x3a2863,_0x471ff4[_0x2a6324(0xfe)]=_0x13ca67,Object[_0x2a6324(0xd2)](_0x471ff4,Symbol[_0x2a6324(0xf9)],{'value':_0x2a6324(0xed)});}));function _0x1dc7(_0x1847b1,_0x44a135){const _0x1a676c=_0x1a67();return _0x1dc7=function(_0x1dc7b2,_0x5e14a9){_0x1dc7b2=_0x1dc7b2-0xd0;let _0x5e3749=_0x1a676c[_0x1dc7b2];return _0x5e3749;},_0x1dc7(_0x1847b1,_0x44a135);}function _0x1a67(){const _0x295c47=['Custom','createPrintStyle','PRINT_CANVAS_CLASS','PrintPaperMargin','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','defineProperty','None','590odlJbA','PRINT_CONTAINER_CLASS','offline-printing-css','style','End','60xpajMi','42kXTaNV','\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','PrintDirection','135963ZIbaJp','FitPage','Narrow','printing-canvas-container','1859712hDsMfz','Portrait','\x0a\x20\x20\x20\x20.','Start','exports','Wide','126XdwxCZ','Normal','1133347VwHRNY','\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','PaperMarginMap','39680goxdGk','Module','amd','28878jBwVbH','167836MLsNuc','printing-canvas','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}','object','FitWidth','Landscape','function','255RsUCrU','7242983reXzYj','toStringTag','createElement','FitHeight','Middle'];_0x1a67=function(){return _0x295c47;};return _0x1a67();}
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-nightly.202508121228",
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",