@univerjs-pro/print 0.5.0-alpha.0 → 0.5.0-beta.0

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 _0x3de9a3=_0x1642;(function(_0xc8f7c8,_0x1ea47c){const _0x4ee2a3=_0x1642,_0x1a54a5=_0xc8f7c8();while(!![]){try{const _0x182b0d=-parseInt(_0x4ee2a3(0x15d))/0x1*(-parseInt(_0x4ee2a3(0x18f))/0x2)+parseInt(_0x4ee2a3(0x171))/0x3+parseInt(_0x4ee2a3(0x179))/0x4*(parseInt(_0x4ee2a3(0x17a))/0x5)+parseInt(_0x4ee2a3(0x17f))/0x6+-parseInt(_0x4ee2a3(0x189))/0x7+parseInt(_0x4ee2a3(0x16f))/0x8*(parseInt(_0x4ee2a3(0x181))/0x9)+-parseInt(_0x4ee2a3(0x176))/0xa;if(_0x182b0d===_0x1ea47c)break;else _0x1a54a5['push'](_0x1a54a5['shift']());}catch(_0x4076e2){_0x1a54a5['push'](_0x1a54a5['shift']());}}}(_0x14c0,0x8f945));function _0x1642(_0x4fe375,_0x5b5770){const _0x14c095=_0x14c0();return _0x1642=function(_0x1642fb,_0x4002c9){_0x1642fb=_0x1642fb-0x15c;let _0x199864=_0x14c095[_0x1642fb];return _0x199864;},_0x1642(_0x4fe375,_0x5b5770);}Object[_0x3de9a3(0x16a)](exports,Symbol[_0x3de9a3(0x18d)],{'value':_0x3de9a3(0x15c)});var e=(_0x5e8e4e=>(_0x5e8e4e['Letter']=_0x3de9a3(0x191),_0x5e8e4e[_0x3de9a3(0x170)]=_0x3de9a3(0x170),_0x5e8e4e[_0x3de9a3(0x16d)]='Legal',_0x5e8e4e['Statement']=_0x3de9a3(0x167),_0x5e8e4e[_0x3de9a3(0x18c)]=_0x3de9a3(0x18c),_0x5e8e4e[_0x3de9a3(0x168)]=_0x3de9a3(0x168),_0x5e8e4e['A3']='A3',_0x5e8e4e['A4']='A4',_0x5e8e4e['A5']='A5',_0x5e8e4e['B4']='B4',_0x5e8e4e['B5']='B5',_0x5e8e4e))(e||{}),i=(_0x4b115c=>(_0x4b115c[_0x3de9a3(0x173)]=_0x3de9a3(0x173),_0x4b115c[_0x3de9a3(0x165)]=_0x3de9a3(0x165),_0x4b115c))(i||{}),c=(_0xeb2688=>(_0xeb2688[_0x3de9a3(0x18b)]=_0x3de9a3(0x18b),_0xeb2688['FitWidth']=_0x3de9a3(0x172),_0xeb2688[_0x3de9a3(0x187)]='FitHeight',_0xeb2688[_0x3de9a3(0x161)]='FitPage',_0xeb2688[_0x3de9a3(0x177)]='Custom',_0xeb2688))(c||{}),g=(_0x243ac1=>(_0x243ac1[_0x3de9a3(0x18a)]='Start',_0x243ac1[_0x3de9a3(0x183)]=_0x3de9a3(0x183),_0x243ac1[_0x3de9a3(0x16b)]=_0x3de9a3(0x16b),_0x243ac1))(g||{}),o=(_0x9d1949=>(_0x9d1949[_0x3de9a3(0x169)]=_0x3de9a3(0x169),_0x9d1949[_0x3de9a3(0x17c)]=_0x3de9a3(0x17c),_0x9d1949[_0x3de9a3(0x186)]='Wide',_0x9d1949[_0x3de9a3(0x175)]='None',_0x9d1949))(o||{});const m={[e['A3']]:{'w':0x463,'h':0x633},[e['A4']]:{'w':0x31a,'h':0x464},[e['A5']]:{'w':0x22f,'h':0x31a},[e['B4']]:{'w':0x3b0,'h':0x540},[e['B5']]:{'w':0x299,'h':0x3b0},[e[_0x3de9a3(0x18c)]]:{'w':0x2b8,'h':0x3f0},[e['Folio']]:{'w':0x330,'h':0x4e0},[e[_0x3de9a3(0x16d)]]:{'w':0x330,'h':0x540},[e[_0x3de9a3(0x191)]]:{'w':0x330,'h':0x420},[e['Statement']]:{'w':0x210,'h':0x330},[e[_0x3de9a3(0x170)]]:{'w':0x420,'h':0x660}},N={[o[_0x3de9a3(0x169)]]:{'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[_0x3de9a3(0x175)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x3de9a3(0x184),p=_0x3de9a3(0x174);function A(_0x38e4d9,_0x5b764f){const _0x1ed9af=_0x3de9a3,{w:_0x235bb5,h:_0x46dc3c}=m[_0x38e4d9],_0x5f85fa=_0x5b764f===i[_0x1ed9af(0x173)]?_0x235bb5:_0x46dc3c,_0x424f08=_0x5b764f===i[_0x1ed9af(0x173)]?_0x46dc3c:_0x235bb5,_0x251ced='\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'+_0x5f85fa+_0x1ed9af(0x182)+_0x424f08+_0x1ed9af(0x16e)+n+_0x1ed9af(0x178)+n+_0x1ed9af(0x164)+p+_0x1ed9af(0x188)+_0x424f08+_0x1ed9af(0x18e)+_0x5f85fa+_0x1ed9af(0x160),_0x52c0f8=document[_0x1ed9af(0x15f)](_0x1ed9af(0x180));return _0x52c0f8[_0x1ed9af(0x163)]=_0x251ced,_0x52c0f8[_0x1ed9af(0x17d)]=_0x1ed9af(0x166),_0x52c0f8;}function _0x14c0(){const _0x5cebc6=['createPrintStyle','innerHTML','\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.','Landscape','offline-printing-css','Statement','Folio','Normal','defineProperty','Middle','PRINT_CONTAINER_CLASS','Legal','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.','3797384ubxlYy','Tabloid','932226bIQKlD','FitWidth','Portrait','printing-canvas','None','24010890Chwtqu','Custom',',\x20.','3854828gkvOjK','5VJZgTq','PrintPaperMargin','Narrow','className','PrintScale','5426838dskdvl','style','9Udnucy','px\x20','End','printing-canvas-container','PaperMarginMap','Wide','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','1335824QhiyRT','Start','Origin','Executive','toStringTag','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','1052854FTmHrI','PrintPaperSize','Letter','Module','1hySZiH','PaperSizePxMap','createElement','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','FitPage'];_0x14c0=function(){return _0x5cebc6;};return _0x14c0();}exports['PRINT_CANVAS_CLASS']=p,exports[_0x3de9a3(0x16c)]=n,exports[_0x3de9a3(0x185)]=N,exports[_0x3de9a3(0x15e)]=m,exports['PrintAlign']=g,exports['PrintDirection']=i,exports[_0x3de9a3(0x17b)]=o,exports[_0x3de9a3(0x190)]=e,exports[_0x3de9a3(0x17e)]=c,exports[_0x3de9a3(0x162)]=A;
1
+ 'use strict';const _0x5e5e84=_0x5b22;(function(_0xc9ebf8,_0x276028){const _0x188fec=_0x5b22,_0x4fc055=_0xc9ebf8();while(!![]){try{const _0x4e75f2=-parseInt(_0x188fec(0xed))/0x1*(-parseInt(_0x188fec(0xf1))/0x2)+-parseInt(_0x188fec(0xe4))/0x3*(-parseInt(_0x188fec(0xd7))/0x4)+-parseInt(_0x188fec(0xd8))/0x5+parseInt(_0x188fec(0xd1))/0x6+parseInt(_0x188fec(0xdc))/0x7*(parseInt(_0x188fec(0xe1))/0x8)+-parseInt(_0x188fec(0xc9))/0x9*(-parseInt(_0x188fec(0xd2))/0xa)+-parseInt(_0x188fec(0xe0))/0xb;if(_0x4e75f2===_0x276028)break;else _0x4fc055['push'](_0x4fc055['shift']());}catch(_0xc29b28){_0x4fc055['push'](_0x4fc055['shift']());}}}(_0x4601,0x33590));function _0x4601(){const _0x6efb03=['Letter','4BUgypa','748380nNJTsK','style','\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.','createElement','749161UgwMKb','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Statement','Normal','3362920QHAhqc','16bmsyWs','Narrow','End','187773jdABdh','Legal','Custom','Middle','innerHTML','PaperSizePxMap','Start','toStringTag','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.','88618AMnJbS','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Wide','PRINT_CONTAINER_CLASS','2BCuInN','PrintScale','offline-printing-css','FitHeight','PrintAlign','printing-canvas-container',',\x20.','Folio','FitWidth','12816RxYAdm','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','PaperMarginMap','PrintPaperMargin','\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','Executive','Portrait','Origin','1324302tmMaaX','560delaJs','Landscape','None','px\x20'];_0x4601=function(){return _0x6efb03;};return _0x4601();}Object['defineProperty'](exports,Symbol[_0x5e5e84(0xeb)],{'value':'Module'});var e=(_0x17f5b6=>(_0x17f5b6[_0x5e5e84(0xd6)]='Letter',_0x17f5b6['Tabloid']='Tabloid',_0x17f5b6[_0x5e5e84(0xe5)]=_0x5e5e84(0xe5),_0x17f5b6['Statement']=_0x5e5e84(0xde),_0x17f5b6[_0x5e5e84(0xce)]=_0x5e5e84(0xce),_0x17f5b6[_0x5e5e84(0xf8)]=_0x5e5e84(0xf8),_0x17f5b6['A3']='A3',_0x17f5b6['A4']='A4',_0x17f5b6['A5']='A5',_0x17f5b6['B4']='B4',_0x17f5b6['B5']='B5',_0x17f5b6))(e||{}),i=(_0x158f05=>(_0x158f05[_0x5e5e84(0xcf)]=_0x5e5e84(0xcf),_0x158f05[_0x5e5e84(0xd3)]='Landscape',_0x158f05))(i||{}),c=(_0x1b4d85=>(_0x1b4d85[_0x5e5e84(0xd0)]='Origin',_0x1b4d85['FitWidth']=_0x5e5e84(0xf9),_0x1b4d85[_0x5e5e84(0xf4)]=_0x5e5e84(0xf4),_0x1b4d85['FitPage']='FitPage',_0x1b4d85['Custom']=_0x5e5e84(0xe6),_0x1b4d85))(c||{}),g=(_0x18f24e=>(_0x18f24e['Start']=_0x5e5e84(0xea),_0x18f24e[_0x5e5e84(0xe3)]=_0x5e5e84(0xe3),_0x18f24e['Middle']=_0x5e5e84(0xe7),_0x18f24e))(g||{}),o=(_0x16be9c=>(_0x16be9c[_0x5e5e84(0xdf)]=_0x5e5e84(0xdf),_0x16be9c[_0x5e5e84(0xe2)]='Narrow',_0x16be9c['Wide']=_0x5e5e84(0xef),_0x16be9c[_0x5e5e84(0xd4)]=_0x5e5e84(0xd4),_0x16be9c))(o||{});const m={[e['A3']]:{'w':0x463,'h':0x633},[e['A4']]:{'w':0x31a,'h':0x464},[e['A5']]:{'w':0x22f,'h':0x31a},[e['B4']]:{'w':0x3b0,'h':0x540},[e['B5']]:{'w':0x299,'h':0x3b0},[e['Executive']]:{'w':0x2b8,'h':0x3f0},[e[_0x5e5e84(0xf8)]]:{'w':0x330,'h':0x4e0},[e[_0x5e5e84(0xe5)]]:{'w':0x330,'h':0x540},[e[_0x5e5e84(0xd6)]]:{'w':0x330,'h':0x420},[e[_0x5e5e84(0xde)]]:{'w':0x210,'h':0x330},[e['Tabloid']]:{'w':0x420,'h':0x660}},N={[o[_0x5e5e84(0xdf)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x5e5e84(0xe2)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x5e5e84(0xd4)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x5e5e84(0xf6),p='printing-canvas';function _0x5b22(_0x2a7dae,_0xf3ae2a){const _0x4601cf=_0x4601();return _0x5b22=function(_0x5b222e,_0x896972){_0x5b222e=_0x5b222e-0xc9;let _0xb5a1bf=_0x4601cf[_0x5b222e];return _0xb5a1bf;},_0x5b22(_0x2a7dae,_0xf3ae2a);}function A(_0x397bf9,_0x2d16a9){const _0x1e249e=_0x5e5e84,{w:_0x5da4a9,h:_0x439bc8}=m[_0x397bf9],_0x1393c6=_0x2d16a9===i[_0x1e249e(0xcf)]?_0x5da4a9:_0x439bc8,_0x2cc87e=_0x2d16a9===i[_0x1e249e(0xcf)]?_0x439bc8:_0x5da4a9,_0x32f28d=_0x1e249e(0xcd)+_0x1393c6+_0x1e249e(0xd5)+_0x2cc87e+_0x1e249e(0xec)+n+_0x1e249e(0xf7)+n+_0x1e249e(0xda)+p+_0x1e249e(0xee)+_0x2cc87e+_0x1e249e(0xdd)+_0x1393c6+_0x1e249e(0xca),_0x5c6226=document[_0x1e249e(0xdb)](_0x1e249e(0xd9));return _0x5c6226[_0x1e249e(0xe8)]=_0x32f28d,_0x5c6226['className']=_0x1e249e(0xf3),_0x5c6226;}exports['PRINT_CANVAS_CLASS']=p,exports[_0x5e5e84(0xf0)]=n,exports[_0x5e5e84(0xcb)]=N,exports[_0x5e5e84(0xe9)]=m,exports[_0x5e5e84(0xf5)]=g,exports['PrintDirection']=i,exports[_0x5e5e84(0xcc)]=o,exports['PrintPaperSize']=e,exports[_0x5e5e84(0xf2)]=c,exports['createPrintStyle']=A;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3e38df=_0x10c4;(function(_0x209f9f,_0x2f2662){const _0x559793=_0x10c4,_0x55e51c=_0x209f9f();while(!![]){try{const _0x4125b4=parseInt(_0x559793(0xe4))/0x1+parseInt(_0x559793(0xca))/0x2+-parseInt(_0x559793(0xc9))/0x3*(parseInt(_0x559793(0xe3))/0x4)+parseInt(_0x559793(0xde))/0x5+-parseInt(_0x559793(0xc7))/0x6+-parseInt(_0x559793(0xcc))/0x7+-parseInt(_0x559793(0xbf))/0x8*(-parseInt(_0x559793(0xd0))/0x9);if(_0x4125b4===_0x2f2662)break;else _0x55e51c['push'](_0x55e51c['shift']());}catch(_0x36ea2c){_0x55e51c['push'](_0x55e51c['shift']());}}}(_0x1475,0xa1f88));function _0x1475(){const _0x555f1b=['style','Statement','943119uBeFvT','Narrow','Wide','offline-printing-css','Letter','Origin','Middle',',\x20.','End','FitHeight','Custom','innerHTML','FitPage','Tabloid','1425240rExQfE','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','className','None','Normal','204ELiOAR','898033NbFuHH','\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\x20','Portrait','Executive','88SeoAKn','\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','\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.','printing-canvas','Start','Landscape','Legal','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','1124988RqwgZI','Folio','65343CEhjec','1250698XLGdtO','FitWidth','6995590ekmWBQ','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.'];_0x1475=function(){return _0x555f1b;};return _0x1475();}function _0x10c4(_0x4b6f47,_0x296ab8){const _0x147574=_0x1475();return _0x10c4=function(_0x10c4c0,_0x4e9bc2){_0x10c4c0=_0x10c4c0-0xbd;let _0x383a6e=_0x147574[_0x10c4c0];return _0x383a6e;},_0x10c4(_0x4b6f47,_0x296ab8);}var o=(_0x20a1af=>(_0x20a1af[_0x3e38df(0xd4)]=_0x3e38df(0xd4),_0x20a1af[_0x3e38df(0xdd)]='Tabloid',_0x20a1af['Legal']=_0x3e38df(0xc5),_0x20a1af['Statement']='Statement',_0x20a1af['Executive']=_0x3e38df(0xbe),_0x20a1af[_0x3e38df(0xc8)]='Folio',_0x20a1af['A3']='A3',_0x20a1af['A4']='A4',_0x20a1af['A5']='A5',_0x20a1af['B4']='B4',_0x20a1af['B5']='B5',_0x20a1af))(o||{}),i=(_0x13c5d0=>(_0x13c5d0[_0x3e38df(0xbd)]=_0x3e38df(0xbd),_0x13c5d0[_0x3e38df(0xc4)]=_0x3e38df(0xc4),_0x13c5d0))(i||{}),w=(_0x2c72f5=>(_0x2c72f5[_0x3e38df(0xd5)]='Origin',_0x2c72f5[_0x3e38df(0xcb)]=_0x3e38df(0xcb),_0x2c72f5[_0x3e38df(0xd9)]=_0x3e38df(0xd9),_0x2c72f5['FitPage']=_0x3e38df(0xdc),_0x2c72f5[_0x3e38df(0xda)]=_0x3e38df(0xda),_0x2c72f5))(w||{}),m=(_0x53163d=>(_0x53163d[_0x3e38df(0xc3)]='Start',_0x53163d[_0x3e38df(0xd8)]=_0x3e38df(0xd8),_0x53163d[_0x3e38df(0xd6)]=_0x3e38df(0xd6),_0x53163d))(m||{}),e=(_0x39f112=>(_0x39f112[_0x3e38df(0xe2)]='Normal',_0x39f112[_0x3e38df(0xd1)]=_0x3e38df(0xd1),_0x39f112['Wide']=_0x3e38df(0xd2),_0x39f112[_0x3e38df(0xe1)]=_0x3e38df(0xe1),_0x39f112))(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[_0x3e38df(0xbe)]]:{'w':0x2b8,'h':0x3f0},[o[_0x3e38df(0xc8)]]:{'w':0x330,'h':0x4e0},[o[_0x3e38df(0xc5)]]:{'w':0x330,'h':0x540},[o[_0x3e38df(0xd4)]]:{'w':0x330,'h':0x420},[o[_0x3e38df(0xcf)]]:{'w':0x210,'h':0x330},[o[_0x3e38df(0xdd)]]:{'w':0x420,'h':0x660}},v={[e['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x3e38df(0xd1)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0x3e38df(0xd2)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x3e38df(0xe1)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l='printing-canvas-container',p=_0x3e38df(0xc2);function N(_0x2250d5,_0x15f2e7){const _0x51d917=_0x3e38df,{w:_0x505cfe,h:_0x5be308}=g[_0x2250d5],_0x12ef07=_0x15f2e7===i['Portrait']?_0x505cfe:_0x5be308,_0x436e49=_0x15f2e7===i[_0x51d917(0xbd)]?_0x5be308:_0x505cfe,_0x50a7f6=_0x51d917(0xc0)+_0x12ef07+_0x51d917(0xe6)+_0x436e49+_0x51d917(0xcd)+l+_0x51d917(0xd7)+l+_0x51d917(0xc1)+p+_0x51d917(0xe5)+_0x436e49+_0x51d917(0xc6)+_0x12ef07+_0x51d917(0xdf),_0x219dee=document['createElement'](_0x51d917(0xce));return _0x219dee[_0x51d917(0xdb)]=_0x50a7f6,_0x219dee[_0x51d917(0xe0)]=_0x51d917(0xd3),_0x219dee;}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 _0x4074f4=_0x3a0b;(function(_0x32156b,_0x5add34){const _0x565d1a=_0x3a0b,_0x569148=_0x32156b();while(!![]){try{const _0x55093a=-parseInt(_0x565d1a(0x188))/0x1*(-parseInt(_0x565d1a(0x1a5))/0x2)+-parseInt(_0x565d1a(0x1a6))/0x3*(-parseInt(_0x565d1a(0x1a7))/0x4)+-parseInt(_0x565d1a(0x1a4))/0x5+parseInt(_0x565d1a(0x19c))/0x6*(-parseInt(_0x565d1a(0x1a0))/0x7)+-parseInt(_0x565d1a(0x195))/0x8+parseInt(_0x565d1a(0x191))/0x9*(parseInt(_0x565d1a(0x18d))/0xa)+parseInt(_0x565d1a(0x193))/0xb;if(_0x55093a===_0x5add34)break;else _0x569148['push'](_0x569148['shift']());}catch(_0x20f4ca){_0x569148['push'](_0x569148['shift']());}}}(_0x3133,0x94934));var o=(_0x32e2b9=>(_0x32e2b9[_0x4074f4(0x17e)]=_0x4074f4(0x17e),_0x32e2b9[_0x4074f4(0x192)]=_0x4074f4(0x192),_0x32e2b9[_0x4074f4(0x19e)]=_0x4074f4(0x19e),_0x32e2b9[_0x4074f4(0x198)]=_0x4074f4(0x198),_0x32e2b9[_0x4074f4(0x18b)]=_0x4074f4(0x18b),_0x32e2b9['Folio']=_0x4074f4(0x1a8),_0x32e2b9['A3']='A3',_0x32e2b9['A4']='A4',_0x32e2b9['A5']='A5',_0x32e2b9['B4']='B4',_0x32e2b9['B5']='B5',_0x32e2b9))(o||{}),i=(_0x44e90b=>(_0x44e90b['Portrait']='Portrait',_0x44e90b[_0x4074f4(0x180)]=_0x4074f4(0x180),_0x44e90b))(i||{}),w=(_0xf6262f=>(_0xf6262f[_0x4074f4(0x186)]=_0x4074f4(0x186),_0xf6262f['FitWidth']=_0x4074f4(0x183),_0xf6262f[_0x4074f4(0x18f)]=_0x4074f4(0x18f),_0xf6262f[_0x4074f4(0x19b)]=_0x4074f4(0x19b),_0xf6262f['Custom']=_0x4074f4(0x1a2),_0xf6262f))(w||{}),m=(_0x334156=>(_0x334156['Start']='Start',_0x334156[_0x4074f4(0x194)]=_0x4074f4(0x194),_0x334156['Middle']=_0x4074f4(0x1a9),_0x334156))(m||{}),e=(_0x5d9f19=>(_0x5d9f19[_0x4074f4(0x181)]='Normal',_0x5d9f19[_0x4074f4(0x196)]=_0x4074f4(0x196),_0x5d9f19[_0x4074f4(0x1a3)]=_0x4074f4(0x1a3),_0x5d9f19[_0x4074f4(0x189)]='None',_0x5d9f19))(e||{});function _0x3133(){const _0x3fb05a=['offline-printing-css','FitPage','84qpMEyf','innerHTML','Legal','printing-canvas','156632SBjnWP',',\x20.','Custom','Wide','4879060qRGDUR','757438Hbluwj','1032KfWPBu','10048IWLjrs','Folio','Middle','Letter','style','Landscape','Normal','Portrait','FitWidth','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','printing-canvas-container','Origin','\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.','1xnkLIA','None','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Executive','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.','2830RUGheb','createElement','FitHeight','px\x20','16893oXrTlf','Tabloid','14270146XTUFqu','End','9389472BJAWTy','Narrow','\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','Statement','className'];_0x3133=function(){return _0x3fb05a;};return _0x3133();}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[_0x4074f4(0x18b)]]:{'w':0x2b8,'h':0x3f0},[o[_0x4074f4(0x1a8)]]:{'w':0x330,'h':0x4e0},[o[_0x4074f4(0x19e)]]:{'w':0x330,'h':0x540},[o[_0x4074f4(0x17e)]]:{'w':0x330,'h':0x420},[o[_0x4074f4(0x198)]]:{'w':0x210,'h':0x330},[o[_0x4074f4(0x192)]]:{'w':0x420,'h':0x660}},v={[e[_0x4074f4(0x181)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x4074f4(0x196)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0x4074f4(0x1a3)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x4074f4(0x189)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x4074f4(0x185),p=_0x4074f4(0x19f);function N(_0x25a3d0,_0x3e4820){const _0x203c55=_0x4074f4,{w:_0x20e310,h:_0x2f2d7d}=g[_0x25a3d0],_0x432a56=_0x3e4820===i[_0x203c55(0x182)]?_0x20e310:_0x2f2d7d,_0x5dfdba=_0x3e4820===i[_0x203c55(0x182)]?_0x2f2d7d:_0x20e310,_0x1b7533=_0x203c55(0x197)+_0x432a56+_0x203c55(0x190)+_0x5dfdba+_0x203c55(0x18c)+l+_0x203c55(0x1a1)+l+_0x203c55(0x187)+p+_0x203c55(0x18a)+_0x5dfdba+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x432a56+_0x203c55(0x184),_0x57a138=document[_0x203c55(0x18e)](_0x203c55(0x17f));return _0x57a138[_0x203c55(0x19d)]=_0x1b7533,_0x57a138[_0x203c55(0x199)]=_0x203c55(0x19a),_0x57a138;}function _0x3a0b(_0x2bd692,_0x358303){const _0x313399=_0x3133();return _0x3a0b=function(_0x3a0bcf,_0x1a9ce7){_0x3a0bcf=_0x3a0bcf-0x17e;let _0x1b89d6=_0x313399[_0x3a0bcf];return _0x1b89d6;},_0x3a0b(_0x2bd692,_0x358303);}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};
@@ -0,0 +1,10 @@
1
+ import { PrintPaperMargin, PrintPaperSize, IPrintMargin } from './types';
2
+ interface IPaperSize {
3
+ w: number;
4
+ h: number;
5
+ }
6
+ export declare const PaperSizePxMap: Record<PrintPaperSize, IPaperSize>;
7
+ export declare const PaperMarginMap: Record<PrintPaperMargin, IPrintMargin>;
8
+ export declare const PRINT_CONTAINER_CLASS = "printing-canvas-container";
9
+ export declare const PRINT_CANVAS_CLASS = "printing-canvas";
10
+ export {};
@@ -0,0 +1,3 @@
1
+ export { PaperSizePxMap, PRINT_CANVAS_CLASS, PRINT_CONTAINER_CLASS, PaperMarginMap, } from './constant';
2
+ export { type IPrintMargin, PrintAlign, PrintDirection, PrintPaperMargin, PrintPaperSize, PrintScale } from './types';
3
+ export { createPrintStyle } from './util';
@@ -0,0 +1,41 @@
1
+ export declare enum PrintPaperSize {
2
+ Letter = "Letter",
3
+ Tabloid = "Tabloid",
4
+ Legal = "Legal",
5
+ Statement = "Statement",
6
+ Executive = "Executive",
7
+ Folio = "Folio",
8
+ A3 = "A3",
9
+ A4 = "A4",
10
+ A5 = "A5",
11
+ B4 = "B4",
12
+ B5 = "B5"
13
+ }
14
+ export declare enum PrintDirection {
15
+ Portrait = "Portrait",
16
+ Landscape = "Landscape"
17
+ }
18
+ export declare enum PrintScale {
19
+ Origin = "Origin",
20
+ FitWidth = "FitWidth",
21
+ FitHeight = "FitHeight",
22
+ FitPage = "FitPage",
23
+ Custom = "Custom"
24
+ }
25
+ export declare enum PrintAlign {
26
+ Start = "Start",
27
+ End = "End",
28
+ Middle = "Middle"
29
+ }
30
+ export declare enum PrintPaperMargin {
31
+ Normal = "Normal",
32
+ Narrow = "Narrow",
33
+ Wide = "Wide",
34
+ None = "None"
35
+ }
36
+ export interface IPrintMargin {
37
+ top: number;
38
+ left: number;
39
+ right: number;
40
+ bottom: number;
41
+ }
@@ -0,0 +1,2 @@
1
+ import { PrintDirection, PrintPaperSize } from './types';
2
+ export declare function createPrintStyle(paperSize: PrintPaperSize, direction: PrintDirection): HTMLStyleElement;
@@ -1,63 +1 @@
1
- export declare function createPrintStyle(paperSize: PrintPaperSize, direction: PrintDirection): HTMLStyleElement;
2
-
3
- declare interface IPaperSize {
4
- w: number;
5
- h: number;
6
- }
7
-
8
- export declare interface IPrintMargin {
9
- top: number;
10
- left: number;
11
- right: number;
12
- bottom: number;
13
- }
14
-
15
- export declare const PaperMarginMap: Record<PrintPaperMargin, IPrintMargin>;
16
-
17
- export declare const PaperSizePxMap: Record<PrintPaperSize, IPaperSize>;
18
-
19
- export declare const PRINT_CANVAS_CLASS = "printing-canvas";
20
-
21
- export declare const PRINT_CONTAINER_CLASS = "printing-canvas-container";
22
-
23
- export declare enum PrintAlign {
24
- Start = "Start",
25
- End = "End",
26
- Middle = "Middle"
27
- }
28
-
29
- export declare enum PrintDirection {
30
- Portrait = "Portrait",
31
- Landscape = "Landscape"
32
- }
33
-
34
- export declare enum PrintPaperMargin {
35
- Normal = "Normal",
36
- Narrow = "Narrow",
37
- Wide = "Wide",
38
- None = "None"
39
- }
40
-
41
- export declare enum PrintPaperSize {
42
- Letter = "Letter",
43
- Tabloid = "Tabloid",
44
- Legal = "Legal",
45
- Statement = "Statement",
46
- Executive = "Executive",
47
- Folio = "Folio",
48
- A3 = "A3",
49
- A4 = "A4",
50
- A5 = "A5",
51
- B4 = "B4",
52
- B5 = "B5"
53
- }
54
-
55
- export declare enum PrintScale {
56
- Origin = "Origin",
57
- FitWidth = "FitWidth",
58
- FitHeight = "FitHeight",
59
- FitPage = "FitPage",
60
- Custom = "Custom"
61
- }
62
-
63
- export { }
1
+ export * from './common';
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0xd405bb,_0x87bced){const _0x47364f=_0x3d95,_0x24108c=_0xd405bb();while(!![]){try{const _0x2c8d2a=-parseInt(_0x47364f(0x1e7))/0x1+-parseInt(_0x47364f(0x1f7))/0x2*(-parseInt(_0x47364f(0x1dd))/0x3)+parseInt(_0x47364f(0x1e5))/0x4+-parseInt(_0x47364f(0x1dc))/0x5*(-parseInt(_0x47364f(0x1c8))/0x6)+parseInt(_0x47364f(0x1f4))/0x7+-parseInt(_0x47364f(0x1db))/0x8+parseInt(_0x47364f(0x1d6))/0x9*(-parseInt(_0x47364f(0x1e1))/0xa);if(_0x2c8d2a===_0x87bced)break;else _0x24108c['push'](_0x24108c['shift']());}catch(_0x4b647f){_0x24108c['push'](_0x24108c['shift']());}}}(_0x3d82,0x6fa92),function(_0x2f9666,_0x15967f){const _0x35bd86=_0x3d95;typeof exports==_0x35bd86(0x1ee)&&typeof module<'u'?_0x15967f(exports):typeof define==_0x35bd86(0x1cb)&&define['amd']?define([_0x35bd86(0x1d1)],_0x15967f):(_0x2f9666=typeof globalThis<'u'?globalThis:_0x2f9666||self,_0x15967f(_0x2f9666[_0x35bd86(0x1e0)]={}));}(this,function(_0x42b097){'use strict';const _0xb5513b=_0x3d95;var _0x4f2109=(_0x514080=>(_0x514080[_0xb5513b(0x1e9)]=_0xb5513b(0x1e9),_0x514080[_0xb5513b(0x1f9)]=_0xb5513b(0x1f9),_0x514080[_0xb5513b(0x1ef)]='Legal',_0x514080[_0xb5513b(0x1d3)]=_0xb5513b(0x1d3),_0x514080[_0xb5513b(0x1ec)]=_0xb5513b(0x1ec),_0x514080[_0xb5513b(0x1f2)]='Folio',_0x514080['A3']='A3',_0x514080['A4']='A4',_0x514080['A5']='A5',_0x514080['B4']='B4',_0x514080['B5']='B5',_0x514080))(_0x4f2109||{}),_0x5d1bb1=(_0x4d8162=>(_0x4d8162[_0xb5513b(0x1ca)]='Portrait',_0x4d8162[_0xb5513b(0x1f1)]=_0xb5513b(0x1f1),_0x4d8162))(_0x5d1bb1||{}),_0x220b10=(_0x38fab5=>(_0x38fab5[_0xb5513b(0x1f0)]=_0xb5513b(0x1f0),_0x38fab5[_0xb5513b(0x1c6)]=_0xb5513b(0x1c6),_0x38fab5['FitHeight']=_0xb5513b(0x1fc),_0x38fab5[_0xb5513b(0x1de)]='FitPage',_0x38fab5[_0xb5513b(0x1f3)]='Custom',_0x38fab5))(_0x220b10||{}),_0x2787c5=(_0x1e3289=>(_0x1e3289[_0xb5513b(0x1cc)]=_0xb5513b(0x1cc),_0x1e3289[_0xb5513b(0x1d7)]=_0xb5513b(0x1d7),_0x1e3289[_0xb5513b(0x1e8)]='Middle',_0x1e3289))(_0x2787c5||{}),_0x4cfcd5=(_0x8123df=>(_0x8123df[_0xb5513b(0x1ea)]=_0xb5513b(0x1ea),_0x8123df[_0xb5513b(0x1d4)]=_0xb5513b(0x1d4),_0x8123df[_0xb5513b(0x1cd)]=_0xb5513b(0x1cd),_0x8123df['None']=_0xb5513b(0x1d0),_0x8123df))(_0x4cfcd5||{});const _0x2ccb77={[_0x4f2109['A3']]:{'w':0x463,'h':0x633},[_0x4f2109['A4']]:{'w':0x31a,'h':0x464},[_0x4f2109['A5']]:{'w':0x22f,'h':0x31a},[_0x4f2109['B4']]:{'w':0x3b0,'h':0x540},[_0x4f2109['B5']]:{'w':0x299,'h':0x3b0},[_0x4f2109['Executive']]:{'w':0x2b8,'h':0x3f0},[_0x4f2109[_0xb5513b(0x1f2)]]:{'w':0x330,'h':0x4e0},[_0x4f2109[_0xb5513b(0x1ef)]]:{'w':0x330,'h':0x540},[_0x4f2109[_0xb5513b(0x1e9)]]:{'w':0x330,'h':0x420},[_0x4f2109['Statement']]:{'w':0x210,'h':0x330},[_0x4f2109[_0xb5513b(0x1f9)]]:{'w':0x420,'h':0x660}},_0x1b09ad={[_0x4cfcd5[_0xb5513b(0x1ea)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x4cfcd5['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x4cfcd5[_0xb5513b(0x1cd)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x4cfcd5[_0xb5513b(0x1d0)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x12609f='printing-canvas-container',_0x590fa5=_0xb5513b(0x1ce);function _0x194eb1(_0x4abb63,_0x141a36){const _0x462137=_0xb5513b,{w:_0x36894f,h:_0x4db716}=_0x2ccb77[_0x4abb63],_0x58a014=_0x141a36===_0x5d1bb1[_0x462137(0x1ca)]?_0x36894f:_0x4db716,_0x5b2efd=_0x141a36===_0x5d1bb1[_0x462137(0x1ca)]?_0x4db716:_0x36894f,_0x225f64='\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'+_0x58a014+_0x462137(0x1e6)+_0x5b2efd+_0x462137(0x1d8)+_0x12609f+_0x462137(0x1e2)+_0x12609f+'\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.'+_0x590fa5+_0x462137(0x1d9)+_0x5b2efd+_0x462137(0x1c7)+_0x58a014+_0x462137(0x1df),_0x401da4=document[_0x462137(0x1cf)](_0x462137(0x1f6));return _0x401da4[_0x462137(0x1e4)]=_0x225f64,_0x401da4[_0x462137(0x1fb)]=_0x462137(0x1f8),_0x401da4;}_0x42b097[_0xb5513b(0x1eb)]=_0x590fa5,_0x42b097[_0xb5513b(0x1da)]=_0x12609f,_0x42b097[_0xb5513b(0x1fa)]=_0x1b09ad,_0x42b097[_0xb5513b(0x1e3)]=_0x2ccb77,_0x42b097[_0xb5513b(0x1ed)]=_0x2787c5,_0x42b097[_0xb5513b(0x1f5)]=_0x5d1bb1,_0x42b097['PrintPaperMargin']=_0x4cfcd5,_0x42b097['PrintPaperSize']=_0x4f2109,_0x42b097[_0xb5513b(0x1d2)]=_0x220b10,_0x42b097[_0xb5513b(0x1d5)]=_0x194eb1,Object['defineProperty'](_0x42b097,Symbol[_0xb5513b(0x1c9)],{'value':'Module'});}));function _0x3d95(_0x292ad6,_0xb48340){const _0x3d822b=_0x3d82();return _0x3d95=function(_0x3d95da,_0x17d469){_0x3d95da=_0x3d95da-0x1c6;let _0x4266e7=_0x3d822b[_0x3d95da];return _0x4266e7;},_0x3d95(_0x292ad6,_0xb48340);}function _0x3d82(){const _0x2f9f8f=['function','Start','Wide','printing-canvas','createElement','None','exports','PrintScale','Statement','Narrow','createPrintStyle','47853JtDWWB','End','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.','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','PRINT_CONTAINER_CLASS','5871912QIyFRW','84815rAZKVa','508440tZawIb','FitPage','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','UniverPrint','1590tdsijc',',\x20.','PaperSizePxMap','innerHTML','2207480nAihDa','px\x20','901586YPSoBL','Middle','Letter','Normal','PRINT_CANVAS_CLASS','Executive','PrintAlign','object','Legal','Origin','Landscape','Folio','Custom','5905109BTscbf','PrintDirection','style','10rFMJXZ','offline-printing-css','Tabloid','PaperMarginMap','className','FitHeight','FitWidth','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','246UJcWBN','toStringTag','Portrait'];_0x3d82=function(){return _0x2f9f8f;};return _0x3d82();}
1
+ function _0xc9d3(_0x257edb,_0x5bef46){const _0xcce146=_0xcce1();return _0xc9d3=function(_0xc9d3c9,_0x1f9ae5){_0xc9d3c9=_0xc9d3c9-0x81;let _0x3fc890=_0xcce146[_0xc9d3c9];return _0x3fc890;},_0xc9d3(_0x257edb,_0x5bef46);}(function(_0x171c35,_0x4fe192){const _0x336358=_0xc9d3,_0x52bc40=_0x171c35();while(!![]){try{const _0x2dea1a=-parseInt(_0x336358(0x98))/0x1*(-parseInt(_0x336358(0x87))/0x2)+parseInt(_0x336358(0x94))/0x3*(-parseInt(_0x336358(0x8d))/0x4)+-parseInt(_0x336358(0xb7))/0x5*(-parseInt(_0x336358(0x88))/0x6)+-parseInt(_0x336358(0xad))/0x7+parseInt(_0x336358(0x9d))/0x8*(-parseInt(_0x336358(0x8a))/0x9)+parseInt(_0x336358(0xac))/0xa*(parseInt(_0x336358(0x97))/0xb)+parseInt(_0x336358(0x9b))/0xc;if(_0x2dea1a===_0x4fe192)break;else _0x52bc40['push'](_0x52bc40['shift']());}catch(_0x45e99c){_0x52bc40['push'](_0x52bc40['shift']());}}}(_0xcce1,0xb5e27),function(_0x3b7f7b,_0x63a194){const _0x501ee4=_0xc9d3;typeof exports=='object'&&typeof module<'u'?_0x63a194(exports):typeof define==_0x501ee4(0x84)&&define[_0x501ee4(0xb8)]?define([_0x501ee4(0x90)],_0x63a194):(_0x3b7f7b=typeof globalThis<'u'?globalThis:_0x3b7f7b||self,_0x63a194(_0x3b7f7b[_0x501ee4(0x83)]={}));}(this,function(_0x414be3){'use strict';const _0x43ed6f=_0xc9d3;var _0x1c7613=(_0x5bf348=>(_0x5bf348[_0x43ed6f(0xb1)]=_0x43ed6f(0xb1),_0x5bf348[_0x43ed6f(0x96)]=_0x43ed6f(0x96),_0x5bf348['Legal']=_0x43ed6f(0x8b),_0x5bf348['Statement']=_0x43ed6f(0x9c),_0x5bf348[_0x43ed6f(0x8f)]='Executive',_0x5bf348['Folio']=_0x43ed6f(0x91),_0x5bf348['A3']='A3',_0x5bf348['A4']='A4',_0x5bf348['A5']='A5',_0x5bf348['B4']='B4',_0x5bf348['B5']='B5',_0x5bf348))(_0x1c7613||{}),_0x117542=(_0x486dcf=>(_0x486dcf['Portrait']=_0x43ed6f(0x89),_0x486dcf[_0x43ed6f(0xa9)]=_0x43ed6f(0xa9),_0x486dcf))(_0x117542||{}),_0x56c177=(_0x45b467=>(_0x45b467[_0x43ed6f(0xaa)]=_0x43ed6f(0xaa),_0x45b467['FitWidth']=_0x43ed6f(0x99),_0x45b467['FitHeight']=_0x43ed6f(0xa1),_0x45b467[_0x43ed6f(0xa2)]='FitPage',_0x45b467[_0x43ed6f(0x86)]='Custom',_0x45b467))(_0x56c177||{}),_0x5cadb8=(_0x36cc5a=>(_0x36cc5a[_0x43ed6f(0x9f)]='Start',_0x36cc5a[_0x43ed6f(0xb9)]=_0x43ed6f(0xb9),_0x36cc5a[_0x43ed6f(0xb0)]=_0x43ed6f(0xb0),_0x36cc5a))(_0x5cadb8||{}),_0x194581=(_0x441dec=>(_0x441dec['Normal']=_0x43ed6f(0xb6),_0x441dec[_0x43ed6f(0xb5)]=_0x43ed6f(0xb5),_0x441dec[_0x43ed6f(0x95)]=_0x43ed6f(0x95),_0x441dec['None']=_0x43ed6f(0xb2),_0x441dec))(_0x194581||{});const _0x578c78={[_0x1c7613['A3']]:{'w':0x463,'h':0x633},[_0x1c7613['A4']]:{'w':0x31a,'h':0x464},[_0x1c7613['A5']]:{'w':0x22f,'h':0x31a},[_0x1c7613['B4']]:{'w':0x3b0,'h':0x540},[_0x1c7613['B5']]:{'w':0x299,'h':0x3b0},[_0x1c7613[_0x43ed6f(0x8f)]]:{'w':0x2b8,'h':0x3f0},[_0x1c7613[_0x43ed6f(0x91)]]:{'w':0x330,'h':0x4e0},[_0x1c7613['Legal']]:{'w':0x330,'h':0x540},[_0x1c7613[_0x43ed6f(0xb1)]]:{'w':0x330,'h':0x420},[_0x1c7613['Statement']]:{'w':0x210,'h':0x330},[_0x1c7613[_0x43ed6f(0x96)]]:{'w':0x420,'h':0x660}},_0x2be7b1={[_0x194581[_0x43ed6f(0xb6)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x194581[_0x43ed6f(0xb5)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x194581[_0x43ed6f(0x95)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x194581[_0x43ed6f(0xb2)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x239ed4=_0x43ed6f(0x9a),_0x429307='printing-canvas';function _0x34e35d(_0x11c330,_0x246eda){const _0x1c7d97=_0x43ed6f,{w:_0x2d5685,h:_0x2412ab}=_0x578c78[_0x11c330],_0x1f6cb2=_0x246eda===_0x117542[_0x1c7d97(0x89)]?_0x2d5685:_0x2412ab,_0x55dd3c=_0x246eda===_0x117542[_0x1c7d97(0x89)]?_0x2412ab:_0x2d5685,_0x3ecc04=_0x1c7d97(0xb3)+_0x1f6cb2+'px\x20'+_0x55dd3c+'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.'+_0x239ed4+_0x1c7d97(0xa3)+_0x239ed4+_0x1c7d97(0xaf)+_0x429307+_0x1c7d97(0xa6)+_0x55dd3c+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x1f6cb2+_0x1c7d97(0x9e),_0x5c3410=document[_0x1c7d97(0xa4)](_0x1c7d97(0x81));return _0x5c3410[_0x1c7d97(0x82)]=_0x3ecc04,_0x5c3410[_0x1c7d97(0xab)]='offline-printing-css',_0x5c3410;}_0x414be3[_0x43ed6f(0x93)]=_0x429307,_0x414be3[_0x43ed6f(0xae)]=_0x239ed4,_0x414be3[_0x43ed6f(0xb4)]=_0x2be7b1,_0x414be3[_0x43ed6f(0x8e)]=_0x578c78,_0x414be3[_0x43ed6f(0xa8)]=_0x5cadb8,_0x414be3[_0x43ed6f(0x85)]=_0x117542,_0x414be3['PrintPaperMargin']=_0x194581,_0x414be3[_0x43ed6f(0x8c)]=_0x1c7613,_0x414be3[_0x43ed6f(0x92)]=_0x56c177,_0x414be3[_0x43ed6f(0xa5)]=_0x34e35d,Object['defineProperty'](_0x414be3,Symbol[_0x43ed6f(0xa7)],{'value':_0x43ed6f(0xa0)});}));function _0xcce1(){const _0x1540ae=['13836360mcwmcN','Statement','1902576DlWPpo','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Start','Module','FitHeight','FitPage',',\x20.','createElement','createPrintStyle','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','toStringTag','PrintAlign','Landscape','Origin','className','1050IfomkC','9145059PXSfIK','PRINT_CONTAINER_CLASS','\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.','Middle','Letter','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','PaperMarginMap','Narrow','Normal','2935945tlNzmu','amd','End','style','innerHTML','UniverProPrint','function','PrintDirection','Custom','22JOftYV','6fBgzbf','Portrait','45netxHc','Legal','PrintPaperSize','8npcjTW','PaperSizePxMap','Executive','exports','Folio','PrintScale','PRINT_CANVAS_CLASS','589890jBMTGc','Wide','Tabloid','131714GnUkxn','57847PQjmhW','FitWidth','printing-canvas-container'];_0xcce1=function(){return _0x1540ae;};return _0xcce1();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/print",
3
- "version": "0.5.0-alpha.0",
3
+ "version": "0.5.0-beta.0",
4
4
  "private": false,
5
5
  "description": "Print module for UniverJS",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -42,10 +42,10 @@
42
42
  "lib"
43
43
  ],
44
44
  "devDependencies": {
45
- "typescript": "5.6.3",
46
- "vite": "^5.4.10",
47
- "vitest": "^2.1.4",
48
- "@univerjs-infra/shared": "0.5.0-alpha.0"
45
+ "typescript": "^5.6.3",
46
+ "vite": "^5.4.11",
47
+ "vitest": "^2.1.5",
48
+ "@univerjs-infra/shared": "0.5.0-beta.0"
49
49
  },
50
50
  "space": {
51
51
  ".": {
@@ -65,7 +65,7 @@
65
65
  "test:watch": "vitest",
66
66
  "coverage": "vitest run --coverage",
67
67
  "lint:types": "tsc --noEmit",
68
- "build": "tsx build.ts"
68
+ "build": "univer-cli build"
69
69
  },
70
70
  "module": "./lib/es/index.js"
71
71
  }