@univerjs-pro/print 0.10.2 → 0.10.3
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 _0x5061bc=_0x4731;function _0x4731(_0x589b5c,_0x3b77f8){const _0x2340ba=_0x2340();return _0x4731=function(_0x47313c,_0x4b65a0){_0x47313c=_0x47313c-0xd4;let _0x532547=_0x2340ba[_0x47313c];return _0x532547;},_0x4731(_0x589b5c,_0x3b77f8);}(function(_0x3420c0,_0x325ad3){const _0x36c96d=_0x4731,_0x1d4184=_0x3420c0();while(!![]){try{const _0x19a1f5=-parseInt(_0x36c96d(0xde))/0x1*(-parseInt(_0x36c96d(0xed))/0x2)+parseInt(_0x36c96d(0xf2))/0x3*(-parseInt(_0x36c96d(0xf5))/0x4)+-parseInt(_0x36c96d(0xd4))/0x5*(parseInt(_0x36c96d(0xd9))/0x6)+parseInt(_0x36c96d(0xe9))/0x7*(-parseInt(_0x36c96d(0x105))/0x8)+-parseInt(_0x36c96d(0x103))/0x9+-parseInt(_0x36c96d(0xec))/0xa*(parseInt(_0x36c96d(0xf9))/0xb)+-parseInt(_0x36c96d(0xdb))/0xc*(-parseInt(_0x36c96d(0xd7))/0xd);if(_0x19a1f5===_0x325ad3)break;else _0x1d4184['push'](_0x1d4184['shift']());}catch(_0x17ce1c){_0x1d4184['push'](_0x1d4184['shift']());}}}(_0x2340,0xd4879));Object[_0x5061bc(0xfd)](exports,Symbol[_0x5061bc(0xf4)],{'value':_0x5061bc(0xf8)});var e=(_0x5c46b8=>(_0x5c46b8[_0x5061bc(0xff)]='Portrait',_0x5c46b8[_0x5061bc(0xe3)]=_0x5061bc(0xe3),_0x5c46b8))(e||{}),l=(_0x535b7d=>(_0x535b7d[_0x5061bc(0xf3)]=_0x5061bc(0xf3),_0x535b7d[_0x5061bc(0xf1)]=_0x5061bc(0xf1),_0x535b7d[_0x5061bc(0xe1)]=_0x5061bc(0xe1),_0x535b7d[_0x5061bc(0xdd)]=_0x5061bc(0xdd),_0x535b7d['Custom']='Custom',_0x535b7d))(l||{}),c=(_0x3bbca9=>(_0x3bbca9['Start']=_0x5061bc(0xef),_0x3bbca9[_0x5061bc(0xf0)]=_0x5061bc(0xf0),_0x3bbca9[_0x5061bc(0xfa)]=_0x5061bc(0xfa),_0x3bbca9))(c||{}),i=(_0x1c869d=>(_0x1c869d[_0x5061bc(0xe7)]=_0x5061bc(0xe7),_0x1c869d[_0x5061bc(0x100)]=_0x5061bc(0x100),_0x1c869d[_0x5061bc(0xdf)]=_0x5061bc(0xdf),_0x1c869d[_0x5061bc(0xd6)]=_0x5061bc(0xd6),_0x1c869d))(i||{});function _0x2340(){const _0x5f000e=['None','4589hZaHXt','\x0a\x20\x20\x20\x20.','6LgIQsN','PaperMarginMap','60528iAgruR','className','FitPage','1VUcmxp','Wide','style','FitHeight','offline-printing-css','Landscape','\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.','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.','Normal','printing-canvas-container','466529GUmDlD','PRINT_CONTAINER_CLASS','\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','1807330liNYeu','3038236bXVPSE','printing-canvas','Start','End','FitWidth','33JXzduj','Origin','toStringTag','57444MnDsLH','PrintDirection','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','33QYmXLt','Middle','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','PRINT_CANVAS_CLASS','defineProperty','createPrintStyle','Portrait','Narrow','PrintPaperMargin','PrintAlign','6162768xxbCUF','PrintScale','112DOySon','555745eKFVHQ','\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.'];_0x2340=function(){return _0x5f000e;};return _0x2340();}const h={[i[_0x5061bc(0xe7)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i[_0x5061bc(0x100)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i[_0x5061bc(0xdf)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x5061bc(0xe8),n=_0x5061bc(0xee);function m(_0x2abbe2,_0x59153f,_0x24ce49){const _0x2c23f7=_0x5061bc,_0x5b8f74=_0x24ce49===e[_0x2c23f7(0xff)]?_0x2abbe2:_0x59153f,_0x46a012=_0x24ce49===e[_0x2c23f7(0xff)]?_0x59153f:_0x2abbe2,_0x4c87c4=_0x2c23f7(0xd8)+n+_0x2c23f7(0xeb)+_0x5b8f74+'px\x20'+_0x46a012+_0x2c23f7(0xe6)+r+_0x2c23f7(0xe5)+r+_0x2c23f7(0xd5)+n+_0x2c23f7(0xe4)+_0x46a012+_0x2c23f7(0xfb)+_0x5b8f74+_0x2c23f7(0xf7),_0xb30c49=document['createElement'](_0x2c23f7(0xe0));return _0xb30c49['innerHTML']=_0x4c87c4,_0xb30c49[_0x2c23f7(0xdc)]=_0x2c23f7(0xe2),_0xb30c49;}exports[_0x5061bc(0xfc)]=n,exports[_0x5061bc(0xea)]=r,exports[_0x5061bc(0xda)]=h,exports[_0x5061bc(0x102)]=c,exports[_0x5061bc(0xf6)]=e,exports[_0x5061bc(0x101)]=i,exports[_0x5061bc(0x104)]=l,exports[_0x5061bc(0xfe)]=m;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x21962d=_0x3931;(function(_0x5a86c7,_0x1c31d1){const _0x1ee929=_0x3931,_0x3f9e8e=_0x5a86c7();while(!![]){try{const _0x5e4dce=-parseInt(_0x1ee929(0x114))/0x1+-parseInt(_0x1ee929(0x11c))/0x2+parseInt(_0x1ee929(0x127))/0x3+parseInt(_0x1ee929(0x126))/0x4*(parseInt(_0x1ee929(0x12a))/0x5)+-parseInt(_0x1ee929(0x120))/0x6+-parseInt(_0x1ee929(0x123))/0x7+parseInt(_0x1ee929(0x111))/0x8;if(_0x5e4dce===_0x1c31d1)break;else _0x3f9e8e['push'](_0x3f9e8e['shift']());}catch(_0x5a44f2){_0x3f9e8e['push'](_0x3f9e8e['shift']());}}}(_0x4a53,0xb265f));var e=(_0x2e6fa5=>(_0x2e6fa5[_0x21962d(0x12c)]=_0x21962d(0x12c),_0x2e6fa5['Landscape']=_0x21962d(0x12f),_0x2e6fa5))(e||{}),l=(_0x5f2644=>(_0x5f2644['Origin']=_0x21962d(0x11e),_0x5f2644[_0x21962d(0x11d)]=_0x21962d(0x11d),_0x5f2644[_0x21962d(0x122)]=_0x21962d(0x122),_0x5f2644[_0x21962d(0x121)]=_0x21962d(0x121),_0x5f2644[_0x21962d(0x128)]=_0x21962d(0x128),_0x5f2644))(l||{}),m=(_0x7b3a32=>(_0x7b3a32[_0x21962d(0x119)]=_0x21962d(0x119),_0x7b3a32[_0x21962d(0x117)]=_0x21962d(0x117),_0x7b3a32[_0x21962d(0x129)]=_0x21962d(0x129),_0x7b3a32))(m||{}),o=(_0x8143e1=>(_0x8143e1[_0x21962d(0x124)]=_0x21962d(0x124),_0x8143e1[_0x21962d(0x112)]=_0x21962d(0x112),_0x8143e1[_0x21962d(0x115)]='Wide',_0x8143e1[_0x21962d(0x116)]=_0x21962d(0x116),_0x8143e1))(o||{});function _0x3931(_0x4b38fa,_0x50e99f){const _0x4a538d=_0x4a53();return _0x3931=function(_0x3931d9,_0x2b8019){_0x3931d9=_0x3931d9-0x111;let _0x4ecd4f=_0x4a538d[_0x3931d9];return _0x4ecd4f;},_0x3931(_0x4b38fa,_0x50e99f);}function _0x4a53(){const _0x3abe09=['1429653ebwMke','Wide','None','End','\x0a\x20\x20\x20\x20.','Start','\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.','style','1648916dWnEpW','FitWidth','Origin','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}','4923312mjvdjl','FitPage','FitHeight','4819556nojFwx','Normal','innerHTML','4OooPBS','1587174ejCYSs','Custom','Middle','2721655zHZRAy','createElement','Portrait','printing-canvas','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.','Landscape','px\x20','27364008XzOEbH','Narrow','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'];_0x4a53=function(){return _0x3abe09;};return _0x4a53();}const c={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p='printing-canvas-container',d=_0x21962d(0x12d);function g(_0x42e6c2,_0x1b7779,_0x460faa){const _0x325545=_0x21962d,_0x506812=_0x460faa===e[_0x325545(0x12c)]?_0x42e6c2:_0x1b7779,_0x4911bf=_0x460faa===e[_0x325545(0x12c)]?_0x1b7779:_0x42e6c2,_0x5d9934=_0x325545(0x118)+d+'\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'+_0x506812+_0x325545(0x130)+_0x4911bf+_0x325545(0x12e)+p+',\x20.'+p+_0x325545(0x11a)+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'+_0x4911bf+_0x325545(0x113)+_0x506812+_0x325545(0x11f),_0xd21717=document[_0x325545(0x12b)](_0x325545(0x11b));return _0xd21717[_0x325545(0x125)]=_0x5d9934,_0xd21717['className']='offline-printing-css',_0xd21717;}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
|
-
function
|
|
1
|
+
const _0x21962d=_0x3931;(function(_0x5a86c7,_0x1c31d1){const _0x1ee929=_0x3931,_0x3f9e8e=_0x5a86c7();while(!![]){try{const _0x5e4dce=-parseInt(_0x1ee929(0x114))/0x1+-parseInt(_0x1ee929(0x11c))/0x2+parseInt(_0x1ee929(0x127))/0x3+parseInt(_0x1ee929(0x126))/0x4*(parseInt(_0x1ee929(0x12a))/0x5)+-parseInt(_0x1ee929(0x120))/0x6+-parseInt(_0x1ee929(0x123))/0x7+parseInt(_0x1ee929(0x111))/0x8;if(_0x5e4dce===_0x1c31d1)break;else _0x3f9e8e['push'](_0x3f9e8e['shift']());}catch(_0x5a44f2){_0x3f9e8e['push'](_0x3f9e8e['shift']());}}}(_0x4a53,0xb265f));var e=(_0x2e6fa5=>(_0x2e6fa5[_0x21962d(0x12c)]=_0x21962d(0x12c),_0x2e6fa5['Landscape']=_0x21962d(0x12f),_0x2e6fa5))(e||{}),l=(_0x5f2644=>(_0x5f2644['Origin']=_0x21962d(0x11e),_0x5f2644[_0x21962d(0x11d)]=_0x21962d(0x11d),_0x5f2644[_0x21962d(0x122)]=_0x21962d(0x122),_0x5f2644[_0x21962d(0x121)]=_0x21962d(0x121),_0x5f2644[_0x21962d(0x128)]=_0x21962d(0x128),_0x5f2644))(l||{}),m=(_0x7b3a32=>(_0x7b3a32[_0x21962d(0x119)]=_0x21962d(0x119),_0x7b3a32[_0x21962d(0x117)]=_0x21962d(0x117),_0x7b3a32[_0x21962d(0x129)]=_0x21962d(0x129),_0x7b3a32))(m||{}),o=(_0x8143e1=>(_0x8143e1[_0x21962d(0x124)]=_0x21962d(0x124),_0x8143e1[_0x21962d(0x112)]=_0x21962d(0x112),_0x8143e1[_0x21962d(0x115)]='Wide',_0x8143e1[_0x21962d(0x116)]=_0x21962d(0x116),_0x8143e1))(o||{});function _0x3931(_0x4b38fa,_0x50e99f){const _0x4a538d=_0x4a53();return _0x3931=function(_0x3931d9,_0x2b8019){_0x3931d9=_0x3931d9-0x111;let _0x4ecd4f=_0x4a538d[_0x3931d9];return _0x4ecd4f;},_0x3931(_0x4b38fa,_0x50e99f);}function _0x4a53(){const _0x3abe09=['1429653ebwMke','Wide','None','End','\x0a\x20\x20\x20\x20.','Start','\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.','style','1648916dWnEpW','FitWidth','Origin','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}','4923312mjvdjl','FitPage','FitHeight','4819556nojFwx','Normal','innerHTML','4OooPBS','1587174ejCYSs','Custom','Middle','2721655zHZRAy','createElement','Portrait','printing-canvas','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.','Landscape','px\x20','27364008XzOEbH','Narrow','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'];_0x4a53=function(){return _0x3abe09;};return _0x4a53();}const c={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p='printing-canvas-container',d=_0x21962d(0x12d);function g(_0x42e6c2,_0x1b7779,_0x460faa){const _0x325545=_0x21962d,_0x506812=_0x460faa===e[_0x325545(0x12c)]?_0x42e6c2:_0x1b7779,_0x4911bf=_0x460faa===e[_0x325545(0x12c)]?_0x1b7779:_0x42e6c2,_0x5d9934=_0x325545(0x118)+d+'\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'+_0x506812+_0x325545(0x130)+_0x4911bf+_0x325545(0x12e)+p+',\x20.'+p+_0x325545(0x11a)+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'+_0x4911bf+_0x325545(0x113)+_0x506812+_0x325545(0x11f),_0xd21717=document[_0x325545(0x12b)](_0x325545(0x11b));return _0xd21717[_0x325545(0x125)]=_0x5d9934,_0xd21717['className']='offline-printing-css',_0xd21717;}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(_0x3e8602,_0x2bf32d){const _0x32b6d9=_0x3543,_0x1fe9c9=_0x3e8602();while(!![]){try{const _0x43666f=parseInt(_0x32b6d9(0xaf))/0x1*(-parseInt(_0x32b6d9(0x99))/0x2)+-parseInt(_0x32b6d9(0xbd))/0x3+-parseInt(_0x32b6d9(0x9a))/0x4+-parseInt(_0x32b6d9(0xa1))/0x5+-parseInt(_0x32b6d9(0xa7))/0x6*(-parseInt(_0x32b6d9(0xb9))/0x7)+-parseInt(_0x32b6d9(0xac))/0x8+parseInt(_0x32b6d9(0xb7))/0x9;if(_0x43666f===_0x2bf32d)break;else _0x1fe9c9['push'](_0x1fe9c9['shift']());}catch(_0x424b52){_0x1fe9c9['push'](_0x1fe9c9['shift']());}}}(_0x3fe3,0xd1556),function(_0x3c60ac,_0x54420a){const _0x45dc86=_0x3543;typeof exports==_0x45dc86(0xb4)&&typeof module<'u'?_0x54420a(exports):typeof define==_0x45dc86(0xae)&&define[_0x45dc86(0xbb)]?define([_0x45dc86(0x9c)],_0x54420a):(_0x3c60ac=typeof globalThis<'u'?globalThis:_0x3c60ac||self,_0x54420a(_0x3c60ac[_0x45dc86(0x95)]={}));}(this,function(_0x32c8a4){'use strict';const _0x115c57=_0x3543;var _0x8dfef6=(_0x4384c7=>(_0x4384c7[_0x115c57(0xb2)]='Portrait',_0x4384c7[_0x115c57(0xaa)]='Landscape',_0x4384c7))(_0x8dfef6||{}),_0x32260b=(_0x42cd14=>(_0x42cd14[_0x115c57(0x93)]='Origin',_0x42cd14[_0x115c57(0xb6)]=_0x115c57(0xb6),_0x42cd14['FitHeight']=_0x115c57(0xba),_0x42cd14[_0x115c57(0x98)]=_0x115c57(0x98),_0x42cd14[_0x115c57(0xa6)]=_0x115c57(0xa6),_0x42cd14))(_0x32260b||{}),_0x1584ad=(_0x40fba2=>(_0x40fba2[_0x115c57(0xa2)]='Start',_0x40fba2[_0x115c57(0x92)]=_0x115c57(0x92),_0x40fba2[_0x115c57(0xab)]=_0x115c57(0xab),_0x40fba2))(_0x1584ad||{}),_0x42ddbe=(_0x2b5fcc=>(_0x2b5fcc[_0x115c57(0x9b)]='Normal',_0x2b5fcc[_0x115c57(0xbc)]=_0x115c57(0xbc),_0x2b5fcc[_0x115c57(0x91)]=_0x115c57(0x91),_0x2b5fcc['None']=_0x115c57(0x9e),_0x2b5fcc))(_0x42ddbe||{});const _0x71c752={[_0x42ddbe['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x42ddbe[_0x115c57(0xbc)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x42ddbe[_0x115c57(0x91)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x42ddbe['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x30338d=_0x115c57(0xbe),_0x41bb0e=_0x115c57(0xb5);function _0xe117df(_0x3658cd,_0x22fd42,_0x390713){const _0x5b36e6=_0x115c57,_0x29e508=_0x390713===_0x8dfef6['Portrait']?_0x3658cd:_0x22fd42,_0x412551=_0x390713===_0x8dfef6[_0x5b36e6(0xb2)]?_0x22fd42:_0x3658cd,_0x49ace4=_0x5b36e6(0x94)+_0x41bb0e+'\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'+_0x29e508+'px\x20'+_0x412551+_0x5b36e6(0xb1)+_0x30338d+_0x5b36e6(0x9f)+_0x30338d+'\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.'+_0x41bb0e+_0x5b36e6(0xad)+_0x412551+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x29e508+_0x5b36e6(0x96),_0x41c0a3=document[_0x5b36e6(0xb8)](_0x5b36e6(0xa8));return _0x41c0a3[_0x5b36e6(0x90)]=_0x49ace4,_0x41c0a3[_0x5b36e6(0xc0)]=_0x5b36e6(0xa4),_0x41c0a3;}_0x32c8a4['PRINT_CANVAS_CLASS']=_0x41bb0e,_0x32c8a4[_0x115c57(0xa3)]=_0x30338d,_0x32c8a4[_0x115c57(0xa5)]=_0x71c752,_0x32c8a4[_0x115c57(0xb3)]=_0x1584ad,_0x32c8a4[_0x115c57(0xbf)]=_0x8dfef6,_0x32c8a4['PrintPaperMargin']=_0x42ddbe,_0x32c8a4[_0x115c57(0xa0)]=_0x32260b,_0x32c8a4[_0x115c57(0x97)]=_0xe117df,Object[_0x115c57(0xa9)](_0x32c8a4,Symbol[_0x115c57(0x9d)],{'value':_0x115c57(0xb0)});}));function _0x3543(_0xace210,_0x3e2fe4){const _0x3fe3eb=_0x3fe3();return _0x3543=function(_0x3543e1,_0x436752){_0x3543e1=_0x3543e1-0x90;let _0x44e70a=_0x3fe3eb[_0x3543e1];return _0x44e70a;},_0x3543(_0xace210,_0x3e2fe4);}function _0x3fe3(){const _0x5d90c0=['innerHTML','Wide','End','Origin','\x0a\x20\x20\x20\x20.','UniverProPrint','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}','createPrintStyle','FitPage','12iwYZcE','2704960IQjJud','Normal','exports','toStringTag','None',',\x20.','PrintScale','6758490mjANzg','Start','PRINT_CONTAINER_CLASS','offline-printing-css','PaperMarginMap','Custom','12mCCQVh','style','defineProperty','Landscape','Middle','13117448WkcBrL','\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','function','116707RjLHna','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.','Portrait','PrintAlign','object','printing-canvas','FitWidth','40914954sfnmBn','createElement','4156264AigyGY','FitHeight','amd','Narrow','1524957mgVprh','printing-canvas-container','PrintDirection','className'];_0x3fe3=function(){return _0x5d90c0;};return _0x3fe3();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.3",
|
|
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": "^7.0.6",
|
|
47
47
|
"vitest": "^3.2.4",
|
|
48
|
-
"@univerjs-infra/shared": "0.10.
|
|
48
|
+
"@univerjs-infra/shared": "0.10.3"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|