@univerjs-pro/print 0.2.14 → 0.3.0-alpha.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';function _0x3bd5(_0x3532f6,_0x2088eb){const _0x150fad=_0x150f();return _0x3bd5=function(_0x3bd519,_0x429d47){_0x3bd519=_0x3bd519-0x166;let _0x5d294c=_0x150fad[_0x3bd519];return _0x5d294c;},_0x3bd5(_0x3532f6,_0x2088eb);}const _0x396eae=_0x3bd5;(function(_0xc336ae,_0x4fb5a4){const _0x8fe7fc=_0x3bd5,_0x3ac390=_0xc336ae();while(!![]){try{const _0x233e9a=parseInt(_0x8fe7fc(0x17f))/0x1+-parseInt(_0x8fe7fc(0x169))/0x2*(-parseInt(_0x8fe7fc(0x16b))/0x3)+-parseInt(_0x8fe7fc(0x18e))/0x4+-parseInt(_0x8fe7fc(0x190))/0x5*(parseInt(_0x8fe7fc(0x189))/0x6)+parseInt(_0x8fe7fc(0x18d))/0x7+-parseInt(_0x8fe7fc(0x194))/0x8+parseInt(_0x8fe7fc(0x180))/0x9*(parseInt(_0x8fe7fc(0x181))/0xa);if(_0x233e9a===_0x4fb5a4)break;else _0x3ac390['push'](_0x3ac390['shift']());}catch(_0x5dceff){_0x3ac390['push'](_0x3ac390['shift']());}}}(_0x150f,0xefdd4));Object[_0x396eae(0x18f)](exports,Symbol[_0x396eae(0x197)],{'value':_0x396eae(0x167)});var e=(_0x423e42=>(_0x423e42[_0x396eae(0x16e)]=_0x396eae(0x16e),_0x423e42[_0x396eae(0x17d)]=_0x396eae(0x17d),_0x423e42['Legal']=_0x396eae(0x16d),_0x423e42['Statement']='Statement',_0x423e42[_0x396eae(0x179)]='Executive',_0x423e42['Folio']=_0x396eae(0x178),_0x423e42['A3']='A3',_0x423e42['A4']='A4',_0x423e42['A5']='A5',_0x423e42['B4']='B4',_0x423e42['B5']='B5',_0x423e42))(e||{}),i=(_0x1c0a02=>(_0x1c0a02[_0x396eae(0x168)]=_0x396eae(0x168),_0x1c0a02[_0x396eae(0x18a)]=_0x396eae(0x18a),_0x1c0a02))(i||{}),c=(_0x4e757d=>(_0x4e757d[_0x396eae(0x17b)]=_0x396eae(0x17b),_0x4e757d[_0x396eae(0x187)]=_0x396eae(0x187),_0x4e757d[_0x396eae(0x196)]=_0x396eae(0x196),_0x4e757d[_0x396eae(0x182)]=_0x396eae(0x182),_0x4e757d[_0x396eae(0x16c)]='Custom',_0x4e757d))(c||{}),g=(_0x1cae8c=>(_0x1cae8c[_0x396eae(0x174)]=_0x396eae(0x174),_0x1cae8c[_0x396eae(0x18b)]=_0x396eae(0x18b),_0x1cae8c[_0x396eae(0x195)]=_0x396eae(0x195),_0x1cae8c))(g||{}),o=(_0x343088=>(_0x343088['Normal']=_0x396eae(0x17a),_0x343088[_0x396eae(0x184)]='Narrow',_0x343088['Wide']=_0x396eae(0x198),_0x343088['None']=_0x396eae(0x193),_0x343088))(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[_0x396eae(0x179)]]:{'w':0x2b8,'h':0x3f0},[e[_0x396eae(0x178)]]:{'w':0x330,'h':0x4e0},[e['Legal']]:{'w':0x330,'h':0x540},[e[_0x396eae(0x16e)]]:{'w':0x330,'h':0x420},[e[_0x396eae(0x188)]]:{'w':0x210,'h':0x330},[e[_0x396eae(0x17d)]]:{'w':0x420,'h':0x660}},N={[o[_0x396eae(0x17a)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x396eae(0x184)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x396eae(0x198)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x396eae(0x193)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x396eae(0x16a),p='printing-canvas';function A(_0x3f4cfd,_0x4a989c){const _0xd8f4bb=_0x396eae,{w:_0x442199,h:_0x3f2e01}=m[_0x3f4cfd],_0x8605ce=_0x4a989c===i[_0xd8f4bb(0x168)]?_0x442199:_0x3f2e01,_0x38e49e=_0x4a989c===i[_0xd8f4bb(0x168)]?_0x3f2e01:_0x442199,_0x5a54d2=_0xd8f4bb(0x186)+_0x8605ce+_0xd8f4bb(0x192)+_0x38e49e+'px;\x20\x0a}\x0a@page\x20{\x0a\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20visibility:\x20hidden;\x0a}\x0a@media\x20print\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+_0xd8f4bb(0x176)+p+_0xd8f4bb(0x185)+_0x38e49e+_0xd8f4bb(0x17c)+_0x8605ce+_0xd8f4bb(0x173),_0x196ad3=document['createElement'](_0xd8f4bb(0x177));return _0x196ad3[_0xd8f4bb(0x191)]=_0x5a54d2,_0x196ad3[_0xd8f4bb(0x183)]=_0xd8f4bb(0x166),_0x196ad3;}exports[_0x396eae(0x16f)]=p,exports[_0x396eae(0x18c)]=n,exports['PaperMarginMap']=N,exports['PaperSizePxMap']=m,exports['PrintAlign']=g,exports[_0x396eae(0x171)]=i,exports[_0x396eae(0x172)]=o,exports[_0x396eae(0x17e)]=e,exports[_0x396eae(0x175)]=c,exports[_0x396eae(0x170)]=A;function _0x150f(){const _0x3e1c45=['755540ZmtjmC','683028bNLrhB','360SmWLDb','FitPage','className','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','\x0ahtml\x20{\x0a\x20\x20\x20\x20width:\x20fit-content;\x0a}\x0abody\x20{\x0a\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20width:\x20fit-content;\x0a}\x0a@page\x20{\x0a\x20\x20\x20\x20size:\x20','FitWidth','Statement','2809326dGIASX','Landscape','End','PRINT_CONTAINER_CLASS','13746194PtGvDp','7040644uCXFpA','defineProperty','15bsdfcy','innerHTML','px\x20','None','13489296uZqbbK','Middle','FitHeight','toStringTag','Wide','offline-printing-css','Module','Portrait','382076FlEoQt','printing-canvas-container','6nEKOdC','Custom','Legal','Letter','PRINT_CANVAS_CLASS','createPrintStyle','PrintDirection','PrintPaperMargin','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Start','PrintScale','\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','Folio','Executive','Normal','Origin','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Tabloid','PrintPaperSize'];_0x150f=function(){return _0x3e1c45;};return _0x150f();}
1
+ 'use strict';const _0x9e5044=_0x3289;function _0x5621(){const _0x377480=['defineProperty','innerHTML','Folio','83952HavoVy','PaperSizePxMap','PrintPaperSize','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','End','\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','toStringTag','315VEHDno','Tabloid','Letter','Narrow','4587606AHXMyt','24LLxdWp','Statement','PrintAlign','None','createPrintStyle','Wide','Executive','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','32267169dqlSxE','PRINT_CANVAS_CLASS','px\x20','PRINT_CONTAINER_CLASS','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.','style','FitHeight','PrintPaperMargin','PaperMarginMap','Custom','\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.','Portrait','Legal','1McDWsX','371781ToBGCX','190smYynZ','FitWidth','className','3063324SUSyuT','Module','Start','496085GyktVY','Middle','Landscape','Origin','printing-canvas','2015370VymPJx','Normal'];_0x5621=function(){return _0x377480;};return _0x5621();}(function(_0x19f9a2,_0x284399){const _0x51cbd9=_0x3289,_0x524403=_0x19f9a2();while(!![]){try{const _0x571094=-parseInt(_0x51cbd9(0x160))/0x1*(-parseInt(_0x51cbd9(0x16d))/0x2)+parseInt(_0x51cbd9(0x165))/0x3+-parseInt(_0x51cbd9(0x17e))/0x4*(parseInt(_0x51cbd9(0x168))/0x5)+parseInt(_0x51cbd9(0x17d))/0x6+parseInt(_0x51cbd9(0x179))/0x7*(parseInt(_0x51cbd9(0x172))/0x8)+parseInt(_0x51cbd9(0x161))/0x9*(parseInt(_0x51cbd9(0x162))/0xa)+-parseInt(_0x51cbd9(0x153))/0xb;if(_0x571094===_0x284399)break;else _0x524403['push'](_0x524403['shift']());}catch(_0x4f4679){_0x524403['push'](_0x524403['shift']());}}}(_0x5621,0x7f656));Object[_0x9e5044(0x16f)](exports,Symbol[_0x9e5044(0x178)],{'value':_0x9e5044(0x166)});function _0x3289(_0x5e841c,_0x384fea){const _0x562177=_0x5621();return _0x3289=function(_0x328946,_0x1ef1bb){_0x328946=_0x328946-0x152;let _0x266bd4=_0x562177[_0x328946];return _0x266bd4;},_0x3289(_0x5e841c,_0x384fea);}var e=(_0x2e78f4=>(_0x2e78f4[_0x9e5044(0x17b)]=_0x9e5044(0x17b),_0x2e78f4[_0x9e5044(0x17a)]='Tabloid',_0x2e78f4['Legal']=_0x9e5044(0x15f),_0x2e78f4[_0x9e5044(0x17f)]=_0x9e5044(0x17f),_0x2e78f4[_0x9e5044(0x184)]=_0x9e5044(0x184),_0x2e78f4[_0x9e5044(0x171)]=_0x9e5044(0x171),_0x2e78f4['A3']='A3',_0x2e78f4['A4']='A4',_0x2e78f4['A5']='A5',_0x2e78f4['B4']='B4',_0x2e78f4['B5']='B5',_0x2e78f4))(e||{}),i=(_0x4b457f=>(_0x4b457f[_0x9e5044(0x15e)]=_0x9e5044(0x15e),_0x4b457f['Landscape']=_0x9e5044(0x16a),_0x4b457f))(i||{}),c=(_0x16b123=>(_0x16b123[_0x9e5044(0x16b)]=_0x9e5044(0x16b),_0x16b123[_0x9e5044(0x163)]=_0x9e5044(0x163),_0x16b123[_0x9e5044(0x159)]='FitHeight',_0x16b123['FitPage']='FitPage',_0x16b123[_0x9e5044(0x15c)]=_0x9e5044(0x15c),_0x16b123))(c||{}),g=(_0x128015=>(_0x128015[_0x9e5044(0x167)]=_0x9e5044(0x167),_0x128015[_0x9e5044(0x176)]='End',_0x128015[_0x9e5044(0x169)]=_0x9e5044(0x169),_0x128015))(g||{}),o=(_0x1f12ab=>(_0x1f12ab[_0x9e5044(0x16e)]=_0x9e5044(0x16e),_0x1f12ab[_0x9e5044(0x17c)]='Narrow',_0x1f12ab[_0x9e5044(0x183)]=_0x9e5044(0x183),_0x1f12ab[_0x9e5044(0x181)]=_0x9e5044(0x181),_0x1f12ab))(o||{});const m={[e['A3']]:{'w':0x463,'h':0x633},[e['A4']]:{'w':0x31a,'h':0x464},[e['A5']]:{'w':0x22f,'h':0x31a},[e['B4']]:{'w':0x3b0,'h':0x540},[e['B5']]:{'w':0x299,'h':0x3b0},[e['Executive']]:{'w':0x2b8,'h':0x3f0},[e[_0x9e5044(0x171)]]:{'w':0x330,'h':0x4e0},[e[_0x9e5044(0x15f)]]:{'w':0x330,'h':0x540},[e[_0x9e5044(0x17b)]]:{'w':0x330,'h':0x420},[e['Statement']]:{'w':0x210,'h':0x330},[e['Tabloid']]:{'w':0x420,'h':0x660}},N={[o[_0x9e5044(0x16e)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x9e5044(0x17c)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x9e5044(0x183)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x9e5044(0x181)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n='printing-canvas-container',p=_0x9e5044(0x16c);function A(_0x5a3da1,_0x36e196){const _0x253ef5=_0x9e5044,{w:_0x3f1d51,h:_0xfef116}=m[_0x5a3da1],_0x30fcac=_0x36e196===i[_0x253ef5(0x15e)]?_0x3f1d51:_0xfef116,_0x44cbf5=_0x36e196===i['Portrait']?_0xfef116:_0x3f1d51,_0x4cd0f9=_0x253ef5(0x177)+_0x30fcac+_0x253ef5(0x155)+_0x44cbf5+_0x253ef5(0x157)+n+',\x20.'+n+_0x253ef5(0x15d)+p+_0x253ef5(0x152)+_0x44cbf5+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x30fcac+_0x253ef5(0x175),_0x412ea1=document[_0x253ef5(0x185)](_0x253ef5(0x158));return _0x412ea1[_0x253ef5(0x170)]=_0x4cd0f9,_0x412ea1[_0x253ef5(0x164)]='offline-printing-css',_0x412ea1;}exports[_0x9e5044(0x154)]=p,exports[_0x9e5044(0x156)]=n,exports[_0x9e5044(0x15b)]=N,exports[_0x9e5044(0x173)]=m,exports[_0x9e5044(0x180)]=g,exports['PrintDirection']=i,exports[_0x9e5044(0x15a)]=o,exports[_0x9e5044(0x174)]=e,exports['PrintScale']=c,exports[_0x9e5044(0x182)]=A;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- function _0x4102(_0x3e7414,_0x54e008){const _0x2cb683=_0x2cb6();return _0x4102=function(_0x41022b,_0x272700){_0x41022b=_0x41022b-0xf2;let _0xd523b0=_0x2cb683[_0x41022b];return _0xd523b0;},_0x4102(_0x3e7414,_0x54e008);}const _0xe7f70=_0x4102;(function(_0x70cd5b,_0x39f27c){const _0x5795b0=_0x4102,_0xb38c62=_0x70cd5b();while(!![]){try{const _0x3c5fc2=parseInt(_0x5795b0(0xff))/0x1*(parseInt(_0x5795b0(0x112))/0x2)+-parseInt(_0x5795b0(0x103))/0x3*(parseInt(_0x5795b0(0x106))/0x4)+parseInt(_0x5795b0(0xf4))/0x5+-parseInt(_0x5795b0(0xfc))/0x6*(-parseInt(_0x5795b0(0xfd))/0x7)+-parseInt(_0x5795b0(0x10e))/0x8+-parseInt(_0x5795b0(0x116))/0x9+parseInt(_0x5795b0(0x10b))/0xa;if(_0x3c5fc2===_0x39f27c)break;else _0xb38c62['push'](_0xb38c62['shift']());}catch(_0x38855c){_0xb38c62['push'](_0xb38c62['shift']());}}}(_0x2cb6,0xd5897));var o=(_0x26b9ff=>(_0x26b9ff[_0xe7f70(0x108)]=_0xe7f70(0x108),_0x26b9ff['Tabloid']=_0xe7f70(0x101),_0x26b9ff[_0xe7f70(0x100)]=_0xe7f70(0x100),_0x26b9ff[_0xe7f70(0x113)]=_0xe7f70(0x113),_0x26b9ff[_0xe7f70(0xfb)]='Executive',_0x26b9ff[_0xe7f70(0x107)]=_0xe7f70(0x107),_0x26b9ff['A3']='A3',_0x26b9ff['A4']='A4',_0x26b9ff['A5']='A5',_0x26b9ff['B4']='B4',_0x26b9ff['B5']='B5',_0x26b9ff))(o||{}),i=(_0x59e789=>(_0x59e789[_0xe7f70(0xf5)]=_0xe7f70(0xf5),_0x59e789['Landscape']='Landscape',_0x59e789))(i||{}),w=(_0x45a213=>(_0x45a213[_0xe7f70(0xfa)]=_0xe7f70(0xfa),_0x45a213[_0xe7f70(0xf9)]=_0xe7f70(0xf9),_0x45a213['FitHeight']='FitHeight',_0x45a213[_0xe7f70(0xf6)]=_0xe7f70(0xf6),_0x45a213[_0xe7f70(0xf3)]=_0xe7f70(0xf3),_0x45a213))(w||{}),m=(_0x184889=>(_0x184889[_0xe7f70(0x117)]=_0xe7f70(0x117),_0x184889['End']=_0xe7f70(0xf2),_0x184889[_0xe7f70(0x10f)]=_0xe7f70(0x10f),_0x184889))(m||{}),e=(_0x24bad2=>(_0x24bad2[_0xe7f70(0x114)]=_0xe7f70(0x114),_0x24bad2[_0xe7f70(0x105)]=_0xe7f70(0x105),_0x24bad2[_0xe7f70(0xf7)]='Wide',_0x24bad2['None']=_0xe7f70(0x10a),_0x24bad2))(e||{});const g={[o['A3']]:{'w':0x463,'h':0x633},[o['A4']]:{'w':0x31a,'h':0x464},[o['A5']]:{'w':0x22f,'h':0x31a},[o['B4']]:{'w':0x3b0,'h':0x540},[o['B5']]:{'w':0x299,'h':0x3b0},[o['Executive']]:{'w':0x2b8,'h':0x3f0},[o[_0xe7f70(0x107)]]:{'w':0x330,'h':0x4e0},[o[_0xe7f70(0x100)]]:{'w':0x330,'h':0x540},[o['Letter']]:{'w':0x330,'h':0x420},[o[_0xe7f70(0x113)]]:{'w':0x210,'h':0x330},[o[_0xe7f70(0x101)]]:{'w':0x420,'h':0x660}},v={[e[_0xe7f70(0x114)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0xe7f70(0x105)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0xe7f70(0x10d),p='printing-canvas';function _0x2cb6(){const _0x4fd39f=['530OmfolE','Statement','Normal','className','13234140iSSUdb','Start','End','Custom','6989950ziFyRS','Portrait','FitPage','Wide','\x0ahtml\x20{\x0a\x20\x20\x20\x20width:\x20fit-content;\x0a}\x0abody\x20{\x0a\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20width:\x20fit-content;\x0a}\x0a@page\x20{\x0a\x20\x20\x20\x20size:\x20','FitWidth','Origin','Executive','6278142hoDztr','7hLbIZJ','\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.','2042BuxuKB','Legal','Tabloid','style','3221394YAMdnQ','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Narrow','4ECWLjH','Folio','Letter','offline-printing-css','None','13319780nOxXSi',',\x20.','printing-canvas-container','7188400zjDEOT','Middle','px\x20','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}'];_0x2cb6=function(){return _0x4fd39f;};return _0x2cb6();}function N(_0x5166e7,_0x5a09b8){const _0x57edbb=_0xe7f70,{w:_0x53244f,h:_0x30d422}=g[_0x5166e7],_0x202a94=_0x5a09b8===i['Portrait']?_0x53244f:_0x30d422,_0x2abba0=_0x5a09b8===i[_0x57edbb(0xf5)]?_0x30d422:_0x53244f,_0x363b8b=_0x57edbb(0xf8)+_0x202a94+_0x57edbb(0x110)+_0x2abba0+'px;\x20\x0a}\x0a@page\x20{\x0a\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20visibility:\x20hidden;\x0a}\x0a@media\x20print\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+_0x57edbb(0x10c)+l+_0x57edbb(0xfe)+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'+_0x2abba0+_0x57edbb(0x104)+_0x202a94+_0x57edbb(0x111),_0x203620=document['createElement'](_0x57edbb(0x102));return _0x203620['innerHTML']=_0x363b8b,_0x203620[_0x57edbb(0x115)]=_0x57edbb(0x109),_0x203620;}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
+ function _0x2702(_0x295c4a,_0x5da9a0){const _0x246e5=_0x246e();return _0x2702=function(_0x2702ec,_0x132894){_0x2702ec=_0x2702ec-0x138;let _0x17a0ce=_0x246e5[_0x2702ec];return _0x17a0ce;},_0x2702(_0x295c4a,_0x5da9a0);}const _0xca8259=_0x2702;(function(_0xca2d8b,_0x401879){const _0x267c7b=_0x2702,_0x300549=_0xca2d8b();while(!![]){try{const _0x145fe7=-parseInt(_0x267c7b(0x14b))/0x1+parseInt(_0x267c7b(0x15e))/0x2*(-parseInt(_0x267c7b(0x139))/0x3)+-parseInt(_0x267c7b(0x15c))/0x4+parseInt(_0x267c7b(0x138))/0x5*(parseInt(_0x267c7b(0x158))/0x6)+-parseInt(_0x267c7b(0x13c))/0x7*(-parseInt(_0x267c7b(0x13b))/0x8)+-parseInt(_0x267c7b(0x13d))/0x9*(parseInt(_0x267c7b(0x154))/0xa)+parseInt(_0x267c7b(0x153))/0xb;if(_0x145fe7===_0x401879)break;else _0x300549['push'](_0x300549['shift']());}catch(_0x2fcf5b){_0x300549['push'](_0x300549['shift']());}}}(_0x246e,0x535bd));function _0x246e(){const _0x275368=['style','3921753JFlYVD','1056590EWZFGb','None','Letter','\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.','24snQVJV','Start','\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','Normal','2338360vWXbHJ','Middle','41346GOmXSb','704915HkZpwk','15DejFnQ','End','5254056AiPbEm','7rFXubI','45Snnnwe','Statement','Origin','FitWidth','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Portrait','Legal','className','\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','printing-canvas-container','Tabloid','Wide','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.','19525uaTWGK','Narrow','FitHeight','FitPage','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Folio','Custom'];_0x246e=function(){return _0x275368;};return _0x246e();}var o=(_0x54b950=>(_0x54b950[_0xca8259(0x156)]=_0xca8259(0x156),_0x54b950['Tabloid']=_0xca8259(0x148),_0x54b950[_0xca8259(0x143)]=_0xca8259(0x143),_0x54b950['Statement']=_0xca8259(0x13e),_0x54b950['Executive']='Executive',_0x54b950['Folio']=_0xca8259(0x150),_0x54b950['A3']='A3',_0x54b950['A4']='A4',_0x54b950['A5']='A5',_0x54b950['B4']='B4',_0x54b950['B5']='B5',_0x54b950))(o||{}),i=(_0x2f926c=>(_0x2f926c['Portrait']=_0xca8259(0x142),_0x2f926c[_0xca8259(0x146)]='Landscape',_0x2f926c))(i||{}),w=(_0x4fbf2f=>(_0x4fbf2f[_0xca8259(0x13f)]='Origin',_0x4fbf2f[_0xca8259(0x140)]=_0xca8259(0x140),_0x4fbf2f[_0xca8259(0x14d)]=_0xca8259(0x14d),_0x4fbf2f[_0xca8259(0x14e)]=_0xca8259(0x14e),_0x4fbf2f[_0xca8259(0x151)]=_0xca8259(0x151),_0x4fbf2f))(w||{}),m=(_0xe6d55c=>(_0xe6d55c[_0xca8259(0x159)]=_0xca8259(0x159),_0xe6d55c[_0xca8259(0x13a)]=_0xca8259(0x13a),_0xe6d55c[_0xca8259(0x15d)]='Middle',_0xe6d55c))(m||{}),e=(_0x4bd357=>(_0x4bd357[_0xca8259(0x15b)]=_0xca8259(0x15b),_0x4bd357[_0xca8259(0x14c)]=_0xca8259(0x14c),_0x4bd357[_0xca8259(0x149)]=_0xca8259(0x149),_0x4bd357['None']=_0xca8259(0x155),_0x4bd357))(e||{});const g={[o['A3']]:{'w':0x463,'h':0x633},[o['A4']]:{'w':0x31a,'h':0x464},[o['A5']]:{'w':0x22f,'h':0x31a},[o['B4']]:{'w':0x3b0,'h':0x540},[o['B5']]:{'w':0x299,'h':0x3b0},[o['Executive']]:{'w':0x2b8,'h':0x3f0},[o[_0xca8259(0x150)]]:{'w':0x330,'h':0x4e0},[o[_0xca8259(0x143)]]:{'w':0x330,'h':0x540},[o['Letter']]:{'w':0x330,'h':0x420},[o[_0xca8259(0x13e)]]:{'w':0x210,'h':0x330},[o['Tabloid']]:{'w':0x420,'h':0x660}},v={[e['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0xca8259(0x14c)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0xca8259(0x155)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0xca8259(0x147),p='printing-canvas';function N(_0x31d985,_0x52ab0c){const _0x103d81=_0xca8259,{w:_0x457049,h:_0x4a4b80}=g[_0x31d985],_0x3d2c8e=_0x52ab0c===i[_0x103d81(0x142)]?_0x457049:_0x4a4b80,_0x2783ea=_0x52ab0c===i[_0x103d81(0x142)]?_0x4a4b80:_0x457049,_0x4eced0=_0x103d81(0x15a)+_0x3d2c8e+'px\x20'+_0x2783ea+_0x103d81(0x14a)+l+',\x20.'+l+_0x103d81(0x157)+p+_0x103d81(0x145)+_0x2783ea+_0x103d81(0x14f)+_0x3d2c8e+_0x103d81(0x141),_0x1690c2=document['createElement'](_0x103d81(0x152));return _0x1690c2['innerHTML']=_0x4eced0,_0x1690c2[_0x103d81(0x144)]='offline-printing-css',_0x1690c2;}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,4 +1,4 @@
1
- import { IPrintMargin, PrintPaperMargin, PrintPaperSize } from './types';
1
+ import { PrintPaperMargin, PrintPaperSize, IPrintMargin } from './types';
2
2
  interface IPaperSize {
3
3
  w: number;
4
4
  h: number;
@@ -1,2 +1,2 @@
1
- import { PrintPaperSize, PrintDirection } from './types';
1
+ import { PrintDirection, PrintPaperSize } from './types';
2
2
  export declare function createPrintStyle(paperSize: PrintPaperSize, direction: PrintDirection): HTMLStyleElement;
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x4e97(_0x59c76e,_0x48a1a4){const _0x1a1e8d=_0x1a1e();return _0x4e97=function(_0x4e97a4,_0x409c39){_0x4e97a4=_0x4e97a4-0xc2;let _0x51117d=_0x1a1e8d[_0x4e97a4];return _0x51117d;},_0x4e97(_0x59c76e,_0x48a1a4);}(function(_0x484281,_0x23b89f){const _0x247b5d=_0x4e97,_0x3d3b61=_0x484281();while(!![]){try{const _0x3d2c85=parseInt(_0x247b5d(0xfa))/0x1*(parseInt(_0x247b5d(0xe2))/0x2)+-parseInt(_0x247b5d(0xc9))/0x3*(parseInt(_0x247b5d(0xc7))/0x4)+-parseInt(_0x247b5d(0xd8))/0x5+-parseInt(_0x247b5d(0xd9))/0x6*(parseInt(_0x247b5d(0xd7))/0x7)+parseInt(_0x247b5d(0xeb))/0x8*(-parseInt(_0x247b5d(0xc6))/0x9)+-parseInt(_0x247b5d(0xd5))/0xa+parseInt(_0x247b5d(0xf2))/0xb;if(_0x3d2c85===_0x23b89f)break;else _0x3d3b61['push'](_0x3d3b61['shift']());}catch(_0x2b004e){_0x3d3b61['push'](_0x3d3b61['shift']());}}}(_0x1a1e,0xd30eb),function(_0x2cbeae,_0x3a6eda){const _0x43da7a=_0x4e97;typeof exports==_0x43da7a(0xce)&&typeof module<'u'?_0x3a6eda(exports):typeof define==_0x43da7a(0xd1)&&define[_0x43da7a(0xde)]?define([_0x43da7a(0xd6)],_0x3a6eda):(_0x2cbeae=typeof globalThis<'u'?globalThis:_0x2cbeae||self,_0x3a6eda(_0x2cbeae[_0x43da7a(0xe7)]={}));}(this,function(_0x3a6cc7){'use strict';const _0x3f8cb2=_0x4e97;var _0x3b17a1=(_0x1ec095=>(_0x1ec095[_0x3f8cb2(0xcf)]=_0x3f8cb2(0xcf),_0x1ec095[_0x3f8cb2(0xdf)]=_0x3f8cb2(0xdf),_0x1ec095[_0x3f8cb2(0xd4)]=_0x3f8cb2(0xd4),_0x1ec095[_0x3f8cb2(0xd2)]=_0x3f8cb2(0xd2),_0x1ec095[_0x3f8cb2(0xf9)]=_0x3f8cb2(0xf9),_0x1ec095['Folio']=_0x3f8cb2(0xec),_0x1ec095['A3']='A3',_0x1ec095['A4']='A4',_0x1ec095['A5']='A5',_0x1ec095['B4']='B4',_0x1ec095['B5']='B5',_0x1ec095))(_0x3b17a1||{}),_0xdaf2a2=(_0x2f8200=>(_0x2f8200[_0x3f8cb2(0xea)]=_0x3f8cb2(0xea),_0x2f8200[_0x3f8cb2(0xee)]=_0x3f8cb2(0xee),_0x2f8200))(_0xdaf2a2||{}),_0x264bbb=(_0x395a42=>(_0x395a42[_0x3f8cb2(0xcd)]=_0x3f8cb2(0xcd),_0x395a42[_0x3f8cb2(0xe1)]=_0x3f8cb2(0xe1),_0x395a42[_0x3f8cb2(0xf3)]=_0x3f8cb2(0xf3),_0x395a42[_0x3f8cb2(0xf1)]='FitPage',_0x395a42['Custom']='Custom',_0x395a42))(_0x264bbb||{}),_0x187661=(_0x2decc4=>(_0x2decc4['Start']='Start',_0x2decc4[_0x3f8cb2(0xc5)]=_0x3f8cb2(0xc5),_0x2decc4['Middle']='Middle',_0x2decc4))(_0x187661||{}),_0x26a70c=(_0x5896bf=>(_0x5896bf[_0x3f8cb2(0xe3)]='Normal',_0x5896bf[_0x3f8cb2(0xda)]=_0x3f8cb2(0xda),_0x5896bf[_0x3f8cb2(0xf8)]=_0x3f8cb2(0xf8),_0x5896bf['None']=_0x3f8cb2(0xed),_0x5896bf))(_0x26a70c||{});const _0x5a364a={[_0x3b17a1['A3']]:{'w':0x463,'h':0x633},[_0x3b17a1['A4']]:{'w':0x31a,'h':0x464},[_0x3b17a1['A5']]:{'w':0x22f,'h':0x31a},[_0x3b17a1['B4']]:{'w':0x3b0,'h':0x540},[_0x3b17a1['B5']]:{'w':0x299,'h':0x3b0},[_0x3b17a1['Executive']]:{'w':0x2b8,'h':0x3f0},[_0x3b17a1[_0x3f8cb2(0xec)]]:{'w':0x330,'h':0x4e0},[_0x3b17a1[_0x3f8cb2(0xd4)]]:{'w':0x330,'h':0x540},[_0x3b17a1[_0x3f8cb2(0xcf)]]:{'w':0x330,'h':0x420},[_0x3b17a1[_0x3f8cb2(0xd2)]]:{'w':0x210,'h':0x330},[_0x3b17a1[_0x3f8cb2(0xdf)]]:{'w':0x420,'h':0x660}},_0x315015={[_0x26a70c[_0x3f8cb2(0xe3)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x26a70c[_0x3f8cb2(0xda)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x26a70c[_0x3f8cb2(0xf8)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x26a70c[_0x3f8cb2(0xed)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x3ddf70=_0x3f8cb2(0xf4),_0x42ccb6=_0x3f8cb2(0xf5);function _0x2a7076(_0x4c275f,_0x5bc299){const _0x8f2e1c=_0x3f8cb2,{w:_0x95f15b,h:_0x40a5cb}=_0x5a364a[_0x4c275f],_0x3c309c=_0x5bc299===_0xdaf2a2[_0x8f2e1c(0xea)]?_0x95f15b:_0x40a5cb,_0x2d095e=_0x5bc299===_0xdaf2a2[_0x8f2e1c(0xea)]?_0x40a5cb:_0x95f15b,_0x2cec50='\x0ahtml\x20{\x0a\x20\x20\x20\x20width:\x20fit-content;\x0a}\x0abody\x20{\x0a\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20width:\x20fit-content;\x0a}\x0a@page\x20{\x0a\x20\x20\x20\x20size:\x20'+_0x3c309c+_0x8f2e1c(0xdc)+_0x2d095e+_0x8f2e1c(0xc4)+_0x3ddf70+_0x8f2e1c(0xe4)+_0x3ddf70+_0x8f2e1c(0xf7)+_0x42ccb6+_0x8f2e1c(0xcc)+_0x2d095e+_0x8f2e1c(0xe9)+_0x3c309c+_0x8f2e1c(0xe5),_0x63bc94=document['createElement'](_0x8f2e1c(0xe6));return _0x63bc94[_0x8f2e1c(0xcb)]=_0x2cec50,_0x63bc94[_0x8f2e1c(0xef)]=_0x8f2e1c(0xd3),_0x63bc94;}_0x3a6cc7[_0x3f8cb2(0xf6)]=_0x42ccb6,_0x3a6cc7['PRINT_CONTAINER_CLASS']=_0x3ddf70,_0x3a6cc7[_0x3f8cb2(0xf0)]=_0x315015,_0x3a6cc7[_0x3f8cb2(0xc8)]=_0x5a364a,_0x3a6cc7[_0x3f8cb2(0xc3)]=_0x187661,_0x3a6cc7[_0x3f8cb2(0xe8)]=_0xdaf2a2,_0x3a6cc7[_0x3f8cb2(0xc2)]=_0x26a70c,_0x3a6cc7[_0x3f8cb2(0xdd)]=_0x3b17a1,_0x3a6cc7['PrintScale']=_0x264bbb,_0x3a6cc7[_0x3f8cb2(0xd0)]=_0x2a7076,Object[_0x3f8cb2(0xca)](_0x3a6cc7,Symbol[_0x3f8cb2(0xe0)],{'value':_0x3f8cb2(0xdb)});}));function _0x1a1e(){const _0x309fc7=['PrintAlign','px;\x20\x0a}\x0a@page\x20{\x0a\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20visibility:\x20hidden;\x0a}\x0a@media\x20print\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.','End','108QSDRcv','115412zdndNf','PaperSizePxMap','117NaBXmH','defineProperty','innerHTML','\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','object','Letter','createPrintStyle','function','Statement','offline-printing-css','Legal','3726590uPazcO','exports','4162382TabsMc','3744370SfBBjq','6rPzORS','Narrow','Module','px\x20','PrintPaperSize','amd','Tabloid','toStringTag','FitWidth','2zPxCjB','Normal',',\x20.','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','style','UniverPrint','PrintDirection','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Portrait','166688QHXfdL','Folio','None','Landscape','className','PaperMarginMap','FitPage','28947996mpzgex','FitHeight','printing-canvas-container','printing-canvas','PRINT_CANVAS_CLASS','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','Wide','Executive','1324313maUfSE','PrintPaperMargin'];_0x1a1e=function(){return _0x309fc7;};return _0x1a1e();}
1
+ (function(_0x161b0f,_0xf429c0){const _0x2532cd=_0x3318,_0x4b4c55=_0x161b0f();while(!![]){try{const _0x49fc39=parseInt(_0x2532cd(0xe1))/0x1*(parseInt(_0x2532cd(0xd9))/0x2)+-parseInt(_0x2532cd(0xc4))/0x3+-parseInt(_0x2532cd(0xf5))/0x4+parseInt(_0x2532cd(0xdc))/0x5*(parseInt(_0x2532cd(0xd7))/0x6)+parseInt(_0x2532cd(0xf3))/0x7*(-parseInt(_0x2532cd(0xce))/0x8)+-parseInt(_0x2532cd(0xd0))/0x9*(-parseInt(_0x2532cd(0xe0))/0xa)+parseInt(_0x2532cd(0xdb))/0xb;if(_0x49fc39===_0xf429c0)break;else _0x4b4c55['push'](_0x4b4c55['shift']());}catch(_0x3b8f4){_0x4b4c55['push'](_0x4b4c55['shift']());}}}(_0x1cd1,0xa5938),function(_0x16fa8b,_0x54f331){const _0x3faa2f=_0x3318;typeof exports==_0x3faa2f(0xd3)&&typeof module<'u'?_0x54f331(exports):typeof define==_0x3faa2f(0xea)&&define['amd']?define([_0x3faa2f(0xc2)],_0x54f331):(_0x16fa8b=typeof globalThis<'u'?globalThis:_0x16fa8b||self,_0x54f331(_0x16fa8b[_0x3faa2f(0xd8)]={}));}(this,function(_0x260cdc){'use strict';const _0x58c266=_0x3318;var _0x1da513=(_0x25ac92=>(_0x25ac92[_0x58c266(0xec)]=_0x58c266(0xec),_0x25ac92[_0x58c266(0xde)]='Tabloid',_0x25ac92[_0x58c266(0xf2)]='Legal',_0x25ac92[_0x58c266(0xca)]='Statement',_0x25ac92['Executive']='Executive',_0x25ac92[_0x58c266(0xe9)]=_0x58c266(0xe9),_0x25ac92['A3']='A3',_0x25ac92['A4']='A4',_0x25ac92['A5']='A5',_0x25ac92['B4']='B4',_0x25ac92['B5']='B5',_0x25ac92))(_0x1da513||{}),_0x53467b=(_0x471615=>(_0x471615[_0x58c266(0xc5)]=_0x58c266(0xc5),_0x471615[_0x58c266(0xdd)]=_0x58c266(0xdd),_0x471615))(_0x53467b||{}),_0x369730=(_0x31613c=>(_0x31613c[_0x58c266(0xd2)]=_0x58c266(0xd2),_0x31613c[_0x58c266(0xc8)]='FitWidth',_0x31613c[_0x58c266(0xda)]='FitHeight',_0x31613c[_0x58c266(0xcb)]='FitPage',_0x31613c[_0x58c266(0xd1)]=_0x58c266(0xd1),_0x31613c))(_0x369730||{}),_0x5d7d47=(_0x46341a=>(_0x46341a[_0x58c266(0xd4)]=_0x58c266(0xd4),_0x46341a['End']=_0x58c266(0xee),_0x46341a[_0x58c266(0xe4)]=_0x58c266(0xe4),_0x46341a))(_0x5d7d47||{}),_0x47395b=(_0x347cdc=>(_0x347cdc[_0x58c266(0xcd)]=_0x58c266(0xcd),_0x347cdc[_0x58c266(0xed)]=_0x58c266(0xed),_0x347cdc[_0x58c266(0xc1)]=_0x58c266(0xc1),_0x347cdc[_0x58c266(0xdf)]=_0x58c266(0xdf),_0x347cdc))(_0x47395b||{});const _0x3c5fe3={[_0x1da513['A3']]:{'w':0x463,'h':0x633},[_0x1da513['A4']]:{'w':0x31a,'h':0x464},[_0x1da513['A5']]:{'w':0x22f,'h':0x31a},[_0x1da513['B4']]:{'w':0x3b0,'h':0x540},[_0x1da513['B5']]:{'w':0x299,'h':0x3b0},[_0x1da513['Executive']]:{'w':0x2b8,'h':0x3f0},[_0x1da513[_0x58c266(0xe9)]]:{'w':0x330,'h':0x4e0},[_0x1da513['Legal']]:{'w':0x330,'h':0x540},[_0x1da513[_0x58c266(0xec)]]:{'w':0x330,'h':0x420},[_0x1da513[_0x58c266(0xca)]]:{'w':0x210,'h':0x330},[_0x1da513[_0x58c266(0xde)]]:{'w':0x420,'h':0x660}},_0x316bab={[_0x47395b['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x47395b[_0x58c266(0xed)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x47395b[_0x58c266(0xc1)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x47395b[_0x58c266(0xdf)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x263c53=_0x58c266(0xcf),_0x289f36=_0x58c266(0xf4);function _0xb4201a(_0x47ec1e,_0x19adf2){const _0x39cbfd=_0x58c266,{w:_0x5392ee,h:_0xfd09f}=_0x3c5fe3[_0x47ec1e],_0x1b3909=_0x19adf2===_0x53467b[_0x39cbfd(0xc5)]?_0x5392ee:_0xfd09f,_0x555e7f=_0x19adf2===_0x53467b[_0x39cbfd(0xc5)]?_0xfd09f:_0x5392ee,_0x215c91=_0x39cbfd(0xe3)+_0x1b3909+_0x39cbfd(0xe6)+_0x555e7f+_0x39cbfd(0xe8)+_0x263c53+_0x39cbfd(0xe2)+_0x263c53+'\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.'+_0x289f36+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x555e7f+_0x39cbfd(0xc7)+_0x1b3909+_0x39cbfd(0xe5),_0x476623=document[_0x39cbfd(0xc3)](_0x39cbfd(0xd6));return _0x476623[_0x39cbfd(0xc6)]=_0x215c91,_0x476623['className']=_0x39cbfd(0xf1),_0x476623;}_0x260cdc['PRINT_CANVAS_CLASS']=_0x289f36,_0x260cdc[_0x58c266(0xeb)]=_0x263c53,_0x260cdc[_0x58c266(0xf6)]=_0x316bab,_0x260cdc[_0x58c266(0xef)]=_0x3c5fe3,_0x260cdc['PrintAlign']=_0x5d7d47,_0x260cdc[_0x58c266(0xd5)]=_0x53467b,_0x260cdc['PrintPaperMargin']=_0x47395b,_0x260cdc['PrintPaperSize']=_0x1da513,_0x260cdc[_0x58c266(0xcc)]=_0x369730,_0x260cdc[_0x58c266(0xf0)]=_0xb4201a,Object['defineProperty'](_0x260cdc,Symbol[_0x58c266(0xc9)],{'value':_0x58c266(0xe7)});}));function _0x3318(_0x741ce,_0x37afe0){const _0x1cd102=_0x1cd1();return _0x3318=function(_0x3318d4,_0x144e21){_0x3318d4=_0x3318d4-0xc1;let _0x20ff1c=_0x1cd102[_0x3318d4];return _0x20ff1c;},_0x3318(_0x741ce,_0x37afe0);}function _0x1cd1(){const _0x1b0e7e=['px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','FitWidth','toStringTag','Statement','FitPage','PrintScale','Normal','523112lAEOtb','printing-canvas-container','50139TQDYIJ','Custom','Origin','object','Start','PrintDirection','style','41232uvpuJX','UniverPrint','815756QxjZSC','FitHeight','1468918iRavLt','160aRutKW','Landscape','Tabloid','None','1620jCmewv','3ZqlExb',',\x20.','\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','Middle','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','px\x20','Module','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.','Folio','function','PRINT_CONTAINER_CLASS','Letter','Narrow','End','PaperSizePxMap','createPrintStyle','offline-printing-css','Legal','14XrdRvn','printing-canvas','1268976UwKjaU','PaperMarginMap','Wide','exports','createElement','4060068qxEChW','Portrait','innerHTML'];_0x1cd1=function(){return _0x1b0e7e;};return _0x1cd1();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/print",
3
- "version": "0.2.14",
3
+ "version": "0.3.0-alpha.0",
4
4
  "private": false,
5
5
  "description": "Print module for UniverJS",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -44,9 +44,9 @@
44
44
  ],
45
45
  "devDependencies": {
46
46
  "typescript": "^5.6.2",
47
- "vite": "^5.4.3",
48
- "vitest": "^2.0.5",
49
- "@univerjs-infra/shared": "0.2.14"
47
+ "vite": "^5.4.8",
48
+ "vitest": "^2.1.1",
49
+ "@univerjs-infra/shared": "0.3.0-alpha.0"
50
50
  },
51
51
  "univerSpace": {
52
52
  ".": {