@univerjs-pro/print 0.6.6 → 0.6.7

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 CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x9972df=_0x3900;(function(_0xc8ca5c,_0x56448d){const _0xe636e3=_0x3900,_0x39ab10=_0xc8ca5c();while(!![]){try{const _0x4f4e2f=-parseInt(_0xe636e3(0x1a0))/0x1*(-parseInt(_0xe636e3(0x197))/0x2)+-parseInt(_0xe636e3(0x196))/0x3*(parseInt(_0xe636e3(0x1b2))/0x4)+-parseInt(_0xe636e3(0x1b3))/0x5*(-parseInt(_0xe636e3(0x18b))/0x6)+-parseInt(_0xe636e3(0x1a8))/0x7*(-parseInt(_0xe636e3(0x1a7))/0x8)+-parseInt(_0xe636e3(0x1b5))/0x9*(parseInt(_0xe636e3(0x1b7))/0xa)+parseInt(_0xe636e3(0x1be))/0xb*(-parseInt(_0xe636e3(0x1ae))/0xc)+-parseInt(_0xe636e3(0x1b6))/0xd*(parseInt(_0xe636e3(0x199))/0xe);if(_0x4f4e2f===_0x56448d)break;else _0x39ab10['push'](_0x39ab10['shift']());}catch(_0x5685e0){_0x39ab10['push'](_0x39ab10['shift']());}}}(_0x36cd,0x57d76));function _0x3900(_0x169bb0,_0x526d12){const _0x36cdfc=_0x36cd();return _0x3900=function(_0x3900df,_0x123602){_0x3900df=_0x3900df-0x189;let _0x4a1a03=_0x36cdfc[_0x3900df];return _0x4a1a03;},_0x3900(_0x169bb0,_0x526d12);}Object['defineProperty'](exports,Symbol[_0x9972df(0x18c)],{'value':'Module'});var e=(_0x371e97=>(_0x371e97['Letter']=_0x9972df(0x190),_0x371e97[_0x9972df(0x1b1)]='Tabloid',_0x371e97[_0x9972df(0x19a)]=_0x9972df(0x19a),_0x371e97[_0x9972df(0x19b)]=_0x9972df(0x19b),_0x371e97[_0x9972df(0x1bd)]=_0x9972df(0x1bd),_0x371e97[_0x9972df(0x1af)]=_0x9972df(0x1af),_0x371e97['A3']='A3',_0x371e97['A4']='A4',_0x371e97['A5']='A5',_0x371e97['B4']='B4',_0x371e97['B5']='B5',_0x371e97))(e||{}),i=(_0x1c6671=>(_0x1c6671[_0x9972df(0x1a3)]=_0x9972df(0x1a3),_0x1c6671[_0x9972df(0x195)]='Landscape',_0x1c6671))(i||{}),c=(_0x13d3d4=>(_0x13d3d4['Origin']=_0x9972df(0x1b4),_0x13d3d4[_0x9972df(0x191)]=_0x9972df(0x191),_0x13d3d4[_0x9972df(0x194)]=_0x9972df(0x194),_0x13d3d4['FitPage']=_0x9972df(0x18a),_0x13d3d4[_0x9972df(0x1a4)]=_0x9972df(0x1a4),_0x13d3d4))(c||{}),g=(_0x5cbecc=>(_0x5cbecc[_0x9972df(0x19c)]='Start',_0x5cbecc[_0x9972df(0x1bb)]='End',_0x5cbecc['Middle']=_0x9972df(0x18f),_0x5cbecc))(g||{}),o=(_0x4186cc=>(_0x4186cc[_0x9972df(0x1a5)]=_0x9972df(0x1a5),_0x4186cc[_0x9972df(0x193)]=_0x9972df(0x193),_0x4186cc[_0x9972df(0x1a2)]='Wide',_0x4186cc[_0x9972df(0x192)]='None',_0x4186cc))(o||{});function _0x36cd(){const _0xd2d1ce=['\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','1383640SZcgXw','28WjnFsB','PrintPaperSize','PRINT_CONTAINER_CLASS','px\x20','printing-canvas','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','7815708zsFWib','Folio','offline-printing-css','Tabloid','4852eaxPeM','1028855ncxnBi','Origin','9NFYDuF','104273AyEFmO','101510ppMObH','PaperMarginMap','PrintScale','PrintPaperMargin','End','createPrintStyle','Executive','11gWvgoD','PaperSizePxMap','FitPage','6BJzUdE','toStringTag','PrintDirection','className','Middle','Letter','FitWidth','None','Narrow','FitHeight','Landscape','723GLvzlF','57434lbqQbO','printing-canvas-container','126pekiOW','Legal','Statement','Start','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','PRINT_CANVAS_CLASS','style','17iZlbqX','PrintAlign','Wide','Portrait','Custom','Normal'];_0x36cd=function(){return _0xd2d1ce;};return _0x36cd();}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['Executive']]:{'w':0x2b8,'h':0x3f0},[e[_0x9972df(0x1af)]]:{'w':0x330,'h':0x4e0},[e['Legal']]:{'w':0x330,'h':0x540},[e['Letter']]:{'w':0x330,'h':0x420},[e[_0x9972df(0x19b)]]:{'w':0x210,'h':0x330},[e[_0x9972df(0x1b1)]]:{'w':0x420,'h':0x660}},N={[o[_0x9972df(0x1a5)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x9972df(0x1a2)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x9972df(0x198),p=_0x9972df(0x1ac);function A(_0x4537ba,_0x16cb78){const _0x1685fa=_0x9972df,{w:_0xeae7c8,h:_0x52f107}=m[_0x4537ba],_0x481222=_0x16cb78===i[_0x1685fa(0x1a3)]?_0xeae7c8:_0x52f107,_0x622448=_0x16cb78===i['Portrait']?_0x52f107:_0xeae7c8,_0x5f8aa=_0x1685fa(0x1a6)+_0x481222+_0x1685fa(0x1ab)+_0x622448+'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+',\x20.'+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+_0x1685fa(0x1ad)+_0x622448+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x481222+_0x1685fa(0x19d),_0x3cea82=document['createElement'](_0x1685fa(0x19f));return _0x3cea82['innerHTML']=_0x5f8aa,_0x3cea82[_0x1685fa(0x18e)]=_0x1685fa(0x1b0),_0x3cea82;}exports[_0x9972df(0x19e)]=p,exports[_0x9972df(0x1aa)]=n,exports[_0x9972df(0x1b8)]=N,exports[_0x9972df(0x189)]=m,exports[_0x9972df(0x1a1)]=g,exports[_0x9972df(0x18d)]=i,exports[_0x9972df(0x1ba)]=o,exports[_0x9972df(0x1a9)]=e,exports[_0x9972df(0x1b9)]=c,exports[_0x9972df(0x1bc)]=A;
1
+ 'use strict';const _0x5705f3=_0x3f60;function _0x3f60(_0x59f16f,_0x279169){const _0x3be241=_0x3be2();return _0x3f60=function(_0x3f60cd,_0x4e9caa){_0x3f60cd=_0x3f60cd-0x177;let _0x435d7a=_0x3be241[_0x3f60cd];return _0x435d7a;},_0x3f60(_0x59f16f,_0x279169);}(function(_0xde56a5,_0x1cea78){const _0x516600=_0x3f60,_0x5a641e=_0xde56a5();while(!![]){try{const _0x3e1867=parseInt(_0x516600(0x1a2))/0x1*(-parseInt(_0x516600(0x180))/0x2)+parseInt(_0x516600(0x19c))/0x3+parseInt(_0x516600(0x183))/0x4+-parseInt(_0x516600(0x1a4))/0x5*(-parseInt(_0x516600(0x17d))/0x6)+parseInt(_0x516600(0x190))/0x7*(parseInt(_0x516600(0x18a))/0x8)+-parseInt(_0x516600(0x17e))/0x9+-parseInt(_0x516600(0x19b))/0xa;if(_0x3e1867===_0x1cea78)break;else _0x5a641e['push'](_0x5a641e['shift']());}catch(_0x4df418){_0x5a641e['push'](_0x5a641e['shift']());}}}(_0x3be2,0xf3f15));Object['defineProperty'](exports,Symbol[_0x5705f3(0x18b)],{'value':'Module'});var e=(_0x3d5f0e=>(_0x3d5f0e['Letter']=_0x5705f3(0x187),_0x3d5f0e[_0x5705f3(0x186)]=_0x5705f3(0x186),_0x3d5f0e[_0x5705f3(0x1a6)]=_0x5705f3(0x1a6),_0x3d5f0e[_0x5705f3(0x177)]=_0x5705f3(0x177),_0x3d5f0e[_0x5705f3(0x19e)]=_0x5705f3(0x19e),_0x3d5f0e[_0x5705f3(0x17b)]=_0x5705f3(0x17b),_0x3d5f0e['A3']='A3',_0x3d5f0e['A4']='A4',_0x3d5f0e['A5']='A5',_0x3d5f0e['B4']='B4',_0x3d5f0e['B5']='B5',_0x3d5f0e))(e||{}),i=(_0x1cf997=>(_0x1cf997[_0x5705f3(0x1a5)]=_0x5705f3(0x1a5),_0x1cf997['Landscape']=_0x5705f3(0x184),_0x1cf997))(i||{}),c=(_0xfa922e=>(_0xfa922e['Origin']=_0x5705f3(0x19a),_0xfa922e[_0x5705f3(0x1a7)]='FitWidth',_0xfa922e['FitHeight']=_0x5705f3(0x192),_0xfa922e[_0x5705f3(0x199)]='FitPage',_0xfa922e['Custom']='Custom',_0xfa922e))(c||{}),g=(_0xeb6e53=>(_0xeb6e53[_0x5705f3(0x19f)]=_0x5705f3(0x19f),_0xeb6e53[_0x5705f3(0x179)]=_0x5705f3(0x179),_0xeb6e53[_0x5705f3(0x181)]=_0x5705f3(0x181),_0xeb6e53))(g||{}),o=(_0x454cc4=>(_0x454cc4[_0x5705f3(0x196)]=_0x5705f3(0x196),_0x454cc4[_0x5705f3(0x1a3)]=_0x5705f3(0x1a3),_0x454cc4[_0x5705f3(0x1a0)]=_0x5705f3(0x1a0),_0x454cc4['None']=_0x5705f3(0x18c),_0x454cc4))(o||{});function _0x3be2(){const _0x433c1d=['3002660tluuTU','Landscape','printing-canvas','Tabloid','Letter','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','innerHTML','246592GinwMB','toStringTag','None','\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','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.','offline-printing-css','119TrRXrC','PrintPaperMargin','FitHeight','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','className','px\x20','Normal','printing-canvas-container','style','FitPage','Origin','33990740fCsEhu','5928762oNcJrW','createPrintStyle','Executive','Start','Wide','PaperMarginMap','1kDNipE','Narrow','23005YdUdRm','Portrait','Legal','FitWidth','Statement','PaperSizePxMap','End','createElement','Folio','\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.','2232tYwBCH','2773881tbQfPj','PrintDirection','512054PyEfrD','Middle','PrintScale'];_0x3be2=function(){return _0x433c1d;};return _0x3be2();}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['Executive']]:{'w':0x2b8,'h':0x3f0},[e[_0x5705f3(0x17b)]]:{'w':0x330,'h':0x4e0},[e['Legal']]:{'w':0x330,'h':0x540},[e[_0x5705f3(0x187)]]:{'w':0x330,'h':0x420},[e[_0x5705f3(0x177)]]:{'w':0x210,'h':0x330},[e['Tabloid']]:{'w':0x420,'h':0x660}},N={[o[_0x5705f3(0x196)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x5705f3(0x1a0)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x5705f3(0x18c)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x5705f3(0x197),p=_0x5705f3(0x185);function A(_0x5908ef,_0x1d802f){const _0x2221b7=_0x5705f3,{w:_0x348cd2,h:_0x29b98d}=m[_0x5908ef],_0x177b2a=_0x1d802f===i[_0x2221b7(0x1a5)]?_0x348cd2:_0x29b98d,_0x25b381=_0x1d802f===i['Portrait']?_0x29b98d:_0x348cd2,_0x6050d0=_0x2221b7(0x18d)+_0x177b2a+_0x2221b7(0x195)+_0x25b381+_0x2221b7(0x18e)+n+',\x20.'+n+_0x2221b7(0x17c)+p+_0x2221b7(0x193)+_0x25b381+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x177b2a+_0x2221b7(0x188),_0x1236f5=document[_0x2221b7(0x17a)](_0x2221b7(0x198));return _0x1236f5[_0x2221b7(0x189)]=_0x6050d0,_0x1236f5[_0x2221b7(0x194)]=_0x2221b7(0x18f),_0x1236f5;}exports['PRINT_CANVAS_CLASS']=p,exports['PRINT_CONTAINER_CLASS']=n,exports[_0x5705f3(0x1a1)]=N,exports[_0x5705f3(0x178)]=m,exports['PrintAlign']=g,exports[_0x5705f3(0x17f)]=i,exports[_0x5705f3(0x191)]=o,exports['PrintPaperSize']=e,exports[_0x5705f3(0x182)]=c,exports[_0x5705f3(0x19d)]=A;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- function _0x190a(_0x18fb25,_0x127821){const _0x1fc71b=_0x1fc7();return _0x190a=function(_0x190a24,_0x16dd48){_0x190a24=_0x190a24-0x67;let _0x1eb5ab=_0x1fc71b[_0x190a24];return _0x1eb5ab;},_0x190a(_0x18fb25,_0x127821);}function _0x1fc7(){const _0x527a66=['233623SmDDZr','FitPage','75KHGdxn','972hkVdZo','Middle','Statement','printing-canvas','Wide','Legal','Custom',',\x20.','9AVaJhs','Start','\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.','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','FitWidth','740733HtTulI','None','Narrow','Executive','Origin','594088giOWBt','1036594CyBHIa','Folio','Portrait','offline-printing-css','81147vCmGkF','innerHTML','px\x20','Letter','className','End','1iJQKhX','\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-container','FitHeight','Normal','6939945yNVern','1530xgdqoH','8mPHHPR','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','546246gYNgtK'];_0x1fc7=function(){return _0x527a66;};return _0x1fc7();}const _0x2c14b2=_0x190a;(function(_0xf55d05,_0x3671eb){const _0x17b27d=_0x190a,_0x563013=_0xf55d05();while(!![]){try{const _0xf455e=parseInt(_0x17b27d(0x7f))/0x1*(-parseInt(_0x17b27d(0x75))/0x2)+parseInt(_0x17b27d(0x69))/0x3*(parseInt(_0x17b27d(0x74))/0x4)+parseInt(_0x17b27d(0x8b))/0x5*(parseInt(_0x17b27d(0x88))/0x6)+parseInt(_0x17b27d(0x6f))/0x7*(-parseInt(_0x17b27d(0x86))/0x8)+-parseInt(_0x17b27d(0x84))/0x9+-parseInt(_0x17b27d(0x85))/0xa*(parseInt(_0x17b27d(0x79))/0xb)+-parseInt(_0x17b27d(0x8c))/0xc*(-parseInt(_0x17b27d(0x89))/0xd);if(_0xf455e===_0x3671eb)break;else _0x563013['push'](_0x563013['shift']());}catch(_0x599898){_0x563013['push'](_0x563013['shift']());}}}(_0x1fc7,0xb5612));var o=(_0x28b9dc=>(_0x28b9dc[_0x2c14b2(0x7c)]='Letter',_0x28b9dc['Tabloid']='Tabloid',_0x28b9dc[_0x2c14b2(0x91)]=_0x2c14b2(0x91),_0x28b9dc['Statement']=_0x2c14b2(0x8e),_0x28b9dc[_0x2c14b2(0x72)]=_0x2c14b2(0x72),_0x28b9dc['Folio']=_0x2c14b2(0x76),_0x28b9dc['A3']='A3',_0x28b9dc['A4']='A4',_0x28b9dc['A5']='A5',_0x28b9dc['B4']='B4',_0x28b9dc['B5']='B5',_0x28b9dc))(o||{}),i=(_0x3c4c46=>(_0x3c4c46[_0x2c14b2(0x77)]=_0x2c14b2(0x77),_0x3c4c46['Landscape']='Landscape',_0x3c4c46))(i||{}),w=(_0x3cc4b9=>(_0x3cc4b9[_0x2c14b2(0x73)]='Origin',_0x3cc4b9[_0x2c14b2(0x6e)]=_0x2c14b2(0x6e),_0x3cc4b9[_0x2c14b2(0x82)]=_0x2c14b2(0x82),_0x3cc4b9[_0x2c14b2(0x8a)]=_0x2c14b2(0x8a),_0x3cc4b9['Custom']=_0x2c14b2(0x67),_0x3cc4b9))(w||{}),m=(_0x5ef10c=>(_0x5ef10c[_0x2c14b2(0x6a)]=_0x2c14b2(0x6a),_0x5ef10c[_0x2c14b2(0x7e)]=_0x2c14b2(0x7e),_0x5ef10c[_0x2c14b2(0x8d)]=_0x2c14b2(0x8d),_0x5ef10c))(m||{}),e=(_0x158d7f=>(_0x158d7f[_0x2c14b2(0x83)]='Normal',_0x158d7f[_0x2c14b2(0x71)]=_0x2c14b2(0x71),_0x158d7f[_0x2c14b2(0x90)]=_0x2c14b2(0x90),_0x158d7f['None']=_0x2c14b2(0x70),_0x158d7f))(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['Folio']]:{'w':0x330,'h':0x4e0},[o['Legal']]:{'w':0x330,'h':0x540},[o[_0x2c14b2(0x7c)]]:{'w':0x330,'h':0x420},[o[_0x2c14b2(0x8e)]]:{'w':0x210,'h':0x330},[o['Tabloid']]:{'w':0x420,'h':0x660}},v={[e[_0x2c14b2(0x83)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x2c14b2(0x71)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0x2c14b2(0x90)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x2c14b2(0x70)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x2c14b2(0x81),p=_0x2c14b2(0x8f);function N(_0x32e9a1,_0x9af7bc){const _0x46bb85=_0x2c14b2,{w:_0x22970a,h:_0x55c3cc}=g[_0x32e9a1],_0x5efec6=_0x9af7bc===i[_0x46bb85(0x77)]?_0x22970a:_0x55c3cc,_0x228451=_0x9af7bc===i[_0x46bb85(0x77)]?_0x55c3cc:_0x22970a,_0x388400=_0x46bb85(0x80)+_0x5efec6+_0x46bb85(0x7b)+_0x228451+'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.'+l+_0x46bb85(0x68)+l+_0x46bb85(0x6b)+p+_0x46bb85(0x6c)+_0x228451+_0x46bb85(0x6d)+_0x5efec6+_0x46bb85(0x87),_0x161695=document['createElement']('style');return _0x161695[_0x46bb85(0x7a)]=_0x388400,_0x161695[_0x46bb85(0x7d)]=_0x46bb85(0x78),_0x161695;}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};
1
+ const _0xeb1a5=_0x5c17;(function(_0x946cc6,_0x465d9f){const _0x30fd7f=_0x5c17,_0x2238e7=_0x946cc6();while(!![]){try{const _0x218ecc=-parseInt(_0x30fd7f(0x1eb))/0x1+parseInt(_0x30fd7f(0x209))/0x2+parseInt(_0x30fd7f(0x1fd))/0x3*(-parseInt(_0x30fd7f(0x1f6))/0x4)+parseInt(_0x30fd7f(0x1ec))/0x5*(parseInt(_0x30fd7f(0x1e8))/0x6)+parseInt(_0x30fd7f(0x1ff))/0x7*(-parseInt(_0x30fd7f(0x1fe))/0x8)+parseInt(_0x30fd7f(0x1f4))/0x9*(parseInt(_0x30fd7f(0x206))/0xa)+parseInt(_0x30fd7f(0x1fb))/0xb;if(_0x218ecc===_0x465d9f)break;else _0x2238e7['push'](_0x2238e7['shift']());}catch(_0x27e18c){_0x2238e7['push'](_0x2238e7['shift']());}}}(_0x5dcc,0xbd8c2));var o=(_0x499820=>(_0x499820[_0xeb1a5(0x1f1)]=_0xeb1a5(0x1f1),_0x499820[_0xeb1a5(0x204)]=_0xeb1a5(0x204),_0x499820[_0xeb1a5(0x201)]=_0xeb1a5(0x201),_0x499820[_0xeb1a5(0x1e4)]=_0xeb1a5(0x1e4),_0x499820[_0xeb1a5(0x1ef)]=_0xeb1a5(0x1ef),_0x499820['Folio']=_0xeb1a5(0x1f7),_0x499820['A3']='A3',_0x499820['A4']='A4',_0x499820['A5']='A5',_0x499820['B4']='B4',_0x499820['B5']='B5',_0x499820))(o||{}),i=(_0x55df33=>(_0x55df33[_0xeb1a5(0x203)]=_0xeb1a5(0x203),_0x55df33[_0xeb1a5(0x1e7)]=_0xeb1a5(0x1e7),_0x55df33))(i||{}),w=(_0x1c763e=>(_0x1c763e['Origin']=_0xeb1a5(0x1f0),_0x1c763e[_0xeb1a5(0x1e5)]=_0xeb1a5(0x1e5),_0x1c763e[_0xeb1a5(0x20a)]='FitHeight',_0x1c763e[_0xeb1a5(0x20c)]=_0xeb1a5(0x20c),_0x1c763e[_0xeb1a5(0x1e9)]=_0xeb1a5(0x1e9),_0x1c763e))(w||{}),m=(_0x290de4=>(_0x290de4[_0xeb1a5(0x1fa)]=_0xeb1a5(0x1fa),_0x290de4[_0xeb1a5(0x1e6)]=_0xeb1a5(0x1e6),_0x290de4[_0xeb1a5(0x1f9)]=_0xeb1a5(0x1f9),_0x290de4))(m||{}),e=(_0x1c1708=>(_0x1c1708[_0xeb1a5(0x1fc)]=_0xeb1a5(0x1fc),_0x1c1708[_0xeb1a5(0x20b)]=_0xeb1a5(0x20b),_0x1c1708['Wide']=_0xeb1a5(0x207),_0x1c1708[_0xeb1a5(0x1f3)]=_0xeb1a5(0x1f3),_0x1c1708))(e||{});function _0x5c17(_0x2dae13,_0x4a3276){const _0x5dcc6d=_0x5dcc();return _0x5c17=function(_0x5c1773,_0x4b58ec){_0x5c1773=_0x5c1773-0x1e4;let _0xa42c0=_0x5dcc6d[_0x5c1773];return _0xa42c0;},_0x5c17(_0x2dae13,_0x4a3276);}function _0x5dcc(){const _0x2d00f2=['FitHeight','Narrow','FitPage','style','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','innerHTML','Statement','FitWidth','End','Landscape','6YSzogk','Custom','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','499212ZLvWDA','740885kcErrX','\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','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Executive','Origin','Letter','className','None','9SdDvjb','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.','744zXoEWq','Folio','printing-canvas-container','Middle','Start','9001839ZJplkY','Normal','12837ImQJMg','1464TQFidp','24535MoJQUu','offline-printing-css','Legal','px\x20','Portrait','Tabloid','\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.','12317380xKGxCt','Wide',',\x20.','1029286IWjacH'];_0x5dcc=function(){return _0x2d00f2;};return _0x5dcc();}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[_0xeb1a5(0x1ef)]]:{'w':0x2b8,'h':0x3f0},[o[_0xeb1a5(0x1f7)]]:{'w':0x330,'h':0x4e0},[o['Legal']]:{'w':0x330,'h':0x540},[o['Letter']]:{'w':0x330,'h':0x420},[o['Statement']]:{'w':0x210,'h':0x330},[o['Tabloid']]:{'w':0x420,'h':0x660}},v={[e['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0xeb1a5(0x20b)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0xeb1a5(0x207)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0xeb1a5(0x1f3)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0xeb1a5(0x1f8),p='printing-canvas';function N(_0x35c7dc,_0x468826){const _0xfb8418=_0xeb1a5,{w:_0x242180,h:_0xac38be}=g[_0x35c7dc],_0x4bae8a=_0x468826===i[_0xfb8418(0x203)]?_0x242180:_0xac38be,_0x36ff9e=_0x468826===i[_0xfb8418(0x203)]?_0xac38be:_0x242180,_0x1a7c15=_0xfb8418(0x1ed)+_0x4bae8a+_0xfb8418(0x202)+_0x36ff9e+_0xfb8418(0x1f5)+l+_0xfb8418(0x208)+l+_0xfb8418(0x205)+p+_0xfb8418(0x1ea)+_0x36ff9e+_0xfb8418(0x1ee)+_0x4bae8a+_0xfb8418(0x20e),_0x1535e0=document['createElement'](_0xfb8418(0x20d));return _0x1535e0[_0xfb8418(0x20f)]=_0x1a7c15,_0x1535e0[_0xfb8418(0x1f2)]=_0xfb8418(0x200),_0x1535e0;}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 _0x5dd2(_0x2d6a0b,_0x54affc){const _0x3855c3=_0x3855();return _0x5dd2=function(_0x5dd275,_0x3aebea){_0x5dd275=_0x5dd275-0x8c;let _0x169905=_0x3855c3[_0x5dd275];return _0x169905;},_0x5dd2(_0x2d6a0b,_0x54affc);}(function(_0x1411ec,_0x1b71cc){const _0x14f22c=_0x5dd2,_0x7d8466=_0x1411ec();while(!![]){try{const _0x34d0c2=parseInt(_0x14f22c(0x99))/0x1*(parseInt(_0x14f22c(0xa7))/0x2)+-parseInt(_0x14f22c(0x95))/0x3*(parseInt(_0x14f22c(0x94))/0x4)+parseInt(_0x14f22c(0xb8))/0x5+-parseInt(_0x14f22c(0x8e))/0x6+parseInt(_0x14f22c(0xa1))/0x7+-parseInt(_0x14f22c(0xba))/0x8+parseInt(_0x14f22c(0x97))/0x9*(parseInt(_0x14f22c(0xaa))/0xa);if(_0x34d0c2===_0x1b71cc)break;else _0x7d8466['push'](_0x7d8466['shift']());}catch(_0x1cb028){_0x7d8466['push'](_0x7d8466['shift']());}}}(_0x3855,0x4febb),function(_0xe39329,_0x269817){const _0x16fdc6=_0x5dd2;typeof exports==_0x16fdc6(0x8f)&&typeof module<'u'?_0x269817(exports):typeof define=='function'&&define[_0x16fdc6(0xb3)]?define([_0x16fdc6(0xaf)],_0x269817):(_0xe39329=typeof globalThis<'u'?globalThis:_0xe39329||self,_0x269817(_0xe39329['UniverProPrint']={}));}(this,function(_0x598fe2){'use strict';const _0x42f154=_0x5dd2;var _0x5225ae=(_0xf38e77=>(_0xf38e77['Letter']=_0x42f154(0xbc),_0xf38e77['Tabloid']='Tabloid',_0xf38e77[_0x42f154(0x8d)]=_0x42f154(0x8d),_0xf38e77[_0x42f154(0x9d)]=_0x42f154(0x9d),_0xf38e77['Executive']=_0x42f154(0x8c),_0xf38e77[_0x42f154(0xb0)]=_0x42f154(0xb0),_0xf38e77['A3']='A3',_0xf38e77['A4']='A4',_0xf38e77['A5']='A5',_0xf38e77['B4']='B4',_0xf38e77['B5']='B5',_0xf38e77))(_0x5225ae||{}),_0x471609=(_0x18a842=>(_0x18a842[_0x42f154(0x91)]=_0x42f154(0x91),_0x18a842['Landscape']=_0x42f154(0xbf),_0x18a842))(_0x471609||{}),_0x4471e3=(_0x438837=>(_0x438837[_0x42f154(0xbb)]=_0x42f154(0xbb),_0x438837[_0x42f154(0xae)]=_0x42f154(0xae),_0x438837['FitHeight']='FitHeight',_0x438837[_0x42f154(0xac)]=_0x42f154(0xac),_0x438837[_0x42f154(0x9f)]=_0x42f154(0x9f),_0x438837))(_0x4471e3||{}),_0x57b7b0=(_0x582c26=>(_0x582c26[_0x42f154(0xb6)]='Start',_0x582c26[_0x42f154(0xb4)]=_0x42f154(0xb4),_0x582c26['Middle']=_0x42f154(0xb7),_0x582c26))(_0x57b7b0||{}),_0x1e1e9b=(_0x6ae12b=>(_0x6ae12b[_0x42f154(0x92)]=_0x42f154(0x92),_0x6ae12b[_0x42f154(0xa3)]='Narrow',_0x6ae12b[_0x42f154(0x98)]='Wide',_0x6ae12b['None']=_0x42f154(0xa6),_0x6ae12b))(_0x1e1e9b||{});const _0x48b6ce={[_0x5225ae['A3']]:{'w':0x463,'h':0x633},[_0x5225ae['A4']]:{'w':0x31a,'h':0x464},[_0x5225ae['A5']]:{'w':0x22f,'h':0x31a},[_0x5225ae['B4']]:{'w':0x3b0,'h':0x540},[_0x5225ae['B5']]:{'w':0x299,'h':0x3b0},[_0x5225ae['Executive']]:{'w':0x2b8,'h':0x3f0},[_0x5225ae['Folio']]:{'w':0x330,'h':0x4e0},[_0x5225ae[_0x42f154(0x8d)]]:{'w':0x330,'h':0x540},[_0x5225ae[_0x42f154(0xbc)]]:{'w':0x330,'h':0x420},[_0x5225ae[_0x42f154(0x9d)]]:{'w':0x210,'h':0x330},[_0x5225ae['Tabloid']]:{'w':0x420,'h':0x660}},_0x5b2d13={[_0x1e1e9b[_0x42f154(0x92)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x1e1e9b[_0x42f154(0xa3)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x1e1e9b[_0x42f154(0x98)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x1e1e9b['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x20c1aa=_0x42f154(0xa2),_0x1f18d0=_0x42f154(0x9a);function _0x3fce08(_0x30db51,_0x424a28){const _0x2d25d0=_0x42f154,{w:_0x177d76,h:_0x550e9e}=_0x48b6ce[_0x30db51],_0x113777=_0x424a28===_0x471609[_0x2d25d0(0x91)]?_0x177d76:_0x550e9e,_0x5e6af1=_0x424a28===_0x471609[_0x2d25d0(0x91)]?_0x550e9e:_0x177d76,_0x1f612a='\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'+_0x113777+'px\x20'+_0x5e6af1+'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.'+_0x20c1aa+_0x2d25d0(0xa9)+_0x20c1aa+_0x2d25d0(0xa8)+_0x1f18d0+_0x2d25d0(0xa0)+_0x5e6af1+_0x2d25d0(0xb5)+_0x113777+_0x2d25d0(0xb1),_0x1c3a39=document[_0x2d25d0(0xa4)]('style');return _0x1c3a39[_0x2d25d0(0xb9)]=_0x1f612a,_0x1c3a39[_0x2d25d0(0x93)]=_0x2d25d0(0x9b),_0x1c3a39;}_0x598fe2[_0x42f154(0x90)]=_0x1f18d0,_0x598fe2[_0x42f154(0xbe)]=_0x20c1aa,_0x598fe2[_0x42f154(0xbd)]=_0x5b2d13,_0x598fe2['PaperSizePxMap']=_0x48b6ce,_0x598fe2[_0x42f154(0xb2)]=_0x57b7b0,_0x598fe2[_0x42f154(0xa5)]=_0x471609,_0x598fe2[_0x42f154(0x96)]=_0x1e1e9b,_0x598fe2['PrintPaperSize']=_0x5225ae,_0x598fe2['PrintScale']=_0x4471e3,_0x598fe2[_0x42f154(0x9e)]=_0x3fce08,Object[_0x42f154(0x9c)](_0x598fe2,Symbol[_0x42f154(0xad)],{'value':_0x42f154(0xab)});}));function _0x3855(){const _0x5759eb=['PrintDirection','None','48gXYnIs','\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.',',\x20.','200hjSICH','Module','FitPage','toStringTag','FitWidth','exports','Folio','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','PrintAlign','amd','End','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Start','Middle','350725qPoyeR','innerHTML','122824FfWIUD','Origin','Letter','PaperMarginMap','PRINT_CONTAINER_CLASS','Landscape','Executive','Legal','413112aqfSiQ','object','PRINT_CANVAS_CLASS','Portrait','Normal','className','1869544uYuOzK','3wOckPh','PrintPaperMargin','249102smrhHC','Wide','3818fAlKYc','printing-canvas','offline-printing-css','defineProperty','Statement','createPrintStyle','Custom','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','1145263RzkElY','printing-canvas-container','Narrow','createElement'];_0x3855=function(){return _0x5759eb;};return _0x3855();}
1
+ function _0xe1ff(){const _0xb08ebf=['Custom',',\x20.','21228DIJDCz','innerHTML','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','Portrait','function','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','object','Wide','85ufushV','14HeZEWD','className','Folio','UniverProPrint','116520RzcMIu','toStringTag','229761VIOQep','PrintAlign','Legal','printing-canvas','amd','207458RpTLHr','Statement','offline-printing-css','Narrow','Start','style','360SwiEnX','printing-canvas-container','Module','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','FitPage','PaperSizePxMap','PRINT_CONTAINER_CLASS','Landscape','60ohRBhL','Normal','None','6169422mUcHJn','PrintDirection','Executive','exports','Letter','13542hiiyzk','Origin','px\x20','Middle','FitWidth','10601349aWCbbe','Tabloid','PrintScale'];_0xe1ff=function(){return _0xb08ebf;};return _0xe1ff();}function _0x5c42(_0x21c672,_0x20b132){const _0xe1ff97=_0xe1ff();return _0x5c42=function(_0x5c4277,_0x52378a){_0x5c4277=_0x5c4277-0xc4;let _0x22d5e7=_0xe1ff97[_0x5c4277];return _0x22d5e7;},_0x5c42(_0x21c672,_0x20b132);}(function(_0x2ba04a,_0x24a74c){const _0x17bfd0=_0x5c42,_0x12f875=_0x2ba04a();while(!![]){try{const _0xd8a9e7=-parseInt(_0x17bfd0(0xe2))/0x1*(-parseInt(_0x17bfd0(0xed))/0x2)+-parseInt(_0x17bfd0(0xf3))/0x3*(parseInt(_0x17bfd0(0xd8))/0x4)+parseInt(_0x17bfd0(0xe1))/0x5*(parseInt(_0x17bfd0(0xce))/0x6)+-parseInt(_0x17bfd0(0xc9))/0x7+parseInt(_0x17bfd0(0xe6))/0x8+-parseInt(_0x17bfd0(0xe8))/0x9*(parseInt(_0x17bfd0(0xc6))/0xa)+parseInt(_0x17bfd0(0xd3))/0xb;if(_0xd8a9e7===_0x24a74c)break;else _0x12f875['push'](_0x12f875['shift']());}catch(_0x644501){_0x12f875['push'](_0x12f875['shift']());}}}(_0xe1ff,0xc2b63),function(_0x14c75c,_0x21b6db){const _0x1178ff=_0x5c42;typeof exports==_0x1178ff(0xdf)&&typeof module<'u'?_0x21b6db(exports):typeof define==_0x1178ff(0xdd)&&define[_0x1178ff(0xec)]?define([_0x1178ff(0xcc)],_0x21b6db):(_0x14c75c=typeof globalThis<'u'?globalThis:_0x14c75c||self,_0x21b6db(_0x14c75c[_0x1178ff(0xe5)]={}));}(this,function(_0x353b81){'use strict';const _0x208830=_0x5c42;var _0x5f0a2f=(_0x51f33b=>(_0x51f33b[_0x208830(0xcd)]=_0x208830(0xcd),_0x51f33b[_0x208830(0xd4)]=_0x208830(0xd4),_0x51f33b['Legal']='Legal',_0x51f33b['Statement']=_0x208830(0xee),_0x51f33b['Executive']=_0x208830(0xcb),_0x51f33b['Folio']=_0x208830(0xe4),_0x51f33b['A3']='A3',_0x51f33b['A4']='A4',_0x51f33b['A5']='A5',_0x51f33b['B4']='B4',_0x51f33b['B5']='B5',_0x51f33b))(_0x5f0a2f||{}),_0x5a68b0=(_0x1000e0=>(_0x1000e0['Portrait']=_0x208830(0xdc),_0x1000e0[_0x208830(0xc5)]='Landscape',_0x1000e0))(_0x5a68b0||{}),_0x1d9afe=(_0x46e321=>(_0x46e321[_0x208830(0xcf)]='Origin',_0x46e321[_0x208830(0xd2)]=_0x208830(0xd2),_0x46e321['FitHeight']='FitHeight',_0x46e321[_0x208830(0xf7)]=_0x208830(0xf7),_0x46e321['Custom']=_0x208830(0xd6),_0x46e321))(_0x1d9afe||{}),_0x31bdf8=(_0x3b2928=>(_0x3b2928['Start']=_0x208830(0xf1),_0x3b2928['End']='End',_0x3b2928['Middle']=_0x208830(0xd1),_0x3b2928))(_0x31bdf8||{}),_0x4a72ee=(_0x5608df=>(_0x5608df[_0x208830(0xc7)]=_0x208830(0xc7),_0x5608df['Narrow']=_0x208830(0xf0),_0x5608df[_0x208830(0xe0)]=_0x208830(0xe0),_0x5608df[_0x208830(0xc8)]='None',_0x5608df))(_0x4a72ee||{});const _0x1406ed={[_0x5f0a2f['A3']]:{'w':0x463,'h':0x633},[_0x5f0a2f['A4']]:{'w':0x31a,'h':0x464},[_0x5f0a2f['A5']]:{'w':0x22f,'h':0x31a},[_0x5f0a2f['B4']]:{'w':0x3b0,'h':0x540},[_0x5f0a2f['B5']]:{'w':0x299,'h':0x3b0},[_0x5f0a2f[_0x208830(0xcb)]]:{'w':0x2b8,'h':0x3f0},[_0x5f0a2f['Folio']]:{'w':0x330,'h':0x4e0},[_0x5f0a2f[_0x208830(0xea)]]:{'w':0x330,'h':0x540},[_0x5f0a2f['Letter']]:{'w':0x330,'h':0x420},[_0x5f0a2f[_0x208830(0xee)]]:{'w':0x210,'h':0x330},[_0x5f0a2f[_0x208830(0xd4)]]:{'w':0x420,'h':0x660}},_0x543c25={[_0x4a72ee[_0x208830(0xc7)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x4a72ee[_0x208830(0xf0)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x4a72ee[_0x208830(0xe0)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x4a72ee['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x14a6d3=_0x208830(0xf4),_0x493393=_0x208830(0xeb);function _0x25fc09(_0x631832,_0x451921){const _0x126c29=_0x208830,{w:_0x18419e,h:_0x500ab0}=_0x1406ed[_0x631832],_0x443ce0=_0x451921===_0x5a68b0[_0x126c29(0xdc)]?_0x18419e:_0x500ab0,_0x1e559d=_0x451921===_0x5a68b0['Portrait']?_0x500ab0:_0x18419e,_0xb866d1=_0x126c29(0xdb)+_0x443ce0+_0x126c29(0xd0)+_0x1e559d+'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.'+_0x14a6d3+_0x126c29(0xd7)+_0x14a6d3+'\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.'+_0x493393+_0x126c29(0xf6)+_0x1e559d+_0x126c29(0xda)+_0x443ce0+_0x126c29(0xde),_0x325da7=document['createElement'](_0x126c29(0xf2));return _0x325da7[_0x126c29(0xd9)]=_0xb866d1,_0x325da7[_0x126c29(0xe3)]=_0x126c29(0xef),_0x325da7;}_0x353b81['PRINT_CANVAS_CLASS']=_0x493393,_0x353b81[_0x208830(0xc4)]=_0x14a6d3,_0x353b81['PaperMarginMap']=_0x543c25,_0x353b81[_0x208830(0xf8)]=_0x1406ed,_0x353b81[_0x208830(0xe9)]=_0x31bdf8,_0x353b81[_0x208830(0xca)]=_0x5a68b0,_0x353b81['PrintPaperMargin']=_0x4a72ee,_0x353b81['PrintPaperSize']=_0x5f0a2f,_0x353b81[_0x208830(0xd5)]=_0x1d9afe,_0x353b81['createPrintStyle']=_0x25fc09,Object['defineProperty'](_0x353b81,Symbol[_0x208830(0xe7)],{'value':_0x208830(0xf5)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/print",
3
- "version": "0.6.6",
3
+ "version": "0.6.7",
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.8.2",
46
- "vite": "^6.2.1",
47
- "vitest": "^3.0.8",
48
- "@univerjs-infra/shared": "0.6.6"
46
+ "vite": "^6.2.2",
47
+ "vitest": "^3.0.9",
48
+ "@univerjs-infra/shared": "0.6.7"
49
49
  },
50
50
  "scripts": {
51
51
  "test": "vitest run",