@univerjs-pro/print 0.8.3 → 0.9.0
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 _0x168016=_0x37db;(function(_0x290666,_0x16456f){const _0x10063f=_0x37db,_0x3f0812=_0x290666();while(!![]){try{const _0x265856=-parseInt(_0x10063f(0x133))/0x1+-parseInt(_0x10063f(0x122))/0x2*(-parseInt(_0x10063f(0x11f))/0x3)+parseInt(_0x10063f(0x13a))/0x4*(-parseInt(_0x10063f(0x134))/0x5)+parseInt(_0x10063f(0x135))/0x6*(parseInt(_0x10063f(0x148))/0x7)+-parseInt(_0x10063f(0x13b))/0x8*(parseInt(_0x10063f(0x145))/0x9)+parseInt(_0x10063f(0x12d))/0xa*(-parseInt(_0x10063f(0x12f))/0xb)+parseInt(_0x10063f(0x126))/0xc;if(_0x265856===_0x16456f)break;else _0x3f0812['push'](_0x3f0812['shift']());}catch(_0x428e09){_0x3f0812['push'](_0x3f0812['shift']());}}}(_0x42b4,0x3a986));Object['defineProperty'](exports,Symbol[_0x168016(0x123)],{'value':_0x168016(0x147)});var e=(_0x3e49aa=>(_0x3e49aa[_0x168016(0x121)]=_0x168016(0x121),_0x3e49aa[_0x168016(0x14a)]=_0x168016(0x14a),_0x3e49aa))(e||{}),l=(_0x27381a=>(_0x27381a[_0x168016(0x13e)]='Origin',_0x27381a[_0x168016(0x13d)]=_0x168016(0x13d),_0x27381a[_0x168016(0x130)]=_0x168016(0x130),_0x27381a[_0x168016(0x144)]='FitPage',_0x27381a[_0x168016(0x120)]='Custom',_0x27381a))(l||{}),c=(_0x1ce07a=>(_0x1ce07a['Start']=_0x168016(0x128),_0x1ce07a[_0x168016(0x11d)]=_0x168016(0x11d),_0x1ce07a[_0x168016(0x140)]='Middle',_0x1ce07a))(c||{}),i=(_0x1ab3ae=>(_0x1ab3ae[_0x168016(0x142)]=_0x168016(0x142),_0x1ab3ae[_0x168016(0x11e)]=_0x168016(0x11e),_0x1ab3ae[_0x168016(0x132)]='Wide',_0x1ab3ae[_0x168016(0x13c)]=_0x168016(0x13c),_0x1ab3ae))(i||{});const h={[i[_0x168016(0x142)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i[_0x168016(0x11e)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i[_0x168016(0x13c)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r='printing-canvas-container',n=_0x168016(0x138);function m(_0x2063aa,_0x410ab4,_0x2f23cf){const _0x12ac87=_0x168016,_0x350448=_0x2f23cf===e[_0x12ac87(0x121)]?_0x2063aa:_0x410ab4,_0x32339c=_0x2f23cf===e[_0x12ac87(0x121)]?_0x410ab4:_0x2063aa,_0x12b86e='\x0a\x20\x20\x20\x20.'+n+_0x12ac87(0x127)+_0x350448+_0x12ac87(0x12a)+_0x32339c+_0x12ac87(0x146)+r+_0x12ac87(0x143)+r+'\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.'+n+_0x12ac87(0x131)+_0x32339c+_0x12ac87(0x12c)+_0x350448+_0x12ac87(0x136),_0x492af4=document[_0x12ac87(0x139)](_0x12ac87(0x124));return _0x492af4['innerHTML']=_0x12b86e,_0x492af4[_0x12ac87(0x13f)]=_0x12ac87(0x149),_0x492af4;}function _0x42b4(){const _0x38ad3b=['FitWidth','Origin','className','Middle','PrintAlign','Normal',',\x20.','FitPage','402183EyAmfW','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.','Module','7KpNjJj','offline-printing-css','Landscape','End','Narrow','573KsyqCq','Custom','Portrait','3098McJZlZ','toStringTag','style','createPrintStyle','8336688WCbbRL','\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','Start','PRINT_CONTAINER_CLASS','px\x20','PaperMarginMap','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','10wAcVWq','PrintPaperMargin','1407857zNFoBf','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','Wide','346697QpyMTk','5480wBBweF','2729046yhrnlV','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}','PrintDirection','printing-canvas','createElement','1036MpREoh','80JJLhpc','None'];_0x42b4=function(){return _0x38ad3b;};return _0x42b4();}function _0x37db(_0x36b3d2,_0x2ff7d6){const _0x42b4ec=_0x42b4();return _0x37db=function(_0x37dbbd,_0xad5b97){_0x37dbbd=_0x37dbbd-0x11d;let _0x27aae4=_0x42b4ec[_0x37dbbd];return _0x27aae4;},_0x37db(_0x36b3d2,_0x2ff7d6);}exports['PRINT_CANVAS_CLASS']=n,exports[_0x168016(0x129)]=r,exports[_0x168016(0x12b)]=h,exports[_0x168016(0x141)]=c,exports[_0x168016(0x137)]=e,exports[_0x168016(0x12e)]=i,exports['PrintScale']=l,exports[_0x168016(0x125)]=m;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x4d80(){const _0x7a0b48=['printing-canvas-container','px\x20','502068riOeqO','FitHeight','FitWidth','\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.','1122375srQiwz','Landscape','Origin','End','\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','FitPage','473696NmlcuR','Wide','Normal','Middle','None','1112825BfHhnX','2046318LlOkad','Narrow','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Start','printing-canvas','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.','style','innerHTML','className','Custom','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.','\x0a\x20\x20\x20\x20.','887440ZNsZkh','createElement','1188372lFdlJe','Portrait'];_0x4d80=function(){return _0x7a0b48;};return _0x4d80();}function _0x465d(_0x5f3052,_0x351f55){const _0x4d80ef=_0x4d80();return _0x465d=function(_0x465d5f,_0x2d975f){_0x465d5f=_0x465d5f-0x11e;let _0x655f16=_0x4d80ef[_0x465d5f];return _0x655f16;},_0x465d(_0x5f3052,_0x351f55);}const _0x2d5bed=_0x465d;(function(_0x20cbe6,_0x18efcf){const _0x4406c9=_0x465d,_0x479813=_0x20cbe6();while(!![]){try{const _0x2d14ab=-parseInt(_0x4406c9(0x135))/0x1+-parseInt(_0x4406c9(0x125))/0x2+parseInt(_0x4406c9(0x12f))/0x3+parseInt(_0x4406c9(0x127))/0x4+parseInt(_0x4406c9(0x13a))/0x5+parseInt(_0x4406c9(0x13b))/0x6+-parseInt(_0x4406c9(0x12b))/0x7;if(_0x2d14ab===_0x18efcf)break;else _0x479813['push'](_0x479813['shift']());}catch(_0x49410c){_0x479813['push'](_0x479813['shift']());}}}(_0x4d80,0x3bfc0));var e=(_0x59c29e=>(_0x59c29e[_0x2d5bed(0x128)]=_0x2d5bed(0x128),_0x59c29e['Landscape']=_0x2d5bed(0x130),_0x59c29e))(e||{}),l=(_0x336f05=>(_0x336f05['Origin']=_0x2d5bed(0x131),_0x336f05['FitWidth']=_0x2d5bed(0x12d),_0x336f05[_0x2d5bed(0x12c)]=_0x2d5bed(0x12c),_0x336f05[_0x2d5bed(0x134)]=_0x2d5bed(0x134),_0x336f05[_0x2d5bed(0x122)]='Custom',_0x336f05))(l||{}),m=(_0x9e2ab1=>(_0x9e2ab1[_0x2d5bed(0x13e)]=_0x2d5bed(0x13e),_0x9e2ab1[_0x2d5bed(0x132)]=_0x2d5bed(0x132),_0x9e2ab1['Middle']=_0x2d5bed(0x138),_0x9e2ab1))(m||{}),o=(_0x5afecc=>(_0x5afecc[_0x2d5bed(0x137)]=_0x2d5bed(0x137),_0x5afecc['Narrow']=_0x2d5bed(0x13c),_0x5afecc['Wide']=_0x2d5bed(0x136),_0x5afecc[_0x2d5bed(0x139)]='None',_0x5afecc))(o||{});const c={[o[_0x2d5bed(0x137)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x2d5bed(0x13c)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x2d5bed(0x136)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x2d5bed(0x129),d=_0x2d5bed(0x13f);function g(_0x144b6a,_0x326e3d,_0x3cca66){const _0x371f38=_0x2d5bed,_0x1e41e9=_0x3cca66===e[_0x371f38(0x128)]?_0x144b6a:_0x326e3d,_0x4f47cc=_0x3cca66===e[_0x371f38(0x128)]?_0x326e3d:_0x144b6a,_0x2b3259=_0x371f38(0x124)+d+_0x371f38(0x133)+_0x1e41e9+_0x371f38(0x12a)+_0x4f47cc+_0x371f38(0x123)+p+_0x371f38(0x11e)+p+_0x371f38(0x12e)+d+'\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'+_0x4f47cc+_0x371f38(0x13d)+_0x1e41e9+_0x371f38(0x140),_0x13c29c=document[_0x371f38(0x126)](_0x371f38(0x11f));return _0x13c29c[_0x371f38(0x120)]=_0x2b3259,_0x13c29c[_0x371f38(0x121)]='offline-printing-css',_0x13c29c;}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
|
-
|
|
1
|
+
function _0x4d80(){const _0x7a0b48=['printing-canvas-container','px\x20','502068riOeqO','FitHeight','FitWidth','\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.','1122375srQiwz','Landscape','Origin','End','\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','FitPage','473696NmlcuR','Wide','Normal','Middle','None','1112825BfHhnX','2046318LlOkad','Narrow','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Start','printing-canvas','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.','style','innerHTML','className','Custom','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.','\x0a\x20\x20\x20\x20.','887440ZNsZkh','createElement','1188372lFdlJe','Portrait'];_0x4d80=function(){return _0x7a0b48;};return _0x4d80();}function _0x465d(_0x5f3052,_0x351f55){const _0x4d80ef=_0x4d80();return _0x465d=function(_0x465d5f,_0x2d975f){_0x465d5f=_0x465d5f-0x11e;let _0x655f16=_0x4d80ef[_0x465d5f];return _0x655f16;},_0x465d(_0x5f3052,_0x351f55);}const _0x2d5bed=_0x465d;(function(_0x20cbe6,_0x18efcf){const _0x4406c9=_0x465d,_0x479813=_0x20cbe6();while(!![]){try{const _0x2d14ab=-parseInt(_0x4406c9(0x135))/0x1+-parseInt(_0x4406c9(0x125))/0x2+parseInt(_0x4406c9(0x12f))/0x3+parseInt(_0x4406c9(0x127))/0x4+parseInt(_0x4406c9(0x13a))/0x5+parseInt(_0x4406c9(0x13b))/0x6+-parseInt(_0x4406c9(0x12b))/0x7;if(_0x2d14ab===_0x18efcf)break;else _0x479813['push'](_0x479813['shift']());}catch(_0x49410c){_0x479813['push'](_0x479813['shift']());}}}(_0x4d80,0x3bfc0));var e=(_0x59c29e=>(_0x59c29e[_0x2d5bed(0x128)]=_0x2d5bed(0x128),_0x59c29e['Landscape']=_0x2d5bed(0x130),_0x59c29e))(e||{}),l=(_0x336f05=>(_0x336f05['Origin']=_0x2d5bed(0x131),_0x336f05['FitWidth']=_0x2d5bed(0x12d),_0x336f05[_0x2d5bed(0x12c)]=_0x2d5bed(0x12c),_0x336f05[_0x2d5bed(0x134)]=_0x2d5bed(0x134),_0x336f05[_0x2d5bed(0x122)]='Custom',_0x336f05))(l||{}),m=(_0x9e2ab1=>(_0x9e2ab1[_0x2d5bed(0x13e)]=_0x2d5bed(0x13e),_0x9e2ab1[_0x2d5bed(0x132)]=_0x2d5bed(0x132),_0x9e2ab1['Middle']=_0x2d5bed(0x138),_0x9e2ab1))(m||{}),o=(_0x5afecc=>(_0x5afecc[_0x2d5bed(0x137)]=_0x2d5bed(0x137),_0x5afecc['Narrow']=_0x2d5bed(0x13c),_0x5afecc['Wide']=_0x2d5bed(0x136),_0x5afecc[_0x2d5bed(0x139)]='None',_0x5afecc))(o||{});const c={[o[_0x2d5bed(0x137)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x2d5bed(0x13c)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x2d5bed(0x136)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x2d5bed(0x129),d=_0x2d5bed(0x13f);function g(_0x144b6a,_0x326e3d,_0x3cca66){const _0x371f38=_0x2d5bed,_0x1e41e9=_0x3cca66===e[_0x371f38(0x128)]?_0x144b6a:_0x326e3d,_0x4f47cc=_0x3cca66===e[_0x371f38(0x128)]?_0x326e3d:_0x144b6a,_0x2b3259=_0x371f38(0x124)+d+_0x371f38(0x133)+_0x1e41e9+_0x371f38(0x12a)+_0x4f47cc+_0x371f38(0x123)+p+_0x371f38(0x11e)+p+_0x371f38(0x12e)+d+'\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'+_0x4f47cc+_0x371f38(0x13d)+_0x1e41e9+_0x371f38(0x140),_0x13c29c=document[_0x371f38(0x126)](_0x371f38(0x11f));return _0x13c29c[_0x371f38(0x120)]=_0x2b3259,_0x13c29c[_0x371f38(0x121)]='offline-printing-css',_0x13c29c;}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 _0xf836(){const _0x260188=['620DUZXBa',',\x20.','FitPage','876evEUGs','className','24dhFTsT','px\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.','50eRjWYT','Portrait','createElement','Landscape','FitHeight','PrintScale','offline-printing-css','None','PrintAlign','825539qQKqIC','680407wcPKxb','FitWidth','defineProperty','toStringTag','Wide','amd','882261eBncvP','47916MnQPZY','\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','16536eWOtYj','8754552trPwbg','End','PaperMarginMap','PRINT_CONTAINER_CLASS','Origin','printing-canvas','Narrow','exports','Normal','Start','Middle','709kwMpxL','function','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','36tJimmI','Custom','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}','printing-canvas-container','\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'];_0xf836=function(){return _0x260188;};return _0xf836();}function _0x478a(_0x589b08,_0x4933d2){const _0xf83621=_0xf836();return _0x478a=function(_0x478ae2,_0x5865ac){_0x478ae2=_0x478ae2-0x15a;let _0x2ca2d3=_0xf83621[_0x478ae2];return _0x2ca2d3;},_0x478a(_0x589b08,_0x4933d2);}(function(_0x2c85c4,_0x235ac9){const _0x316d82=_0x478a,_0x3c9f7a=_0x2c85c4();while(!![]){try{const _0x4ac0d5=-parseInt(_0x316d82(0x172))/0x1*(parseInt(_0x316d82(0x17e))/0x2)+parseInt(_0x316d82(0x175))/0x3*(parseInt(_0x316d82(0x164))/0x4)+-parseInt(_0x316d82(0x17b))/0x5*(parseInt(_0x316d82(0x166))/0x6)+parseInt(_0x316d82(0x15d))/0x7+-parseInt(_0x316d82(0x180))/0x8*(-parseInt(_0x316d82(0x163))/0x9)+-parseInt(_0x316d82(0x183))/0xa*(parseInt(_0x316d82(0x15c))/0xb)+parseInt(_0x316d82(0x167))/0xc;if(_0x4ac0d5===_0x235ac9)break;else _0x3c9f7a['push'](_0x3c9f7a['shift']());}catch(_0xcc0fdc){_0x3c9f7a['push'](_0x3c9f7a['shift']());}}}(_0xf836,0x39dfb),function(_0x284391,_0x3bb45a){const _0x407ca9=_0x478a;typeof exports=='object'&&typeof module<'u'?_0x3bb45a(exports):typeof define==_0x407ca9(0x173)&&define[_0x407ca9(0x162)]?define([_0x407ca9(0x16e)],_0x3bb45a):(_0x284391=typeof globalThis<'u'?globalThis:_0x284391||self,_0x3bb45a(_0x284391['UniverProPrint']={}));}(this,function(_0x20280b){'use strict';const _0x290a91=_0x478a;var _0x306e3f=(_0x2590e0=>(_0x2590e0['Portrait']=_0x290a91(0x184),_0x2590e0['Landscape']=_0x290a91(0x186),_0x2590e0))(_0x306e3f||{}),_0x1209ad=(_0x5dacdd=>(_0x5dacdd[_0x290a91(0x16b)]=_0x290a91(0x16b),_0x5dacdd[_0x290a91(0x15e)]=_0x290a91(0x15e),_0x5dacdd[_0x290a91(0x187)]=_0x290a91(0x187),_0x5dacdd[_0x290a91(0x17d)]=_0x290a91(0x17d),_0x5dacdd[_0x290a91(0x176)]=_0x290a91(0x176),_0x5dacdd))(_0x1209ad||{}),_0x50fd8e=(_0x2a7a28=>(_0x2a7a28[_0x290a91(0x170)]=_0x290a91(0x170),_0x2a7a28[_0x290a91(0x168)]=_0x290a91(0x168),_0x2a7a28[_0x290a91(0x171)]=_0x290a91(0x171),_0x2a7a28))(_0x50fd8e||{}),_0x4f8030=(_0x14c56d=>(_0x14c56d[_0x290a91(0x16f)]=_0x290a91(0x16f),_0x14c56d[_0x290a91(0x16d)]=_0x290a91(0x16d),_0x14c56d[_0x290a91(0x161)]=_0x290a91(0x161),_0x14c56d[_0x290a91(0x15a)]=_0x290a91(0x15a),_0x14c56d))(_0x4f8030||{});const _0x144a0e={[_0x4f8030['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x4f8030[_0x290a91(0x16d)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x4f8030[_0x290a91(0x161)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x4f8030[_0x290a91(0x15a)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x116b1e=_0x290a91(0x178),_0x2b6177=_0x290a91(0x16c);function _0x39db4f(_0x126727,_0x23a715,_0xa26c0d){const _0x2cf8ff=_0x290a91,_0x5997ed=_0xa26c0d===_0x306e3f[_0x2cf8ff(0x184)]?_0x126727:_0x23a715,_0x5f0f98=_0xa26c0d===_0x306e3f['Portrait']?_0x23a715:_0x126727,_0x522c3d='\x0a\x20\x20\x20\x20.'+_0x2b6177+_0x2cf8ff(0x165)+_0x5997ed+_0x2cf8ff(0x181)+_0x5f0f98+_0x2cf8ff(0x182)+_0x116b1e+_0x2cf8ff(0x17c)+_0x116b1e+_0x2cf8ff(0x179)+_0x2b6177+'\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'+_0x5f0f98+_0x2cf8ff(0x174)+_0x5997ed+_0x2cf8ff(0x177),_0x1dce39=document[_0x2cf8ff(0x185)]('style');return _0x1dce39['innerHTML']=_0x522c3d,_0x1dce39[_0x2cf8ff(0x17f)]=_0x2cf8ff(0x189),_0x1dce39;}_0x20280b['PRINT_CANVAS_CLASS']=_0x2b6177,_0x20280b[_0x290a91(0x16a)]=_0x116b1e,_0x20280b[_0x290a91(0x169)]=_0x144a0e,_0x20280b[_0x290a91(0x15b)]=_0x50fd8e,_0x20280b['PrintDirection']=_0x306e3f,_0x20280b['PrintPaperMargin']=_0x4f8030,_0x20280b[_0x290a91(0x188)]=_0x1209ad,_0x20280b['createPrintStyle']=_0x39db4f,Object[_0x290a91(0x15f)](_0x20280b,Symbol[_0x290a91(0x160)],{'value':_0x290a91(0x17a)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
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.
|
|
48
|
+
"@univerjs-infra/shared": "0.9.0"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|