@univerjs-pro/print 0.6.10-nightly.202504101607 → 0.6.10-nightly.202504121606
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 +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +1 -1
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x19c2c1=_0x24aa;(function(_0x343680,_0x43f7f9){const _0x51cf73=_0x24aa,_0x51bdd5=_0x343680();while(!![]){try{const _0x38fad3=-parseInt(_0x51cf73(0x206))/0x1*(-parseInt(_0x51cf73(0x219))/0x2)+parseInt(_0x51cf73(0x1fc))/0x3*(parseInt(_0x51cf73(0x202))/0x4)+-parseInt(_0x51cf73(0x201))/0x5*(parseInt(_0x51cf73(0x205))/0x6)+-parseInt(_0x51cf73(0x1f4))/0x7+-parseInt(_0x51cf73(0x1f3))/0x8*(-parseInt(_0x51cf73(0x215))/0x9)+parseInt(_0x51cf73(0x210))/0xa+parseInt(_0x51cf73(0x1f8))/0xb*(parseInt(_0x51cf73(0x20b))/0xc);if(_0x38fad3===_0x43f7f9)break;else _0x51bdd5['push'](_0x51bdd5['shift']());}catch(_0x4e40f4){_0x51bdd5['push'](_0x51bdd5['shift']());}}}(_0x1a46,0xe9bf3));function _0x24aa(_0x14ced9,_0xfc29fb){const _0x1a463d=_0x1a46();return _0x24aa=function(_0x24aa17,_0x579eab){_0x24aa17=_0x24aa17-0x1ea;let _0x5c67f9=_0x1a463d[_0x24aa17];return _0x5c67f9;},_0x24aa(_0x14ced9,_0xfc29fb);}function _0x1a46(){const _0x58a3db=['None','108hpaUZV','PrintDirection','className','printing-canvas','PaperMarginMap','3904280XYlmij','innerHTML','printing-canvas-container','Executive','createElement','35829VzQgvc','Legal','Tabloid','PrintPaperSize','2IvRmQU','Portrait','px\x20','PrintAlign','Wide','Folio','Origin',',\x20.','Narrow','Normal','Start','\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.','FitHeight','Middle','Letter','1296WnTyUC','7753746gWAppv','Landscape','PrintScale','style','1319857jrvIlu','FitWidth','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','defineProperty','2886cDAsRF','offline-printing-css','toStringTag','PrintPaperMargin','Statement','2323340dwiUUS','1660spMLdC','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Custom','6AQsjQL','15310SmAbYb','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','PRINT_CONTAINER_CLASS','\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'];_0x1a46=function(){return _0x58a3db;};return _0x1a46();}Object[_0x19c2c1(0x1fb)](exports,Symbol[_0x19c2c1(0x1fe)],{'value':'Module'});var e=(_0x5692ad=>(_0x5692ad[_0x19c2c1(0x1f2)]=_0x19c2c1(0x1f2),_0x5692ad[_0x19c2c1(0x217)]='Tabloid',_0x5692ad[_0x19c2c1(0x216)]=_0x19c2c1(0x216),_0x5692ad['Statement']=_0x19c2c1(0x200),_0x5692ad['Executive']=_0x19c2c1(0x213),_0x5692ad[_0x19c2c1(0x21e)]=_0x19c2c1(0x21e),_0x5692ad['A3']='A3',_0x5692ad['A4']='A4',_0x5692ad['A5']='A5',_0x5692ad['B4']='B4',_0x5692ad['B5']='B5',_0x5692ad))(e||{}),i=(_0x2ee1c2=>(_0x2ee1c2[_0x19c2c1(0x21a)]=_0x19c2c1(0x21a),_0x2ee1c2[_0x19c2c1(0x1f5)]=_0x19c2c1(0x1f5),_0x2ee1c2))(i||{}),c=(_0x39f53b=>(_0x39f53b[_0x19c2c1(0x1ea)]=_0x19c2c1(0x1ea),_0x39f53b['FitWidth']=_0x19c2c1(0x1f9),_0x39f53b[_0x19c2c1(0x1f0)]=_0x19c2c1(0x1f0),_0x39f53b['FitPage']='FitPage',_0x39f53b[_0x19c2c1(0x204)]=_0x19c2c1(0x204),_0x39f53b))(c||{}),g=(_0x1134b9=>(_0x1134b9[_0x19c2c1(0x1ee)]=_0x19c2c1(0x1ee),_0x1134b9['End']='End',_0x1134b9[_0x19c2c1(0x1f1)]=_0x19c2c1(0x1f1),_0x1134b9))(g||{}),o=(_0x9f9562=>(_0x9f9562[_0x19c2c1(0x1ed)]=_0x19c2c1(0x1ed),_0x9f9562[_0x19c2c1(0x1ec)]=_0x19c2c1(0x1ec),_0x9f9562[_0x19c2c1(0x21d)]='Wide',_0x9f9562[_0x19c2c1(0x20a)]=_0x19c2c1(0x20a),_0x9f9562))(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[_0x19c2c1(0x213)]]:{'w':0x2b8,'h':0x3f0},[e[_0x19c2c1(0x21e)]]:{'w':0x330,'h':0x4e0},[e[_0x19c2c1(0x216)]]:{'w':0x330,'h':0x540},[e[_0x19c2c1(0x1f2)]]:{'w':0x330,'h':0x420},[e['Statement']]:{'w':0x210,'h':0x330},[e[_0x19c2c1(0x217)]]:{'w':0x420,'h':0x660}},N={[o[_0x19c2c1(0x1ed)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x19c2c1(0x1ec)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x19c2c1(0x20a)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x19c2c1(0x212),p=_0x19c2c1(0x20e);function A(_0x353717,_0x1bd6eb){const _0x1fa8fb=_0x19c2c1,{w:_0xf5ef08,h:_0x2e195c}=m[_0x353717],_0x3fdede=_0x1bd6eb===i[_0x1fa8fb(0x21a)]?_0xf5ef08:_0x2e195c,_0x5856d5=_0x1bd6eb===i[_0x1fa8fb(0x21a)]?_0x2e195c:_0xf5ef08,_0x56564c=_0x1fa8fb(0x209)+_0x3fdede+_0x1fa8fb(0x21b)+_0x5856d5+'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+_0x1fa8fb(0x1eb)+n+_0x1fa8fb(0x1ef)+p+_0x1fa8fb(0x203)+_0x5856d5+_0x1fa8fb(0x1fa)+_0x3fdede+_0x1fa8fb(0x207),_0x50f8c9=document[_0x1fa8fb(0x214)](_0x1fa8fb(0x1f7));return _0x50f8c9[_0x1fa8fb(0x211)]=_0x56564c,_0x50f8c9[_0x1fa8fb(0x20d)]=_0x1fa8fb(0x1fd),_0x50f8c9;}exports['PRINT_CANVAS_CLASS']=p,exports[_0x19c2c1(0x208)]=n,exports[_0x19c2c1(0x20f)]=N,exports['PaperSizePxMap']=m,exports[_0x19c2c1(0x21c)]=g,exports[_0x19c2c1(0x20c)]=i,exports[_0x19c2c1(0x1ff)]=o,exports[_0x19c2c1(0x218)]=e,exports[_0x19c2c1(0x1f6)]=c,exports['createPrintStyle']=A;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x14c936=_0x54f1;(function(_0x38aaf9,_0x526aa3){const _0x596ac1=_0x54f1,_0x3f58ce=_0x38aaf9();while(!![]){try{const _0x42db65=-parseInt(_0x596ac1(0xbb))/0x1*(parseInt(_0x596ac1(0xd9))/0x2)+-parseInt(_0x596ac1(0xc0))/0x3*(parseInt(_0x596ac1(0xce))/0x4)+-parseInt(_0x596ac1(0xda))/0x5*(-parseInt(_0x596ac1(0xd2))/0x6)+parseInt(_0x596ac1(0xc5))/0x7+-parseInt(_0x596ac1(0xc3))/0x8*(parseInt(_0x596ac1(0xb9))/0x9)+parseInt(_0x596ac1(0xd5))/0xa*(-parseInt(_0x596ac1(0xb8))/0xb)+parseInt(_0x596ac1(0xcf))/0xc;if(_0x42db65===_0x526aa3)break;else _0x3f58ce['push'](_0x3f58ce['shift']());}catch(_0x851e07){_0x3f58ce['push'](_0x3f58ce['shift']());}}}(_0x4fd3,0x32bba));function _0x4fd3(){const _0x3bbc7d=['208BtJoBY','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.','1177554lYnYCh',',\x20.','style','Executive','FitWidth','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Start','Origin','innerHTML','180ktaKvo','8252712sTtXQf','className','Tabloid','30AEUWib','FitPage','printing-canvas','30JOOYLX','Folio','Middle','End','32KuSEHB','44115MHFoEw','Wide','Normal','createElement','offline-printing-css','Narrow','Landscape','Custom','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\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','FitHeight','380094IxxxYN','75879rjXEsh','px\x20','13308iyBPCX','printing-canvas-container','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Statement','Portrait','10431qiVHyD','None','Letter'];_0x4fd3=function(){return _0x3bbc7d;};return _0x4fd3();}var o=(_0x4a6c8c=>(_0x4a6c8c['Letter']=_0x14c936(0xc2),_0x4a6c8c['Tabloid']=_0x14c936(0xd1),_0x4a6c8c['Legal']='Legal',_0x4a6c8c[_0x14c936(0xbe)]=_0x14c936(0xbe),_0x4a6c8c[_0x14c936(0xc8)]=_0x14c936(0xc8),_0x4a6c8c[_0x14c936(0xd6)]=_0x14c936(0xd6),_0x4a6c8c['A3']='A3',_0x4a6c8c['A4']='A4',_0x4a6c8c['A5']='A5',_0x4a6c8c['B4']='B4',_0x4a6c8c['B5']='B5',_0x4a6c8c))(o||{}),i=(_0x30991f=>(_0x30991f['Portrait']='Portrait',_0x30991f[_0x14c936(0xb3)]=_0x14c936(0xb3),_0x30991f))(i||{}),w=(_0x38f6f3=>(_0x38f6f3[_0x14c936(0xcc)]=_0x14c936(0xcc),_0x38f6f3[_0x14c936(0xc9)]=_0x14c936(0xc9),_0x38f6f3[_0x14c936(0xb7)]=_0x14c936(0xb7),_0x38f6f3[_0x14c936(0xd3)]=_0x14c936(0xd3),_0x38f6f3[_0x14c936(0xb4)]=_0x14c936(0xb4),_0x38f6f3))(w||{}),m=(_0x221c94=>(_0x221c94[_0x14c936(0xcb)]=_0x14c936(0xcb),_0x221c94['End']=_0x14c936(0xd8),_0x221c94['Middle']=_0x14c936(0xd7),_0x221c94))(m||{}),e=(_0x3dc152=>(_0x3dc152['Normal']='Normal',_0x3dc152['Narrow']=_0x14c936(0xb2),_0x3dc152[_0x14c936(0xdb)]=_0x14c936(0xdb),_0x3dc152[_0x14c936(0xc1)]=_0x14c936(0xc1),_0x3dc152))(e||{});function _0x54f1(_0x12e966,_0x43a6ee){const _0x4fd31a=_0x4fd3();return _0x54f1=function(_0x54f1bf,_0xab75d6){_0x54f1bf=_0x54f1bf-0xb0;let _0x407eca=_0x4fd31a[_0x54f1bf];return _0x407eca;},_0x54f1(_0x12e966,_0x43a6ee);}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[_0x14c936(0xc8)]]:{'w':0x2b8,'h':0x3f0},[o[_0x14c936(0xd6)]]:{'w':0x330,'h':0x4e0},[o['Legal']]:{'w':0x330,'h':0x540},[o[_0x14c936(0xc2)]]:{'w':0x330,'h':0x420},[o[_0x14c936(0xbe)]]:{'w':0x210,'h':0x330},[o[_0x14c936(0xd1)]]:{'w':0x420,'h':0x660}},v={[e[_0x14c936(0xdc)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x14c936(0xb2)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x14c936(0xc1)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x14c936(0xbc),p=_0x14c936(0xd4);function N(_0x581fdb,_0x2e178f){const _0x25ef53=_0x14c936,{w:_0x8b396c,h:_0x169da5}=g[_0x581fdb],_0x230e77=_0x2e178f===i[_0x25ef53(0xbf)]?_0x8b396c:_0x169da5,_0xa78cd8=_0x2e178f===i[_0x25ef53(0xbf)]?_0x169da5:_0x8b396c,_0x1f304e=_0x25ef53(0xb6)+_0x230e77+_0x25ef53(0xba)+_0xa78cd8+_0x25ef53(0xc4)+l+_0x25ef53(0xc6)+l+'\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+_0x25ef53(0xbd)+_0xa78cd8+_0x25ef53(0xb5)+_0x230e77+_0x25ef53(0xca),_0x4964ab=document[_0x25ef53(0xb0)](_0x25ef53(0xc7));return _0x4964ab[_0x25ef53(0xcd)]=_0x1f304e,_0x4964ab[_0x25ef53(0xd0)]=_0x25ef53(0xb1),_0x4964ab;}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/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x14c936=_0x54f1;(function(_0x38aaf9,_0x526aa3){const _0x596ac1=_0x54f1,_0x3f58ce=_0x38aaf9();while(!![]){try{const _0x42db65=-parseInt(_0x596ac1(0xbb))/0x1*(parseInt(_0x596ac1(0xd9))/0x2)+-parseInt(_0x596ac1(0xc0))/0x3*(parseInt(_0x596ac1(0xce))/0x4)+-parseInt(_0x596ac1(0xda))/0x5*(-parseInt(_0x596ac1(0xd2))/0x6)+parseInt(_0x596ac1(0xc5))/0x7+-parseInt(_0x596ac1(0xc3))/0x8*(parseInt(_0x596ac1(0xb9))/0x9)+parseInt(_0x596ac1(0xd5))/0xa*(-parseInt(_0x596ac1(0xb8))/0xb)+parseInt(_0x596ac1(0xcf))/0xc;if(_0x42db65===_0x526aa3)break;else _0x3f58ce['push'](_0x3f58ce['shift']());}catch(_0x851e07){_0x3f58ce['push'](_0x3f58ce['shift']());}}}(_0x4fd3,0x32bba));function _0x4fd3(){const _0x3bbc7d=['208BtJoBY','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.','1177554lYnYCh',',\x20.','style','Executive','FitWidth','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Start','Origin','innerHTML','180ktaKvo','8252712sTtXQf','className','Tabloid','30AEUWib','FitPage','printing-canvas','30JOOYLX','Folio','Middle','End','32KuSEHB','44115MHFoEw','Wide','Normal','createElement','offline-printing-css','Narrow','Landscape','Custom','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\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','FitHeight','380094IxxxYN','75879rjXEsh','px\x20','13308iyBPCX','printing-canvas-container','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Statement','Portrait','10431qiVHyD','None','Letter'];_0x4fd3=function(){return _0x3bbc7d;};return _0x4fd3();}var o=(_0x4a6c8c=>(_0x4a6c8c['Letter']=_0x14c936(0xc2),_0x4a6c8c['Tabloid']=_0x14c936(0xd1),_0x4a6c8c['Legal']='Legal',_0x4a6c8c[_0x14c936(0xbe)]=_0x14c936(0xbe),_0x4a6c8c[_0x14c936(0xc8)]=_0x14c936(0xc8),_0x4a6c8c[_0x14c936(0xd6)]=_0x14c936(0xd6),_0x4a6c8c['A3']='A3',_0x4a6c8c['A4']='A4',_0x4a6c8c['A5']='A5',_0x4a6c8c['B4']='B4',_0x4a6c8c['B5']='B5',_0x4a6c8c))(o||{}),i=(_0x30991f=>(_0x30991f['Portrait']='Portrait',_0x30991f[_0x14c936(0xb3)]=_0x14c936(0xb3),_0x30991f))(i||{}),w=(_0x38f6f3=>(_0x38f6f3[_0x14c936(0xcc)]=_0x14c936(0xcc),_0x38f6f3[_0x14c936(0xc9)]=_0x14c936(0xc9),_0x38f6f3[_0x14c936(0xb7)]=_0x14c936(0xb7),_0x38f6f3[_0x14c936(0xd3)]=_0x14c936(0xd3),_0x38f6f3[_0x14c936(0xb4)]=_0x14c936(0xb4),_0x38f6f3))(w||{}),m=(_0x221c94=>(_0x221c94[_0x14c936(0xcb)]=_0x14c936(0xcb),_0x221c94['End']=_0x14c936(0xd8),_0x221c94['Middle']=_0x14c936(0xd7),_0x221c94))(m||{}),e=(_0x3dc152=>(_0x3dc152['Normal']='Normal',_0x3dc152['Narrow']=_0x14c936(0xb2),_0x3dc152[_0x14c936(0xdb)]=_0x14c936(0xdb),_0x3dc152[_0x14c936(0xc1)]=_0x14c936(0xc1),_0x3dc152))(e||{});function _0x54f1(_0x12e966,_0x43a6ee){const _0x4fd31a=_0x4fd3();return _0x54f1=function(_0x54f1bf,_0xab75d6){_0x54f1bf=_0x54f1bf-0xb0;let _0x407eca=_0x4fd31a[_0x54f1bf];return _0x407eca;},_0x54f1(_0x12e966,_0x43a6ee);}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[_0x14c936(0xc8)]]:{'w':0x2b8,'h':0x3f0},[o[_0x14c936(0xd6)]]:{'w':0x330,'h':0x4e0},[o['Legal']]:{'w':0x330,'h':0x540},[o[_0x14c936(0xc2)]]:{'w':0x330,'h':0x420},[o[_0x14c936(0xbe)]]:{'w':0x210,'h':0x330},[o[_0x14c936(0xd1)]]:{'w':0x420,'h':0x660}},v={[e[_0x14c936(0xdc)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x14c936(0xb2)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x14c936(0xc1)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x14c936(0xbc),p=_0x14c936(0xd4);function N(_0x581fdb,_0x2e178f){const _0x25ef53=_0x14c936,{w:_0x8b396c,h:_0x169da5}=g[_0x581fdb],_0x230e77=_0x2e178f===i[_0x25ef53(0xbf)]?_0x8b396c:_0x169da5,_0xa78cd8=_0x2e178f===i[_0x25ef53(0xbf)]?_0x169da5:_0x8b396c,_0x1f304e=_0x25ef53(0xb6)+_0x230e77+_0x25ef53(0xba)+_0xa78cd8+_0x25ef53(0xc4)+l+_0x25ef53(0xc6)+l+'\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+_0x25ef53(0xbd)+_0xa78cd8+_0x25ef53(0xb5)+_0x230e77+_0x25ef53(0xca),_0x4964ab=document[_0x25ef53(0xb0)](_0x25ef53(0xc7));return _0x4964ab[_0x25ef53(0xcd)]=_0x1f304e,_0x4964ab[_0x25ef53(0xd0)]=_0x25ef53(0xb1),_0x4964ab;}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
|
-
|
|
1
|
+
(function(_0x1f5c13,_0x5cfccd){const _0x1bb2af=_0x516e,_0xf4c33d=_0x1f5c13();while(!![]){try{const _0x9feb42=parseInt(_0x1bb2af(0xad))/0x1*(parseInt(_0x1bb2af(0x9b))/0x2)+parseInt(_0x1bb2af(0xaa))/0x3*(parseInt(_0x1bb2af(0xa3))/0x4)+-parseInt(_0x1bb2af(0xc2))/0x5*(parseInt(_0x1bb2af(0x90))/0x6)+parseInt(_0x1bb2af(0xc1))/0x7*(-parseInt(_0x1bb2af(0x9f))/0x8)+-parseInt(_0x1bb2af(0xae))/0x9+parseInt(_0x1bb2af(0x9c))/0xa*(-parseInt(_0x1bb2af(0xb0))/0xb)+parseInt(_0x1bb2af(0xb3))/0xc;if(_0x9feb42===_0x5cfccd)break;else _0xf4c33d['push'](_0xf4c33d['shift']());}catch(_0x4f1310){_0xf4c33d['push'](_0xf4c33d['shift']());}}}(_0x54c1,0x49e2b),function(_0x24d232,_0x85a2ff){const _0x1fe31b=_0x516e;typeof exports==_0x1fe31b(0xa0)&&typeof module<'u'?_0x85a2ff(exports):typeof define=='function'&&define[_0x1fe31b(0xb1)]?define([_0x1fe31b(0xbe)],_0x85a2ff):(_0x24d232=typeof globalThis<'u'?globalThis:_0x24d232||self,_0x85a2ff(_0x24d232['UniverProPrint']={}));}(this,function(_0xa99324){'use strict';const _0x5e0996=_0x516e;var _0x44af9c=(_0x425002=>(_0x425002[_0x5e0996(0xbb)]=_0x5e0996(0xbb),_0x425002[_0x5e0996(0xb8)]=_0x5e0996(0xb8),_0x425002[_0x5e0996(0x94)]=_0x5e0996(0x94),_0x425002[_0x5e0996(0xbf)]=_0x5e0996(0xbf),_0x425002['Executive']=_0x5e0996(0x92),_0x425002[_0x5e0996(0xc0)]=_0x5e0996(0xc0),_0x425002['A3']='A3',_0x425002['A4']='A4',_0x425002['A5']='A5',_0x425002['B4']='B4',_0x425002['B5']='B5',_0x425002))(_0x44af9c||{}),_0x539a4e=(_0x5da6ca=>(_0x5da6ca[_0x5e0996(0x9e)]=_0x5e0996(0x9e),_0x5da6ca['Landscape']=_0x5e0996(0x8f),_0x5da6ca))(_0x539a4e||{}),_0x5c2b7e=(_0x4052af=>(_0x4052af['Origin']=_0x5e0996(0xbd),_0x4052af[_0x5e0996(0xa8)]=_0x5e0996(0xa8),_0x4052af[_0x5e0996(0xb6)]=_0x5e0996(0xb6),_0x4052af[_0x5e0996(0xb9)]=_0x5e0996(0xb9),_0x4052af['Custom']=_0x5e0996(0xb4),_0x4052af))(_0x5c2b7e||{}),_0x48639e=(_0x5cdf47=>(_0x5cdf47[_0x5e0996(0xaf)]=_0x5e0996(0xaf),_0x5cdf47[_0x5e0996(0x99)]=_0x5e0996(0x99),_0x5cdf47[_0x5e0996(0xab)]='Middle',_0x5cdf47))(_0x48639e||{}),_0x57caf8=(_0x582e33=>(_0x582e33[_0x5e0996(0x8e)]='Normal',_0x582e33['Narrow']='Narrow',_0x582e33[_0x5e0996(0xa2)]='Wide',_0x582e33[_0x5e0996(0x98)]=_0x5e0996(0x98),_0x582e33))(_0x57caf8||{});const _0x22b2a6={[_0x44af9c['A3']]:{'w':0x463,'h':0x633},[_0x44af9c['A4']]:{'w':0x31a,'h':0x464},[_0x44af9c['A5']]:{'w':0x22f,'h':0x31a},[_0x44af9c['B4']]:{'w':0x3b0,'h':0x540},[_0x44af9c['B5']]:{'w':0x299,'h':0x3b0},[_0x44af9c['Executive']]:{'w':0x2b8,'h':0x3f0},[_0x44af9c[_0x5e0996(0xc0)]]:{'w':0x330,'h':0x4e0},[_0x44af9c[_0x5e0996(0x94)]]:{'w':0x330,'h':0x540},[_0x44af9c[_0x5e0996(0xbb)]]:{'w':0x330,'h':0x420},[_0x44af9c[_0x5e0996(0xbf)]]:{'w':0x210,'h':0x330},[_0x44af9c[_0x5e0996(0xb8)]]:{'w':0x420,'h':0x660}},_0xe9de8d={[_0x57caf8[_0x5e0996(0x8e)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x57caf8[_0x5e0996(0xc3)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x57caf8[_0x5e0996(0xa2)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x57caf8[_0x5e0996(0x98)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x3ba3c9=_0x5e0996(0xa9),_0x117060=_0x5e0996(0x93);function _0x2c9512(_0xc72406,_0x522be3){const _0xaa59a0=_0x5e0996,{w:_0xd13d11,h:_0x45eaf8}=_0x22b2a6[_0xc72406],_0x20bdb3=_0x522be3===_0x539a4e[_0xaa59a0(0x9e)]?_0xd13d11:_0x45eaf8,_0x5977d1=_0x522be3===_0x539a4e[_0xaa59a0(0x9e)]?_0x45eaf8:_0xd13d11,_0x47077b=_0xaa59a0(0x96)+_0x20bdb3+'px\x20'+_0x5977d1+'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.'+_0x3ba3c9+',\x20.'+_0x3ba3c9+_0xaa59a0(0x91)+_0x117060+_0xaa59a0(0xa4)+_0x5977d1+_0xaa59a0(0x9d)+_0x20bdb3+_0xaa59a0(0x97),_0x3f8cde=document[_0xaa59a0(0x8d)](_0xaa59a0(0x8c));return _0x3f8cde['innerHTML']=_0x47077b,_0x3f8cde[_0xaa59a0(0xb7)]=_0xaa59a0(0xbc),_0x3f8cde;}_0xa99324[_0x5e0996(0xa7)]=_0x117060,_0xa99324[_0x5e0996(0xa6)]=_0x3ba3c9,_0xa99324['PaperMarginMap']=_0xe9de8d,_0xa99324['PaperSizePxMap']=_0x22b2a6,_0xa99324[_0x5e0996(0xac)]=_0x48639e,_0xa99324[_0x5e0996(0xa1)]=_0x539a4e,_0xa99324[_0x5e0996(0xba)]=_0x57caf8,_0xa99324[_0x5e0996(0xa5)]=_0x44af9c,_0xa99324[_0x5e0996(0x95)]=_0x5c2b7e,_0xa99324[_0x5e0996(0x9a)]=_0x2c9512,Object[_0x5e0996(0xb5)](_0xa99324,Symbol['toStringTag'],{'value':_0x5e0996(0xb2)});}));function _0x516e(_0x5de850,_0x3dec9f){const _0x54c10c=_0x54c1();return _0x516e=function(_0x516ee9,_0x541403){_0x516ee9=_0x516ee9-0x8c;let _0x1f30c1=_0x54c10c[_0x516ee9];return _0x1f30c1;},_0x516e(_0x5de850,_0x3dec9f);}function _0x54c1(){const _0x2fecd5=['Start','76813nHMorX','amd','Module','17677680CMxWhR','Custom','defineProperty','FitHeight','className','Tabloid','FitPage','PrintPaperMargin','Letter','offline-printing-css','Origin','exports','Statement','Folio','98PxsrIJ','5nSxTXZ','Narrow','style','createElement','Normal','Landscape','3217740dxbawF','\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.','Executive','printing-canvas','Legal','PrintScale','\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','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','None','End','createPrintStyle','138682uGrzpx','490RZTFMK','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Portrait','303376BaYFlg','object','PrintDirection','Wide','4UmvDgg','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','PrintPaperSize','PRINT_CONTAINER_CLASS','PRINT_CANVAS_CLASS','FitWidth','printing-canvas-container','957867mTEOoY','Middle','PrintAlign','6JcJlFS','4468275IiamMl'];_0x54c1=function(){return _0x2fecd5;};return _0x54c1();}
|