@univerjs-pro/print 0.24.0 → 0.25.0-insiders.20260608-e4336f7
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
|
-
const
|
|
1
|
+
const _0x2617a5=_0x123a;(function(_0x3ab7c9,_0x5deca7){const _0x9cab7f=_0x123a,_0x4d2df2=_0x3ab7c9();while(!![]){try{const _0x4bbf36=parseInt(_0x9cab7f(0x21d))/0x1+parseInt(_0x9cab7f(0x1f9))/0x2*(-parseInt(_0x9cab7f(0x1f4))/0x3)+parseInt(_0x9cab7f(0x20c))/0x4*(parseInt(_0x9cab7f(0x206))/0x5)+-parseInt(_0x9cab7f(0x209))/0x6*(parseInt(_0x9cab7f(0x21f))/0x7)+-parseInt(_0x9cab7f(0x1f6))/0x8+-parseInt(_0x9cab7f(0x21a))/0x9+parseInt(_0x9cab7f(0x20b))/0xa;if(_0x4bbf36===_0x5deca7)break;else _0x4d2df2['push'](_0x4d2df2['shift']());}catch(_0x38dc34){_0x4d2df2['push'](_0x4d2df2['shift']());}}}(_0x53af,0x61c99),Object[_0x2617a5(0x21c)](exports,Symbol['toStringTag'],{'value':_0x2617a5(0x217)}));function _0x123a(_0x2eabc5,_0x2192a6){_0x2eabc5=_0x2eabc5-0x1f3;const _0x53afb0=_0x53af();let _0x123a60=_0x53afb0[_0x2eabc5];return _0x123a60;}let e=function(_0x5ecb08){const _0x3ca2e3=_0x2617a5;return _0x5ecb08[_0x3ca2e3(0x1fe)]=_0x3ca2e3(0x1fe),_0x5ecb08[_0x3ca2e3(0x215)]=_0x3ca2e3(0x215),_0x5ecb08;}({}),t=function(_0x475d29){const _0x447233=_0x2617a5;return _0x475d29[_0x447233(0x1fc)]=_0x447233(0x1fc),_0x475d29[_0x447233(0x21e)]=_0x447233(0x21e),_0x475d29[_0x447233(0x207)]=_0x447233(0x207),_0x475d29[_0x447233(0x1ff)]=_0x447233(0x1ff),_0x475d29['Custom']=_0x447233(0x20d),_0x475d29;}({}),n=function(_0x158fe0){const _0xe8980b=_0x2617a5;return _0x158fe0[_0xe8980b(0x211)]='Start',_0x158fe0['End']=_0xe8980b(0x1f3),_0x158fe0[_0xe8980b(0x210)]=_0xe8980b(0x210),_0x158fe0;}({}),r=function(_0x1ed897){const _0x42b6f7=_0x2617a5;return _0x1ed897[_0x42b6f7(0x220)]=_0x42b6f7(0x220),_0x1ed897[_0x42b6f7(0x214)]=_0x42b6f7(0x214),_0x1ed897[_0x42b6f7(0x21b)]='Wide',_0x1ed897[_0x42b6f7(0x203)]=_0x42b6f7(0x203),_0x1ed897[_0x42b6f7(0x20d)]=_0x42b6f7(0x20d),_0x1ed897;}({});function _0x53af(){const _0x2fdcbd=['1819181vQKwSA','Normal','End','3ocTqyc','px\x20','1139680WtdjXY','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','innerHTML','726490JReWkG','className',',\x20.','Origin','createElement','Portrait','FitPage','PRINT_CANVAS_CLASS','PrintDirection','PaperMarginMap','None','offline-printing-css','printing-canvas','5ewEIqE','FitHeight','PrintPaperMargin','6ErfVJo','printing-canvas-container','621000ATSpGu','2942692ajLviV','Custom','PRINT_CONTAINER_CLASS','\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','Middle','Start','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','Narrow','Landscape','PrintAlign','Module','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\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','1295838fhqtIL','Wide','defineProperty','512334ilvfsH','FitWidth'];_0x53af=function(){return _0x2fdcbd;};return _0x53af();}const i={'Normal':{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},'Narrow':{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},'Wide':{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},'None':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},'Custom':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},a=_0x2617a5(0x20a),o=_0x2617a5(0x205);function s(_0x40095b,_0x3cd459,_0x413ec9){const _0x5b8313=_0x2617a5;let _0x11c2dd=_0x413ec9==='Portrait'?_0x40095b:_0x3cd459,_0x5c7ad2=_0x413ec9===_0x5b8313(0x1fe)?_0x3cd459:_0x40095b,_0x52e2f9='\x0a\x20\x20\x20\x20.'+o+_0x5b8313(0x219)+_0x11c2dd+_0x5b8313(0x1f5)+_0x5c7ad2+_0x5b8313(0x212)+a+_0x5b8313(0x1fb)+a+'\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.'+o+_0x5b8313(0x20f)+_0x5c7ad2+_0x5b8313(0x1f7)+_0x11c2dd+_0x5b8313(0x218),_0x2c3218=document[_0x5b8313(0x1fd)](_0x5b8313(0x213));return _0x2c3218[_0x5b8313(0x1f8)]=_0x52e2f9,_0x2c3218[_0x5b8313(0x1fa)]=_0x5b8313(0x204),_0x2c3218;}exports[_0x2617a5(0x200)]=o,exports[_0x2617a5(0x20e)]=a,exports[_0x2617a5(0x202)]=i,exports[_0x2617a5(0x216)]=n,exports[_0x2617a5(0x201)]=e,exports[_0x2617a5(0x208)]=r,exports['PrintScale']=t,exports['createPrintStyle']=s;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5bf3de=_0x5d6b;function _0x5d6b(_0x13bd20,_0xbd0390){_0x13bd20=_0x13bd20-0x170;const _0xc4ae5e=_0xc4ae();let _0x5d6b57=_0xc4ae5e[_0x13bd20];return _0x5d6b57;}(function(_0x4191a4,_0x383964){const _0x5ce40c=_0x5d6b,_0x3b67cb=_0x4191a4();while(!![]){try{const _0x128cce=-parseInt(_0x5ce40c(0x176))/0x1+parseInt(_0x5ce40c(0x171))/0x2+parseInt(_0x5ce40c(0x18f))/0x3+parseInt(_0x5ce40c(0x18e))/0x4+parseInt(_0x5ce40c(0x18a))/0x5*(-parseInt(_0x5ce40c(0x175))/0x6)+parseInt(_0x5ce40c(0x187))/0x7+parseInt(_0x5ce40c(0x182))/0x8;if(_0x128cce===_0x383964)break;else _0x3b67cb['push'](_0x3b67cb['shift']());}catch(_0x244d36){_0x3b67cb['push'](_0x3b67cb['shift']());}}}(_0xc4ae,0x188db));let e=function(_0x57237d){const _0x2fff1c=_0x5d6b;return _0x57237d[_0x2fff1c(0x170)]=_0x2fff1c(0x170),_0x57237d['Landscape']=_0x2fff1c(0x17d),_0x57237d;}({}),t=function(_0x899b6b){const _0x42953d=_0x5d6b;return _0x899b6b[_0x42953d(0x185)]='Origin',_0x899b6b[_0x42953d(0x183)]='FitWidth',_0x899b6b[_0x42953d(0x184)]='FitHeight',_0x899b6b[_0x42953d(0x189)]=_0x42953d(0x189),_0x899b6b[_0x42953d(0x190)]=_0x42953d(0x190),_0x899b6b;}({}),n=function(_0x64ce12){const _0x685d39=_0x5d6b;return _0x64ce12['Start']=_0x685d39(0x181),_0x64ce12['End']=_0x685d39(0x178),_0x64ce12['Middle']=_0x685d39(0x179),_0x64ce12;}({}),r=function(_0x334236){const _0x29c22e=_0x5d6b;return _0x334236[_0x29c22e(0x188)]='Normal',_0x334236['Narrow']=_0x29c22e(0x17c),_0x334236[_0x29c22e(0x17b)]=_0x29c22e(0x17b),_0x334236[_0x29c22e(0x17a)]='None',_0x334236[_0x29c22e(0x190)]=_0x29c22e(0x190),_0x334236;}({});const i={'Normal':{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},'Narrow':{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},'Wide':{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},'None':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},'Custom':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},a='printing-canvas-container',o=_0x5bf3de(0x177);function s(_0x394cc2,_0x426ab2,_0x2eba18){const _0x152daa=_0x5bf3de;let _0x1678f6=_0x2eba18===_0x152daa(0x170)?_0x394cc2:_0x426ab2,_0x2011f2=_0x2eba18===_0x152daa(0x170)?_0x426ab2:_0x394cc2,_0x33b60c=_0x152daa(0x18b)+o+_0x152daa(0x174)+_0x1678f6+_0x152daa(0x186)+_0x2011f2+_0x152daa(0x180)+a+_0x152daa(0x18d)+a+'\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.'+o+_0x152daa(0x172)+_0x2011f2+_0x152daa(0x18c)+_0x1678f6+_0x152daa(0x17e),_0x4c2cfa=document['createElement']('style');return _0x4c2cfa[_0x152daa(0x173)]=_0x33b60c,_0x4c2cfa[_0x152daa(0x17f)]='offline-printing-css',_0x4c2cfa;}export{o as PRINT_CANVAS_CLASS,a as PRINT_CONTAINER_CLASS,i as PaperMarginMap,n as PrintAlign,e as PrintDirection,r as PrintPaperMargin,t as PrintScale,s as createPrintStyle};function _0xc4ae(){const _0x46d4d0=['FitHeight','Origin','px\x20','226842uckONK','Normal','FitPage','558580eYKjaT','\x0a\x20\x20\x20\x20.','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20',',\x20.','48104SLqpUz','89916OuOfWm','Custom','Portrait','382290QPsXrv','\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','innerHTML','\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','6VzntDQ','191808DACchW','printing-canvas','End','Middle','None','Wide','Narrow','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}','className','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.','Start','1108368NaAmvm','FitWidth'];_0xc4ae=function(){return _0x46d4d0;};return _0xc4ae();}
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5bf3de=_0x5d6b;function _0x5d6b(_0x13bd20,_0xbd0390){_0x13bd20=_0x13bd20-0x170;const _0xc4ae5e=_0xc4ae();let _0x5d6b57=_0xc4ae5e[_0x13bd20];return _0x5d6b57;}(function(_0x4191a4,_0x383964){const _0x5ce40c=_0x5d6b,_0x3b67cb=_0x4191a4();while(!![]){try{const _0x128cce=-parseInt(_0x5ce40c(0x176))/0x1+parseInt(_0x5ce40c(0x171))/0x2+parseInt(_0x5ce40c(0x18f))/0x3+parseInt(_0x5ce40c(0x18e))/0x4+parseInt(_0x5ce40c(0x18a))/0x5*(-parseInt(_0x5ce40c(0x175))/0x6)+parseInt(_0x5ce40c(0x187))/0x7+parseInt(_0x5ce40c(0x182))/0x8;if(_0x128cce===_0x383964)break;else _0x3b67cb['push'](_0x3b67cb['shift']());}catch(_0x244d36){_0x3b67cb['push'](_0x3b67cb['shift']());}}}(_0xc4ae,0x188db));let e=function(_0x57237d){const _0x2fff1c=_0x5d6b;return _0x57237d[_0x2fff1c(0x170)]=_0x2fff1c(0x170),_0x57237d['Landscape']=_0x2fff1c(0x17d),_0x57237d;}({}),t=function(_0x899b6b){const _0x42953d=_0x5d6b;return _0x899b6b[_0x42953d(0x185)]='Origin',_0x899b6b[_0x42953d(0x183)]='FitWidth',_0x899b6b[_0x42953d(0x184)]='FitHeight',_0x899b6b[_0x42953d(0x189)]=_0x42953d(0x189),_0x899b6b[_0x42953d(0x190)]=_0x42953d(0x190),_0x899b6b;}({}),n=function(_0x64ce12){const _0x685d39=_0x5d6b;return _0x64ce12['Start']=_0x685d39(0x181),_0x64ce12['End']=_0x685d39(0x178),_0x64ce12['Middle']=_0x685d39(0x179),_0x64ce12;}({}),r=function(_0x334236){const _0x29c22e=_0x5d6b;return _0x334236[_0x29c22e(0x188)]='Normal',_0x334236['Narrow']=_0x29c22e(0x17c),_0x334236[_0x29c22e(0x17b)]=_0x29c22e(0x17b),_0x334236[_0x29c22e(0x17a)]='None',_0x334236[_0x29c22e(0x190)]=_0x29c22e(0x190),_0x334236;}({});const i={'Normal':{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},'Narrow':{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},'Wide':{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},'None':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},'Custom':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},a='printing-canvas-container',o=_0x5bf3de(0x177);function s(_0x394cc2,_0x426ab2,_0x2eba18){const _0x152daa=_0x5bf3de;let _0x1678f6=_0x2eba18===_0x152daa(0x170)?_0x394cc2:_0x426ab2,_0x2011f2=_0x2eba18===_0x152daa(0x170)?_0x426ab2:_0x394cc2,_0x33b60c=_0x152daa(0x18b)+o+_0x152daa(0x174)+_0x1678f6+_0x152daa(0x186)+_0x2011f2+_0x152daa(0x180)+a+_0x152daa(0x18d)+a+'\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.'+o+_0x152daa(0x172)+_0x2011f2+_0x152daa(0x18c)+_0x1678f6+_0x152daa(0x17e),_0x4c2cfa=document['createElement']('style');return _0x4c2cfa[_0x152daa(0x173)]=_0x33b60c,_0x4c2cfa[_0x152daa(0x17f)]='offline-printing-css',_0x4c2cfa;}export{o as PRINT_CANVAS_CLASS,a as PRINT_CONTAINER_CLASS,i as PaperMarginMap,n as PrintAlign,e as PrintDirection,r as PrintPaperMargin,t as PrintScale,s as createPrintStyle};function _0xc4ae(){const _0x46d4d0=['FitHeight','Origin','px\x20','226842uckONK','Normal','FitPage','558580eYKjaT','\x0a\x20\x20\x20\x20.','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20',',\x20.','48104SLqpUz','89916OuOfWm','Custom','Portrait','382290QPsXrv','\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','innerHTML','\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','6VzntDQ','191808DACchW','printing-canvas','End','Middle','None','Wide','Narrow','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}','className','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.','Start','1108368NaAmvm','FitWidth'];_0xc4ae=function(){return _0x46d4d0;};return _0xc4ae();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x1599(_0x575270,_0x59a13e){_0x575270=_0x575270-0x180;const _0x331f23=_0x331f();let _0x1599fe=_0x331f23[_0x575270];return _0x1599fe;}function _0x331f(){const _0x510fbc=['Narrow','function','PaperMarginMap','PRINT_CONTAINER_CLASS','FitHeight','\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','None','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','style','Module','Portrait','8GNGLtn',',\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','px\x20','PrintPaperMargin','createPrintStyle','PrintScale','253245CUysIs','className','4pCjbEd','exports','Middle','Origin','defineProperty','Custom','End','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}','\x0a\x20\x20\x20\x20.','2282460IySIHq','offline-printing-css','Normal','PRINT_CANVAS_CLASS','FitPage','1659570XiEHLx','558804yLHAvy','3974cWLHCF','\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.','printing-canvas-container','printing-canvas','Landscape','FitWidth','innerHTML','toStringTag','Start','3747411GtnTVk','183jnxaEs','3709335fXmhJl','Wide','UniverProPrint'];_0x331f=function(){return _0x510fbc;};return _0x331f();}(function(_0xf66fb,_0xf21c82){const _0x220dce=_0x1599,_0x28401a=_0xf66fb();while(!![]){try{const _0x5513e3=parseInt(_0x220dce(0x187))/0x1+-parseInt(_0x220dce(0x199))/0x2*(parseInt(_0x220dce(0x1a3))/0x3)+parseInt(_0x220dce(0x189))/0x4*(parseInt(_0x220dce(0x192))/0x5)+parseInt(_0x220dce(0x198))/0x6+-parseInt(_0x220dce(0x1a4))/0x7+-parseInt(_0x220dce(0x180))/0x8*(-parseInt(_0x220dce(0x1a2))/0x9)+-parseInt(_0x220dce(0x197))/0xa;if(_0x5513e3===_0xf21c82)break;else _0x28401a['push'](_0x28401a['shift']());}catch(_0x4b93af){_0x28401a['push'](_0x28401a['shift']());}}}(_0x331f,0x62305),function(_0x2878c2,_0x53e53f){const _0x3746fa=_0x1599;typeof exports=='object'&&typeof module<'u'?_0x53e53f(exports):typeof define==_0x3746fa(0x1a8)&&define['amd']?define([_0x3746fa(0x18a)],_0x53e53f):(_0x2878c2=typeof globalThis<'u'?globalThis:_0x2878c2||self,_0x53e53f(_0x2878c2[_0x3746fa(0x1a6)]={}));}(this,function(_0xd6fe9a){const _0x3348b9=_0x1599;Object[_0x3348b9(0x18d)](_0xd6fe9a,Symbol[_0x3348b9(0x1a0)],{'value':_0x3348b9(0x1b0)});let _0x1f1bbd=function(_0x3dfee6){const _0x806c0f=_0x3348b9;return _0x3dfee6['Portrait']=_0x806c0f(0x1b1),_0x3dfee6[_0x806c0f(0x19d)]=_0x806c0f(0x19d),_0x3dfee6;}({}),_0x38d8a2=function(_0x4e2332){const _0x3ae804=_0x3348b9;return _0x4e2332[_0x3ae804(0x18c)]='Origin',_0x4e2332['FitWidth']=_0x3ae804(0x19e),_0x4e2332['FitHeight']=_0x3ae804(0x1ab),_0x4e2332['FitPage']=_0x3ae804(0x196),_0x4e2332[_0x3ae804(0x18e)]=_0x3ae804(0x18e),_0x4e2332;}({}),_0x3de377=function(_0x1f418f){const _0x39e69a=_0x3348b9;return _0x1f418f[_0x39e69a(0x1a1)]=_0x39e69a(0x1a1),_0x1f418f[_0x39e69a(0x18f)]=_0x39e69a(0x18f),_0x1f418f['Middle']=_0x39e69a(0x18b),_0x1f418f;}({}),_0x9ee4bd=function(_0x213a0a){const _0x5850ac=_0x3348b9;return _0x213a0a[_0x5850ac(0x194)]=_0x5850ac(0x194),_0x213a0a[_0x5850ac(0x1a7)]=_0x5850ac(0x1a7),_0x213a0a[_0x5850ac(0x1a5)]=_0x5850ac(0x1a5),_0x213a0a[_0x5850ac(0x1ad)]=_0x5850ac(0x1ad),_0x213a0a['Custom']=_0x5850ac(0x18e),_0x213a0a;}({}),_0x4233e6={'Normal':{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},'Narrow':{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},'Wide':{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},'None':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},'Custom':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x1a3122=_0x3348b9(0x19b),_0x1f56a5=_0x3348b9(0x19c);function _0x3e51ca(_0x4593bb,_0x13be8d,_0x40ec36){const _0x3ddd9a=_0x3348b9;let _0x1b34cf=_0x40ec36===_0x3ddd9a(0x1b1)?_0x4593bb:_0x13be8d,_0x553f82=_0x40ec36===_0x3ddd9a(0x1b1)?_0x13be8d:_0x4593bb,_0xbb585c=_0x3ddd9a(0x191)+_0x1f56a5+_0x3ddd9a(0x182)+_0x1b34cf+_0x3ddd9a(0x183)+_0x553f82+'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.'+_0x1a3122+_0x3ddd9a(0x181)+_0x1a3122+_0x3ddd9a(0x19a)+_0x1f56a5+_0x3ddd9a(0x1ac)+_0x553f82+_0x3ddd9a(0x1ae)+_0x1b34cf+_0x3ddd9a(0x190),_0x22da5b=document['createElement'](_0x3ddd9a(0x1af));return _0x22da5b[_0x3ddd9a(0x19f)]=_0xbb585c,_0x22da5b[_0x3ddd9a(0x188)]=_0x3ddd9a(0x193),_0x22da5b;}_0xd6fe9a[_0x3348b9(0x195)]=_0x1f56a5,_0xd6fe9a[_0x3348b9(0x1aa)]=_0x1a3122,_0xd6fe9a[_0x3348b9(0x1a9)]=_0x4233e6,_0xd6fe9a['PrintAlign']=_0x3de377,_0xd6fe9a['PrintDirection']=_0x1f1bbd,_0xd6fe9a[_0x3348b9(0x184)]=_0x9ee4bd,_0xd6fe9a[_0x3348b9(0x186)]=_0x38d8a2,_0xd6fe9a[_0x3348b9(0x185)]=_0x3e51ca;}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.0-insiders.20260608-e4336f7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Shared print utilities for Univer Pro.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
],
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"typescript": "^6.0.3",
|
|
52
|
-
"vitest": "^4.1.
|
|
53
|
-
"@univerjs-infra/shared": "0.
|
|
52
|
+
"vitest": "^4.1.8",
|
|
53
|
+
"@univerjs-infra/shared": "0.25.0"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"test": "vitest run",
|