@univerjs-pro/print 0.7.0 → 0.8.0-beta.1
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';const _0x1b6c39=_0x5a89;function _0x5a89(_0x1a5c6d,_0x5dbbbf){const _0x4a5094=_0x4a50();return _0x5a89=function(_0x5a89ce,_0x77c147){_0x5a89ce=_0x5a89ce-0x144;let _0x5eae03=_0x4a5094[_0x5a89ce];return _0x5eae03;},_0x5a89(_0x1a5c6d,_0x5dbbbf);}function _0x4a50(){const _0x35136c=['Narrow','PRINT_CONTAINER_CLASS','Origin','110pCKfBq','PrintPaperMargin','toStringTag','printing-canvas','17418klsVVs','Portrait','144WlDVNQ','printing-canvas-container','createPrintStyle','Landscape','Start','PrintAlign','FitHeight','Normal','25744wPtGFj','1246DRFTjC','\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','PRINT_CANVAS_CLASS','1803835VCvHDF','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','1150YmozeL','Wide','defineProperty','\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.','175232mBFRJB','\x0a\x20\x20\x20\x20.','End','Middle','innerHTML',',\x20.','Module','className','708504goybCv','Custom','340BXyImE','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.','FitWidth','None','PaperMarginMap','33879nKiyZb','\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','708516hAcneu'];_0x4a50=function(){return _0x35136c;};return _0x4a50();}(function(_0x44541b,_0x47bdd6){const _0x3331d2=_0x5a89,_0x427d37=_0x44541b();while(!![]){try{const _0x17d2f8=-parseInt(_0x3331d2(0x170))/0x1+-parseInt(_0x3331d2(0x14a))/0x2+parseInt(_0x3331d2(0x151))/0x3*(parseInt(_0x3331d2(0x14c))/0x4)+parseInt(_0x3331d2(0x16c))/0x5*(parseInt(_0x3331d2(0x15b))/0x6)+parseInt(_0x3331d2(0x166))/0x7*(parseInt(_0x3331d2(0x165))/0x8)+parseInt(_0x3331d2(0x153))/0x9*(parseInt(_0x3331d2(0x157))/0xa)+-parseInt(_0x3331d2(0x169))/0xb*(parseInt(_0x3331d2(0x15d))/0xc);if(_0x17d2f8===_0x47bdd6)break;else _0x427d37['push'](_0x427d37['shift']());}catch(_0x463fcb){_0x427d37['push'](_0x427d37['shift']());}}}(_0x4a50,0x8aee3));Object[_0x1b6c39(0x16e)](exports,Symbol[_0x1b6c39(0x159)],{'value':_0x1b6c39(0x148)});var e=(_0x271eac=>(_0x271eac[_0x1b6c39(0x15c)]=_0x1b6c39(0x15c),_0x271eac[_0x1b6c39(0x160)]='Landscape',_0x271eac))(e||{}),l=(_0x15d924=>(_0x15d924[_0x1b6c39(0x156)]=_0x1b6c39(0x156),_0x15d924[_0x1b6c39(0x14e)]='FitWidth',_0x15d924[_0x1b6c39(0x163)]='FitHeight',_0x15d924['FitPage']='FitPage',_0x15d924['Custom']=_0x1b6c39(0x14b),_0x15d924))(l||{}),c=(_0x20c517=>(_0x20c517[_0x1b6c39(0x161)]=_0x1b6c39(0x161),_0x20c517[_0x1b6c39(0x144)]=_0x1b6c39(0x144),_0x20c517[_0x1b6c39(0x145)]=_0x1b6c39(0x145),_0x20c517))(c||{}),i=(_0x2fe466=>(_0x2fe466[_0x1b6c39(0x164)]=_0x1b6c39(0x164),_0x2fe466[_0x1b6c39(0x154)]=_0x1b6c39(0x154),_0x2fe466[_0x1b6c39(0x16d)]=_0x1b6c39(0x16d),_0x2fe466[_0x1b6c39(0x14f)]=_0x1b6c39(0x14f),_0x2fe466))(i||{});const h={[i[_0x1b6c39(0x164)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i[_0x1b6c39(0x154)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i[_0x1b6c39(0x16d)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i[_0x1b6c39(0x14f)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x1b6c39(0x15e),n=_0x1b6c39(0x15a);function m(_0x15ec4f,_0x21c801,_0x440573){const _0x50c7ca=_0x1b6c39,_0x56a989=_0x440573===e['Portrait']?_0x15ec4f:_0x21c801,_0x43f749=_0x440573===e[_0x50c7ca(0x15c)]?_0x21c801:_0x15ec4f,_0x59d2f4=_0x50c7ca(0x171)+n+_0x50c7ca(0x152)+_0x56a989+'px\x20'+_0x43f749+_0x50c7ca(0x14d)+r+_0x50c7ca(0x147)+r+_0x50c7ca(0x16f)+n+_0x50c7ca(0x167)+_0x43f749+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x56a989+_0x50c7ca(0x16a),_0x53f772=document['createElement']('style');return _0x53f772[_0x50c7ca(0x146)]=_0x59d2f4,_0x53f772[_0x50c7ca(0x149)]='offline-printing-css',_0x53f772;}exports[_0x1b6c39(0x168)]=n,exports[_0x1b6c39(0x155)]=r,exports[_0x1b6c39(0x150)]=h,exports[_0x1b6c39(0x162)]=c,exports[_0x1b6c39(0x16b)]=e,exports[_0x1b6c39(0x158)]=i,exports['PrintScale']=l,exports[_0x1b6c39(0x15f)]=m;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x56cec0=_0x19d7;(function(_0xcf5e91,_0x402e80){const _0x10308d=_0x19d7,_0x446bc3=_0xcf5e91();while(!![]){try{const _0x37e53a=-parseInt(_0x10308d(0xa7))/0x1*(parseInt(_0x10308d(0xa8))/0x2)+-parseInt(_0x10308d(0xb8))/0x3*(parseInt(_0x10308d(0xa3))/0x4)+-parseInt(_0x10308d(0xa9))/0x5*(-parseInt(_0x10308d(0xad))/0x6)+-parseInt(_0x10308d(0x9e))/0x7+parseInt(_0x10308d(0xa6))/0x8+-parseInt(_0x10308d(0xa5))/0x9*(-parseInt(_0x10308d(0x9b))/0xa)+-parseInt(_0x10308d(0xb5))/0xb;if(_0x37e53a===_0x402e80)break;else _0x446bc3['push'](_0x446bc3['shift']());}catch(_0x53abcc){_0x446bc3['push'](_0x446bc3['shift']());}}}(_0x12c7,0x56804));function _0x12c7(){const _0x401de7=['\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.','78iMfxrT','printing-canvas-container','Narrow','Wide','20AystrP','FitHeight','None','1151052wHVbGw','Custom','createElement','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20',',\x20.','7196cJQylN','Middle','2601270tKSXiA','2048272OqJnvv','7xJzsGF','79706nfOqEL','736045HghSBl','Landscape','className','Normal','6uHpwUB','FitPage','Origin','\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;\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}','End','FitWidth','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.','1504954HLWlIS','Portrait'];_0x12c7=function(){return _0x401de7;};return _0x12c7();}var e=(_0x16a066=>(_0x16a066[_0x56cec0(0xb6)]='Portrait',_0x16a066[_0x56cec0(0xaa)]=_0x56cec0(0xaa),_0x16a066))(e||{}),l=(_0x53f89f=>(_0x53f89f[_0x56cec0(0xaf)]=_0x56cec0(0xaf),_0x53f89f['FitWidth']=_0x56cec0(0xb3),_0x53f89f[_0x56cec0(0x9c)]=_0x56cec0(0x9c),_0x53f89f[_0x56cec0(0xae)]='FitPage',_0x53f89f[_0x56cec0(0x9f)]='Custom',_0x53f89f))(l||{}),m=(_0x5bfce8=>(_0x5bfce8['Start']='Start',_0x5bfce8[_0x56cec0(0xb2)]=_0x56cec0(0xb2),_0x5bfce8['Middle']=_0x56cec0(0xa4),_0x5bfce8))(m||{}),o=(_0x598a5a=>(_0x598a5a['Normal']=_0x56cec0(0xac),_0x598a5a[_0x56cec0(0x99)]=_0x56cec0(0x99),_0x598a5a['Wide']=_0x56cec0(0x9a),_0x598a5a[_0x56cec0(0x9d)]=_0x56cec0(0x9d),_0x598a5a))(o||{});const c={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x56cec0(0x99)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x56cec0(0x9a)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x56cec0(0x9d)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x56cec0(0xb9),d='printing-canvas';function g(_0x311929,_0x5731d1,_0x90e3c8){const _0x50c14d=_0x56cec0,_0x2c6e02=_0x90e3c8===e['Portrait']?_0x311929:_0x5731d1,_0x38db8d=_0x90e3c8===e[_0x50c14d(0xb6)]?_0x5731d1:_0x311929,_0x3bd79f='\x0a\x20\x20\x20\x20.'+d+_0x50c14d(0xb0)+_0x2c6e02+'px\x20'+_0x38db8d+_0x50c14d(0xb4)+p+_0x50c14d(0xa2)+p+_0x50c14d(0xb7)+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'+_0x38db8d+_0x50c14d(0xa1)+_0x2c6e02+_0x50c14d(0xb1),_0x45e3a9=document[_0x50c14d(0xa0)]('style');return _0x45e3a9['innerHTML']=_0x3bd79f,_0x45e3a9[_0x50c14d(0xab)]='offline-printing-css',_0x45e3a9;}function _0x19d7(_0x187131,_0x56a720){const _0x12c765=_0x12c7();return _0x19d7=function(_0x19d792,_0x1b2a9b){_0x19d792=_0x19d792-0x99;let _0x1b4aee=_0x12c765[_0x19d792];return _0x1b4aee;},_0x19d7(_0x187131,_0x56a720);}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
|
+
const _0x56cec0=_0x19d7;(function(_0xcf5e91,_0x402e80){const _0x10308d=_0x19d7,_0x446bc3=_0xcf5e91();while(!![]){try{const _0x37e53a=-parseInt(_0x10308d(0xa7))/0x1*(parseInt(_0x10308d(0xa8))/0x2)+-parseInt(_0x10308d(0xb8))/0x3*(parseInt(_0x10308d(0xa3))/0x4)+-parseInt(_0x10308d(0xa9))/0x5*(-parseInt(_0x10308d(0xad))/0x6)+-parseInt(_0x10308d(0x9e))/0x7+parseInt(_0x10308d(0xa6))/0x8+-parseInt(_0x10308d(0xa5))/0x9*(-parseInt(_0x10308d(0x9b))/0xa)+-parseInt(_0x10308d(0xb5))/0xb;if(_0x37e53a===_0x402e80)break;else _0x446bc3['push'](_0x446bc3['shift']());}catch(_0x53abcc){_0x446bc3['push'](_0x446bc3['shift']());}}}(_0x12c7,0x56804));function _0x12c7(){const _0x401de7=['\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.','78iMfxrT','printing-canvas-container','Narrow','Wide','20AystrP','FitHeight','None','1151052wHVbGw','Custom','createElement','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20',',\x20.','7196cJQylN','Middle','2601270tKSXiA','2048272OqJnvv','7xJzsGF','79706nfOqEL','736045HghSBl','Landscape','className','Normal','6uHpwUB','FitPage','Origin','\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;\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}','End','FitWidth','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.','1504954HLWlIS','Portrait'];_0x12c7=function(){return _0x401de7;};return _0x12c7();}var e=(_0x16a066=>(_0x16a066[_0x56cec0(0xb6)]='Portrait',_0x16a066[_0x56cec0(0xaa)]=_0x56cec0(0xaa),_0x16a066))(e||{}),l=(_0x53f89f=>(_0x53f89f[_0x56cec0(0xaf)]=_0x56cec0(0xaf),_0x53f89f['FitWidth']=_0x56cec0(0xb3),_0x53f89f[_0x56cec0(0x9c)]=_0x56cec0(0x9c),_0x53f89f[_0x56cec0(0xae)]='FitPage',_0x53f89f[_0x56cec0(0x9f)]='Custom',_0x53f89f))(l||{}),m=(_0x5bfce8=>(_0x5bfce8['Start']='Start',_0x5bfce8[_0x56cec0(0xb2)]=_0x56cec0(0xb2),_0x5bfce8['Middle']=_0x56cec0(0xa4),_0x5bfce8))(m||{}),o=(_0x598a5a=>(_0x598a5a['Normal']=_0x56cec0(0xac),_0x598a5a[_0x56cec0(0x99)]=_0x56cec0(0x99),_0x598a5a['Wide']=_0x56cec0(0x9a),_0x598a5a[_0x56cec0(0x9d)]=_0x56cec0(0x9d),_0x598a5a))(o||{});const c={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x56cec0(0x99)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x56cec0(0x9a)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x56cec0(0x9d)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x56cec0(0xb9),d='printing-canvas';function g(_0x311929,_0x5731d1,_0x90e3c8){const _0x50c14d=_0x56cec0,_0x2c6e02=_0x90e3c8===e['Portrait']?_0x311929:_0x5731d1,_0x38db8d=_0x90e3c8===e[_0x50c14d(0xb6)]?_0x5731d1:_0x311929,_0x3bd79f='\x0a\x20\x20\x20\x20.'+d+_0x50c14d(0xb0)+_0x2c6e02+'px\x20'+_0x38db8d+_0x50c14d(0xb4)+p+_0x50c14d(0xa2)+p+_0x50c14d(0xb7)+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'+_0x38db8d+_0x50c14d(0xa1)+_0x2c6e02+_0x50c14d(0xb1),_0x45e3a9=document[_0x50c14d(0xa0)]('style');return _0x45e3a9['innerHTML']=_0x3bd79f,_0x45e3a9[_0x50c14d(0xab)]='offline-printing-css',_0x45e3a9;}function _0x19d7(_0x187131,_0x56a720){const _0x12c765=_0x12c7();return _0x19d7=function(_0x19d792,_0x1b2a9b){_0x19d792=_0x19d792-0x99;let _0x1b4aee=_0x12c765[_0x19d792];return _0x1b4aee;},_0x19d7(_0x187131,_0x56a720);}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 _0x5935(_0x458100,_0x5e60ce){const _0x207be4=_0x207b();return _0x5935=function(_0x5935f9,_0x1c24be){_0x5935f9=_0x5935f9-0xcb;let _0x4c4603=_0x207be4[_0x5935f9];return _0x4c4603;},_0x5935(_0x458100,_0x5e60ce);}(function(_0x538934,_0x167845){const _0x337898=_0x5935,_0x5ef88e=_0x538934();while(!![]){try{const _0x2982a1=-parseInt(_0x337898(0xd0))/0x1+-parseInt(_0x337898(0xf3))/0x2*(-parseInt(_0x337898(0xf5))/0x3)+-parseInt(_0x337898(0xe7))/0x4*(parseInt(_0x337898(0xd6))/0x5)+-parseInt(_0x337898(0xdb))/0x6*(-parseInt(_0x337898(0xd9))/0x7)+parseInt(_0x337898(0xe9))/0x8+parseInt(_0x337898(0xf0))/0x9*(-parseInt(_0x337898(0xec))/0xa)+parseInt(_0x337898(0xf6))/0xb;if(_0x2982a1===_0x167845)break;else _0x5ef88e['push'](_0x5ef88e['shift']());}catch(_0x2c7746){_0x5ef88e['push'](_0x5ef88e['shift']());}}}(_0x207b,0x1a859),function(_0x4f00f2,_0x24880e){const _0x12963b=_0x5935;typeof exports==_0x12963b(0xe8)&&typeof module<'u'?_0x24880e(exports):typeof define==_0x12963b(0xf9)&&define[_0x12963b(0xe5)]?define([_0x12963b(0xf4)],_0x24880e):(_0x4f00f2=typeof globalThis<'u'?globalThis:_0x4f00f2||self,_0x24880e(_0x4f00f2[_0x12963b(0xde)]={}));}(this,function(_0x2c860e){'use strict';const _0x2bfaaf=_0x5935;var _0x26c6c7=(_0x56adf9=>(_0x56adf9['Portrait']=_0x2bfaaf(0xea),_0x56adf9[_0x2bfaaf(0xce)]=_0x2bfaaf(0xce),_0x56adf9))(_0x26c6c7||{}),_0x54a513=(_0x2a2d33=>(_0x2a2d33[_0x2bfaaf(0xcf)]=_0x2bfaaf(0xcf),_0x2a2d33[_0x2bfaaf(0xeb)]='FitWidth',_0x2a2d33[_0x2bfaaf(0xfc)]=_0x2bfaaf(0xfc),_0x2a2d33[_0x2bfaaf(0xfb)]=_0x2bfaaf(0xfb),_0x2a2d33['Custom']=_0x2bfaaf(0xe6),_0x2a2d33))(_0x54a513||{}),_0x34eac8=(_0x36cd1c=>(_0x36cd1c[_0x2bfaaf(0xe0)]='Start',_0x36cd1c['End']='End',_0x36cd1c[_0x2bfaaf(0xdd)]=_0x2bfaaf(0xdd),_0x36cd1c))(_0x34eac8||{}),_0x43308d=(_0x3adcd5=>(_0x3adcd5[_0x2bfaaf(0xef)]='Normal',_0x3adcd5[_0x2bfaaf(0xdf)]='Narrow',_0x3adcd5[_0x2bfaaf(0xed)]='Wide',_0x3adcd5['None']=_0x2bfaaf(0xd4),_0x3adcd5))(_0x43308d||{});const _0x6ab42b={[_0x43308d[_0x2bfaaf(0xef)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x43308d[_0x2bfaaf(0xdf)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x43308d[_0x2bfaaf(0xed)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x43308d[_0x2bfaaf(0xd4)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0xe2e876=_0x2bfaaf(0xcb),_0x336b98=_0x2bfaaf(0xfa);function _0x404231(_0x4df858,_0x143da7,_0x513b6d){const _0x1ab911=_0x2bfaaf,_0xe6da46=_0x513b6d===_0x26c6c7[_0x1ab911(0xea)]?_0x4df858:_0x143da7,_0x117ac0=_0x513b6d===_0x26c6c7[_0x1ab911(0xea)]?_0x143da7:_0x4df858,_0x4556dd=_0x1ab911(0xcd)+_0x336b98+_0x1ab911(0xd1)+_0xe6da46+_0x1ab911(0xd3)+_0x117ac0+_0x1ab911(0xf2)+_0xe2e876+_0x1ab911(0xda)+_0xe2e876+_0x1ab911(0xe3)+_0x336b98+_0x1ab911(0xcc)+_0x117ac0+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0xe6da46+'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}',_0x12976d=document[_0x1ab911(0xd5)](_0x1ab911(0xe1));return _0x12976d[_0x1ab911(0xf7)]=_0x4556dd,_0x12976d[_0x1ab911(0xf8)]=_0x1ab911(0xee),_0x12976d;}_0x2c860e['PRINT_CANVAS_CLASS']=_0x336b98,_0x2c860e[_0x2bfaaf(0xe2)]=_0xe2e876,_0x2c860e['PaperMarginMap']=_0x6ab42b,_0x2c860e['PrintAlign']=_0x34eac8,_0x2c860e['PrintDirection']=_0x26c6c7,_0x2c860e[_0x2bfaaf(0xd8)]=_0x43308d,_0x2c860e[_0x2bfaaf(0xd2)]=_0x54a513,_0x2c860e[_0x2bfaaf(0xd7)]=_0x404231,Object[_0x2bfaaf(0xdc)](_0x2c860e,Symbol[_0x2bfaaf(0xe4)],{'value':_0x2bfaaf(0xf1)});}));function _0x207b(){const _0x4cc599=['1569NucRbc','3186414CNMmwt','innerHTML','className','function','printing-canvas','FitPage','FitHeight','printing-canvas-container','\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','\x0a\x20\x20\x20\x20.','Landscape','Origin','215856yqKmlD','\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','PrintScale','px\x20','None','createElement','324505jKtVFo','createPrintStyle','PrintPaperMargin','147unHadq',',\x20.','678LIxiQM','defineProperty','Middle','UniverProPrint','Narrow','Start','style','PRINT_CONTAINER_CLASS','\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.','toStringTag','amd','Custom','12iBLcub','object','1285288IuAjMV','Portrait','FitWidth','836170lBclIu','Wide','offline-printing-css','Normal','9yZdHjB','Module','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.','574TYMwPW','exports'];_0x207b=function(){return _0x4cc599;};return _0x207b();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0-beta.1",
|
|
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.1.
|
|
48
|
-
"@univerjs-infra/shared": "0.
|
|
47
|
+
"vitest": "^3.1.4",
|
|
48
|
+
"@univerjs-infra/shared": "0.8.0-beta.1"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|