@univerjs-pro/print 0.15.0 → 0.15.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 _0x11c03d=_0x151b;(function(_0x1e544e,_0x12738b){const _0x47dfb6=_0x151b,_0x36494b=_0x1e544e();while(!![]){try{const _0x3ed6c7=-parseInt(_0x47dfb6(0xbe))/0x1*(-parseInt(_0x47dfb6(0xa7))/0x2)+-parseInt(_0x47dfb6(0xb3))/0x3*(-parseInt(_0x47dfb6(0xbd))/0x4)+-parseInt(_0x47dfb6(0xb1))/0x5+-parseInt(_0x47dfb6(0xd0))/0x6+-parseInt(_0x47dfb6(0xab))/0x7+parseInt(_0x47dfb6(0xc3))/0x8+-parseInt(_0x47dfb6(0xa3))/0x9*(parseInt(_0x47dfb6(0xaa))/0xa);if(_0x3ed6c7===_0x12738b)break;else _0x36494b['push'](_0x36494b['shift']());}catch(_0x92baee){_0x36494b['push'](_0x36494b['shift']());}}}(_0xb3f7,0x5a1b8));Object[_0x11c03d(0xbc)](exports,Symbol[_0x11c03d(0xc8)],{'value':_0x11c03d(0xad)});var i=(_0x4db0e2=>(_0x4db0e2[_0x11c03d(0xc9)]=_0x11c03d(0xc9),_0x4db0e2[_0x11c03d(0xb2)]=_0x11c03d(0xb2),_0x4db0e2))(i||{}),l=(_0x3be459=>(_0x3be459[_0x11c03d(0xa5)]=_0x11c03d(0xa5),_0x3be459[_0x11c03d(0xc0)]=_0x11c03d(0xc0),_0x3be459[_0x11c03d(0xaf)]=_0x11c03d(0xaf),_0x3be459[_0x11c03d(0xcd)]=_0x11c03d(0xcd),_0x3be459[_0x11c03d(0xca)]=_0x11c03d(0xca),_0x3be459))(l||{}),m=(_0x54eddc=>(_0x54eddc['Start']=_0x11c03d(0xcb),_0x54eddc[_0x11c03d(0xa6)]=_0x11c03d(0xa6),_0x54eddc['Middle']=_0x11c03d(0xac),_0x54eddc))(m||{}),o=(_0x13f80d=>(_0x13f80d[_0x11c03d(0xae)]=_0x11c03d(0xae),_0x13f80d[_0x11c03d(0xc7)]=_0x11c03d(0xc7),_0x13f80d[_0x11c03d(0xc4)]=_0x11c03d(0xc4),_0x13f80d['None']=_0x11c03d(0xa9),_0x13f80d[_0x11c03d(0xca)]=_0x11c03d(0xca),_0x13f80d))(o||{});function _0x151b(_0x301d81,_0x160ab1){_0x301d81=_0x301d81-0xa3;const _0xb3f78c=_0xb3f7();let _0x151b6a=_0xb3f78c[_0x301d81];return _0x151b6a;}const g={[o[_0x11c03d(0xae)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x11c03d(0xc7)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x11c03d(0xc4)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x11c03d(0xa9)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o['Custom']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x11c03d(0xb4),n=_0x11c03d(0xd1);function h(_0x4e8e7e,_0x3227ec,_0x47a3b6){const _0x14a469=_0x11c03d,_0x192711=_0x47a3b6===i[_0x14a469(0xc9)]?_0x4e8e7e:_0x3227ec,_0x2ba887=_0x47a3b6===i['Portrait']?_0x3227ec:_0x4e8e7e,_0x3b0d7e=_0x14a469(0xb5)+n+_0x14a469(0xc5)+_0x192711+_0x14a469(0xc6)+_0x2ba887+_0x14a469(0xcc)+r+_0x14a469(0xb6)+r+_0x14a469(0xba)+n+_0x14a469(0xcf)+_0x2ba887+_0x14a469(0xb7)+_0x192711+_0x14a469(0xb0),_0x222e7c=document['createElement'](_0x14a469(0xa8));return _0x222e7c[_0x14a469(0xce)]=_0x3b0d7e,_0x222e7c['className']=_0x14a469(0xb9),_0x222e7c;}function _0xb3f7(){const _0xd8e423=['Normal','FitHeight','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}','2330330UQyius','Landscape','3nAHPQQ','printing-canvas-container','\x0a\x20\x20\x20\x20.',',\x20.','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','PRINT_CONTAINER_CLASS','offline-printing-css','\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.','PrintPaperMargin','defineProperty','2455532ruVKJS','130263HSSLkU','createPrintStyle','FitWidth','PaperMarginMap','PrintScale','2342832nILXwY','Wide','\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\x20','Narrow','toStringTag','Portrait','Custom','Start','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.','FitPage','innerHTML','\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','514518KIaHbC','printing-canvas','27TCKdJo','PRINT_CANVAS_CLASS','Origin','End','6jbOSgQ','style','None','1195510rFymia','125818VxXsVt','Middle','Module'];_0xb3f7=function(){return _0xd8e423;};return _0xb3f7();}exports[_0x11c03d(0xa4)]=n,exports[_0x11c03d(0xb8)]=r,exports[_0x11c03d(0xc1)]=g,exports['PrintAlign']=m,exports['PrintDirection']=i,exports[_0x11c03d(0xbb)]=o,exports[_0x11c03d(0xc2)]=l,exports[_0x11c03d(0xbf)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x12475a=_0x2902;(function(_0x7792ef,_0x557089){const _0x141e28=_0x2902,_0xc0643d=_0x7792ef();while(!![]){try{const _0x443c8c=-parseInt(_0x141e28(0x1e4))/0x1+parseInt(_0x141e28(0x1f5))/0x2*(-parseInt(_0x141e28(0x1de))/0x3)+-parseInt(_0x141e28(0x1e8))/0x4+-parseInt(_0x141e28(0x1ee))/0x5*(parseInt(_0x141e28(0x1ed))/0x6)+parseInt(_0x141e28(0x1df))/0x7+-parseInt(_0x141e28(0x1e3))/0x8*(-parseInt(_0x141e28(0x1e5))/0x9)+parseInt(_0x141e28(0x1f4))/0xa*(parseInt(_0x141e28(0x1f8))/0xb);if(_0x443c8c===_0x557089)break;else _0xc0643d['push'](_0xc0643d['shift']());}catch(_0x398456){_0xc0643d['push'](_0xc0643d['shift']());}}}(_0x1704,0xe1218));function _0x2902(_0x41fa3e,_0x39fdf7){_0x41fa3e=_0x41fa3e-0x1da;const _0x1704b8=_0x1704();let _0x290294=_0x1704b8[_0x41fa3e];return _0x290294;}var e=(_0x1da776=>(_0x1da776[_0x12475a(0x1fc)]=_0x12475a(0x1fc),_0x1da776[_0x12475a(0x1dd)]=_0x12475a(0x1dd),_0x1da776))(e||{}),h=(_0x2b5855=>(_0x2b5855['Origin']=_0x12475a(0x1e2),_0x2b5855['FitWidth']=_0x12475a(0x1eb),_0x2b5855[_0x12475a(0x1ec)]=_0x12475a(0x1ec),_0x2b5855['FitPage']=_0x12475a(0x1e9),_0x2b5855[_0x12475a(0x1e1)]=_0x12475a(0x1e1),_0x2b5855))(h||{}),l=(_0x5c8c22=>(_0x5c8c22['Start']=_0x12475a(0x1e0),_0x5c8c22[_0x12475a(0x1f6)]=_0x12475a(0x1f6),_0x5c8c22[_0x12475a(0x1f1)]=_0x12475a(0x1f1),_0x5c8c22))(l||{}),o=(_0x382553=>(_0x382553['Normal']=_0x12475a(0x1fb),_0x382553[_0x12475a(0x1ea)]='Narrow',_0x382553[_0x12475a(0x1dc)]=_0x12475a(0x1dc),_0x382553[_0x12475a(0x1f0)]='None',_0x382553['Custom']='Custom',_0x382553))(o||{});const c={[o[_0x12475a(0x1fb)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x12475a(0x1ea)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x12475a(0x1dc)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x12475a(0x1e1)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p='printing-canvas-container',d=_0x12475a(0x1ef);function g(_0x50ff04,_0x1970ad,_0x436f43){const _0x512021=_0x12475a,_0x44f610=_0x436f43===e['Portrait']?_0x50ff04:_0x1970ad,_0x248a2a=_0x436f43===e[_0x512021(0x1fc)]?_0x1970ad:_0x50ff04,_0xe7454e=_0x512021(0x1db)+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'+_0x44f610+'px\x20'+_0x248a2a+_0x512021(0x1da)+p+_0x512021(0x1fa)+p+_0x512021(0x1f2)+d+_0x512021(0x1e6)+_0x248a2a+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x44f610+_0x512021(0x1e7),_0x2a37df=document['createElement'](_0x512021(0x1f3));return _0x2a37df['innerHTML']=_0xe7454e,_0x2a37df[_0x512021(0x1f7)]=_0x512021(0x1f9),_0x2a37df;}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};function _0x1704(){const _0x48072b=['Landscape','9dMDMMQ','968072flPcYf','Start','Custom','Origin','8rbtVDq','1160460nFyyBt','7421697RGTGHY','\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;\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}','560784pvYRUx','FitPage','Narrow','FitWidth','FitHeight','12756eYIMnU','1550yDNdbe','printing-canvas','None','Middle','\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','45940GbRLTf','1183102VXYmWa','End','className','8844sUxVOM','offline-printing-css',',\x20.','Normal','Portrait','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.','Wide'];_0x1704=function(){return _0x48072b;};return _0x1704();}
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x12475a=_0x2902;(function(_0x7792ef,_0x557089){const _0x141e28=_0x2902,_0xc0643d=_0x7792ef();while(!![]){try{const _0x443c8c=-parseInt(_0x141e28(0x1e4))/0x1+parseInt(_0x141e28(0x1f5))/0x2*(-parseInt(_0x141e28(0x1de))/0x3)+-parseInt(_0x141e28(0x1e8))/0x4+-parseInt(_0x141e28(0x1ee))/0x5*(parseInt(_0x141e28(0x1ed))/0x6)+parseInt(_0x141e28(0x1df))/0x7+-parseInt(_0x141e28(0x1e3))/0x8*(-parseInt(_0x141e28(0x1e5))/0x9)+parseInt(_0x141e28(0x1f4))/0xa*(parseInt(_0x141e28(0x1f8))/0xb);if(_0x443c8c===_0x557089)break;else _0xc0643d['push'](_0xc0643d['shift']());}catch(_0x398456){_0xc0643d['push'](_0xc0643d['shift']());}}}(_0x1704,0xe1218));function _0x2902(_0x41fa3e,_0x39fdf7){_0x41fa3e=_0x41fa3e-0x1da;const _0x1704b8=_0x1704();let _0x290294=_0x1704b8[_0x41fa3e];return _0x290294;}var e=(_0x1da776=>(_0x1da776[_0x12475a(0x1fc)]=_0x12475a(0x1fc),_0x1da776[_0x12475a(0x1dd)]=_0x12475a(0x1dd),_0x1da776))(e||{}),h=(_0x2b5855=>(_0x2b5855['Origin']=_0x12475a(0x1e2),_0x2b5855['FitWidth']=_0x12475a(0x1eb),_0x2b5855[_0x12475a(0x1ec)]=_0x12475a(0x1ec),_0x2b5855['FitPage']=_0x12475a(0x1e9),_0x2b5855[_0x12475a(0x1e1)]=_0x12475a(0x1e1),_0x2b5855))(h||{}),l=(_0x5c8c22=>(_0x5c8c22['Start']=_0x12475a(0x1e0),_0x5c8c22[_0x12475a(0x1f6)]=_0x12475a(0x1f6),_0x5c8c22[_0x12475a(0x1f1)]=_0x12475a(0x1f1),_0x5c8c22))(l||{}),o=(_0x382553=>(_0x382553['Normal']=_0x12475a(0x1fb),_0x382553[_0x12475a(0x1ea)]='Narrow',_0x382553[_0x12475a(0x1dc)]=_0x12475a(0x1dc),_0x382553[_0x12475a(0x1f0)]='None',_0x382553['Custom']='Custom',_0x382553))(o||{});const c={[o[_0x12475a(0x1fb)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x12475a(0x1ea)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x12475a(0x1dc)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x12475a(0x1e1)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p='printing-canvas-container',d=_0x12475a(0x1ef);function g(_0x50ff04,_0x1970ad,_0x436f43){const _0x512021=_0x12475a,_0x44f610=_0x436f43===e['Portrait']?_0x50ff04:_0x1970ad,_0x248a2a=_0x436f43===e[_0x512021(0x1fc)]?_0x1970ad:_0x50ff04,_0xe7454e=_0x512021(0x1db)+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'+_0x44f610+'px\x20'+_0x248a2a+_0x512021(0x1da)+p+_0x512021(0x1fa)+p+_0x512021(0x1f2)+d+_0x512021(0x1e6)+_0x248a2a+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x44f610+_0x512021(0x1e7),_0x2a37df=document['createElement'](_0x512021(0x1f3));return _0x2a37df['innerHTML']=_0xe7454e,_0x2a37df[_0x512021(0x1f7)]=_0x512021(0x1f9),_0x2a37df;}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};function _0x1704(){const _0x48072b=['Landscape','9dMDMMQ','968072flPcYf','Start','Custom','Origin','8rbtVDq','1160460nFyyBt','7421697RGTGHY','\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;\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}','560784pvYRUx','FitPage','Narrow','FitWidth','FitHeight','12756eYIMnU','1550yDNdbe','printing-canvas','None','Middle','\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','45940GbRLTf','1183102VXYmWa','End','className','8844sUxVOM','offline-printing-css',',\x20.','Normal','Portrait','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.','Wide'];_0x1704=function(){return _0x48072b;};return _0x1704();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x2370(_0x27a0e1,_0x4baee0){_0x27a0e1=_0x27a0e1-0x1df;const _0x48fbc1=_0x48fb();let _0x237099=_0x48fbc1[_0x27a0e1];return _0x237099;}(function(_0x181352,_0x457854){const _0x2aa57d=_0x2370,_0x4ca80a=_0x181352();while(!![]){try{const _0x9e7a5c=parseInt(_0x2aa57d(0x1f7))/0x1*(parseInt(_0x2aa57d(0x1ee))/0x2)+-parseInt(_0x2aa57d(0x1eb))/0x3*(parseInt(_0x2aa57d(0x1f9))/0x4)+-parseInt(_0x2aa57d(0x1e9))/0x5+-parseInt(_0x2aa57d(0x1fb))/0x6+-parseInt(_0x2aa57d(0x1fe))/0x7*(-parseInt(_0x2aa57d(0x1f1))/0x8)+-parseInt(_0x2aa57d(0x205))/0x9+parseInt(_0x2aa57d(0x206))/0xa;if(_0x9e7a5c===_0x457854)break;else _0x4ca80a['push'](_0x4ca80a['shift']());}catch(_0x34372a){_0x4ca80a['push'](_0x4ca80a['shift']());}}}(_0x48fb,0x249e0),function(_0x2bb1d1,_0x31dc76){const _0x24fccf=_0x2370;typeof exports==_0x24fccf(0x1f2)&&typeof module<'u'?_0x31dc76(exports):typeof define==_0x24fccf(0x1fc)&&define[_0x24fccf(0x1ea)]?define([_0x24fccf(0x1e4)],_0x31dc76):(_0x2bb1d1=typeof globalThis<'u'?globalThis:_0x2bb1d1||self,_0x31dc76(_0x2bb1d1[_0x24fccf(0x1fa)]={}));}(this,function(_0x1aafde){'use strict';const _0x214067=_0x2370;var _0x5e86d6=(_0x30ff78=>(_0x30ff78[_0x214067(0x207)]=_0x214067(0x207),_0x30ff78[_0x214067(0x1f8)]=_0x214067(0x1f8),_0x30ff78))(_0x5e86d6||{}),_0x36af8d=(_0x524cb8=>(_0x524cb8[_0x214067(0x209)]='Origin',_0x524cb8[_0x214067(0x1ef)]=_0x214067(0x1ef),_0x524cb8['FitHeight']=_0x214067(0x1ff),_0x524cb8[_0x214067(0x1e8)]=_0x214067(0x1e8),_0x524cb8[_0x214067(0x1e7)]=_0x214067(0x1e7),_0x524cb8))(_0x36af8d||{}),_0x1b8033=(_0x36005a=>(_0x36005a[_0x214067(0x208)]=_0x214067(0x208),_0x36005a[_0x214067(0x1e3)]=_0x214067(0x1e3),_0x36005a[_0x214067(0x20e)]=_0x214067(0x20e),_0x36005a))(_0x1b8033||{}),_0x36acfa=(_0x281671=>(_0x281671['Normal']=_0x214067(0x1ec),_0x281671['Narrow']=_0x214067(0x201),_0x281671[_0x214067(0x1e1)]=_0x214067(0x1e1),_0x281671[_0x214067(0x20c)]='None',_0x281671[_0x214067(0x1e7)]=_0x214067(0x1e7),_0x281671))(_0x36acfa||{});const _0x59d223={[_0x36acfa[_0x214067(0x1ec)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x36acfa[_0x214067(0x201)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x36acfa[_0x214067(0x1e1)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x36acfa[_0x214067(0x20c)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x36acfa[_0x214067(0x1e7)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x103796='printing-canvas-container',_0x5ebcea=_0x214067(0x20a);function _0x72e93f(_0x2823b5,_0x487ce5,_0x2d31a4){const _0x59d4f5=_0x214067,_0x16415b=_0x2d31a4===_0x5e86d6[_0x59d4f5(0x207)]?_0x2823b5:_0x487ce5,_0x4e779e=_0x2d31a4===_0x5e86d6['Portrait']?_0x487ce5:_0x2823b5,_0x11ae9b=_0x59d4f5(0x1f3)+_0x5ebcea+'\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'+_0x16415b+_0x59d4f5(0x202)+_0x4e779e+_0x59d4f5(0x1e0)+_0x103796+_0x59d4f5(0x1f0)+_0x103796+_0x59d4f5(0x1e5)+_0x5ebcea+_0x59d4f5(0x1fd)+_0x4e779e+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x16415b+_0x59d4f5(0x20b),_0x304acd=document[_0x59d4f5(0x200)](_0x59d4f5(0x1e6));return _0x304acd['innerHTML']=_0x11ae9b,_0x304acd[_0x59d4f5(0x1f5)]=_0x59d4f5(0x20f),_0x304acd;}_0x1aafde['PRINT_CANVAS_CLASS']=_0x5ebcea,_0x1aafde[_0x214067(0x1f4)]=_0x103796,_0x1aafde[_0x214067(0x203)]=_0x59d223,_0x1aafde[_0x214067(0x1df)]=_0x1b8033,_0x1aafde[_0x214067(0x1ed)]=_0x5e86d6,_0x1aafde[_0x214067(0x1f6)]=_0x36acfa,_0x1aafde['PrintScale']=_0x36af8d,_0x1aafde[_0x214067(0x20d)]=_0x72e93f,Object['defineProperty'](_0x1aafde,Symbol[_0x214067(0x204)],{'value':_0x214067(0x1e2)});}));function _0x48fb(){const _0x3b6226=['Wide','Module','End','exports','\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','Custom','FitPage','122065drOvxu','amd','3cFRNfA','Normal','PrintDirection','262342FtmUNg','FitWidth',',\x20.','80QCUjWL','object','\x0a\x20\x20\x20\x20.','PRINT_CONTAINER_CLASS','className','PrintPaperMargin','1huTSEt','Landscape','935516WTkpex','UniverProPrint','397734LZtloj','function','\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','287tGPjGD','FitHeight','createElement','Narrow','px\x20','PaperMarginMap','toStringTag','968571XEklvZ','4506030ZazVMk','Portrait','Start','Origin','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}','None','createPrintStyle','Middle','offline-printing-css','PrintAlign','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.'];_0x48fb=function(){return _0x3b6226;};return _0x48fb();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.1",
|
|
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.3.
|
|
46
|
+
"vite": "^7.3.1",
|
|
47
47
|
"vitest": "^4.0.16",
|
|
48
|
-
"@univerjs-infra/shared": "0.15.
|
|
48
|
+
"@univerjs-infra/shared": "0.15.1"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|