@univerjs-pro/print 0.10.13 → 0.10.14-nightly.202511031023
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';const
|
|
1
|
+
'use strict';function _0x5de7(_0x565ccc,_0x1c78ea){const _0x5dc7ae=_0x5dc7();return _0x5de7=function(_0x5de791,_0x22a071){_0x5de791=_0x5de791-0x78;let _0x2f4b0c=_0x5dc7ae[_0x5de791];return _0x2f4b0c;},_0x5de7(_0x565ccc,_0x1c78ea);}const _0x4c5fa5=_0x5de7;(function(_0x79a852,_0x385460){const _0x8c7651=_0x5de7,_0x35ae1a=_0x79a852();while(!![]){try{const _0x3e10d8=parseInt(_0x8c7651(0x9c))/0x1*(-parseInt(_0x8c7651(0x7d))/0x2)+-parseInt(_0x8c7651(0x90))/0x3*(parseInt(_0x8c7651(0x8f))/0x4)+parseInt(_0x8c7651(0xa3))/0x5+parseInt(_0x8c7651(0x9b))/0x6+parseInt(_0x8c7651(0x8c))/0x7*(-parseInt(_0x8c7651(0xa0))/0x8)+-parseInt(_0x8c7651(0xa1))/0x9*(-parseInt(_0x8c7651(0x7a))/0xa)+-parseInt(_0x8c7651(0x8b))/0xb*(-parseInt(_0x8c7651(0x87))/0xc);if(_0x3e10d8===_0x385460)break;else _0x35ae1a['push'](_0x35ae1a['shift']());}catch(_0x440b89){_0x35ae1a['push'](_0x35ae1a['shift']());}}}(_0x5dc7,0x1b847));Object[_0x4c5fa5(0x94)](exports,Symbol[_0x4c5fa5(0x7c)],{'value':'Module'});var i=(_0x839dd7=>(_0x839dd7[_0x4c5fa5(0x8d)]=_0x4c5fa5(0x8d),_0x839dd7[_0x4c5fa5(0x83)]='Landscape',_0x839dd7))(i||{}),l=(_0x1044f5=>(_0x1044f5['Origin']=_0x4c5fa5(0x78),_0x1044f5[_0x4c5fa5(0x92)]=_0x4c5fa5(0x92),_0x1044f5[_0x4c5fa5(0x82)]=_0x4c5fa5(0x82),_0x1044f5[_0x4c5fa5(0x89)]=_0x4c5fa5(0x89),_0x1044f5[_0x4c5fa5(0x97)]=_0x4c5fa5(0x97),_0x1044f5))(l||{}),m=(_0x2d307b=>(_0x2d307b[_0x4c5fa5(0x7f)]=_0x4c5fa5(0x7f),_0x2d307b[_0x4c5fa5(0x9f)]=_0x4c5fa5(0x9f),_0x2d307b['Middle']=_0x4c5fa5(0x79),_0x2d307b))(m||{}),o=(_0x3cfd66=>(_0x3cfd66[_0x4c5fa5(0x86)]=_0x4c5fa5(0x86),_0x3cfd66[_0x4c5fa5(0x9d)]=_0x4c5fa5(0x9d),_0x3cfd66[_0x4c5fa5(0x96)]=_0x4c5fa5(0x96),_0x3cfd66[_0x4c5fa5(0x7e)]='None',_0x3cfd66[_0x4c5fa5(0x97)]=_0x4c5fa5(0x97),_0x3cfd66))(o||{});const g={[o[_0x4c5fa5(0x86)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x4c5fa5(0x96)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x4c5fa5(0x7e)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x4c5fa5(0x97)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x4c5fa5(0x98),n=_0x4c5fa5(0x8a);function h(_0x130d71,_0x4380f0,_0x1ece18){const _0x23b4b3=_0x4c5fa5,_0x26f033=_0x1ece18===i['Portrait']?_0x130d71:_0x4380f0,_0x2de8f1=_0x1ece18===i[_0x23b4b3(0x8d)]?_0x4380f0:_0x130d71,_0x5286c9=_0x23b4b3(0x9a)+n+_0x23b4b3(0x8e)+_0x26f033+_0x23b4b3(0x85)+_0x2de8f1+_0x23b4b3(0x7b)+r+_0x23b4b3(0x9e)+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+'\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'+_0x2de8f1+_0x23b4b3(0x80)+_0x26f033+_0x23b4b3(0x95),_0x2e3f91=document[_0x23b4b3(0x84)]('style');return _0x2e3f91[_0x23b4b3(0x99)]=_0x5286c9,_0x2e3f91[_0x23b4b3(0xa2)]=_0x23b4b3(0x91),_0x2e3f91;}function _0x5dc7(){const _0x583b66=['Landscape','createElement','px\x20','Normal','2279700tjgDfX','PRINT_CONTAINER_CLASS','FitPage','printing-canvas','22eUgvaN','153650RCCDqn','Portrait','\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','1168LhTYCc','72swPYaj','offline-printing-css','FitWidth','PaperMarginMap','defineProperty','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}','Wide','Custom','printing-canvas-container','innerHTML','\x0a\x20\x20\x20\x20.','106212KYTKQo','13011kmWwSx','Narrow',',\x20.','End','64fbuDDD','10629OYnbKm','className','245375YWKXCn','PrintDirection','Origin','Middle','40AgIOTb','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.','toStringTag','24mGCpJp','None','Start','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','createPrintStyle','FitHeight'];_0x5dc7=function(){return _0x583b66;};return _0x5dc7();}exports['PRINT_CANVAS_CLASS']=n,exports[_0x4c5fa5(0x88)]=r,exports[_0x4c5fa5(0x93)]=g,exports['PrintAlign']=m,exports[_0x4c5fa5(0xa4)]=i,exports['PrintPaperMargin']=o,exports['PrintScale']=l,exports[_0x4c5fa5(0x81)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x52e711=_0x2b97;function _0x1143(){const _0x581f6f=['innerHTML','Normal','style','printing-canvas-container','542311hChRKs','\x0a\x20\x20\x20\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.','Custom','3162753CpbGqY','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','649486JQHXiT','Narrow','3954186lgLKpq','6124937XDvUMc','offline-printing-css','Origin','232WGPoYu','\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','10055pnhVna','FitWidth','180BGIUjm','\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','px\x20','FitPage','13936mQrJCv','Portrait','Landscape','End','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',',\x20.','Wide','None'];_0x1143=function(){return _0x581f6f;};return _0x1143();}function _0x2b97(_0x11c02d,_0x3058dd){const _0x1143e8=_0x1143();return _0x2b97=function(_0x2b97a6,_0x363eae){_0x2b97a6=_0x2b97a6-0x1ae;let _0x568476=_0x1143e8[_0x2b97a6];return _0x568476;},_0x2b97(_0x11c02d,_0x3058dd);}(function(_0x5defb9,_0x5b9df6){const _0x2452c8=_0x2b97,_0x3a29e5=_0x5defb9();while(!![]){try{const _0x3101b8=-parseInt(_0x2452c8(0x1ce))/0x1+parseInt(_0x2452c8(0x1b2))/0x2+parseInt(_0x2452c8(0x1b0))/0x3+-parseInt(_0x2452c8(0x1b8))/0x4*(-parseInt(_0x2452c8(0x1ba))/0x5)+parseInt(_0x2452c8(0x1b4))/0x6+-parseInt(_0x2452c8(0x1b5))/0x7+-parseInt(_0x2452c8(0x1c0))/0x8*(parseInt(_0x2452c8(0x1bc))/0x9);if(_0x3101b8===_0x5b9df6)break;else _0x3a29e5['push'](_0x3a29e5['shift']());}catch(_0x116022){_0x3a29e5['push'](_0x3a29e5['shift']());}}}(_0x1143,0xab839));var e=(_0x386d6b=>(_0x386d6b[_0x52e711(0x1c1)]=_0x52e711(0x1c1),_0x386d6b[_0x52e711(0x1c2)]=_0x52e711(0x1c2),_0x386d6b))(e||{}),h=(_0x110e2d=>(_0x110e2d[_0x52e711(0x1b7)]='Origin',_0x110e2d[_0x52e711(0x1bb)]=_0x52e711(0x1bb),_0x110e2d['FitHeight']='FitHeight',_0x110e2d[_0x52e711(0x1bf)]=_0x52e711(0x1bf),_0x110e2d[_0x52e711(0x1af)]=_0x52e711(0x1af),_0x110e2d))(h||{}),l=(_0x1cc2e0=>(_0x1cc2e0[_0x52e711(0x1c6)]=_0x52e711(0x1c6),_0x1cc2e0[_0x52e711(0x1c3)]='End',_0x1cc2e0['Middle']='Middle',_0x1cc2e0))(l||{}),o=(_0x49c85a=>(_0x49c85a[_0x52e711(0x1cb)]=_0x52e711(0x1cb),_0x49c85a[_0x52e711(0x1b3)]=_0x52e711(0x1b3),_0x49c85a[_0x52e711(0x1c8)]=_0x52e711(0x1c8),_0x49c85a[_0x52e711(0x1c9)]=_0x52e711(0x1c9),_0x49c85a['Custom']=_0x52e711(0x1af),_0x49c85a))(o||{});const c={[o[_0x52e711(0x1cb)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x52e711(0x1b3)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x52e711(0x1c8)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x52e711(0x1c9)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x52e711(0x1af)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x52e711(0x1cd),d='printing-canvas';function g(_0x5711b4,_0x13096b,_0x5bf753){const _0x222a5d=_0x52e711,_0x5b91d8=_0x5bf753===e[_0x222a5d(0x1c1)]?_0x5711b4:_0x13096b,_0xd83da5=_0x5bf753===e[_0x222a5d(0x1c1)]?_0x13096b:_0x5711b4,_0x1a8629=_0x222a5d(0x1cf)+d+_0x222a5d(0x1b9)+_0x5b91d8+_0x222a5d(0x1be)+_0xd83da5+_0x222a5d(0x1c5)+p+_0x222a5d(0x1c7)+p+_0x222a5d(0x1ae)+d+_0x222a5d(0x1bd)+_0xd83da5+_0x222a5d(0x1b1)+_0x5b91d8+'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}',_0x54f6d6=document['createElement'](_0x222a5d(0x1cc));return _0x54f6d6[_0x222a5d(0x1ca)]=_0x1a8629,_0x54f6d6[_0x222a5d(0x1c4)]=_0x222a5d(0x1b6),_0x54f6d6;}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,l as PrintAlign,e as PrintDirection,o as PrintPaperMargin,h as PrintScale,g as createPrintStyle};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x52e711=_0x2b97;function _0x1143(){const _0x581f6f=['innerHTML','Normal','style','printing-canvas-container','542311hChRKs','\x0a\x20\x20\x20\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.','Custom','3162753CpbGqY','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','649486JQHXiT','Narrow','3954186lgLKpq','6124937XDvUMc','offline-printing-css','Origin','232WGPoYu','\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','10055pnhVna','FitWidth','180BGIUjm','\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','px\x20','FitPage','13936mQrJCv','Portrait','Landscape','End','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',',\x20.','Wide','None'];_0x1143=function(){return _0x581f6f;};return _0x1143();}function _0x2b97(_0x11c02d,_0x3058dd){const _0x1143e8=_0x1143();return _0x2b97=function(_0x2b97a6,_0x363eae){_0x2b97a6=_0x2b97a6-0x1ae;let _0x568476=_0x1143e8[_0x2b97a6];return _0x568476;},_0x2b97(_0x11c02d,_0x3058dd);}(function(_0x5defb9,_0x5b9df6){const _0x2452c8=_0x2b97,_0x3a29e5=_0x5defb9();while(!![]){try{const _0x3101b8=-parseInt(_0x2452c8(0x1ce))/0x1+parseInt(_0x2452c8(0x1b2))/0x2+parseInt(_0x2452c8(0x1b0))/0x3+-parseInt(_0x2452c8(0x1b8))/0x4*(-parseInt(_0x2452c8(0x1ba))/0x5)+parseInt(_0x2452c8(0x1b4))/0x6+-parseInt(_0x2452c8(0x1b5))/0x7+-parseInt(_0x2452c8(0x1c0))/0x8*(parseInt(_0x2452c8(0x1bc))/0x9);if(_0x3101b8===_0x5b9df6)break;else _0x3a29e5['push'](_0x3a29e5['shift']());}catch(_0x116022){_0x3a29e5['push'](_0x3a29e5['shift']());}}}(_0x1143,0xab839));var e=(_0x386d6b=>(_0x386d6b[_0x52e711(0x1c1)]=_0x52e711(0x1c1),_0x386d6b[_0x52e711(0x1c2)]=_0x52e711(0x1c2),_0x386d6b))(e||{}),h=(_0x110e2d=>(_0x110e2d[_0x52e711(0x1b7)]='Origin',_0x110e2d[_0x52e711(0x1bb)]=_0x52e711(0x1bb),_0x110e2d['FitHeight']='FitHeight',_0x110e2d[_0x52e711(0x1bf)]=_0x52e711(0x1bf),_0x110e2d[_0x52e711(0x1af)]=_0x52e711(0x1af),_0x110e2d))(h||{}),l=(_0x1cc2e0=>(_0x1cc2e0[_0x52e711(0x1c6)]=_0x52e711(0x1c6),_0x1cc2e0[_0x52e711(0x1c3)]='End',_0x1cc2e0['Middle']='Middle',_0x1cc2e0))(l||{}),o=(_0x49c85a=>(_0x49c85a[_0x52e711(0x1cb)]=_0x52e711(0x1cb),_0x49c85a[_0x52e711(0x1b3)]=_0x52e711(0x1b3),_0x49c85a[_0x52e711(0x1c8)]=_0x52e711(0x1c8),_0x49c85a[_0x52e711(0x1c9)]=_0x52e711(0x1c9),_0x49c85a['Custom']=_0x52e711(0x1af),_0x49c85a))(o||{});const c={[o[_0x52e711(0x1cb)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x52e711(0x1b3)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x52e711(0x1c8)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x52e711(0x1c9)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x52e711(0x1af)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x52e711(0x1cd),d='printing-canvas';function g(_0x5711b4,_0x13096b,_0x5bf753){const _0x222a5d=_0x52e711,_0x5b91d8=_0x5bf753===e[_0x222a5d(0x1c1)]?_0x5711b4:_0x13096b,_0xd83da5=_0x5bf753===e[_0x222a5d(0x1c1)]?_0x13096b:_0x5711b4,_0x1a8629=_0x222a5d(0x1cf)+d+_0x222a5d(0x1b9)+_0x5b91d8+_0x222a5d(0x1be)+_0xd83da5+_0x222a5d(0x1c5)+p+_0x222a5d(0x1c7)+p+_0x222a5d(0x1ae)+d+_0x222a5d(0x1bd)+_0xd83da5+_0x222a5d(0x1b1)+_0x5b91d8+'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}',_0x54f6d6=document['createElement'](_0x222a5d(0x1cc));return _0x54f6d6[_0x222a5d(0x1ca)]=_0x1a8629,_0x54f6d6[_0x222a5d(0x1c4)]=_0x222a5d(0x1b6),_0x54f6d6;}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,l as PrintAlign,e as PrintDirection,o as PrintPaperMargin,h as PrintScale,g as createPrintStyle};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x2753(_0x59756d,_0x116dfb){const _0x216217=_0x2162();return _0x2753=function(_0x2753a,_0x136ef1){_0x2753a=_0x2753a-0x18a;let _0x313330=_0x216217[_0x2753a];return _0x313330;},_0x2753(_0x59756d,_0x116dfb);}(function(_0x394996,_0x1d4d9c){const _0x35ec50=_0x2753,_0x250776=_0x394996();while(!![]){try{const _0x2e112c=parseInt(_0x35ec50(0x1aa))/0x1+parseInt(_0x35ec50(0x1ae))/0x2+-parseInt(_0x35ec50(0x1ab))/0x3+-parseInt(_0x35ec50(0x1af))/0x4*(parseInt(_0x35ec50(0x19a))/0x5)+parseInt(_0x35ec50(0x19e))/0x6+-parseInt(_0x35ec50(0x18e))/0x7+-parseInt(_0x35ec50(0x198))/0x8;if(_0x2e112c===_0x1d4d9c)break;else _0x250776['push'](_0x250776['shift']());}catch(_0x30ffd8){_0x250776['push'](_0x250776['shift']());}}}(_0x2162,0x80213),function(_0x2a69d3,_0x5dce16){const _0x289d9b=_0x2753;typeof exports=='object'&&typeof module<'u'?_0x5dce16(exports):typeof define=='function'&&define[_0x289d9b(0x18b)]?define([_0x289d9b(0x196)],_0x5dce16):(_0x2a69d3=typeof globalThis<'u'?globalThis:_0x2a69d3||self,_0x5dce16(_0x2a69d3[_0x289d9b(0x1a4)]={}));}(this,function(_0x3c9ef2){'use strict';const _0x2e8b99=_0x2753;var _0x2c838d=(_0x1b0e49=>(_0x1b0e49[_0x2e8b99(0x1a9)]=_0x2e8b99(0x1a9),_0x1b0e49[_0x2e8b99(0x1b3)]=_0x2e8b99(0x1b3),_0x1b0e49))(_0x2c838d||{}),_0x48720b=(_0x548926=>(_0x548926[_0x2e8b99(0x190)]=_0x2e8b99(0x190),_0x548926[_0x2e8b99(0x1a0)]=_0x2e8b99(0x1a0),_0x548926[_0x2e8b99(0x1a8)]=_0x2e8b99(0x1a8),_0x548926[_0x2e8b99(0x1a1)]='FitPage',_0x548926[_0x2e8b99(0x19d)]=_0x2e8b99(0x19d),_0x548926))(_0x48720b||{}),_0x1de021=(_0x595d48=>(_0x595d48[_0x2e8b99(0x18d)]='Start',_0x595d48[_0x2e8b99(0x197)]=_0x2e8b99(0x197),_0x595d48['Middle']=_0x2e8b99(0x1b0),_0x595d48))(_0x1de021||{}),_0x49c496=(_0x4de345=>(_0x4de345[_0x2e8b99(0x1b1)]=_0x2e8b99(0x1b1),_0x4de345[_0x2e8b99(0x1b2)]=_0x2e8b99(0x1b2),_0x4de345['Wide']=_0x2e8b99(0x19f),_0x4de345[_0x2e8b99(0x19b)]=_0x2e8b99(0x19b),_0x4de345[_0x2e8b99(0x19d)]=_0x2e8b99(0x19d),_0x4de345))(_0x49c496||{});const _0x44d5b5={[_0x49c496[_0x2e8b99(0x1b1)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x49c496[_0x2e8b99(0x1b2)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x49c496[_0x2e8b99(0x19f)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x49c496[_0x2e8b99(0x19b)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x49c496['Custom']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x11fef4=_0x2e8b99(0x192),_0x433415='printing-canvas';function _0x203fa9(_0x384ce7,_0x3a6765,_0x2b4056){const _0x2051a8=_0x2e8b99,_0x232517=_0x2b4056===_0x2c838d['Portrait']?_0x384ce7:_0x3a6765,_0x2a26ab=_0x2b4056===_0x2c838d[_0x2051a8(0x1a9)]?_0x3a6765:_0x384ce7,_0x336559=_0x2051a8(0x1ad)+_0x433415+'\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'+_0x232517+'px\x20'+_0x2a26ab+'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.'+_0x11fef4+',\x20.'+_0x11fef4+_0x2051a8(0x1a3)+_0x433415+_0x2051a8(0x1a5)+_0x2a26ab+_0x2051a8(0x191)+_0x232517+_0x2051a8(0x18c),_0x9507f2=document[_0x2051a8(0x1a2)](_0x2051a8(0x193));return _0x9507f2[_0x2051a8(0x18a)]=_0x336559,_0x9507f2[_0x2051a8(0x1a6)]=_0x2051a8(0x194),_0x9507f2;}_0x3c9ef2[_0x2e8b99(0x19c)]=_0x433415,_0x3c9ef2[_0x2e8b99(0x18f)]=_0x11fef4,_0x3c9ef2[_0x2e8b99(0x1ac)]=_0x44d5b5,_0x3c9ef2['PrintAlign']=_0x1de021,_0x3c9ef2[_0x2e8b99(0x195)]=_0x2c838d,_0x3c9ef2['PrintPaperMargin']=_0x49c496,_0x3c9ef2[_0x2e8b99(0x1a7)]=_0x48720b,_0x3c9ef2['createPrintStyle']=_0x203fa9,Object['defineProperty'](_0x3c9ef2,Symbol[_0x2e8b99(0x199)],{'value':'Module'});}));function _0x2162(){const _0x3d0fc5=['None','PRINT_CANVAS_CLASS','Custom','3339180MtZBbk','Wide','FitWidth','FitPage','createElement','\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.','UniverProPrint','\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','className','PrintScale','FitHeight','Portrait','833250TJYhLT','1897428MYgQzd','PaperMarginMap','\x0a\x20\x20\x20\x20.','951706disVHY','104732HGZfDX','Middle','Normal','Narrow','Landscape','innerHTML','amd','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}','Start','1083502iNwkky','PRINT_CONTAINER_CLASS','Origin','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','printing-canvas-container','style','offline-printing-css','PrintDirection','exports','End','3800024etEenG','toStringTag','15pXtKYU'];_0x2162=function(){return _0x3d0fc5;};return _0x2162();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.14-nightly.202511031023",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Print module for UniverJS",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
],
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"typescript": "^5.9.3",
|
|
46
|
-
"vite": "^7.1.
|
|
46
|
+
"vite": "^7.1.12",
|
|
47
47
|
"vitest": "^3.2.4",
|
|
48
|
-
"@univerjs-infra/shared": "0.10.
|
|
48
|
+
"@univerjs-infra/shared": "0.10.14"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|