@univerjs-pro/print 0.10.5 → 0.10.6
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 +2 -2
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3adad9=_0x507f;(function(_0x4cb917,_0x58b41b){const _0x2899d9=_0x507f,_0x5f4099=_0x4cb917();while(!![]){try{const _0x5603d7=parseInt(_0x2899d9(0x1dd))/0x1*(parseInt(_0x2899d9(0x1cb))/0x2)+parseInt(_0x2899d9(0x1e1))/0x3+parseInt(_0x2899d9(0x1c4))/0x4+parseInt(_0x2899d9(0x1d3))/0x5+-parseInt(_0x2899d9(0x1dc))/0x6+-parseInt(_0x2899d9(0x1e9))/0x7+parseInt(_0x2899d9(0x1ed))/0x8*(-parseInt(_0x2899d9(0x1e6))/0x9);if(_0x5603d7===_0x58b41b)break;else _0x5f4099['push'](_0x5f4099['shift']());}catch(_0x544e55){_0x5f4099['push'](_0x5f4099['shift']());}}}(_0x7350,0xc92b9));Object[_0x3adad9(0x1c5)](exports,Symbol[_0x3adad9(0x1e0)],{'value':_0x3adad9(0x1d2)});var e=(_0x53e68b=>(_0x53e68b['Portrait']='Portrait',_0x53e68b[_0x3adad9(0x1ce)]=_0x3adad9(0x1ce),_0x53e68b))(e||{}),l=(_0x4e1f74=>(_0x4e1f74[_0x3adad9(0x1eb)]=_0x3adad9(0x1eb),_0x4e1f74[_0x3adad9(0x1d9)]=_0x3adad9(0x1d9),_0x4e1f74[_0x3adad9(0x1ca)]=_0x3adad9(0x1ca),_0x4e1f74['FitPage']=_0x3adad9(0x1c3),_0x4e1f74[_0x3adad9(0x1c7)]=_0x3adad9(0x1c7),_0x4e1f74))(l||{}),c=(_0x249c71=>(_0x249c71[_0x3adad9(0x1cd)]=_0x3adad9(0x1cd),_0x249c71[_0x3adad9(0x1e4)]=_0x3adad9(0x1e4),_0x249c71[_0x3adad9(0x1d5)]=_0x3adad9(0x1d5),_0x249c71))(c||{}),i=(_0x41f045=>(_0x41f045[_0x3adad9(0x1cf)]='Normal',_0x41f045[_0x3adad9(0x1d0)]=_0x3adad9(0x1d0),_0x41f045[_0x3adad9(0x1d7)]='Wide',_0x41f045[_0x3adad9(0x1d6)]=_0x3adad9(0x1d6),_0x41f045))(i||{});const h={[i[_0x3adad9(0x1cf)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i[_0x3adad9(0x1d0)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i[_0x3adad9(0x1d6)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r='printing-canvas-container',n='printing-canvas';function m(_0x1ff4f0,_0x3c629f,_0x345fa3){const _0x5343d6=_0x3adad9,_0x5311a0=_0x345fa3===e[_0x5343d6(0x1e2)]?_0x1ff4f0:_0x3c629f,_0x2703b5=_0x345fa3===e[_0x5343d6(0x1e2)]?_0x3c629f:_0x1ff4f0,_0x43f475=_0x5343d6(0x1df)+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'+_0x5311a0+_0x5343d6(0x1e7)+_0x2703b5+_0x5343d6(0x1e3)+r+_0x5343d6(0x1e8)+r+_0x5343d6(0x1c6)+n+_0x5343d6(0x1c9)+_0x2703b5+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x5311a0+'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}',_0x5dcadd=document[_0x5343d6(0x1d1)](_0x5343d6(0x1d4));return _0x5dcadd[_0x5343d6(0x1ec)]=_0x43f475,_0x5dcadd['className']=_0x5343d6(0x1d8),_0x5dcadd;}function _0x7350(){const _0x4702a0=['PrintPaperMargin','PRINT_CONTAINER_CLASS','1132764DXdCmL','2NxFgyh','PRINT_CANVAS_CLASS','\x0a\x20\x20\x20\x20.','toStringTag','894396AeTbFH','Portrait','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.','End','createPrintStyle','2019033OkjdsR','px\x20',',\x20.','1145389XdgHWW','PaperMarginMap','Origin','innerHTML','56ReUKke','FitPage','3175040ffDJaK','defineProperty','\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.','Custom','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','FitHeight','1224706oMVOfr','PrintScale','Start','Landscape','Normal','Narrow','createElement','Module','2150875KwWeVw','style','Middle','None','Wide','offline-printing-css','FitWidth'];_0x7350=function(){return _0x4702a0;};return _0x7350();}function _0x507f(_0x1b4127,_0x32a81f){const _0x73509c=_0x7350();return _0x507f=function(_0x507fb9,_0x47772d){_0x507fb9=_0x507fb9-0x1c3;let _0x3606f2=_0x73509c[_0x507fb9];return _0x3606f2;},_0x507f(_0x1b4127,_0x32a81f);}exports[_0x3adad9(0x1de)]=n,exports[_0x3adad9(0x1db)]=r,exports[_0x3adad9(0x1ea)]=h,exports['PrintAlign']=c,exports[_0x3adad9(0x1c8)]=e,exports[_0x3adad9(0x1da)]=i,exports[_0x3adad9(0x1cc)]=l,exports[_0x3adad9(0x1e5)]=m;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x470f97=_0x5c9f;(function(_0x4f3e00,_0x16cb93){const _0x1f637d=_0x5c9f,_0x1c715d=_0x4f3e00();while(!![]){try{const _0x4e4944=-parseInt(_0x1f637d(0xf5))/0x1+-parseInt(_0x1f637d(0xfe))/0x2*(-parseInt(_0x1f637d(0x10c))/0x3)+-parseInt(_0x1f637d(0x107))/0x4+parseInt(_0x1f637d(0xf3))/0x5+-parseInt(_0x1f637d(0xef))/0x6*(-parseInt(_0x1f637d(0xfc))/0x7)+parseInt(_0x1f637d(0xf6))/0x8*(-parseInt(_0x1f637d(0x108))/0x9)+parseInt(_0x1f637d(0xf8))/0xa;if(_0x4e4944===_0x16cb93)break;else _0x1c715d['push'](_0x1c715d['shift']());}catch(_0x51f68d){_0x1c715d['push'](_0x1c715d['shift']());}}}(_0x105d,0x5fdcd));function _0x5c9f(_0x4f4fb4,_0xf3f57a){const _0x105de9=_0x105d();return _0x5c9f=function(_0x5c9f65,_0x146b1e){_0x5c9f65=_0x5c9f65-0xef;let _0x250fb4=_0x105de9[_0x5c9f65];return _0x250fb4;},_0x5c9f(_0x4f4fb4,_0xf3f57a);}var e=(_0x2bd01b=>(_0x2bd01b[_0x470f97(0x10a)]=_0x470f97(0x10a),_0x2bd01b[_0x470f97(0x10e)]='Landscape',_0x2bd01b))(e||{}),l=(_0x543e87=>(_0x543e87[_0x470f97(0x102)]=_0x470f97(0x102),_0x543e87[_0x470f97(0xf0)]=_0x470f97(0xf0),_0x543e87[_0x470f97(0xf2)]=_0x470f97(0xf2),_0x543e87[_0x470f97(0x104)]=_0x470f97(0x104),_0x543e87['Custom']='Custom',_0x543e87))(l||{}),m=(_0x1f203e=>(_0x1f203e[_0x470f97(0x10b)]=_0x470f97(0x10b),_0x1f203e['End']='End',_0x1f203e[_0x470f97(0x103)]=_0x470f97(0x103),_0x1f203e))(m||{}),o=(_0x30526c=>(_0x30526c[_0x470f97(0xff)]='Normal',_0x30526c[_0x470f97(0x106)]=_0x470f97(0x106),_0x30526c['Wide']=_0x470f97(0xf9),_0x30526c['None']=_0x470f97(0x109),_0x30526c))(o||{});const c={[o[_0x470f97(0xff)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x470f97(0x106)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x470f97(0x100),d=_0x470f97(0x10d);function g(_0x4b049c,_0x11f7f,_0x3bbf15){const _0x576737=_0x470f97,_0x2f018d=_0x3bbf15===e[_0x576737(0x10a)]?_0x4b049c:_0x11f7f,_0x40dd8a=_0x3bbf15===e['Portrait']?_0x11f7f:_0x4b049c,_0x4128fb='\x0a\x20\x20\x20\x20.'+d+_0x576737(0x105)+_0x2f018d+_0x576737(0xf1)+_0x40dd8a+'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+_0x576737(0xf4)+p+'\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.'+d+_0x576737(0xfd)+_0x40dd8a+_0x576737(0x101)+_0x2f018d+_0x576737(0xfa),_0x294094=document['createElement'](_0x576737(0xf7));return _0x294094['innerHTML']=_0x4128fb,_0x294094['className']=_0x576737(0xfb),_0x294094;}function _0x105d(){const _0xff0903=['4471854HaIaoR','FitWidth','px\x20','FitHeight','3595640onWTsg',',\x20.','528909zsSXts','389656dCWnKB','style','4152290DsfLQi','Wide','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','7ZFqMUK','\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','27590zecqGA','Normal','printing-canvas-container','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Origin','Middle','FitPage','\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','Narrow','825528EgTxvR','144QIwykL','None','Portrait','Start','6mKaObv','printing-canvas','Landscape'];_0x105d=function(){return _0xff0903;};return _0x105d();}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 _0x470f97=_0x5c9f;(function(_0x4f3e00,_0x16cb93){const _0x1f637d=_0x5c9f,_0x1c715d=_0x4f3e00();while(!![]){try{const _0x4e4944=-parseInt(_0x1f637d(0xf5))/0x1+-parseInt(_0x1f637d(0xfe))/0x2*(-parseInt(_0x1f637d(0x10c))/0x3)+-parseInt(_0x1f637d(0x107))/0x4+parseInt(_0x1f637d(0xf3))/0x5+-parseInt(_0x1f637d(0xef))/0x6*(-parseInt(_0x1f637d(0xfc))/0x7)+parseInt(_0x1f637d(0xf6))/0x8*(-parseInt(_0x1f637d(0x108))/0x9)+parseInt(_0x1f637d(0xf8))/0xa;if(_0x4e4944===_0x16cb93)break;else _0x1c715d['push'](_0x1c715d['shift']());}catch(_0x51f68d){_0x1c715d['push'](_0x1c715d['shift']());}}}(_0x105d,0x5fdcd));function _0x5c9f(_0x4f4fb4,_0xf3f57a){const _0x105de9=_0x105d();return _0x5c9f=function(_0x5c9f65,_0x146b1e){_0x5c9f65=_0x5c9f65-0xef;let _0x250fb4=_0x105de9[_0x5c9f65];return _0x250fb4;},_0x5c9f(_0x4f4fb4,_0xf3f57a);}var e=(_0x2bd01b=>(_0x2bd01b[_0x470f97(0x10a)]=_0x470f97(0x10a),_0x2bd01b[_0x470f97(0x10e)]='Landscape',_0x2bd01b))(e||{}),l=(_0x543e87=>(_0x543e87[_0x470f97(0x102)]=_0x470f97(0x102),_0x543e87[_0x470f97(0xf0)]=_0x470f97(0xf0),_0x543e87[_0x470f97(0xf2)]=_0x470f97(0xf2),_0x543e87[_0x470f97(0x104)]=_0x470f97(0x104),_0x543e87['Custom']='Custom',_0x543e87))(l||{}),m=(_0x1f203e=>(_0x1f203e[_0x470f97(0x10b)]=_0x470f97(0x10b),_0x1f203e['End']='End',_0x1f203e[_0x470f97(0x103)]=_0x470f97(0x103),_0x1f203e))(m||{}),o=(_0x30526c=>(_0x30526c[_0x470f97(0xff)]='Normal',_0x30526c[_0x470f97(0x106)]=_0x470f97(0x106),_0x30526c['Wide']=_0x470f97(0xf9),_0x30526c['None']=_0x470f97(0x109),_0x30526c))(o||{});const c={[o[_0x470f97(0xff)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x470f97(0x106)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x470f97(0x100),d=_0x470f97(0x10d);function g(_0x4b049c,_0x11f7f,_0x3bbf15){const _0x576737=_0x470f97,_0x2f018d=_0x3bbf15===e[_0x576737(0x10a)]?_0x4b049c:_0x11f7f,_0x40dd8a=_0x3bbf15===e['Portrait']?_0x11f7f:_0x4b049c,_0x4128fb='\x0a\x20\x20\x20\x20.'+d+_0x576737(0x105)+_0x2f018d+_0x576737(0xf1)+_0x40dd8a+'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+_0x576737(0xf4)+p+'\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.'+d+_0x576737(0xfd)+_0x40dd8a+_0x576737(0x101)+_0x2f018d+_0x576737(0xfa),_0x294094=document['createElement'](_0x576737(0xf7));return _0x294094['innerHTML']=_0x4128fb,_0x294094['className']=_0x576737(0xfb),_0x294094;}function _0x105d(){const _0xff0903=['4471854HaIaoR','FitWidth','px\x20','FitHeight','3595640onWTsg',',\x20.','528909zsSXts','389656dCWnKB','style','4152290DsfLQi','Wide','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','7ZFqMUK','\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','27590zecqGA','Normal','printing-canvas-container','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Origin','Middle','FitPage','\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','Narrow','825528EgTxvR','144QIwykL','None','Portrait','Start','6mKaObv','printing-canvas','Landscape'];_0x105d=function(){return _0xff0903;};return _0x105d();}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 _0x3d63(){const _0x377667=['Middle','33cNXIIX','offline-printing-css','exports','innerHTML','Custom','None','PrintScale','Narrow','798670mGKzyE','1997785CXgVYT','\x0a\x20\x20\x20\x20.','printing-canvas-container','837652BALnqS','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','39816wydRGC','UniverProPrint','defineProperty','3TnfgPc','function','px\x20','End','toStringTag','Start','368298qzuXIs','Wide','PrintDirection','PaperMarginMap','createPrintStyle','amd','PrintPaperMargin','6hJQJFS','Portrait','676332oyTHZF','1168oLOZCc','\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','Normal','12kewbVY','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}','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','1778567SsRXDh','\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\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.','FitHeight','object'];_0x3d63=function(){return _0x377667;};return _0x3d63();}function _0x510f(_0x335b61,_0x28278e){const _0x3d6389=_0x3d63();return _0x510f=function(_0x510f77,_0x51737c){_0x510f77=_0x510f77-0x153;let _0x4a37ab=_0x3d6389[_0x510f77];return _0x4a37ab;},_0x510f(_0x335b61,_0x28278e);}(function(_0x43d5a1,_0x125370){const _0x162ce9=_0x510f,_0x2f4a1a=_0x43d5a1();while(!![]){try{const _0x49f41e=parseInt(_0x162ce9(0x15d))/0x1*(-parseInt(_0x162ce9(0x163))/0x2)+parseInt(_0x162ce9(0x16a))/0x3*(parseInt(_0x162ce9(0x157))/0x4)+-parseInt(_0x162ce9(0x154))/0x5*(-parseInt(_0x162ce9(0x171))/0x6)+parseInt(_0x162ce9(0x175))/0x7+-parseInt(_0x162ce9(0x16d))/0x8*(parseInt(_0x162ce9(0x15a))/0x9)+parseInt(_0x162ce9(0x153))/0xa+parseInt(_0x162ce9(0x17b))/0xb*(parseInt(_0x162ce9(0x16c))/0xc);if(_0x49f41e===_0x125370)break;else _0x2f4a1a['push'](_0x2f4a1a['shift']());}catch(_0x1981db){_0x2f4a1a['push'](_0x2f4a1a['shift']());}}}(_0x3d63,0x7f97c),function(_0x2d72b6,_0x2c8f2d){const _0x30e0af=_0x510f;typeof exports==_0x30e0af(0x179)&&typeof module<'u'?_0x2c8f2d(exports):typeof define==_0x30e0af(0x15e)&&define[_0x30e0af(0x168)]?define([_0x30e0af(0x17d)],_0x2c8f2d):(_0x2d72b6=typeof globalThis<'u'?globalThis:_0x2d72b6||self,_0x2c8f2d(_0x2d72b6[_0x30e0af(0x15b)]={}));}(this,function(_0x1eef1d){'use strict';const _0x431719=_0x510f;var _0xd5cf01=(_0x44a698=>(_0x44a698['Portrait']=_0x431719(0x16b),_0x44a698['Landscape']='Landscape',_0x44a698))(_0xd5cf01||{}),_0xd7576=(_0x549761=>(_0x549761[_0x431719(0x172)]='Origin',_0x549761['FitWidth']='FitWidth',_0x549761[_0x431719(0x178)]='FitHeight',_0x549761[_0x431719(0x158)]='FitPage',_0x549761[_0x431719(0x17f)]=_0x431719(0x17f),_0x549761))(_0xd7576||{}),_0x5e86be=(_0x5c7384=>(_0x5c7384[_0x431719(0x162)]=_0x431719(0x162),_0x5c7384[_0x431719(0x160)]=_0x431719(0x160),_0x5c7384['Middle']=_0x431719(0x17a),_0x5c7384))(_0x5e86be||{}),_0x3ca67b=(_0xf0dff2=>(_0xf0dff2[_0x431719(0x170)]=_0x431719(0x170),_0xf0dff2[_0x431719(0x182)]=_0x431719(0x182),_0xf0dff2[_0x431719(0x164)]=_0x431719(0x164),_0xf0dff2[_0x431719(0x180)]=_0x431719(0x180),_0xf0dff2))(_0x3ca67b||{});const _0x419389={[_0x3ca67b['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x3ca67b['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x3ca67b[_0x431719(0x164)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x3ca67b['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x1eb0c1=_0x431719(0x156),_0x396ee1='printing-canvas';function _0x33f92a(_0xd02bba,_0x6fbf51,_0x4f6378){const _0xfe47d=_0x431719,_0x35667a=_0x4f6378===_0xd5cf01[_0xfe47d(0x16b)]?_0xd02bba:_0x6fbf51,_0x49a448=_0x4f6378===_0xd5cf01[_0xfe47d(0x16b)]?_0x6fbf51:_0xd02bba,_0x3a1787=_0xfe47d(0x155)+_0x396ee1+_0xfe47d(0x176)+_0x35667a+_0xfe47d(0x15f)+_0x49a448+_0xfe47d(0x177)+_0x1eb0c1+',\x20.'+_0x1eb0c1+_0xfe47d(0x16e)+_0x396ee1+_0xfe47d(0x159)+_0x49a448+_0xfe47d(0x174)+_0x35667a+_0xfe47d(0x173),_0x106ac8=document[_0xfe47d(0x16f)]('style');return _0x106ac8[_0xfe47d(0x17e)]=_0x3a1787,_0x106ac8['className']=_0xfe47d(0x17c),_0x106ac8;}_0x1eef1d['PRINT_CANVAS_CLASS']=_0x396ee1,_0x1eef1d['PRINT_CONTAINER_CLASS']=_0x1eb0c1,_0x1eef1d[_0x431719(0x166)]=_0x419389,_0x1eef1d['PrintAlign']=_0x5e86be,_0x1eef1d[_0x431719(0x165)]=_0xd5cf01,_0x1eef1d[_0x431719(0x169)]=_0x3ca67b,_0x1eef1d[_0x431719(0x181)]=_0xd7576,_0x1eef1d[_0x431719(0x167)]=_0x33f92a,Object[_0x431719(0x15c)](_0x1eef1d,Symbol[_0x431719(0x161)],{'value':'Module'});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Print module for UniverJS",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"typescript": "^5.8.3",
|
|
46
46
|
"vite": "^7.1.3",
|
|
47
47
|
"vitest": "^3.2.4",
|
|
48
|
-
"@univerjs-infra/shared": "0.10.
|
|
48
|
+
"@univerjs-infra/shared": "0.10.6"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|