@univerjs-pro/print 0.3.0-alpha.1 → 0.3.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 _0x4606d5=_0x5bbb;(function(_0x161977,_0x28ab39){const _0x16fb35=_0x5bbb,_0x372a10=_0x161977();while(!![]){try{const _0x250811=-parseInt(_0x16fb35(0x1fc))/0x1+parseInt(_0x16fb35(0x1e7))/0x2+-parseInt(_0x16fb35(0x1e3))/0x3*(parseInt(_0x16fb35(0x206))/0x4)+parseInt(_0x16fb35(0x1ec))/0x5*(-parseInt(_0x16fb35(0x1dc))/0x6)+-parseInt(_0x16fb35(0x1df))/0x7+-parseInt(_0x16fb35(0x201))/0x8*(-parseInt(_0x16fb35(0x1dd))/0x9)+parseInt(_0x16fb35(0x207))/0xa;if(_0x250811===_0x28ab39)break;else _0x372a10['push'](_0x372a10['shift']());}catch(_0x57697a){_0x372a10['push'](_0x372a10['shift']());}}}(_0xa0f6,0x62439));Object[_0x4606d5(0x1fa)](exports,Symbol[_0x4606d5(0x1e2)],{'value':_0x4606d5(0x1f2)});var e=(_0x38305a=>(_0x38305a[_0x4606d5(0x1e0)]='Letter',_0x38305a[_0x4606d5(0x1db)]=_0x4606d5(0x1db),_0x38305a['Legal']=_0x4606d5(0x1fd),_0x38305a[_0x4606d5(0x20a)]=_0x4606d5(0x20a),_0x38305a[_0x4606d5(0x1eb)]='Executive',_0x38305a[_0x4606d5(0x205)]=_0x4606d5(0x205),_0x38305a['A3']='A3',_0x38305a['A4']='A4',_0x38305a['A5']='A5',_0x38305a['B4']='B4',_0x38305a['B5']='B5',_0x38305a))(e||{}),i=(_0x24fbd4=>(_0x24fbd4['Portrait']=_0x4606d5(0x1f3),_0x24fbd4[_0x4606d5(0x1e1)]=_0x4606d5(0x1e1),_0x24fbd4))(i||{}),c=(_0x5362bf=>(_0x5362bf[_0x4606d5(0x209)]=_0x4606d5(0x209),_0x5362bf['FitWidth']=_0x4606d5(0x200),_0x5362bf['FitHeight']='FitHeight',_0x5362bf['FitPage']=_0x4606d5(0x204),_0x5362bf[_0x4606d5(0x1f5)]='Custom',_0x5362bf))(c||{}),g=(_0xdc485a=>(_0xdc485a[_0x4606d5(0x1f6)]='Start',_0xdc485a['End']='End',_0xdc485a[_0x4606d5(0x1f9)]=_0x4606d5(0x1f9),_0xdc485a))(g||{}),o=(_0x41b0de=>(_0x41b0de[_0x4606d5(0x1de)]=_0x4606d5(0x1de),_0x41b0de['Narrow']=_0x4606d5(0x20c),_0x41b0de[_0x4606d5(0x1f7)]=_0x4606d5(0x1f7),_0x41b0de[_0x4606d5(0x202)]=_0x4606d5(0x202),_0x41b0de))(o||{});function _0x5bbb(_0x44e0fc,_0x3b9acc){const _0xa0f638=_0xa0f6();return _0x5bbb=function(_0x5bbbb8,_0x447829){_0x5bbbb8=_0x5bbbb8-0x1db;let _0x17a873=_0xa0f638[_0x5bbbb8];return _0x17a873;},_0x5bbb(_0x44e0fc,_0x3b9acc);}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[_0x4606d5(0x1eb)]]:{'w':0x2b8,'h':0x3f0},[e[_0x4606d5(0x205)]]:{'w':0x330,'h':0x4e0},[e[_0x4606d5(0x1fd)]]:{'w':0x330,'h':0x540},[e[_0x4606d5(0x1e0)]]:{'w':0x330,'h':0x420},[e[_0x4606d5(0x20a)]]:{'w':0x210,'h':0x330},[e[_0x4606d5(0x1db)]]:{'w':0x420,'h':0x660}},N={[o[_0x4606d5(0x1de)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x4606d5(0x20c)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x4606d5(0x1f7)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x4606d5(0x1e5),p=_0x4606d5(0x20e);function A(_0x2fed41,_0x219dd3){const _0x54825a=_0x4606d5,{w:_0x4c2d4f,h:_0x180330}=m[_0x2fed41],_0x343290=_0x219dd3===i[_0x54825a(0x1f3)]?_0x4c2d4f:_0x180330,_0x21bac7=_0x219dd3===i[_0x54825a(0x1f3)]?_0x180330:_0x4c2d4f,_0x2a9109=_0x54825a(0x1e4)+_0x343290+_0x54825a(0x1e6)+_0x21bac7+_0x54825a(0x1ea)+n+',\x20.'+n+_0x54825a(0x20d)+p+_0x54825a(0x203)+_0x21bac7+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x343290+_0x54825a(0x1f0),_0x458670=document[_0x54825a(0x208)]('style');return _0x458670[_0x54825a(0x1fb)]=_0x2a9109,_0x458670[_0x54825a(0x1f1)]=_0x54825a(0x1ed),_0x458670;}function _0xa0f6(){const _0x2bdce9=['PaperSizePxMap','PaperMarginMap','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','className','Module','Portrait','PRINT_CONTAINER_CLASS','Custom','Start','Wide','PrintAlign','Middle','defineProperty','innerHTML','533571yaECuA','Legal','PrintPaperSize','PrintDirection','FitWidth','8DcFpzi','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','FitPage','Folio','4IzEonk','9205500lGjakI','createElement','Origin','Statement','PRINT_CANVAS_CLASS','Narrow','\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','PrintScale','Tabloid','41190FHcYWd','2524563MkNqFZ','Normal','1613696qOxuCD','Letter','Landscape','toStringTag','16509tdIpaL','\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','px\x20','916898GrwJwn','PrintPaperMargin','createPrintStyle','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.','Executive','355XSyDKk','offline-printing-css'];_0xa0f6=function(){return _0x2bdce9;};return _0xa0f6();}exports[_0x4606d5(0x20b)]=p,exports[_0x4606d5(0x1f4)]=n,exports[_0x4606d5(0x1ef)]=N,exports[_0x4606d5(0x1ee)]=m,exports[_0x4606d5(0x1f8)]=g,exports[_0x4606d5(0x1ff)]=i,exports[_0x4606d5(0x1e8)]=o,exports[_0x4606d5(0x1fe)]=e,exports[_0x4606d5(0x20f)]=c,exports[_0x4606d5(0x1e9)]=A;
1
+ 'use strict';const _0x516e75=_0x5172;function _0x5172(_0x1ca736,_0x421663){const _0x19fdf9=_0x19fd();return _0x5172=function(_0x51720f,_0x4bb10c){_0x51720f=_0x51720f-0xd0;let _0x296e6f=_0x19fdf9[_0x51720f];return _0x296e6f;},_0x5172(_0x1ca736,_0x421663);}(function(_0x478dad,_0x18bee4){const _0x38fe04=_0x5172,_0x10a429=_0x478dad();while(!![]){try{const _0x2c71b2=parseInt(_0x38fe04(0xfc))/0x1+parseInt(_0x38fe04(0xde))/0x2+-parseInt(_0x38fe04(0xe7))/0x3*(parseInt(_0x38fe04(0xf9))/0x4)+-parseInt(_0x38fe04(0xfd))/0x5*(parseInt(_0x38fe04(0xfb))/0x6)+parseInt(_0x38fe04(0xed))/0x7+-parseInt(_0x38fe04(0x100))/0x8*(parseInt(_0x38fe04(0xe2))/0x9)+-parseInt(_0x38fe04(0xff))/0xa*(parseInt(_0x38fe04(0xfa))/0xb);if(_0x2c71b2===_0x18bee4)break;else _0x10a429['push'](_0x10a429['shift']());}catch(_0x584439){_0x10a429['push'](_0x10a429['shift']());}}}(_0x19fd,0x88b04));function _0x19fd(){const _0x1268b2=['Wide','Module','\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.','style','Custom','1655448kNEAei','11MpZBkg','1315302CSYYeq','970460WQWjzY','5GZqSYX','End','227380piobaB','6176chEPMW','Middle','Letter','PRINT_CANVAS_CLASS','Start','Statement','Tabloid','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','createPrintStyle','PaperSizePxMap','FitHeight','createElement','Legal','FitPage','Origin','px\x20','54466gLDXGn','printing-canvas','Folio','toStringTag','945GOebie','PrintDirection','PRINT_CONTAINER_CLASS','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Normal','3yKsLQd','PrintPaperMargin','innerHTML','Landscape','\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','2093420PxFcjb','FitWidth','Narrow','PaperMarginMap','Portrait','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','None'];_0x19fd=function(){return _0x1268b2;};return _0x19fd();}Object['defineProperty'](exports,Symbol[_0x516e75(0xe1)],{'value':_0x516e75(0xf5)});var e=(_0x53b99f=>(_0x53b99f[_0x516e75(0xd0)]=_0x516e75(0xd0),_0x53b99f[_0x516e75(0xd4)]=_0x516e75(0xd4),_0x53b99f[_0x516e75(0xda)]='Legal',_0x53b99f[_0x516e75(0xd3)]='Statement',_0x53b99f[_0x516e75(0xec)]=_0x516e75(0xec),_0x53b99f[_0x516e75(0xe0)]='Folio',_0x53b99f['A3']='A3',_0x53b99f['A4']='A4',_0x53b99f['A5']='A5',_0x53b99f['B4']='B4',_0x53b99f['B5']='B5',_0x53b99f))(e||{}),i=(_0x55f2fa=>(_0x55f2fa['Portrait']=_0x516e75(0xf1),_0x55f2fa[_0x516e75(0xea)]=_0x516e75(0xea),_0x55f2fa))(i||{}),c=(_0x4b5daf=>(_0x4b5daf[_0x516e75(0xdc)]=_0x516e75(0xdc),_0x4b5daf[_0x516e75(0xee)]=_0x516e75(0xee),_0x4b5daf[_0x516e75(0xd8)]=_0x516e75(0xd8),_0x4b5daf[_0x516e75(0xdb)]=_0x516e75(0xdb),_0x4b5daf['Custom']=_0x516e75(0xf8),_0x4b5daf))(c||{}),g=(_0x35c72d=>(_0x35c72d[_0x516e75(0xd2)]='Start',_0x35c72d[_0x516e75(0xfe)]=_0x516e75(0xfe),_0x35c72d[_0x516e75(0x101)]=_0x516e75(0x101),_0x35c72d))(g||{}),o=(_0x2e31d4=>(_0x2e31d4[_0x516e75(0xe6)]='Normal',_0x2e31d4[_0x516e75(0xef)]=_0x516e75(0xef),_0x2e31d4[_0x516e75(0xf4)]=_0x516e75(0xf4),_0x2e31d4[_0x516e75(0xf3)]=_0x516e75(0xf3),_0x2e31d4))(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[_0x516e75(0xec)]]:{'w':0x2b8,'h':0x3f0},[e[_0x516e75(0xe0)]]:{'w':0x330,'h':0x4e0},[e['Legal']]:{'w':0x330,'h':0x540},[e[_0x516e75(0xd0)]]:{'w':0x330,'h':0x420},[e[_0x516e75(0xd3)]]:{'w':0x210,'h':0x330},[e[_0x516e75(0xd4)]]:{'w':0x420,'h':0x660}},N={[o[_0x516e75(0xe6)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x516e75(0xf4)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n='printing-canvas-container',p=_0x516e75(0xdf);function A(_0x535dd4,_0x44ec5a){const _0x3f7b56=_0x516e75,{w:_0x264de5,h:_0x4078b0}=m[_0x535dd4],_0x55863a=_0x44ec5a===i[_0x3f7b56(0xf1)]?_0x264de5:_0x4078b0,_0x1cafd4=_0x44ec5a===i[_0x3f7b56(0xf1)]?_0x4078b0:_0x264de5,_0x2a89bc=_0x3f7b56(0xeb)+_0x55863a+_0x3f7b56(0xdd)+_0x1cafd4+'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+_0x3f7b56(0xf6)+p+_0x3f7b56(0xe5)+_0x1cafd4+_0x3f7b56(0xd5)+_0x55863a+_0x3f7b56(0xf2),_0x49606d=document[_0x3f7b56(0xd9)](_0x3f7b56(0xf7));return _0x49606d[_0x3f7b56(0xe9)]=_0x2a89bc,_0x49606d['className']='offline-printing-css',_0x49606d;}exports[_0x516e75(0xd1)]=p,exports[_0x516e75(0xe4)]=n,exports[_0x516e75(0xf0)]=N,exports[_0x516e75(0xd7)]=m,exports['PrintAlign']=g,exports[_0x516e75(0xe3)]=i,exports[_0x516e75(0xe8)]=o,exports['PrintPaperSize']=e,exports['PrintScale']=c,exports[_0x516e75(0xd6)]=A;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x5ebf1a=_0x1255;(function(_0x58fe60,_0x5bc0e2){const _0x57b42c=_0x1255,_0x503839=_0x58fe60();while(!![]){try{const _0x4c0dc8=-parseInt(_0x57b42c(0xdc))/0x1*(parseInt(_0x57b42c(0xd5))/0x2)+-parseInt(_0x57b42c(0xd0))/0x3+parseInt(_0x57b42c(0xde))/0x4+-parseInt(_0x57b42c(0xe3))/0x5*(parseInt(_0x57b42c(0xdd))/0x6)+parseInt(_0x57b42c(0xda))/0x7+parseInt(_0x57b42c(0xc4))/0x8*(parseInt(_0x57b42c(0xd9))/0x9)+parseInt(_0x57b42c(0xe2))/0xa*(-parseInt(_0x57b42c(0xe6))/0xb);if(_0x4c0dc8===_0x5bc0e2)break;else _0x503839['push'](_0x503839['shift']());}catch(_0x238a70){_0x503839['push'](_0x503839['shift']());}}}(_0x1a16,0xdedf9));var o=(_0x469bc0=>(_0x469bc0[_0x5ebf1a(0xc8)]=_0x5ebf1a(0xc8),_0x469bc0[_0x5ebf1a(0xcc)]=_0x5ebf1a(0xcc),_0x469bc0['Legal']=_0x5ebf1a(0xe0),_0x469bc0[_0x5ebf1a(0xc0)]=_0x5ebf1a(0xc0),_0x469bc0[_0x5ebf1a(0xce)]=_0x5ebf1a(0xce),_0x469bc0[_0x5ebf1a(0xc9)]='Folio',_0x469bc0['A3']='A3',_0x469bc0['A4']='A4',_0x469bc0['A5']='A5',_0x469bc0['B4']='B4',_0x469bc0['B5']='B5',_0x469bc0))(o||{}),i=(_0x1a8f5f=>(_0x1a8f5f['Portrait']=_0x5ebf1a(0xe5),_0x1a8f5f['Landscape']=_0x5ebf1a(0xe7),_0x1a8f5f))(i||{}),w=(_0x3f8d39=>(_0x3f8d39[_0x5ebf1a(0xd7)]=_0x5ebf1a(0xd7),_0x3f8d39[_0x5ebf1a(0xc2)]=_0x5ebf1a(0xc2),_0x3f8d39[_0x5ebf1a(0xcd)]='FitHeight',_0x3f8d39[_0x5ebf1a(0xc7)]='FitPage',_0x3f8d39[_0x5ebf1a(0xe4)]=_0x5ebf1a(0xe4),_0x3f8d39))(w||{}),m=(_0x364ef5=>(_0x364ef5['Start']='Start',_0x364ef5['End']=_0x5ebf1a(0xe8),_0x364ef5['Middle']=_0x5ebf1a(0xbf),_0x364ef5))(m||{}),e=(_0x5993dd=>(_0x5993dd[_0x5ebf1a(0xdb)]=_0x5ebf1a(0xdb),_0x5993dd[_0x5ebf1a(0xd8)]=_0x5ebf1a(0xd8),_0x5993dd[_0x5ebf1a(0xdf)]='Wide',_0x5993dd[_0x5ebf1a(0xe9)]=_0x5ebf1a(0xe9),_0x5993dd))(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[_0x5ebf1a(0xce)]]:{'w':0x2b8,'h':0x3f0},[o[_0x5ebf1a(0xc9)]]:{'w':0x330,'h':0x4e0},[o['Legal']]:{'w':0x330,'h':0x540},[o['Letter']]:{'w':0x330,'h':0x420},[o[_0x5ebf1a(0xc0)]]:{'w':0x210,'h':0x330},[o['Tabloid']]:{'w':0x420,'h':0x660}},v={[e[_0x5ebf1a(0xdb)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0x5ebf1a(0xdf)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x5ebf1a(0xe9)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x5ebf1a(0xd4),p=_0x5ebf1a(0xeb);function _0x1255(_0x26bf61,_0x301311){const _0x1a16c5=_0x1a16();return _0x1255=function(_0x12551a,_0x559b6b){_0x12551a=_0x12551a-0xbf;let _0x52c3e7=_0x1a16c5[_0x12551a];return _0x52c3e7;},_0x1255(_0x26bf61,_0x301311);}function N(_0x2bf760,_0x3b3d1e){const _0x28a9fe=_0x5ebf1a,{w:_0x373259,h:_0x27ed39}=g[_0x2bf760],_0x1ba10c=_0x3b3d1e===i['Portrait']?_0x373259:_0x27ed39,_0x4fad98=_0x3b3d1e===i[_0x28a9fe(0xe5)]?_0x27ed39:_0x373259,_0xc94341=_0x28a9fe(0xc3)+_0x1ba10c+_0x28a9fe(0xd1)+_0x4fad98+_0x28a9fe(0xd2)+l+_0x28a9fe(0xc6)+l+_0x28a9fe(0xcf)+p+_0x28a9fe(0xcb)+_0x4fad98+_0x28a9fe(0xc5)+_0x1ba10c+_0x28a9fe(0xc1),_0x1acb9b=document[_0x28a9fe(0xca)](_0x28a9fe(0xd6));return _0x1acb9b[_0x28a9fe(0xd3)]=_0xc94341,_0x1acb9b[_0x28a9fe(0xe1)]=_0x28a9fe(0xea),_0x1acb9b;}function _0x1a16(){const _0x435ecb=['className','8637870GyQEwB','2060165itNaJg','Custom','Portrait','11fRXjnf','Landscape','End','None','offline-printing-css','printing-canvas','Middle','Statement','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','FitWidth','\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','8wGWfTF','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20',',\x20.','FitPage','Letter','Folio','createElement','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Tabloid','FitHeight','Executive','\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.','4421787swYvlY','px\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.','innerHTML','printing-canvas-container','402vgijzW','style','Origin','Narrow','13941549NQinve','5629491rDVGCw','Normal','654odxUXK','6KwHonM','5763272IFHWsV','Wide','Legal'];_0x1a16=function(){return _0x435ecb;};return _0x1a16();}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 _0x4027b5=_0x6001;(function(_0x19ea8b,_0x40ca25){const _0x4c99a3=_0x6001,_0x4744f4=_0x19ea8b();while(!![]){try{const _0x496e11=parseInt(_0x4c99a3(0xcb))/0x1+parseInt(_0x4c99a3(0xcf))/0x2+parseInt(_0x4c99a3(0xd1))/0x3+parseInt(_0x4c99a3(0xd6))/0x4*(parseInt(_0x4c99a3(0xda))/0x5)+-parseInt(_0x4c99a3(0xd0))/0x6+-parseInt(_0x4c99a3(0xd8))/0x7*(parseInt(_0x4c99a3(0xf0))/0x8)+-parseInt(_0x4c99a3(0xeb))/0x9;if(_0x496e11===_0x40ca25)break;else _0x4744f4['push'](_0x4744f4['shift']());}catch(_0x23c69b){_0x4744f4['push'](_0x4744f4['shift']());}}}(_0xddc5,0x3763d));function _0xddc5(){const _0x55a092=['End','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.','8jBMVjy','Letter','FitPage','280405FJrkxj','\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','\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','488514HBLcYI','2225502wVGFBd','25506kFwUAk','printing-canvas-container','Legal','Tabloid','Statement','44liPvEI','Folio','457030gyOcrQ','Origin','203395JcOROt','Normal','Landscape','None','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','printing-canvas','Start','Portrait','Middle',',\x20.','innerHTML','Wide','Custom','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.','px\x20','FitWidth','2857941VgJXGw','FitHeight'];_0xddc5=function(){return _0x55a092;};return _0xddc5();}var o=(_0x2a760b=>(_0x2a760b[_0x4027b5(0xf1)]=_0x4027b5(0xf1),_0x2a760b[_0x4027b5(0xd4)]=_0x4027b5(0xd4),_0x2a760b[_0x4027b5(0xd3)]=_0x4027b5(0xd3),_0x2a760b[_0x4027b5(0xd5)]='Statement',_0x2a760b[_0x4027b5(0xe7)]='Executive',_0x2a760b[_0x4027b5(0xd7)]=_0x4027b5(0xd7),_0x2a760b['A3']='A3',_0x2a760b['A4']='A4',_0x2a760b['A5']='A5',_0x2a760b['B4']='B4',_0x2a760b['B5']='B5',_0x2a760b))(o||{}),i=(_0x181c09=>(_0x181c09[_0x4027b5(0xe1)]=_0x4027b5(0xe1),_0x181c09[_0x4027b5(0xdc)]='Landscape',_0x181c09))(i||{}),w=(_0x19e38f=>(_0x19e38f[_0x4027b5(0xd9)]=_0x4027b5(0xd9),_0x19e38f[_0x4027b5(0xea)]=_0x4027b5(0xea),_0x19e38f[_0x4027b5(0xec)]=_0x4027b5(0xec),_0x19e38f['FitPage']=_0x4027b5(0xca),_0x19e38f[_0x4027b5(0xe6)]=_0x4027b5(0xe6),_0x19e38f))(w||{}),m=(_0x576cb7=>(_0x576cb7[_0x4027b5(0xe0)]=_0x4027b5(0xe0),_0x576cb7['End']=_0x4027b5(0xed),_0x576cb7[_0x4027b5(0xe2)]=_0x4027b5(0xe2),_0x576cb7))(m||{}),e=(_0x5f02e6=>(_0x5f02e6['Normal']='Normal',_0x5f02e6['Narrow']='Narrow',_0x5f02e6[_0x4027b5(0xe5)]=_0x4027b5(0xe5),_0x5f02e6[_0x4027b5(0xdd)]=_0x4027b5(0xdd),_0x5f02e6))(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[_0x4027b5(0xe7)]]:{'w':0x2b8,'h':0x3f0},[o[_0x4027b5(0xd7)]]:{'w':0x330,'h':0x4e0},[o['Legal']]:{'w':0x330,'h':0x540},[o[_0x4027b5(0xf1)]]:{'w':0x330,'h':0x420},[o[_0x4027b5(0xd5)]]:{'w':0x210,'h':0x330},[o[_0x4027b5(0xd4)]]:{'w':0x420,'h':0x660}},v={[e[_0x4027b5(0xdb)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x4027b5(0xdd)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x4027b5(0xd2),p=_0x4027b5(0xdf);function N(_0x4aa074,_0x13fdac){const _0x17c95a=_0x4027b5,{w:_0x241913,h:_0x3db93f}=g[_0x4aa074],_0x31153a=_0x13fdac===i[_0x17c95a(0xe1)]?_0x241913:_0x3db93f,_0x58d577=_0x13fdac===i[_0x17c95a(0xe1)]?_0x3db93f:_0x241913,_0x44b2bd=_0x17c95a(0xce)+_0x31153a+_0x17c95a(0xe9)+_0x58d577+_0x17c95a(0xe8)+l+_0x17c95a(0xe3)+l+_0x17c95a(0xef)+p+_0x17c95a(0xcc)+_0x58d577+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x31153a+_0x17c95a(0xde),_0x5c8c9f=document['createElement'](_0x17c95a(0xee));return _0x5c8c9f[_0x17c95a(0xe4)]=_0x44b2bd,_0x5c8c9f[_0x17c95a(0xcd)]='offline-printing-css',_0x5c8c9f;}function _0x6001(_0x47c386,_0x5b0bb4){const _0x6001b=_0xddc5();return _0x6001=function(_0x4bf7c5,_0x2733f6){_0x4bf7c5=_0x4bf7c5-0xca;let _0x16daa1=_0x6001b[_0x4bf7c5];return _0x16daa1;},_0x6001(_0x47c386,_0x5b0bb4);}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 _0x4967(_0x351b48,_0x142539){const _0x2fa12d=_0x2fa1();return _0x4967=function(_0x49675c,_0x50e360){_0x49675c=_0x49675c-0xe8;let _0x37320f=_0x2fa12d[_0x49675c];return _0x37320f;},_0x4967(_0x351b48,_0x142539);}(function(_0x53431d,_0x2a02f5){const _0x1eb527=_0x4967,_0x5e6c89=_0x53431d();while(!![]){try{const _0x17b0cb=-parseInt(_0x1eb527(0xf4))/0x1*(parseInt(_0x1eb527(0xf2))/0x2)+-parseInt(_0x1eb527(0x116))/0x3*(-parseInt(_0x1eb527(0x10d))/0x4)+-parseInt(_0x1eb527(0xec))/0x5*(-parseInt(_0x1eb527(0xf3))/0x6)+-parseInt(_0x1eb527(0xef))/0x7+parseInt(_0x1eb527(0xf1))/0x8+parseInt(_0x1eb527(0xee))/0x9*(parseInt(_0x1eb527(0xfb))/0xa)+-parseInt(_0x1eb527(0xf7))/0xb;if(_0x17b0cb===_0x2a02f5)break;else _0x5e6c89['push'](_0x5e6c89['shift']());}catch(_0x187b9e){_0x5e6c89['push'](_0x5e6c89['shift']());}}}(_0x2fa1,0x5b213),function(_0x5432d5,_0x13de5e){const _0x55c911=_0x4967;typeof exports==_0x55c911(0xe9)&&typeof module<'u'?_0x13de5e(exports):typeof define=='function'&&define[_0x55c911(0xf8)]?define([_0x55c911(0x10c)],_0x13de5e):(_0x5432d5=typeof globalThis<'u'?globalThis:_0x5432d5||self,_0x13de5e(_0x5432d5[_0x55c911(0x11e)]={}));}(this,function(_0x325439){'use strict';const _0x50cbc8=_0x4967;var _0x34d284=(_0x25931e=>(_0x25931e[_0x50cbc8(0xeb)]=_0x50cbc8(0xeb),_0x25931e[_0x50cbc8(0xed)]=_0x50cbc8(0xed),_0x25931e[_0x50cbc8(0x106)]='Legal',_0x25931e[_0x50cbc8(0x11a)]='Statement',_0x25931e['Executive']='Executive',_0x25931e[_0x50cbc8(0x114)]=_0x50cbc8(0x114),_0x25931e['A3']='A3',_0x25931e['A4']='A4',_0x25931e['A5']='A5',_0x25931e['B4']='B4',_0x25931e['B5']='B5',_0x25931e))(_0x34d284||{}),_0xf72c1e=(_0x3d65d3=>(_0x3d65d3[_0x50cbc8(0x105)]='Portrait',_0x3d65d3[_0x50cbc8(0xfa)]='Landscape',_0x3d65d3))(_0xf72c1e||{}),_0x28c389=(_0x2ffaf1=>(_0x2ffaf1[_0x50cbc8(0x119)]='Origin',_0x2ffaf1[_0x50cbc8(0x109)]=_0x50cbc8(0x109),_0x2ffaf1[_0x50cbc8(0xfe)]=_0x50cbc8(0xfe),_0x2ffaf1[_0x50cbc8(0x10e)]=_0x50cbc8(0x10e),_0x2ffaf1['Custom']='Custom',_0x2ffaf1))(_0x28c389||{}),_0x1fda5d=(_0x3eeb20=>(_0x3eeb20[_0x50cbc8(0xff)]='Start',_0x3eeb20[_0x50cbc8(0x113)]=_0x50cbc8(0x113),_0x3eeb20[_0x50cbc8(0x110)]=_0x50cbc8(0x110),_0x3eeb20))(_0x1fda5d||{}),_0x3fadf3=(_0x33f938=>(_0x33f938[_0x50cbc8(0xf6)]=_0x50cbc8(0xf6),_0x33f938['Narrow']=_0x50cbc8(0x115),_0x33f938['Wide']=_0x50cbc8(0x108),_0x33f938['None']='None',_0x33f938))(_0x3fadf3||{});const _0x4b587d={[_0x34d284['A3']]:{'w':0x463,'h':0x633},[_0x34d284['A4']]:{'w':0x31a,'h':0x464},[_0x34d284['A5']]:{'w':0x22f,'h':0x31a},[_0x34d284['B4']]:{'w':0x3b0,'h':0x540},[_0x34d284['B5']]:{'w':0x299,'h':0x3b0},[_0x34d284['Executive']]:{'w':0x2b8,'h':0x3f0},[_0x34d284[_0x50cbc8(0x114)]]:{'w':0x330,'h':0x4e0},[_0x34d284[_0x50cbc8(0x106)]]:{'w':0x330,'h':0x540},[_0x34d284['Letter']]:{'w':0x330,'h':0x420},[_0x34d284[_0x50cbc8(0x11a)]]:{'w':0x210,'h':0x330},[_0x34d284[_0x50cbc8(0xed)]]:{'w':0x420,'h':0x660}},_0x49828e={[_0x3fadf3['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x3fadf3[_0x50cbc8(0x115)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x3fadf3[_0x50cbc8(0x108)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x3fadf3[_0x50cbc8(0x103)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x155a7c=_0x50cbc8(0x10b),_0x3696f5=_0x50cbc8(0xfd);function _0x4300f0(_0x16eb36,_0x59e600){const _0x3ed1ee=_0x50cbc8,{w:_0x3f08c8,h:_0x5b212e}=_0x4b587d[_0x16eb36],_0xca9241=_0x59e600===_0xf72c1e['Portrait']?_0x3f08c8:_0x5b212e,_0x3f0cff=_0x59e600===_0xf72c1e['Portrait']?_0x5b212e:_0x3f08c8,_0x37dbca=_0x3ed1ee(0xe8)+_0xca9241+'px\x20'+_0x3f0cff+_0x3ed1ee(0x117)+_0x155a7c+_0x3ed1ee(0x11d)+_0x155a7c+_0x3ed1ee(0x10a)+_0x3696f5+_0x3ed1ee(0xf9)+_0x3f0cff+_0x3ed1ee(0x100)+_0xca9241+_0x3ed1ee(0xf0),_0x2c7b09=document[_0x3ed1ee(0x118)]('style');return _0x2c7b09[_0x3ed1ee(0x102)]=_0x37dbca,_0x2c7b09[_0x3ed1ee(0x104)]=_0x3ed1ee(0x107),_0x2c7b09;}_0x325439['PRINT_CANVAS_CLASS']=_0x3696f5,_0x325439[_0x50cbc8(0xfc)]=_0x155a7c,_0x325439[_0x50cbc8(0x101)]=_0x49828e,_0x325439[_0x50cbc8(0x11c)]=_0x4b587d,_0x325439[_0x50cbc8(0x11b)]=_0x1fda5d,_0x325439[_0x50cbc8(0x112)]=_0xf72c1e,_0x325439['PrintPaperMargin']=_0x3fadf3,_0x325439[_0x50cbc8(0x111)]=_0x34d284,_0x325439[_0x50cbc8(0xf5)]=_0x28c389,_0x325439[_0x50cbc8(0x10f)]=_0x4300f0,Object['defineProperty'](_0x325439,Symbol[_0x50cbc8(0xea)],{'value':_0x50cbc8(0x11f)});}));function _0x2fa1(){const _0x52957b=['innerHTML','None','className','Portrait','Legal','offline-printing-css','Wide','FitWidth','\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-container','exports','15724qcMqqu','FitPage','createPrintStyle','Middle','PrintPaperSize','PrintDirection','End','Folio','Narrow','249wXbJXH','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.','createElement','Origin','Statement','PrintAlign','PaperSizePxMap',',\x20.','UniverPrint','Module','\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','object','toStringTag','Letter','185fHRpTP','Tabloid','90KTmmdy','3032092sURvmG','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','1567424rosIZW','152924zHkXGq','2586YQZvwy','2vnQIma','PrintScale','Normal','2292081RomDts','amd','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Landscape','629570COuFNj','PRINT_CONTAINER_CLASS','printing-canvas','FitHeight','Start','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','PaperMarginMap'];_0x2fa1=function(){return _0x52957b;};return _0x2fa1();}
1
+ function _0x39ea(_0x17b4ce,_0x4e98e5){const _0x4307e7=_0x4307();return _0x39ea=function(_0x39eac9,_0x25ecb2){_0x39eac9=_0x39eac9-0xdf;let _0x5c0159=_0x4307e7[_0x39eac9];return _0x5c0159;},_0x39ea(_0x17b4ce,_0x4e98e5);}(function(_0x5b7179,_0x2d3fbd){const _0x70fbb8=_0x39ea,_0x4b691d=_0x5b7179();while(!![]){try{const _0x1ad827=parseInt(_0x70fbb8(0xfa))/0x1*(-parseInt(_0x70fbb8(0xf8))/0x2)+-parseInt(_0x70fbb8(0xeb))/0x3+parseInt(_0x70fbb8(0xfe))/0x4+-parseInt(_0x70fbb8(0x112))/0x5+parseInt(_0x70fbb8(0xe1))/0x6+-parseInt(_0x70fbb8(0x105))/0x7*(-parseInt(_0x70fbb8(0x111))/0x8)+-parseInt(_0x70fbb8(0x106))/0x9*(-parseInt(_0x70fbb8(0xf3))/0xa);if(_0x1ad827===_0x2d3fbd)break;else _0x4b691d['push'](_0x4b691d['shift']());}catch(_0x5372df){_0x4b691d['push'](_0x4b691d['shift']());}}}(_0x4307,0xcbbbd),function(_0x443158,_0x12b453){const _0x6f4fe9=_0x39ea;typeof exports==_0x6f4fe9(0xe2)&&typeof module<'u'?_0x12b453(exports):typeof define==_0x6f4fe9(0xf7)&&define['amd']?define([_0x6f4fe9(0xea)],_0x12b453):(_0x443158=typeof globalThis<'u'?globalThis:_0x443158||self,_0x12b453(_0x443158[_0x6f4fe9(0x109)]={}));}(this,function(_0x492120){'use strict';const _0x1239dd=_0x39ea;var _0x101043=(_0x180e3b=>(_0x180e3b[_0x1239dd(0x100)]=_0x1239dd(0x100),_0x180e3b[_0x1239dd(0x104)]=_0x1239dd(0x104),_0x180e3b[_0x1239dd(0xf6)]=_0x1239dd(0xf6),_0x180e3b[_0x1239dd(0xf0)]=_0x1239dd(0xf0),_0x180e3b[_0x1239dd(0xf2)]=_0x1239dd(0xf2),_0x180e3b[_0x1239dd(0xef)]='Folio',_0x180e3b['A3']='A3',_0x180e3b['A4']='A4',_0x180e3b['A5']='A5',_0x180e3b['B4']='B4',_0x180e3b['B5']='B5',_0x180e3b))(_0x101043||{}),_0x42071a=(_0x248ae6=>(_0x248ae6[_0x1239dd(0x10e)]='Portrait',_0x248ae6[_0x1239dd(0xf1)]='Landscape',_0x248ae6))(_0x42071a||{}),_0x22a310=(_0x4f6d5b=>(_0x4f6d5b['Origin']=_0x1239dd(0x108),_0x4f6d5b['FitWidth']=_0x1239dd(0xe6),_0x4f6d5b['FitHeight']='FitHeight',_0x4f6d5b[_0x1239dd(0x101)]=_0x1239dd(0x101),_0x4f6d5b['Custom']='Custom',_0x4f6d5b))(_0x22a310||{}),_0x1583fc=(_0x1aec87=>(_0x1aec87[_0x1239dd(0xec)]=_0x1239dd(0xec),_0x1aec87[_0x1239dd(0xe5)]=_0x1239dd(0xe5),_0x1aec87[_0x1239dd(0xfb)]=_0x1239dd(0xfb),_0x1aec87))(_0x1583fc||{}),_0x178c3c=(_0x48f343=>(_0x48f343[_0x1239dd(0x10f)]='Normal',_0x48f343['Narrow']='Narrow',_0x48f343[_0x1239dd(0xe0)]='Wide',_0x48f343[_0x1239dd(0xe7)]=_0x1239dd(0xe7),_0x48f343))(_0x178c3c||{});const _0x317be6={[_0x101043['A3']]:{'w':0x463,'h':0x633},[_0x101043['A4']]:{'w':0x31a,'h':0x464},[_0x101043['A5']]:{'w':0x22f,'h':0x31a},[_0x101043['B4']]:{'w':0x3b0,'h':0x540},[_0x101043['B5']]:{'w':0x299,'h':0x3b0},[_0x101043[_0x1239dd(0xf2)]]:{'w':0x2b8,'h':0x3f0},[_0x101043['Folio']]:{'w':0x330,'h':0x4e0},[_0x101043['Legal']]:{'w':0x330,'h':0x540},[_0x101043[_0x1239dd(0x100)]]:{'w':0x330,'h':0x420},[_0x101043[_0x1239dd(0xf0)]]:{'w':0x210,'h':0x330},[_0x101043['Tabloid']]:{'w':0x420,'h':0x660}},_0x37fea6={[_0x178c3c[_0x1239dd(0x10f)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x178c3c[_0x1239dd(0x102)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x178c3c[_0x1239dd(0xe0)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x178c3c[_0x1239dd(0xe7)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x54e387=_0x1239dd(0x10d),_0x15249e=_0x1239dd(0xf9);function _0x2ce4ed(_0x56e2f5,_0x469b45){const _0xbf6661=_0x1239dd,{w:_0xbf77e,h:_0x5e2a81}=_0x317be6[_0x56e2f5],_0x2b9dd6=_0x469b45===_0x42071a[_0xbf6661(0x10e)]?_0xbf77e:_0x5e2a81,_0x274147=_0x469b45===_0x42071a[_0xbf6661(0x10e)]?_0x5e2a81:_0xbf77e,_0x17476f='\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'+_0x2b9dd6+_0xbf6661(0x113)+_0x274147+'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.'+_0x54e387+_0xbf6661(0xe8)+_0x54e387+'\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.'+_0x15249e+_0xbf6661(0x103)+_0x274147+_0xbf6661(0x10c)+_0x2b9dd6+_0xbf6661(0xe4),_0x3bd2f9=document[_0xbf6661(0xff)](_0xbf6661(0xfd));return _0x3bd2f9[_0xbf6661(0x114)]=_0x17476f,_0x3bd2f9[_0xbf6661(0x10a)]=_0xbf6661(0x110),_0x3bd2f9;}_0x492120[_0x1239dd(0xdf)]=_0x15249e,_0x492120[_0x1239dd(0xe3)]=_0x54e387,_0x492120[_0x1239dd(0xee)]=_0x37fea6,_0x492120['PaperSizePxMap']=_0x317be6,_0x492120[_0x1239dd(0xf5)]=_0x1583fc,_0x492120[_0x1239dd(0xe9)]=_0x42071a,_0x492120['PrintPaperMargin']=_0x178c3c,_0x492120[_0x1239dd(0x107)]=_0x101043,_0x492120[_0x1239dd(0x10b)]=_0x22a310,_0x492120['createPrintStyle']=_0x2ce4ed,Object[_0x1239dd(0xed)](_0x492120,Symbol[_0x1239dd(0xfc)],{'value':_0x1239dd(0xf4)});}));function _0x4307(){const _0x3cf184=['Folio','Statement','Landscape','Executive','425010xWIzRe','Module','PrintAlign','Legal','function','478NMukXQ','printing-canvas','4333ipyVML','Middle','toStringTag','style','3438824MJfoqN','createElement','Letter','FitPage','Narrow','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Tabloid','30205rHyCsX','351TlNABj','PrintPaperSize','Origin','UniverPrint','className','PrintScale','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','printing-canvas-container','Portrait','Normal','offline-printing-css','512mqTImk','2217175CNqFAI','px\x20','innerHTML','PRINT_CANVAS_CLASS','Wide','252294OfzurY','object','PRINT_CONTAINER_CLASS','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','End','FitWidth','None',',\x20.','PrintDirection','exports','1565817CQoOoJ','Start','defineProperty','PaperMarginMap'];_0x4307=function(){return _0x3cf184;};return _0x4307();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/print",
3
- "version": "0.3.0-alpha.1",
3
+ "version": "0.3.0",
4
4
  "private": false,
5
5
  "description": "Print module for UniverJS",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -46,7 +46,7 @@
46
46
  "typescript": "^5.6.2",
47
47
  "vite": "^5.4.8",
48
48
  "vitest": "^2.1.1",
49
- "@univerjs-infra/shared": "0.3.0-alpha.1"
49
+ "@univerjs-infra/shared": "0.3.0"
50
50
  },
51
51
  "univerSpace": {
52
52
  ".": {