@univerjs-pro/print 0.3.0-alpha.1 → 0.3.0-nightly.202410111606

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 _0x5e3da2=_0x56a1;(function(_0xa13c24,_0x1de4f0){const _0x3898ab=_0x56a1,_0xc26460=_0xa13c24();while(!![]){try{const _0x25f8ab=parseInt(_0x3898ab(0x1e7))/0x1*(parseInt(_0x3898ab(0x1f8))/0x2)+-parseInt(_0x3898ab(0x1f4))/0x3+-parseInt(_0x3898ab(0x204))/0x4*(parseInt(_0x3898ab(0x208))/0x5)+parseInt(_0x3898ab(0x1dc))/0x6*(-parseInt(_0x3898ab(0x1e4))/0x7)+parseInt(_0x3898ab(0x1f1))/0x8*(-parseInt(_0x3898ab(0x1f9))/0x9)+parseInt(_0x3898ab(0x1f3))/0xa*(parseInt(_0x3898ab(0x1df))/0xb)+parseInt(_0x3898ab(0x1de))/0xc;if(_0x25f8ab===_0x1de4f0)break;else _0xc26460['push'](_0xc26460['shift']());}catch(_0x5fc60a){_0xc26460['push'](_0xc26460['shift']());}}}(_0x1c90,0xd67e0));function _0x1c90(){const _0x1d503f=['Legal','printing-canvas-container','1305944LgeoNN','PrintDirection','9190GvrNRO','2114271YCNaOn','Executive','innerHTML','Tabloid','10oJSCLB','27MZjueZ','defineProperty',',\x20.','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','PrintAlign','PRINT_CONTAINER_CLASS','Module','Landscape','Letter','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','160PAJRJY','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','End','74435JiFZzl','PaperSizePxMap','FitHeight','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','PrintScale','px\x20','Normal','6XFVTcw','Middle','16137720DcWJgd','14179lroXhr','Wide','FitWidth','toStringTag','Statement','7180670fyEBBw','PaperMarginMap','printing-canvas','232987dJUvWQ','Custom','className','Folio','Start','FitPage','PrintPaperMargin','Portrait'];_0x1c90=function(){return _0x1d503f;};return _0x1c90();}Object[_0x5e3da2(0x1fa)](exports,Symbol[_0x5e3da2(0x1e2)],{'value':_0x5e3da2(0x200)});var e=(_0xae89f0=>(_0xae89f0[_0x5e3da2(0x202)]=_0x5e3da2(0x202),_0xae89f0[_0x5e3da2(0x1f7)]=_0x5e3da2(0x1f7),_0xae89f0[_0x5e3da2(0x1ef)]='Legal',_0xae89f0[_0x5e3da2(0x1e3)]='Statement',_0xae89f0[_0x5e3da2(0x1f5)]=_0x5e3da2(0x1f5),_0xae89f0[_0x5e3da2(0x1ea)]=_0x5e3da2(0x1ea),_0xae89f0['A3']='A3',_0xae89f0['A4']='A4',_0xae89f0['A5']='A5',_0xae89f0['B4']='B4',_0xae89f0['B5']='B5',_0xae89f0))(e||{}),i=(_0x168716=>(_0x168716[_0x5e3da2(0x1ee)]='Portrait',_0x168716['Landscape']=_0x5e3da2(0x201),_0x168716))(i||{}),c=(_0x36c1b1=>(_0x36c1b1['Origin']='Origin',_0x36c1b1[_0x5e3da2(0x1e1)]=_0x5e3da2(0x1e1),_0x36c1b1[_0x5e3da2(0x20a)]=_0x5e3da2(0x20a),_0x36c1b1['FitPage']=_0x5e3da2(0x1ec),_0x36c1b1[_0x5e3da2(0x1e8)]='Custom',_0x36c1b1))(c||{}),g=(_0x3d9919=>(_0x3d9919[_0x5e3da2(0x1eb)]=_0x5e3da2(0x1eb),_0x3d9919[_0x5e3da2(0x207)]=_0x5e3da2(0x207),_0x3d9919[_0x5e3da2(0x1dd)]=_0x5e3da2(0x1dd),_0x3d9919))(g||{}),o=(_0x2a143d=>(_0x2a143d[_0x5e3da2(0x1db)]=_0x5e3da2(0x1db),_0x2a143d[_0x5e3da2(0x1fc)]='Narrow',_0x2a143d[_0x5e3da2(0x1e0)]=_0x5e3da2(0x1e0),_0x2a143d['None']=_0x5e3da2(0x205),_0x2a143d))(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[_0x5e3da2(0x1f5)]]:{'w':0x2b8,'h':0x3f0},[e[_0x5e3da2(0x1ea)]]:{'w':0x330,'h':0x4e0},[e[_0x5e3da2(0x1ef)]]:{'w':0x330,'h':0x540},[e[_0x5e3da2(0x202)]]:{'w':0x330,'h':0x420},[e[_0x5e3da2(0x1e3)]]:{'w':0x210,'h':0x330},[e['Tabloid']]:{'w':0x420,'h':0x660}},N={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x5e3da2(0x1fc)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x5e3da2(0x1e0)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x5e3da2(0x205)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x5e3da2(0x1f0),p=_0x5e3da2(0x1e6);function _0x56a1(_0x3bccda,_0x1e882f){const _0x1c902d=_0x1c90();return _0x56a1=function(_0x56a116,_0x13afd3){_0x56a116=_0x56a116-0x1db;let _0x3e15dc=_0x1c902d[_0x56a116];return _0x3e15dc;},_0x56a1(_0x3bccda,_0x1e882f);}function A(_0x4ad283,_0x1d79d9){const _0x29a0a4=_0x5e3da2,{w:_0x57e737,h:_0x37f891}=m[_0x4ad283],_0x4ce430=_0x1d79d9===i['Portrait']?_0x57e737:_0x37f891,_0x3d729b=_0x1d79d9===i[_0x29a0a4(0x1ee)]?_0x37f891:_0x57e737,_0x1c93bf=_0x29a0a4(0x206)+_0x4ce430+_0x29a0a4(0x20d)+_0x3d729b+'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+_0x29a0a4(0x1fb)+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+_0x29a0a4(0x1fd)+_0x3d729b+_0x29a0a4(0x20b)+_0x4ce430+_0x29a0a4(0x203),_0x4c28fa=document['createElement']('style');return _0x4c28fa[_0x29a0a4(0x1f6)]=_0x1c93bf,_0x4c28fa[_0x29a0a4(0x1e9)]='offline-printing-css',_0x4c28fa;}exports['PRINT_CANVAS_CLASS']=p,exports[_0x5e3da2(0x1ff)]=n,exports[_0x5e3da2(0x1e5)]=N,exports[_0x5e3da2(0x209)]=m,exports[_0x5e3da2(0x1fe)]=g,exports[_0x5e3da2(0x1f2)]=i,exports[_0x5e3da2(0x1ed)]=o,exports['PrintPaperSize']=e,exports[_0x5e3da2(0x20c)]=c,exports['createPrintStyle']=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 _0x5bf6d2=_0x6c96;(function(_0x58b78b,_0x48a7be){const _0x367ff0=_0x6c96,_0x1cc887=_0x58b78b();while(!![]){try{const _0x23909c=-parseInt(_0x367ff0(0x1df))/0x1*(-parseInt(_0x367ff0(0x1f1))/0x2)+parseInt(_0x367ff0(0x1d4))/0x3*(parseInt(_0x367ff0(0x1ee))/0x4)+parseInt(_0x367ff0(0x1d6))/0x5+-parseInt(_0x367ff0(0x1e1))/0x6*(-parseInt(_0x367ff0(0x1dc))/0x7)+parseInt(_0x367ff0(0x1dd))/0x8+-parseInt(_0x367ff0(0x1e0))/0x9+-parseInt(_0x367ff0(0x1f8))/0xa*(parseInt(_0x367ff0(0x1f7))/0xb);if(_0x23909c===_0x48a7be)break;else _0x1cc887['push'](_0x1cc887['shift']());}catch(_0x3a09fe){_0x1cc887['push'](_0x1cc887['shift']());}}}(_0x2a23,0x336e3));function _0x2a23(){const _0x1adb2f=['Folio','3LMiTCI','None','1540960VAcesu','Statement','px\x20','End','innerHTML','Wide','84XRnhsb','3366792KiDHKw','\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','2RakInz','1860966HWbRdV','111108LgPNuk','Narrow','Legal','Custom','FitHeight','Landscape','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.','Letter','printing-canvas-container','FitPage','\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.','Executive','1162556hSbMvI','Tabloid','printing-canvas','309164bapdKi','Middle','style','className','Origin','Portrait','121xRvZbE','1030570RxYfeQ','FitWidth','Normal'];_0x2a23=function(){return _0x1adb2f;};return _0x2a23();}var o=(_0x1ccb65=>(_0x1ccb65[_0x5bf6d2(0x1e8)]='Letter',_0x1ccb65[_0x5bf6d2(0x1ef)]=_0x5bf6d2(0x1ef),_0x1ccb65[_0x5bf6d2(0x1e3)]=_0x5bf6d2(0x1e3),_0x1ccb65[_0x5bf6d2(0x1d7)]=_0x5bf6d2(0x1d7),_0x1ccb65[_0x5bf6d2(0x1ed)]='Executive',_0x1ccb65[_0x5bf6d2(0x1fb)]=_0x5bf6d2(0x1fb),_0x1ccb65['A3']='A3',_0x1ccb65['A4']='A4',_0x1ccb65['A5']='A5',_0x1ccb65['B4']='B4',_0x1ccb65['B5']='B5',_0x1ccb65))(o||{}),i=(_0x1f4c67=>(_0x1f4c67[_0x5bf6d2(0x1f6)]='Portrait',_0x1f4c67[_0x5bf6d2(0x1e6)]=_0x5bf6d2(0x1e6),_0x1f4c67))(i||{}),w=(_0x118729=>(_0x118729[_0x5bf6d2(0x1f5)]=_0x5bf6d2(0x1f5),_0x118729[_0x5bf6d2(0x1f9)]=_0x5bf6d2(0x1f9),_0x118729[_0x5bf6d2(0x1e5)]=_0x5bf6d2(0x1e5),_0x118729[_0x5bf6d2(0x1ea)]=_0x5bf6d2(0x1ea),_0x118729[_0x5bf6d2(0x1e4)]=_0x5bf6d2(0x1e4),_0x118729))(w||{}),m=(_0xce719a=>(_0xce719a['Start']='Start',_0xce719a[_0x5bf6d2(0x1d9)]=_0x5bf6d2(0x1d9),_0xce719a[_0x5bf6d2(0x1f2)]=_0x5bf6d2(0x1f2),_0xce719a))(m||{}),e=(_0x1cb479=>(_0x1cb479['Normal']=_0x5bf6d2(0x1fa),_0x1cb479[_0x5bf6d2(0x1e2)]='Narrow',_0x1cb479['Wide']=_0x5bf6d2(0x1db),_0x1cb479[_0x5bf6d2(0x1d5)]='None',_0x1cb479))(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[_0x5bf6d2(0x1ed)]]:{'w':0x2b8,'h':0x3f0},[o[_0x5bf6d2(0x1fb)]]:{'w':0x330,'h':0x4e0},[o[_0x5bf6d2(0x1e3)]]:{'w':0x330,'h':0x540},[o[_0x5bf6d2(0x1e8)]]:{'w':0x330,'h':0x420},[o[_0x5bf6d2(0x1d7)]]:{'w':0x210,'h':0x330},[o['Tabloid']]:{'w':0x420,'h':0x660}},v={[e[_0x5bf6d2(0x1fa)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x5bf6d2(0x1e2)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x5bf6d2(0x1d5)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x5bf6d2(0x1e9),p=_0x5bf6d2(0x1f0);function N(_0x4bea09,_0x26715a){const _0x11f68c=_0x5bf6d2,{w:_0x3ed6cd,h:_0x5b0177}=g[_0x4bea09],_0x239620=_0x26715a===i[_0x11f68c(0x1f6)]?_0x3ed6cd:_0x5b0177,_0x38c61e=_0x26715a===i['Portrait']?_0x5b0177:_0x3ed6cd,_0x490897=_0x11f68c(0x1de)+_0x239620+_0x11f68c(0x1d8)+_0x38c61e+_0x11f68c(0x1e7)+l+_0x11f68c(0x1ec)+l+_0x11f68c(0x1eb)+p+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x38c61e+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x239620+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',_0x32cc46=document['createElement'](_0x11f68c(0x1f3));return _0x32cc46[_0x11f68c(0x1da)]=_0x490897,_0x32cc46[_0x11f68c(0x1f4)]='offline-printing-css',_0x32cc46;}function _0x6c96(_0x172de2,_0x20442c){const _0x2a232d=_0x2a23();return _0x6c96=function(_0x6c967c,_0x576c59){_0x6c967c=_0x6c967c-0x1d4;let _0x9f4c00=_0x2a232d[_0x6c967c];return _0x9f4c00;},_0x6c96(_0x172de2,_0x20442c);}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 _0x28b9(){const _0x402eab=['Letter','4051494FAslig','\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.','offline-printing-css','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','3556380glOLUQ','createElement','PaperSizePxMap','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','Portrait','function','object','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Tabloid','PrintPaperSize','End','PrintDirection','2465704HpENgP','None','PrintPaperMargin','FitWidth','997634eiqlhJ','Origin','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','PaperMarginMap','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','44DTTXAd','551785ECiQPO','printing-canvas','printing-canvas-container','26908Ktljbm','PRINT_CANVAS_CLASS','style','FitHeight',',\x20.','Custom','Start','Legal','Normal','Narrow','7IpAiHj','817050bmJtce','createPrintStyle','exports','27AZHyEd','Folio','Middle','PrintScale','310dFFukZ','Statement','Wide','toStringTag','FitPage','className','Executive'];_0x28b9=function(){return _0x402eab;};return _0x28b9();}function _0xf9ea(_0x45eb74,_0x1734f6){const _0x28b9a8=_0x28b9();return _0xf9ea=function(_0xf9ea34,_0xaaa2c){_0xf9ea34=_0xf9ea34-0x1c6;let _0x27f545=_0x28b9a8[_0xf9ea34];return _0x27f545;},_0xf9ea(_0x45eb74,_0x1734f6);}(function(_0x36bbd8,_0x1d94c1){const _0x5c8ad2=_0xf9ea,_0x3134ed=_0x36bbd8();while(!![]){try{const _0x4d1036=parseInt(_0x5c8ad2(0x1ec))/0x1*(parseInt(_0x5c8ad2(0x1de))/0x2)+-parseInt(_0x5c8ad2(0x1fd))/0x3+-parseInt(_0x5c8ad2(0x1da))/0x4*(parseInt(_0x5c8ad2(0x1db))/0x5)+-parseInt(_0x5c8ad2(0x1e9))/0x6+-parseInt(_0x5c8ad2(0x1e8))/0x7*(parseInt(_0x5c8ad2(0x1d0))/0x8)+parseInt(_0x5c8ad2(0x1f8))/0x9+parseInt(_0x5c8ad2(0x1f0))/0xa*(parseInt(_0x5c8ad2(0x1d4))/0xb);if(_0x4d1036===_0x1d94c1)break;else _0x3134ed['push'](_0x3134ed['shift']());}catch(_0x587462){_0x3134ed['push'](_0x3134ed['shift']());}}}(_0x28b9,0xbeb6b),function(_0x1c73bd,_0x57690e){const _0x1becfc=_0xf9ea;typeof exports==_0x1becfc(0x1ca)&&typeof module<'u'?_0x57690e(exports):typeof define==_0x1becfc(0x1c9)&&define['amd']?define([_0x1becfc(0x1eb)],_0x57690e):(_0x1c73bd=typeof globalThis<'u'?globalThis:_0x1c73bd||self,_0x57690e(_0x1c73bd['UniverPrint']={}));}(this,function(_0x107c8b){'use strict';const _0x15c2a0=_0xf9ea;var _0x4f22de=(_0x423a3b=>(_0x423a3b[_0x15c2a0(0x1f7)]=_0x15c2a0(0x1f7),_0x423a3b[_0x15c2a0(0x1cc)]=_0x15c2a0(0x1cc),_0x423a3b['Legal']=_0x15c2a0(0x1e5),_0x423a3b[_0x15c2a0(0x1f1)]='Statement',_0x423a3b[_0x15c2a0(0x1f6)]='Executive',_0x423a3b['Folio']=_0x15c2a0(0x1ed),_0x423a3b['A3']='A3',_0x423a3b['A4']='A4',_0x423a3b['A5']='A5',_0x423a3b['B4']='B4',_0x423a3b['B5']='B5',_0x423a3b))(_0x4f22de||{}),_0x1c9691=(_0x468038=>(_0x468038[_0x15c2a0(0x1c8)]=_0x15c2a0(0x1c8),_0x468038[_0x15c2a0(0x1fb)]=_0x15c2a0(0x1fb),_0x468038))(_0x1c9691||{}),_0x35add3=(_0xac4229=>(_0xac4229[_0x15c2a0(0x1d5)]='Origin',_0xac4229[_0x15c2a0(0x1d3)]='FitWidth',_0xac4229[_0x15c2a0(0x1e1)]=_0x15c2a0(0x1e1),_0xac4229[_0x15c2a0(0x1f4)]='FitPage',_0xac4229[_0x15c2a0(0x1e3)]='Custom',_0xac4229))(_0x35add3||{}),_0x1ff584=(_0x48d9ea=>(_0x48d9ea[_0x15c2a0(0x1e4)]='Start',_0x48d9ea[_0x15c2a0(0x1ce)]=_0x15c2a0(0x1ce),_0x48d9ea[_0x15c2a0(0x1ee)]=_0x15c2a0(0x1ee),_0x48d9ea))(_0x1ff584||{}),_0x299c06=(_0x252ae3=>(_0x252ae3['Normal']='Normal',_0x252ae3[_0x15c2a0(0x1e7)]=_0x15c2a0(0x1e7),_0x252ae3[_0x15c2a0(0x1f2)]='Wide',_0x252ae3[_0x15c2a0(0x1d1)]=_0x15c2a0(0x1d1),_0x252ae3))(_0x299c06||{});const _0x10c675={[_0x4f22de['A3']]:{'w':0x463,'h':0x633},[_0x4f22de['A4']]:{'w':0x31a,'h':0x464},[_0x4f22de['A5']]:{'w':0x22f,'h':0x31a},[_0x4f22de['B4']]:{'w':0x3b0,'h':0x540},[_0x4f22de['B5']]:{'w':0x299,'h':0x3b0},[_0x4f22de[_0x15c2a0(0x1f6)]]:{'w':0x2b8,'h':0x3f0},[_0x4f22de['Folio']]:{'w':0x330,'h':0x4e0},[_0x4f22de[_0x15c2a0(0x1e5)]]:{'w':0x330,'h':0x540},[_0x4f22de[_0x15c2a0(0x1f7)]]:{'w':0x330,'h':0x420},[_0x4f22de[_0x15c2a0(0x1f1)]]:{'w':0x210,'h':0x330},[_0x4f22de[_0x15c2a0(0x1cc)]]:{'w':0x420,'h':0x660}},_0x58846f={[_0x299c06[_0x15c2a0(0x1e6)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x299c06[_0x15c2a0(0x1e7)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x299c06[_0x15c2a0(0x1f2)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x299c06[_0x15c2a0(0x1d1)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x339e64=_0x15c2a0(0x1dd),_0x4ccfa9=_0x15c2a0(0x1dc);function _0x4f69ea(_0x499f68,_0x32219f){const _0x3c0de3=_0x15c2a0,{w:_0xaf93c9,h:_0x37f885}=_0x10c675[_0x499f68],_0x49b39f=_0x32219f===_0x1c9691[_0x3c0de3(0x1c8)]?_0xaf93c9:_0x37f885,_0x113b2f=_0x32219f===_0x1c9691['Portrait']?_0x37f885:_0xaf93c9,_0x319f2b=_0x3c0de3(0x1fc)+_0x49b39f+'px\x20'+_0x113b2f+_0x3c0de3(0x1c6)+_0x339e64+_0x3c0de3(0x1e2)+_0x339e64+_0x3c0de3(0x1f9)+_0x4ccfa9+_0x3c0de3(0x1d7)+_0x113b2f+_0x3c0de3(0x1cb)+_0x49b39f+_0x3c0de3(0x1d9),_0x8f32c8=document[_0x3c0de3(0x1fe)](_0x3c0de3(0x1e0));return _0x8f32c8[_0x3c0de3(0x1c7)]=_0x319f2b,_0x8f32c8[_0x3c0de3(0x1f5)]=_0x3c0de3(0x1fa),_0x8f32c8;}_0x107c8b[_0x15c2a0(0x1df)]=_0x4ccfa9,_0x107c8b[_0x15c2a0(0x1d6)]=_0x339e64,_0x107c8b[_0x15c2a0(0x1d8)]=_0x58846f,_0x107c8b[_0x15c2a0(0x1ff)]=_0x10c675,_0x107c8b['PrintAlign']=_0x1ff584,_0x107c8b[_0x15c2a0(0x1cf)]=_0x1c9691,_0x107c8b[_0x15c2a0(0x1d2)]=_0x299c06,_0x107c8b[_0x15c2a0(0x1cd)]=_0x4f22de,_0x107c8b[_0x15c2a0(0x1ef)]=_0x35add3,_0x107c8b[_0x15c2a0(0x1ea)]=_0x4f69ea,Object['defineProperty'](_0x107c8b,Symbol[_0x15c2a0(0x1f3)],{'value':'Module'});}));
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-nightly.202410111606",
4
4
  "private": false,
5
5
  "description": "Print module for UniverJS",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -43,10 +43,10 @@
43
43
  "lib"
44
44
  ],
45
45
  "devDependencies": {
46
- "typescript": "^5.6.2",
46
+ "typescript": "5.6.3",
47
47
  "vite": "^5.4.8",
48
- "vitest": "^2.1.1",
49
- "@univerjs-infra/shared": "0.3.0-alpha.1"
48
+ "vitest": "^2.1.2",
49
+ "@univerjs-infra/shared": "0.3.0"
50
50
  },
51
51
  "univerSpace": {
52
52
  ".": {
@@ -66,7 +66,6 @@
66
66
  "test:watch": "vitest",
67
67
  "coverage": "vitest run --coverage",
68
68
  "lint:types": "tsc --noEmit",
69
- "build": "tsc && vite build",
70
- "sync:pro:cnpm": "cnpm sync"
69
+ "build": "tsc && vite build"
71
70
  }
72
71
  }