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

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 _0x1903cb=_0x3b30;(function(_0x39163a,_0x3ca995){const _0x244676=_0x3b30,_0x522a02=_0x39163a();while(!![]){try{const _0x3b7329=-parseInt(_0x244676(0x1f4))/0x1*(-parseInt(_0x244676(0x203))/0x2)+parseInt(_0x244676(0x1fb))/0x3*(parseInt(_0x244676(0x212))/0x4)+parseInt(_0x244676(0x1f5))/0x5*(-parseInt(_0x244676(0x1fd))/0x6)+-parseInt(_0x244676(0x214))/0x7*(-parseInt(_0x244676(0x209))/0x8)+-parseInt(_0x244676(0x20e))/0x9+parseInt(_0x244676(0x20d))/0xa*(parseInt(_0x244676(0x1f3))/0xb)+-parseInt(_0x244676(0x1f6))/0xc;if(_0x3b7329===_0x3ca995)break;else _0x522a02['push'](_0x522a02['shift']());}catch(_0x1348cf){_0x522a02['push'](_0x522a02['shift']());}}}(_0x55e5,0x380c4));function _0x3b30(_0x49f692,_0x548742){const _0x55e574=_0x55e5();return _0x3b30=function(_0x3b3087,_0x1004ef){_0x3b3087=_0x3b3087-0x1e4;let _0x4f309b=_0x55e574[_0x3b3087];return _0x4f309b;},_0x3b30(_0x49f692,_0x548742);}Object[_0x1903cb(0x202)](exports,Symbol[_0x1903cb(0x215)],{'value':_0x1903cb(0x20a)});var e=(_0x120314=>(_0x120314['Letter']='Letter',_0x120314[_0x1903cb(0x1f2)]=_0x1903cb(0x1f2),_0x120314['Legal']=_0x1903cb(0x1e6),_0x120314['Statement']=_0x1903cb(0x1e7),_0x120314[_0x1903cb(0x1f0)]=_0x1903cb(0x1f0),_0x120314[_0x1903cb(0x206)]=_0x1903cb(0x206),_0x120314['A3']='A3',_0x120314['A4']='A4',_0x120314['A5']='A5',_0x120314['B4']='B4',_0x120314['B5']='B5',_0x120314))(e||{}),i=(_0x566710=>(_0x566710[_0x1903cb(0x1e9)]=_0x1903cb(0x1e9),_0x566710[_0x1903cb(0x1e8)]=_0x1903cb(0x1e8),_0x566710))(i||{}),c=(_0x1c35a9=>(_0x1c35a9[_0x1903cb(0x20b)]=_0x1903cb(0x20b),_0x1c35a9[_0x1903cb(0x1f8)]=_0x1903cb(0x1f8),_0x1c35a9[_0x1903cb(0x201)]=_0x1903cb(0x201),_0x1c35a9[_0x1903cb(0x1f1)]=_0x1903cb(0x1f1),_0x1c35a9[_0x1903cb(0x1ef)]=_0x1903cb(0x1ef),_0x1c35a9))(c||{}),g=(_0x1205d7=>(_0x1205d7['Start']=_0x1903cb(0x1eb),_0x1205d7[_0x1903cb(0x1ee)]=_0x1903cb(0x1ee),_0x1205d7[_0x1903cb(0x210)]='Middle',_0x1205d7))(g||{}),o=(_0x393e83=>(_0x393e83[_0x1903cb(0x1f7)]=_0x1903cb(0x1f7),_0x393e83[_0x1903cb(0x216)]='Narrow',_0x393e83[_0x1903cb(0x213)]=_0x1903cb(0x213),_0x393e83[_0x1903cb(0x207)]=_0x1903cb(0x207),_0x393e83))(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[_0x1903cb(0x1f0)]]:{'w':0x2b8,'h':0x3f0},[e[_0x1903cb(0x206)]]:{'w':0x330,'h':0x4e0},[e[_0x1903cb(0x1e6)]]:{'w':0x330,'h':0x540},[e[_0x1903cb(0x20f)]]:{'w':0x330,'h':0x420},[e[_0x1903cb(0x1e7)]]:{'w':0x210,'h':0x330},[e[_0x1903cb(0x1f2)]]:{'w':0x420,'h':0x660}},N={[o[_0x1903cb(0x1f7)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x1903cb(0x216)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x1903cb(0x207)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x1903cb(0x1e5),p='printing-canvas';function _0x55e5(){const _0x193fa0=['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','PrintPaperSize','1169769CoBCzj','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','2656578ONGlHU','style','PrintScale','PaperMarginMap','FitHeight','defineProperty','26bXqeuv','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','PrintPaperMargin','Folio','None','PrintAlign','1371656yQFnxA','Module','Origin','offline-printing-css','50pUxSFh','1562310fXjKDR','Letter','Middle','PRINT_CANVAS_CLASS','4aXvMEh','Wide','7IynUsx','toStringTag','Narrow','px\x20','innerHTML','printing-canvas-container','Legal','Statement','Landscape','Portrait','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Start',',\x20.','createElement','End','Custom','Executive','FitPage','Tabloid','488059bVmuFR','35157riypWG','5KoHhCC','4732092LXqszD','Normal'];_0x55e5=function(){return _0x193fa0;};return _0x55e5();}function A(_0x1d0fd7,_0x442669){const _0x4f24b0=_0x1903cb,{w:_0x1c2952,h:_0x492dd1}=m[_0x1d0fd7],_0x4e3b0b=_0x442669===i['Portrait']?_0x1c2952:_0x492dd1,_0xd98035=_0x442669===i['Portrait']?_0x492dd1:_0x1c2952,_0x3de4e3=_0x4f24b0(0x1f9)+_0x4e3b0b+_0x4f24b0(0x217)+_0xd98035+'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+_0x4f24b0(0x1ec)+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+_0x4f24b0(0x204)+_0xd98035+_0x4f24b0(0x1ea)+_0x4e3b0b+_0x4f24b0(0x1fc),_0x436e25=document[_0x4f24b0(0x1ed)](_0x4f24b0(0x1fe));return _0x436e25[_0x4f24b0(0x1e4)]=_0x3de4e3,_0x436e25['className']=_0x4f24b0(0x20c),_0x436e25;}exports[_0x1903cb(0x211)]=p,exports['PRINT_CONTAINER_CLASS']=n,exports[_0x1903cb(0x200)]=N,exports['PaperSizePxMap']=m,exports[_0x1903cb(0x208)]=g,exports['PrintDirection']=i,exports[_0x1903cb(0x205)]=o,exports[_0x1903cb(0x1fa)]=e,exports[_0x1903cb(0x1ff)]=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 _0x14fb73=_0x194a;function _0x2c0b(){const _0x2b5ae=['Tabloid','218598xtHqaJ','className','Wide','printing-canvas','3yfOYZt','Portrait','Start','4495840RxdMOX','Normal','5614332moHBQS','Narrow','4843992DTEDTI','14632856RHEffy','7483119HtQEov','1874650JQcBAA','FitWidth','offline-printing-css','End','Middle','Statement','None','FitPage','FitHeight','Folio','style',',\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.','Legal','Executive','\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','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','px\x20','printing-canvas-container','createElement','Letter','Custom','Origin','\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'];_0x2c0b=function(){return _0x2b5ae;};return _0x2c0b();}(function(_0x27fe65,_0x354818){const _0x1a64fb=_0x194a,_0x8c0b68=_0x27fe65();while(!![]){try{const _0x90b015=parseInt(_0x1a64fb(0x10c))/0x1+-parseInt(_0x1a64fb(0x11a))/0x2*(-parseInt(_0x1a64fb(0x110))/0x3)+-parseInt(_0x1a64fb(0x117))/0x4+parseInt(_0x1a64fb(0x113))/0x5+-parseInt(_0x1a64fb(0x115))/0x6+-parseInt(_0x1a64fb(0x119))/0x7+parseInt(_0x1a64fb(0x118))/0x8;if(_0x90b015===_0x354818)break;else _0x8c0b68['push'](_0x8c0b68['shift']());}catch(_0x52f94d){_0x8c0b68['push'](_0x8c0b68['shift']());}}}(_0x2c0b,0xa332d));var o=(_0x6b1007=>(_0x6b1007[_0x14fb73(0x107)]=_0x14fb73(0x107),_0x6b1007[_0x14fb73(0x10b)]=_0x14fb73(0x10b),_0x6b1007[_0x14fb73(0xff)]=_0x14fb73(0xff),_0x6b1007['Statement']=_0x14fb73(0xf7),_0x6b1007[_0x14fb73(0x100)]=_0x14fb73(0x100),_0x6b1007[_0x14fb73(0xfb)]=_0x14fb73(0xfb),_0x6b1007['A3']='A3',_0x6b1007['A4']='A4',_0x6b1007['A5']='A5',_0x6b1007['B4']='B4',_0x6b1007['B5']='B5',_0x6b1007))(o||{}),i=(_0x2568b2=>(_0x2568b2[_0x14fb73(0x111)]='Portrait',_0x2568b2[_0x14fb73(0x102)]=_0x14fb73(0x102),_0x2568b2))(i||{}),w=(_0x2019ab=>(_0x2019ab['Origin']=_0x14fb73(0x109),_0x2019ab[_0x14fb73(0x11b)]='FitWidth',_0x2019ab[_0x14fb73(0xfa)]=_0x14fb73(0xfa),_0x2019ab[_0x14fb73(0xf9)]='FitPage',_0x2019ab[_0x14fb73(0x108)]=_0x14fb73(0x108),_0x2019ab))(w||{}),m=(_0x14e834=>(_0x14e834['Start']=_0x14fb73(0x112),_0x14e834[_0x14fb73(0x11d)]=_0x14fb73(0x11d),_0x14e834[_0x14fb73(0x11e)]='Middle',_0x14e834))(m||{}),e=(_0x3cd8d1=>(_0x3cd8d1['Normal']=_0x14fb73(0x114),_0x3cd8d1['Narrow']='Narrow',_0x3cd8d1[_0x14fb73(0x10e)]='Wide',_0x3cd8d1[_0x14fb73(0xf8)]=_0x14fb73(0xf8),_0x3cd8d1))(e||{});function _0x194a(_0x563f56,_0x141102){const _0x2c0b7c=_0x2c0b();return _0x194a=function(_0x194a25,_0x22510b){_0x194a25=_0x194a25-0xf7;let _0x3c93e1=_0x2c0b7c[_0x194a25];return _0x3c93e1;},_0x194a(_0x563f56,_0x141102);}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[_0x14fb73(0x100)]]:{'w':0x2b8,'h':0x3f0},[o[_0x14fb73(0xfb)]]:{'w':0x330,'h':0x4e0},[o[_0x14fb73(0xff)]]:{'w':0x330,'h':0x540},[o[_0x14fb73(0x107)]]:{'w':0x330,'h':0x420},[o[_0x14fb73(0xf7)]]:{'w':0x210,'h':0x330},[o['Tabloid']]:{'w':0x420,'h':0x660}},v={[e[_0x14fb73(0x114)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x14fb73(0x116)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0x14fb73(0x10e)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x14fb73(0xf8)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x14fb73(0x105),p=_0x14fb73(0x10f);function N(_0xbf78b9,_0x28153b){const _0x5e90ed=_0x14fb73,{w:_0x3f7739,h:_0x1813e1}=g[_0xbf78b9],_0x3b13f5=_0x28153b===i[_0x5e90ed(0x111)]?_0x3f7739:_0x1813e1,_0x1c7b89=_0x28153b===i[_0x5e90ed(0x111)]?_0x1813e1:_0x3f7739,_0x133830=_0x5e90ed(0x10a)+_0x3b13f5+_0x5e90ed(0x104)+_0x1c7b89+'px;\x20\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.'+l+_0x5e90ed(0xfd)+l+_0x5e90ed(0xfe)+p+_0x5e90ed(0x101)+_0x1c7b89+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x3b13f5+_0x5e90ed(0x103),_0x297420=document[_0x5e90ed(0x106)](_0x5e90ed(0xfc));return _0x297420['innerHTML']=_0x133830,_0x297420[_0x5e90ed(0x10d)]=_0x5e90ed(0x11c),_0x297420;}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 _0x4cf8(_0x55de07,_0x48a22b){const _0x52cfde=_0x52cf();return _0x4cf8=function(_0x4cf81a,_0x139b2e){_0x4cf81a=_0x4cf81a-0xc1;let _0x21220c=_0x52cfde[_0x4cf81a];return _0x21220c;},_0x4cf8(_0x55de07,_0x48a22b);}(function(_0x4a5e2c,_0x140cc2){const _0x1a388a=_0x4cf8,_0x59d18d=_0x4a5e2c();while(!![]){try{const _0x4da228=-parseInt(_0x1a388a(0xef))/0x1+parseInt(_0x1a388a(0xce))/0x2*(parseInt(_0x1a388a(0xdc))/0x3)+-parseInt(_0x1a388a(0xf3))/0x4*(-parseInt(_0x1a388a(0xfa))/0x5)+parseInt(_0x1a388a(0xfb))/0x6+-parseInt(_0x1a388a(0xd6))/0x7*(-parseInt(_0x1a388a(0xca))/0x8)+parseInt(_0x1a388a(0xd4))/0x9+-parseInt(_0x1a388a(0xe2))/0xa*(parseInt(_0x1a388a(0xe4))/0xb);if(_0x4da228===_0x140cc2)break;else _0x59d18d['push'](_0x59d18d['shift']());}catch(_0x3c13a1){_0x59d18d['push'](_0x59d18d['shift']());}}}(_0x52cf,0x3435b),function(_0x396565,_0x74c83c){const _0x52cb38=_0x4cf8;typeof exports==_0x52cb38(0xd2)&&typeof module<'u'?_0x74c83c(exports):typeof define==_0x52cb38(0xf2)&&define[_0x52cb38(0xe9)]?define([_0x52cb38(0xe1)],_0x74c83c):(_0x396565=typeof globalThis<'u'?globalThis:_0x396565||self,_0x74c83c(_0x396565[_0x52cb38(0xdf)]={}));}(this,function(_0xab8bb9){'use strict';const _0x2529d1=_0x4cf8;var _0x194c6f=(_0x20c97d=>(_0x20c97d[_0x2529d1(0xd3)]=_0x2529d1(0xd3),_0x20c97d[_0x2529d1(0xd5)]=_0x2529d1(0xd5),_0x20c97d[_0x2529d1(0xc2)]=_0x2529d1(0xc2),_0x20c97d[_0x2529d1(0xeb)]='Statement',_0x20c97d[_0x2529d1(0xf7)]=_0x2529d1(0xf7),_0x20c97d[_0x2529d1(0xdd)]=_0x2529d1(0xdd),_0x20c97d['A3']='A3',_0x20c97d['A4']='A4',_0x20c97d['A5']='A5',_0x20c97d['B4']='B4',_0x20c97d['B5']='B5',_0x20c97d))(_0x194c6f||{}),_0x1bdbf4=(_0x539b0b=>(_0x539b0b[_0x2529d1(0xc4)]=_0x2529d1(0xc4),_0x539b0b['Landscape']=_0x2529d1(0xd0),_0x539b0b))(_0x1bdbf4||{}),_0xbbbd59=(_0x57d87a=>(_0x57d87a[_0x2529d1(0xe6)]='Origin',_0x57d87a[_0x2529d1(0xf0)]=_0x2529d1(0xf0),_0x57d87a[_0x2529d1(0xcc)]=_0x2529d1(0xcc),_0x57d87a[_0x2529d1(0xdb)]=_0x2529d1(0xdb),_0x57d87a['Custom']=_0x2529d1(0xd7),_0x57d87a))(_0xbbbd59||{}),_0x3c5189=(_0x2be432=>(_0x2be432[_0x2529d1(0xde)]=_0x2529d1(0xde),_0x2be432[_0x2529d1(0xcd)]=_0x2529d1(0xcd),_0x2be432[_0x2529d1(0xc3)]='Middle',_0x2be432))(_0x3c5189||{}),_0x351a99=(_0x35ec7f=>(_0x35ec7f[_0x2529d1(0xee)]=_0x2529d1(0xee),_0x35ec7f[_0x2529d1(0xec)]='Narrow',_0x35ec7f[_0x2529d1(0xd8)]='Wide',_0x35ec7f[_0x2529d1(0xc9)]='None',_0x35ec7f))(_0x351a99||{});const _0x7e8dac={[_0x194c6f['A3']]:{'w':0x463,'h':0x633},[_0x194c6f['A4']]:{'w':0x31a,'h':0x464},[_0x194c6f['A5']]:{'w':0x22f,'h':0x31a},[_0x194c6f['B4']]:{'w':0x3b0,'h':0x540},[_0x194c6f['B5']]:{'w':0x299,'h':0x3b0},[_0x194c6f['Executive']]:{'w':0x2b8,'h':0x3f0},[_0x194c6f[_0x2529d1(0xdd)]]:{'w':0x330,'h':0x4e0},[_0x194c6f[_0x2529d1(0xc2)]]:{'w':0x330,'h':0x540},[_0x194c6f[_0x2529d1(0xd3)]]:{'w':0x330,'h':0x420},[_0x194c6f[_0x2529d1(0xeb)]]:{'w':0x210,'h':0x330},[_0x194c6f[_0x2529d1(0xd5)]]:{'w':0x420,'h':0x660}},_0x41a213={[_0x351a99[_0x2529d1(0xee)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x351a99[_0x2529d1(0xec)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x351a99[_0x2529d1(0xd8)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x351a99[_0x2529d1(0xc9)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0xf29d81=_0x2529d1(0xf4),_0x16817f=_0x2529d1(0xf5);function _0x201bdd(_0x7744c3,_0x17d771){const _0x3a653c=_0x2529d1,{w:_0x31057b,h:_0x1fc80e}=_0x7e8dac[_0x7744c3],_0x51c7d2=_0x17d771===_0x1bdbf4['Portrait']?_0x31057b:_0x1fc80e,_0x453d30=_0x17d771===_0x1bdbf4[_0x3a653c(0xc4)]?_0x1fc80e:_0x31057b,_0x4e7814=_0x3a653c(0xe3)+_0x51c7d2+'px\x20'+_0x453d30+_0x3a653c(0xe8)+_0xf29d81+_0x3a653c(0xf1)+_0xf29d81+_0x3a653c(0xc1)+_0x16817f+_0x3a653c(0xe5)+_0x453d30+_0x3a653c(0xcf)+_0x51c7d2+_0x3a653c(0xed),_0x30033d=document[_0x3a653c(0xc7)](_0x3a653c(0xc8));return _0x30033d[_0x3a653c(0xf9)]=_0x4e7814,_0x30033d['className']=_0x3a653c(0xe0),_0x30033d;}_0xab8bb9[_0x2529d1(0xd1)]=_0x16817f,_0xab8bb9['PRINT_CONTAINER_CLASS']=_0xf29d81,_0xab8bb9[_0x2529d1(0xf6)]=_0x41a213,_0xab8bb9['PaperSizePxMap']=_0x7e8dac,_0xab8bb9[_0x2529d1(0xc5)]=_0x3c5189,_0xab8bb9[_0x2529d1(0xcb)]=_0x1bdbf4,_0xab8bb9['PrintPaperMargin']=_0x351a99,_0xab8bb9[_0x2529d1(0xe7)]=_0x194c6f,_0xab8bb9[_0x2529d1(0xd9)]=_0xbbbd59,_0xab8bb9[_0x2529d1(0xc6)]=_0x201bdd,Object[_0x2529d1(0xda)](_0xab8bb9,Symbol[_0x2529d1(0xea)],{'value':_0x2529d1(0xf8)});}));function _0x52cf(){const _0x1421c6=[',\x20.','function','21608vGwGBp','printing-canvas-container','printing-canvas','PaperMarginMap','Executive','Module','innerHTML','205TaaEsV','2246526Ttvnnn','\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.','Legal','Middle','Portrait','PrintAlign','createPrintStyle','createElement','style','None','8MvvHRB','PrintDirection','FitHeight','End','126164LmLwbw','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Landscape','PRINT_CANVAS_CLASS','object','Letter','668178xBHuPY','Tabloid','1909397TwUGpp','Custom','Wide','PrintScale','defineProperty','FitPage','18jsYSDy','Folio','Start','UniverPrint','offline-printing-css','exports','250BqMXnG','\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','322256BsOMjk','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Origin','PrintPaperSize','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.','amd','toStringTag','Statement','Narrow','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Normal','375157gYwupg','FitWidth'];_0x52cf=function(){return _0x1421c6;};return _0x52cf();}
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.202410101606",
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
  ".": {
@@ -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
  }