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