@univerjs-pro/print 0.12.3 → 0.12.4-experimental.20251210-8d33c6e
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 +4 -4
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x468451=_0x427e;(function(_0x22fa63,_0x3b4542){const _0x898ec7=_0x427e,_0x117912=_0x22fa63();while(!![]){try{const _0x42e516=parseInt(_0x898ec7(0x160))/0x1+-parseInt(_0x898ec7(0x15e))/0x2*(-parseInt(_0x898ec7(0x15a))/0x3)+parseInt(_0x898ec7(0x15d))/0x4*(-parseInt(_0x898ec7(0x158))/0x5)+-parseInt(_0x898ec7(0x14d))/0x6*(parseInt(_0x898ec7(0x140))/0x7)+-parseInt(_0x898ec7(0x139))/0x8+-parseInt(_0x898ec7(0x154))/0x9+parseInt(_0x898ec7(0x145))/0xa;if(_0x42e516===_0x3b4542)break;else _0x117912['push'](_0x117912['shift']());}catch(_0x521e83){_0x117912['push'](_0x117912['shift']());}}}(_0x2d86,0xc626e));function _0x2d86(){const _0x13828e=['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}','1409801uQwqpH','Narrow','\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.','12051304TCFQyK','None','Landscape','printing-canvas','Portrait','Module','PrintDirection','306649STOfZp','\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','Middle','\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','FitHeight','1037960YbcbiL','FitPage','offline-printing-css','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Normal','innerHTML','PrintAlign','PrintPaperMargin','24zOcCRZ','FitWidth','defineProperty','Origin','PaperMarginMap','createPrintStyle','PrintScale','3583665PbNQTa','End','\x0a\x20\x20\x20\x20.','Wide','142645dUhivh','Custom','391341yXUnJD','px\x20','Start','8moXamk','22uyXBMG'];_0x2d86=function(){return _0x13828e;};return _0x2d86();}Object[_0x468451(0x14f)](exports,Symbol['toStringTag'],{'value':_0x468451(0x13e)});var i=(_0x27940b=>(_0x27940b[_0x468451(0x13d)]=_0x468451(0x13d),_0x27940b[_0x468451(0x13b)]=_0x468451(0x13b),_0x27940b))(i||{}),l=(_0x4e07c1=>(_0x4e07c1[_0x468451(0x150)]=_0x468451(0x150),_0x4e07c1[_0x468451(0x14e)]='FitWidth',_0x4e07c1[_0x468451(0x144)]=_0x468451(0x144),_0x4e07c1[_0x468451(0x146)]='FitPage',_0x4e07c1['Custom']='Custom',_0x4e07c1))(l||{}),m=(_0x1bbcb2=>(_0x1bbcb2[_0x468451(0x15c)]='Start',_0x1bbcb2[_0x468451(0x155)]=_0x468451(0x155),_0x1bbcb2['Middle']=_0x468451(0x142),_0x1bbcb2))(m||{}),o=(_0xfffd90=>(_0xfffd90[_0x468451(0x149)]=_0x468451(0x149),_0xfffd90[_0x468451(0x161)]=_0x468451(0x161),_0xfffd90[_0x468451(0x157)]=_0x468451(0x157),_0xfffd90[_0x468451(0x13a)]=_0x468451(0x13a),_0xfffd90[_0x468451(0x159)]=_0x468451(0x159),_0xfffd90))(o||{});const g={[o[_0x468451(0x149)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x468451(0x161)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x468451(0x157)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x468451(0x13a)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x468451(0x159)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r='printing-canvas-container',n=_0x468451(0x13c);function _0x427e(_0x12cbd4,_0x38af94){_0x12cbd4=_0x12cbd4-0x138;const _0x2d869c=_0x2d86();let _0x427ee5=_0x2d869c[_0x12cbd4];return _0x427ee5;}function h(_0x283f12,_0x196fa5,_0x2926ed){const _0x5eb6e2=_0x468451,_0x1ba3db=_0x2926ed===i[_0x5eb6e2(0x13d)]?_0x283f12:_0x196fa5,_0x3ffc9e=_0x2926ed===i[_0x5eb6e2(0x13d)]?_0x196fa5:_0x283f12,_0x560a35=_0x5eb6e2(0x156)+n+_0x5eb6e2(0x141)+_0x1ba3db+_0x5eb6e2(0x15b)+_0x3ffc9e+'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+_0x5eb6e2(0x138)+n+_0x5eb6e2(0x143)+_0x3ffc9e+_0x5eb6e2(0x148)+_0x1ba3db+_0x5eb6e2(0x15f),_0x2f058a=document['createElement']('style');return _0x2f058a[_0x5eb6e2(0x14a)]=_0x560a35,_0x2f058a['className']=_0x5eb6e2(0x147),_0x2f058a;}exports['PRINT_CANVAS_CLASS']=n,exports['PRINT_CONTAINER_CLASS']=r,exports[_0x468451(0x151)]=g,exports[_0x468451(0x14b)]=m,exports[_0x468451(0x13f)]=i,exports[_0x468451(0x14c)]=o,exports[_0x468451(0x153)]=l,exports[_0x468451(0x152)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x321184=_0x57c8;function _0x1e62(){const _0x388e66=['\x0a\x20\x20\x20\x20.','4647775KxsIyv','24iRkgIF','None','Portrait','211680GbDSMV','70343OhTzzk','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','4xhwCeK','FitWidth','printing-canvas','Custom','px\x20','431829pkNKCA','Landscape','\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.','7368XYYTpu','Narrow','12jiCOjy','989142AbHTzb','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{\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','createElement','Wide','FitPage','Start','\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','End','Origin','offline-printing-css','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}','Normal','10gKLaWi',',\x20.','style','innerHTML','942685cYNCaG'];_0x1e62=function(){return _0x388e66;};return _0x1e62();}(function(_0x20ccb6,_0x330530){const _0x511242=_0x57c8,_0x51c8b6=_0x20ccb6();while(!![]){try{const _0x2bfa8c=-parseInt(_0x511242(0x11e))/0x1+-parseInt(_0x511242(0x12a))/0x2*(parseInt(_0x511242(0x128))/0x3)+parseInt(_0x511242(0x120))/0x4*(-parseInt(_0x511242(0x117))/0x5)+-parseInt(_0x511242(0x11d))/0x6+parseInt(_0x511242(0x12b))/0x7+-parseInt(_0x511242(0x11a))/0x8*(parseInt(_0x511242(0x125))/0x9)+parseInt(_0x511242(0x113))/0xa*(parseInt(_0x511242(0x119))/0xb);if(_0x2bfa8c===_0x330530)break;else _0x51c8b6['push'](_0x51c8b6['shift']());}catch(_0x203e1c){_0x51c8b6['push'](_0x51c8b6['shift']());}}}(_0x1e62,0x1b190));function _0x57c8(_0x70fac,_0x58606c){_0x70fac=_0x70fac-0x113;const _0x1e62f0=_0x1e62();let _0x57c8ac=_0x1e62f0[_0x70fac];return _0x57c8ac;}var e=(_0x5c1722=>(_0x5c1722['Portrait']=_0x321184(0x11c),_0x5c1722[_0x321184(0x126)]=_0x321184(0x126),_0x5c1722))(e||{}),h=(_0x5078f0=>(_0x5078f0[_0x321184(0x135)]=_0x321184(0x135),_0x5078f0[_0x321184(0x121)]='FitWidth',_0x5078f0[_0x321184(0x12c)]=_0x321184(0x12c),_0x5078f0['FitPage']=_0x321184(0x131),_0x5078f0['Custom']='Custom',_0x5078f0))(h||{}),l=(_0x15578b=>(_0x15578b[_0x321184(0x132)]=_0x321184(0x132),_0x15578b['End']=_0x321184(0x134),_0x15578b['Middle']='Middle',_0x15578b))(l||{}),o=(_0x7cddf4=>(_0x7cddf4[_0x321184(0x138)]=_0x321184(0x138),_0x7cddf4[_0x321184(0x129)]=_0x321184(0x129),_0x7cddf4[_0x321184(0x130)]='Wide',_0x7cddf4[_0x321184(0x11b)]=_0x321184(0x11b),_0x7cddf4[_0x321184(0x123)]=_0x321184(0x123),_0x7cddf4))(o||{});const c={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x321184(0x129)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x321184(0x11b)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x321184(0x123)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p='printing-canvas-container',d=_0x321184(0x122);function g(_0x4801e1,_0x1d1c5d,_0x184f19){const _0x59198e=_0x321184,_0x326f01=_0x184f19===e[_0x59198e(0x11c)]?_0x4801e1:_0x1d1c5d,_0x375523=_0x184f19===e[_0x59198e(0x11c)]?_0x1d1c5d:_0x4801e1,_0x48f880=_0x59198e(0x118)+d+_0x59198e(0x12e)+_0x326f01+_0x59198e(0x124)+_0x375523+_0x59198e(0x12d)+p+_0x59198e(0x114)+p+_0x59198e(0x127)+d+_0x59198e(0x133)+_0x375523+_0x59198e(0x11f)+_0x326f01+_0x59198e(0x137),_0x4aac41=document[_0x59198e(0x12f)](_0x59198e(0x115));return _0x4aac41[_0x59198e(0x116)]=_0x48f880,_0x4aac41['className']=_0x59198e(0x136),_0x4aac41;}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
|
-
const
|
|
1
|
+
const _0x321184=_0x57c8;function _0x1e62(){const _0x388e66=['\x0a\x20\x20\x20\x20.','4647775KxsIyv','24iRkgIF','None','Portrait','211680GbDSMV','70343OhTzzk','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','4xhwCeK','FitWidth','printing-canvas','Custom','px\x20','431829pkNKCA','Landscape','\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.','7368XYYTpu','Narrow','12jiCOjy','989142AbHTzb','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{\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','createElement','Wide','FitPage','Start','\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','End','Origin','offline-printing-css','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}','Normal','10gKLaWi',',\x20.','style','innerHTML','942685cYNCaG'];_0x1e62=function(){return _0x388e66;};return _0x1e62();}(function(_0x20ccb6,_0x330530){const _0x511242=_0x57c8,_0x51c8b6=_0x20ccb6();while(!![]){try{const _0x2bfa8c=-parseInt(_0x511242(0x11e))/0x1+-parseInt(_0x511242(0x12a))/0x2*(parseInt(_0x511242(0x128))/0x3)+parseInt(_0x511242(0x120))/0x4*(-parseInt(_0x511242(0x117))/0x5)+-parseInt(_0x511242(0x11d))/0x6+parseInt(_0x511242(0x12b))/0x7+-parseInt(_0x511242(0x11a))/0x8*(parseInt(_0x511242(0x125))/0x9)+parseInt(_0x511242(0x113))/0xa*(parseInt(_0x511242(0x119))/0xb);if(_0x2bfa8c===_0x330530)break;else _0x51c8b6['push'](_0x51c8b6['shift']());}catch(_0x203e1c){_0x51c8b6['push'](_0x51c8b6['shift']());}}}(_0x1e62,0x1b190));function _0x57c8(_0x70fac,_0x58606c){_0x70fac=_0x70fac-0x113;const _0x1e62f0=_0x1e62();let _0x57c8ac=_0x1e62f0[_0x70fac];return _0x57c8ac;}var e=(_0x5c1722=>(_0x5c1722['Portrait']=_0x321184(0x11c),_0x5c1722[_0x321184(0x126)]=_0x321184(0x126),_0x5c1722))(e||{}),h=(_0x5078f0=>(_0x5078f0[_0x321184(0x135)]=_0x321184(0x135),_0x5078f0[_0x321184(0x121)]='FitWidth',_0x5078f0[_0x321184(0x12c)]=_0x321184(0x12c),_0x5078f0['FitPage']=_0x321184(0x131),_0x5078f0['Custom']='Custom',_0x5078f0))(h||{}),l=(_0x15578b=>(_0x15578b[_0x321184(0x132)]=_0x321184(0x132),_0x15578b['End']=_0x321184(0x134),_0x15578b['Middle']='Middle',_0x15578b))(l||{}),o=(_0x7cddf4=>(_0x7cddf4[_0x321184(0x138)]=_0x321184(0x138),_0x7cddf4[_0x321184(0x129)]=_0x321184(0x129),_0x7cddf4[_0x321184(0x130)]='Wide',_0x7cddf4[_0x321184(0x11b)]=_0x321184(0x11b),_0x7cddf4[_0x321184(0x123)]=_0x321184(0x123),_0x7cddf4))(o||{});const c={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x321184(0x129)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x321184(0x11b)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x321184(0x123)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p='printing-canvas-container',d=_0x321184(0x122);function g(_0x4801e1,_0x1d1c5d,_0x184f19){const _0x59198e=_0x321184,_0x326f01=_0x184f19===e[_0x59198e(0x11c)]?_0x4801e1:_0x1d1c5d,_0x375523=_0x184f19===e[_0x59198e(0x11c)]?_0x1d1c5d:_0x4801e1,_0x48f880=_0x59198e(0x118)+d+_0x59198e(0x12e)+_0x326f01+_0x59198e(0x124)+_0x375523+_0x59198e(0x12d)+p+_0x59198e(0x114)+p+_0x59198e(0x127)+d+_0x59198e(0x133)+_0x375523+_0x59198e(0x11f)+_0x326f01+_0x59198e(0x137),_0x4aac41=document[_0x59198e(0x12f)](_0x59198e(0x115));return _0x4aac41[_0x59198e(0x116)]=_0x48f880,_0x4aac41['className']=_0x59198e(0x136),_0x4aac41;}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(_0x33080d,_0x40f0ec){const _0x8dafbd=_0x5864,_0x14926f=_0x33080d();while(!![]){try{const _0x1889d8=parseInt(_0x8dafbd(0x123))/0x1+parseInt(_0x8dafbd(0x103))/0x2+parseInt(_0x8dafbd(0x116))/0x3*(-parseInt(_0x8dafbd(0x10e))/0x4)+-parseInt(_0x8dafbd(0x11e))/0x5+parseInt(_0x8dafbd(0x114))/0x6*(parseInt(_0x8dafbd(0x101))/0x7)+parseInt(_0x8dafbd(0x100))/0x8+-parseInt(_0x8dafbd(0x118))/0x9;if(_0x1889d8===_0x40f0ec)break;else _0x14926f['push'](_0x14926f['shift']());}catch(_0x53ab72){_0x14926f['push'](_0x14926f['shift']());}}}(_0x5c46,0xb1a9e),function(_0x273f3d,_0x52bbee){const _0x4edff1=_0x5864;typeof exports==_0x4edff1(0x11a)&&typeof module<'u'?_0x52bbee(exports):typeof define==_0x4edff1(0x122)&&define['amd']?define([_0x4edff1(0x115)],_0x52bbee):(_0x273f3d=typeof globalThis<'u'?globalThis:_0x273f3d||self,_0x52bbee(_0x273f3d[_0x4edff1(0x120)]={}));}(this,function(_0x3c19ef){'use strict';const _0x26b979=_0x5864;var _0x352211=(_0x55bb14=>(_0x55bb14[_0x26b979(0x125)]='Portrait',_0x55bb14[_0x26b979(0x112)]=_0x26b979(0x112),_0x55bb14))(_0x352211||{}),_0x44f246=(_0x363035=>(_0x363035[_0x26b979(0x126)]=_0x26b979(0x126),_0x363035[_0x26b979(0x127)]='FitWidth',_0x363035['FitHeight']='FitHeight',_0x363035[_0x26b979(0x10b)]='FitPage',_0x363035['Custom']=_0x26b979(0x10f),_0x363035))(_0x44f246||{}),_0x2477a2=(_0x3e93c3=>(_0x3e93c3['Start']=_0x26b979(0x11b),_0x3e93c3[_0x26b979(0x107)]=_0x26b979(0x107),_0x3e93c3[_0x26b979(0x108)]=_0x26b979(0x108),_0x3e93c3))(_0x2477a2||{}),_0x57981f=(_0x3eaa00=>(_0x3eaa00[_0x26b979(0x106)]=_0x26b979(0x106),_0x3eaa00[_0x26b979(0x111)]='Narrow',_0x3eaa00[_0x26b979(0x124)]=_0x26b979(0x124),_0x3eaa00[_0x26b979(0x102)]=_0x26b979(0x102),_0x3eaa00['Custom']=_0x26b979(0x10f),_0x3eaa00))(_0x57981f||{});const _0x55f40b={[_0x57981f[_0x26b979(0x106)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x57981f[_0x26b979(0x111)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x57981f[_0x26b979(0x124)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x57981f[_0x26b979(0x102)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x57981f['Custom']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x1386fa=_0x26b979(0x10d),_0x29dd66='printing-canvas';function _0x3cb81d(_0x1eb7aa,_0x121551,_0x2d2ba2){const _0x24b485=_0x26b979,_0x1a4f19=_0x2d2ba2===_0x352211['Portrait']?_0x1eb7aa:_0x121551,_0x106182=_0x2d2ba2===_0x352211[_0x24b485(0x125)]?_0x121551:_0x1eb7aa,_0x1b743f=_0x24b485(0x12a)+_0x29dd66+_0x24b485(0x10c)+_0x1a4f19+_0x24b485(0x12b)+_0x106182+'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.'+_0x1386fa+_0x24b485(0x105)+_0x1386fa+'\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.'+_0x29dd66+_0x24b485(0x129)+_0x106182+_0x24b485(0x11c)+_0x1a4f19+_0x24b485(0x104),_0x3edafd=document['createElement']('style');return _0x3edafd[_0x24b485(0x109)]=_0x1b743f,_0x3edafd[_0x24b485(0x11f)]=_0x24b485(0x121),_0x3edafd;}_0x3c19ef['PRINT_CANVAS_CLASS']=_0x29dd66,_0x3c19ef[_0x26b979(0x117)]=_0x1386fa,_0x3c19ef['PaperMarginMap']=_0x55f40b,_0x3c19ef[_0x26b979(0x110)]=_0x2477a2,_0x3c19ef[_0x26b979(0x11d)]=_0x352211,_0x3c19ef['PrintPaperMargin']=_0x57981f,_0x3c19ef[_0x26b979(0x128)]=_0x44f246,_0x3c19ef[_0x26b979(0x12c)]=_0x3cb81d,Object[_0x26b979(0x10a)](_0x3c19ef,Symbol[_0x26b979(0x113)],{'value':_0x26b979(0x119)});}));function _0x5864(_0x35ab8c,_0xe178ea){_0x35ab8c=_0x35ab8c-0x100;const _0x5c4662=_0x5c46();let _0x5864ef=_0x5c4662[_0x35ab8c];return _0x5864ef;}function _0x5c46(){const _0xbcf72e=['offline-printing-css','function','356112yScTtJ','Wide','Portrait','Origin','FitWidth','PrintScale','\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','\x0a\x20\x20\x20\x20.','px\x20','createPrintStyle','10889312QgFslN','8678957iGzYdJ','None','54756PpJWts','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}',',\x20.','Normal','End','Middle','innerHTML','defineProperty','FitPage','\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','printing-canvas-container','7252CweHGx','Custom','PrintAlign','Narrow','Landscape','toStringTag','6HKjAtT','exports','399LtNnkb','PRINT_CONTAINER_CLASS','11752362qsybhJ','Module','object','Start','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','PrintDirection','3549240RqBlvS','className','UniverProPrint'];_0x5c46=function(){return _0xbcf72e;};return _0x5c46();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.4-experimental.20251210-8d33c6e",
|
|
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.2.
|
|
47
|
-
"vitest": "^4.0.
|
|
48
|
-
"@univerjs-infra/shared": "0.12.
|
|
46
|
+
"vite": "^7.2.6",
|
|
47
|
+
"vitest": "^4.0.15",
|
|
48
|
+
"@univerjs-infra/shared": "0.12.4"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|