@univerjs-pro/print 0.5.1 → 0.5.2-nightly.202412291605
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 +4 -4
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x290d3c=_0x3da0;(function(_0x221ab8,_0x5ea521){const _0x300673=_0x3da0,_0x197174=_0x221ab8();while(!![]){try{const _0x2495f7=-parseInt(_0x300673(0xb5))/0x1+-parseInt(_0x300673(0x98))/0x2*(-parseInt(_0x300673(0xb3))/0x3)+parseInt(_0x300673(0x97))/0x4*(parseInt(_0x300673(0xa3))/0x5)+-parseInt(_0x300673(0xaa))/0x6+-parseInt(_0x300673(0xb7))/0x7*(parseInt(_0x300673(0xb4))/0x8)+-parseInt(_0x300673(0xc4))/0x9*(-parseInt(_0x300673(0x9b))/0xa)+-parseInt(_0x300673(0x9f))/0xb*(parseInt(_0x300673(0xb6))/0xc);if(_0x2495f7===_0x5ea521)break;else _0x197174['push'](_0x197174['shift']());}catch(_0x3bf3b0){_0x197174['push'](_0x197174['shift']());}}}(_0x3336,0x18998));function _0x3336(){const _0x2fb805=['981822ryyjjF','Legal','Folio','Executive','FitPage','PRINT_CONTAINER_CLASS','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.','PrintPaperSize','FitHeight','114846QoZHOw','8sAXzxP','59374mfxsdb','192vicPYC','260393OIGhrE','Start','Origin','Portrait','Wide','PrintAlign','printing-canvas-container','Narrow','End','PaperSizePxMap','FitWidth','Middle','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','1791711WLJOuJ','defineProperty','createElement','offline-printing-css','Normal','Landscape','createPrintStyle','Statement','4qKYqBf','10vkhUhy','style','PrintDirection','10XMlaIb','Letter','\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.','Custom','83842wNvCJU','PrintScale','None','PaperMarginMap','462165sobeyQ','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Tabloid','PRINT_CANVAS_CLASS','\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','printing-canvas',',\x20.'];_0x3336=function(){return _0x2fb805;};return _0x3336();}Object[_0x290d3c(0xc5)](exports,Symbol['toStringTag'],{'value':'Module'});var e=(_0x5ee358=>(_0x5ee358[_0x290d3c(0x9c)]=_0x290d3c(0x9c),_0x5ee358[_0x290d3c(0xa5)]=_0x290d3c(0xa5),_0x5ee358[_0x290d3c(0xab)]=_0x290d3c(0xab),_0x5ee358[_0x290d3c(0xcb)]=_0x290d3c(0xcb),_0x5ee358[_0x290d3c(0xad)]=_0x290d3c(0xad),_0x5ee358[_0x290d3c(0xac)]=_0x290d3c(0xac),_0x5ee358['A3']='A3',_0x5ee358['A4']='A4',_0x5ee358['A5']='A5',_0x5ee358['B4']='B4',_0x5ee358['B5']='B5',_0x5ee358))(e||{}),i=(_0x56324e=>(_0x56324e[_0x290d3c(0xba)]='Portrait',_0x56324e[_0x290d3c(0xc9)]=_0x290d3c(0xc9),_0x56324e))(i||{}),c=(_0x2b2c21=>(_0x2b2c21[_0x290d3c(0xb9)]=_0x290d3c(0xb9),_0x2b2c21[_0x290d3c(0xc1)]=_0x290d3c(0xc1),_0x2b2c21['FitHeight']=_0x290d3c(0xb2),_0x2b2c21[_0x290d3c(0xae)]=_0x290d3c(0xae),_0x2b2c21['Custom']=_0x290d3c(0x9e),_0x2b2c21))(c||{}),g=(_0x184cca=>(_0x184cca[_0x290d3c(0xb8)]='Start',_0x184cca['End']=_0x290d3c(0xbf),_0x184cca['Middle']=_0x290d3c(0xc2),_0x184cca))(g||{}),o=(_0x415fa3=>(_0x415fa3['Normal']=_0x290d3c(0xc8),_0x415fa3[_0x290d3c(0xbe)]=_0x290d3c(0xbe),_0x415fa3['Wide']=_0x290d3c(0xbb),_0x415fa3['None']=_0x290d3c(0xa1),_0x415fa3))(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[_0x290d3c(0xad)]]:{'w':0x2b8,'h':0x3f0},[e['Folio']]:{'w':0x330,'h':0x4e0},[e['Legal']]:{'w':0x330,'h':0x540},[e[_0x290d3c(0x9c)]]:{'w':0x330,'h':0x420},[e[_0x290d3c(0xcb)]]:{'w':0x210,'h':0x330},[e[_0x290d3c(0xa5)]]:{'w':0x420,'h':0x660}},N={[o[_0x290d3c(0xc8)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x290d3c(0xbe)]]:{'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=_0x290d3c(0xbd),p=_0x290d3c(0xa8);function A(_0x1995ea,_0x24fc6c){const _0x3c5d1a=_0x290d3c,{w:_0x5b64f3,h:_0x15d51d}=m[_0x1995ea],_0x235fd4=_0x24fc6c===i[_0x3c5d1a(0xba)]?_0x5b64f3:_0x15d51d,_0x423cea=_0x24fc6c===i['Portrait']?_0x15d51d:_0x5b64f3,_0x274392=_0x3c5d1a(0xa7)+_0x235fd4+'px\x20'+_0x423cea+_0x3c5d1a(0xb0)+n+_0x3c5d1a(0xa9)+n+_0x3c5d1a(0x9d)+p+_0x3c5d1a(0xa4)+_0x423cea+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x235fd4+_0x3c5d1a(0xc3),_0x448d0f=document[_0x3c5d1a(0xc6)](_0x3c5d1a(0x99));return _0x448d0f['innerHTML']=_0x274392,_0x448d0f['className']=_0x3c5d1a(0xc7),_0x448d0f;}function _0x3da0(_0xad5a36,_0x3c3088){const _0x33362e=_0x3336();return _0x3da0=function(_0x3da001,_0x1646e9){_0x3da001=_0x3da001-0x97;let _0x42579f=_0x33362e[_0x3da001];return _0x42579f;},_0x3da0(_0xad5a36,_0x3c3088);}exports[_0x290d3c(0xa6)]=p,exports[_0x290d3c(0xaf)]=n,exports[_0x290d3c(0xa2)]=N,exports[_0x290d3c(0xc0)]=m,exports[_0x290d3c(0xbc)]=g,exports[_0x290d3c(0x9a)]=i,exports['PrintPaperMargin']=o,exports[_0x290d3c(0xb1)]=e,exports[_0x290d3c(0xa0)]=c,exports[_0x290d3c(0xca)]=A;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x374402=_0x4894;(function(_0x30ed00,_0x561c2a){const _0x5cbfb1=_0x4894,_0x272122=_0x30ed00();while(!![]){try{const _0x2d5757=-parseInt(_0x5cbfb1(0x1a3))/0x1*(parseInt(_0x5cbfb1(0x192))/0x2)+-parseInt(_0x5cbfb1(0x19c))/0x3*(parseInt(_0x5cbfb1(0x199))/0x4)+-parseInt(_0x5cbfb1(0x19e))/0x5*(-parseInt(_0x5cbfb1(0x193))/0x6)+parseInt(_0x5cbfb1(0x1b1))/0x7*(parseInt(_0x5cbfb1(0x1b9))/0x8)+parseInt(_0x5cbfb1(0x1ac))/0x9*(parseInt(_0x5cbfb1(0x1a4))/0xa)+parseInt(_0x5cbfb1(0x197))/0xb+parseInt(_0x5cbfb1(0x19f))/0xc*(parseInt(_0x5cbfb1(0x1a1))/0xd);if(_0x2d5757===_0x561c2a)break;else _0x272122['push'](_0x272122['shift']());}catch(_0xf01815){_0x272122['push'](_0x272122['shift']());}}}(_0x3748,0x93dd8));function _0x4894(_0xd1ef19,_0x459660){const _0x374864=_0x3748();return _0x4894=function(_0x4894f0,_0x48bdda){_0x4894f0=_0x4894f0-0x191;let _0x54516e=_0x374864[_0x4894f0];return _0x54516e;},_0x4894(_0xd1ef19,_0x459660);}function _0x3748(){const _0x443627=['Wide','px\x20','18PbBisY','Letter','FitHeight','Custom','Portrait','22771sSrVHv','Narrow','Tabloid','FitWidth','Origin','Start',',\x20.','None','216YbTXDl','style','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\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','643436JzLrcg','204VRnOkH','\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','Executive','8241805SiqcKR','Legal','277612GYcJNb','Normal','Folio','48OiZAXt','End','31585krZLjx','6456MXbYtx','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.','33384GHOACL','Middle','3UJhqye','1239050GqnYxH','offline-printing-css','Statement','printing-canvas-container','FitPage','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}'];_0x3748=function(){return _0x443627;};return _0x3748();}var o=(_0x3fd0d9=>(_0x3fd0d9[_0x374402(0x1ad)]=_0x374402(0x1ad),_0x3fd0d9[_0x374402(0x1b3)]=_0x374402(0x1b3),_0x3fd0d9[_0x374402(0x198)]=_0x374402(0x198),_0x3fd0d9[_0x374402(0x1a6)]='Statement',_0x3fd0d9[_0x374402(0x196)]=_0x374402(0x196),_0x3fd0d9[_0x374402(0x19b)]=_0x374402(0x19b),_0x3fd0d9['A3']='A3',_0x3fd0d9['A4']='A4',_0x3fd0d9['A5']='A5',_0x3fd0d9['B4']='B4',_0x3fd0d9['B5']='B5',_0x3fd0d9))(o||{}),i=(_0x5f02b9=>(_0x5f02b9[_0x374402(0x1b0)]='Portrait',_0x5f02b9[_0x374402(0x195)]=_0x374402(0x195),_0x5f02b9))(i||{}),w=(_0x57739c=>(_0x57739c[_0x374402(0x1b5)]=_0x374402(0x1b5),_0x57739c['FitWidth']=_0x374402(0x1b4),_0x57739c[_0x374402(0x1ae)]='FitHeight',_0x57739c[_0x374402(0x1a8)]=_0x374402(0x1a8),_0x57739c[_0x374402(0x1af)]=_0x374402(0x1af),_0x57739c))(w||{}),m=(_0x4fec92=>(_0x4fec92[_0x374402(0x1b6)]=_0x374402(0x1b6),_0x4fec92[_0x374402(0x19d)]=_0x374402(0x19d),_0x4fec92[_0x374402(0x1a2)]='Middle',_0x4fec92))(m||{}),e=(_0x411ff1=>(_0x411ff1[_0x374402(0x19a)]='Normal',_0x411ff1[_0x374402(0x1b2)]=_0x374402(0x1b2),_0x411ff1[_0x374402(0x1aa)]=_0x374402(0x1aa),_0x411ff1[_0x374402(0x1b8)]=_0x374402(0x1b8),_0x411ff1))(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[_0x374402(0x196)]]:{'w':0x2b8,'h':0x3f0},[o[_0x374402(0x19b)]]:{'w':0x330,'h':0x4e0},[o[_0x374402(0x198)]]:{'w':0x330,'h':0x540},[o['Letter']]:{'w':0x330,'h':0x420},[o[_0x374402(0x1a6)]]:{'w':0x210,'h':0x330},[o[_0x374402(0x1b3)]]:{'w':0x420,'h':0x660}},v={[e[_0x374402(0x19a)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x374402(0x1b2)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x374402(0x1a7),p='printing-canvas';function N(_0x23c493,_0x15a991){const _0x1f4bf3=_0x374402,{w:_0x33a195,h:_0x361b9d}=g[_0x23c493],_0x3f7d24=_0x15a991===i[_0x1f4bf3(0x1b0)]?_0x33a195:_0x361b9d,_0x37f40b=_0x15a991===i[_0x1f4bf3(0x1b0)]?_0x361b9d:_0x33a195,_0x4e6e37=_0x1f4bf3(0x191)+_0x3f7d24+_0x1f4bf3(0x1ab)+_0x37f40b+_0x1f4bf3(0x1a0)+l+_0x1f4bf3(0x1b7)+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+_0x1f4bf3(0x194)+_0x37f40b+_0x1f4bf3(0x1bb)+_0x3f7d24+_0x1f4bf3(0x1a9),_0x356b81=document['createElement'](_0x1f4bf3(0x1ba));return _0x356b81['innerHTML']=_0x4e6e37,_0x356b81['className']=_0x1f4bf3(0x1a5),_0x356b81;}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
|
-
|
|
1
|
+
(function(_0x10ad2c,_0x31bc83){const _0x3571ef=_0x3805,_0x306da9=_0x10ad2c();while(!![]){try{const _0x304236=-parseInt(_0x3571ef(0x181))/0x1+parseInt(_0x3571ef(0x19d))/0x2+-parseInt(_0x3571ef(0x1a2))/0x3+parseInt(_0x3571ef(0x192))/0x4+-parseInt(_0x3571ef(0x19c))/0x5*(parseInt(_0x3571ef(0x1ae))/0x6)+parseInt(_0x3571ef(0x180))/0x7*(parseInt(_0x3571ef(0x18b))/0x8)+parseInt(_0x3571ef(0x197))/0x9;if(_0x304236===_0x31bc83)break;else _0x306da9['push'](_0x306da9['shift']());}catch(_0x4a73ce){_0x306da9['push'](_0x306da9['shift']());}}}(_0x4a4e,0xdab75),function(_0x18a4d0,_0x572670){const _0x3a3a1a=_0x3805;typeof exports==_0x3a3a1a(0x194)&&typeof module<'u'?_0x572670(exports):typeof define=='function'&&define[_0x3a3a1a(0x1a7)]?define(['exports'],_0x572670):(_0x18a4d0=typeof globalThis<'u'?globalThis:_0x18a4d0||self,_0x572670(_0x18a4d0[_0x3a3a1a(0x193)]={}));}(this,function(_0x48ae84){'use strict';const _0xdf6e33=_0x3805;var _0x2e4004=(_0x4fa177=>(_0x4fa177[_0xdf6e33(0x184)]=_0xdf6e33(0x184),_0x4fa177[_0xdf6e33(0x18d)]=_0xdf6e33(0x18d),_0x4fa177[_0xdf6e33(0x1ab)]=_0xdf6e33(0x1ab),_0x4fa177[_0xdf6e33(0x1aa)]='Statement',_0x4fa177['Executive']=_0xdf6e33(0x19f),_0x4fa177[_0xdf6e33(0x1ad)]=_0xdf6e33(0x1ad),_0x4fa177['A3']='A3',_0x4fa177['A4']='A4',_0x4fa177['A5']='A5',_0x4fa177['B4']='B4',_0x4fa177['B5']='B5',_0x4fa177))(_0x2e4004||{}),_0x534370=(_0x1d449f=>(_0x1d449f['Portrait']=_0xdf6e33(0x196),_0x1d449f['Landscape']=_0xdf6e33(0x19b),_0x1d449f))(_0x534370||{}),_0x26f3b1=(_0x3551e7=>(_0x3551e7[_0xdf6e33(0x17f)]='Origin',_0x3551e7['FitWidth']='FitWidth',_0x3551e7[_0xdf6e33(0x189)]=_0xdf6e33(0x189),_0x3551e7[_0xdf6e33(0x188)]=_0xdf6e33(0x188),_0x3551e7[_0xdf6e33(0x1a4)]=_0xdf6e33(0x1a4),_0x3551e7))(_0x26f3b1||{}),_0x41bce5=(_0x9e1f96=>(_0x9e1f96[_0xdf6e33(0x1a0)]=_0xdf6e33(0x1a0),_0x9e1f96[_0xdf6e33(0x1a6)]=_0xdf6e33(0x1a6),_0x9e1f96[_0xdf6e33(0x18a)]='Middle',_0x9e1f96))(_0x41bce5||{}),_0x4cccda=(_0x3f498f=>(_0x3f498f[_0xdf6e33(0x19e)]='Normal',_0x3f498f[_0xdf6e33(0x199)]=_0xdf6e33(0x199),_0x3f498f[_0xdf6e33(0x187)]=_0xdf6e33(0x187),_0x3f498f[_0xdf6e33(0x1a3)]=_0xdf6e33(0x1a3),_0x3f498f))(_0x4cccda||{});const _0x4a77d8={[_0x2e4004['A3']]:{'w':0x463,'h':0x633},[_0x2e4004['A4']]:{'w':0x31a,'h':0x464},[_0x2e4004['A5']]:{'w':0x22f,'h':0x31a},[_0x2e4004['B4']]:{'w':0x3b0,'h':0x540},[_0x2e4004['B5']]:{'w':0x299,'h':0x3b0},[_0x2e4004[_0xdf6e33(0x19f)]]:{'w':0x2b8,'h':0x3f0},[_0x2e4004[_0xdf6e33(0x1ad)]]:{'w':0x330,'h':0x4e0},[_0x2e4004[_0xdf6e33(0x1ab)]]:{'w':0x330,'h':0x540},[_0x2e4004[_0xdf6e33(0x184)]]:{'w':0x330,'h':0x420},[_0x2e4004[_0xdf6e33(0x1aa)]]:{'w':0x210,'h':0x330},[_0x2e4004[_0xdf6e33(0x18d)]]:{'w':0x420,'h':0x660}},_0x29b23c={[_0x4cccda[_0xdf6e33(0x19e)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x4cccda[_0xdf6e33(0x199)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x4cccda['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x4cccda[_0xdf6e33(0x1a3)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x3c5fef=_0xdf6e33(0x1a1),_0x326570=_0xdf6e33(0x18f);function _0x3e7429(_0xa5263a,_0x4c39c7){const _0x5f27ba=_0xdf6e33,{w:_0x1a9180,h:_0x2ffc11}=_0x4a77d8[_0xa5263a],_0xde7ebf=_0x4c39c7===_0x534370[_0x5f27ba(0x196)]?_0x1a9180:_0x2ffc11,_0x4ea13e=_0x4c39c7===_0x534370[_0x5f27ba(0x196)]?_0x2ffc11:_0x1a9180,_0xd4b2ff='\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'+_0xde7ebf+'px\x20'+_0x4ea13e+_0x5f27ba(0x198)+_0x3c5fef+_0x5f27ba(0x1a8)+_0x3c5fef+_0x5f27ba(0x195)+_0x326570+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x4ea13e+_0x5f27ba(0x1a5)+_0xde7ebf+_0x5f27ba(0x18e),_0xc7fbbb=document[_0x5f27ba(0x183)](_0x5f27ba(0x1ac));return _0xc7fbbb['innerHTML']=_0xd4b2ff,_0xc7fbbb[_0x5f27ba(0x1af)]=_0x5f27ba(0x18c),_0xc7fbbb;}_0x48ae84[_0xdf6e33(0x19a)]=_0x326570,_0x48ae84[_0xdf6e33(0x185)]=_0x3c5fef,_0x48ae84['PaperMarginMap']=_0x29b23c,_0x48ae84[_0xdf6e33(0x17e)]=_0x4a77d8,_0x48ae84[_0xdf6e33(0x191)]=_0x41bce5,_0x48ae84[_0xdf6e33(0x1a9)]=_0x534370,_0x48ae84[_0xdf6e33(0x190)]=_0x4cccda,_0x48ae84['PrintPaperSize']=_0x2e4004,_0x48ae84[_0xdf6e33(0x182)]=_0x26f3b1,_0x48ae84[_0xdf6e33(0x1b0)]=_0x3e7429,Object[_0xdf6e33(0x186)](_0x48ae84,Symbol['toStringTag'],{'value':'Module'});}));function _0x3805(_0x5e2308,_0x310d65){const _0x4a4e2e=_0x4a4e();return _0x3805=function(_0x380551,_0x49ea08){_0x380551=_0x380551-0x17e;let _0xf3e4e1=_0x4a4e2e[_0x380551];return _0xf3e4e1;},_0x3805(_0x5e2308,_0x310d65);}function _0x4a4e(){const _0x150790=['679xcEfZm','753029yTjQae','PrintScale','createElement','Letter','PRINT_CONTAINER_CLASS','defineProperty','Wide','FitPage','FitHeight','Middle','143864mzgdGJ','offline-printing-css','Tabloid','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','printing-canvas','PrintPaperMargin','PrintAlign','1079680cRIiDp','UniverProPrint','object','\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.','Portrait','15252894NAAKRN','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.','Narrow','PRINT_CANVAS_CLASS','Landscape','4385QvoUgc','203232bnNlSn','Normal','Executive','Start','printing-canvas-container','3396495UvrxyR','None','Custom','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','End','amd',',\x20.','PrintDirection','Statement','Legal','style','Folio','7044ytZiTw','className','createPrintStyle','PaperSizePxMap','Origin'];_0x4a4e=function(){return _0x150790;};return _0x4a4e();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2-nightly.202412291605",
|
|
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.7.2",
|
|
46
|
-
"vite": "^6.0.
|
|
47
|
-
"vitest": "^2.1.
|
|
48
|
-
"@univerjs-infra/shared": "0.5.
|
|
46
|
+
"vite": "^6.0.3",
|
|
47
|
+
"vitest": "^2.1.8",
|
|
48
|
+
"@univerjs-infra/shared": "0.5.2"
|
|
49
49
|
},
|
|
50
50
|
"space": {
|
|
51
51
|
".": {
|