@univerjs-pro/print 0.10.1 → 0.10.2
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 +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +2 -2
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
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();}
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
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};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
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};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
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();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.2",
|
|
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.
|
|
48
|
+
"@univerjs-infra/shared": "0.10.2"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|