@univerjs-pro/print 0.10.4 → 0.10.5
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 +4 -4
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x13cf3b=_0x25e9;(function(_0x6a6776,_0x41b765){const _0x374f83=_0x25e9,_0x366a09=_0x6a6776();while(!![]){try{const _0x32f860=parseInt(_0x374f83(0x14a))/0x1+parseInt(_0x374f83(0x141))/0x2*(-parseInt(_0x374f83(0x128))/0x3)+parseInt(_0x374f83(0x12a))/0x4*(-parseInt(_0x374f83(0x12e))/0x5)+-parseInt(_0x374f83(0x134))/0x6+parseInt(_0x374f83(0x14c))/0x7+-parseInt(_0x374f83(0x133))/0x8+-parseInt(_0x374f83(0x138))/0x9*(parseInt(_0x374f83(0x13c))/0xa);if(_0x32f860===_0x41b765)break;else _0x366a09['push'](_0x366a09['shift']());}catch(_0x24f1e6){_0x366a09['push'](_0x366a09['shift']());}}}(_0x4075,0xb92b0));Object[_0x13cf3b(0x136)](exports,Symbol[_0x13cf3b(0x145)],{'value':_0x13cf3b(0x140)});var e=(_0x35e1be=>(_0x35e1be[_0x13cf3b(0x13e)]=_0x13cf3b(0x13e),_0x35e1be[_0x13cf3b(0x12c)]=_0x13cf3b(0x12c),_0x35e1be))(e||{}),l=(_0x5b206a=>(_0x5b206a[_0x13cf3b(0x13f)]=_0x13cf3b(0x13f),_0x5b206a[_0x13cf3b(0x152)]=_0x13cf3b(0x152),_0x5b206a['FitHeight']=_0x13cf3b(0x147),_0x5b206a[_0x13cf3b(0x14e)]=_0x13cf3b(0x14e),_0x5b206a[_0x13cf3b(0x148)]=_0x13cf3b(0x148),_0x5b206a))(l||{}),c=(_0x552298=>(_0x552298[_0x13cf3b(0x12f)]=_0x13cf3b(0x12f),_0x552298[_0x13cf3b(0x131)]=_0x13cf3b(0x131),_0x552298[_0x13cf3b(0x129)]=_0x13cf3b(0x129),_0x552298))(c||{}),i=(_0x449ea6=>(_0x449ea6[_0x13cf3b(0x14b)]=_0x13cf3b(0x14b),_0x449ea6['Narrow']=_0x13cf3b(0x149),_0x449ea6[_0x13cf3b(0x135)]=_0x13cf3b(0x135),_0x449ea6[_0x13cf3b(0x144)]=_0x13cf3b(0x144),_0x449ea6))(i||{});const h={[i[_0x13cf3b(0x14b)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i[_0x13cf3b(0x149)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i[_0x13cf3b(0x135)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i[_0x13cf3b(0x144)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r='printing-canvas-container',n=_0x13cf3b(0x130);function _0x25e9(_0x57cf50,_0x3e28c2){const _0x40751e=_0x4075();return _0x25e9=function(_0x25e927,_0x16b11e){_0x25e927=_0x25e927-0x128;let _0x4e5a2d=_0x40751e[_0x25e927];return _0x4e5a2d;},_0x25e9(_0x57cf50,_0x3e28c2);}function m(_0x47aeb5,_0x5ca6a0,_0x4e8545){const _0x4a5ffc=_0x13cf3b,_0x4720eb=_0x4e8545===e['Portrait']?_0x47aeb5:_0x5ca6a0,_0x5a439d=_0x4e8545===e[_0x4a5ffc(0x13e)]?_0x5ca6a0:_0x47aeb5,_0x92f2d=_0x4a5ffc(0x151)+n+_0x4a5ffc(0x14d)+_0x4720eb+_0x4a5ffc(0x142)+_0x5a439d+'px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.'+r+_0x4a5ffc(0x13d)+r+'\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.'+n+_0x4a5ffc(0x13b)+_0x5a439d+_0x4a5ffc(0x146)+_0x4720eb+_0x4a5ffc(0x132),_0x99849b=document[_0x4a5ffc(0x153)](_0x4a5ffc(0x13a));return _0x99849b[_0x4a5ffc(0x12b)]=_0x92f2d,_0x99849b['className']=_0x4a5ffc(0x14f),_0x99849b;}exports['PRINT_CANVAS_CLASS']=n,exports[_0x13cf3b(0x150)]=r,exports[_0x13cf3b(0x137)]=h,exports['PrintAlign']=c,exports[_0x13cf3b(0x139)]=e,exports['PrintPaperMargin']=i,exports[_0x13cf3b(0x12d)]=l,exports[_0x13cf3b(0x143)]=m;function _0x4075(){const _0x3b99e7=['px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','639472cbyTeP','1155942nqmTTp','Wide','defineProperty','PaperMarginMap','2992329fRakmT','PrintDirection','style','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','10rWOTBG',',\x20.','Portrait','Origin','Module','114HvkywP','px\x20','createPrintStyle','None','toStringTag','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','FitHeight','Custom','Narrow','999614fmZDRZ','Normal','7915243EhBQvl','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','FitPage','offline-printing-css','PRINT_CONTAINER_CLASS','\x0a\x20\x20\x20\x20.','FitWidth','createElement','14310IATBXR','Middle','692dcfTAv','innerHTML','Landscape','PrintScale','14305nECOTC','Start','printing-canvas','End'];_0x4075=function(){return _0x3b99e7;};return _0x4075();}
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1422d0=_0x3142;(function(_0x3436f0,_0x228652){const _0x5c18fc=_0x3142,_0x440e8f=_0x3436f0();while(!![]){try{const _0x26fbe5=parseInt(_0x5c18fc(0x150))/0x1+-parseInt(_0x5c18fc(0x157))/0x2*(-parseInt(_0x5c18fc(0x13a))/0x3)+-parseInt(_0x5c18fc(0x138))/0x4+-parseInt(_0x5c18fc(0x148))/0x5+-parseInt(_0x5c18fc(0x14f))/0x6*(parseInt(_0x5c18fc(0x13b))/0x7)+-parseInt(_0x5c18fc(0x153))/0x8+parseInt(_0x5c18fc(0x135))/0x9*(parseInt(_0x5c18fc(0x13e))/0xa);if(_0x26fbe5===_0x228652)break;else _0x440e8f['push'](_0x440e8f['shift']());}catch(_0x2eb0ab){_0x440e8f['push'](_0x440e8f['shift']());}}}(_0x4be0,0x72c72));var e=(_0x29532a=>(_0x29532a['Portrait']=_0x1422d0(0x155),_0x29532a[_0x1422d0(0x14d)]='Landscape',_0x29532a))(e||{}),l=(_0x3cc0ea=>(_0x3cc0ea[_0x1422d0(0x141)]=_0x1422d0(0x141),_0x3cc0ea['FitWidth']=_0x1422d0(0x14b),_0x3cc0ea[_0x1422d0(0x14c)]=_0x1422d0(0x14c),_0x3cc0ea['FitPage']=_0x1422d0(0x13c),_0x3cc0ea[_0x1422d0(0x145)]='Custom',_0x3cc0ea))(l||{}),m=(_0x3eb836=>(_0x3eb836['Start']=_0x1422d0(0x149),_0x3eb836['End']=_0x1422d0(0x152),_0x3eb836[_0x1422d0(0x137)]=_0x1422d0(0x137),_0x3eb836))(m||{}),o=(_0x2fcf3b=>(_0x2fcf3b['Normal']=_0x1422d0(0x14e),_0x2fcf3b['Narrow']='Narrow',_0x2fcf3b['Wide']='Wide',_0x2fcf3b['None']=_0x1422d0(0x13f),_0x2fcf3b))(o||{});const c={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x1422d0(0x136)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x1422d0(0x13f)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x1422d0(0x139),d='printing-canvas';function g(_0x5905dd,_0x3e4eab,_0x18de0e){const _0x17b4ad=_0x1422d0,_0x283616=_0x18de0e===e['Portrait']?_0x5905dd:_0x3e4eab,_0x1c677f=_0x18de0e===e['Portrait']?_0x3e4eab:_0x5905dd,_0xe126af=_0x17b4ad(0x140)+d+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20'+_0x283616+_0x17b4ad(0x147)+_0x1c677f+_0x17b4ad(0x154)+p+_0x17b4ad(0x142)+p+_0x17b4ad(0x146)+d+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x1c677f+_0x17b4ad(0x151)+_0x283616+_0x17b4ad(0x144),_0x32c0d9=document[_0x17b4ad(0x14a)](_0x17b4ad(0x158));return _0x32c0d9[_0x17b4ad(0x143)]=_0xe126af,_0x32c0d9[_0x17b4ad(0x13d)]=_0x17b4ad(0x156),_0x32c0d9;}function _0x3142(_0xe03a48,_0x42c335){const _0x4be08c=_0x4be0();return _0x3142=function(_0x314267,_0x1cc3f7){_0x314267=_0x314267-0x135;let _0x528238=_0x4be08c[_0x314267];return _0x528238;},_0x3142(_0xe03a48,_0x42c335);}function _0x4be0(){const _0x573ae3=['3315328fsUyAD','px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','Portrait','offline-printing-css','23472tVHwVi','style','54OXwpOh','Narrow','Middle','1158160nCbHyH','printing-canvas-container','141GGlHjl','7WbUAIY','FitPage','className','2718250vGKksc','None','\x0a\x20\x20\x20\x20.','Origin',',\x20.','innerHTML','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','Custom','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','px\x20','4085965YWmgMh','Start','createElement','FitWidth','FitHeight','Landscape','Normal','5451582OmklPj','717334sZkzzz','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','End'];_0x4be0=function(){return _0x573ae3;};return _0x4be0();}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,m as PrintAlign,e as PrintDirection,o as PrintPaperMargin,l as PrintScale,g as createPrintStyle};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1422d0=_0x3142;(function(_0x3436f0,_0x228652){const _0x5c18fc=_0x3142,_0x440e8f=_0x3436f0();while(!![]){try{const _0x26fbe5=parseInt(_0x5c18fc(0x150))/0x1+-parseInt(_0x5c18fc(0x157))/0x2*(-parseInt(_0x5c18fc(0x13a))/0x3)+-parseInt(_0x5c18fc(0x138))/0x4+-parseInt(_0x5c18fc(0x148))/0x5+-parseInt(_0x5c18fc(0x14f))/0x6*(parseInt(_0x5c18fc(0x13b))/0x7)+-parseInt(_0x5c18fc(0x153))/0x8+parseInt(_0x5c18fc(0x135))/0x9*(parseInt(_0x5c18fc(0x13e))/0xa);if(_0x26fbe5===_0x228652)break;else _0x440e8f['push'](_0x440e8f['shift']());}catch(_0x2eb0ab){_0x440e8f['push'](_0x440e8f['shift']());}}}(_0x4be0,0x72c72));var e=(_0x29532a=>(_0x29532a['Portrait']=_0x1422d0(0x155),_0x29532a[_0x1422d0(0x14d)]='Landscape',_0x29532a))(e||{}),l=(_0x3cc0ea=>(_0x3cc0ea[_0x1422d0(0x141)]=_0x1422d0(0x141),_0x3cc0ea['FitWidth']=_0x1422d0(0x14b),_0x3cc0ea[_0x1422d0(0x14c)]=_0x1422d0(0x14c),_0x3cc0ea['FitPage']=_0x1422d0(0x13c),_0x3cc0ea[_0x1422d0(0x145)]='Custom',_0x3cc0ea))(l||{}),m=(_0x3eb836=>(_0x3eb836['Start']=_0x1422d0(0x149),_0x3eb836['End']=_0x1422d0(0x152),_0x3eb836[_0x1422d0(0x137)]=_0x1422d0(0x137),_0x3eb836))(m||{}),o=(_0x2fcf3b=>(_0x2fcf3b['Normal']=_0x1422d0(0x14e),_0x2fcf3b['Narrow']='Narrow',_0x2fcf3b['Wide']='Wide',_0x2fcf3b['None']=_0x1422d0(0x13f),_0x2fcf3b))(o||{});const c={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x1422d0(0x136)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x1422d0(0x13f)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x1422d0(0x139),d='printing-canvas';function g(_0x5905dd,_0x3e4eab,_0x18de0e){const _0x17b4ad=_0x1422d0,_0x283616=_0x18de0e===e['Portrait']?_0x5905dd:_0x3e4eab,_0x1c677f=_0x18de0e===e['Portrait']?_0x3e4eab:_0x5905dd,_0xe126af=_0x17b4ad(0x140)+d+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20'+_0x283616+_0x17b4ad(0x147)+_0x1c677f+_0x17b4ad(0x154)+p+_0x17b4ad(0x142)+p+_0x17b4ad(0x146)+d+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x1c677f+_0x17b4ad(0x151)+_0x283616+_0x17b4ad(0x144),_0x32c0d9=document[_0x17b4ad(0x14a)](_0x17b4ad(0x158));return _0x32c0d9[_0x17b4ad(0x143)]=_0xe126af,_0x32c0d9[_0x17b4ad(0x13d)]=_0x17b4ad(0x156),_0x32c0d9;}function _0x3142(_0xe03a48,_0x42c335){const _0x4be08c=_0x4be0();return _0x3142=function(_0x314267,_0x1cc3f7){_0x314267=_0x314267-0x135;let _0x528238=_0x4be08c[_0x314267];return _0x528238;},_0x3142(_0xe03a48,_0x42c335);}function _0x4be0(){const _0x573ae3=['3315328fsUyAD','px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','Portrait','offline-printing-css','23472tVHwVi','style','54OXwpOh','Narrow','Middle','1158160nCbHyH','printing-canvas-container','141GGlHjl','7WbUAIY','FitPage','className','2718250vGKksc','None','\x0a\x20\x20\x20\x20.','Origin',',\x20.','innerHTML','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','Custom','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','px\x20','4085965YWmgMh','Start','createElement','FitWidth','FitHeight','Landscape','Normal','5451582OmklPj','717334sZkzzz','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','End'];_0x4be0=function(){return _0x573ae3;};return _0x4be0();}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,m as PrintAlign,e as PrintDirection,o as PrintPaperMargin,l as PrintScale,g as createPrintStyle};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x15ac(_0x1ad72a,_0x3ee66c){const _0x3e58eb=_0x3e58();return _0x15ac=function(_0x15ac70,_0x3581f1){_0x15ac70=_0x15ac70-0x1c3;let _0xefdf88=_0x3e58eb[_0x15ac70];return _0xefdf88;},_0x15ac(_0x1ad72a,_0x3ee66c);}(function(_0x576999,_0x3b14bd){const _0xbcef1f=_0x15ac,_0x4a2eeb=_0x576999();while(!![]){try{const _0x18ec98=parseInt(_0xbcef1f(0x1c6))/0x1*(parseInt(_0xbcef1f(0x1df))/0x2)+parseInt(_0xbcef1f(0x1f1))/0x3+-parseInt(_0xbcef1f(0x1ce))/0x4+parseInt(_0xbcef1f(0x1e6))/0x5+-parseInt(_0xbcef1f(0x1e9))/0x6+parseInt(_0xbcef1f(0x1de))/0x7+parseInt(_0xbcef1f(0x1e2))/0x8*(parseInt(_0xbcef1f(0x1eb))/0x9);if(_0x18ec98===_0x3b14bd)break;else _0x4a2eeb['push'](_0x4a2eeb['shift']());}catch(_0x254bdf){_0x4a2eeb['push'](_0x4a2eeb['shift']());}}}(_0x3e58,0x68d35),function(_0xb54324,_0x299dbe){const _0x545e77=_0x15ac;typeof exports==_0x545e77(0x1e3)&&typeof module<'u'?_0x299dbe(exports):typeof define==_0x545e77(0x1ed)&&define[_0x545e77(0x1e8)]?define([_0x545e77(0x1e7)],_0x299dbe):(_0xb54324=typeof globalThis<'u'?globalThis:_0xb54324||self,_0x299dbe(_0xb54324['UniverProPrint']={}));}(this,function(_0x37f758){'use strict';const _0x5288e1=_0x15ac;var _0x561d5a=(_0x74a27c=>(_0x74a27c[_0x5288e1(0x1ea)]=_0x5288e1(0x1ea),_0x74a27c['Landscape']=_0x5288e1(0x1ec),_0x74a27c))(_0x561d5a||{}),_0x4585c1=(_0x3456be=>(_0x3456be[_0x5288e1(0x1ee)]=_0x5288e1(0x1ee),_0x3456be['FitWidth']=_0x5288e1(0x1c4),_0x3456be[_0x5288e1(0x1cc)]=_0x5288e1(0x1cc),_0x3456be[_0x5288e1(0x1ef)]=_0x5288e1(0x1ef),_0x3456be[_0x5288e1(0x1dd)]='Custom',_0x3456be))(_0x4585c1||{}),_0x10fe6e=(_0x5a446c=>(_0x5a446c[_0x5288e1(0x1ca)]='Start',_0x5a446c[_0x5288e1(0x1dc)]=_0x5288e1(0x1dc),_0x5a446c[_0x5288e1(0x1db)]=_0x5288e1(0x1db),_0x5a446c))(_0x10fe6e||{}),_0x4af990=(_0x473a4f=>(_0x473a4f[_0x5288e1(0x1c9)]=_0x5288e1(0x1c9),_0x473a4f['Narrow']='Narrow',_0x473a4f[_0x5288e1(0x1d5)]=_0x5288e1(0x1d5),_0x473a4f[_0x5288e1(0x1d3)]='None',_0x473a4f))(_0x4af990||{});const _0x279d60={[_0x4af990[_0x5288e1(0x1c9)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x4af990[_0x5288e1(0x1f2)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x4af990[_0x5288e1(0x1d5)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x4af990[_0x5288e1(0x1d3)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x56ad08='printing-canvas-container',_0x537781=_0x5288e1(0x1da);function _0x581239(_0x3fbd15,_0xc98f9b,_0x240422){const _0x31b1d3=_0x5288e1,_0x1451c7=_0x240422===_0x561d5a['Portrait']?_0x3fbd15:_0xc98f9b,_0x5d17a1=_0x240422===_0x561d5a[_0x31b1d3(0x1ea)]?_0xc98f9b:_0x3fbd15,_0x47b45b=_0x31b1d3(0x1d2)+_0x537781+_0x31b1d3(0x1d6)+_0x1451c7+_0x31b1d3(0x1c3)+_0x5d17a1+_0x31b1d3(0x1d0)+_0x56ad08+_0x31b1d3(0x1cb)+_0x56ad08+_0x31b1d3(0x1f0)+_0x537781+_0x31b1d3(0x1d8)+_0x5d17a1+_0x31b1d3(0x1e5)+_0x1451c7+_0x31b1d3(0x1c8),_0xe15c13=document['createElement'](_0x31b1d3(0x1e0));return _0xe15c13[_0x31b1d3(0x1e1)]=_0x47b45b,_0xe15c13['className']='offline-printing-css',_0xe15c13;}_0x37f758[_0x5288e1(0x1f4)]=_0x537781,_0x37f758[_0x5288e1(0x1cf)]=_0x56ad08,_0x37f758[_0x5288e1(0x1cd)]=_0x279d60,_0x37f758[_0x5288e1(0x1d4)]=_0x10fe6e,_0x37f758[_0x5288e1(0x1d7)]=_0x561d5a,_0x37f758[_0x5288e1(0x1d1)]=_0x4af990,_0x37f758[_0x5288e1(0x1c5)]=_0x4585c1,_0x37f758[_0x5288e1(0x1f3)]=_0x581239,Object[_0x5288e1(0x1c7)](_0x37f758,Symbol[_0x5288e1(0x1e4)],{'value':_0x5288e1(0x1d9)});}));function _0x3e58(){const _0x128c0=['\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','2096487czOLpI','Narrow','createPrintStyle','PRINT_CANVAS_CLASS','px\x20','FitWidth','PrintScale','1GmoBOQ','defineProperty','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','Normal','Start',',\x20.','FitHeight','PaperMarginMap','3225396JSlImx','PRINT_CONTAINER_CLASS','px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','PrintPaperMargin','\x0a\x20\x20\x20\x20.','None','PrintAlign','Wide','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','PrintDirection','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Module','printing-canvas','Middle','End','Custom','1235101RTjkhf','6694wUfkHl','style','innerHTML','32DmRsKn','object','toStringTag','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','1359040HIeRzt','exports','amd','4468614rJldCb','Portrait','1867626xAntsR','Landscape','function','Origin','FitPage'];_0x3e58=function(){return _0x128c0;};return _0x3e58();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Print module for UniverJS",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -43,15 +43,15 @@
|
|
|
43
43
|
],
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"typescript": "^5.8.3",
|
|
46
|
-
"vite": "^7.
|
|
46
|
+
"vite": "^7.1.3",
|
|
47
47
|
"vitest": "^3.2.4",
|
|
48
|
-
"@univerjs-infra/shared": "0.10.
|
|
48
|
+
"@univerjs-infra/shared": "0.10.5"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|
|
52
52
|
"test:watch": "vitest",
|
|
53
53
|
"coverage": "vitest run --coverage",
|
|
54
|
-
"
|
|
54
|
+
"typecheck": "tsc --noEmit",
|
|
55
55
|
"build": "univer-cli build"
|
|
56
56
|
},
|
|
57
57
|
"module": "./lib/es/index.js"
|