@univerjs-pro/print 0.8.1 → 0.8.2-nightly.202506211606
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 +3 -3
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x52b614=_0x2cf3;(function(_0x4113bf,_0x5c07a9){const _0x3a6738=_0x2cf3,_0x25b472=_0x4113bf();while(!![]){try{const _0x1612f1=parseInt(_0x3a6738(0x1af))/0x1*(parseInt(_0x3a6738(0x1b8))/0x2)+parseInt(_0x3a6738(0x1b9))/0x3*(-parseInt(_0x3a6738(0x1d1))/0x4)+-parseInt(_0x3a6738(0x1ae))/0x5+-parseInt(_0x3a6738(0x1be))/0x6+parseInt(_0x3a6738(0x1ab))/0x7*(-parseInt(_0x3a6738(0x1cc))/0x8)+parseInt(_0x3a6738(0x1c8))/0x9*(-parseInt(_0x3a6738(0x1ad))/0xa)+parseInt(_0x3a6738(0x1d2))/0xb;if(_0x1612f1===_0x5c07a9)break;else _0x25b472['push'](_0x25b472['shift']());}catch(_0xf128ca){_0x25b472['push'](_0x25b472['shift']());}}}(_0x1889,0x31d65));function _0x1889(){const _0x3c6c14=['px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','style','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','toStringTag','FitWidth','2yCmmPi','168111YiaXdP','Start','Portrait','Landscape','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}','1121526FIVKeS','PRINT_CANVAS_CLASS','px\x20','Wide','None',',\x20.','className','Narrow','PaperMarginMap','printing-canvas-container','16047ploWwe','PrintDirection','PrintAlign','Middle','8nCfqgP','PrintPaperMargin','offline-printing-css','End','PRINT_CONTAINER_CLASS','28Zvspyb','15492741ttQHrF','FitPage','createPrintStyle','Custom','1671047KmOsVW','Origin','690nJxTkj','1408855qzgyzb','18401phqxtc','\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.','Module','\x0a\x20\x20\x20\x20.'];_0x1889=function(){return _0x3c6c14;};return _0x1889();}Object['defineProperty'](exports,Symbol[_0x52b614(0x1b6)],{'value':_0x52b614(0x1b1)});var e=(_0x388191=>(_0x388191['Portrait']=_0x52b614(0x1bb),_0x388191[_0x52b614(0x1bc)]=_0x52b614(0x1bc),_0x388191))(e||{}),l=(_0x15aabd=>(_0x15aabd[_0x52b614(0x1ac)]=_0x52b614(0x1ac),_0x15aabd[_0x52b614(0x1b7)]='FitWidth',_0x15aabd['FitHeight']='FitHeight',_0x15aabd[_0x52b614(0x1d3)]=_0x52b614(0x1d3),_0x15aabd[_0x52b614(0x1aa)]='Custom',_0x15aabd))(l||{}),c=(_0x1f1c1d=>(_0x1f1c1d[_0x52b614(0x1ba)]='Start',_0x1f1c1d[_0x52b614(0x1cf)]=_0x52b614(0x1cf),_0x1f1c1d[_0x52b614(0x1cb)]='Middle',_0x1f1c1d))(c||{}),i=(_0x4df2ab=>(_0x4df2ab['Normal']='Normal',_0x4df2ab['Narrow']=_0x52b614(0x1c5),_0x4df2ab[_0x52b614(0x1c1)]=_0x52b614(0x1c1),_0x4df2ab[_0x52b614(0x1c2)]=_0x52b614(0x1c2),_0x4df2ab))(i||{});const h={[i['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i[_0x52b614(0x1c1)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i[_0x52b614(0x1c2)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x52b614(0x1c7),n='printing-canvas';function _0x2cf3(_0x330683,_0x2e08e1){const _0x18890c=_0x1889();return _0x2cf3=function(_0x2cf362,_0x3ad3de){_0x2cf362=_0x2cf362-0x1a9;let _0x3e6073=_0x18890c[_0x2cf362];return _0x3e6073;},_0x2cf3(_0x330683,_0x2e08e1);}function m(_0x3b2f32,_0x5463b8,_0x102242){const _0x52c42a=_0x52b614,_0x391970=_0x102242===e[_0x52c42a(0x1bb)]?_0x3b2f32:_0x5463b8,_0x5b3d36=_0x102242===e[_0x52c42a(0x1bb)]?_0x5463b8:_0x3b2f32,_0x1e011e=_0x52c42a(0x1b2)+n+'\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'+_0x391970+_0x52c42a(0x1c0)+_0x5b3d36+_0x52c42a(0x1b3)+r+_0x52c42a(0x1c3)+r+_0x52c42a(0x1b0)+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'+_0x5b3d36+_0x52c42a(0x1b5)+_0x391970+_0x52c42a(0x1bd),_0x2ca322=document['createElement'](_0x52c42a(0x1b4));return _0x2ca322['innerHTML']=_0x1e011e,_0x2ca322[_0x52c42a(0x1c4)]=_0x52c42a(0x1ce),_0x2ca322;}exports[_0x52b614(0x1bf)]=n,exports[_0x52b614(0x1d0)]=r,exports[_0x52b614(0x1c6)]=h,exports[_0x52b614(0x1ca)]=c,exports[_0x52b614(0x1c9)]=e,exports[_0x52b614(0x1cd)]=i,exports['PrintScale']=l,exports[_0x52b614(0x1a9)]=m;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x8efdcd=_0x2e9b;(function(_0x42e46c,_0x463033){const _0x13e08f=_0x2e9b,_0x19e272=_0x42e46c();while(!![]){try{const _0x2fbca4=-parseInt(_0x13e08f(0x140))/0x1*(-parseInt(_0x13e08f(0x14f))/0x2)+-parseInt(_0x13e08f(0x146))/0x3+-parseInt(_0x13e08f(0x153))/0x4*(-parseInt(_0x13e08f(0x132))/0x5)+-parseInt(_0x13e08f(0x143))/0x6*(parseInt(_0x13e08f(0x152))/0x7)+parseInt(_0x13e08f(0x136))/0x8+-parseInt(_0x13e08f(0x147))/0x9+-parseInt(_0x13e08f(0x137))/0xa*(-parseInt(_0x13e08f(0x151))/0xb);if(_0x2fbca4===_0x463033)break;else _0x19e272['push'](_0x19e272['shift']());}catch(_0x367fd5){_0x19e272['push'](_0x19e272['shift']());}}}(_0x33ce,0x558c3));var e=(_0xc356e=>(_0xc356e[_0x8efdcd(0x133)]=_0x8efdcd(0x133),_0xc356e[_0x8efdcd(0x148)]=_0x8efdcd(0x148),_0xc356e))(e||{}),l=(_0x5eecc0=>(_0x5eecc0[_0x8efdcd(0x13c)]=_0x8efdcd(0x13c),_0x5eecc0[_0x8efdcd(0x139)]=_0x8efdcd(0x139),_0x5eecc0[_0x8efdcd(0x155)]=_0x8efdcd(0x155),_0x5eecc0[_0x8efdcd(0x141)]=_0x8efdcd(0x141),_0x5eecc0[_0x8efdcd(0x13b)]='Custom',_0x5eecc0))(l||{}),m=(_0x5020a5=>(_0x5020a5[_0x8efdcd(0x13e)]=_0x8efdcd(0x13e),_0x5020a5[_0x8efdcd(0x144)]='End',_0x5020a5['Middle']=_0x8efdcd(0x130),_0x5020a5))(m||{}),o=(_0x34cd56=>(_0x34cd56[_0x8efdcd(0x142)]='Normal',_0x34cd56[_0x8efdcd(0x13a)]=_0x8efdcd(0x13a),_0x34cd56['Wide']='Wide',_0x34cd56[_0x8efdcd(0x138)]=_0x8efdcd(0x138),_0x34cd56))(o||{});function _0x2e9b(_0x4e82ac,_0x43d119){const _0x33ce07=_0x33ce();return _0x2e9b=function(_0x2e9b88,_0x38e7af){_0x2e9b88=_0x2e9b88-0x130;let _0x481c06=_0x33ce07[_0x2e9b88];return _0x481c06;},_0x2e9b(_0x4e82ac,_0x43d119);}const c={[o[_0x8efdcd(0x142)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x8efdcd(0x134)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x8efdcd(0x138)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x8efdcd(0x14d),d='printing-canvas';function _0x33ce(){const _0x5a2c25=['Normal','857778ipTGxd','End','\x0a\x20\x20\x20\x20.','1348188fcUsiv','2553336SYFybg','Landscape','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','className','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','printing-canvas-container','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.','1130362ByIUJF','\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.','33715Hkxcyc','7ZlDFWl','891740NCbjzH','createElement','FitHeight','px\x20','Middle','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','5woPJsk','Portrait','Wide',',\x20.','1618760trgcDZ','770JbNNsi','None','FitWidth','Narrow','Custom','Origin','style','Start','innerHTML','1irsajb','FitPage'];_0x33ce=function(){return _0x5a2c25;};return _0x33ce();}function g(_0x2a1f40,_0x4e02ea,_0x55e2e0){const _0x10c481=_0x8efdcd,_0x5268be=_0x55e2e0===e[_0x10c481(0x133)]?_0x2a1f40:_0x4e02ea,_0x1988ae=_0x55e2e0===e[_0x10c481(0x133)]?_0x4e02ea:_0x2a1f40,_0x467287=_0x10c481(0x145)+d+_0x10c481(0x14c)+_0x5268be+_0x10c481(0x156)+_0x1988ae+_0x10c481(0x14e)+p+_0x10c481(0x135)+p+_0x10c481(0x150)+d+_0x10c481(0x149)+_0x1988ae+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x5268be+_0x10c481(0x131),_0xbe60c=document[_0x10c481(0x154)](_0x10c481(0x13d));return _0xbe60c[_0x10c481(0x13f)]=_0x467287,_0xbe60c[_0x10c481(0x14a)]=_0x10c481(0x14b),_0xbe60c;}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,m as PrintAlign,e as PrintDirection,o as PrintPaperMargin,l as PrintScale,g as createPrintStyle};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x8efdcd=_0x2e9b;(function(_0x42e46c,_0x463033){const _0x13e08f=_0x2e9b,_0x19e272=_0x42e46c();while(!![]){try{const _0x2fbca4=-parseInt(_0x13e08f(0x140))/0x1*(-parseInt(_0x13e08f(0x14f))/0x2)+-parseInt(_0x13e08f(0x146))/0x3+-parseInt(_0x13e08f(0x153))/0x4*(-parseInt(_0x13e08f(0x132))/0x5)+-parseInt(_0x13e08f(0x143))/0x6*(parseInt(_0x13e08f(0x152))/0x7)+parseInt(_0x13e08f(0x136))/0x8+-parseInt(_0x13e08f(0x147))/0x9+-parseInt(_0x13e08f(0x137))/0xa*(-parseInt(_0x13e08f(0x151))/0xb);if(_0x2fbca4===_0x463033)break;else _0x19e272['push'](_0x19e272['shift']());}catch(_0x367fd5){_0x19e272['push'](_0x19e272['shift']());}}}(_0x33ce,0x558c3));var e=(_0xc356e=>(_0xc356e[_0x8efdcd(0x133)]=_0x8efdcd(0x133),_0xc356e[_0x8efdcd(0x148)]=_0x8efdcd(0x148),_0xc356e))(e||{}),l=(_0x5eecc0=>(_0x5eecc0[_0x8efdcd(0x13c)]=_0x8efdcd(0x13c),_0x5eecc0[_0x8efdcd(0x139)]=_0x8efdcd(0x139),_0x5eecc0[_0x8efdcd(0x155)]=_0x8efdcd(0x155),_0x5eecc0[_0x8efdcd(0x141)]=_0x8efdcd(0x141),_0x5eecc0[_0x8efdcd(0x13b)]='Custom',_0x5eecc0))(l||{}),m=(_0x5020a5=>(_0x5020a5[_0x8efdcd(0x13e)]=_0x8efdcd(0x13e),_0x5020a5[_0x8efdcd(0x144)]='End',_0x5020a5['Middle']=_0x8efdcd(0x130),_0x5020a5))(m||{}),o=(_0x34cd56=>(_0x34cd56[_0x8efdcd(0x142)]='Normal',_0x34cd56[_0x8efdcd(0x13a)]=_0x8efdcd(0x13a),_0x34cd56['Wide']='Wide',_0x34cd56[_0x8efdcd(0x138)]=_0x8efdcd(0x138),_0x34cd56))(o||{});function _0x2e9b(_0x4e82ac,_0x43d119){const _0x33ce07=_0x33ce();return _0x2e9b=function(_0x2e9b88,_0x38e7af){_0x2e9b88=_0x2e9b88-0x130;let _0x481c06=_0x33ce07[_0x2e9b88];return _0x481c06;},_0x2e9b(_0x4e82ac,_0x43d119);}const c={[o[_0x8efdcd(0x142)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x8efdcd(0x134)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x8efdcd(0x138)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x8efdcd(0x14d),d='printing-canvas';function _0x33ce(){const _0x5a2c25=['Normal','857778ipTGxd','End','\x0a\x20\x20\x20\x20.','1348188fcUsiv','2553336SYFybg','Landscape','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','className','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','printing-canvas-container','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.','1130362ByIUJF','\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.','33715Hkxcyc','7ZlDFWl','891740NCbjzH','createElement','FitHeight','px\x20','Middle','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','5woPJsk','Portrait','Wide',',\x20.','1618760trgcDZ','770JbNNsi','None','FitWidth','Narrow','Custom','Origin','style','Start','innerHTML','1irsajb','FitPage'];_0x33ce=function(){return _0x5a2c25;};return _0x33ce();}function g(_0x2a1f40,_0x4e02ea,_0x55e2e0){const _0x10c481=_0x8efdcd,_0x5268be=_0x55e2e0===e[_0x10c481(0x133)]?_0x2a1f40:_0x4e02ea,_0x1988ae=_0x55e2e0===e[_0x10c481(0x133)]?_0x4e02ea:_0x2a1f40,_0x467287=_0x10c481(0x145)+d+_0x10c481(0x14c)+_0x5268be+_0x10c481(0x156)+_0x1988ae+_0x10c481(0x14e)+p+_0x10c481(0x135)+p+_0x10c481(0x150)+d+_0x10c481(0x149)+_0x1988ae+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x5268be+_0x10c481(0x131),_0xbe60c=document[_0x10c481(0x154)](_0x10c481(0x13d));return _0xbe60c[_0x10c481(0x13f)]=_0x467287,_0xbe60c[_0x10c481(0x14a)]=_0x10c481(0x14b),_0xbe60c;}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 _0x1fbc(_0x1825be,_0xfa251b){const _0x5e28a9=_0x5e28();return _0x1fbc=function(_0x1fbcd0,_0x4d1020){_0x1fbcd0=_0x1fbcd0-0x14b;let _0x413ead=_0x5e28a9[_0x1fbcd0];return _0x413ead;},_0x1fbc(_0x1825be,_0xfa251b);}(function(_0x42623b,_0x1d1c58){const _0xe285f=_0x1fbc,_0x34bdef=_0x42623b();while(!![]){try{const _0x85125e=-parseInt(_0xe285f(0x15c))/0x1*(parseInt(_0xe285f(0x16b))/0x2)+parseInt(_0xe285f(0x15b))/0x3*(parseInt(_0xe285f(0x162))/0x4)+-parseInt(_0xe285f(0x155))/0x5+parseInt(_0xe285f(0x153))/0x6+parseInt(_0xe285f(0x14f))/0x7+-parseInt(_0xe285f(0x16c))/0x8*(-parseInt(_0xe285f(0x16a))/0x9)+parseInt(_0xe285f(0x15d))/0xa*(-parseInt(_0xe285f(0x161))/0xb);if(_0x85125e===_0x1d1c58)break;else _0x34bdef['push'](_0x34bdef['shift']());}catch(_0x2bd751){_0x34bdef['push'](_0x34bdef['shift']());}}}(_0x5e28,0x9eb0e),function(_0x4fc5f8,_0x4842e7){const _0x292504=_0x1fbc;typeof exports=='object'&&typeof module<'u'?_0x4842e7(exports):typeof define==_0x292504(0x165)&&define[_0x292504(0x15e)]?define([_0x292504(0x179)],_0x4842e7):(_0x4fc5f8=typeof globalThis<'u'?globalThis:_0x4fc5f8||self,_0x4842e7(_0x4fc5f8['UniverProPrint']={}));}(this,function(_0x577367){'use strict';const _0x54794a=_0x1fbc;var _0x577601=(_0x45ed23=>(_0x45ed23[_0x54794a(0x170)]=_0x54794a(0x170),_0x45ed23[_0x54794a(0x15f)]=_0x54794a(0x15f),_0x45ed23))(_0x577601||{}),_0x1dd1e1=(_0x397b15=>(_0x397b15[_0x54794a(0x152)]=_0x54794a(0x152),_0x397b15[_0x54794a(0x16e)]=_0x54794a(0x16e),_0x397b15[_0x54794a(0x164)]=_0x54794a(0x164),_0x397b15[_0x54794a(0x160)]='FitPage',_0x397b15[_0x54794a(0x172)]=_0x54794a(0x172),_0x397b15))(_0x1dd1e1||{}),_0x5d7268=(_0x40f7e3=>(_0x40f7e3[_0x54794a(0x156)]='Start',_0x40f7e3[_0x54794a(0x151)]=_0x54794a(0x151),_0x40f7e3['Middle']=_0x54794a(0x14e),_0x40f7e3))(_0x5d7268||{}),_0x12d92b=(_0x2ef27e=>(_0x2ef27e['Normal']=_0x54794a(0x171),_0x2ef27e[_0x54794a(0x167)]=_0x54794a(0x167),_0x2ef27e[_0x54794a(0x175)]=_0x54794a(0x175),_0x2ef27e[_0x54794a(0x163)]='None',_0x2ef27e))(_0x12d92b||{});const _0x43f2c4={[_0x12d92b[_0x54794a(0x171)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x12d92b['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x12d92b['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x12d92b[_0x54794a(0x163)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x303a6c=_0x54794a(0x150),_0x14907f='printing-canvas';function _0x12fff3(_0x4294e6,_0x2fff54,_0x5e8dbc){const _0x517446=_0x54794a,_0x4ee765=_0x5e8dbc===_0x577601[_0x517446(0x170)]?_0x4294e6:_0x2fff54,_0x7f3340=_0x5e8dbc===_0x577601['Portrait']?_0x2fff54:_0x4294e6,_0x21ba26=_0x517446(0x157)+_0x14907f+_0x517446(0x158)+_0x4ee765+_0x517446(0x14b)+_0x7f3340+_0x517446(0x169)+_0x303a6c+_0x517446(0x159)+_0x303a6c+'\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.'+_0x14907f+'\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'+_0x7f3340+_0x517446(0x16f)+_0x4ee765+_0x517446(0x178),_0x2dc623=document[_0x517446(0x168)](_0x517446(0x177));return _0x2dc623[_0x517446(0x14c)]=_0x21ba26,_0x2dc623[_0x517446(0x173)]='offline-printing-css',_0x2dc623;}_0x577367['PRINT_CANVAS_CLASS']=_0x14907f,_0x577367['PRINT_CONTAINER_CLASS']=_0x303a6c,_0x577367[_0x54794a(0x166)]=_0x43f2c4,_0x577367['PrintAlign']=_0x5d7268,_0x577367['PrintDirection']=_0x577601,_0x577367[_0x54794a(0x16d)]=_0x12d92b,_0x577367[_0x54794a(0x154)]=_0x1dd1e1,_0x577367[_0x54794a(0x174)]=_0x12fff3,Object[_0x54794a(0x14d)](_0x577367,Symbol[_0x54794a(0x176)],{'value':_0x54794a(0x15a)});}));function _0x5e28(){const _0x2388b8=[',\x20.','Module','9zbFZIA','1QLmKIK','20GaOHbs','amd','Landscape','FitPage','515768rYgfLl','360508TsyLXh','None','FitHeight','function','PaperMarginMap','Narrow','createElement','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.','1848033YIZdte','1752958ikfmTn','24SAwNyw','PrintPaperMargin','FitWidth','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Portrait','Normal','Custom','className','createPrintStyle','Wide','toStringTag','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}','exports','px\x20','innerHTML','defineProperty','Middle','2527966PsiDmD','printing-canvas-container','End','Origin','6101382dddflK','PrintScale','3220870XFZULX','Start','\x0a\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'];_0x5e28=function(){return _0x2388b8;};return _0x5e28();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2-nightly.202506211606",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Print module for UniverJS",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"typescript": "^5.8.3",
|
|
46
46
|
"vite": "^6.3.5",
|
|
47
|
-
"vitest": "^3.2.
|
|
48
|
-
"@univerjs-infra/shared": "0.8.
|
|
47
|
+
"vitest": "^3.2.4",
|
|
48
|
+
"@univerjs-infra/shared": "0.8.2"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|