@univerjs-pro/print 0.6.9 → 0.6.10-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 +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 +5 -5
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x34c2b7=_0x3ef2;function _0x3ef2(_0x226580,_0x170a50){const _0x372f29=_0x372f();return _0x3ef2=function(_0x3ef286,_0x17dfcf){_0x3ef286=_0x3ef286-0x117;let _0x252477=_0x372f29[_0x3ef286];return _0x252477;},_0x3ef2(_0x226580,_0x170a50);}(function(_0x540296,_0x229f32){const _0x406445=_0x3ef2,_0x3bd1ad=_0x540296();while(!![]){try{const _0x987832=parseInt(_0x406445(0x13b))/0x1+-parseInt(_0x406445(0x11d))/0x2*(-parseInt(_0x406445(0x12a))/0x3)+parseInt(_0x406445(0x118))/0x4+parseInt(_0x406445(0x12b))/0x5+parseInt(_0x406445(0x12e))/0x6+parseInt(_0x406445(0x148))/0x7+-parseInt(_0x406445(0x146))/0x8*(parseInt(_0x406445(0x144))/0x9);if(_0x987832===_0x229f32)break;else _0x3bd1ad['push'](_0x3bd1ad['shift']());}catch(_0x16f353){_0x3bd1ad['push'](_0x3bd1ad['shift']());}}}(_0x372f,0xf036b));function _0x372f(){const _0x120ec7=['FitWidth','FitPage','Start','PrintPaperMargin','Folio','Legal','Executive','3bxbhCQ','7838025JqUZMS','createPrintStyle','offline-printing-css','7625172cHYFuw','PrintPaperSize','PrintScale','innerHTML','None','createElement','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','Wide','Origin','PrintDirection','PaperMarginMap','Tabloid','1061540TQHnMk','Module','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','End','printing-canvas-container','Portrait','PrintAlign','toStringTag','PaperSizePxMap','18133929kKkhul','\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','32YIeRvn','FitHeight','13363266YHjRXu','Statement','7777856LTHhqg','PRINT_CANVAS_CLASS','Narrow','Middle','Letter','2579860jdnEEY','Landscape','Custom','style','Normal','defineProperty'];_0x372f=function(){return _0x120ec7;};return _0x372f();}Object[_0x34c2b7(0x122)](exports,Symbol[_0x34c2b7(0x142)],{'value':_0x34c2b7(0x13c)});var e=(_0x37e006=>(_0x37e006['Letter']=_0x34c2b7(0x11c),_0x37e006['Tabloid']=_0x34c2b7(0x13a),_0x37e006[_0x34c2b7(0x128)]=_0x34c2b7(0x128),_0x37e006[_0x34c2b7(0x117)]='Statement',_0x37e006[_0x34c2b7(0x129)]=_0x34c2b7(0x129),_0x37e006['Folio']=_0x34c2b7(0x127),_0x37e006['A3']='A3',_0x37e006['A4']='A4',_0x37e006['A5']='A5',_0x37e006['B4']='B4',_0x37e006['B5']='B5',_0x37e006))(e||{}),i=(_0xbcbbde=>(_0xbcbbde['Portrait']=_0x34c2b7(0x140),_0xbcbbde[_0x34c2b7(0x11e)]=_0x34c2b7(0x11e),_0xbcbbde))(i||{}),c=(_0x50a54e=>(_0x50a54e[_0x34c2b7(0x137)]=_0x34c2b7(0x137),_0x50a54e[_0x34c2b7(0x123)]=_0x34c2b7(0x123),_0x50a54e['FitHeight']=_0x34c2b7(0x147),_0x50a54e[_0x34c2b7(0x124)]=_0x34c2b7(0x124),_0x50a54e[_0x34c2b7(0x11f)]=_0x34c2b7(0x11f),_0x50a54e))(c||{}),g=(_0x349f37=>(_0x349f37[_0x34c2b7(0x125)]=_0x34c2b7(0x125),_0x349f37[_0x34c2b7(0x13e)]=_0x34c2b7(0x13e),_0x349f37[_0x34c2b7(0x11b)]=_0x34c2b7(0x11b),_0x349f37))(g||{}),o=(_0x144c77=>(_0x144c77['Normal']=_0x34c2b7(0x121),_0x144c77['Narrow']=_0x34c2b7(0x11a),_0x144c77['Wide']=_0x34c2b7(0x136),_0x144c77[_0x34c2b7(0x132)]='None',_0x144c77))(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[_0x34c2b7(0x129)]]:{'w':0x2b8,'h':0x3f0},[e[_0x34c2b7(0x127)]]:{'w':0x330,'h':0x4e0},[e['Legal']]:{'w':0x330,'h':0x540},[e[_0x34c2b7(0x11c)]]:{'w':0x330,'h':0x420},[e[_0x34c2b7(0x117)]]:{'w':0x210,'h':0x330},[e[_0x34c2b7(0x13a)]]:{'w':0x420,'h':0x660}},N={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x34c2b7(0x11a)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x34c2b7(0x132)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x34c2b7(0x13f),p='printing-canvas';function A(_0x5c1dcb,_0x4f56a7){const _0x234827=_0x34c2b7,{w:_0x759763,h:_0x2e43cb}=m[_0x5c1dcb],_0x25c38c=_0x4f56a7===i['Portrait']?_0x759763:_0x2e43cb,_0x2da993=_0x4f56a7===i['Portrait']?_0x2e43cb:_0x759763,_0x3cccb6=_0x234827(0x145)+_0x25c38c+'px\x20'+_0x2da993+'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+',\x20.'+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+_0x234827(0x135)+_0x2da993+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x25c38c+_0x234827(0x13d),_0x5932c0=document[_0x234827(0x133)](_0x234827(0x120));return _0x5932c0[_0x234827(0x131)]=_0x3cccb6,_0x5932c0['className']=_0x234827(0x12d),_0x5932c0;}exports[_0x34c2b7(0x119)]=p,exports[_0x34c2b7(0x134)]=n,exports[_0x34c2b7(0x139)]=N,exports[_0x34c2b7(0x143)]=m,exports[_0x34c2b7(0x141)]=g,exports[_0x34c2b7(0x138)]=i,exports[_0x34c2b7(0x126)]=o,exports[_0x34c2b7(0x12f)]=e,exports[_0x34c2b7(0x130)]=c,exports[_0x34c2b7(0x12c)]=A;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x475961=_0xa6d2;(function(_0x4c748e,_0x4bb978){const _0x14fa18=_0xa6d2,_0x2b453d=_0x4c748e();while(!![]){try{const _0x1bf546=parseInt(_0x14fa18(0x167))/0x1*(parseInt(_0x14fa18(0x168))/0x2)+parseInt(_0x14fa18(0x150))/0x3*(-parseInt(_0x14fa18(0x16b))/0x4)+-parseInt(_0x14fa18(0x14f))/0x5+parseInt(_0x14fa18(0x14b))/0x6+parseInt(_0x14fa18(0x151))/0x7+parseInt(_0x14fa18(0x160))/0x8+parseInt(_0x14fa18(0x159))/0x9*(parseInt(_0x14fa18(0x163))/0xa);if(_0x1bf546===_0x4bb978)break;else _0x2b453d['push'](_0x2b453d['shift']());}catch(_0x415370){_0x2b453d['push'](_0x2b453d['shift']());}}}(_0x4925,0x59f7c));function _0x4925(){const _0x5b3a47=['3712512WFUlCi',',\x20.','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','10PoidEY','\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','Letter','Origin','1999PEEkPj','320JbCtcK','Folio','Landscape','1008636cgLaWB','Middle','FitHeight','End','Custom','className','Executive','FitWidth','1089930OerhdR','Statement','Legal','Start','2898995bVVinW','3TagwPo','1171226nlZlnm','innerHTML','Tabloid','Normal','offline-printing-css','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.','Portrait','style','608301ltDuZY','createElement','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','None','Wide','Narrow'];_0x4925=function(){return _0x5b3a47;};return _0x4925();}var o=(_0x534874=>(_0x534874[_0x475961(0x165)]='Letter',_0x534874[_0x475961(0x153)]=_0x475961(0x153),_0x534874['Legal']=_0x475961(0x14d),_0x534874['Statement']=_0x475961(0x14c),_0x534874[_0x475961(0x171)]='Executive',_0x534874[_0x475961(0x169)]=_0x475961(0x169),_0x534874['A3']='A3',_0x534874['A4']='A4',_0x534874['A5']='A5',_0x534874['B4']='B4',_0x534874['B5']='B5',_0x534874))(o||{}),i=(_0x4c4ffa=>(_0x4c4ffa[_0x475961(0x157)]=_0x475961(0x157),_0x4c4ffa['Landscape']=_0x475961(0x16a),_0x4c4ffa))(i||{}),w=(_0x4c76cb=>(_0x4c76cb[_0x475961(0x166)]=_0x475961(0x166),_0x4c76cb[_0x475961(0x172)]='FitWidth',_0x4c76cb[_0x475961(0x16d)]=_0x475961(0x16d),_0x4c76cb['FitPage']=_0x475961(0x15b),_0x4c76cb[_0x475961(0x16f)]=_0x475961(0x16f),_0x4c76cb))(w||{}),m=(_0x389fe1=>(_0x389fe1[_0x475961(0x14e)]=_0x475961(0x14e),_0x389fe1[_0x475961(0x16e)]=_0x475961(0x16e),_0x389fe1[_0x475961(0x16c)]=_0x475961(0x16c),_0x389fe1))(m||{}),e=(_0x52e9f3=>(_0x52e9f3[_0x475961(0x154)]=_0x475961(0x154),_0x52e9f3[_0x475961(0x15f)]='Narrow',_0x52e9f3['Wide']='Wide',_0x52e9f3['None']=_0x475961(0x15d),_0x52e9f3))(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['Folio']]:{'w':0x330,'h':0x4e0},[o[_0x475961(0x14d)]]:{'w':0x330,'h':0x540},[o[_0x475961(0x165)]]:{'w':0x330,'h':0x420},[o[_0x475961(0x14c)]]:{'w':0x210,'h':0x330},[o['Tabloid']]:{'w':0x420,'h':0x660}},v={[e[_0x475961(0x154)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x475961(0x15f)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0x475961(0x15e)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x475961(0x15d)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l='printing-canvas-container',p='printing-canvas';function _0xa6d2(_0x529824,_0x327101){const _0x4925f9=_0x4925();return _0xa6d2=function(_0xa6d249,_0x16b1ea){_0xa6d249=_0xa6d249-0x14b;let _0x1b0bfe=_0x4925f9[_0xa6d249];return _0x1b0bfe;},_0xa6d2(_0x529824,_0x327101);}function N(_0x172d05,_0x4ef181){const _0x573094=_0x475961,{w:_0x44429a,h:_0x28e3c2}=g[_0x172d05],_0x2f16ee=_0x4ef181===i[_0x573094(0x157)]?_0x44429a:_0x28e3c2,_0x185563=_0x4ef181===i[_0x573094(0x157)]?_0x28e3c2:_0x44429a,_0x105517=_0x573094(0x164)+_0x2f16ee+'px\x20'+_0x185563+_0x573094(0x156)+l+_0x573094(0x161)+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+_0x573094(0x15c)+_0x185563+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x2f16ee+_0x573094(0x162),_0x350311=document[_0x573094(0x15a)](_0x573094(0x158));return _0x350311[_0x573094(0x152)]=_0x105517,_0x350311[_0x573094(0x170)]=_0x573094(0x155),_0x350311;}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 _0x475961=_0xa6d2;(function(_0x4c748e,_0x4bb978){const _0x14fa18=_0xa6d2,_0x2b453d=_0x4c748e();while(!![]){try{const _0x1bf546=parseInt(_0x14fa18(0x167))/0x1*(parseInt(_0x14fa18(0x168))/0x2)+parseInt(_0x14fa18(0x150))/0x3*(-parseInt(_0x14fa18(0x16b))/0x4)+-parseInt(_0x14fa18(0x14f))/0x5+parseInt(_0x14fa18(0x14b))/0x6+parseInt(_0x14fa18(0x151))/0x7+parseInt(_0x14fa18(0x160))/0x8+parseInt(_0x14fa18(0x159))/0x9*(parseInt(_0x14fa18(0x163))/0xa);if(_0x1bf546===_0x4bb978)break;else _0x2b453d['push'](_0x2b453d['shift']());}catch(_0x415370){_0x2b453d['push'](_0x2b453d['shift']());}}}(_0x4925,0x59f7c));function _0x4925(){const _0x5b3a47=['3712512WFUlCi',',\x20.','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','10PoidEY','\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','Letter','Origin','1999PEEkPj','320JbCtcK','Folio','Landscape','1008636cgLaWB','Middle','FitHeight','End','Custom','className','Executive','FitWidth','1089930OerhdR','Statement','Legal','Start','2898995bVVinW','3TagwPo','1171226nlZlnm','innerHTML','Tabloid','Normal','offline-printing-css','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.','Portrait','style','608301ltDuZY','createElement','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','None','Wide','Narrow'];_0x4925=function(){return _0x5b3a47;};return _0x4925();}var o=(_0x534874=>(_0x534874[_0x475961(0x165)]='Letter',_0x534874[_0x475961(0x153)]=_0x475961(0x153),_0x534874['Legal']=_0x475961(0x14d),_0x534874['Statement']=_0x475961(0x14c),_0x534874[_0x475961(0x171)]='Executive',_0x534874[_0x475961(0x169)]=_0x475961(0x169),_0x534874['A3']='A3',_0x534874['A4']='A4',_0x534874['A5']='A5',_0x534874['B4']='B4',_0x534874['B5']='B5',_0x534874))(o||{}),i=(_0x4c4ffa=>(_0x4c4ffa[_0x475961(0x157)]=_0x475961(0x157),_0x4c4ffa['Landscape']=_0x475961(0x16a),_0x4c4ffa))(i||{}),w=(_0x4c76cb=>(_0x4c76cb[_0x475961(0x166)]=_0x475961(0x166),_0x4c76cb[_0x475961(0x172)]='FitWidth',_0x4c76cb[_0x475961(0x16d)]=_0x475961(0x16d),_0x4c76cb['FitPage']=_0x475961(0x15b),_0x4c76cb[_0x475961(0x16f)]=_0x475961(0x16f),_0x4c76cb))(w||{}),m=(_0x389fe1=>(_0x389fe1[_0x475961(0x14e)]=_0x475961(0x14e),_0x389fe1[_0x475961(0x16e)]=_0x475961(0x16e),_0x389fe1[_0x475961(0x16c)]=_0x475961(0x16c),_0x389fe1))(m||{}),e=(_0x52e9f3=>(_0x52e9f3[_0x475961(0x154)]=_0x475961(0x154),_0x52e9f3[_0x475961(0x15f)]='Narrow',_0x52e9f3['Wide']='Wide',_0x52e9f3['None']=_0x475961(0x15d),_0x52e9f3))(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['Folio']]:{'w':0x330,'h':0x4e0},[o[_0x475961(0x14d)]]:{'w':0x330,'h':0x540},[o[_0x475961(0x165)]]:{'w':0x330,'h':0x420},[o[_0x475961(0x14c)]]:{'w':0x210,'h':0x330},[o['Tabloid']]:{'w':0x420,'h':0x660}},v={[e[_0x475961(0x154)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x475961(0x15f)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0x475961(0x15e)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x475961(0x15d)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l='printing-canvas-container',p='printing-canvas';function _0xa6d2(_0x529824,_0x327101){const _0x4925f9=_0x4925();return _0xa6d2=function(_0xa6d249,_0x16b1ea){_0xa6d249=_0xa6d249-0x14b;let _0x1b0bfe=_0x4925f9[_0xa6d249];return _0x1b0bfe;},_0xa6d2(_0x529824,_0x327101);}function N(_0x172d05,_0x4ef181){const _0x573094=_0x475961,{w:_0x44429a,h:_0x28e3c2}=g[_0x172d05],_0x2f16ee=_0x4ef181===i[_0x573094(0x157)]?_0x44429a:_0x28e3c2,_0x185563=_0x4ef181===i[_0x573094(0x157)]?_0x28e3c2:_0x44429a,_0x105517=_0x573094(0x164)+_0x2f16ee+'px\x20'+_0x185563+_0x573094(0x156)+l+_0x573094(0x161)+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+_0x573094(0x15c)+_0x185563+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x2f16ee+_0x573094(0x162),_0x350311=document[_0x573094(0x15a)](_0x573094(0x158));return _0x350311[_0x573094(0x152)]=_0x105517,_0x350311[_0x573094(0x170)]=_0x573094(0x155),_0x350311;}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 _0x2c11(_0x2f0193,_0x79cbf1){const _0x11731b=_0x1173();return _0x2c11=function(_0x2c1133,_0x6b1d34){_0x2c1133=_0x2c1133-0x135;let _0x2a35a1=_0x11731b[_0x2c1133];return _0x2a35a1;},_0x2c11(_0x2f0193,_0x79cbf1);}(function(_0x179ea2,_0x3b4071){const _0x52b52c=_0x2c11,_0x192d9f=_0x179ea2();while(!![]){try{const _0x4fcffc=-parseInt(_0x52b52c(0x149))/0x1*(parseInt(_0x52b52c(0x15e))/0x2)+-parseInt(_0x52b52c(0x15b))/0x3+-parseInt(_0x52b52c(0x160))/0x4+-parseInt(_0x52b52c(0x163))/0x5+-parseInt(_0x52b52c(0x14b))/0x6+-parseInt(_0x52b52c(0x136))/0x7+parseInt(_0x52b52c(0x14e))/0x8;if(_0x4fcffc===_0x3b4071)break;else _0x192d9f['push'](_0x192d9f['shift']());}catch(_0xc8b2f3){_0x192d9f['push'](_0x192d9f['shift']());}}}(_0x1173,0x972e2),function(_0x4bb6d2,_0x3c313c){const _0x2a5192=_0x2c11;typeof exports==_0x2a5192(0x145)&&typeof module<'u'?_0x3c313c(exports):typeof define==_0x2a5192(0x150)&&define[_0x2a5192(0x166)]?define([_0x2a5192(0x157)],_0x3c313c):(_0x4bb6d2=typeof globalThis<'u'?globalThis:_0x4bb6d2||self,_0x3c313c(_0x4bb6d2[_0x2a5192(0x13d)]={}));}(this,function(_0x19dea3){'use strict';const _0x52c0a0=_0x2c11;var _0x4042e1=(_0x39f901=>(_0x39f901['Letter']=_0x52c0a0(0x13a),_0x39f901[_0x52c0a0(0x154)]=_0x52c0a0(0x154),_0x39f901[_0x52c0a0(0x137)]='Legal',_0x39f901[_0x52c0a0(0x138)]='Statement',_0x39f901[_0x52c0a0(0x146)]='Executive',_0x39f901['Folio']='Folio',_0x39f901['A3']='A3',_0x39f901['A4']='A4',_0x39f901['A5']='A5',_0x39f901['B4']='B4',_0x39f901['B5']='B5',_0x39f901))(_0x4042e1||{}),_0x379ad4=(_0xcf2f28=>(_0xcf2f28[_0x52c0a0(0x14a)]=_0x52c0a0(0x14a),_0xcf2f28[_0x52c0a0(0x168)]=_0x52c0a0(0x168),_0xcf2f28))(_0x379ad4||{}),_0x396288=(_0x2b0b1f=>(_0x2b0b1f['Origin']='Origin',_0x2b0b1f[_0x52c0a0(0x14f)]=_0x52c0a0(0x14f),_0x2b0b1f['FitHeight']=_0x52c0a0(0x14d),_0x2b0b1f[_0x52c0a0(0x13b)]=_0x52c0a0(0x13b),_0x2b0b1f[_0x52c0a0(0x167)]='Custom',_0x2b0b1f))(_0x396288||{}),_0x30064a=(_0x310f9d=>(_0x310f9d['Start']=_0x52c0a0(0x13c),_0x310f9d[_0x52c0a0(0x164)]=_0x52c0a0(0x164),_0x310f9d[_0x52c0a0(0x151)]=_0x52c0a0(0x151),_0x310f9d))(_0x30064a||{}),_0x79e94e=(_0x6ab53f=>(_0x6ab53f[_0x52c0a0(0x169)]='Normal',_0x6ab53f[_0x52c0a0(0x159)]=_0x52c0a0(0x159),_0x6ab53f['Wide']=_0x52c0a0(0x148),_0x6ab53f[_0x52c0a0(0x15f)]=_0x52c0a0(0x15f),_0x6ab53f))(_0x79e94e||{});const _0x35cb50={[_0x4042e1['A3']]:{'w':0x463,'h':0x633},[_0x4042e1['A4']]:{'w':0x31a,'h':0x464},[_0x4042e1['A5']]:{'w':0x22f,'h':0x31a},[_0x4042e1['B4']]:{'w':0x3b0,'h':0x540},[_0x4042e1['B5']]:{'w':0x299,'h':0x3b0},[_0x4042e1['Executive']]:{'w':0x2b8,'h':0x3f0},[_0x4042e1[_0x52c0a0(0x161)]]:{'w':0x330,'h':0x4e0},[_0x4042e1[_0x52c0a0(0x137)]]:{'w':0x330,'h':0x540},[_0x4042e1[_0x52c0a0(0x13a)]]:{'w':0x330,'h':0x420},[_0x4042e1[_0x52c0a0(0x138)]]:{'w':0x210,'h':0x330},[_0x4042e1['Tabloid']]:{'w':0x420,'h':0x660}},_0x52cac4={[_0x79e94e[_0x52c0a0(0x169)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x79e94e['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x79e94e['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x79e94e[_0x52c0a0(0x15f)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x298a8e='printing-canvas-container',_0x3ff1e0=_0x52c0a0(0x152);function _0x5aaf55(_0x566aa8,_0xafef9b){const _0x199cda=_0x52c0a0,{w:_0x513ab4,h:_0x297554}=_0x35cb50[_0x566aa8],_0x13253d=_0xafef9b===_0x379ad4[_0x199cda(0x14a)]?_0x513ab4:_0x297554,_0x103975=_0xafef9b===_0x379ad4[_0x199cda(0x14a)]?_0x297554:_0x513ab4,_0x41bd5c=_0x199cda(0x143)+_0x13253d+_0x199cda(0x162)+_0x103975+_0x199cda(0x139)+_0x298a8e+_0x199cda(0x16a)+_0x298a8e+_0x199cda(0x142)+_0x3ff1e0+_0x199cda(0x165)+_0x103975+_0x199cda(0x15a)+_0x13253d+_0x199cda(0x13f),_0x2bd61c=document[_0x199cda(0x144)](_0x199cda(0x156));return _0x2bd61c['innerHTML']=_0x41bd5c,_0x2bd61c[_0x199cda(0x153)]=_0x199cda(0x147),_0x2bd61c;}_0x19dea3[_0x52c0a0(0x140)]=_0x3ff1e0,_0x19dea3[_0x52c0a0(0x13e)]=_0x298a8e,_0x19dea3[_0x52c0a0(0x155)]=_0x52cac4,_0x19dea3[_0x52c0a0(0x15c)]=_0x35cb50,_0x19dea3[_0x52c0a0(0x15d)]=_0x30064a,_0x19dea3['PrintDirection']=_0x379ad4,_0x19dea3['PrintPaperMargin']=_0x79e94e,_0x19dea3[_0x52c0a0(0x14c)]=_0x4042e1,_0x19dea3[_0x52c0a0(0x141)]=_0x396288,_0x19dea3[_0x52c0a0(0x135)]=_0x5aaf55,Object['defineProperty'](_0x19dea3,Symbol['toStringTag'],{'value':_0x52c0a0(0x158)});}));function _0x1173(){const _0x1a98a0=['exports','Module','Narrow','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','1970244roOmNT','PaperSizePxMap','PrintAlign','11194FJJqOA','None','1918716FXkotd','Folio','px\x20','3777250PRxkoK','End','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','amd','Custom','Landscape','Normal',',\x20.','createPrintStyle','2246440nYIDHw','Legal','Statement','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','FitPage','Start','UniverProPrint','PRINT_CONTAINER_CLASS','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','PRINT_CANVAS_CLASS','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.','\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','createElement','object','Executive','offline-printing-css','Wide','119mSAvCj','Portrait','2976360DpmJDP','PrintPaperSize','FitHeight','31953072qDHydx','FitWidth','function','Middle','printing-canvas','className','Tabloid','PaperMarginMap','style'];_0x1173=function(){return _0x1a98a0;};return _0x1173();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.10-alpha.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Print module for UniverJS",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"lib"
|
|
43
43
|
],
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"typescript": "^5.8.
|
|
46
|
-
"vite": "^6.2.
|
|
47
|
-
"vitest": "^3.
|
|
48
|
-
"@univerjs-infra/shared": "0.6.
|
|
45
|
+
"typescript": "^5.8.3",
|
|
46
|
+
"vite": "^6.2.6",
|
|
47
|
+
"vitest": "^3.1.1",
|
|
48
|
+
"@univerjs-infra/shared": "0.6.10-alpha.0"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|