@univerjs-pro/print 0.9.4 → 0.10.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 +3 -3
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x1da4(_0x296531,_0x2fe2e0){const _0x4f2e4b=_0x4f2e();return _0x1da4=function(_0x1da4a6,_0x41aac8){_0x1da4a6=_0x1da4a6-0x1f1;let _0x193970=_0x4f2e4b[_0x1da4a6];return _0x193970;},_0x1da4(_0x296531,_0x2fe2e0);}const _0x5d4c8b=_0x1da4;(function(_0x278286,_0x176543){const _0x3c8e3d=_0x1da4,_0x1df7f9=_0x278286();while(!![]){try{const _0x301de3=-parseInt(_0x3c8e3d(0x211))/0x1+parseInt(_0x3c8e3d(0x202))/0x2*(-parseInt(_0x3c8e3d(0x20c))/0x3)+-parseInt(_0x3c8e3d(0x207))/0x4+-parseInt(_0x3c8e3d(0x21b))/0x5+parseInt(_0x3c8e3d(0x1fd))/0x6+-parseInt(_0x3c8e3d(0x201))/0x7*(-parseInt(_0x3c8e3d(0x1fa))/0x8)+parseInt(_0x3c8e3d(0x214))/0x9;if(_0x301de3===_0x176543)break;else _0x1df7f9['push'](_0x1df7f9['shift']());}catch(_0x1494f2){_0x1df7f9['push'](_0x1df7f9['shift']());}}}(_0x4f2e,0x3f03e));function _0x4f2e(){const _0x4f3f3e=['printing-canvas','PaperMarginMap','Wide','Normal','PrintScale','Custom','End','createElement','113232TCPyvK','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','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}','2227608RZJFcg','None','Middle','defineProperty','119BpfvNo','2pLfzUR','Start','Narrow','Module','\x0a\x20\x20\x20\x20.','1828996eukBjj','offline-printing-css','FitWidth','\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','px\x20','1098927FIhIhE',',\x20.','PRINT_CONTAINER_CLASS','Portrait','FitPage','314745fvrflq','PrintAlign','FitHeight','11258937enelug','PRINT_CANVAS_CLASS','toStringTag','innerHTML','style','Landscape','Origin','2332330zSObOy','\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\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.'];_0x4f2e=function(){return _0x4f3f3e;};return _0x4f2e();}Object[_0x5d4c8b(0x200)](exports,Symbol[_0x5d4c8b(0x216)],{'value':_0x5d4c8b(0x205)});var e=(_0x508ccf=>(_0x508ccf['Portrait']=_0x5d4c8b(0x20f),_0x508ccf[_0x5d4c8b(0x219)]=_0x5d4c8b(0x219),_0x508ccf))(e||{}),l=(_0x52b129=>(_0x52b129[_0x5d4c8b(0x21a)]=_0x5d4c8b(0x21a),_0x52b129[_0x5d4c8b(0x209)]=_0x5d4c8b(0x209),_0x52b129[_0x5d4c8b(0x213)]=_0x5d4c8b(0x213),_0x52b129[_0x5d4c8b(0x210)]=_0x5d4c8b(0x210),_0x52b129['Custom']=_0x5d4c8b(0x1f7),_0x52b129))(l||{}),c=(_0x5a180f=>(_0x5a180f[_0x5d4c8b(0x203)]=_0x5d4c8b(0x203),_0x5a180f['End']=_0x5d4c8b(0x1f8),_0x5a180f['Middle']=_0x5d4c8b(0x1ff),_0x5a180f))(c||{}),i=(_0x277ffb=>(_0x277ffb[_0x5d4c8b(0x1f5)]=_0x5d4c8b(0x1f5),_0x277ffb['Narrow']='Narrow',_0x277ffb[_0x5d4c8b(0x1f4)]=_0x5d4c8b(0x1f4),_0x277ffb['None']='None',_0x277ffb))(i||{});const h={[i[_0x5d4c8b(0x1f5)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i[_0x5d4c8b(0x204)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i[_0x5d4c8b(0x1fe)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r='printing-canvas-container',n=_0x5d4c8b(0x1f2);function m(_0x39a80a,_0x1bbb28,_0xdf82b2){const _0x1d5de9=_0x5d4c8b,_0x3cf8df=_0xdf82b2===e[_0x1d5de9(0x20f)]?_0x39a80a:_0x1bbb28,_0xbd42b0=_0xdf82b2===e[_0x1d5de9(0x20f)]?_0x1bbb28:_0x39a80a,_0x59b280=_0x1d5de9(0x206)+n+_0x1d5de9(0x20a)+_0x3cf8df+_0x1d5de9(0x20b)+_0xbd42b0+_0x1d5de9(0x1f1)+r+_0x1d5de9(0x20d)+r+_0x1d5de9(0x21c)+n+'\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'+_0xbd42b0+_0x1d5de9(0x1fb)+_0x3cf8df+_0x1d5de9(0x1fc),_0x47c158=document[_0x1d5de9(0x1f9)](_0x1d5de9(0x218));return _0x47c158[_0x1d5de9(0x217)]=_0x59b280,_0x47c158['className']=_0x1d5de9(0x208),_0x47c158;}exports[_0x5d4c8b(0x215)]=n,exports[_0x5d4c8b(0x20e)]=r,exports[_0x5d4c8b(0x1f3)]=h,exports[_0x5d4c8b(0x212)]=c,exports['PrintDirection']=e,exports['PrintPaperMargin']=i,exports[_0x5d4c8b(0x1f6)]=l,exports['createPrintStyle']=m;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x864bac=_0x1636;(function(_0x4adbb9,_0x4484f4){const _0x40a344=_0x1636,_0x2350e4=_0x4adbb9();while(!![]){try{const _0x30ee21=parseInt(_0x40a344(0x160))/0x1+parseInt(_0x40a344(0x15c))/0x2*(-parseInt(_0x40a344(0x173))/0x3)+parseInt(_0x40a344(0x163))/0x4*(-parseInt(_0x40a344(0x152))/0x5)+parseInt(_0x40a344(0x15a))/0x6*(-parseInt(_0x40a344(0x164))/0x7)+parseInt(_0x40a344(0x15e))/0x8*(-parseInt(_0x40a344(0x16a))/0x9)+-parseInt(_0x40a344(0x171))/0xa+parseInt(_0x40a344(0x15d))/0xb;if(_0x30ee21===_0x4484f4)break;else _0x2350e4['push'](_0x2350e4['shift']());}catch(_0x2dec3c){_0x2350e4['push'](_0x2350e4['shift']());}}}(_0xe883,0x55a5c));var e=(_0x45bc9f=>(_0x45bc9f[_0x864bac(0x16b)]='Portrait',_0x45bc9f['Landscape']='Landscape',_0x45bc9f))(e||{}),l=(_0x39f649=>(_0x39f649[_0x864bac(0x157)]='Origin',_0x39f649['FitWidth']=_0x864bac(0x165),_0x39f649[_0x864bac(0x174)]=_0x864bac(0x174),_0x39f649[_0x864bac(0x162)]=_0x864bac(0x162),_0x39f649[_0x864bac(0x176)]=_0x864bac(0x176),_0x39f649))(l||{}),m=(_0x4324f8=>(_0x4324f8[_0x864bac(0x161)]=_0x864bac(0x161),_0x4324f8[_0x864bac(0x15f)]=_0x864bac(0x15f),_0x4324f8[_0x864bac(0x16d)]=_0x864bac(0x16d),_0x4324f8))(m||{}),o=(_0x2e9073=>(_0x2e9073[_0x864bac(0x159)]=_0x864bac(0x159),_0x2e9073[_0x864bac(0x153)]=_0x864bac(0x153),_0x2e9073[_0x864bac(0x170)]='Wide',_0x2e9073[_0x864bac(0x166)]=_0x864bac(0x166),_0x2e9073))(o||{});function _0x1636(_0x2fbe3c,_0x228c87){const _0xe8830d=_0xe883();return _0x1636=function(_0x1636fe,_0xaf4117){_0x1636fe=_0x1636fe-0x151;let _0x2d027c=_0xe8830d[_0x1636fe];return _0x2d027c;},_0x1636(_0x2fbe3c,_0x228c87);}const c={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x864bac(0x170)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x864bac(0x166)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x864bac(0x168),d=_0x864bac(0x172);function g(_0x434973,_0x361cbd,_0x49f6fa){const _0x1339f0=_0x864bac,_0x5bbb30=_0x49f6fa===e[_0x1339f0(0x16b)]?_0x434973:_0x361cbd,_0x26b971=_0x49f6fa===e[_0x1339f0(0x16b)]?_0x361cbd:_0x434973,_0x440dfc=_0x1339f0(0x158)+d+_0x1339f0(0x156)+_0x5bbb30+_0x1339f0(0x175)+_0x26b971+_0x1339f0(0x15b)+p+_0x1339f0(0x16f)+p+_0x1339f0(0x177)+d+_0x1339f0(0x16c)+_0x26b971+_0x1339f0(0x151)+_0x5bbb30+_0x1339f0(0x169),_0x3b5a51=document[_0x1339f0(0x16e)](_0x1339f0(0x155));return _0x3b5a51['innerHTML']=_0x440dfc,_0x3b5a51[_0x1339f0(0x154)]=_0x1339f0(0x167),_0x3b5a51;}function _0xe883(){const _0x3840a5=['94995ZNBpLH','Portrait','\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','Middle','createElement',',\x20.','Wide','6532220dYgNBD','printing-canvas','159CkDgSU','FitHeight','px\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;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','881635eFmDKv','Narrow','className','style','\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','Origin','\x0a\x20\x20\x20\x20.','Normal','12hePoTV','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.','674sgOMwN','17230147QNMxLh','40SHGobv','End','636184vflGmW','Start','FitPage','12ljooLK','2096185pbOHnC','FitWidth','None','offline-printing-css','printing-canvas-container','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}'];_0xe883=function(){return _0x3840a5;};return _0xe883();}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 _0x864bac=_0x1636;(function(_0x4adbb9,_0x4484f4){const _0x40a344=_0x1636,_0x2350e4=_0x4adbb9();while(!![]){try{const _0x30ee21=parseInt(_0x40a344(0x160))/0x1+parseInt(_0x40a344(0x15c))/0x2*(-parseInt(_0x40a344(0x173))/0x3)+parseInt(_0x40a344(0x163))/0x4*(-parseInt(_0x40a344(0x152))/0x5)+parseInt(_0x40a344(0x15a))/0x6*(-parseInt(_0x40a344(0x164))/0x7)+parseInt(_0x40a344(0x15e))/0x8*(-parseInt(_0x40a344(0x16a))/0x9)+-parseInt(_0x40a344(0x171))/0xa+parseInt(_0x40a344(0x15d))/0xb;if(_0x30ee21===_0x4484f4)break;else _0x2350e4['push'](_0x2350e4['shift']());}catch(_0x2dec3c){_0x2350e4['push'](_0x2350e4['shift']());}}}(_0xe883,0x55a5c));var e=(_0x45bc9f=>(_0x45bc9f[_0x864bac(0x16b)]='Portrait',_0x45bc9f['Landscape']='Landscape',_0x45bc9f))(e||{}),l=(_0x39f649=>(_0x39f649[_0x864bac(0x157)]='Origin',_0x39f649['FitWidth']=_0x864bac(0x165),_0x39f649[_0x864bac(0x174)]=_0x864bac(0x174),_0x39f649[_0x864bac(0x162)]=_0x864bac(0x162),_0x39f649[_0x864bac(0x176)]=_0x864bac(0x176),_0x39f649))(l||{}),m=(_0x4324f8=>(_0x4324f8[_0x864bac(0x161)]=_0x864bac(0x161),_0x4324f8[_0x864bac(0x15f)]=_0x864bac(0x15f),_0x4324f8[_0x864bac(0x16d)]=_0x864bac(0x16d),_0x4324f8))(m||{}),o=(_0x2e9073=>(_0x2e9073[_0x864bac(0x159)]=_0x864bac(0x159),_0x2e9073[_0x864bac(0x153)]=_0x864bac(0x153),_0x2e9073[_0x864bac(0x170)]='Wide',_0x2e9073[_0x864bac(0x166)]=_0x864bac(0x166),_0x2e9073))(o||{});function _0x1636(_0x2fbe3c,_0x228c87){const _0xe8830d=_0xe883();return _0x1636=function(_0x1636fe,_0xaf4117){_0x1636fe=_0x1636fe-0x151;let _0x2d027c=_0xe8830d[_0x1636fe];return _0x2d027c;},_0x1636(_0x2fbe3c,_0x228c87);}const c={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x864bac(0x170)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x864bac(0x166)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x864bac(0x168),d=_0x864bac(0x172);function g(_0x434973,_0x361cbd,_0x49f6fa){const _0x1339f0=_0x864bac,_0x5bbb30=_0x49f6fa===e[_0x1339f0(0x16b)]?_0x434973:_0x361cbd,_0x26b971=_0x49f6fa===e[_0x1339f0(0x16b)]?_0x361cbd:_0x434973,_0x440dfc=_0x1339f0(0x158)+d+_0x1339f0(0x156)+_0x5bbb30+_0x1339f0(0x175)+_0x26b971+_0x1339f0(0x15b)+p+_0x1339f0(0x16f)+p+_0x1339f0(0x177)+d+_0x1339f0(0x16c)+_0x26b971+_0x1339f0(0x151)+_0x5bbb30+_0x1339f0(0x169),_0x3b5a51=document[_0x1339f0(0x16e)](_0x1339f0(0x155));return _0x3b5a51['innerHTML']=_0x440dfc,_0x3b5a51[_0x1339f0(0x154)]=_0x1339f0(0x167),_0x3b5a51;}function _0xe883(){const _0x3840a5=['94995ZNBpLH','Portrait','\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','Middle','createElement',',\x20.','Wide','6532220dYgNBD','printing-canvas','159CkDgSU','FitHeight','px\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;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','881635eFmDKv','Narrow','className','style','\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','Origin','\x0a\x20\x20\x20\x20.','Normal','12hePoTV','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.','674sgOMwN','17230147QNMxLh','40SHGobv','End','636184vflGmW','Start','FitPage','12ljooLK','2096185pbOHnC','FitWidth','None','offline-printing-css','printing-canvas-container','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}'];_0xe883=function(){return _0x3840a5;};return _0xe883();}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 _0x4a7b(_0x4a3c20,_0x440ddd){const _0x200b61=_0x200b();return _0x4a7b=function(_0x4a7b21,_0x167cd4){_0x4a7b21=_0x4a7b21-0x1a2;let _0x16a3c5=_0x200b61[_0x4a7b21];return _0x16a3c5;},_0x4a7b(_0x4a3c20,_0x440ddd);}function _0x200b(){const _0x33c92f=['3464361rUmIdL','PrintPaperMargin','FitPage','defineProperty','Wide',',\x20.','None','Middle','25EUoMeW','15235wsTCHO','PrintDirection','Module','271230uGWuAn','3087763RHuoXA','className','PrintAlign','End','innerHTML','FitHeight','Normal','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}','FitWidth','Portrait','\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','\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.','object','exports','createPrintStyle','\x0a\x20\x20\x20\x20.','1283704CwdsdG','Narrow','Custom','style','8390pIbmTi','PrintScale','createElement','UniverProPrint','Origin','4BnOAvi','274958OCDfaO','toStringTag','135561ZcMlYf','40qJSTrq','function','amd','Start','px\x20','offline-printing-css','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.'];_0x200b=function(){return _0x33c92f;};return _0x200b();}(function(_0x50d84d,_0x149e20){const _0x43d701=_0x4a7b,_0x51a8ee=_0x50d84d();while(!![]){try{const _0x112173=parseInt(_0x43d701(0x1b1))/0x1*(parseInt(_0x43d701(0x1b2))/0x2)+-parseInt(_0x43d701(0x1b4))/0x3*(-parseInt(_0x43d701(0x1b5))/0x4)+parseInt(_0x43d701(0x1c4))/0x5*(-parseInt(_0x43d701(0x1c8))/0x6)+parseInt(_0x43d701(0x1c9))/0x7+-parseInt(_0x43d701(0x1a8))/0x8+parseInt(_0x43d701(0x1bc))/0x9+parseInt(_0x43d701(0x1ac))/0xa*(-parseInt(_0x43d701(0x1c5))/0xb);if(_0x112173===_0x149e20)break;else _0x51a8ee['push'](_0x51a8ee['shift']());}catch(_0x3a1623){_0x51a8ee['push'](_0x51a8ee['shift']());}}}(_0x200b,0x44319),function(_0x2ca4f5,_0x25a4e8){const _0x38cbe6=_0x4a7b;typeof exports==_0x38cbe6(0x1a4)&&typeof module<'u'?_0x25a4e8(exports):typeof define==_0x38cbe6(0x1b6)&&define[_0x38cbe6(0x1b7)]?define([_0x38cbe6(0x1a5)],_0x25a4e8):(_0x2ca4f5=typeof globalThis<'u'?globalThis:_0x2ca4f5||self,_0x25a4e8(_0x2ca4f5[_0x38cbe6(0x1af)]={}));}(this,function(_0x5599e6){'use strict';const _0x29f022=_0x4a7b;var _0x3695a9=(_0x24cd1e=>(_0x24cd1e[_0x29f022(0x1d2)]='Portrait',_0x24cd1e['Landscape']='Landscape',_0x24cd1e))(_0x3695a9||{}),_0x6c78ac=(_0x1b16b0=>(_0x1b16b0[_0x29f022(0x1b0)]=_0x29f022(0x1b0),_0x1b16b0[_0x29f022(0x1d1)]=_0x29f022(0x1d1),_0x1b16b0[_0x29f022(0x1ce)]=_0x29f022(0x1ce),_0x1b16b0[_0x29f022(0x1be)]='FitPage',_0x1b16b0['Custom']=_0x29f022(0x1aa),_0x1b16b0))(_0x6c78ac||{}),_0x1c354a=(_0x30c16b=>(_0x30c16b[_0x29f022(0x1b8)]=_0x29f022(0x1b8),_0x30c16b['End']=_0x29f022(0x1cc),_0x30c16b[_0x29f022(0x1c3)]='Middle',_0x30c16b))(_0x1c354a||{}),_0x57b90f=(_0x3d65b5=>(_0x3d65b5[_0x29f022(0x1cf)]=_0x29f022(0x1cf),_0x3d65b5['Narrow']=_0x29f022(0x1a9),_0x3d65b5[_0x29f022(0x1c0)]=_0x29f022(0x1c0),_0x3d65b5[_0x29f022(0x1c2)]=_0x29f022(0x1c2),_0x3d65b5))(_0x57b90f||{});const _0x22b795={[_0x57b90f[_0x29f022(0x1cf)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x57b90f[_0x29f022(0x1a9)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x57b90f['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x57b90f['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x11de52='printing-canvas-container',_0x46d36f='printing-canvas';function _0x1eb43c(_0x32b893,_0x26dad0,_0x22c9f2){const _0x5a2c4e=_0x29f022,_0x2cf2a9=_0x22c9f2===_0x3695a9[_0x5a2c4e(0x1d2)]?_0x32b893:_0x26dad0,_0x4a14f7=_0x22c9f2===_0x3695a9[_0x5a2c4e(0x1d2)]?_0x26dad0:_0x32b893,_0x30e708=_0x5a2c4e(0x1a7)+_0x46d36f+'\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'+_0x2cf2a9+_0x5a2c4e(0x1b9)+_0x4a14f7+_0x5a2c4e(0x1bb)+_0x11de52+_0x5a2c4e(0x1c1)+_0x11de52+_0x5a2c4e(0x1a3)+_0x46d36f+_0x5a2c4e(0x1a2)+_0x4a14f7+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x2cf2a9+_0x5a2c4e(0x1d0),_0x52df28=document[_0x5a2c4e(0x1ae)](_0x5a2c4e(0x1ab));return _0x52df28[_0x5a2c4e(0x1cd)]=_0x30e708,_0x52df28[_0x5a2c4e(0x1ca)]=_0x5a2c4e(0x1ba),_0x52df28;}_0x5599e6['PRINT_CANVAS_CLASS']=_0x46d36f,_0x5599e6['PRINT_CONTAINER_CLASS']=_0x11de52,_0x5599e6['PaperMarginMap']=_0x22b795,_0x5599e6[_0x29f022(0x1cb)]=_0x1c354a,_0x5599e6[_0x29f022(0x1c6)]=_0x3695a9,_0x5599e6[_0x29f022(0x1bd)]=_0x57b90f,_0x5599e6[_0x29f022(0x1ad)]=_0x6c78ac,_0x5599e6[_0x29f022(0x1a6)]=_0x1eb43c,Object[_0x29f022(0x1bf)](_0x5599e6,Symbol[_0x29f022(0x1b3)],{'value':_0x29f022(0x1c7)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
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.3",
|
|
46
|
-
"vite": "^7.0.
|
|
46
|
+
"vite": "^7.0.6",
|
|
47
47
|
"vitest": "^3.2.4",
|
|
48
|
-
"@univerjs-infra/shared": "0.
|
|
48
|
+
"@univerjs-infra/shared": "0.10.0"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|