@univerjs-pro/print 0.10.7 → 0.10.8-nightly.202509200616
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/types/common/types.d.ts +2 -1
- package/lib/umd/index.js +1 -1
- package/package.json +2 -2
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x200728=_0x1db3;(function(_0x4b2970,_0x20c971){const _0x4f492c=_0x1db3,_0x1d7d3b=_0x4b2970();while(!![]){try{const _0x17b32d=-parseInt(_0x4f492c(0x143))/0x1*(parseInt(_0x4f492c(0x15b))/0x2)+-parseInt(_0x4f492c(0x14f))/0x3+parseInt(_0x4f492c(0x142))/0x4+parseInt(_0x4f492c(0x154))/0x5+-parseInt(_0x4f492c(0x152))/0x6+-parseInt(_0x4f492c(0x15d))/0x7+parseInt(_0x4f492c(0x141))/0x8*(parseInt(_0x4f492c(0x13b))/0x9);if(_0x17b32d===_0x20c971)break;else _0x1d7d3b['push'](_0x1d7d3b['shift']());}catch(_0x2f0292){_0x1d7d3b['push'](_0x1d7d3b['shift']());}}}(_0x11b4,0x8bcf1));Object[_0x200728(0x162)](exports,Symbol[_0x200728(0x140)],{'value':'Module'});var i=(_0x3cd99b=>(_0x3cd99b['Portrait']=_0x200728(0x14c),_0x3cd99b[_0x200728(0x13c)]=_0x200728(0x13c),_0x3cd99b))(i||{}),l=(_0x410ba7=>(_0x410ba7[_0x200728(0x15f)]=_0x200728(0x15f),_0x410ba7[_0x200728(0x156)]='FitWidth',_0x410ba7[_0x200728(0x160)]='FitHeight',_0x410ba7[_0x200728(0x15e)]=_0x200728(0x15e),_0x410ba7['Custom']=_0x200728(0x15a),_0x410ba7))(l||{}),m=(_0xf05813=>(_0xf05813[_0x200728(0x14d)]=_0x200728(0x14d),_0xf05813[_0x200728(0x153)]=_0x200728(0x153),_0xf05813[_0x200728(0x13a)]=_0x200728(0x13a),_0xf05813))(m||{}),o=(_0x382af5=>(_0x382af5[_0x200728(0x13f)]='Normal',_0x382af5['Narrow']='Narrow',_0x382af5['Wide']=_0x200728(0x147),_0x382af5[_0x200728(0x157)]=_0x200728(0x157),_0x382af5['Custom']=_0x200728(0x15a),_0x382af5))(o||{});const g={[o[_0x200728(0x13f)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x200728(0x157)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x200728(0x15a)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x200728(0x148),n=_0x200728(0x13d);function _0x1db3(_0x2697ac,_0x6997b5){const _0x11b412=_0x11b4();return _0x1db3=function(_0x1db3fc,_0x2f569b){_0x1db3fc=_0x1db3fc-0x139;let _0x42034b=_0x11b412[_0x1db3fc];return _0x42034b;},_0x1db3(_0x2697ac,_0x6997b5);}function h(_0x4259bc,_0x31c72f,_0x4214af){const _0x5dfb10=_0x200728,_0x2d3c80=_0x4214af===i[_0x5dfb10(0x14c)]?_0x4259bc:_0x31c72f,_0x1feb46=_0x4214af===i['Portrait']?_0x31c72f:_0x4259bc,_0x5369f2=_0x5dfb10(0x161)+n+_0x5dfb10(0x13e)+_0x2d3c80+_0x5dfb10(0x159)+_0x1feb46+_0x5dfb10(0x146)+r+',\x20.'+r+_0x5dfb10(0x151)+n+_0x5dfb10(0x14e)+_0x1feb46+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x2d3c80+_0x5dfb10(0x14a),_0x2572d=document['createElement'](_0x5dfb10(0x150));return _0x2572d[_0x5dfb10(0x14b)]=_0x5369f2,_0x2572d[_0x5dfb10(0x149)]=_0x5dfb10(0x15c),_0x2572d;}exports['PRINT_CANVAS_CLASS']=n,exports[_0x200728(0x139)]=r,exports['PaperMarginMap']=g,exports[_0x200728(0x145)]=m,exports[_0x200728(0x158)]=i,exports[_0x200728(0x144)]=o,exports[_0x200728(0x155)]=l,exports['createPrintStyle']=h;function _0x11b4(){const _0x41beb9=['\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','2035296vvEumb','style','\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.','3544566AAjqMO','End','4740615GcmCbx','PrintScale','FitWidth','None','PrintDirection','px\x20','Custom','212KimSUS','offline-printing-css','6455260XTDYeJ','FitPage','Origin','FitHeight','\x0a\x20\x20\x20\x20.','defineProperty','PRINT_CONTAINER_CLASS','Middle','17523iAfkjt','Landscape','printing-canvas','\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','toStringTag','8880DuduVe','2986572SEvPva','10301akXlNQ','PrintPaperMargin','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.','Wide','printing-canvas-container','className','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}','innerHTML','Portrait','Start'];_0x11b4=function(){return _0x41beb9;};return _0x11b4();}
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x54f8a2=_0x55e8;function _0x55e8(_0xf30570,_0x137c07){const _0x591a09=_0x591a();return _0x55e8=function(_0x55e84b,_0x1d3f49){_0x55e84b=_0x55e84b-0x167;let _0x2d4650=_0x591a09[_0x55e84b];return _0x2d4650;},_0x55e8(_0xf30570,_0x137c07);}(function(_0x32a456,_0x2837b7){const _0x23405d=_0x55e8,_0x1627a3=_0x32a456();while(!![]){try{const _0x5a8f64=parseInt(_0x23405d(0x17f))/0x1+-parseInt(_0x23405d(0x16f))/0x2+-parseInt(_0x23405d(0x188))/0x3*(-parseInt(_0x23405d(0x173))/0x4)+parseInt(_0x23405d(0x171))/0x5*(parseInt(_0x23405d(0x185))/0x6)+-parseInt(_0x23405d(0x16c))/0x7+-parseInt(_0x23405d(0x17c))/0x8*(-parseInt(_0x23405d(0x168))/0x9)+parseInt(_0x23405d(0x179))/0xa;if(_0x5a8f64===_0x2837b7)break;else _0x1627a3['push'](_0x1627a3['shift']());}catch(_0x5f09c2){_0x1627a3['push'](_0x1627a3['shift']());}}}(_0x591a,0xc8b74));var e=(_0x203001=>(_0x203001['Portrait']=_0x54f8a2(0x183),_0x203001['Landscape']=_0x54f8a2(0x170),_0x203001))(e||{}),h=(_0x4cd96c=>(_0x4cd96c[_0x54f8a2(0x17d)]='Origin',_0x4cd96c['FitWidth']=_0x54f8a2(0x169),_0x4cd96c['FitHeight']=_0x54f8a2(0x17a),_0x4cd96c[_0x54f8a2(0x167)]=_0x54f8a2(0x167),_0x4cd96c[_0x54f8a2(0x182)]=_0x54f8a2(0x182),_0x4cd96c))(h||{}),l=(_0x436d00=>(_0x436d00['Start']=_0x54f8a2(0x181),_0x436d00[_0x54f8a2(0x187)]=_0x54f8a2(0x187),_0x436d00[_0x54f8a2(0x16b)]=_0x54f8a2(0x16b),_0x436d00))(l||{}),o=(_0x58059e=>(_0x58059e[_0x54f8a2(0x16d)]=_0x54f8a2(0x16d),_0x58059e['Narrow']='Narrow',_0x58059e[_0x54f8a2(0x180)]=_0x54f8a2(0x180),_0x58059e[_0x54f8a2(0x17e)]=_0x54f8a2(0x17e),_0x58059e[_0x54f8a2(0x182)]=_0x54f8a2(0x182),_0x58059e))(o||{});function _0x591a(){const _0x39ce4d=['offline-printing-css','className','\x0a\x20\x20\x20\x20.','createElement','3641590vdiorp','FitHeight','printing-canvas-container','8VgrqRr','Origin','None','170309VCVBWA','Wide','Start','Custom','Portrait','Narrow','38958jitYYN','px\x20','End','3wrdOvO','\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','FitPage','14188203tvvzif','FitWidth','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Middle','10409476ljYdNY','Normal','printing-canvas','2221412DxIuHs','Landscape','470rPMWah',',\x20.','2794516AYrEfD','innerHTML'];_0x591a=function(){return _0x39ce4d;};return _0x591a();}const c={[o[_0x54f8a2(0x16d)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x54f8a2(0x184)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x54f8a2(0x180)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x54f8a2(0x17e)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x54f8a2(0x182)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x54f8a2(0x17b),d=_0x54f8a2(0x16e);function g(_0x107def,_0x2322cc,_0x15063f){const _0x316f7a=_0x54f8a2,_0x42fab1=_0x15063f===e['Portrait']?_0x107def:_0x2322cc,_0x69d94c=_0x15063f===e[_0x316f7a(0x183)]?_0x2322cc:_0x107def,_0xdc411=_0x316f7a(0x177)+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'+_0x42fab1+_0x316f7a(0x186)+_0x69d94c+'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+_0x316f7a(0x172)+p+'\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.'+d+_0x316f7a(0x189)+_0x69d94c+_0x316f7a(0x16a)+_0x42fab1+'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}',_0xeccd1a=document[_0x316f7a(0x178)]('style');return _0xeccd1a[_0x316f7a(0x174)]=_0xdc411,_0xeccd1a[_0x316f7a(0x176)]=_0x316f7a(0x175),_0xeccd1a;}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
|
+
const _0x54f8a2=_0x55e8;function _0x55e8(_0xf30570,_0x137c07){const _0x591a09=_0x591a();return _0x55e8=function(_0x55e84b,_0x1d3f49){_0x55e84b=_0x55e84b-0x167;let _0x2d4650=_0x591a09[_0x55e84b];return _0x2d4650;},_0x55e8(_0xf30570,_0x137c07);}(function(_0x32a456,_0x2837b7){const _0x23405d=_0x55e8,_0x1627a3=_0x32a456();while(!![]){try{const _0x5a8f64=parseInt(_0x23405d(0x17f))/0x1+-parseInt(_0x23405d(0x16f))/0x2+-parseInt(_0x23405d(0x188))/0x3*(-parseInt(_0x23405d(0x173))/0x4)+parseInt(_0x23405d(0x171))/0x5*(parseInt(_0x23405d(0x185))/0x6)+-parseInt(_0x23405d(0x16c))/0x7+-parseInt(_0x23405d(0x17c))/0x8*(-parseInt(_0x23405d(0x168))/0x9)+parseInt(_0x23405d(0x179))/0xa;if(_0x5a8f64===_0x2837b7)break;else _0x1627a3['push'](_0x1627a3['shift']());}catch(_0x5f09c2){_0x1627a3['push'](_0x1627a3['shift']());}}}(_0x591a,0xc8b74));var e=(_0x203001=>(_0x203001['Portrait']=_0x54f8a2(0x183),_0x203001['Landscape']=_0x54f8a2(0x170),_0x203001))(e||{}),h=(_0x4cd96c=>(_0x4cd96c[_0x54f8a2(0x17d)]='Origin',_0x4cd96c['FitWidth']=_0x54f8a2(0x169),_0x4cd96c['FitHeight']=_0x54f8a2(0x17a),_0x4cd96c[_0x54f8a2(0x167)]=_0x54f8a2(0x167),_0x4cd96c[_0x54f8a2(0x182)]=_0x54f8a2(0x182),_0x4cd96c))(h||{}),l=(_0x436d00=>(_0x436d00['Start']=_0x54f8a2(0x181),_0x436d00[_0x54f8a2(0x187)]=_0x54f8a2(0x187),_0x436d00[_0x54f8a2(0x16b)]=_0x54f8a2(0x16b),_0x436d00))(l||{}),o=(_0x58059e=>(_0x58059e[_0x54f8a2(0x16d)]=_0x54f8a2(0x16d),_0x58059e['Narrow']='Narrow',_0x58059e[_0x54f8a2(0x180)]=_0x54f8a2(0x180),_0x58059e[_0x54f8a2(0x17e)]=_0x54f8a2(0x17e),_0x58059e[_0x54f8a2(0x182)]=_0x54f8a2(0x182),_0x58059e))(o||{});function _0x591a(){const _0x39ce4d=['offline-printing-css','className','\x0a\x20\x20\x20\x20.','createElement','3641590vdiorp','FitHeight','printing-canvas-container','8VgrqRr','Origin','None','170309VCVBWA','Wide','Start','Custom','Portrait','Narrow','38958jitYYN','px\x20','End','3wrdOvO','\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','FitPage','14188203tvvzif','FitWidth','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Middle','10409476ljYdNY','Normal','printing-canvas','2221412DxIuHs','Landscape','470rPMWah',',\x20.','2794516AYrEfD','innerHTML'];_0x591a=function(){return _0x39ce4d;};return _0x591a();}const c={[o[_0x54f8a2(0x16d)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x54f8a2(0x184)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x54f8a2(0x180)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x54f8a2(0x17e)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x54f8a2(0x182)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x54f8a2(0x17b),d=_0x54f8a2(0x16e);function g(_0x107def,_0x2322cc,_0x15063f){const _0x316f7a=_0x54f8a2,_0x42fab1=_0x15063f===e['Portrait']?_0x107def:_0x2322cc,_0x69d94c=_0x15063f===e[_0x316f7a(0x183)]?_0x2322cc:_0x107def,_0xdc411=_0x316f7a(0x177)+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'+_0x42fab1+_0x316f7a(0x186)+_0x69d94c+'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+_0x316f7a(0x172)+p+'\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.'+d+_0x316f7a(0x189)+_0x69d94c+_0x316f7a(0x16a)+_0x42fab1+'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}',_0xeccd1a=document[_0x316f7a(0x178)]('style');return _0xeccd1a[_0x316f7a(0x174)]=_0xdc411,_0xeccd1a[_0x316f7a(0x176)]=_0x316f7a(0x175),_0xeccd1a;}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
|
-
function
|
|
1
|
+
function _0x29ba(_0x52b5fe,_0x20eb80){const _0x344122=_0x3441();return _0x29ba=function(_0x29baa7,_0x2299a7){_0x29baa7=_0x29baa7-0x1e3;let _0x21877d=_0x344122[_0x29baa7];return _0x21877d;},_0x29ba(_0x52b5fe,_0x20eb80);}(function(_0x17563d,_0x463305){const _0x48517f=_0x29ba,_0x277ff5=_0x17563d();while(!![]){try{const _0x229c1f=parseInt(_0x48517f(0x1f4))/0x1+-parseInt(_0x48517f(0x1f7))/0x2+parseInt(_0x48517f(0x20c))/0x3*(-parseInt(_0x48517f(0x201))/0x4)+parseInt(_0x48517f(0x1fa))/0x5+parseInt(_0x48517f(0x1e6))/0x6*(-parseInt(_0x48517f(0x1f3))/0x7)+-parseInt(_0x48517f(0x1e3))/0x8+parseInt(_0x48517f(0x1f1))/0x9*(parseInt(_0x48517f(0x1ed))/0xa);if(_0x229c1f===_0x463305)break;else _0x277ff5['push'](_0x277ff5['shift']());}catch(_0x1fcaff){_0x277ff5['push'](_0x277ff5['shift']());}}}(_0x3441,0xdf72c),function(_0x3c181f,_0x56033b){const _0x58079e=_0x29ba;typeof exports=='object'&&typeof module<'u'?_0x56033b(exports):typeof define==_0x58079e(0x20d)&&define[_0x58079e(0x20f)]?define(['exports'],_0x56033b):(_0x3c181f=typeof globalThis<'u'?globalThis:_0x3c181f||self,_0x56033b(_0x3c181f['UniverProPrint']={}));}(this,function(_0x110c00){'use strict';const _0x17942d=_0x29ba;var _0x194d45=(_0x36f5bb=>(_0x36f5bb['Portrait']=_0x17942d(0x1fc),_0x36f5bb[_0x17942d(0x207)]=_0x17942d(0x207),_0x36f5bb))(_0x194d45||{}),_0x46b6d0=(_0x4dc1c0=>(_0x4dc1c0[_0x17942d(0x205)]=_0x17942d(0x205),_0x4dc1c0[_0x17942d(0x1ff)]=_0x17942d(0x1ff),_0x4dc1c0[_0x17942d(0x209)]='FitHeight',_0x4dc1c0[_0x17942d(0x204)]='FitPage',_0x4dc1c0['Custom']='Custom',_0x4dc1c0))(_0x46b6d0||{}),_0x4e158e=(_0x46a468=>(_0x46a468[_0x17942d(0x1f6)]=_0x17942d(0x1f6),_0x46a468[_0x17942d(0x1fe)]=_0x17942d(0x1fe),_0x46a468[_0x17942d(0x1ef)]=_0x17942d(0x1ef),_0x46a468))(_0x4e158e||{}),_0x4a35dd=(_0x539aed=>(_0x539aed[_0x17942d(0x20e)]=_0x17942d(0x20e),_0x539aed[_0x17942d(0x20b)]='Narrow',_0x539aed[_0x17942d(0x1fd)]='Wide',_0x539aed['None']='None',_0x539aed[_0x17942d(0x1f5)]='Custom',_0x539aed))(_0x4a35dd||{});const _0x3e429e={[_0x4a35dd[_0x17942d(0x20e)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x4a35dd[_0x17942d(0x20b)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x4a35dd[_0x17942d(0x1fd)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x4a35dd[_0x17942d(0x206)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x4a35dd[_0x17942d(0x1f5)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x220995=_0x17942d(0x1e5),_0x307c1e=_0x17942d(0x208);function _0x1bac1c(_0x35f90f,_0x4afcba,_0x391460){const _0x131ae5=_0x17942d,_0x4e72e1=_0x391460===_0x194d45[_0x131ae5(0x1fc)]?_0x35f90f:_0x4afcba,_0x5a52e5=_0x391460===_0x194d45[_0x131ae5(0x1fc)]?_0x4afcba:_0x35f90f,_0x2c684a=_0x131ae5(0x1e4)+_0x307c1e+'\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'+_0x4e72e1+_0x131ae5(0x1eb)+_0x5a52e5+_0x131ae5(0x1ec)+_0x220995+_0x131ae5(0x1fb)+_0x220995+_0x131ae5(0x1ee)+_0x307c1e+_0x131ae5(0x213)+_0x5a52e5+_0x131ae5(0x212)+_0x4e72e1+_0x131ae5(0x1f2),_0x271cfc=document[_0x131ae5(0x1f0)](_0x131ae5(0x1e7));return _0x271cfc[_0x131ae5(0x211)]=_0x2c684a,_0x271cfc[_0x131ae5(0x202)]=_0x131ae5(0x20a),_0x271cfc;}_0x110c00['PRINT_CANVAS_CLASS']=_0x307c1e,_0x110c00[_0x17942d(0x1ea)]=_0x220995,_0x110c00[_0x17942d(0x203)]=_0x3e429e,_0x110c00[_0x17942d(0x1f8)]=_0x4e158e,_0x110c00[_0x17942d(0x1e8)]=_0x194d45,_0x110c00[_0x17942d(0x1e9)]=_0x4a35dd,_0x110c00[_0x17942d(0x210)]=_0x46b6d0,_0x110c00['createPrintStyle']=_0x1bac1c,Object['defineProperty'](_0x110c00,Symbol[_0x17942d(0x1f9)],{'value':_0x17942d(0x200)});}));function _0x3441(){const _0x3c70c2=['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.','3999760dBGtdY','\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.','Middle','createElement','36OziAzz','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}','187894NjTawb','1469092jpGZBR','Custom','Start','1128508dHLQcm','PrintAlign','toStringTag','4509450FbOhZs',',\x20.','Portrait','Wide','End','FitWidth','Module','4YZZnFn','className','PaperMarginMap','FitPage','Origin','None','Landscape','printing-canvas','FitHeight','offline-printing-css','Narrow','2887392ZTdgOD','function','Normal','amd','PrintScale','innerHTML','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','\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','11157712OBpeEy','\x0a\x20\x20\x20\x20.','printing-canvas-container','30okhzBF','style','PrintDirection','PrintPaperMargin','PRINT_CONTAINER_CLASS','px\x20'];_0x3441=function(){return _0x3c70c2;};return _0x3441();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.8-nightly.202509200616",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Print module for UniverJS",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"typescript": "^5.9.2",
|
|
46
46
|
"vite": "^7.1.3",
|
|
47
47
|
"vitest": "^3.2.4",
|
|
48
|
-
"@univerjs-infra/shared": "0.10.
|
|
48
|
+
"@univerjs-infra/shared": "0.10.8"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|