@univerjs-pro/print 0.6.7 → 0.6.9-experimental.20250403-d914ddc
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 -0
- package/lib/umd/index.js +1 -1
- package/package.json +2 -2
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x7fffa0=_0x250d;(function(_0x5a70e0,_0x4273e0){const _0x5bf26d=_0x250d,_0x37a4a0=_0x5a70e0();while(!![]){try{const _0x45e943=-parseInt(_0x5bf26d(0x113))/0x1+parseInt(_0x5bf26d(0x133))/0x2*(-parseInt(_0x5bf26d(0x10f))/0x3)+parseInt(_0x5bf26d(0x116))/0x4+-parseInt(_0x5bf26d(0x10b))/0x5+-parseInt(_0x5bf26d(0x134))/0x6+parseInt(_0x5bf26d(0x12a))/0x7*(-parseInt(_0x5bf26d(0x112))/0x8)+-parseInt(_0x5bf26d(0x11c))/0x9*(-parseInt(_0x5bf26d(0x137))/0xa);if(_0x45e943===_0x4273e0)break;else _0x37a4a0['push'](_0x37a4a0['shift']());}catch(_0x3a8652){_0x37a4a0['push'](_0x37a4a0['shift']());}}}(_0x46a0,0x8f344));function _0x250d(_0x43e939,_0x18a7cd){const _0x46a036=_0x46a0();return _0x250d=function(_0x250dff,_0x582c28){_0x250dff=_0x250dff-0x107;let _0x1ab697=_0x46a036[_0x250dff];return _0x1ab697;},_0x250d(_0x43e939,_0x18a7cd);}Object[_0x7fffa0(0x139)](exports,Symbol[_0x7fffa0(0x12f)],{'value':_0x7fffa0(0x11f)});function _0x46a0(){const _0xac90b5=['6726240FjCSzh','\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','Legal','10PggaCs','printing-canvas','defineProperty','Normal','FitPage','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Wide','395420mtSmIU','Custom','PRINT_CONTAINER_CLASS','Folio','3ktZgrn','End','None','176IUtlsG','738542eEsQta','Landscape','Narrow','2231920WTevsi','PrintDirection','Start','Executive','PaperSizePxMap','printing-canvas-container','33963903JWabNM','PRINT_CANVAS_CLASS','createPrintStyle','Module',',\x20.','PrintScale','px\x20','FitWidth','PrintAlign','PaperMarginMap','Portrait','\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.','className','offline-printing-css','263543dogOZI','Statement','style','FitHeight','Letter','toStringTag','Middle','Tabloid','createElement','1956478DGxaSw'];_0x46a0=function(){return _0xac90b5;};return _0x46a0();}var e=(_0x4b2b2e=>(_0x4b2b2e[_0x7fffa0(0x12e)]=_0x7fffa0(0x12e),_0x4b2b2e[_0x7fffa0(0x131)]='Tabloid',_0x4b2b2e[_0x7fffa0(0x136)]=_0x7fffa0(0x136),_0x4b2b2e[_0x7fffa0(0x12b)]='Statement',_0x4b2b2e[_0x7fffa0(0x119)]=_0x7fffa0(0x119),_0x4b2b2e[_0x7fffa0(0x10e)]=_0x7fffa0(0x10e),_0x4b2b2e['A3']='A3',_0x4b2b2e['A4']='A4',_0x4b2b2e['A5']='A5',_0x4b2b2e['B4']='B4',_0x4b2b2e['B5']='B5',_0x4b2b2e))(e||{}),i=(_0x36dd8a=>(_0x36dd8a[_0x7fffa0(0x126)]=_0x7fffa0(0x126),_0x36dd8a[_0x7fffa0(0x114)]='Landscape',_0x36dd8a))(i||{}),c=(_0x5ab577=>(_0x5ab577['Origin']='Origin',_0x5ab577[_0x7fffa0(0x123)]=_0x7fffa0(0x123),_0x5ab577[_0x7fffa0(0x12d)]=_0x7fffa0(0x12d),_0x5ab577[_0x7fffa0(0x108)]=_0x7fffa0(0x108),_0x5ab577[_0x7fffa0(0x10c)]=_0x7fffa0(0x10c),_0x5ab577))(c||{}),g=(_0x1a5f7a=>(_0x1a5f7a[_0x7fffa0(0x118)]=_0x7fffa0(0x118),_0x1a5f7a[_0x7fffa0(0x110)]=_0x7fffa0(0x110),_0x1a5f7a[_0x7fffa0(0x130)]='Middle',_0x1a5f7a))(g||{}),o=(_0x2d8f64=>(_0x2d8f64[_0x7fffa0(0x107)]=_0x7fffa0(0x107),_0x2d8f64[_0x7fffa0(0x115)]=_0x7fffa0(0x115),_0x2d8f64[_0x7fffa0(0x10a)]=_0x7fffa0(0x10a),_0x2d8f64[_0x7fffa0(0x111)]=_0x7fffa0(0x111),_0x2d8f64))(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[_0x7fffa0(0x119)]]:{'w':0x2b8,'h':0x3f0},[e[_0x7fffa0(0x10e)]]:{'w':0x330,'h':0x4e0},[e[_0x7fffa0(0x136)]]:{'w':0x330,'h':0x540},[e[_0x7fffa0(0x12e)]]:{'w':0x330,'h':0x420},[e[_0x7fffa0(0x12b)]]:{'w':0x210,'h':0x330},[e[_0x7fffa0(0x131)]]:{'w':0x420,'h':0x660}},N={[o[_0x7fffa0(0x107)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x7fffa0(0x115)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x7fffa0(0x10a)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x7fffa0(0x111)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x7fffa0(0x11b),p=_0x7fffa0(0x138);function A(_0x2bfc19,_0x195310){const _0x32dcbb=_0x7fffa0,{w:_0x19886e,h:_0xf93feb}=m[_0x2bfc19],_0x497fb6=_0x195310===i[_0x32dcbb(0x126)]?_0x19886e:_0xf93feb,_0x3b4e00=_0x195310===i[_0x32dcbb(0x126)]?_0xf93feb:_0x19886e,_0x265f7c=_0x32dcbb(0x135)+_0x497fb6+_0x32dcbb(0x122)+_0x3b4e00+'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+_0x32dcbb(0x120)+n+_0x32dcbb(0x127)+p+_0x32dcbb(0x109)+_0x3b4e00+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x497fb6+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',_0x461282=document[_0x32dcbb(0x132)](_0x32dcbb(0x12c));return _0x461282['innerHTML']=_0x265f7c,_0x461282[_0x32dcbb(0x128)]=_0x32dcbb(0x129),_0x461282;}exports[_0x7fffa0(0x11d)]=p,exports[_0x7fffa0(0x10d)]=n,exports[_0x7fffa0(0x125)]=N,exports[_0x7fffa0(0x11a)]=m,exports[_0x7fffa0(0x124)]=g,exports[_0x7fffa0(0x117)]=i,exports['PrintPaperMargin']=o,exports['PrintPaperSize']=e,exports[_0x7fffa0(0x121)]=c,exports[_0x7fffa0(0x11e)]=A;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1840b5=_0x3b1b;function _0x70c4(){const _0x178e9a=['Tabloid','Landscape','style','Normal','Origin','Wide','4CHgXgr','Middle','FitHeight','Folio','Letter','FitWidth','offline-printing-css','14410HjOSwy','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','Narrow','printing-canvas-container','5008896GzamvZ','printing-canvas','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','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.','Start','7220508ggJOic','Executive','className','3185miqLnZ','89CDFGTY','Portrait','3874HlkIhx','Statement','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Legal','px\x20','None',',\x20.','2954335leTMlF','12712zNxvjO','7781940PbLour','createElement','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.','20990nzlHwW'];_0x70c4=function(){return _0x178e9a;};return _0x70c4();}function _0x3b1b(_0x329a5b,_0x103990){const _0x70c4e1=_0x70c4();return _0x3b1b=function(_0x3b1b43,_0x135af3){_0x3b1b43=_0x3b1b43-0x168;let _0x4d49ba=_0x70c4e1[_0x3b1b43];return _0x4d49ba;},_0x3b1b(_0x329a5b,_0x103990);}(function(_0x5862c7,_0x547815){const _0x1883d5=_0x3b1b,_0x3d4ba9=_0x5862c7();while(!![]){try{const _0x44beab=parseInt(_0x1883d5(0x173))/0x1*(-parseInt(_0x1883d5(0x175))/0x2)+parseInt(_0x1883d5(0x168))/0x3*(parseInt(_0x1883d5(0x188))/0x4)+-parseInt(_0x1883d5(0x17c))/0x5+parseInt(_0x1883d5(0x16f))/0x6+parseInt(_0x1883d5(0x172))/0x7*(parseInt(_0x1883d5(0x17d))/0x8)+parseInt(_0x1883d5(0x17e))/0x9+-parseInt(_0x1883d5(0x181))/0xa*(parseInt(_0x1883d5(0x18f))/0xb);if(_0x44beab===_0x547815)break;else _0x3d4ba9['push'](_0x3d4ba9['shift']());}catch(_0x1de027){_0x3d4ba9['push'](_0x3d4ba9['shift']());}}}(_0x70c4,0xe762b));var o=(_0x5a6b39=>(_0x5a6b39['Letter']=_0x1840b5(0x18c),_0x5a6b39[_0x1840b5(0x182)]=_0x1840b5(0x182),_0x5a6b39[_0x1840b5(0x178)]=_0x1840b5(0x178),_0x5a6b39[_0x1840b5(0x176)]=_0x1840b5(0x176),_0x5a6b39[_0x1840b5(0x170)]=_0x1840b5(0x170),_0x5a6b39['Folio']=_0x1840b5(0x18b),_0x5a6b39['A3']='A3',_0x5a6b39['A4']='A4',_0x5a6b39['A5']='A5',_0x5a6b39['B4']='B4',_0x5a6b39['B5']='B5',_0x5a6b39))(o||{}),i=(_0x19dd39=>(_0x19dd39[_0x1840b5(0x174)]='Portrait',_0x19dd39[_0x1840b5(0x183)]=_0x1840b5(0x183),_0x19dd39))(i||{}),w=(_0x3d9799=>(_0x3d9799[_0x1840b5(0x186)]=_0x1840b5(0x186),_0x3d9799[_0x1840b5(0x18d)]=_0x1840b5(0x18d),_0x3d9799[_0x1840b5(0x18a)]=_0x1840b5(0x18a),_0x3d9799['FitPage']='FitPage',_0x3d9799[_0x1840b5(0x16c)]=_0x1840b5(0x16c),_0x3d9799))(w||{}),m=(_0x4e1c78=>(_0x4e1c78['Start']=_0x1840b5(0x16e),_0x4e1c78[_0x1840b5(0x16a)]=_0x1840b5(0x16a),_0x4e1c78['Middle']=_0x1840b5(0x189),_0x4e1c78))(m||{}),e=(_0x53bbb5=>(_0x53bbb5[_0x1840b5(0x185)]=_0x1840b5(0x185),_0x53bbb5[_0x1840b5(0x192)]='Narrow',_0x53bbb5[_0x1840b5(0x187)]=_0x1840b5(0x187),_0x53bbb5[_0x1840b5(0x17a)]='None',_0x53bbb5))(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[_0x1840b5(0x170)]]:{'w':0x2b8,'h':0x3f0},[o[_0x1840b5(0x18b)]]:{'w':0x330,'h':0x4e0},[o[_0x1840b5(0x178)]]:{'w':0x330,'h':0x540},[o[_0x1840b5(0x18c)]]:{'w':0x330,'h':0x420},[o[_0x1840b5(0x176)]]:{'w':0x210,'h':0x330},[o[_0x1840b5(0x182)]]:{'w':0x420,'h':0x660}},v={[e[_0x1840b5(0x185)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0x1840b5(0x187)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x1840b5(0x193),p=_0x1840b5(0x169);function N(_0x48730d,_0x3791d3){const _0x2ee01c=_0x1840b5,{w:_0x75e44d,h:_0x5e9ae7}=g[_0x48730d],_0xbb166=_0x3791d3===i['Portrait']?_0x75e44d:_0x5e9ae7,_0x1af168=_0x3791d3===i[_0x2ee01c(0x174)]?_0x5e9ae7:_0x75e44d,_0x479f0e=_0x2ee01c(0x16b)+_0xbb166+_0x2ee01c(0x179)+_0x1af168+_0x2ee01c(0x180)+l+_0x2ee01c(0x17b)+l+_0x2ee01c(0x16d)+p+_0x2ee01c(0x191)+_0x1af168+_0x2ee01c(0x177)+_0xbb166+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',_0x4aece8=document[_0x2ee01c(0x17f)](_0x2ee01c(0x184));return _0x4aece8[_0x2ee01c(0x190)]=_0x479f0e,_0x4aece8[_0x2ee01c(0x171)]=_0x2ee01c(0x18e),_0x4aece8;}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
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x1840b5=_0x3b1b;function _0x70c4(){const _0x178e9a=['Tabloid','Landscape','style','Normal','Origin','Wide','4CHgXgr','Middle','FitHeight','Folio','Letter','FitWidth','offline-printing-css','14410HjOSwy','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','Narrow','printing-canvas-container','5008896GzamvZ','printing-canvas','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','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.','Start','7220508ggJOic','Executive','className','3185miqLnZ','89CDFGTY','Portrait','3874HlkIhx','Statement','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Legal','px\x20','None',',\x20.','2954335leTMlF','12712zNxvjO','7781940PbLour','createElement','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.','20990nzlHwW'];_0x70c4=function(){return _0x178e9a;};return _0x70c4();}function _0x3b1b(_0x329a5b,_0x103990){const _0x70c4e1=_0x70c4();return _0x3b1b=function(_0x3b1b43,_0x135af3){_0x3b1b43=_0x3b1b43-0x168;let _0x4d49ba=_0x70c4e1[_0x3b1b43];return _0x4d49ba;},_0x3b1b(_0x329a5b,_0x103990);}(function(_0x5862c7,_0x547815){const _0x1883d5=_0x3b1b,_0x3d4ba9=_0x5862c7();while(!![]){try{const _0x44beab=parseInt(_0x1883d5(0x173))/0x1*(-parseInt(_0x1883d5(0x175))/0x2)+parseInt(_0x1883d5(0x168))/0x3*(parseInt(_0x1883d5(0x188))/0x4)+-parseInt(_0x1883d5(0x17c))/0x5+parseInt(_0x1883d5(0x16f))/0x6+parseInt(_0x1883d5(0x172))/0x7*(parseInt(_0x1883d5(0x17d))/0x8)+parseInt(_0x1883d5(0x17e))/0x9+-parseInt(_0x1883d5(0x181))/0xa*(parseInt(_0x1883d5(0x18f))/0xb);if(_0x44beab===_0x547815)break;else _0x3d4ba9['push'](_0x3d4ba9['shift']());}catch(_0x1de027){_0x3d4ba9['push'](_0x3d4ba9['shift']());}}}(_0x70c4,0xe762b));var o=(_0x5a6b39=>(_0x5a6b39['Letter']=_0x1840b5(0x18c),_0x5a6b39[_0x1840b5(0x182)]=_0x1840b5(0x182),_0x5a6b39[_0x1840b5(0x178)]=_0x1840b5(0x178),_0x5a6b39[_0x1840b5(0x176)]=_0x1840b5(0x176),_0x5a6b39[_0x1840b5(0x170)]=_0x1840b5(0x170),_0x5a6b39['Folio']=_0x1840b5(0x18b),_0x5a6b39['A3']='A3',_0x5a6b39['A4']='A4',_0x5a6b39['A5']='A5',_0x5a6b39['B4']='B4',_0x5a6b39['B5']='B5',_0x5a6b39))(o||{}),i=(_0x19dd39=>(_0x19dd39[_0x1840b5(0x174)]='Portrait',_0x19dd39[_0x1840b5(0x183)]=_0x1840b5(0x183),_0x19dd39))(i||{}),w=(_0x3d9799=>(_0x3d9799[_0x1840b5(0x186)]=_0x1840b5(0x186),_0x3d9799[_0x1840b5(0x18d)]=_0x1840b5(0x18d),_0x3d9799[_0x1840b5(0x18a)]=_0x1840b5(0x18a),_0x3d9799['FitPage']='FitPage',_0x3d9799[_0x1840b5(0x16c)]=_0x1840b5(0x16c),_0x3d9799))(w||{}),m=(_0x4e1c78=>(_0x4e1c78['Start']=_0x1840b5(0x16e),_0x4e1c78[_0x1840b5(0x16a)]=_0x1840b5(0x16a),_0x4e1c78['Middle']=_0x1840b5(0x189),_0x4e1c78))(m||{}),e=(_0x53bbb5=>(_0x53bbb5[_0x1840b5(0x185)]=_0x1840b5(0x185),_0x53bbb5[_0x1840b5(0x192)]='Narrow',_0x53bbb5[_0x1840b5(0x187)]=_0x1840b5(0x187),_0x53bbb5[_0x1840b5(0x17a)]='None',_0x53bbb5))(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[_0x1840b5(0x170)]]:{'w':0x2b8,'h':0x3f0},[o[_0x1840b5(0x18b)]]:{'w':0x330,'h':0x4e0},[o[_0x1840b5(0x178)]]:{'w':0x330,'h':0x540},[o[_0x1840b5(0x18c)]]:{'w':0x330,'h':0x420},[o[_0x1840b5(0x176)]]:{'w':0x210,'h':0x330},[o[_0x1840b5(0x182)]]:{'w':0x420,'h':0x660}},v={[e[_0x1840b5(0x185)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0x1840b5(0x187)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x1840b5(0x193),p=_0x1840b5(0x169);function N(_0x48730d,_0x3791d3){const _0x2ee01c=_0x1840b5,{w:_0x75e44d,h:_0x5e9ae7}=g[_0x48730d],_0xbb166=_0x3791d3===i['Portrait']?_0x75e44d:_0x5e9ae7,_0x1af168=_0x3791d3===i[_0x2ee01c(0x174)]?_0x5e9ae7:_0x75e44d,_0x479f0e=_0x2ee01c(0x16b)+_0xbb166+_0x2ee01c(0x179)+_0x1af168+_0x2ee01c(0x180)+l+_0x2ee01c(0x17b)+l+_0x2ee01c(0x16d)+p+_0x2ee01c(0x191)+_0x1af168+_0x2ee01c(0x177)+_0xbb166+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',_0x4aece8=document[_0x2ee01c(0x17f)](_0x2ee01c(0x184));return _0x4aece8[_0x2ee01c(0x190)]=_0x479f0e,_0x4aece8[_0x2ee01c(0x171)]=_0x2ee01c(0x18e),_0x4aece8;}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(_0x161036,_0x3e5e4c){const _0xf28744=_0x309a,_0x5b604f=_0x161036();while(!![]){try{const _0x586f47=parseInt(_0xf28744(0x1a4))/0x1+parseInt(_0xf28744(0x1a5))/0x2*(-parseInt(_0xf28744(0x1a2))/0x3)+parseInt(_0xf28744(0x1c6))/0x4+parseInt(_0xf28744(0x1b2))/0x5*(-parseInt(_0xf28744(0x19e))/0x6)+-parseInt(_0xf28744(0x19a))/0x7*(parseInt(_0xf28744(0x197))/0x8)+parseInt(_0xf28744(0x198))/0x9*(-parseInt(_0xf28744(0x1c7))/0xa)+-parseInt(_0xf28744(0x1bf))/0xb*(-parseInt(_0xf28744(0x1c3))/0xc);if(_0x586f47===_0x3e5e4c)break;else _0x5b604f['push'](_0x5b604f['shift']());}catch(_0x1c9ade){_0x5b604f['push'](_0x5b604f['shift']());}}}(_0x585d,0x806b2),function(_0x517bb0,_0x58b6a0){const _0x73ec83=_0x309a;typeof exports=='object'&&typeof module<'u'?_0x58b6a0(exports):typeof define==_0x73ec83(0x1b6)&&define['amd']?define(['exports'],_0x58b6a0):(_0x517bb0=typeof globalThis<'u'?globalThis:_0x517bb0||self,_0x58b6a0(_0x517bb0['UniverProPrint']={}));}(this,function(_0x4039c5){'use strict';const _0xa679db=_0x309a;var _0x1544ba=(_0x4b5d78=>(_0x4b5d78['Letter']=_0xa679db(0x1ae),_0x4b5d78[_0xa679db(0x1b7)]=_0xa679db(0x1b7),_0x4b5d78[_0xa679db(0x196)]=_0xa679db(0x196),_0x4b5d78['Statement']=_0xa679db(0x1ad),_0x4b5d78[_0xa679db(0x1bc)]=_0xa679db(0x1bc),_0x4b5d78['Folio']=_0xa679db(0x199),_0x4b5d78['A3']='A3',_0x4b5d78['A4']='A4',_0x4b5d78['A5']='A5',_0x4b5d78['B4']='B4',_0x4b5d78['B5']='B5',_0x4b5d78))(_0x1544ba||{}),_0x14cc5e=(_0x37c9a1=>(_0x37c9a1[_0xa679db(0x1c8)]=_0xa679db(0x1c8),_0x37c9a1[_0xa679db(0x1a6)]=_0xa679db(0x1a6),_0x37c9a1))(_0x14cc5e||{}),_0x1a7547=(_0x108d07=>(_0x108d07['Origin']=_0xa679db(0x1a0),_0x108d07[_0xa679db(0x1b4)]=_0xa679db(0x1b4),_0x108d07[_0xa679db(0x1be)]=_0xa679db(0x1be),_0x108d07[_0xa679db(0x1b1)]='FitPage',_0x108d07['Custom']='Custom',_0x108d07))(_0x1a7547||{}),_0x4d5127=(_0x485213=>(_0x485213['Start']=_0xa679db(0x1af),_0x485213['End']='End',_0x485213['Middle']=_0xa679db(0x1ac),_0x485213))(_0x4d5127||{}),_0x22c7fb=(_0x4ac8c7=>(_0x4ac8c7[_0xa679db(0x1b8)]=_0xa679db(0x1b8),_0x4ac8c7[_0xa679db(0x19c)]=_0xa679db(0x19c),_0x4ac8c7[_0xa679db(0x1b5)]=_0xa679db(0x1b5),_0x4ac8c7[_0xa679db(0x1bb)]='None',_0x4ac8c7))(_0x22c7fb||{});const _0x36c18f={[_0x1544ba['A3']]:{'w':0x463,'h':0x633},[_0x1544ba['A4']]:{'w':0x31a,'h':0x464},[_0x1544ba['A5']]:{'w':0x22f,'h':0x31a},[_0x1544ba['B4']]:{'w':0x3b0,'h':0x540},[_0x1544ba['B5']]:{'w':0x299,'h':0x3b0},[_0x1544ba[_0xa679db(0x1bc)]]:{'w':0x2b8,'h':0x3f0},[_0x1544ba[_0xa679db(0x199)]]:{'w':0x330,'h':0x4e0},[_0x1544ba[_0xa679db(0x196)]]:{'w':0x330,'h':0x540},[_0x1544ba['Letter']]:{'w':0x330,'h':0x420},[_0x1544ba[_0xa679db(0x1ad)]]:{'w':0x210,'h':0x330},[_0x1544ba['Tabloid']]:{'w':0x420,'h':0x660}},_0x3399f0={[_0x22c7fb[_0xa679db(0x1b8)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x22c7fb[_0xa679db(0x19c)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x22c7fb[_0xa679db(0x1b5)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x22c7fb[_0xa679db(0x1bb)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x2342ca=_0xa679db(0x1ab),_0x589ce0=_0xa679db(0x1a7);function _0xa98ca9(_0x46f971,_0x13ce6f){const _0x32681d=_0xa679db,{w:_0x10e362,h:_0x3c1226}=_0x36c18f[_0x46f971],_0x12b688=_0x13ce6f===_0x14cc5e[_0x32681d(0x1c8)]?_0x10e362:_0x3c1226,_0x7b8b08=_0x13ce6f===_0x14cc5e[_0x32681d(0x1c8)]?_0x3c1226:_0x10e362,_0xca5c9=_0x32681d(0x1c1)+_0x12b688+'px\x20'+_0x7b8b08+_0x32681d(0x1b0)+_0x2342ca+_0x32681d(0x1c0)+_0x2342ca+'\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.'+_0x589ce0+_0x32681d(0x19f)+_0x7b8b08+_0x32681d(0x1b9)+_0x12b688+_0x32681d(0x1c5),_0x229c8a=document[_0x32681d(0x1ba)]('style');return _0x229c8a[_0x32681d(0x19d)]=_0xca5c9,_0x229c8a['className']='offline-printing-css',_0x229c8a;}_0x4039c5[_0xa679db(0x1a9)]=_0x589ce0,_0x4039c5[_0xa679db(0x1c4)]=_0x2342ca,_0x4039c5['PaperMarginMap']=_0x3399f0,_0x4039c5[_0xa679db(0x1b3)]=_0x36c18f,_0x4039c5[_0xa679db(0x1aa)]=_0x4d5127,_0x4039c5[_0xa679db(0x1a3)]=_0x14cc5e,_0x4039c5[_0xa679db(0x1a8)]=_0x22c7fb,_0x4039c5[_0xa679db(0x1a1)]=_0x1544ba,_0x4039c5[_0xa679db(0x1bd)]=_0x1a7547,_0x4039c5[_0xa679db(0x19b)]=_0xa98ca9,Object['defineProperty'](_0x4039c5,Symbol['toStringTag'],{'value':_0xa679db(0x1c2)});}));function _0x309a(_0x893016,_0x51b20e){const _0x585dd6=_0x585d();return _0x309a=function(_0x309ad6,_0x5cc547){_0x309ad6=_0x309ad6-0x196;let _0x21cc87=_0x585dd6[_0x309ad6];return _0x21cc87;},_0x309a(_0x893016,_0x51b20e);}function _0x585d(){const _0x5e6378=['11211NcnDKE','PrintDirection','206533BAXRsI','74Gvyskl','Landscape','printing-canvas','PrintPaperMargin','PRINT_CANVAS_CLASS','PrintAlign','printing-canvas-container','Middle','Statement','Letter','Start','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.','FitPage','45vDnngS','PaperSizePxMap','FitWidth','Wide','function','Tabloid','Normal','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','createElement','None','Executive','PrintScale','FitHeight','11xxmmlC',',\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','Module','28400340xOLyZt','PRINT_CONTAINER_CLASS','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','1031560eLGmLZ','10FDOnrl','Portrait','Legal','2212824RHTeBd','8248455KthZZC','Folio','21znJNMN','createPrintStyle','Narrow','innerHTML','280362EoQEhv','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Origin','PrintPaperSize'];_0x585d=function(){return _0x5e6378;};return _0x585d();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.9-experimental.20250403-d914ddc",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Print module for UniverJS",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"typescript": "^5.8.2",
|
|
46
46
|
"vite": "^6.2.2",
|
|
47
47
|
"vitest": "^3.0.9",
|
|
48
|
-
"@univerjs-infra/shared": "0.6.
|
|
48
|
+
"@univerjs-infra/shared": "0.6.9"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|