@univerjs-pro/print 0.8.2 → 0.8.3-nightly.202507010644
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';function
|
|
1
|
+
'use strict';const _0x5afb37=_0x3bc1;function _0x3bc1(_0x28cb7d,_0x5102d7){const _0x48e099=_0x48e0();return _0x3bc1=function(_0x3bc1f8,_0x46ea79){_0x3bc1f8=_0x3bc1f8-0xc6;let _0x3efb41=_0x48e099[_0x3bc1f8];return _0x3efb41;},_0x3bc1(_0x28cb7d,_0x5102d7);}(function(_0x443125,_0x366a9d){const _0x20fdaa=_0x3bc1,_0x34f806=_0x443125();while(!![]){try{const _0x413d2e=-parseInt(_0x20fdaa(0xcd))/0x1*(parseInt(_0x20fdaa(0xe2))/0x2)+-parseInt(_0x20fdaa(0xe8))/0x3*(parseInt(_0x20fdaa(0xde))/0x4)+-parseInt(_0x20fdaa(0xd5))/0x5*(-parseInt(_0x20fdaa(0xed))/0x6)+parseInt(_0x20fdaa(0xd4))/0x7*(-parseInt(_0x20fdaa(0xc9))/0x8)+parseInt(_0x20fdaa(0xd0))/0x9+parseInt(_0x20fdaa(0xe1))/0xa+-parseInt(_0x20fdaa(0xef))/0xb*(-parseInt(_0x20fdaa(0xd8))/0xc);if(_0x413d2e===_0x366a9d)break;else _0x34f806['push'](_0x34f806['shift']());}catch(_0x1fcf07){_0x34f806['push'](_0x34f806['shift']());}}}(_0x48e0,0x2335b));Object[_0x5afb37(0xc8)](exports,Symbol['toStringTag'],{'value':_0x5afb37(0xc7)});function _0x48e0(){const _0x20d66c=[',\x20.','44NwuzpV','Normal','Narrow','1254897RVEWZq','PRINT_CONTAINER_CLASS','Wide','createPrintStyle','961786JxwCMG','5ESVKlz','FitHeight','PRINT_CANVAS_CLASS','3675348hnapnJ','None','Portrait','px\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','offline-printing-css','939076GSdxBJ','Middle','FitWidth','202270GkXKnx','1210cdlPfL','PrintPaperMargin','createElement','PrintScale','End','\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.','3hFdeQU','Custom','FitPage','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Origin','1286790QcjmKp','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}','11bDsRKD','PrintAlign','innerHTML','Module','defineProperty','16hAGslu','className','Start'];_0x48e0=function(){return _0x20d66c;};return _0x48e0();}var e=(_0xcea82d=>(_0xcea82d['Portrait']=_0x5afb37(0xda),_0xcea82d['Landscape']='Landscape',_0xcea82d))(e||{}),l=(_0x182b50=>(_0x182b50[_0x5afb37(0xec)]=_0x5afb37(0xec),_0x182b50[_0x5afb37(0xe0)]=_0x5afb37(0xe0),_0x182b50[_0x5afb37(0xd6)]=_0x5afb37(0xd6),_0x182b50['FitPage']=_0x5afb37(0xea),_0x182b50[_0x5afb37(0xe9)]=_0x5afb37(0xe9),_0x182b50))(l||{}),c=(_0x54a127=>(_0x54a127[_0x5afb37(0xcb)]='Start',_0x54a127[_0x5afb37(0xe6)]=_0x5afb37(0xe6),_0x54a127[_0x5afb37(0xdf)]=_0x5afb37(0xdf),_0x54a127))(c||{}),i=(_0x382e1e=>(_0x382e1e[_0x5afb37(0xce)]=_0x5afb37(0xce),_0x382e1e['Narrow']=_0x5afb37(0xcf),_0x382e1e['Wide']='Wide',_0x382e1e[_0x5afb37(0xd9)]=_0x5afb37(0xd9),_0x382e1e))(i||{});const h={[i['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i[_0x5afb37(0xd2)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i[_0x5afb37(0xd9)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r='printing-canvas-container',n='printing-canvas';function m(_0x314936,_0x3259d4,_0xce3b83){const _0x8063bb=_0x5afb37,_0x39c778=_0xce3b83===e[_0x8063bb(0xda)]?_0x314936:_0x3259d4,_0x3ffda2=_0xce3b83===e['Portrait']?_0x3259d4:_0x314936,_0x1dd2ed='\x0a\x20\x20\x20\x20.'+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'+_0x39c778+_0x8063bb(0xdb)+_0x3ffda2+'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.'+r+_0x8063bb(0xcc)+r+_0x8063bb(0xe7)+n+_0x8063bb(0xdc)+_0x3ffda2+_0x8063bb(0xeb)+_0x39c778+_0x8063bb(0xee),_0x599443=document[_0x8063bb(0xe4)]('style');return _0x599443[_0x8063bb(0xc6)]=_0x1dd2ed,_0x599443[_0x8063bb(0xca)]=_0x8063bb(0xdd),_0x599443;}exports[_0x5afb37(0xd7)]=n,exports[_0x5afb37(0xd1)]=r,exports['PaperMarginMap']=h,exports[_0x5afb37(0xf0)]=c,exports['PrintDirection']=e,exports[_0x5afb37(0xe3)]=i,exports[_0x5afb37(0xe5)]=l,exports[_0x5afb37(0xd3)]=m;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5c1cad=_0x1241;function _0x1eb9(){const _0xaf2991=['FitHeight','518460WKZwCF','FitPage','printing-canvas','1500mSZsxA','createElement','innerHTML','14193ExcdZt',',\x20.','offline-printing-css','Portrait','267590KDzlWh','\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.','1098200kRUKoX','Middle','Custom','style','16ErcBqv','FitWidth','Normal','Wide','944004WiSaZr','\x0a\x20\x20\x20\x20.','108318DExwSl','End','\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','\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','7hWJzeA','Landscape','printing-canvas-container','Start','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Narrow','1096RClxQM','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.','None','Origin'];_0x1eb9=function(){return _0xaf2991;};return _0x1eb9();}(function(_0x33521,_0x1dc65b){const _0x414020=_0x1241,_0x157b5d=_0x33521();while(!![]){try{const _0x1a3934=parseInt(_0x414020(0x183))/0x1+parseInt(_0x414020(0x171))/0x2+-parseInt(_0x414020(0x180))/0x3+parseInt(_0x414020(0x190))/0x4*(-parseInt(_0x414020(0x18a))/0x5)+parseInt(_0x414020(0x194))/0x6*(parseInt(_0x414020(0x175))/0x7)+parseInt(_0x414020(0x17b))/0x8*(parseInt(_0x414020(0x186))/0x9)+parseInt(_0x414020(0x18c))/0xa;if(_0x1a3934===_0x1dc65b)break;else _0x157b5d['push'](_0x157b5d['shift']());}catch(_0x2076ae){_0x157b5d['push'](_0x157b5d['shift']());}}}(_0x1eb9,0x251a2));var e=(_0x876263=>(_0x876263['Portrait']=_0x5c1cad(0x189),_0x876263[_0x5c1cad(0x176)]='Landscape',_0x876263))(e||{}),l=(_0x11f266=>(_0x11f266[_0x5c1cad(0x17e)]=_0x5c1cad(0x17e),_0x11f266[_0x5c1cad(0x191)]=_0x5c1cad(0x191),_0x11f266['FitHeight']=_0x5c1cad(0x17f),_0x11f266['FitPage']=_0x5c1cad(0x181),_0x11f266[_0x5c1cad(0x18e)]='Custom',_0x11f266))(l||{}),m=(_0x47ab29=>(_0x47ab29[_0x5c1cad(0x178)]=_0x5c1cad(0x178),_0x47ab29[_0x5c1cad(0x172)]='End',_0x47ab29[_0x5c1cad(0x18d)]=_0x5c1cad(0x18d),_0x47ab29))(m||{}),o=(_0x4bac11=>(_0x4bac11[_0x5c1cad(0x192)]=_0x5c1cad(0x192),_0x4bac11[_0x5c1cad(0x17a)]=_0x5c1cad(0x17a),_0x4bac11[_0x5c1cad(0x193)]=_0x5c1cad(0x193),_0x4bac11[_0x5c1cad(0x17d)]=_0x5c1cad(0x17d),_0x4bac11))(o||{});const c={[o[_0x5c1cad(0x192)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x5c1cad(0x17a)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x5c1cad(0x193)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x5c1cad(0x17d)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x5c1cad(0x177),d=_0x5c1cad(0x182);function g(_0x6a5c0f,_0x5d58a6,_0x2c5824){const _0x25e884=_0x5c1cad,_0x597186=_0x2c5824===e[_0x25e884(0x189)]?_0x6a5c0f:_0x5d58a6,_0xf64c6b=_0x2c5824===e[_0x25e884(0x189)]?_0x5d58a6:_0x6a5c0f,_0x5e613d=_0x25e884(0x195)+d+_0x25e884(0x174)+_0x597186+'px\x20'+_0xf64c6b+_0x25e884(0x17c)+p+_0x25e884(0x187)+p+_0x25e884(0x18b)+d+_0x25e884(0x173)+_0xf64c6b+_0x25e884(0x179)+_0x597186+'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}',_0x2636a4=document[_0x25e884(0x184)](_0x25e884(0x18f));return _0x2636a4[_0x25e884(0x185)]=_0x5e613d,_0x2636a4['className']=_0x25e884(0x188),_0x2636a4;}function _0x1241(_0x1f405e,_0x16f216){const _0x1eb926=_0x1eb9();return _0x1241=function(_0x1241dc,_0x3f5716){_0x1241dc=_0x1241dc-0x171;let _0x31d3ef=_0x1eb926[_0x1241dc];return _0x31d3ef;},_0x1241(_0x1f405e,_0x16f216);}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 _0x5c1cad=_0x1241;function _0x1eb9(){const _0xaf2991=['FitHeight','518460WKZwCF','FitPage','printing-canvas','1500mSZsxA','createElement','innerHTML','14193ExcdZt',',\x20.','offline-printing-css','Portrait','267590KDzlWh','\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.','1098200kRUKoX','Middle','Custom','style','16ErcBqv','FitWidth','Normal','Wide','944004WiSaZr','\x0a\x20\x20\x20\x20.','108318DExwSl','End','\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','\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','7hWJzeA','Landscape','printing-canvas-container','Start','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Narrow','1096RClxQM','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.','None','Origin'];_0x1eb9=function(){return _0xaf2991;};return _0x1eb9();}(function(_0x33521,_0x1dc65b){const _0x414020=_0x1241,_0x157b5d=_0x33521();while(!![]){try{const _0x1a3934=parseInt(_0x414020(0x183))/0x1+parseInt(_0x414020(0x171))/0x2+-parseInt(_0x414020(0x180))/0x3+parseInt(_0x414020(0x190))/0x4*(-parseInt(_0x414020(0x18a))/0x5)+parseInt(_0x414020(0x194))/0x6*(parseInt(_0x414020(0x175))/0x7)+parseInt(_0x414020(0x17b))/0x8*(parseInt(_0x414020(0x186))/0x9)+parseInt(_0x414020(0x18c))/0xa;if(_0x1a3934===_0x1dc65b)break;else _0x157b5d['push'](_0x157b5d['shift']());}catch(_0x2076ae){_0x157b5d['push'](_0x157b5d['shift']());}}}(_0x1eb9,0x251a2));var e=(_0x876263=>(_0x876263['Portrait']=_0x5c1cad(0x189),_0x876263[_0x5c1cad(0x176)]='Landscape',_0x876263))(e||{}),l=(_0x11f266=>(_0x11f266[_0x5c1cad(0x17e)]=_0x5c1cad(0x17e),_0x11f266[_0x5c1cad(0x191)]=_0x5c1cad(0x191),_0x11f266['FitHeight']=_0x5c1cad(0x17f),_0x11f266['FitPage']=_0x5c1cad(0x181),_0x11f266[_0x5c1cad(0x18e)]='Custom',_0x11f266))(l||{}),m=(_0x47ab29=>(_0x47ab29[_0x5c1cad(0x178)]=_0x5c1cad(0x178),_0x47ab29[_0x5c1cad(0x172)]='End',_0x47ab29[_0x5c1cad(0x18d)]=_0x5c1cad(0x18d),_0x47ab29))(m||{}),o=(_0x4bac11=>(_0x4bac11[_0x5c1cad(0x192)]=_0x5c1cad(0x192),_0x4bac11[_0x5c1cad(0x17a)]=_0x5c1cad(0x17a),_0x4bac11[_0x5c1cad(0x193)]=_0x5c1cad(0x193),_0x4bac11[_0x5c1cad(0x17d)]=_0x5c1cad(0x17d),_0x4bac11))(o||{});const c={[o[_0x5c1cad(0x192)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x5c1cad(0x17a)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x5c1cad(0x193)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x5c1cad(0x17d)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x5c1cad(0x177),d=_0x5c1cad(0x182);function g(_0x6a5c0f,_0x5d58a6,_0x2c5824){const _0x25e884=_0x5c1cad,_0x597186=_0x2c5824===e[_0x25e884(0x189)]?_0x6a5c0f:_0x5d58a6,_0xf64c6b=_0x2c5824===e[_0x25e884(0x189)]?_0x5d58a6:_0x6a5c0f,_0x5e613d=_0x25e884(0x195)+d+_0x25e884(0x174)+_0x597186+'px\x20'+_0xf64c6b+_0x25e884(0x17c)+p+_0x25e884(0x187)+p+_0x25e884(0x18b)+d+_0x25e884(0x173)+_0xf64c6b+_0x25e884(0x179)+_0x597186+'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}',_0x2636a4=document[_0x25e884(0x184)](_0x25e884(0x18f));return _0x2636a4[_0x25e884(0x185)]=_0x5e613d,_0x2636a4['className']=_0x25e884(0x188),_0x2636a4;}function _0x1241(_0x1f405e,_0x16f216){const _0x1eb926=_0x1eb9();return _0x1241=function(_0x1241dc,_0x3f5716){_0x1241dc=_0x1241dc-0x171;let _0x31d3ef=_0x1eb926[_0x1241dc];return _0x31d3ef;},_0x1241(_0x1f405e,_0x16f216);}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
|
-
|
|
1
|
+
(function(_0x4d0df6,_0x3d2d2d){const _0x3df8de=_0xae87,_0x1d36fe=_0x4d0df6();while(!![]){try{const _0x1143a3=-parseInt(_0x3df8de(0xa9))/0x1+-parseInt(_0x3df8de(0xc0))/0x2+parseInt(_0x3df8de(0xc1))/0x3*(-parseInt(_0x3df8de(0xc3))/0x4)+parseInt(_0x3df8de(0xaf))/0x5*(parseInt(_0x3df8de(0xcd))/0x6)+parseInt(_0x3df8de(0xc8))/0x7+parseInt(_0x3df8de(0xd2))/0x8+-parseInt(_0x3df8de(0xd3))/0x9*(-parseInt(_0x3df8de(0xaa))/0xa);if(_0x1143a3===_0x3d2d2d)break;else _0x1d36fe['push'](_0x1d36fe['shift']());}catch(_0xcc8be5){_0x1d36fe['push'](_0x1d36fe['shift']());}}}(_0x166d,0x1d614),function(_0x13d3ad,_0x253dc9){const _0x45b580=_0xae87;typeof exports==_0x45b580(0xbc)&&typeof module<'u'?_0x253dc9(exports):typeof define==_0x45b580(0xbf)&&define[_0x45b580(0xcf)]?define(['exports'],_0x253dc9):(_0x13d3ad=typeof globalThis<'u'?globalThis:_0x13d3ad||self,_0x253dc9(_0x13d3ad[_0x45b580(0xb7)]={}));}(this,function(_0xe7b078){'use strict';const _0x29a200=_0xae87;var _0x304805=(_0x5b058d=>(_0x5b058d[_0x29a200(0xc6)]=_0x29a200(0xc6),_0x5b058d['Landscape']=_0x29a200(0xc2),_0x5b058d))(_0x304805||{}),_0x5404f0=(_0x5ee8a5=>(_0x5ee8a5[_0x29a200(0xc5)]='Origin',_0x5ee8a5['FitWidth']=_0x29a200(0xd6),_0x5ee8a5[_0x29a200(0xb8)]=_0x29a200(0xb8),_0x5ee8a5[_0x29a200(0xac)]='FitPage',_0x5ee8a5[_0x29a200(0xbe)]=_0x29a200(0xbe),_0x5ee8a5))(_0x5404f0||{}),_0x5319c8=(_0x18add2=>(_0x18add2['Start']='Start',_0x18add2['End']=_0x29a200(0xb2),_0x18add2[_0x29a200(0xc4)]=_0x29a200(0xc4),_0x18add2))(_0x5319c8||{}),_0x3916b8=(_0x5aa53c=>(_0x5aa53c[_0x29a200(0xc9)]=_0x29a200(0xc9),_0x5aa53c['Narrow']='Narrow',_0x5aa53c[_0x29a200(0xce)]='Wide',_0x5aa53c[_0x29a200(0xae)]=_0x29a200(0xae),_0x5aa53c))(_0x3916b8||{});const _0x7b5d43={[_0x3916b8[_0x29a200(0xc9)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x3916b8[_0x29a200(0xb3)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x3916b8[_0x29a200(0xce)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x3916b8['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x433d26=_0x29a200(0xb5),_0x4acb6a=_0x29a200(0xd0);function _0x2a15d1(_0x55274d,_0x2c1e7a,_0x2cf28a){const _0x851a7e=_0x29a200,_0x3e2467=_0x2cf28a===_0x304805[_0x851a7e(0xc6)]?_0x55274d:_0x2c1e7a,_0x2491cd=_0x2cf28a===_0x304805[_0x851a7e(0xc6)]?_0x2c1e7a:_0x55274d,_0x26de1c='\x0a\x20\x20\x20\x20.'+_0x4acb6a+_0x851a7e(0xd4)+_0x3e2467+_0x851a7e(0xba)+_0x2491cd+_0x851a7e(0xb1)+_0x433d26+_0x851a7e(0xb4)+_0x433d26+_0x851a7e(0xd5)+_0x4acb6a+_0x851a7e(0xd1)+_0x2491cd+_0x851a7e(0xca)+_0x3e2467+'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}',_0x13b408=document['createElement']('style');return _0x13b408['innerHTML']=_0x26de1c,_0x13b408[_0x851a7e(0xa7)]=_0x851a7e(0xbb),_0x13b408;}_0xe7b078[_0x29a200(0xab)]=_0x4acb6a,_0xe7b078[_0x29a200(0xbd)]=_0x433d26,_0xe7b078[_0x29a200(0xb6)]=_0x7b5d43,_0xe7b078[_0x29a200(0xb9)]=_0x5319c8,_0xe7b078[_0x29a200(0xad)]=_0x304805,_0xe7b078[_0x29a200(0xcb)]=_0x3916b8,_0xe7b078[_0x29a200(0xcc)]=_0x5404f0,_0xe7b078[_0x29a200(0xa8)]=_0x2a15d1,Object[_0x29a200(0xb0)](_0xe7b078,Symbol['toStringTag'],{'value':_0x29a200(0xc7)});}));function _0xae87(_0x32aa8f,_0x377f0e){const _0x166ddd=_0x166d();return _0xae87=function(_0xae87f0,_0x245a3d){_0xae87f0=_0xae87f0-0xa7;let _0x553023=_0x166ddd[_0xae87f0];return _0x553023;},_0xae87(_0x32aa8f,_0x377f0e);}function _0x166d(){const _0x2e7e55=['px\x20','offline-printing-css','object','PRINT_CONTAINER_CLASS','Custom','function','345044BWizcD','141LYJRLG','Landscape','10588HfaIMM','Middle','Origin','Portrait','Module','1063895cKnMgN','Normal','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','PrintPaperMargin','PrintScale','146436JuEtVt','Wide','amd','printing-canvas','\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','686576PftzVK','27VgJwDh','\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','\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.','FitWidth','className','createPrintStyle','48273ZActvk','189650rXCHRo','PRINT_CANVAS_CLASS','FitPage','PrintDirection','None','35vFoUCq','defineProperty','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.','End','Narrow',',\x20.','printing-canvas-container','PaperMarginMap','UniverProPrint','FitHeight','PrintAlign'];_0x166d=function(){return _0x2e7e55;};return _0x166d();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3-nightly.202507010644",
|
|
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.3"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|