@univerjs-pro/print 0.11.0 → 0.12.0-nightly.202511220628
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';
|
|
1
|
+
'use strict';const _0xbbbdd9=_0x1058;(function(_0x3990e6,_0x22d92a){const _0x4ca43a=_0x1058,_0x2c844a=_0x3990e6();while(!![]){try{const _0x2fbed=parseInt(_0x4ca43a(0x1de))/0x1+parseInt(_0x4ca43a(0x1d8))/0x2*(-parseInt(_0x4ca43a(0x1e3))/0x3)+parseInt(_0x4ca43a(0x1ed))/0x4*(-parseInt(_0x4ca43a(0x1e5))/0x5)+parseInt(_0x4ca43a(0x1e4))/0x6*(parseInt(_0x4ca43a(0x1dd))/0x7)+parseInt(_0x4ca43a(0x1ef))/0x8+-parseInt(_0x4ca43a(0x1df))/0x9+parseInt(_0x4ca43a(0x1d2))/0xa*(parseInt(_0x4ca43a(0x1f4))/0xb);if(_0x2fbed===_0x22d92a)break;else _0x2c844a['push'](_0x2c844a['shift']());}catch(_0x189c5f){_0x2c844a['push'](_0x2c844a['shift']());}}}(_0x266d,0xc43b4));function _0x266d(){const _0x276ecb=['px\x20','PrintPaperMargin','\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','None','style','Landscape','FitPage','5276aRJAdJ','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}','4124168PkCIih','Portrait','defineProperty','Narrow','Origin','22CIjwoH','End','Wide','Middle','2708620JJZPYf','Normal','offline-printing-css','PrintAlign','\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','PrintDirection','28IbYKeK','FitWidth','Start','Custom','innerHTML','1180333ZeFQEr','1027433xhvQTR','4882212RXKPnM','PRINT_CONTAINER_CLASS','\x0a\x20\x20\x20\x20.','createPrintStyle','17391SPQESw','12TlsdfA','3770Rrcwup'];_0x266d=function(){return _0x276ecb;};return _0x266d();}function _0x1058(_0x465acd,_0x3279a2){const _0x266d7b=_0x266d();return _0x1058=function(_0x10581e,_0x11246e){_0x10581e=_0x10581e-0x1d0;let _0x27a42e=_0x266d7b[_0x10581e];return _0x27a42e;},_0x1058(_0x465acd,_0x3279a2);}Object[_0xbbbdd9(0x1f1)](exports,Symbol['toStringTag'],{'value':'Module'});var i=(_0x2f4d51=>(_0x2f4d51[_0xbbbdd9(0x1f0)]=_0xbbbdd9(0x1f0),_0x2f4d51['Landscape']=_0xbbbdd9(0x1eb),_0x2f4d51))(i||{}),l=(_0x2c0469=>(_0x2c0469[_0xbbbdd9(0x1f3)]='Origin',_0x2c0469[_0xbbbdd9(0x1d9)]='FitWidth',_0x2c0469['FitHeight']='FitHeight',_0x2c0469[_0xbbbdd9(0x1ec)]=_0xbbbdd9(0x1ec),_0x2c0469[_0xbbbdd9(0x1db)]='Custom',_0x2c0469))(l||{}),m=(_0x57ae30=>(_0x57ae30['Start']=_0xbbbdd9(0x1da),_0x57ae30[_0xbbbdd9(0x1f5)]=_0xbbbdd9(0x1f5),_0x57ae30[_0xbbbdd9(0x1d1)]=_0xbbbdd9(0x1d1),_0x57ae30))(m||{}),o=(_0x2ffdbc=>(_0x2ffdbc['Normal']=_0xbbbdd9(0x1d3),_0x2ffdbc[_0xbbbdd9(0x1f2)]=_0xbbbdd9(0x1f2),_0x2ffdbc[_0xbbbdd9(0x1d0)]=_0xbbbdd9(0x1d0),_0x2ffdbc[_0xbbbdd9(0x1e9)]=_0xbbbdd9(0x1e9),_0x2ffdbc['Custom']=_0xbbbdd9(0x1db),_0x2ffdbc))(o||{});const g={[o[_0xbbbdd9(0x1d3)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0xbbbdd9(0x1f2)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0xbbbdd9(0x1d0)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0xbbbdd9(0x1e9)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0xbbbdd9(0x1db)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r='printing-canvas-container',n='printing-canvas';function h(_0x2c9766,_0x1c4819,_0x2eb90e){const _0x8f89a6=_0xbbbdd9,_0x592e40=_0x2eb90e===i['Portrait']?_0x2c9766:_0x1c4819,_0x260c28=_0x2eb90e===i[_0x8f89a6(0x1f0)]?_0x1c4819:_0x2c9766,_0x48f259=_0x8f89a6(0x1e1)+n+_0x8f89a6(0x1d6)+_0x592e40+_0x8f89a6(0x1e6)+_0x260c28+'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.'+r+',\x20.'+r+'\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.'+n+_0x8f89a6(0x1e8)+_0x260c28+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x592e40+_0x8f89a6(0x1ee),_0x5cf705=document['createElement'](_0x8f89a6(0x1ea));return _0x5cf705[_0x8f89a6(0x1dc)]=_0x48f259,_0x5cf705['className']=_0x8f89a6(0x1d4),_0x5cf705;}exports['PRINT_CANVAS_CLASS']=n,exports[_0xbbbdd9(0x1e0)]=r,exports['PaperMarginMap']=g,exports[_0xbbbdd9(0x1d5)]=m,exports[_0xbbbdd9(0x1d7)]=i,exports[_0xbbbdd9(0x1e7)]=o,exports['PrintScale']=l,exports[_0xbbbdd9(0x1e2)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5bfd(){const _0x579280=['FitPage','printing-canvas-container','None','1055395wOcXZL','Middle','End','48IckILs','\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','Normal','\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','1770NQdngH','Landscape','Wide','1176KrJSkk','Start','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}','FitWidth','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.','25923227UGsIMe','createElement','\x0a\x20\x20\x20\x20.','19166EKdhYh',',\x20.','FitHeight','454851FOWukZ','12053540aRPwep','2082CtiRLM','className','innerHTML','12EqMtln','2298HjkAMB','Narrow','Custom','Portrait','4130hqFpYE','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'];_0x5bfd=function(){return _0x579280;};return _0x5bfd();}const _0x3e9271=_0xe11d;(function(_0x40700d,_0x1ae270){const _0x36fd66=_0xe11d,_0x4b206e=_0x40700d();while(!![]){try{const _0x25b748=-parseInt(_0x36fd66(0x123))/0x1+parseInt(_0x36fd66(0x11a))/0x2*(parseInt(_0x36fd66(0x116))/0x3)+parseInt(_0x36fd66(0x108))/0x4*(parseInt(_0x36fd66(0x11e))/0x5)+-parseInt(_0x36fd66(0x105))/0x6*(parseInt(_0x36fd66(0x111))/0x7)+parseInt(_0x36fd66(0x101))/0x8*(parseInt(_0x36fd66(0x114))/0x9)+-parseInt(_0x36fd66(0x115))/0xa+parseInt(_0x36fd66(0x10e))/0xb*(parseInt(_0x36fd66(0x119))/0xc);if(_0x25b748===_0x1ae270)break;else _0x4b206e['push'](_0x4b206e['shift']());}catch(_0x3f1351){_0x4b206e['push'](_0x4b206e['shift']());}}}(_0x5bfd,0x9a382));var e=(_0x6ad9e3=>(_0x6ad9e3[_0x3e9271(0x11d)]=_0x3e9271(0x11d),_0x6ad9e3['Landscape']=_0x3e9271(0x106),_0x6ad9e3))(e||{}),h=(_0x1db1e7=>(_0x1db1e7['Origin']='Origin',_0x1db1e7[_0x3e9271(0x10b)]='FitWidth',_0x1db1e7[_0x3e9271(0x113)]=_0x3e9271(0x113),_0x1db1e7[_0x3e9271(0x120)]='FitPage',_0x1db1e7[_0x3e9271(0x11c)]='Custom',_0x1db1e7))(h||{}),l=(_0x229638=>(_0x229638[_0x3e9271(0x109)]=_0x3e9271(0x109),_0x229638[_0x3e9271(0x125)]=_0x3e9271(0x125),_0x229638[_0x3e9271(0x124)]=_0x3e9271(0x124),_0x229638))(l||{}),o=(_0x236cca=>(_0x236cca[_0x3e9271(0x103)]=_0x3e9271(0x103),_0x236cca[_0x3e9271(0x11b)]=_0x3e9271(0x11b),_0x236cca['Wide']=_0x3e9271(0x107),_0x236cca['None']=_0x3e9271(0x122),_0x236cca[_0x3e9271(0x11c)]='Custom',_0x236cca))(o||{});const c={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x3e9271(0x11b)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x3e9271(0x107)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x3e9271(0x122)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x3e9271(0x11c)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x3e9271(0x121),d='printing-canvas';function _0xe11d(_0x343ff0,_0x5cf990){const _0x5bfd8d=_0x5bfd();return _0xe11d=function(_0xe11dfb,_0x25c4e6){_0xe11dfb=_0xe11dfb-0x101;let _0x50302c=_0x5bfd8d[_0xe11dfb];return _0x50302c;},_0xe11d(_0x343ff0,_0x5cf990);}function g(_0x3c22bb,_0x2dc9f0,_0x547d2e){const _0x247586=_0x3e9271,_0x32807e=_0x547d2e===e[_0x247586(0x11d)]?_0x3c22bb:_0x2dc9f0,_0x141abe=_0x547d2e===e['Portrait']?_0x2dc9f0:_0x3c22bb,_0x5cc7c4=_0x247586(0x110)+d+_0x247586(0x102)+_0x32807e+'px\x20'+_0x141abe+'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.'+p+_0x247586(0x112)+p+_0x247586(0x10d)+d+_0x247586(0x104)+_0x141abe+_0x247586(0x11f)+_0x32807e+_0x247586(0x10a),_0x30fb0a=document[_0x247586(0x10f)]('style');return _0x30fb0a[_0x247586(0x118)]=_0x5cc7c4,_0x30fb0a[_0x247586(0x117)]=_0x247586(0x10c),_0x30fb0a;}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};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5bfd(){const _0x579280=['FitPage','printing-canvas-container','None','1055395wOcXZL','Middle','End','48IckILs','\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','Normal','\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','1770NQdngH','Landscape','Wide','1176KrJSkk','Start','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}','FitWidth','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.','25923227UGsIMe','createElement','\x0a\x20\x20\x20\x20.','19166EKdhYh',',\x20.','FitHeight','454851FOWukZ','12053540aRPwep','2082CtiRLM','className','innerHTML','12EqMtln','2298HjkAMB','Narrow','Custom','Portrait','4130hqFpYE','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'];_0x5bfd=function(){return _0x579280;};return _0x5bfd();}const _0x3e9271=_0xe11d;(function(_0x40700d,_0x1ae270){const _0x36fd66=_0xe11d,_0x4b206e=_0x40700d();while(!![]){try{const _0x25b748=-parseInt(_0x36fd66(0x123))/0x1+parseInt(_0x36fd66(0x11a))/0x2*(parseInt(_0x36fd66(0x116))/0x3)+parseInt(_0x36fd66(0x108))/0x4*(parseInt(_0x36fd66(0x11e))/0x5)+-parseInt(_0x36fd66(0x105))/0x6*(parseInt(_0x36fd66(0x111))/0x7)+parseInt(_0x36fd66(0x101))/0x8*(parseInt(_0x36fd66(0x114))/0x9)+-parseInt(_0x36fd66(0x115))/0xa+parseInt(_0x36fd66(0x10e))/0xb*(parseInt(_0x36fd66(0x119))/0xc);if(_0x25b748===_0x1ae270)break;else _0x4b206e['push'](_0x4b206e['shift']());}catch(_0x3f1351){_0x4b206e['push'](_0x4b206e['shift']());}}}(_0x5bfd,0x9a382));var e=(_0x6ad9e3=>(_0x6ad9e3[_0x3e9271(0x11d)]=_0x3e9271(0x11d),_0x6ad9e3['Landscape']=_0x3e9271(0x106),_0x6ad9e3))(e||{}),h=(_0x1db1e7=>(_0x1db1e7['Origin']='Origin',_0x1db1e7[_0x3e9271(0x10b)]='FitWidth',_0x1db1e7[_0x3e9271(0x113)]=_0x3e9271(0x113),_0x1db1e7[_0x3e9271(0x120)]='FitPage',_0x1db1e7[_0x3e9271(0x11c)]='Custom',_0x1db1e7))(h||{}),l=(_0x229638=>(_0x229638[_0x3e9271(0x109)]=_0x3e9271(0x109),_0x229638[_0x3e9271(0x125)]=_0x3e9271(0x125),_0x229638[_0x3e9271(0x124)]=_0x3e9271(0x124),_0x229638))(l||{}),o=(_0x236cca=>(_0x236cca[_0x3e9271(0x103)]=_0x3e9271(0x103),_0x236cca[_0x3e9271(0x11b)]=_0x3e9271(0x11b),_0x236cca['Wide']=_0x3e9271(0x107),_0x236cca['None']=_0x3e9271(0x122),_0x236cca[_0x3e9271(0x11c)]='Custom',_0x236cca))(o||{});const c={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x3e9271(0x11b)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x3e9271(0x107)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x3e9271(0x122)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x3e9271(0x11c)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x3e9271(0x121),d='printing-canvas';function _0xe11d(_0x343ff0,_0x5cf990){const _0x5bfd8d=_0x5bfd();return _0xe11d=function(_0xe11dfb,_0x25c4e6){_0xe11dfb=_0xe11dfb-0x101;let _0x50302c=_0x5bfd8d[_0xe11dfb];return _0x50302c;},_0xe11d(_0x343ff0,_0x5cf990);}function g(_0x3c22bb,_0x2dc9f0,_0x547d2e){const _0x247586=_0x3e9271,_0x32807e=_0x547d2e===e[_0x247586(0x11d)]?_0x3c22bb:_0x2dc9f0,_0x141abe=_0x547d2e===e['Portrait']?_0x2dc9f0:_0x3c22bb,_0x5cc7c4=_0x247586(0x110)+d+_0x247586(0x102)+_0x32807e+'px\x20'+_0x141abe+'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.'+p+_0x247586(0x112)+p+_0x247586(0x10d)+d+_0x247586(0x104)+_0x141abe+_0x247586(0x11f)+_0x32807e+_0x247586(0x10a),_0x30fb0a=document[_0x247586(0x10f)]('style');return _0x30fb0a[_0x247586(0x118)]=_0x5cc7c4,_0x30fb0a[_0x247586(0x117)]=_0x247586(0x10c),_0x30fb0a;}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};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2581a2,_0x5abecf){const _0x5af995=_0x2f13,_0x3ded3d=_0x2581a2();while(!![]){try{const _0x102c5d=-parseInt(_0x5af995(0xd7))/0x1+-parseInt(_0x5af995(0xb5))/0x2+parseInt(_0x5af995(0xd1))/0x3+parseInt(_0x5af995(0xc7))/0x4*(-parseInt(_0x5af995(0xb7))/0x5)+parseInt(_0x5af995(0xcf))/0x6*(parseInt(_0x5af995(0xc3))/0x7)+-parseInt(_0x5af995(0xab))/0x8*(-parseInt(_0x5af995(0xd5))/0x9)+parseInt(_0x5af995(0xd8))/0xa*(parseInt(_0x5af995(0xcc))/0xb);if(_0x102c5d===_0x5abecf)break;else _0x3ded3d['push'](_0x3ded3d['shift']());}catch(_0x32eeb2){_0x3ded3d['push'](_0x3ded3d['shift']());}}}(_0x11f7,0x399f8),function(_0x4c66bf,_0x347e4b){const _0xd53287=_0x2f13;typeof exports==_0xd53287(0xd3)&&typeof module<'u'?_0x347e4b(exports):typeof define==_0xd53287(0xca)&&define[_0xd53287(0xae)]?define(['exports'],_0x347e4b):(_0x4c66bf=typeof globalThis<'u'?globalThis:_0x4c66bf||self,_0x347e4b(_0x4c66bf[_0xd53287(0xcd)]={}));}(this,function(_0x5e91f7){'use strict';const _0x11a71f=_0x2f13;var _0x583429=(_0x3a79d0=>(_0x3a79d0[_0x11a71f(0xbc)]='Portrait',_0x3a79d0[_0x11a71f(0xb9)]=_0x11a71f(0xb9),_0x3a79d0))(_0x583429||{}),_0x4c0310=(_0x152a29=>(_0x152a29[_0x11a71f(0xba)]=_0x11a71f(0xba),_0x152a29[_0x11a71f(0xb3)]=_0x11a71f(0xb3),_0x152a29[_0x11a71f(0xb0)]=_0x11a71f(0xb0),_0x152a29['FitPage']='FitPage',_0x152a29[_0x11a71f(0xd2)]=_0x11a71f(0xd2),_0x152a29))(_0x4c0310||{}),_0x191bbf=(_0x1d1416=>(_0x1d1416[_0x11a71f(0xbf)]=_0x11a71f(0xbf),_0x1d1416[_0x11a71f(0xbe)]='End',_0x1d1416['Middle']=_0x11a71f(0xc5),_0x1d1416))(_0x191bbf||{}),_0x5cf023=(_0x1a796d=>(_0x1a796d[_0x11a71f(0xc8)]=_0x11a71f(0xc8),_0x1a796d[_0x11a71f(0xda)]=_0x11a71f(0xda),_0x1a796d[_0x11a71f(0xac)]=_0x11a71f(0xac),_0x1a796d[_0x11a71f(0xbd)]=_0x11a71f(0xbd),_0x1a796d[_0x11a71f(0xd2)]=_0x11a71f(0xd2),_0x1a796d))(_0x5cf023||{});const _0x4057db={[_0x5cf023[_0x11a71f(0xc8)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x5cf023[_0x11a71f(0xda)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x5cf023[_0x11a71f(0xac)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x5cf023[_0x11a71f(0xbd)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x5cf023[_0x11a71f(0xd2)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x3dd916=_0x11a71f(0xc4),_0x249df7=_0x11a71f(0xd9);function _0x526c43(_0x1bd3ff,_0x5370be,_0xbe6c64){const _0x177b27=_0x11a71f,_0x2708c3=_0xbe6c64===_0x583429[_0x177b27(0xbc)]?_0x1bd3ff:_0x5370be,_0x467d75=_0xbe6c64===_0x583429[_0x177b27(0xbc)]?_0x5370be:_0x1bd3ff,_0x25079a=_0x177b27(0xc2)+_0x249df7+_0x177b27(0xd4)+_0x2708c3+'px\x20'+_0x467d75+_0x177b27(0xb1)+_0x3dd916+_0x177b27(0xb2)+_0x3dd916+_0x177b27(0xb4)+_0x249df7+_0x177b27(0xc9)+_0x467d75+_0x177b27(0xad)+_0x2708c3+_0x177b27(0xaf),_0x4199b2=document['createElement']('style');return _0x4199b2[_0x177b27(0xc0)]=_0x25079a,_0x4199b2[_0x177b27(0xb6)]=_0x177b27(0xd0),_0x4199b2;}_0x5e91f7[_0x11a71f(0xc1)]=_0x249df7,_0x5e91f7[_0x11a71f(0xc6)]=_0x3dd916,_0x5e91f7[_0x11a71f(0xce)]=_0x4057db,_0x5e91f7['PrintAlign']=_0x191bbf,_0x5e91f7[_0x11a71f(0xb8)]=_0x583429,_0x5e91f7[_0x11a71f(0xd6)]=_0x5cf023,_0x5e91f7['PrintScale']=_0x4c0310,_0x5e91f7['createPrintStyle']=_0x526c43,Object[_0x11a71f(0xbb)](_0x5e91f7,Symbol[_0x11a71f(0xcb)],{'value':'Module'});}));function _0x2f13(_0x595213,_0x3f144e){const _0x11f7be=_0x11f7();return _0x2f13=function(_0x2f13a2,_0x3c39bb){_0x2f13a2=_0x2f13a2-0xab;let _0x39fea6=_0x11f7be[_0x2f13a2];return _0x39fea6;},_0x2f13(_0x595213,_0x3f144e);}function _0x11f7(){const _0x3eccb5=['Narrow','16bRgxZG','Wide','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','amd','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}','FitHeight','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.',',\x20.','FitWidth','\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.','435592mCwTaN','className','25790hoBBcu','PrintDirection','Landscape','Origin','defineProperty','Portrait','None','End','Start','innerHTML','PRINT_CANVAS_CLASS','\x0a\x20\x20\x20\x20.','217oESGBz','printing-canvas-container','Middle','PRINT_CONTAINER_CLASS','352AkUnnl','Normal','\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','toStringTag','11RqpqCg','UniverProPrint','PaperMarginMap','74706cqxYMQ','offline-printing-css','866076CXsetw','Custom','object','\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','1990467Iulxzz','PrintPaperMargin','291863qIaeKa','825880wlureD','printing-canvas'];_0x11f7=function(){return _0x3eccb5;};return _0x11f7();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0-nightly.202511220628",
|
|
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.
|
|
46
|
+
"vite": "^7.2.2",
|
|
47
47
|
"vitest": "^3.2.4",
|
|
48
|
-
"@univerjs-infra/shared": "0.
|
|
48
|
+
"@univerjs-infra/shared": "0.12.0"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|