@univerjs-pro/print 0.5.0 → 0.5.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/umd/index.js +1 -1
- package/package.json +5 -5
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0xf9093b=_0x5ff5;function _0x5ff5(_0x365da3,_0x42a170){const _0x9f628c=_0x9f62();return _0x5ff5=function(_0x5ff5d4,_0x29702e){_0x5ff5d4=_0x5ff5d4-0x1a0;let _0x17c654=_0x9f628c[_0x5ff5d4];return _0x17c654;},_0x5ff5(_0x365da3,_0x42a170);}(function(_0x24ba11,_0x53fbd6){const _0x26d587=_0x5ff5,_0x447a8e=_0x24ba11();while(!![]){try{const _0x3e12d1=parseInt(_0x26d587(0x1ad))/0x1+-parseInt(_0x26d587(0x1a5))/0x2*(-parseInt(_0x26d587(0x1c0))/0x3)+-parseInt(_0x26d587(0x1d2))/0x4+parseInt(_0x26d587(0x1bc))/0x5+parseInt(_0x26d587(0x1a8))/0x6*(-parseInt(_0x26d587(0x1b8))/0x7)+parseInt(_0x26d587(0x1b2))/0x8*(parseInt(_0x26d587(0x1ab))/0x9)+parseInt(_0x26d587(0x1a6))/0xa*(parseInt(_0x26d587(0x1cc))/0xb);if(_0x3e12d1===_0x53fbd6)break;else _0x447a8e['push'](_0x447a8e['shift']());}catch(_0x40340b){_0x447a8e['push'](_0x447a8e['shift']());}}}(_0x9f62,0x5295d));Object[_0xf9093b(0x1b3)](exports,Symbol[_0xf9093b(0x1bd)],{'value':_0xf9093b(0x1bf)});var e=(_0xeb31c6=>(_0xeb31c6['Letter']='Letter',_0xeb31c6[_0xf9093b(0x1b5)]=_0xf9093b(0x1b5),_0xeb31c6[_0xf9093b(0x1a3)]=_0xf9093b(0x1a3),_0xeb31c6[_0xf9093b(0x1ba)]=_0xf9093b(0x1ba),_0xeb31c6[_0xf9093b(0x1ac)]=_0xf9093b(0x1ac),_0xeb31c6[_0xf9093b(0x1c7)]=_0xf9093b(0x1c7),_0xeb31c6['A3']='A3',_0xeb31c6['A4']='A4',_0xeb31c6['A5']='A5',_0xeb31c6['B4']='B4',_0xeb31c6['B5']='B5',_0xeb31c6))(e||{}),i=(_0x2cd896=>(_0x2cd896[_0xf9093b(0x1b0)]=_0xf9093b(0x1b0),_0x2cd896[_0xf9093b(0x1ce)]='Landscape',_0x2cd896))(i||{}),c=(_0x442b0d=>(_0x442b0d[_0xf9093b(0x1d4)]=_0xf9093b(0x1d4),_0x442b0d[_0xf9093b(0x1d1)]=_0xf9093b(0x1d1),_0x442b0d['FitHeight']='FitHeight',_0x442b0d[_0xf9093b(0x1c4)]=_0xf9093b(0x1c4),_0x442b0d[_0xf9093b(0x1bb)]=_0xf9093b(0x1bb),_0x442b0d))(c||{}),g=(_0x1627d9=>(_0x1627d9['Start']=_0xf9093b(0x1cd),_0x1627d9['End']=_0xf9093b(0x1c5),_0x1627d9[_0xf9093b(0x1a2)]=_0xf9093b(0x1a2),_0x1627d9))(g||{}),o=(_0x575691=>(_0x575691[_0xf9093b(0x1cf)]='Normal',_0x575691[_0xf9093b(0x1c2)]=_0xf9093b(0x1c2),_0x575691[_0xf9093b(0x1af)]=_0xf9093b(0x1af),_0x575691['None']=_0xf9093b(0x1ca),_0x575691))(o||{});const m={[e['A3']]:{'w':0x463,'h':0x633},[e['A4']]:{'w':0x31a,'h':0x464},[e['A5']]:{'w':0x22f,'h':0x31a},[e['B4']]:{'w':0x3b0,'h':0x540},[e['B5']]:{'w':0x299,'h':0x3b0},[e[_0xf9093b(0x1ac)]]:{'w':0x2b8,'h':0x3f0},[e[_0xf9093b(0x1c7)]]:{'w':0x330,'h':0x4e0},[e[_0xf9093b(0x1a3)]]:{'w':0x330,'h':0x540},[e[_0xf9093b(0x1aa)]]:{'w':0x330,'h':0x420},[e[_0xf9093b(0x1ba)]]:{'w':0x210,'h':0x330},[e[_0xf9093b(0x1b5)]]:{'w':0x420,'h':0x660}},N={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0xf9093b(0x1c2)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0xf9093b(0x1af)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0xf9093b(0x1ca)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0xf9093b(0x1a0),p=_0xf9093b(0x1c6);function A(_0x13bcb9,_0x5577b3){const _0xce3e82=_0xf9093b,{w:_0x40d086,h:_0x19aff0}=m[_0x13bcb9],_0x41fbc3=_0x5577b3===i[_0xce3e82(0x1b0)]?_0x40d086:_0x19aff0,_0xb6382f=_0x5577b3===i[_0xce3e82(0x1b0)]?_0x19aff0:_0x40d086,_0x5267a0='\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20'+_0x41fbc3+'px\x20'+_0xb6382f+_0xce3e82(0x1d3)+n+',\x20.'+n+_0xce3e82(0x1cb)+p+_0xce3e82(0x1a4)+_0xb6382f+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x41fbc3+_0xce3e82(0x1c8),_0x3678eb=document[_0xce3e82(0x1c3)](_0xce3e82(0x1a9));return _0x3678eb[_0xce3e82(0x1b6)]=_0x5267a0,_0x3678eb[_0xce3e82(0x1a1)]=_0xce3e82(0x1be),_0x3678eb;}function _0x9f62(){const _0x3857b2=['Normal','PrintPaperSize','FitWidth','1464716qoPMpp','px;\x20\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','Origin','printing-canvas-container','className','Middle','Legal','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','4ARcliO','404830xMDYko','PrintScale','18vlHWnY','style','Letter','167949ClBDqZ','Executive','93754RWqAUe','PrintAlign','Wide','Portrait','PaperSizePxMap','16AaxoIV','defineProperty','createPrintStyle','Tabloid','innerHTML','PRINT_CANVAS_CLASS','1020145hXzmjD','PaperMarginMap','Statement','Custom','871345eZgHes','toStringTag','offline-printing-css','Module','890115NUTdGJ','PrintDirection','Narrow','createElement','FitPage','End','printing-canvas','Folio','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','PRINT_CONTAINER_CLASS','None','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','66NHjUDJ','Start','Landscape'];_0x9f62=function(){return _0x3857b2;};return _0x9f62();}exports[_0xf9093b(0x1b7)]=p,exports[_0xf9093b(0x1c9)]=n,exports[_0xf9093b(0x1b9)]=N,exports[_0xf9093b(0x1b1)]=m,exports[_0xf9093b(0x1ae)]=g,exports[_0xf9093b(0x1c1)]=i,exports['PrintPaperMargin']=o,exports[_0xf9093b(0x1d0)]=e,exports[_0xf9093b(0x1a7)]=c,exports[_0xf9093b(0x1b4)]=A;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x2236(){const _0x2c5730=['createElement','\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','None','Statement','1111758vIieHg','FitPage','Portrait','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','Executive','Tabloid','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Landscape','Letter','End','Start','17750089EVZCGw','Legal','Normal','4507830MtdIGK','FitWidth','className','innerHTML','px;\x20\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','1870554bXPtDX','1049601mREbdR','FitHeight','Narrow','489600VbGnBb','301662HpUVDX','px\x20','Folio','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Middle','Custom','style','Origin','Wide','offline-printing-css'];_0x2236=function(){return _0x2c5730;};return _0x2236();}const _0x4ab818=_0x5577;(function(_0x4d00ef,_0x3b0abf){const _0x19a713=_0x5577,_0xb030fa=_0x4d00ef();while(!![]){try{const _0x4f6138=parseInt(_0x19a713(0xe1))/0x1+parseInt(_0x19a713(0xf4))/0x2+parseInt(_0x19a713(0xf5))/0x3+-parseInt(_0x19a713(0xf8))/0x4+parseInt(_0x19a713(0xef))/0x5+-parseInt(_0x19a713(0xf9))/0x6+-parseInt(_0x19a713(0xec))/0x7;if(_0x4f6138===_0x3b0abf)break;else _0xb030fa['push'](_0xb030fa['shift']());}catch(_0x52e8d6){_0xb030fa['push'](_0xb030fa['shift']());}}}(_0x2236,0x900f0));function _0x5577(_0x1dbea8,_0x536003){const _0x223630=_0x2236();return _0x5577=function(_0x55776d,_0x307492){_0x55776d=_0x55776d-0xd7;let _0xff463a=_0x223630[_0x55776d];return _0xff463a;},_0x5577(_0x1dbea8,_0x536003);}var o=(_0xc18239=>(_0xc18239[_0x4ab818(0xe9)]=_0x4ab818(0xe9),_0xc18239[_0x4ab818(0xe6)]=_0x4ab818(0xe6),_0xc18239[_0x4ab818(0xed)]='Legal',_0xc18239['Statement']='Statement',_0xc18239[_0x4ab818(0xe5)]=_0x4ab818(0xe5),_0xc18239[_0x4ab818(0xfb)]='Folio',_0xc18239['A3']='A3',_0xc18239['A4']='A4',_0xc18239['A5']='A5',_0xc18239['B4']='B4',_0xc18239['B5']='B5',_0xc18239))(o||{}),i=(_0x2a3654=>(_0x2a3654[_0x4ab818(0xe3)]='Portrait',_0x2a3654[_0x4ab818(0xe8)]='Landscape',_0x2a3654))(i||{}),w=(_0x4e7e39=>(_0x4e7e39[_0x4ab818(0xda)]='Origin',_0x4e7e39[_0x4ab818(0xf0)]=_0x4ab818(0xf0),_0x4e7e39[_0x4ab818(0xf6)]=_0x4ab818(0xf6),_0x4e7e39[_0x4ab818(0xe2)]=_0x4ab818(0xe2),_0x4e7e39[_0x4ab818(0xd8)]=_0x4ab818(0xd8),_0x4e7e39))(w||{}),m=(_0x434cef=>(_0x434cef[_0x4ab818(0xeb)]='Start',_0x434cef[_0x4ab818(0xea)]=_0x4ab818(0xea),_0x434cef[_0x4ab818(0xd7)]=_0x4ab818(0xd7),_0x434cef))(m||{}),e=(_0x21f9a0=>(_0x21f9a0[_0x4ab818(0xee)]=_0x4ab818(0xee),_0x21f9a0['Narrow']=_0x4ab818(0xf7),_0x21f9a0['Wide']=_0x4ab818(0xdb),_0x21f9a0[_0x4ab818(0xdf)]=_0x4ab818(0xdf),_0x21f9a0))(e||{});const g={[o['A3']]:{'w':0x463,'h':0x633},[o['A4']]:{'w':0x31a,'h':0x464},[o['A5']]:{'w':0x22f,'h':0x31a},[o['B4']]:{'w':0x3b0,'h':0x540},[o['B5']]:{'w':0x299,'h':0x3b0},[o[_0x4ab818(0xe5)]]:{'w':0x2b8,'h':0x3f0},[o[_0x4ab818(0xfb)]]:{'w':0x330,'h':0x4e0},[o[_0x4ab818(0xed)]]:{'w':0x330,'h':0x540},[o['Letter']]:{'w':0x330,'h':0x420},[o[_0x4ab818(0xe0)]]:{'w':0x210,'h':0x330},[o[_0x4ab818(0xe6)]]:{'w':0x420,'h':0x660}},v={[e[_0x4ab818(0xee)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x4ab818(0xf7)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0x4ab818(0xdb)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x4ab818(0xdf)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l='printing-canvas-container',p='printing-canvas';function N(_0x1a9a8c,_0x55a421){const _0x49bfbd=_0x4ab818,{w:_0x422deb,h:_0x5a638e}=g[_0x1a9a8c],_0x556726=_0x55a421===i[_0x49bfbd(0xe3)]?_0x422deb:_0x5a638e,_0xede16=_0x55a421===i['Portrait']?_0x5a638e:_0x422deb,_0x4d43cb=_0x49bfbd(0xde)+_0x556726+_0x49bfbd(0xfa)+_0xede16+_0x49bfbd(0xf3)+l+',\x20.'+l+_0x49bfbd(0xe4)+p+_0x49bfbd(0xe7)+_0xede16+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x556726+_0x49bfbd(0xfc),_0x500ca3=document[_0x49bfbd(0xdd)](_0x49bfbd(0xd9));return _0x500ca3[_0x49bfbd(0xf2)]=_0x4d43cb,_0x500ca3[_0x49bfbd(0xf1)]=_0x49bfbd(0xdc),_0x500ca3;}export{p as PRINT_CANVAS_CLASS,l as PRINT_CONTAINER_CLASS,v as PaperMarginMap,g as PaperSizePxMap,m as PrintAlign,i as PrintDirection,e as PrintPaperMargin,o as PrintPaperSize,w as PrintScale,N as createPrintStyle};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x3b3d(){const _0x442a41=['342136bhOHNw','162NEhvSt','PRINT_CANVAS_CLASS','627HjMOeI','414390zjYjCt',',\x20.','PrintDirection','FitPage','amd','offline-printing-css','Origin','FitWidth','End','Folio','Custom','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Narrow','PrintPaperSize','createPrintStyle','PaperMarginMap','50HFHGpu','273468aPdIcc','60042ZYiLEs','PaperSizePxMap','innerHTML','function','Start','Module','Statement','exports','Executive','Normal','Wide','5665mdkykV','createElement','14uuqzeR','style','\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','Tabloid','Legal','defineProperty','PrintAlign','Portrait','None','Landscape','PrintScale','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','Middle','707763sKkJno','891RWDWzQ','15784HLROCx','Letter','printing-canvas-container','toStringTag','FitHeight','px\x20','object'];_0x3b3d=function(){return _0x442a41;};return _0x3b3d();}function _0x2523(_0x17373f,_0x2a0698){const _0x3b3d7d=_0x3b3d();return _0x2523=function(_0x252347,_0x19ecf1){_0x252347=_0x252347-0x17f;let _0x2426e4=_0x3b3d7d[_0x252347];return _0x2426e4;},_0x2523(_0x17373f,_0x2a0698);}(function(_0x1ecdb3,_0x24c2e0){const _0x502093=_0x2523,_0x4bd5db=_0x1ecdb3();while(!![]){try{const _0x5319fa=parseInt(_0x502093(0x196))/0x1*(-parseInt(_0x502093(0x198))/0x2)+parseInt(_0x502093(0x1b1))/0x3*(-parseInt(_0x502093(0x1a7))/0x4)+-parseInt(_0x502093(0x189))/0x5*(-parseInt(_0x502093(0x18b))/0x6)+parseInt(_0x502093(0x1a5))/0x7+parseInt(_0x502093(0x1ae))/0x8*(-parseInt(_0x502093(0x1af))/0x9)+parseInt(_0x502093(0x1b2))/0xa+-parseInt(_0x502093(0x1a6))/0xb*(-parseInt(_0x502093(0x18a))/0xc);if(_0x5319fa===_0x24c2e0)break;else _0x4bd5db['push'](_0x4bd5db['shift']());}catch(_0x23f022){_0x4bd5db['push'](_0x4bd5db['shift']());}}}(_0x3b3d,0x6eed0),function(_0xdacad8,_0x158214){const _0x43ee5b=_0x2523;typeof exports==_0x43ee5b(0x1ad)&&typeof module<'u'?_0x158214(exports):typeof define==_0x43ee5b(0x18e)&&define[_0x43ee5b(0x1b6)]?define([_0x43ee5b(0x192)],_0x158214):(_0xdacad8=typeof globalThis<'u'?globalThis:_0xdacad8||self,_0x158214(_0xdacad8['UniverProPrint']={}));}(this,function(_0x591df7){'use strict';const _0x2f366c=_0x2523;var _0x3fd762=(_0x334d05=>(_0x334d05[_0x2f366c(0x1a8)]=_0x2f366c(0x1a8),_0x334d05['Tabloid']=_0x2f366c(0x19b),_0x334d05['Legal']=_0x2f366c(0x19c),_0x334d05[_0x2f366c(0x191)]='Statement',_0x334d05[_0x2f366c(0x193)]=_0x2f366c(0x193),_0x334d05[_0x2f366c(0x182)]=_0x2f366c(0x182),_0x334d05['A3']='A3',_0x334d05['A4']='A4',_0x334d05['A5']='A5',_0x334d05['B4']='B4',_0x334d05['B5']='B5',_0x334d05))(_0x3fd762||{}),_0x350594=(_0x2af179=>(_0x2af179[_0x2f366c(0x19f)]=_0x2f366c(0x19f),_0x2af179[_0x2f366c(0x1a1)]='Landscape',_0x2af179))(_0x350594||{}),_0x4f6392=(_0x3c65c5=>(_0x3c65c5[_0x2f366c(0x17f)]=_0x2f366c(0x17f),_0x3c65c5[_0x2f366c(0x180)]=_0x2f366c(0x180),_0x3c65c5[_0x2f366c(0x1ab)]=_0x2f366c(0x1ab),_0x3c65c5[_0x2f366c(0x1b5)]='FitPage',_0x3c65c5[_0x2f366c(0x183)]=_0x2f366c(0x183),_0x3c65c5))(_0x4f6392||{}),_0x4d6300=(_0x44f50b=>(_0x44f50b['Start']=_0x2f366c(0x18f),_0x44f50b['End']=_0x2f366c(0x181),_0x44f50b[_0x2f366c(0x1a4)]='Middle',_0x44f50b))(_0x4d6300||{}),_0x3ca55f=(_0x20bd20=>(_0x20bd20[_0x2f366c(0x194)]=_0x2f366c(0x194),_0x20bd20[_0x2f366c(0x185)]=_0x2f366c(0x185),_0x20bd20[_0x2f366c(0x195)]=_0x2f366c(0x195),_0x20bd20[_0x2f366c(0x1a0)]=_0x2f366c(0x1a0),_0x20bd20))(_0x3ca55f||{});const _0x56ef33={[_0x3fd762['A3']]:{'w':0x463,'h':0x633},[_0x3fd762['A4']]:{'w':0x31a,'h':0x464},[_0x3fd762['A5']]:{'w':0x22f,'h':0x31a},[_0x3fd762['B4']]:{'w':0x3b0,'h':0x540},[_0x3fd762['B5']]:{'w':0x299,'h':0x3b0},[_0x3fd762[_0x2f366c(0x193)]]:{'w':0x2b8,'h':0x3f0},[_0x3fd762['Folio']]:{'w':0x330,'h':0x4e0},[_0x3fd762[_0x2f366c(0x19c)]]:{'w':0x330,'h':0x540},[_0x3fd762['Letter']]:{'w':0x330,'h':0x420},[_0x3fd762[_0x2f366c(0x191)]]:{'w':0x210,'h':0x330},[_0x3fd762[_0x2f366c(0x19b)]]:{'w':0x420,'h':0x660}},_0x4e3aa8={[_0x3ca55f['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x3ca55f['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x3ca55f[_0x2f366c(0x195)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x3ca55f['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x178e78=_0x2f366c(0x1a9),_0x4aa76e='printing-canvas';function _0x5d61f9(_0x3af661,_0x3cb04c){const _0x2dde30=_0x2f366c,{w:_0x351669,h:_0xfb2085}=_0x56ef33[_0x3af661],_0x27f0f7=_0x3cb04c===_0x350594[_0x2dde30(0x19f)]?_0x351669:_0xfb2085,_0x98658c=_0x3cb04c===_0x350594[_0x2dde30(0x19f)]?_0xfb2085:_0x351669,_0x6ebb=_0x2dde30(0x19a)+_0x27f0f7+_0x2dde30(0x1ac)+_0x98658c+'px;\x20\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.'+_0x178e78+_0x2dde30(0x1b3)+_0x178e78+_0x2dde30(0x1a3)+_0x4aa76e+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x98658c+_0x2dde30(0x184)+_0x27f0f7+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',_0xa2b095=document[_0x2dde30(0x197)](_0x2dde30(0x199));return _0xa2b095[_0x2dde30(0x18d)]=_0x6ebb,_0xa2b095['className']=_0x2dde30(0x1b7),_0xa2b095;}_0x591df7[_0x2f366c(0x1b0)]=_0x4aa76e,_0x591df7['PRINT_CONTAINER_CLASS']=_0x178e78,_0x591df7[_0x2f366c(0x188)]=_0x4e3aa8,_0x591df7[_0x2f366c(0x18c)]=_0x56ef33,_0x591df7[_0x2f366c(0x19e)]=_0x4d6300,_0x591df7[_0x2f366c(0x1b4)]=_0x350594,_0x591df7['PrintPaperMargin']=_0x3ca55f,_0x591df7[_0x2f366c(0x186)]=_0x3fd762,_0x591df7[_0x2f366c(0x1a2)]=_0x4f6392,_0x591df7[_0x2f366c(0x187)]=_0x5d61f9,Object[_0x2f366c(0x19d)](_0x591df7,Symbol[_0x2f366c(0x1aa)],{'value':_0x2f366c(0x190)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Print module for UniverJS",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"lib"
|
|
43
43
|
],
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"typescript": "^5.
|
|
46
|
-
"vite": "^
|
|
47
|
-
"vitest": "^2.1.
|
|
48
|
-
"@univerjs-infra/shared": "0.5.
|
|
45
|
+
"typescript": "^5.7.2",
|
|
46
|
+
"vite": "^6.0.0",
|
|
47
|
+
"vitest": "^2.1.6",
|
|
48
|
+
"@univerjs-infra/shared": "0.5.1"
|
|
49
49
|
},
|
|
50
50
|
"space": {
|
|
51
51
|
".": {
|