@univerjs-pro/print 0.10.6 → 0.10.7
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';const _0x5dbec4=_0x4a40;(function(_0x1585d8,_0x210fdd){const _0x3319bc=_0x4a40,_0x3de232=_0x1585d8();while(!![]){try{const _0x5519c3=parseInt(_0x3319bc(0x101))/0x1+parseInt(_0x3319bc(0x104))/0x2*(parseInt(_0x3319bc(0x123))/0x3)+parseInt(_0x3319bc(0x118))/0x4*(parseInt(_0x3319bc(0x10e))/0x5)+-parseInt(_0x3319bc(0xfd))/0x6+parseInt(_0x3319bc(0x117))/0x7+parseInt(_0x3319bc(0xfc))/0x8*(parseInt(_0x3319bc(0x10d))/0x9)+-parseInt(_0x3319bc(0x11a))/0xa*(parseInt(_0x3319bc(0x126))/0xb);if(_0x5519c3===_0x210fdd)break;else _0x3de232['push'](_0x3de232['shift']());}catch(_0x355fd0){_0x3de232['push'](_0x3de232['shift']());}}}(_0x13ab,0x5ae74));Object['defineProperty'](exports,Symbol[_0x5dbec4(0x114)],{'value':_0x5dbec4(0x127)});var e=(_0x385844=>(_0x385844['Portrait']=_0x5dbec4(0x125),_0x385844[_0x5dbec4(0xfe)]=_0x5dbec4(0xfe),_0x385844))(e||{}),l=(_0xb93603=>(_0xb93603[_0x5dbec4(0xff)]=_0x5dbec4(0xff),_0xb93603['FitWidth']=_0x5dbec4(0x103),_0xb93603[_0x5dbec4(0x11f)]=_0x5dbec4(0x11f),_0xb93603[_0x5dbec4(0x113)]=_0x5dbec4(0x113),_0xb93603['Custom']=_0x5dbec4(0x10b),_0xb93603))(l||{}),c=(_0x143166=>(_0x143166[_0x5dbec4(0x109)]=_0x5dbec4(0x109),_0x143166[_0x5dbec4(0x116)]=_0x5dbec4(0x116),_0x143166[_0x5dbec4(0x11c)]=_0x5dbec4(0x11c),_0x143166))(c||{}),i=(_0x10326c=>(_0x10326c['Normal']=_0x5dbec4(0x107),_0x10326c['Narrow']=_0x5dbec4(0x122),_0x10326c[_0x5dbec4(0x11e)]=_0x5dbec4(0x11e),_0x10326c[_0x5dbec4(0x10f)]=_0x5dbec4(0x10f),_0x10326c))(i||{});const h={[i[_0x5dbec4(0x107)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i[_0x5dbec4(0x122)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i[_0x5dbec4(0x11e)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i[_0x5dbec4(0x10f)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x5dbec4(0x110),n='printing-canvas';function _0x4a40(_0x1906b6,_0x3f2448){const _0x13ab9c=_0x13ab();return _0x4a40=function(_0x4a4084,_0x46f849){_0x4a4084=_0x4a4084-0xfa;let _0x524a60=_0x13ab9c[_0x4a4084];return _0x524a60;},_0x4a40(_0x1906b6,_0x3f2448);}function _0x13ab(){const _0x2f5b7b=['Origin','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}','687094SCKnJb','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.','FitWidth','3742WBBIJE','px\x20','PrintPaperMargin','Normal','PRINT_CONTAINER_CLASS','Start','offline-printing-css','Custom',',\x20.','663786iLaOsD','1838330vSalaP','None','printing-canvas-container','PaperMarginMap','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','FitPage','toStringTag','\x0a\x20\x20\x20\x20.','End','417865mwrHwh','4rXSNpb','\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','50EEIZli','createElement','Middle','style','Wide','FitHeight','PrintAlign','PRINT_CANVAS_CLASS','Narrow','339GdCwQr','innerHTML','Portrait','845009nWfIJW','Module','PrintScale','PrintDirection','8KxDbLw','3859182WaawXj','Landscape'];_0x13ab=function(){return _0x2f5b7b;};return _0x13ab();}function m(_0x302eb7,_0x286952,_0x31b82d){const _0x7611f4=_0x5dbec4,_0x2c4f8c=_0x31b82d===e[_0x7611f4(0x125)]?_0x302eb7:_0x286952,_0xfcefd5=_0x31b82d===e['Portrait']?_0x286952:_0x302eb7,_0x2c194e=_0x7611f4(0x115)+n+'\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'+_0x2c4f8c+_0x7611f4(0x105)+_0xfcefd5+_0x7611f4(0x102)+r+_0x7611f4(0x10c)+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+_0x7611f4(0x119)+_0xfcefd5+_0x7611f4(0x112)+_0x2c4f8c+_0x7611f4(0x100),_0x5d09d8=document[_0x7611f4(0x11b)](_0x7611f4(0x11d));return _0x5d09d8[_0x7611f4(0x124)]=_0x2c194e,_0x5d09d8['className']=_0x7611f4(0x10a),_0x5d09d8;}exports[_0x5dbec4(0x121)]=n,exports[_0x5dbec4(0x108)]=r,exports[_0x5dbec4(0x111)]=h,exports[_0x5dbec4(0x120)]=c,exports[_0x5dbec4(0xfb)]=e,exports[_0x5dbec4(0x106)]=i,exports[_0x5dbec4(0xfa)]=l,exports['createPrintStyle']=m;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x44d6(){const _0x128609=['7sAQoUK','1195230IqMrBx','4yByjhO',',\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.','className','Middle','None','3154464uLYHjN','Start','291908ZfuKGT','\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','printing-canvas-container','Normal','px\x20','6878770WBTuKN','1002465rGJdBf','6BdtFQX','printing-canvas','FitPage','style','875826UyLYkX','Portrait','End','createElement','offline-printing-css','FitHeight','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Landscape','Wide','Narrow','140799VhpHPX','FitWidth','Custom','Origin','\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'];_0x44d6=function(){return _0x128609;};return _0x44d6();}const _0x5e86e9=_0x2eeb;(function(_0x3bf8e6,_0x4323cc){const _0x5a7fd5=_0x2eeb,_0x533a75=_0x3bf8e6();while(!![]){try{const _0x770ab1=parseInt(_0x5a7fd5(0x1bc))/0x1*(parseInt(_0x5a7fd5(0x1c3))/0x2)+-parseInt(_0x5a7fd5(0x1ae))/0x3*(-parseInt(_0x5a7fd5(0x1a7))/0x4)+-parseInt(_0x5a7fd5(0x1ad))/0x5+parseInt(_0x5a7fd5(0x1c2))/0x6*(-parseInt(_0x5a7fd5(0x1c1))/0x7)+-parseInt(_0x5a7fd5(0x1c9))/0x8+-parseInt(_0x5a7fd5(0x1b2))/0x9+parseInt(_0x5a7fd5(0x1ac))/0xa;if(_0x770ab1===_0x4323cc)break;else _0x533a75['push'](_0x533a75['shift']());}catch(_0x57d88b){_0x533a75['push'](_0x533a75['shift']());}}}(_0x44d6,0x36b6d));var e=(_0x313999=>(_0x313999['Portrait']=_0x5e86e9(0x1b3),_0x313999['Landscape']=_0x5e86e9(0x1b9),_0x313999))(e||{}),l=(_0x4026ea=>(_0x4026ea[_0x5e86e9(0x1bf)]='Origin',_0x4026ea[_0x5e86e9(0x1bd)]=_0x5e86e9(0x1bd),_0x4026ea[_0x5e86e9(0x1b7)]='FitHeight',_0x4026ea['FitPage']=_0x5e86e9(0x1b0),_0x4026ea[_0x5e86e9(0x1be)]=_0x5e86e9(0x1be),_0x4026ea))(l||{}),m=(_0x49501f=>(_0x49501f[_0x5e86e9(0x1a6)]=_0x5e86e9(0x1a6),_0x49501f[_0x5e86e9(0x1b4)]='End',_0x49501f[_0x5e86e9(0x1c7)]=_0x5e86e9(0x1c7),_0x49501f))(m||{}),o=(_0x1ab0db=>(_0x1ab0db['Normal']='Normal',_0x1ab0db[_0x5e86e9(0x1bb)]=_0x5e86e9(0x1bb),_0x1ab0db[_0x5e86e9(0x1ba)]=_0x5e86e9(0x1ba),_0x1ab0db[_0x5e86e9(0x1c8)]=_0x5e86e9(0x1c8),_0x1ab0db))(o||{});const c={[o[_0x5e86e9(0x1aa)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x5e86e9(0x1bb)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x5e86e9(0x1c8)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x5e86e9(0x1a9),d=_0x5e86e9(0x1af);function _0x2eeb(_0x28ccd6,_0x15eecf){const _0x44d65b=_0x44d6();return _0x2eeb=function(_0x2eeba3,_0x165797){_0x2eeba3=_0x2eeba3-0x1a6;let _0x1937aa=_0x44d65b[_0x2eeba3];return _0x1937aa;},_0x2eeb(_0x28ccd6,_0x15eecf);}function g(_0x31016a,_0x4422d2,_0xcec3fd){const _0x2c9eff=_0x5e86e9,_0x28cd53=_0xcec3fd===e[_0x2c9eff(0x1b3)]?_0x31016a:_0x4422d2,_0x50da1a=_0xcec3fd===e[_0x2c9eff(0x1b3)]?_0x4422d2:_0x31016a,_0x8bbea5='\x0a\x20\x20\x20\x20.'+d+_0x2c9eff(0x1a8)+_0x28cd53+_0x2c9eff(0x1ab)+_0x50da1a+'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.'+p+_0x2c9eff(0x1c4)+p+_0x2c9eff(0x1c5)+d+_0x2c9eff(0x1c0)+_0x50da1a+_0x2c9eff(0x1b8)+_0x28cd53+'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}',_0x57c8da=document[_0x2c9eff(0x1b5)](_0x2c9eff(0x1b1));return _0x57c8da['innerHTML']=_0x8bbea5,_0x57c8da[_0x2c9eff(0x1c6)]=_0x2c9eff(0x1b6),_0x57c8da;}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
|
+
function _0x44d6(){const _0x128609=['7sAQoUK','1195230IqMrBx','4yByjhO',',\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.','className','Middle','None','3154464uLYHjN','Start','291908ZfuKGT','\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','printing-canvas-container','Normal','px\x20','6878770WBTuKN','1002465rGJdBf','6BdtFQX','printing-canvas','FitPage','style','875826UyLYkX','Portrait','End','createElement','offline-printing-css','FitHeight','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Landscape','Wide','Narrow','140799VhpHPX','FitWidth','Custom','Origin','\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'];_0x44d6=function(){return _0x128609;};return _0x44d6();}const _0x5e86e9=_0x2eeb;(function(_0x3bf8e6,_0x4323cc){const _0x5a7fd5=_0x2eeb,_0x533a75=_0x3bf8e6();while(!![]){try{const _0x770ab1=parseInt(_0x5a7fd5(0x1bc))/0x1*(parseInt(_0x5a7fd5(0x1c3))/0x2)+-parseInt(_0x5a7fd5(0x1ae))/0x3*(-parseInt(_0x5a7fd5(0x1a7))/0x4)+-parseInt(_0x5a7fd5(0x1ad))/0x5+parseInt(_0x5a7fd5(0x1c2))/0x6*(-parseInt(_0x5a7fd5(0x1c1))/0x7)+-parseInt(_0x5a7fd5(0x1c9))/0x8+-parseInt(_0x5a7fd5(0x1b2))/0x9+parseInt(_0x5a7fd5(0x1ac))/0xa;if(_0x770ab1===_0x4323cc)break;else _0x533a75['push'](_0x533a75['shift']());}catch(_0x57d88b){_0x533a75['push'](_0x533a75['shift']());}}}(_0x44d6,0x36b6d));var e=(_0x313999=>(_0x313999['Portrait']=_0x5e86e9(0x1b3),_0x313999['Landscape']=_0x5e86e9(0x1b9),_0x313999))(e||{}),l=(_0x4026ea=>(_0x4026ea[_0x5e86e9(0x1bf)]='Origin',_0x4026ea[_0x5e86e9(0x1bd)]=_0x5e86e9(0x1bd),_0x4026ea[_0x5e86e9(0x1b7)]='FitHeight',_0x4026ea['FitPage']=_0x5e86e9(0x1b0),_0x4026ea[_0x5e86e9(0x1be)]=_0x5e86e9(0x1be),_0x4026ea))(l||{}),m=(_0x49501f=>(_0x49501f[_0x5e86e9(0x1a6)]=_0x5e86e9(0x1a6),_0x49501f[_0x5e86e9(0x1b4)]='End',_0x49501f[_0x5e86e9(0x1c7)]=_0x5e86e9(0x1c7),_0x49501f))(m||{}),o=(_0x1ab0db=>(_0x1ab0db['Normal']='Normal',_0x1ab0db[_0x5e86e9(0x1bb)]=_0x5e86e9(0x1bb),_0x1ab0db[_0x5e86e9(0x1ba)]=_0x5e86e9(0x1ba),_0x1ab0db[_0x5e86e9(0x1c8)]=_0x5e86e9(0x1c8),_0x1ab0db))(o||{});const c={[o[_0x5e86e9(0x1aa)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x5e86e9(0x1bb)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x5e86e9(0x1c8)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x5e86e9(0x1a9),d=_0x5e86e9(0x1af);function _0x2eeb(_0x28ccd6,_0x15eecf){const _0x44d65b=_0x44d6();return _0x2eeb=function(_0x2eeba3,_0x165797){_0x2eeba3=_0x2eeba3-0x1a6;let _0x1937aa=_0x44d65b[_0x2eeba3];return _0x1937aa;},_0x2eeb(_0x28ccd6,_0x15eecf);}function g(_0x31016a,_0x4422d2,_0xcec3fd){const _0x2c9eff=_0x5e86e9,_0x28cd53=_0xcec3fd===e[_0x2c9eff(0x1b3)]?_0x31016a:_0x4422d2,_0x50da1a=_0xcec3fd===e[_0x2c9eff(0x1b3)]?_0x4422d2:_0x31016a,_0x8bbea5='\x0a\x20\x20\x20\x20.'+d+_0x2c9eff(0x1a8)+_0x28cd53+_0x2c9eff(0x1ab)+_0x50da1a+'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.'+p+_0x2c9eff(0x1c4)+p+_0x2c9eff(0x1c5)+d+_0x2c9eff(0x1c0)+_0x50da1a+_0x2c9eff(0x1b8)+_0x28cd53+'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}',_0x57c8da=document[_0x2c9eff(0x1b5)](_0x2c9eff(0x1b1));return _0x57c8da['innerHTML']=_0x8bbea5,_0x57c8da[_0x2c9eff(0x1c6)]=_0x2c9eff(0x1b6),_0x57c8da;}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 _0x1564(){const _0x136559=['style','451338poQkQS','\x0a\x20\x20\x20\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.','createElement','916zZdWQn','PaperMarginMap','PrintDirection','Wide','PRINT_CONTAINER_CLASS','5169760ZGOTNR','4448279dkpFvq',',\x20.','None','Normal','End','function','45IIsDyu','Origin','innerHTML','Module','323450kShsgQ','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}','offline-printing-css','\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','861535AzTBdI','2652RKjBtJ','toStringTag','FitWidth','defineProperty','amd','PrintScale','18433UBXcOf','Portrait','21FnZigC','Start','createPrintStyle','FitPage','\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','Narrow','58TxOaYD','Middle','Custom','printing-canvas','FitHeight','exports'];_0x1564=function(){return _0x136559;};return _0x1564();}function _0x4471(_0x4c1c83,_0x12cf91){const _0x1564bf=_0x1564();return _0x4471=function(_0x44712c,_0xef01ca){_0x44712c=_0x44712c-0x188;let _0x56dae1=_0x1564bf[_0x44712c];return _0x56dae1;},_0x4471(_0x4c1c83,_0x12cf91);}(function(_0x171bff,_0x11facd){const _0x21f7d1=_0x4471,_0x56298d=_0x171bff();while(!![]){try{const _0x4de57e=parseInt(_0x21f7d1(0x19b))/0x1*(parseInt(_0x21f7d1(0x1a3))/0x2)+-parseInt(_0x21f7d1(0x195))/0x3*(parseInt(_0x21f7d1(0x1ae))/0x4)+parseInt(_0x21f7d1(0x194))/0x5+parseInt(_0x21f7d1(0x1aa))/0x6*(parseInt(_0x21f7d1(0x19d))/0x7)+-parseInt(_0x21f7d1(0x1b3))/0x8+parseInt(_0x21f7d1(0x18c))/0x9*(-parseInt(_0x21f7d1(0x190))/0xa)+parseInt(_0x21f7d1(0x1b4))/0xb;if(_0x4de57e===_0x11facd)break;else _0x56298d['push'](_0x56298d['shift']());}catch(_0x4d865d){_0x56298d['push'](_0x56298d['shift']());}}}(_0x1564,0x4fb8d),function(_0x581e0e,_0x599578){const _0x2ca1be=_0x4471;typeof exports=='object'&&typeof module<'u'?_0x599578(exports):typeof define==_0x2ca1be(0x18b)&&define[_0x2ca1be(0x199)]?define([_0x2ca1be(0x1a8)],_0x599578):(_0x581e0e=typeof globalThis<'u'?globalThis:_0x581e0e||self,_0x599578(_0x581e0e['UniverProPrint']={}));}(this,function(_0x240a00){'use strict';const _0x577960=_0x4471;var _0x1c5771=(_0x306807=>(_0x306807[_0x577960(0x19c)]=_0x577960(0x19c),_0x306807['Landscape']='Landscape',_0x306807))(_0x1c5771||{}),_0x12af90=(_0x3404e2=>(_0x3404e2['Origin']=_0x577960(0x18d),_0x3404e2['FitWidth']=_0x577960(0x197),_0x3404e2[_0x577960(0x1a7)]=_0x577960(0x1a7),_0x3404e2['FitPage']=_0x577960(0x1a0),_0x3404e2[_0x577960(0x1a5)]=_0x577960(0x1a5),_0x3404e2))(_0x12af90||{}),_0x526ed2=(_0x4fb77d=>(_0x4fb77d[_0x577960(0x19e)]=_0x577960(0x19e),_0x4fb77d['End']=_0x577960(0x18a),_0x4fb77d[_0x577960(0x1a4)]='Middle',_0x4fb77d))(_0x526ed2||{}),_0x5e531d=(_0x327bea=>(_0x327bea[_0x577960(0x189)]=_0x577960(0x189),_0x327bea[_0x577960(0x1a2)]=_0x577960(0x1a2),_0x327bea[_0x577960(0x1b1)]=_0x577960(0x1b1),_0x327bea[_0x577960(0x188)]=_0x577960(0x188),_0x327bea))(_0x5e531d||{});const _0x1bdad2={[_0x5e531d[_0x577960(0x189)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x5e531d[_0x577960(0x1a2)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x5e531d[_0x577960(0x1b1)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x5e531d[_0x577960(0x188)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x13ce82='printing-canvas-container',_0x20419c=_0x577960(0x1a6);function _0x227a22(_0x5cd2d2,_0x56c4a9,_0x4960a5){const _0x599372=_0x577960,_0x3b538c=_0x4960a5===_0x1c5771[_0x599372(0x19c)]?_0x5cd2d2:_0x56c4a9,_0xaa2440=_0x4960a5===_0x1c5771['Portrait']?_0x56c4a9:_0x5cd2d2,_0x38bf95=_0x599372(0x1ab)+_0x20419c+_0x599372(0x193)+_0x3b538c+'px\x20'+_0xaa2440+'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.'+_0x13ce82+_0x599372(0x1b5)+_0x13ce82+_0x599372(0x1ac)+_0x20419c+_0x599372(0x1a1)+_0xaa2440+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x3b538c+_0x599372(0x191),_0x2caa79=document[_0x599372(0x1ad)](_0x599372(0x1a9));return _0x2caa79[_0x599372(0x18e)]=_0x38bf95,_0x2caa79['className']=_0x599372(0x192),_0x2caa79;}_0x240a00['PRINT_CANVAS_CLASS']=_0x20419c,_0x240a00[_0x577960(0x1b2)]=_0x13ce82,_0x240a00[_0x577960(0x1af)]=_0x1bdad2,_0x240a00['PrintAlign']=_0x526ed2,_0x240a00[_0x577960(0x1b0)]=_0x1c5771,_0x240a00['PrintPaperMargin']=_0x5e531d,_0x240a00[_0x577960(0x19a)]=_0x12af90,_0x240a00[_0x577960(0x19f)]=_0x227a22,Object[_0x577960(0x198)](_0x240a00,Symbol[_0x577960(0x196)],{'value':_0x577960(0x18f)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.7",
|
|
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.
|
|
45
|
+
"typescript": "^5.9.2",
|
|
46
46
|
"vite": "^7.1.3",
|
|
47
47
|
"vitest": "^3.2.4",
|
|
48
|
-
"@univerjs-infra/shared": "0.10.
|
|
48
|
+
"@univerjs-infra/shared": "0.10.7"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|