@univerjs-pro/print 0.22.1 → 0.23.0-insiders.20260522-e8f2a3b
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 _0x42f520=_0x26ae;(function(_0x42cf49,_0x3690b5){const _0x17157c=_0x26ae,_0x3b2440=_0x42cf49();while(!![]){try{const _0x1cdcaf=parseInt(_0x17157c(0xde))/0x1+-parseInt(_0x17157c(0xeb))/0x2*(-parseInt(_0x17157c(0xfb))/0x3)+parseInt(_0x17157c(0xe4))/0x4*(parseInt(_0x17157c(0x101))/0x5)+parseInt(_0x17157c(0xf0))/0x6*(parseInt(_0x17157c(0xfe))/0x7)+-parseInt(_0x17157c(0xfa))/0x8*(parseInt(_0x17157c(0xe5))/0x9)+parseInt(_0x17157c(0xee))/0xa*(parseInt(_0x17157c(0xe6))/0xb)+-parseInt(_0x17157c(0xe9))/0xc*(parseInt(_0x17157c(0xe2))/0xd);if(_0x1cdcaf===_0x3690b5)break;else _0x3b2440['push'](_0x3b2440['shift']());}catch(_0x16e730){_0x3b2440['push'](_0x3b2440['shift']());}}}(_0x51e1,0x7d325),Object[_0x42f520(0xf8)](exports,Symbol['toStringTag'],{'value':_0x42f520(0xf7)}));let e=function(_0x2440ca){const _0x574f74=_0x42f520;return _0x2440ca[_0x574f74(0xf2)]='Portrait',_0x2440ca[_0x574f74(0xdb)]=_0x574f74(0xdb),_0x2440ca;}({}),t=function(_0x98f04f){const _0x136e78=_0x42f520;return _0x98f04f['Origin']=_0x136e78(0xd6),_0x98f04f[_0x136e78(0xd9)]=_0x136e78(0xd9),_0x98f04f[_0x136e78(0xe1)]=_0x136e78(0xe1),_0x98f04f[_0x136e78(0xe0)]='FitPage',_0x98f04f[_0x136e78(0xf3)]=_0x136e78(0xf3),_0x98f04f;}({}),n=function(_0x4b7438){const _0x56323d=_0x42f520;return _0x4b7438[_0x56323d(0xe8)]=_0x56323d(0xe8),_0x4b7438[_0x56323d(0xed)]=_0x56323d(0xed),_0x4b7438[_0x56323d(0xf4)]=_0x56323d(0xf4),_0x4b7438;}({}),r=function(_0x1cba40){const _0x5748aa=_0x42f520;return _0x1cba40[_0x5748aa(0xdc)]=_0x5748aa(0xdc),_0x1cba40[_0x5748aa(0xf9)]='Narrow',_0x1cba40[_0x5748aa(0xdd)]=_0x5748aa(0xdd),_0x1cba40['None']=_0x5748aa(0xd8),_0x1cba40[_0x5748aa(0xf3)]=_0x5748aa(0xf3),_0x1cba40;}({});function _0x51e1(){const _0x27f4a1=['printing-canvas-container','None','FitWidth','className','Landscape','Normal','Wide','850405UtyXLo','PaperMarginMap','FitPage','FitHeight','104wiIKzU','offline-printing-css','3055948UrOArB','4549644SyCqCT','4257627SdUfyv','innerHTML','Start','3087528TPUeiZ','createPrintStyle','22sTiElv','\x0a\x20\x20\x20\x20.','End','10wNqVvk',',\x20.','6rqGNsb','px\x20','Portrait','Custom','Middle','PrintScale','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}','Module','defineProperty','Narrow','16Muswli','179691kHAoBP','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.','PrintAlign','6453111hTaOom','PrintDirection','\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','5zxQasa','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\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.','PrintPaperMargin','Origin'];_0x51e1=function(){return _0x27f4a1;};return _0x51e1();}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=_0x42f520(0xd7),o='printing-canvas';function _0x26ae(_0x185dcd,_0x29fd51){_0x185dcd=_0x185dcd-0xd3;const _0x51e126=_0x51e1();let _0x26ae2e=_0x51e126[_0x185dcd];return _0x26ae2e;}function s(_0x654c1b,_0x57ec18,_0x4ce3ec){const _0x52ebf8=_0x42f520;let _0x1b77ff=_0x4ce3ec==='Portrait'?_0x654c1b:_0x57ec18,_0x26cd33=_0x4ce3ec===_0x52ebf8(0xf2)?_0x57ec18:_0x654c1b,_0x3bfb8f=_0x52ebf8(0xec)+o+'\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'+_0x1b77ff+_0x52ebf8(0xf1)+_0x26cd33+_0x52ebf8(0xfc)+a+_0x52ebf8(0xef)+a+_0x52ebf8(0xd4)+o+_0x52ebf8(0x100)+_0x26cd33+_0x52ebf8(0xd3)+_0x1b77ff+_0x52ebf8(0xf6),_0x107bcf=document['createElement']('style');return _0x107bcf[_0x52ebf8(0xe7)]=_0x3bfb8f,_0x107bcf[_0x52ebf8(0xda)]=_0x52ebf8(0xe3),_0x107bcf;}exports['PRINT_CANVAS_CLASS']=o,exports['PRINT_CONTAINER_CLASS']=a,exports[_0x42f520(0xdf)]=i,exports[_0x42f520(0xfd)]=n,exports[_0x42f520(0xff)]=e,exports[_0x42f520(0xd5)]=r,exports[_0x42f520(0xf5)]=t,exports[_0x42f520(0xea)]=s;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x35cc(){const _0x753d7d=['411754ymQLwP','17105NnyoeZ','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.','6aANwyB','Origin','30332wCvKmO','1095IjGCGx','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','22808RrmywN','createElement','\x0a\x20\x20\x20\x20.','2977580WNoTLQ','offline-printing-css','End','2046rbiOgQ','printing-canvas','Custom','className','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}','Narrow','Portrait','style','innerHTML','FitPage','14244ruoFcG','Wide','Middle','\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',',\x20.','96qRHaiz','\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','12djtPuZ','\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.','FitHeight','FitWidth','Normal','None','7752987vvvfSt'];_0x35cc=function(){return _0x753d7d;};return _0x35cc();}const _0x1c3490=_0x32c6;(function(_0x317741,_0x3c19c6){const _0x542642=_0x32c6,_0x195aed=_0x317741();while(!![]){try{const _0x12b5f2=-parseInt(_0x542642(0xf2))/0x1*(parseInt(_0x542642(0xed))/0x2)+parseInt(_0x542642(0x10a))/0x3*(-parseInt(_0x542642(0xef))/0x4)+parseInt(_0x542642(0xf0))/0x5*(parseInt(_0x542642(0xf8))/0x6)+parseInt(_0x542642(0xe9))/0x7*(-parseInt(_0x542642(0x108))/0x8)+-parseInt(_0x542642(0xe8))/0x9+parseInt(_0x542642(0xf5))/0xa+-parseInt(_0x542642(0xea))/0xb*(-parseInt(_0x542642(0x102))/0xc);if(_0x12b5f2===_0x3c19c6)break;else _0x195aed['push'](_0x195aed['shift']());}catch(_0x549174){_0x195aed['push'](_0x195aed['shift']());}}}(_0x35cc,0x86cdf));let e=function(_0x1eacaf){const _0x30943f=_0x32c6;return _0x1eacaf['Portrait']=_0x30943f(0xfe),_0x1eacaf['Landscape']='Landscape',_0x1eacaf;}({}),t=function(_0x3c5e9b){const _0x37800c=_0x32c6;return _0x3c5e9b[_0x37800c(0xee)]=_0x37800c(0xee),_0x3c5e9b[_0x37800c(0x10d)]=_0x37800c(0x10d),_0x3c5e9b[_0x37800c(0x10c)]='FitHeight',_0x3c5e9b[_0x37800c(0x101)]='FitPage',_0x3c5e9b['Custom']=_0x37800c(0xfa),_0x3c5e9b;}({}),n=function(_0x4c346a){const _0x8ec1b5=_0x32c6;return _0x4c346a['Start']=_0x8ec1b5(0xeb),_0x4c346a[_0x8ec1b5(0xf7)]='End',_0x4c346a[_0x8ec1b5(0x104)]=_0x8ec1b5(0x104),_0x4c346a;}({}),r=function(_0x1ba425){const _0x457682=_0x32c6;return _0x1ba425[_0x457682(0xe6)]=_0x457682(0xe6),_0x1ba425[_0x457682(0xfd)]='Narrow',_0x1ba425[_0x457682(0x103)]=_0x457682(0x103),_0x1ba425[_0x457682(0xe7)]='None',_0x1ba425['Custom']=_0x457682(0xfa),_0x1ba425;}({});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=_0x1c3490(0x106),o=_0x1c3490(0xf9);function _0x32c6(_0x2063a4,_0x873e04){_0x2063a4=_0x2063a4-0xe6;const _0x35ccc5=_0x35cc();let _0x32c6a0=_0x35ccc5[_0x2063a4];return _0x32c6a0;}function s(_0x34c1e7,_0x3cd597,_0xd4f045){const _0x3107bc=_0x1c3490;let _0x4b494a=_0xd4f045===_0x3107bc(0xfe)?_0x34c1e7:_0x3cd597,_0x45acab=_0xd4f045===_0x3107bc(0xfe)?_0x3cd597:_0x34c1e7,_0x48c6c2=_0x3107bc(0xf4)+o+_0x3107bc(0x105)+_0x4b494a+'px\x20'+_0x45acab+_0x3107bc(0xec)+a+_0x3107bc(0x107)+a+_0x3107bc(0x10b)+o+_0x3107bc(0x109)+_0x45acab+_0x3107bc(0xf1)+_0x4b494a+_0x3107bc(0xfc),_0x32e799=document[_0x3107bc(0xf3)](_0x3107bc(0xff));return _0x32e799[_0x3107bc(0x100)]=_0x48c6c2,_0x32e799[_0x3107bc(0xfb)]=_0x3107bc(0xf6),_0x32e799;}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};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x35cc(){const _0x753d7d=['411754ymQLwP','17105NnyoeZ','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.','6aANwyB','Origin','30332wCvKmO','1095IjGCGx','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','22808RrmywN','createElement','\x0a\x20\x20\x20\x20.','2977580WNoTLQ','offline-printing-css','End','2046rbiOgQ','printing-canvas','Custom','className','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}','Narrow','Portrait','style','innerHTML','FitPage','14244ruoFcG','Wide','Middle','\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',',\x20.','96qRHaiz','\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','12djtPuZ','\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.','FitHeight','FitWidth','Normal','None','7752987vvvfSt'];_0x35cc=function(){return _0x753d7d;};return _0x35cc();}const _0x1c3490=_0x32c6;(function(_0x317741,_0x3c19c6){const _0x542642=_0x32c6,_0x195aed=_0x317741();while(!![]){try{const _0x12b5f2=-parseInt(_0x542642(0xf2))/0x1*(parseInt(_0x542642(0xed))/0x2)+parseInt(_0x542642(0x10a))/0x3*(-parseInt(_0x542642(0xef))/0x4)+parseInt(_0x542642(0xf0))/0x5*(parseInt(_0x542642(0xf8))/0x6)+parseInt(_0x542642(0xe9))/0x7*(-parseInt(_0x542642(0x108))/0x8)+-parseInt(_0x542642(0xe8))/0x9+parseInt(_0x542642(0xf5))/0xa+-parseInt(_0x542642(0xea))/0xb*(-parseInt(_0x542642(0x102))/0xc);if(_0x12b5f2===_0x3c19c6)break;else _0x195aed['push'](_0x195aed['shift']());}catch(_0x549174){_0x195aed['push'](_0x195aed['shift']());}}}(_0x35cc,0x86cdf));let e=function(_0x1eacaf){const _0x30943f=_0x32c6;return _0x1eacaf['Portrait']=_0x30943f(0xfe),_0x1eacaf['Landscape']='Landscape',_0x1eacaf;}({}),t=function(_0x3c5e9b){const _0x37800c=_0x32c6;return _0x3c5e9b[_0x37800c(0xee)]=_0x37800c(0xee),_0x3c5e9b[_0x37800c(0x10d)]=_0x37800c(0x10d),_0x3c5e9b[_0x37800c(0x10c)]='FitHeight',_0x3c5e9b[_0x37800c(0x101)]='FitPage',_0x3c5e9b['Custom']=_0x37800c(0xfa),_0x3c5e9b;}({}),n=function(_0x4c346a){const _0x8ec1b5=_0x32c6;return _0x4c346a['Start']=_0x8ec1b5(0xeb),_0x4c346a[_0x8ec1b5(0xf7)]='End',_0x4c346a[_0x8ec1b5(0x104)]=_0x8ec1b5(0x104),_0x4c346a;}({}),r=function(_0x1ba425){const _0x457682=_0x32c6;return _0x1ba425[_0x457682(0xe6)]=_0x457682(0xe6),_0x1ba425[_0x457682(0xfd)]='Narrow',_0x1ba425[_0x457682(0x103)]=_0x457682(0x103),_0x1ba425[_0x457682(0xe7)]='None',_0x1ba425['Custom']=_0x457682(0xfa),_0x1ba425;}({});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=_0x1c3490(0x106),o=_0x1c3490(0xf9);function _0x32c6(_0x2063a4,_0x873e04){_0x2063a4=_0x2063a4-0xe6;const _0x35ccc5=_0x35cc();let _0x32c6a0=_0x35ccc5[_0x2063a4];return _0x32c6a0;}function s(_0x34c1e7,_0x3cd597,_0xd4f045){const _0x3107bc=_0x1c3490;let _0x4b494a=_0xd4f045===_0x3107bc(0xfe)?_0x34c1e7:_0x3cd597,_0x45acab=_0xd4f045===_0x3107bc(0xfe)?_0x3cd597:_0x34c1e7,_0x48c6c2=_0x3107bc(0xf4)+o+_0x3107bc(0x105)+_0x4b494a+'px\x20'+_0x45acab+_0x3107bc(0xec)+a+_0x3107bc(0x107)+a+_0x3107bc(0x10b)+o+_0x3107bc(0x109)+_0x45acab+_0x3107bc(0xf1)+_0x4b494a+_0x3107bc(0xfc),_0x32e799=document[_0x3107bc(0xf3)](_0x3107bc(0xff));return _0x32e799[_0x3107bc(0x100)]=_0x48c6c2,_0x32e799[_0x3107bc(0xfb)]=_0x3107bc(0xf6),_0x32e799;}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};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x36d7(_0x3df558,_0x402ec8){_0x3df558=_0x3df558-0xa2;const _0x117fe8=_0x117f();let _0x36d77a=_0x117fe8[_0x3df558];return _0x36d77a;}function _0x117f(){const _0x1c16e8=['innerHTML','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.','function','3BJkCCT','18pagpXP','object','printing-canvas','5947164oTAwLK','20215536HLwnWa','End','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Normal','Module','3132604NqsloC','8525hbLfqn','416hqfwPL','\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','FitHeight','printing-canvas-container','Start','14GtoEBF','amd','81870XzECMZ','createElement','Custom','FitWidth','Origin','PaperMarginMap','Middle','PrintScale','None','createPrintStyle','defineProperty','Landscape','\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.','PRINT_CANVAS_CLASS','762655NMSjtK','PRINT_CONTAINER_CLASS','Wide','Portrait','UniverProPrint','style','19005qJraTw','Narrow','offline-printing-css','exports','6050cvvolW','PrintAlign',',\x20.','toStringTag','PrintDirection'];_0x117f=function(){return _0x1c16e8;};return _0x117f();}(function(_0x40edd7,_0x427b88){const _0x2b673c=_0x36d7,_0x5ceeb4=_0x40edd7();while(!![]){try{const _0xc33323=-parseInt(_0x2b673c(0xa5))/0x1*(parseInt(_0x2b673c(0xa3))/0x2)+parseInt(_0x2b673c(0xc5))/0x3*(-parseInt(_0x2b673c(0xcf))/0x4)+parseInt(_0x2b673c(0xb3))/0x5*(parseInt(_0x2b673c(0xc6))/0x6)+parseInt(_0x2b673c(0xb9))/0x7*(-parseInt(_0x2b673c(0xd1))/0x8)+-parseInt(_0x2b673c(0xc9))/0x9+parseInt(_0x2b673c(0xbd))/0xa*(parseInt(_0x2b673c(0xd0))/0xb)+parseInt(_0x2b673c(0xca))/0xc;if(_0xc33323===_0x427b88)break;else _0x5ceeb4['push'](_0x5ceeb4['shift']());}catch(_0x49cbee){_0x5ceeb4['push'](_0x5ceeb4['shift']());}}}(_0x117f,0x6e90f),function(_0xb1e5ee,_0x1329ee){const _0x42c22f=_0x36d7;typeof exports==_0x42c22f(0xc7)&&typeof module<'u'?_0x1329ee(exports):typeof define==_0x42c22f(0xc4)&&define[_0x42c22f(0xa4)]?define([_0x42c22f(0xbc)],_0x1329ee):(_0xb1e5ee=typeof globalThis<'u'?globalThis:_0xb1e5ee||self,_0x1329ee(_0xb1e5ee[_0x42c22f(0xb7)]={}));}(this,function(_0x11bf51){const _0x529143=_0x36d7;Object[_0x529143(0xaf)](_0x11bf51,Symbol[_0x529143(0xc0)],{'value':_0x529143(0xce)});let _0x4b1844=function(_0x39696e){const _0x840685=_0x529143;return _0x39696e[_0x840685(0xb6)]=_0x840685(0xb6),_0x39696e[_0x840685(0xb0)]=_0x840685(0xb0),_0x39696e;}({}),_0xc03ae6=function(_0x8cfc29){const _0x39fe1b=_0x529143;return _0x8cfc29['Origin']=_0x39fe1b(0xa9),_0x8cfc29[_0x39fe1b(0xa8)]=_0x39fe1b(0xa8),_0x8cfc29['FitHeight']=_0x39fe1b(0xd3),_0x8cfc29['FitPage']='FitPage',_0x8cfc29['Custom']=_0x39fe1b(0xa7),_0x8cfc29;}({}),_0x4065f7=function(_0x4a31c8){const _0x352339=_0x529143;return _0x4a31c8[_0x352339(0xa2)]=_0x352339(0xa2),_0x4a31c8[_0x352339(0xcb)]=_0x352339(0xcb),_0x4a31c8['Middle']=_0x352339(0xab),_0x4a31c8;}({}),_0x24434b=function(_0x539871){const _0x3719fc=_0x529143;return _0x539871['Normal']=_0x3719fc(0xcd),_0x539871[_0x3719fc(0xba)]='Narrow',_0x539871[_0x3719fc(0xb5)]=_0x3719fc(0xb5),_0x539871[_0x3719fc(0xad)]=_0x3719fc(0xad),_0x539871['Custom']=_0x3719fc(0xa7),_0x539871;}({}),_0x5eb51d={'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}},_0x400bf9=_0x529143(0xd4),_0x474dda=_0x529143(0xc8);function _0x489370(_0x5803f2,_0x7291f2,_0x19e5ca){const _0x448b89=_0x529143;let _0x9f5e3a=_0x19e5ca===_0x448b89(0xb6)?_0x5803f2:_0x7291f2,_0x2298bd=_0x19e5ca===_0x448b89(0xb6)?_0x7291f2:_0x5803f2,_0x409ab4='\x0a\x20\x20\x20\x20.'+_0x474dda+'\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'+_0x9f5e3a+'px\x20'+_0x2298bd+_0x448b89(0xc3)+_0x400bf9+_0x448b89(0xbf)+_0x400bf9+_0x448b89(0xb1)+_0x474dda+_0x448b89(0xd2)+_0x2298bd+_0x448b89(0xcc)+_0x9f5e3a+'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}',_0x264f85=document[_0x448b89(0xa6)](_0x448b89(0xb8));return _0x264f85[_0x448b89(0xc2)]=_0x409ab4,_0x264f85['className']=_0x448b89(0xbb),_0x264f85;}_0x11bf51[_0x529143(0xb2)]=_0x474dda,_0x11bf51[_0x529143(0xb4)]=_0x400bf9,_0x11bf51[_0x529143(0xaa)]=_0x5eb51d,_0x11bf51[_0x529143(0xbe)]=_0x4065f7,_0x11bf51[_0x529143(0xc1)]=_0x4b1844,_0x11bf51['PrintPaperMargin']=_0x24434b,_0x11bf51[_0x529143(0xac)]=_0xc03ae6,_0x11bf51[_0x529143(0xae)]=_0x489370;}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0-insiders.20260522-e8f2a3b",
|
|
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.6",
|
|
53
|
+
"@univerjs-infra/shared": "0.23.0"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"test": "vitest run",
|