@univerjs-pro/print 0.9.0 → 0.9.1-nightly.202507051607
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 _0x4184fa=_0x2f8b;function _0x5d7a(){const _0x537cdb=['innerHTML','Narrow','PRINT_CANVAS_CLASS','Module','558hpnzaV','Portrait','Landscape','End','8uvMpag','Wide','Middle','Custom','None','PaperMarginMap','1503691Vtykwo','Start','PrintPaperMargin','Normal','FitHeight','offline-printing-css','78968FLEybv','className','\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','\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.','createPrintStyle','2559885ngsoDX','\x0a\x20\x20\x20\x20.','createElement','PrintAlign','4613574GjbYau','PRINT_CONTAINER_CLASS','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}','99ejINRz','402775QIvsri','printing-canvas-container','327400rsnCQz','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.','FitPage','px\x20','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','PrintScale','Origin','1904956ndLtXV','FitWidth','PrintDirection'];_0x5d7a=function(){return _0x537cdb;};return _0x5d7a();}(function(_0x573ea7,_0x430e7f){const _0x230964=_0x2f8b,_0x1433bb=_0x573ea7();while(!![]){try{const _0x391659=-parseInt(_0x230964(0x175))/0x1+-parseInt(_0x230964(0x17e))/0x2+parseInt(_0x230964(0x174))/0x3*(-parseInt(_0x230964(0x167))/0x4)+-parseInt(_0x230964(0x16d))/0x5+parseInt(_0x230964(0x171))/0x6+parseInt(_0x230964(0x161))/0x7*(parseInt(_0x230964(0x15b))/0x8)+-parseInt(_0x230964(0x185))/0x9*(-parseInt(_0x230964(0x177))/0xa);if(_0x391659===_0x430e7f)break;else _0x1433bb['push'](_0x1433bb['shift']());}catch(_0x7d20ce){_0x1433bb['push'](_0x1433bb['shift']());}}}(_0x5d7a,0x78d3a));Object[_0x4184fa(0x16a)](exports,Symbol['toStringTag'],{'value':_0x4184fa(0x184)});var e=(_0x5c4937=>(_0x5c4937['Portrait']=_0x4184fa(0x158),_0x5c4937[_0x4184fa(0x159)]=_0x4184fa(0x159),_0x5c4937))(e||{}),l=(_0x213cf8=>(_0x213cf8[_0x4184fa(0x17d)]='Origin',_0x213cf8['FitWidth']=_0x4184fa(0x17f),_0x213cf8['FitHeight']=_0x4184fa(0x165),_0x213cf8[_0x4184fa(0x179)]=_0x4184fa(0x179),_0x213cf8['Custom']=_0x4184fa(0x15e),_0x213cf8))(l||{}),c=(_0xe1e0c5=>(_0xe1e0c5[_0x4184fa(0x162)]=_0x4184fa(0x162),_0xe1e0c5[_0x4184fa(0x15a)]=_0x4184fa(0x15a),_0xe1e0c5['Middle']=_0x4184fa(0x15d),_0xe1e0c5))(c||{}),i=(_0x285a02=>(_0x285a02['Normal']='Normal',_0x285a02[_0x4184fa(0x182)]=_0x4184fa(0x182),_0x285a02[_0x4184fa(0x15c)]=_0x4184fa(0x15c),_0x285a02[_0x4184fa(0x15f)]=_0x4184fa(0x15f),_0x285a02))(i||{});const h={[i[_0x4184fa(0x164)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i[_0x4184fa(0x15c)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x4184fa(0x176),n='printing-canvas';function _0x2f8b(_0x1f592e,_0x1f214d){const _0x5d7af4=_0x5d7a();return _0x2f8b=function(_0x2f8b00,_0x4e1853){_0x2f8b00=_0x2f8b00-0x158;let _0x1265e4=_0x5d7af4[_0x2f8b00];return _0x1265e4;},_0x2f8b(_0x1f592e,_0x1f214d);}function m(_0x29632d,_0xfd6bf9,_0x59030a){const _0x58ef1c=_0x4184fa,_0xb14527=_0x59030a===e[_0x58ef1c(0x158)]?_0x29632d:_0xfd6bf9,_0x4f7af8=_0x59030a===e[_0x58ef1c(0x158)]?_0xfd6bf9:_0x29632d,_0x99cae7=_0x58ef1c(0x16e)+n+_0x58ef1c(0x169)+_0xb14527+_0x58ef1c(0x17a)+_0x4f7af8+_0x58ef1c(0x178)+r+',\x20.'+r+_0x58ef1c(0x16b)+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'+_0x4f7af8+_0x58ef1c(0x17b)+_0xb14527+_0x58ef1c(0x173),_0x1cffad=document[_0x58ef1c(0x16f)]('style');return _0x1cffad[_0x58ef1c(0x181)]=_0x99cae7,_0x1cffad[_0x58ef1c(0x168)]=_0x58ef1c(0x166),_0x1cffad;}exports[_0x4184fa(0x183)]=n,exports[_0x4184fa(0x172)]=r,exports[_0x4184fa(0x160)]=h,exports[_0x4184fa(0x170)]=c,exports[_0x4184fa(0x180)]=e,exports[_0x4184fa(0x163)]=i,exports[_0x4184fa(0x17c)]=l,exports[_0x4184fa(0x16c)]=m;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1685(){const _0x2c014c=['Narrow','FitHeight','14507625QqMiCM','\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.','8wbnMot','Landscape','offline-printing-css','Custom','\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;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Portrait','1428fyongv','4006352BJIxPq','className','\x0a\x20\x20\x20\x20.','px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','16lgaQca','End','151625isoysP','Middle','printing-canvas','style','\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','14990zhvcIH','FitPage','Normal','Origin','687738atNLlC','150458aDUsAk','6312wPfChk','Start','Wide','FitWidth','printing-canvas-container','None','5148JaNtPj'];_0x1685=function(){return _0x2c014c;};return _0x1685();}function _0x2d5b(_0x53255c,_0x376a4a){const _0x1685be=_0x1685();return _0x2d5b=function(_0x2d5b4b,_0x3398f1){_0x2d5b4b=_0x2d5b4b-0xcb;let _0x1f64af=_0x1685be[_0x2d5b4b];return _0x1f64af;},_0x2d5b(_0x53255c,_0x376a4a);}const _0x142634=_0x2d5b;(function(_0x51bb84,_0x48f8ab){const _0x262779=_0x2d5b,_0x1c27fc=_0x51bb84();while(!![]){try{const _0x3a3757=-parseInt(_0x262779(0xdc))/0x1*(parseInt(_0x262779(0xd0))/0x2)+parseInt(_0x262779(0xcf))/0x3+parseInt(_0x262779(0xe8))/0x4*(-parseInt(_0x262779(0xea))/0x5)+parseInt(_0x262779(0xd1))/0x6*(parseInt(_0x262779(0xe3))/0x7)+parseInt(_0x262779(0xe4))/0x8+-parseInt(_0x262779(0xd7))/0x9*(parseInt(_0x262779(0xcb))/0xa)+parseInt(_0x262779(0xda))/0xb;if(_0x3a3757===_0x48f8ab)break;else _0x1c27fc['push'](_0x1c27fc['shift']());}catch(_0x59af3e){_0x1c27fc['push'](_0x1c27fc['shift']());}}}(_0x1685,0xa6bd3));var e=(_0x108b9b=>(_0x108b9b[_0x142634(0xe2)]=_0x142634(0xe2),_0x108b9b[_0x142634(0xdd)]=_0x142634(0xdd),_0x108b9b))(e||{}),l=(_0x3cc5c7=>(_0x3cc5c7[_0x142634(0xce)]=_0x142634(0xce),_0x3cc5c7[_0x142634(0xd4)]='FitWidth',_0x3cc5c7[_0x142634(0xd9)]=_0x142634(0xd9),_0x3cc5c7[_0x142634(0xcc)]=_0x142634(0xcc),_0x3cc5c7[_0x142634(0xdf)]=_0x142634(0xdf),_0x3cc5c7))(l||{}),m=(_0x4e23a9=>(_0x4e23a9[_0x142634(0xd2)]=_0x142634(0xd2),_0x4e23a9['End']=_0x142634(0xe9),_0x4e23a9[_0x142634(0xeb)]='Middle',_0x4e23a9))(m||{}),o=(_0x8fec6=>(_0x8fec6[_0x142634(0xcd)]=_0x142634(0xcd),_0x8fec6[_0x142634(0xd8)]=_0x142634(0xd8),_0x8fec6[_0x142634(0xd3)]=_0x142634(0xd3),_0x8fec6['None']=_0x142634(0xd6),_0x8fec6))(o||{});const c={[o[_0x142634(0xcd)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x142634(0xd6)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x142634(0xd5),d=_0x142634(0xec);function g(_0x36218f,_0x6ae48b,_0x8c9729){const _0x5dc3f3=_0x142634,_0x2de2c0=_0x8c9729===e['Portrait']?_0x36218f:_0x6ae48b,_0xc40c86=_0x8c9729===e[_0x5dc3f3(0xe2)]?_0x6ae48b:_0x36218f,_0x2a6c0c=_0x5dc3f3(0xe6)+d+_0x5dc3f3(0xe0)+_0x2de2c0+'px\x20'+_0xc40c86+_0x5dc3f3(0xe7)+p+',\x20.'+p+_0x5dc3f3(0xdb)+d+_0x5dc3f3(0xee)+_0xc40c86+_0x5dc3f3(0xe1)+_0x2de2c0+'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}',_0x4c807e=document['createElement'](_0x5dc3f3(0xed));return _0x4c807e['innerHTML']=_0x2a6c0c,_0x4c807e[_0x5dc3f3(0xe5)]=_0x5dc3f3(0xde),_0x4c807e;}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 _0x1685(){const _0x2c014c=['Narrow','FitHeight','14507625QqMiCM','\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.','8wbnMot','Landscape','offline-printing-css','Custom','\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;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Portrait','1428fyongv','4006352BJIxPq','className','\x0a\x20\x20\x20\x20.','px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','16lgaQca','End','151625isoysP','Middle','printing-canvas','style','\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','14990zhvcIH','FitPage','Normal','Origin','687738atNLlC','150458aDUsAk','6312wPfChk','Start','Wide','FitWidth','printing-canvas-container','None','5148JaNtPj'];_0x1685=function(){return _0x2c014c;};return _0x1685();}function _0x2d5b(_0x53255c,_0x376a4a){const _0x1685be=_0x1685();return _0x2d5b=function(_0x2d5b4b,_0x3398f1){_0x2d5b4b=_0x2d5b4b-0xcb;let _0x1f64af=_0x1685be[_0x2d5b4b];return _0x1f64af;},_0x2d5b(_0x53255c,_0x376a4a);}const _0x142634=_0x2d5b;(function(_0x51bb84,_0x48f8ab){const _0x262779=_0x2d5b,_0x1c27fc=_0x51bb84();while(!![]){try{const _0x3a3757=-parseInt(_0x262779(0xdc))/0x1*(parseInt(_0x262779(0xd0))/0x2)+parseInt(_0x262779(0xcf))/0x3+parseInt(_0x262779(0xe8))/0x4*(-parseInt(_0x262779(0xea))/0x5)+parseInt(_0x262779(0xd1))/0x6*(parseInt(_0x262779(0xe3))/0x7)+parseInt(_0x262779(0xe4))/0x8+-parseInt(_0x262779(0xd7))/0x9*(parseInt(_0x262779(0xcb))/0xa)+parseInt(_0x262779(0xda))/0xb;if(_0x3a3757===_0x48f8ab)break;else _0x1c27fc['push'](_0x1c27fc['shift']());}catch(_0x59af3e){_0x1c27fc['push'](_0x1c27fc['shift']());}}}(_0x1685,0xa6bd3));var e=(_0x108b9b=>(_0x108b9b[_0x142634(0xe2)]=_0x142634(0xe2),_0x108b9b[_0x142634(0xdd)]=_0x142634(0xdd),_0x108b9b))(e||{}),l=(_0x3cc5c7=>(_0x3cc5c7[_0x142634(0xce)]=_0x142634(0xce),_0x3cc5c7[_0x142634(0xd4)]='FitWidth',_0x3cc5c7[_0x142634(0xd9)]=_0x142634(0xd9),_0x3cc5c7[_0x142634(0xcc)]=_0x142634(0xcc),_0x3cc5c7[_0x142634(0xdf)]=_0x142634(0xdf),_0x3cc5c7))(l||{}),m=(_0x4e23a9=>(_0x4e23a9[_0x142634(0xd2)]=_0x142634(0xd2),_0x4e23a9['End']=_0x142634(0xe9),_0x4e23a9[_0x142634(0xeb)]='Middle',_0x4e23a9))(m||{}),o=(_0x8fec6=>(_0x8fec6[_0x142634(0xcd)]=_0x142634(0xcd),_0x8fec6[_0x142634(0xd8)]=_0x142634(0xd8),_0x8fec6[_0x142634(0xd3)]=_0x142634(0xd3),_0x8fec6['None']=_0x142634(0xd6),_0x8fec6))(o||{});const c={[o[_0x142634(0xcd)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x142634(0xd6)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x142634(0xd5),d=_0x142634(0xec);function g(_0x36218f,_0x6ae48b,_0x8c9729){const _0x5dc3f3=_0x142634,_0x2de2c0=_0x8c9729===e['Portrait']?_0x36218f:_0x6ae48b,_0xc40c86=_0x8c9729===e[_0x5dc3f3(0xe2)]?_0x6ae48b:_0x36218f,_0x2a6c0c=_0x5dc3f3(0xe6)+d+_0x5dc3f3(0xe0)+_0x2de2c0+'px\x20'+_0xc40c86+_0x5dc3f3(0xe7)+p+',\x20.'+p+_0x5dc3f3(0xdb)+d+_0x5dc3f3(0xee)+_0xc40c86+_0x5dc3f3(0xe1)+_0x2de2c0+'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}',_0x4c807e=document['createElement'](_0x5dc3f3(0xed));return _0x4c807e['innerHTML']=_0x2a6c0c,_0x4c807e[_0x5dc3f3(0xe5)]=_0x5dc3f3(0xde),_0x4c807e;}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 _0x4cc8(_0x1e2dda,_0x1db699){const _0x152830=_0x1528();return _0x4cc8=function(_0x4cc85f,_0x4f93ad){_0x4cc85f=_0x4cc85f-0x1e2;let _0x31161a=_0x152830[_0x4cc85f];return _0x31161a;},_0x4cc8(_0x1e2dda,_0x1db699);}(function(_0x1c623b,_0x727f28){const _0x1008b2=_0x4cc8,_0x524586=_0x1c623b();while(!![]){try{const _0x401100=-parseInt(_0x1008b2(0x1e4))/0x1+parseInt(_0x1008b2(0x1f1))/0x2*(-parseInt(_0x1008b2(0x1fd))/0x3)+parseInt(_0x1008b2(0x1fc))/0x4*(parseInt(_0x1008b2(0x202))/0x5)+-parseInt(_0x1008b2(0x1ff))/0x6*(-parseInt(_0x1008b2(0x1f8))/0x7)+parseInt(_0x1008b2(0x1ea))/0x8*(-parseInt(_0x1008b2(0x1e8))/0x9)+-parseInt(_0x1008b2(0x1f0))/0xa+-parseInt(_0x1008b2(0x20a))/0xb*(-parseInt(_0x1008b2(0x1ed))/0xc);if(_0x401100===_0x727f28)break;else _0x524586['push'](_0x524586['shift']());}catch(_0x55f2f2){_0x524586['push'](_0x524586['shift']());}}}(_0x1528,0xe412f),function(_0x395e03,_0x39084d){const _0x473086=_0x4cc8;typeof exports==_0x473086(0x1f5)&&typeof module<'u'?_0x39084d(exports):typeof define==_0x473086(0x1f4)&&define[_0x473086(0x1f3)]?define([_0x473086(0x203)],_0x39084d):(_0x395e03=typeof globalThis<'u'?globalThis:_0x395e03||self,_0x39084d(_0x395e03[_0x473086(0x1e9)]={}));}(this,function(_0x45121e){'use strict';const _0x62d428=_0x4cc8;var _0x9287a2=(_0x416dfb=>(_0x416dfb[_0x62d428(0x1f7)]=_0x62d428(0x1f7),_0x416dfb[_0x62d428(0x208)]='Landscape',_0x416dfb))(_0x9287a2||{}),_0x35e9af=(_0x979efe=>(_0x979efe[_0x62d428(0x1e3)]=_0x62d428(0x1e3),_0x979efe[_0x62d428(0x200)]=_0x62d428(0x200),_0x979efe['FitHeight']='FitHeight',_0x979efe['FitPage']='FitPage',_0x979efe[_0x62d428(0x1e7)]=_0x62d428(0x1e7),_0x979efe))(_0x35e9af||{}),_0x6b9276=(_0x59783e=>(_0x59783e['Start']='Start',_0x59783e[_0x62d428(0x1fe)]=_0x62d428(0x1fe),_0x59783e[_0x62d428(0x1fa)]='Middle',_0x59783e))(_0x6b9276||{}),_0x56706f=(_0x3a23a3=>(_0x3a23a3[_0x62d428(0x1ee)]='Normal',_0x3a23a3[_0x62d428(0x204)]=_0x62d428(0x204),_0x3a23a3[_0x62d428(0x207)]=_0x62d428(0x207),_0x3a23a3['None']=_0x62d428(0x1e5),_0x3a23a3))(_0x56706f||{});const _0x49dc89={[_0x56706f['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x56706f[_0x62d428(0x204)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x56706f[_0x62d428(0x207)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x56706f[_0x62d428(0x1e5)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x151636=_0x62d428(0x20c),_0x5c4ef3=_0x62d428(0x20d);function _0x5d33ab(_0x4fd8f8,_0x8c95d9,_0x5bf8dd){const _0x8a854f=_0x62d428,_0xd934dc=_0x5bf8dd===_0x9287a2[_0x8a854f(0x1f7)]?_0x4fd8f8:_0x8c95d9,_0x55539e=_0x5bf8dd===_0x9287a2['Portrait']?_0x8c95d9:_0x4fd8f8,_0x4cc1fe=_0x8a854f(0x20b)+_0x5c4ef3+'\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'+_0xd934dc+_0x8a854f(0x1e2)+_0x55539e+_0x8a854f(0x1eb)+_0x151636+_0x8a854f(0x205)+_0x151636+_0x8a854f(0x206)+_0x5c4ef3+'\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'+_0x55539e+_0x8a854f(0x20e)+_0xd934dc+'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}',_0x538e8a=document['createElement']('style');return _0x538e8a[_0x8a854f(0x1ef)]=_0x4cc1fe,_0x538e8a['className']=_0x8a854f(0x1f6),_0x538e8a;}_0x45121e[_0x62d428(0x1fb)]=_0x5c4ef3,_0x45121e[_0x62d428(0x1e6)]=_0x151636,_0x45121e[_0x62d428(0x201)]=_0x49dc89,_0x45121e['PrintAlign']=_0x6b9276,_0x45121e['PrintDirection']=_0x9287a2,_0x45121e[_0x62d428(0x1f2)]=_0x56706f,_0x45121e[_0x62d428(0x209)]=_0x35e9af,_0x45121e[_0x62d428(0x1ec)]=_0x5d33ab,Object[_0x62d428(0x1f9)](_0x45121e,Symbol['toStringTag'],{'value':'Module'});}));function _0x1528(){const _0x24d665=['7jhKWxb','defineProperty','Middle','PRINT_CANVAS_CLASS','12FgcqdH','6shKalv','End','8975154QbqnAb','FitWidth','PaperMarginMap','3017170phnkQJ','exports','Narrow',',\x20.','\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.','Wide','Landscape','PrintScale','5907DxJano','\x0a\x20\x20\x20\x20.','printing-canvas-container','printing-canvas','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','px\x20','Origin','1549923IMLSGs','None','PRINT_CONTAINER_CLASS','Custom','18lWOIPt','UniverProPrint','3274232deUZTI','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.','createPrintStyle','17844gDnHaZ','Normal','innerHTML','6590260YTWHNi','142982yqaLMk','PrintPaperMargin','amd','function','object','offline-printing-css','Portrait'];_0x1528=function(){return _0x24d665;};return _0x1528();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.1-nightly.202507051607",
|
|
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": "^6.3.5",
|
|
47
47
|
"vitest": "^3.2.4",
|
|
48
|
-
"@univerjs-infra/shared": "0.9.
|
|
48
|
+
"@univerjs-infra/shared": "0.9.1"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|