@univerjs-pro/print 0.5.2 → 0.5.3-nightly.202501051605
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 +3 -16
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5b8e6c=_0x40b1;(function(_0x42124a,_0x5c9949){const _0x7b1284=_0x40b1,_0x57471e=_0x42124a();while(!![]){try{const _0xfdfe14=-parseInt(_0x7b1284(0xf7))/0x1+parseInt(_0x7b1284(0xf2))/0x2+-parseInt(_0x7b1284(0xf6))/0x3+-parseInt(_0x7b1284(0xf0))/0x4+-parseInt(_0x7b1284(0xdf))/0x5+-parseInt(_0x7b1284(0xf1))/0x6*(parseInt(_0x7b1284(0xde))/0x7)+parseInt(_0x7b1284(0xff))/0x8;if(_0xfdfe14===_0x5c9949)break;else _0x57471e['push'](_0x57471e['shift']());}catch(_0x4bb34f){_0x57471e['push'](_0x57471e['shift']());}}}(_0x1db4,0xdfa52));Object[_0x5b8e6c(0xd5)](exports,Symbol[_0x5b8e6c(0xe5)],{'value':_0x5b8e6c(0xec)});function _0x1db4(){const _0x34171a=['Module','PrintScale','createPrintStyle','printing-canvas-container','881536vlGoTc','7987656AdlTHh','2941210vsCacg','createElement','Middle','PRINT_CANVAS_CLASS','482073GvLAnP','1457602aabNvt','Portrait','FitWidth','Statement','Legal','None','Landscape','PrintPaperMargin','23998096GNlBBa','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Folio','defineProperty','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Custom','Start',',\x20.','Letter','PaperMarginMap','Narrow','Executive','7IQJtVa','1921820qPHsMx','PrintPaperSize','\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','style','Normal','Origin','toStringTag','PrintDirection','End','offline-printing-css','Tabloid','Wide','FitHeight'];_0x1db4=function(){return _0x34171a;};return _0x1db4();}function _0x40b1(_0x2a7c55,_0x2bea2a){const _0x1db4c5=_0x1db4();return _0x40b1=function(_0x40b147,_0x68602){_0x40b147=_0x40b147-0xd3;let _0x340a32=_0x1db4c5[_0x40b147];return _0x340a32;},_0x40b1(_0x2a7c55,_0x2bea2a);}var e=(_0x1c26c9=>(_0x1c26c9[_0x5b8e6c(0xda)]=_0x5b8e6c(0xda),_0x1c26c9['Tabloid']=_0x5b8e6c(0xe9),_0x1c26c9['Legal']='Legal',_0x1c26c9[_0x5b8e6c(0xfa)]=_0x5b8e6c(0xfa),_0x1c26c9['Executive']=_0x5b8e6c(0xdd),_0x1c26c9[_0x5b8e6c(0xd4)]=_0x5b8e6c(0xd4),_0x1c26c9['A3']='A3',_0x1c26c9['A4']='A4',_0x1c26c9['A5']='A5',_0x1c26c9['B4']='B4',_0x1c26c9['B5']='B5',_0x1c26c9))(e||{}),i=(_0x4b8bda=>(_0x4b8bda[_0x5b8e6c(0xf8)]=_0x5b8e6c(0xf8),_0x4b8bda[_0x5b8e6c(0xfd)]=_0x5b8e6c(0xfd),_0x4b8bda))(i||{}),c=(_0x3fbe95=>(_0x3fbe95[_0x5b8e6c(0xe4)]='Origin',_0x3fbe95['FitWidth']=_0x5b8e6c(0xf9),_0x3fbe95[_0x5b8e6c(0xeb)]=_0x5b8e6c(0xeb),_0x3fbe95['FitPage']='FitPage',_0x3fbe95[_0x5b8e6c(0xd7)]=_0x5b8e6c(0xd7),_0x3fbe95))(c||{}),g=(_0x207714=>(_0x207714[_0x5b8e6c(0xd8)]=_0x5b8e6c(0xd8),_0x207714[_0x5b8e6c(0xe7)]=_0x5b8e6c(0xe7),_0x207714[_0x5b8e6c(0xf4)]=_0x5b8e6c(0xf4),_0x207714))(g||{}),o=(_0x10257e=>(_0x10257e['Normal']='Normal',_0x10257e[_0x5b8e6c(0xdc)]=_0x5b8e6c(0xdc),_0x10257e[_0x5b8e6c(0xea)]=_0x5b8e6c(0xea),_0x10257e['None']=_0x5b8e6c(0xfc),_0x10257e))(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[_0x5b8e6c(0xdd)]]:{'w':0x2b8,'h':0x3f0},[e[_0x5b8e6c(0xd4)]]:{'w':0x330,'h':0x4e0},[e[_0x5b8e6c(0xfb)]]:{'w':0x330,'h':0x540},[e[_0x5b8e6c(0xda)]]:{'w':0x330,'h':0x420},[e[_0x5b8e6c(0xfa)]]:{'w':0x210,'h':0x330},[e['Tabloid']]:{'w':0x420,'h':0x660}},N={[o[_0x5b8e6c(0xe3)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x5b8e6c(0xdc)]]:{'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}},n=_0x5b8e6c(0xef),p='printing-canvas';function A(_0x129dde,_0x288d3c){const _0x4ed10c=_0x5b8e6c,{w:_0x4e7092,h:_0x4c6ddc}=m[_0x129dde],_0x16f92f=_0x288d3c===i[_0x4ed10c(0xf8)]?_0x4e7092:_0x4c6ddc,_0x1005ee=_0x288d3c===i['Portrait']?_0x4c6ddc:_0x4e7092,_0x419ef4=_0x4ed10c(0xe1)+_0x16f92f+'px\x20'+_0x1005ee+'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.'+n+_0x4ed10c(0xd9)+n+'\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.'+p+_0x4ed10c(0xd3)+_0x1005ee+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x16f92f+_0x4ed10c(0xd6),_0x41caeb=document[_0x4ed10c(0xf3)](_0x4ed10c(0xe2));return _0x41caeb['innerHTML']=_0x419ef4,_0x41caeb['className']=_0x4ed10c(0xe8),_0x41caeb;}exports[_0x5b8e6c(0xf5)]=p,exports['PRINT_CONTAINER_CLASS']=n,exports[_0x5b8e6c(0xdb)]=N,exports['PaperSizePxMap']=m,exports['PrintAlign']=g,exports[_0x5b8e6c(0xe6)]=i,exports[_0x5b8e6c(0xfe)]=o,exports[_0x5b8e6c(0xe0)]=e,exports[_0x5b8e6c(0xed)]=c,exports[_0x5b8e6c(0xee)]=A;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4a01ae=_0xd267;function _0xd267(_0x150b17,_0x42323a){const _0x396c59=_0x396c();return _0xd267=function(_0xd267b0,_0x3c1782){_0xd267b0=_0xd267b0-0x88;let _0x2dd7b6=_0x396c59[_0xd267b0];return _0x2dd7b6;},_0xd267(_0x150b17,_0x42323a);}(function(_0x3d52a1,_0x3196e7){const _0x4bcdda=_0xd267,_0x18ad15=_0x3d52a1();while(!![]){try{const _0x563ce1=-parseInt(_0x4bcdda(0xa2))/0x1*(parseInt(_0x4bcdda(0x97))/0x2)+parseInt(_0x4bcdda(0x93))/0x3*(-parseInt(_0x4bcdda(0x9c))/0x4)+parseInt(_0x4bcdda(0xa1))/0x5*(parseInt(_0x4bcdda(0x8d))/0x6)+-parseInt(_0x4bcdda(0x95))/0x7*(parseInt(_0x4bcdda(0x8a))/0x8)+-parseInt(_0x4bcdda(0x9e))/0x9*(parseInt(_0x4bcdda(0x89))/0xa)+-parseInt(_0x4bcdda(0xa0))/0xb*(-parseInt(_0x4bcdda(0xa4))/0xc)+parseInt(_0x4bcdda(0x94))/0xd;if(_0x563ce1===_0x3196e7)break;else _0x18ad15['push'](_0x18ad15['shift']());}catch(_0x5111d2){_0x18ad15['push'](_0x18ad15['shift']());}}}(_0x396c,0xe95de));var o=(_0x17b79d=>(_0x17b79d[_0x4a01ae(0x88)]=_0x4a01ae(0x88),_0x17b79d['Tabloid']='Tabloid',_0x17b79d['Legal']=_0x4a01ae(0xb0),_0x17b79d[_0x4a01ae(0xab)]=_0x4a01ae(0xab),_0x17b79d[_0x4a01ae(0x9f)]=_0x4a01ae(0x9f),_0x17b79d[_0x4a01ae(0xa5)]=_0x4a01ae(0xa5),_0x17b79d['A3']='A3',_0x17b79d['A4']='A4',_0x17b79d['A5']='A5',_0x17b79d['B4']='B4',_0x17b79d['B5']='B5',_0x17b79d))(o||{}),i=(_0x521fec=>(_0x521fec[_0x4a01ae(0x99)]=_0x4a01ae(0x99),_0x521fec['Landscape']=_0x4a01ae(0xa6),_0x521fec))(i||{}),w=(_0x375919=>(_0x375919[_0x4a01ae(0xa3)]=_0x4a01ae(0xa3),_0x375919[_0x4a01ae(0xac)]=_0x4a01ae(0xac),_0x375919[_0x4a01ae(0x92)]='FitHeight',_0x375919[_0x4a01ae(0x8c)]=_0x4a01ae(0x8c),_0x375919['Custom']='Custom',_0x375919))(w||{}),m=(_0x39a51d=>(_0x39a51d[_0x4a01ae(0xb2)]='Start',_0x39a51d[_0x4a01ae(0x8f)]=_0x4a01ae(0x8f),_0x39a51d[_0x4a01ae(0xa9)]=_0x4a01ae(0xa9),_0x39a51d))(m||{}),e=(_0x32be15=>(_0x32be15[_0x4a01ae(0xa7)]='Normal',_0x32be15['Narrow']='Narrow',_0x32be15[_0x4a01ae(0xa8)]='Wide',_0x32be15[_0x4a01ae(0x91)]=_0x4a01ae(0x91),_0x32be15))(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['Executive']]:{'w':0x2b8,'h':0x3f0},[o[_0x4a01ae(0xa5)]]:{'w':0x330,'h':0x4e0},[o[_0x4a01ae(0xb0)]]:{'w':0x330,'h':0x540},[o[_0x4a01ae(0x88)]]:{'w':0x330,'h':0x420},[o[_0x4a01ae(0xab)]]:{'w':0x210,'h':0x330},[o['Tabloid']]:{'w':0x420,'h':0x660}},v={[e[_0x4a01ae(0xa7)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x4a01ae(0x91)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x4a01ae(0x9a),p=_0x4a01ae(0x9b);function _0x396c(){const _0xf1adc6=['offline-printing-css','End','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','None','FitHeight','93BzAagX','53227616SqQjhb','154mTJNVB','px\x20','5734ejSONt','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Portrait','printing-canvas-container','printing-canvas','104692upxOkE',',\x20.','67356zbFKlY','Executive','11SmoQZh','10GVdAId','459gKVPum','Origin','169800vmUOJz','Folio','Landscape','Normal','Wide','Middle','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.','Statement','FitWidth','\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','className','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Legal','style','Start','Letter','340sdksrw','688808CUXguU','createElement','FitPage','3369846tFAFbT'];_0x396c=function(){return _0xf1adc6;};return _0x396c();}function N(_0x28af57,_0x30fe1c){const _0x4c2e8b=_0x4a01ae,{w:_0x132075,h:_0x54e070}=g[_0x28af57],_0x34935d=_0x30fe1c===i[_0x4c2e8b(0x99)]?_0x132075:_0x54e070,_0x2cf598=_0x30fe1c===i['Portrait']?_0x54e070:_0x132075,_0x1c61b1=_0x4c2e8b(0xad)+_0x34935d+_0x4c2e8b(0x96)+_0x2cf598+_0x4c2e8b(0xaa)+l+_0x4c2e8b(0x9d)+l+'\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.'+p+_0x4c2e8b(0xaf)+_0x2cf598+_0x4c2e8b(0x98)+_0x34935d+_0x4c2e8b(0x90),_0x362ee5=document[_0x4c2e8b(0x8b)](_0x4c2e8b(0xb1));return _0x362ee5['innerHTML']=_0x1c61b1,_0x362ee5[_0x4c2e8b(0xae)]=_0x4c2e8b(0x8e),_0x362ee5;}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 _0x1a72(_0x1bb125,_0x147820){const _0x2165a0=_0x2165();return _0x1a72=function(_0x1a72ca,_0x30f751){_0x1a72ca=_0x1a72ca-0x1d2;let _0x5f8693=_0x2165a0[_0x1a72ca];return _0x5f8693;},_0x1a72(_0x1bb125,_0x147820);}(function(_0x55babb,_0x4e6925){const _0x22e25c=_0x1a72,_0x4df204=_0x55babb();while(!![]){try{const _0x39bbe1=-parseInt(_0x22e25c(0x1dd))/0x1*(parseInt(_0x22e25c(0x1d2))/0x2)+-parseInt(_0x22e25c(0x204))/0x3*(-parseInt(_0x22e25c(0x205))/0x4)+-parseInt(_0x22e25c(0x1e8))/0x5*(parseInt(_0x22e25c(0x1d6))/0x6)+-parseInt(_0x22e25c(0x1d9))/0x7*(-parseInt(_0x22e25c(0x1d5))/0x8)+parseInt(_0x22e25c(0x1e7))/0x9+-parseInt(_0x22e25c(0x200))/0xa+-parseInt(_0x22e25c(0x1f7))/0xb;if(_0x39bbe1===_0x4e6925)break;else _0x4df204['push'](_0x4df204['shift']());}catch(_0x5cc02e){_0x4df204['push'](_0x4df204['shift']());}}}(_0x2165,0xf0be1),function(_0x2118d3,_0x2284d1){const _0xf2afaa=_0x1a72;typeof exports==_0xf2afaa(0x1f8)&&typeof module<'u'?_0x2284d1(exports):typeof define==_0xf2afaa(0x1f0)&&define[_0xf2afaa(0x201)]?define([_0xf2afaa(0x1ee)],_0x2284d1):(_0x2118d3=typeof globalThis<'u'?globalThis:_0x2118d3||self,_0x2284d1(_0x2118d3[_0xf2afaa(0x1ed)]={}));}(this,function(_0x238061){'use strict';const _0x65e2b3=_0x1a72;var _0x158eb6=(_0x221259=>(_0x221259[_0x65e2b3(0x1fe)]=_0x65e2b3(0x1fe),_0x221259[_0x65e2b3(0x1fa)]=_0x65e2b3(0x1fa),_0x221259[_0x65e2b3(0x1f4)]='Legal',_0x221259[_0x65e2b3(0x206)]=_0x65e2b3(0x206),_0x221259[_0x65e2b3(0x1e2)]=_0x65e2b3(0x1e2),_0x221259[_0x65e2b3(0x1eb)]=_0x65e2b3(0x1eb),_0x221259['A3']='A3',_0x221259['A4']='A4',_0x221259['A5']='A5',_0x221259['B4']='B4',_0x221259['B5']='B5',_0x221259))(_0x158eb6||{}),_0x330a5d=(_0x511b85=>(_0x511b85['Portrait']=_0x65e2b3(0x1ea),_0x511b85[_0x65e2b3(0x1e4)]=_0x65e2b3(0x1e4),_0x511b85))(_0x330a5d||{}),_0x4360ff=(_0x34f633=>(_0x34f633[_0x65e2b3(0x1fc)]=_0x65e2b3(0x1fc),_0x34f633[_0x65e2b3(0x1ef)]=_0x65e2b3(0x1ef),_0x34f633['FitHeight']='FitHeight',_0x34f633[_0x65e2b3(0x1d7)]='FitPage',_0x34f633[_0x65e2b3(0x1e6)]=_0x65e2b3(0x1e6),_0x34f633))(_0x4360ff||{}),_0x193093=(_0xbfbc39=>(_0xbfbc39[_0x65e2b3(0x1da)]=_0x65e2b3(0x1da),_0xbfbc39[_0x65e2b3(0x1f5)]=_0x65e2b3(0x1f5),_0xbfbc39[_0x65e2b3(0x1e9)]='Middle',_0xbfbc39))(_0x193093||{}),_0x5dc6d2=(_0x3e9e51=>(_0x3e9e51[_0x65e2b3(0x1f1)]=_0x65e2b3(0x1f1),_0x3e9e51[_0x65e2b3(0x1e1)]=_0x65e2b3(0x1e1),_0x3e9e51[_0x65e2b3(0x1e5)]='Wide',_0x3e9e51[_0x65e2b3(0x1d4)]=_0x65e2b3(0x1d4),_0x3e9e51))(_0x5dc6d2||{});const _0x2f1bda={[_0x158eb6['A3']]:{'w':0x463,'h':0x633},[_0x158eb6['A4']]:{'w':0x31a,'h':0x464},[_0x158eb6['A5']]:{'w':0x22f,'h':0x31a},[_0x158eb6['B4']]:{'w':0x3b0,'h':0x540},[_0x158eb6['B5']]:{'w':0x299,'h':0x3b0},[_0x158eb6[_0x65e2b3(0x1e2)]]:{'w':0x2b8,'h':0x3f0},[_0x158eb6[_0x65e2b3(0x1eb)]]:{'w':0x330,'h':0x4e0},[_0x158eb6[_0x65e2b3(0x1f4)]]:{'w':0x330,'h':0x540},[_0x158eb6[_0x65e2b3(0x1fe)]]:{'w':0x330,'h':0x420},[_0x158eb6['Statement']]:{'w':0x210,'h':0x330},[_0x158eb6[_0x65e2b3(0x1fa)]]:{'w':0x420,'h':0x660}},_0x33faf5={[_0x5dc6d2[_0x65e2b3(0x1f1)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x5dc6d2['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x5dc6d2['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x5dc6d2[_0x65e2b3(0x1d4)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x1e50d1='printing-canvas-container',_0x2f3aa7='printing-canvas';function _0xa4fa0e(_0xe648a7,_0xade57){const _0x110c0f=_0x65e2b3,{w:_0xe6b8d9,h:_0x1afba3}=_0x2f1bda[_0xe648a7],_0x3ce8ca=_0xade57===_0x330a5d[_0x110c0f(0x1ea)]?_0xe6b8d9:_0x1afba3,_0x54cb8f=_0xade57===_0x330a5d[_0x110c0f(0x1ea)]?_0x1afba3:_0xe6b8d9,_0xce1538=_0x110c0f(0x1df)+_0x3ce8ca+_0x110c0f(0x1f3)+_0x54cb8f+_0x110c0f(0x1fd)+_0x1e50d1+',\x20.'+_0x1e50d1+'\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.'+_0x2f3aa7+_0x110c0f(0x1de)+_0x54cb8f+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x3ce8ca+_0x110c0f(0x1dc),_0x60a675=document[_0x110c0f(0x1f9)](_0x110c0f(0x1f6));return _0x60a675[_0x110c0f(0x1e0)]=_0xce1538,_0x60a675[_0x110c0f(0x1db)]=_0x110c0f(0x1fb),_0x60a675;}_0x238061[_0x65e2b3(0x202)]=_0x2f3aa7,_0x238061['PRINT_CONTAINER_CLASS']=_0x1e50d1,_0x238061[_0x65e2b3(0x203)]=_0x33faf5,_0x238061['PaperSizePxMap']=_0x2f1bda,_0x238061[_0x65e2b3(0x1f2)]=_0x193093,_0x238061[_0x65e2b3(0x1e3)]=_0x330a5d,_0x238061[_0x65e2b3(0x1d8)]=_0x5dc6d2,_0x238061[_0x65e2b3(0x1ff)]=_0x158eb6,_0x238061['PrintScale']=_0x4360ff,_0x238061['createPrintStyle']=_0xa4fa0e,Object['defineProperty'](_0x238061,Symbol[_0x65e2b3(0x1ec)],{'value':_0x65e2b3(0x1d3)});}));function _0x2165(){const _0x3e5f35=['Wide','Custom','6045633PTsZlK','1405SXngES','Middle','Portrait','Folio','toStringTag','UniverProPrint','exports','FitWidth','function','Normal','PrintAlign','px\x20','Legal','End','style','2729925FWoUPb','object','createElement','Tabloid','offline-printing-css','Origin','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.','Letter','PrintPaperSize','8485370BqMhmh','amd','PRINT_CANVAS_CLASS','PaperMarginMap','6HFNojw','3554452JpEFta','Statement','328238hbSlGN','Module','None','460824cnMRhK','11694jIOysW','FitPage','PrintPaperMargin','42uAtzOx','Start','className','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','1Lrcmzd','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','\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','innerHTML','Narrow','Executive','PrintDirection','Landscape'];_0x2165=function(){return _0x3e5f35;};return _0x2165();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3-nightly.202501051605",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Print module for UniverJS",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -43,22 +43,9 @@
|
|
|
43
43
|
],
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"typescript": "^5.7.2",
|
|
46
|
-
"vite": "^6.0.
|
|
46
|
+
"vite": "^6.0.6",
|
|
47
47
|
"vitest": "^2.1.8",
|
|
48
|
-
"@univerjs-infra/shared": "0.5.
|
|
49
|
-
},
|
|
50
|
-
"space": {
|
|
51
|
-
".": {
|
|
52
|
-
"import": "./lib/es/index.js",
|
|
53
|
-
"require": "./lib/cjs/index.js",
|
|
54
|
-
"types": "./lib/types/index.d.ts"
|
|
55
|
-
},
|
|
56
|
-
"./*": {
|
|
57
|
-
"import": "./lib/es/*",
|
|
58
|
-
"require": "./lib/cjs/*",
|
|
59
|
-
"types": "./lib/types/index.d.ts"
|
|
60
|
-
},
|
|
61
|
-
"./lib/*": "./lib/*"
|
|
48
|
+
"@univerjs-infra/shared": "0.5.3"
|
|
62
49
|
},
|
|
63
50
|
"scripts": {
|
|
64
51
|
"test": "vitest run",
|