@univerjs-pro/print 0.6.5 → 0.6.6-experimental.20250319-2bbe26f
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 +3 -3
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x11d5d2=_0x4cbe;(function(_0x39d75e,_0x10f48a){const _0x478549=_0x4cbe,_0x4a55d6=_0x39d75e();while(!![]){try{const _0x985a11=-parseInt(_0x478549(0xbb))/0x1+parseInt(_0x478549(0xb7))/0x2+parseInt(_0x478549(0xb2))/0x3+parseInt(_0x478549(0xde))/0x4+parseInt(_0x478549(0xb3))/0x5+-parseInt(_0x478549(0xd4))/0x6+-parseInt(_0x478549(0xd2))/0x7;if(_0x985a11===_0x10f48a)break;else _0x4a55d6['push'](_0x4a55d6['shift']());}catch(_0x4db3ed){_0x4a55d6['push'](_0x4a55d6['shift']());}}}(_0x343c,0xb78ef));Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x11d5d2(0xc3)});var e=(_0x176376=>(_0x176376[_0x11d5d2(0xd1)]=_0x11d5d2(0xd1),_0x176376[_0x11d5d2(0xb9)]=_0x11d5d2(0xb9),_0x176376[_0x11d5d2(0xc9)]=_0x11d5d2(0xc9),_0x176376[_0x11d5d2(0xd0)]='Statement',_0x176376[_0x11d5d2(0xcf)]=_0x11d5d2(0xcf),_0x176376['Folio']=_0x11d5d2(0xbd),_0x176376['A3']='A3',_0x176376['A4']='A4',_0x176376['A5']='A5',_0x176376['B4']='B4',_0x176376['B5']='B5',_0x176376))(e||{}),i=(_0x569b35=>(_0x569b35[_0x11d5d2(0xc1)]=_0x11d5d2(0xc1),_0x569b35[_0x11d5d2(0xcd)]=_0x11d5d2(0xcd),_0x569b35))(i||{}),c=(_0x2a996a=>(_0x2a996a[_0x11d5d2(0xba)]=_0x11d5d2(0xba),_0x2a996a['FitWidth']=_0x11d5d2(0xbf),_0x2a996a['FitHeight']='FitHeight',_0x2a996a['FitPage']=_0x11d5d2(0xc8),_0x2a996a['Custom']=_0x11d5d2(0xb4),_0x2a996a))(c||{}),g=(_0x2b496b=>(_0x2b496b[_0x11d5d2(0xdd)]=_0x11d5d2(0xdd),_0x2b496b[_0x11d5d2(0xc2)]='End',_0x2b496b[_0x11d5d2(0xc5)]=_0x11d5d2(0xc5),_0x2b496b))(g||{}),o=(_0x374f69=>(_0x374f69[_0x11d5d2(0xb1)]='Normal',_0x374f69[_0x11d5d2(0xd9)]=_0x11d5d2(0xd9),_0x374f69[_0x11d5d2(0xc7)]=_0x11d5d2(0xc7),_0x374f69[_0x11d5d2(0xdb)]='None',_0x374f69))(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[_0x11d5d2(0xcf)]]:{'w':0x2b8,'h':0x3f0},[e[_0x11d5d2(0xbd)]]:{'w':0x330,'h':0x4e0},[e['Legal']]:{'w':0x330,'h':0x540},[e[_0x11d5d2(0xd1)]]:{'w':0x330,'h':0x420},[e[_0x11d5d2(0xd0)]]:{'w':0x210,'h':0x330},[e[_0x11d5d2(0xb9)]]:{'w':0x420,'h':0x660}},N={[o[_0x11d5d2(0xb1)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x11d5d2(0xd9)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x11d5d2(0xc7)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x11d5d2(0xdb)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x11d5d2(0xc6),p=_0x11d5d2(0xb5);function _0x4cbe(_0x27cba2,_0x1c2cb5){const _0x343c24=_0x343c();return _0x4cbe=function(_0x4cbefc,_0x190f63){_0x4cbefc=_0x4cbefc-0xaf;let _0x1e28be=_0x343c24[_0x4cbefc];return _0x1e28be;},_0x4cbe(_0x27cba2,_0x1c2cb5);}function A(_0x486ed0,_0x21187c){const _0x5aa915=_0x11d5d2,{w:_0xb1bac9,h:_0x1b4992}=m[_0x486ed0],_0x30724e=_0x21187c===i[_0x5aa915(0xc1)]?_0xb1bac9:_0x1b4992,_0x1a18e3=_0x21187c===i[_0x5aa915(0xc1)]?_0x1b4992:_0xb1bac9,_0x40c64a=_0x5aa915(0xd3)+_0x30724e+_0x5aa915(0xbe)+_0x1a18e3+_0x5aa915(0xcc)+n+',\x20.'+n+_0x5aa915(0xd6)+p+_0x5aa915(0xd5)+_0x1a18e3+_0x5aa915(0xaf)+_0x30724e+_0x5aa915(0xbc),_0x565c2d=document[_0x5aa915(0xb6)](_0x5aa915(0xd8));return _0x565c2d[_0x5aa915(0xd7)]=_0x40c64a,_0x565c2d['className']=_0x5aa915(0xc0),_0x565c2d;}function _0x343c(){const _0x326d61=['Start','5132892ikZkXU','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','PRINT_CANVAS_CLASS','Normal','1589331vGooug','1997070PEzRCK','Custom','printing-canvas','createElement','2452966FuPWyo','PrintScale','Tabloid','Origin','897888XeKPlY','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Folio','px\x20','FitWidth','offline-printing-css','Portrait','End','Module','PRINT_CONTAINER_CLASS','Middle','printing-canvas-container','Wide','FitPage','Legal','PrintPaperSize','PrintDirection','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.','Landscape','PrintPaperMargin','Executive','Statement','Letter','7046102jWLITo','\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','4695408tJSqYS','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\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.','innerHTML','style','Narrow','createPrintStyle','None','PaperSizePxMap'];_0x343c=function(){return _0x326d61;};return _0x343c();}exports[_0x11d5d2(0xb0)]=p,exports[_0x11d5d2(0xc4)]=n,exports['PaperMarginMap']=N,exports[_0x11d5d2(0xdc)]=m,exports['PrintAlign']=g,exports[_0x11d5d2(0xcb)]=i,exports[_0x11d5d2(0xce)]=o,exports[_0x11d5d2(0xca)]=e,exports[_0x11d5d2(0xb8)]=c,exports[_0x11d5d2(0xda)]=A;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5428b1=_0x5064;(function(_0x580a0e,_0x4b156c){const _0x15131c=_0x5064,_0x1a2010=_0x580a0e();while(!![]){try{const _0x3a9284=-parseInt(_0x15131c(0x18c))/0x1*(-parseInt(_0x15131c(0x190))/0x2)+-parseInt(_0x15131c(0x182))/0x3*(-parseInt(_0x15131c(0x187))/0x4)+parseInt(_0x15131c(0x183))/0x5*(-parseInt(_0x15131c(0x1a1))/0x6)+parseInt(_0x15131c(0x1ac))/0x7*(-parseInt(_0x15131c(0x181))/0x8)+-parseInt(_0x15131c(0x192))/0x9*(parseInt(_0x15131c(0x19d))/0xa)+parseInt(_0x15131c(0x196))/0xb*(-parseInt(_0x15131c(0x1a0))/0xc)+parseInt(_0x15131c(0x197))/0xd*(parseInt(_0x15131c(0x1a4))/0xe);if(_0x3a9284===_0x4b156c)break;else _0x1a2010['push'](_0x1a2010['shift']());}catch(_0x401a92){_0x1a2010['push'](_0x1a2010['shift']());}}}(_0x55cf,0x8cdb1));function _0x5064(_0x5861b6,_0x37876b){const _0x55cf6e=_0x55cf();return _0x5064=function(_0x50642e,_0x359702){_0x50642e=_0x50642e-0x181;let _0x43cb95=_0x55cf6e[_0x50642e];return _0x43cb95;},_0x5064(_0x5861b6,_0x37876b);}function _0x55cf(){const _0x4dc9be=['Middle','10784DjOCEu','21789xhUUTN','1065ymgduz','Letter','Wide','FitPage','40tsfwvE','None','Executive','FitWidth','createElement','1VhAcvn','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.','End','style','1988188nbyehj','Folio','1119807nicnXv','FitHeight','Tabloid','Normal','44MghPpj','6962891LbpPcb','Custom','offline-printing-css','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Narrow','10ooGMFO','\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','Portrait','573828oNbTNs','16194UndYdG','\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.','Origin','14kedXCs','Legal',',\x20.','Statement','px\x20','className','printing-canvas','Start','700lzYkUP'];_0x55cf=function(){return _0x4dc9be;};return _0x55cf();}var o=(_0x9b391e=>(_0x9b391e[_0x5428b1(0x184)]=_0x5428b1(0x184),_0x9b391e[_0x5428b1(0x194)]=_0x5428b1(0x194),_0x9b391e[_0x5428b1(0x1a5)]=_0x5428b1(0x1a5),_0x9b391e[_0x5428b1(0x1a7)]='Statement',_0x9b391e['Executive']=_0x5428b1(0x189),_0x9b391e[_0x5428b1(0x191)]=_0x5428b1(0x191),_0x9b391e['A3']='A3',_0x9b391e['A4']='A4',_0x9b391e['A5']='A5',_0x9b391e['B4']='B4',_0x9b391e['B5']='B5',_0x9b391e))(o||{}),i=(_0x108caf=>(_0x108caf['Portrait']=_0x5428b1(0x19f),_0x108caf['Landscape']='Landscape',_0x108caf))(i||{}),w=(_0x2f6be4=>(_0x2f6be4[_0x5428b1(0x1a3)]=_0x5428b1(0x1a3),_0x2f6be4[_0x5428b1(0x18a)]=_0x5428b1(0x18a),_0x2f6be4[_0x5428b1(0x193)]=_0x5428b1(0x193),_0x2f6be4[_0x5428b1(0x186)]=_0x5428b1(0x186),_0x2f6be4[_0x5428b1(0x198)]=_0x5428b1(0x198),_0x2f6be4))(w||{}),m=(_0x480492=>(_0x480492[_0x5428b1(0x1ab)]=_0x5428b1(0x1ab),_0x480492[_0x5428b1(0x18e)]=_0x5428b1(0x18e),_0x480492[_0x5428b1(0x1ad)]=_0x5428b1(0x1ad),_0x480492))(m||{}),e=(_0x4af9b2=>(_0x4af9b2[_0x5428b1(0x195)]='Normal',_0x4af9b2[_0x5428b1(0x19c)]=_0x5428b1(0x19c),_0x4af9b2[_0x5428b1(0x185)]=_0x5428b1(0x185),_0x4af9b2[_0x5428b1(0x188)]=_0x5428b1(0x188),_0x4af9b2))(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[_0x5428b1(0x189)]]:{'w':0x2b8,'h':0x3f0},[o[_0x5428b1(0x191)]]:{'w':0x330,'h':0x4e0},[o[_0x5428b1(0x1a5)]]:{'w':0x330,'h':0x540},[o['Letter']]:{'w':0x330,'h':0x420},[o['Statement']]:{'w':0x210,'h':0x330},[o[_0x5428b1(0x194)]]:{'w':0x420,'h':0x660}},v={[e[_0x5428b1(0x195)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x5428b1(0x19c)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0x5428b1(0x185)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x5428b1(0x188)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l='printing-canvas-container',p=_0x5428b1(0x1aa);function N(_0xc2f985,_0x4834ba){const _0x54d420=_0x5428b1,{w:_0x27a0b0,h:_0x4ea7ff}=g[_0xc2f985],_0x1797bc=_0x4834ba===i['Portrait']?_0x27a0b0:_0x4ea7ff,_0xbaa1cc=_0x4834ba===i[_0x54d420(0x19f)]?_0x4ea7ff:_0x27a0b0,_0x1ad6f4=_0x54d420(0x19e)+_0x1797bc+_0x54d420(0x1a8)+_0xbaa1cc+_0x54d420(0x18d)+l+_0x54d420(0x1a6)+l+_0x54d420(0x1a2)+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'+_0xbaa1cc+_0x54d420(0x19a)+_0x1797bc+_0x54d420(0x19b),_0x5b829f=document[_0x54d420(0x18b)](_0x54d420(0x18f));return _0x5b829f['innerHTML']=_0x1ad6f4,_0x5b829f[_0x54d420(0x1a9)]=_0x54d420(0x199),_0x5b829f;}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 _0x1242(_0x561151,_0x275500){const _0x2b8006=_0x2b80();return _0x1242=function(_0x12429f,_0xff2fb6){_0x12429f=_0x12429f-0x18b;let _0x4913e1=_0x2b8006[_0x12429f];return _0x4913e1;},_0x1242(_0x561151,_0x275500);}function _0x2b80(){const _0x47dc3c=['Custom','4572441YmkufX','2203140owpIup','amd','printing-canvas','\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}','Landscape','innerHTML','FitPage','Wide','1TZYstS','20PAjuUk','7IKiddm','Executive','24ZNCNKq','Statement','Module','PaperMarginMap','Legal','401560hbxAap','Portrait','offline-printing-css','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Tabloid','None','10589051WwECzv','Origin','1416600MUOcUY','Letter','FitHeight','PrintDirection',',\x20.','printing-canvas-container','PRINT_CONTAINER_CLASS','Narrow','Normal','\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.','PrintPaperMargin','Middle','Start','5195368lUqnIc','FitWidth','toStringTag','exports','PrintAlign','976254FmkGtG','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','createElement','Folio','px\x20','End','className','UniverProPrint'];_0x2b80=function(){return _0x47dc3c;};return _0x2b80();}(function(_0x1f6298,_0x4c8070){const _0x3cfff9=_0x1242,_0x58ce5a=_0x1f6298();while(!![]){try{const _0x548a62=parseInt(_0x3cfff9(0x1a6))/0x1*(parseInt(_0x3cfff9(0x193))/0x2)+parseInt(_0x3cfff9(0x19d))/0x3+-parseInt(_0x3cfff9(0x1b7))/0x4+-parseInt(_0x3cfff9(0x1af))/0x5*(-parseInt(_0x3cfff9(0x1aa))/0x6)+-parseInt(_0x3cfff9(0x1a8))/0x7*(-parseInt(_0x3cfff9(0x18e))/0x8)+parseInt(_0x3cfff9(0x19c))/0x9+parseInt(_0x3cfff9(0x1a7))/0xa*(-parseInt(_0x3cfff9(0x1b5))/0xb);if(_0x548a62===_0x4c8070)break;else _0x58ce5a['push'](_0x58ce5a['shift']());}catch(_0x31500e){_0x58ce5a['push'](_0x58ce5a['shift']());}}}(_0x2b80,0x66fa1),function(_0x41f15b,_0x37c2b3){const _0x2f281d=_0x1242;typeof exports=='object'&&typeof module<'u'?_0x37c2b3(exports):typeof define=='function'&&define[_0x2f281d(0x19e)]?define([_0x2f281d(0x191)],_0x37c2b3):(_0x41f15b=typeof globalThis<'u'?globalThis:_0x41f15b||self,_0x37c2b3(_0x41f15b[_0x2f281d(0x19a)]={}));}(this,function(_0x2f10d6){'use strict';const _0x49e201=_0x1242;var _0x489a94=(_0x5d2317=>(_0x5d2317[_0x49e201(0x1b8)]=_0x49e201(0x1b8),_0x5d2317['Tabloid']=_0x49e201(0x1b3),_0x5d2317['Legal']='Legal',_0x5d2317['Statement']=_0x49e201(0x1ab),_0x5d2317[_0x49e201(0x1a9)]=_0x49e201(0x1a9),_0x5d2317[_0x49e201(0x196)]=_0x49e201(0x196),_0x5d2317['A3']='A3',_0x5d2317['A4']='A4',_0x5d2317['A5']='A5',_0x5d2317['B4']='B4',_0x5d2317['B5']='B5',_0x5d2317))(_0x489a94||{}),_0x305338=(_0x3ed196=>(_0x3ed196['Portrait']=_0x49e201(0x1b0),_0x3ed196[_0x49e201(0x1a2)]=_0x49e201(0x1a2),_0x3ed196))(_0x305338||{}),_0x15d19e=(_0x20763a=>(_0x20763a[_0x49e201(0x1b6)]=_0x49e201(0x1b6),_0x20763a[_0x49e201(0x18f)]=_0x49e201(0x18f),_0x20763a['FitHeight']=_0x49e201(0x1b9),_0x20763a[_0x49e201(0x1a4)]='FitPage',_0x20763a[_0x49e201(0x19b)]='Custom',_0x20763a))(_0x15d19e||{}),_0x3db4fb=(_0x3d2d0e=>(_0x3d2d0e[_0x49e201(0x18d)]='Start',_0x3d2d0e[_0x49e201(0x198)]=_0x49e201(0x198),_0x3d2d0e[_0x49e201(0x18c)]='Middle',_0x3d2d0e))(_0x3db4fb||{}),_0x2e8524=(_0x39fb80=>(_0x39fb80[_0x49e201(0x1bf)]=_0x49e201(0x1bf),_0x39fb80[_0x49e201(0x1be)]='Narrow',_0x39fb80['Wide']='Wide',_0x39fb80['None']=_0x49e201(0x1b4),_0x39fb80))(_0x2e8524||{});const _0x9b5f1d={[_0x489a94['A3']]:{'w':0x463,'h':0x633},[_0x489a94['A4']]:{'w':0x31a,'h':0x464},[_0x489a94['A5']]:{'w':0x22f,'h':0x31a},[_0x489a94['B4']]:{'w':0x3b0,'h':0x540},[_0x489a94['B5']]:{'w':0x299,'h':0x3b0},[_0x489a94[_0x49e201(0x1a9)]]:{'w':0x2b8,'h':0x3f0},[_0x489a94[_0x49e201(0x196)]]:{'w':0x330,'h':0x4e0},[_0x489a94[_0x49e201(0x1ae)]]:{'w':0x330,'h':0x540},[_0x489a94['Letter']]:{'w':0x330,'h':0x420},[_0x489a94[_0x49e201(0x1ab)]]:{'w':0x210,'h':0x330},[_0x489a94[_0x49e201(0x1b3)]]:{'w':0x420,'h':0x660}},_0x5b3415={[_0x2e8524[_0x49e201(0x1bf)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x2e8524['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x2e8524[_0x49e201(0x1a5)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x2e8524['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x2cb6bd=_0x49e201(0x1bc),_0x396d44=_0x49e201(0x19f);function _0x126f5f(_0x25c89f,_0x208f4b){const _0x4bda0a=_0x49e201,{w:_0x5db65e,h:_0x28f7ed}=_0x9b5f1d[_0x25c89f],_0x4f6357=_0x208f4b===_0x305338[_0x4bda0a(0x1b0)]?_0x5db65e:_0x28f7ed,_0x2ee9b9=_0x208f4b===_0x305338['Portrait']?_0x28f7ed:_0x5db65e,_0x31107d=_0x4bda0a(0x1a0)+_0x4f6357+_0x4bda0a(0x197)+_0x2ee9b9+'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.'+_0x2cb6bd+_0x4bda0a(0x1bb)+_0x2cb6bd+_0x4bda0a(0x1c0)+_0x396d44+_0x4bda0a(0x194)+_0x2ee9b9+_0x4bda0a(0x1b2)+_0x4f6357+_0x4bda0a(0x1a1),_0x3792c7=document[_0x4bda0a(0x195)]('style');return _0x3792c7[_0x4bda0a(0x1a3)]=_0x31107d,_0x3792c7[_0x4bda0a(0x199)]=_0x4bda0a(0x1b1),_0x3792c7;}_0x2f10d6['PRINT_CANVAS_CLASS']=_0x396d44,_0x2f10d6[_0x49e201(0x1bd)]=_0x2cb6bd,_0x2f10d6[_0x49e201(0x1ad)]=_0x5b3415,_0x2f10d6['PaperSizePxMap']=_0x9b5f1d,_0x2f10d6[_0x49e201(0x192)]=_0x3db4fb,_0x2f10d6[_0x49e201(0x1ba)]=_0x305338,_0x2f10d6[_0x49e201(0x18b)]=_0x2e8524,_0x2f10d6['PrintPaperSize']=_0x489a94,_0x2f10d6['PrintScale']=_0x15d19e,_0x2f10d6['createPrintStyle']=_0x126f5f,Object['defineProperty'](_0x2f10d6,Symbol[_0x49e201(0x190)],{'value':_0x49e201(0x1ac)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.6-experimental.20250319-2bbe26f",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Print module for UniverJS",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
],
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"typescript": "^5.8.2",
|
|
46
|
-
"vite": "^6.2.
|
|
46
|
+
"vite": "^6.2.1",
|
|
47
47
|
"vitest": "^3.0.8",
|
|
48
|
-
"@univerjs-infra/shared": "0.6.
|
|
48
|
+
"@univerjs-infra/shared": "0.6.6"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|