@univerjs-pro/print 0.9.3 → 0.9.4
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 _0x1c7ef4=_0x1769;(function(_0x38ecab,_0x273c9e){const _0x2a027e=_0x1769,_0x497ba1=_0x38ecab();while(!![]){try{const _0x358e38=-parseInt(_0x2a027e(0x121))/0x1+-parseInt(_0x2a027e(0x127))/0x2+parseInt(_0x2a027e(0x132))/0x3*(-parseInt(_0x2a027e(0x128))/0x4)+-parseInt(_0x2a027e(0x11f))/0x5+parseInt(_0x2a027e(0x13d))/0x6+-parseInt(_0x2a027e(0x140))/0x7+parseInt(_0x2a027e(0x13c))/0x8;if(_0x358e38===_0x273c9e)break;else _0x497ba1['push'](_0x497ba1['shift']());}catch(_0xdabc4c){_0x497ba1['push'](_0x497ba1['shift']());}}}(_0x1a27,0xdc8e6));function _0x1769(_0x2157e7,_0x397ce8){const _0x1a27ee=_0x1a27();return _0x1769=function(_0x17691f,_0x2d968c){_0x17691f=_0x17691f-0x11d;let _0x1b3b87=_0x1a27ee[_0x17691f];return _0x1b3b87;},_0x1769(_0x2157e7,_0x397ce8);}Object[_0x1c7ef4(0x13e)](exports,Symbol[_0x1c7ef4(0x129)],{'value':_0x1c7ef4(0x138)});var e=(_0x274f53=>(_0x274f53[_0x1c7ef4(0x13f)]=_0x1c7ef4(0x13f),_0x274f53[_0x1c7ef4(0x120)]=_0x1c7ef4(0x120),_0x274f53))(e||{}),l=(_0x30a2ba=>(_0x30a2ba[_0x1c7ef4(0x12b)]=_0x1c7ef4(0x12b),_0x30a2ba[_0x1c7ef4(0x12f)]='FitWidth',_0x30a2ba[_0x1c7ef4(0x123)]='FitHeight',_0x30a2ba[_0x1c7ef4(0x124)]=_0x1c7ef4(0x124),_0x30a2ba[_0x1c7ef4(0x13b)]='Custom',_0x30a2ba))(l||{}),c=(_0x4aca3f=>(_0x4aca3f[_0x1c7ef4(0x12e)]='Start',_0x4aca3f[_0x1c7ef4(0x136)]=_0x1c7ef4(0x136),_0x4aca3f[_0x1c7ef4(0x13a)]=_0x1c7ef4(0x13a),_0x4aca3f))(c||{}),i=(_0x13d417=>(_0x13d417[_0x1c7ef4(0x122)]=_0x1c7ef4(0x122),_0x13d417[_0x1c7ef4(0x131)]='Narrow',_0x13d417[_0x1c7ef4(0x126)]=_0x1c7ef4(0x126),_0x13d417[_0x1c7ef4(0x125)]=_0x1c7ef4(0x125),_0x13d417))(i||{});const h={[i[_0x1c7ef4(0x122)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i[_0x1c7ef4(0x131)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i[_0x1c7ef4(0x126)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i[_0x1c7ef4(0x125)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x1c7ef4(0x133),n=_0x1c7ef4(0x134);function m(_0x43539d,_0x1ad16b,_0x565d14){const _0x2d1353=_0x1c7ef4,_0x56c1ed=_0x565d14===e[_0x2d1353(0x13f)]?_0x43539d:_0x1ad16b,_0x461336=_0x565d14===e['Portrait']?_0x1ad16b:_0x43539d,_0x34852c='\x0a\x20\x20\x20\x20.'+n+_0x2d1353(0x141)+_0x56c1ed+'px\x20'+_0x461336+_0x2d1353(0x11e)+r+_0x2d1353(0x12a)+r+_0x2d1353(0x130)+n+_0x2d1353(0x139)+_0x461336+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x56c1ed+_0x2d1353(0x12d),_0x4602d2=document[_0x2d1353(0x12c)]('style');return _0x4602d2['innerHTML']=_0x34852c,_0x4602d2['className']=_0x2d1353(0x11d),_0x4602d2;}function _0x1a27(){const _0x264985=['Portrait','11384499hkbzyX','\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','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.','1346500dDwyvc','Landscape','973919nkxghA','Normal','FitHeight','FitPage','None','Wide','3419158MMlKQD','1301332IoDpEY','toStringTag',',\x20.','Origin','createElement','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}','Start','FitWidth','\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.','Narrow','6gcKacG','printing-canvas-container','printing-canvas','PRINT_CONTAINER_CLASS','End','createPrintStyle','Module','\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','Custom','42266568fADJUa','5099388apklal','defineProperty'];_0x1a27=function(){return _0x264985;};return _0x1a27();}exports['PRINT_CANVAS_CLASS']=n,exports[_0x1c7ef4(0x135)]=r,exports['PaperMarginMap']=h,exports['PrintAlign']=c,exports['PrintDirection']=e,exports['PrintPaperMargin']=i,exports['PrintScale']=l,exports[_0x1c7ef4(0x137)]=m;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3365e5=_0xaf1e;function _0xaf1e(_0x284f93,_0x37b4dd){const _0x2d682a=_0x2d68();return _0xaf1e=function(_0xaf1e91,_0x37c6d0){_0xaf1e91=_0xaf1e91-0xe3;let _0x4e8863=_0x2d682a[_0xaf1e91];return _0x4e8863;},_0xaf1e(_0x284f93,_0x37b4dd);}(function(_0x442319,_0x30130c){const _0x4b0f9a=_0xaf1e,_0x1ce0f8=_0x442319();while(!![]){try{const _0x16036a=-parseInt(_0x4b0f9a(0xfd))/0x1+parseInt(_0x4b0f9a(0xf5))/0x2+-parseInt(_0x4b0f9a(0xfa))/0x3+-parseInt(_0x4b0f9a(0xeb))/0x4+parseInt(_0x4b0f9a(0xf8))/0x5*(-parseInt(_0x4b0f9a(0x101))/0x6)+-parseInt(_0x4b0f9a(0xea))/0x7*(parseInt(_0x4b0f9a(0xf0))/0x8)+-parseInt(_0x4b0f9a(0xf1))/0x9*(-parseInt(_0x4b0f9a(0x103))/0xa);if(_0x16036a===_0x30130c)break;else _0x1ce0f8['push'](_0x1ce0f8['shift']());}catch(_0xda9802){_0x1ce0f8['push'](_0x1ce0f8['shift']());}}}(_0x2d68,0x9335e));var e=(_0x39166e=>(_0x39166e['Portrait']='Portrait',_0x39166e[_0x3365e5(0x106)]=_0x3365e5(0x106),_0x39166e))(e||{}),l=(_0x328fa2=>(_0x328fa2[_0x3365e5(0xe6)]=_0x3365e5(0xe6),_0x328fa2[_0x3365e5(0xed)]=_0x3365e5(0xed),_0x328fa2[_0x3365e5(0xe9)]='FitHeight',_0x328fa2[_0x3365e5(0xee)]='FitPage',_0x328fa2['Custom']=_0x3365e5(0xf6),_0x328fa2))(l||{}),m=(_0x5e360a=>(_0x5e360a['Start']=_0x3365e5(0x105),_0x5e360a[_0x3365e5(0xef)]='End',_0x5e360a[_0x3365e5(0xfc)]='Middle',_0x5e360a))(m||{}),o=(_0x3e53d0=>(_0x3e53d0[_0x3365e5(0xe4)]=_0x3365e5(0xe4),_0x3e53d0[_0x3365e5(0xe7)]=_0x3365e5(0xe7),_0x3e53d0['Wide']=_0x3365e5(0xfe),_0x3e53d0[_0x3365e5(0xec)]='None',_0x3e53d0))(o||{});const c={[o[_0x3365e5(0xe4)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x3365e5(0xfe)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x3365e5(0xec)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p='printing-canvas-container',d=_0x3365e5(0xf4);function g(_0x48135a,_0x40770d,_0x5ea8a1){const _0x49bf60=_0x3365e5,_0x21811f=_0x5ea8a1===e[_0x49bf60(0xf7)]?_0x48135a:_0x40770d,_0x204c41=_0x5ea8a1===e[_0x49bf60(0xf7)]?_0x40770d:_0x48135a,_0x377395=_0x49bf60(0xe3)+d+_0x49bf60(0xf3)+_0x21811f+_0x49bf60(0xfb)+_0x204c41+_0x49bf60(0xf2)+p+_0x49bf60(0xf9)+p+_0x49bf60(0xe8)+d+_0x49bf60(0x102)+_0x204c41+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x21811f+_0x49bf60(0xe5),_0x5157f3=document[_0x49bf60(0x104)]('style');return _0x5157f3['innerHTML']=_0x377395,_0x5157f3[_0x49bf60(0xff)]=_0x49bf60(0x100),_0x5157f3;}function _0x2d68(){const _0x3916ea=['957920aKDAnD','None','FitWidth','FitPage','End','15688APpFxI','119574eslVSe','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.','\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','2361934BqsXmG','Custom','Portrait','411155pDZbxm',',\x20.','1869645RwWXYm','px\x20','Middle','773143zpySEg','Wide','className','offline-printing-css','78BdRFAT','\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','2020vbhJut','createElement','Start','Landscape','\x0a\x20\x20\x20\x20.','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}','Origin','Narrow','\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.','FitHeight','1988miaQnA'];_0x2d68=function(){return _0x3916ea;};return _0x2d68();}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 _0x3365e5=_0xaf1e;function _0xaf1e(_0x284f93,_0x37b4dd){const _0x2d682a=_0x2d68();return _0xaf1e=function(_0xaf1e91,_0x37c6d0){_0xaf1e91=_0xaf1e91-0xe3;let _0x4e8863=_0x2d682a[_0xaf1e91];return _0x4e8863;},_0xaf1e(_0x284f93,_0x37b4dd);}(function(_0x442319,_0x30130c){const _0x4b0f9a=_0xaf1e,_0x1ce0f8=_0x442319();while(!![]){try{const _0x16036a=-parseInt(_0x4b0f9a(0xfd))/0x1+parseInt(_0x4b0f9a(0xf5))/0x2+-parseInt(_0x4b0f9a(0xfa))/0x3+-parseInt(_0x4b0f9a(0xeb))/0x4+parseInt(_0x4b0f9a(0xf8))/0x5*(-parseInt(_0x4b0f9a(0x101))/0x6)+-parseInt(_0x4b0f9a(0xea))/0x7*(parseInt(_0x4b0f9a(0xf0))/0x8)+-parseInt(_0x4b0f9a(0xf1))/0x9*(-parseInt(_0x4b0f9a(0x103))/0xa);if(_0x16036a===_0x30130c)break;else _0x1ce0f8['push'](_0x1ce0f8['shift']());}catch(_0xda9802){_0x1ce0f8['push'](_0x1ce0f8['shift']());}}}(_0x2d68,0x9335e));var e=(_0x39166e=>(_0x39166e['Portrait']='Portrait',_0x39166e[_0x3365e5(0x106)]=_0x3365e5(0x106),_0x39166e))(e||{}),l=(_0x328fa2=>(_0x328fa2[_0x3365e5(0xe6)]=_0x3365e5(0xe6),_0x328fa2[_0x3365e5(0xed)]=_0x3365e5(0xed),_0x328fa2[_0x3365e5(0xe9)]='FitHeight',_0x328fa2[_0x3365e5(0xee)]='FitPage',_0x328fa2['Custom']=_0x3365e5(0xf6),_0x328fa2))(l||{}),m=(_0x5e360a=>(_0x5e360a['Start']=_0x3365e5(0x105),_0x5e360a[_0x3365e5(0xef)]='End',_0x5e360a[_0x3365e5(0xfc)]='Middle',_0x5e360a))(m||{}),o=(_0x3e53d0=>(_0x3e53d0[_0x3365e5(0xe4)]=_0x3365e5(0xe4),_0x3e53d0[_0x3365e5(0xe7)]=_0x3365e5(0xe7),_0x3e53d0['Wide']=_0x3365e5(0xfe),_0x3e53d0[_0x3365e5(0xec)]='None',_0x3e53d0))(o||{});const c={[o[_0x3365e5(0xe4)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x3365e5(0xfe)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x3365e5(0xec)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p='printing-canvas-container',d=_0x3365e5(0xf4);function g(_0x48135a,_0x40770d,_0x5ea8a1){const _0x49bf60=_0x3365e5,_0x21811f=_0x5ea8a1===e[_0x49bf60(0xf7)]?_0x48135a:_0x40770d,_0x204c41=_0x5ea8a1===e[_0x49bf60(0xf7)]?_0x40770d:_0x48135a,_0x377395=_0x49bf60(0xe3)+d+_0x49bf60(0xf3)+_0x21811f+_0x49bf60(0xfb)+_0x204c41+_0x49bf60(0xf2)+p+_0x49bf60(0xf9)+p+_0x49bf60(0xe8)+d+_0x49bf60(0x102)+_0x204c41+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x21811f+_0x49bf60(0xe5),_0x5157f3=document[_0x49bf60(0x104)]('style');return _0x5157f3['innerHTML']=_0x377395,_0x5157f3[_0x49bf60(0xff)]=_0x49bf60(0x100),_0x5157f3;}function _0x2d68(){const _0x3916ea=['957920aKDAnD','None','FitWidth','FitPage','End','15688APpFxI','119574eslVSe','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.','\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','2361934BqsXmG','Custom','Portrait','411155pDZbxm',',\x20.','1869645RwWXYm','px\x20','Middle','773143zpySEg','Wide','className','offline-printing-css','78BdRFAT','\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','2020vbhJut','createElement','Start','Landscape','\x0a\x20\x20\x20\x20.','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}','Origin','Narrow','\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.','FitHeight','1988miaQnA'];_0x2d68=function(){return _0x3916ea;};return _0x2d68();}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(_0x11c7a3,_0x57849c){const _0x387ac7=_0x16ba,_0x5cbe65=_0x11c7a3();while(!![]){try{const _0x296add=parseInt(_0x387ac7(0x1b0))/0x1+-parseInt(_0x387ac7(0x1a1))/0x2*(-parseInt(_0x387ac7(0x1b1))/0x3)+-parseInt(_0x387ac7(0x1be))/0x4+parseInt(_0x387ac7(0x1c0))/0x5*(parseInt(_0x387ac7(0x1b8))/0x6)+-parseInt(_0x387ac7(0x1ba))/0x7+-parseInt(_0x387ac7(0x1ae))/0x8+parseInt(_0x387ac7(0x1c6))/0x9;if(_0x296add===_0x57849c)break;else _0x5cbe65['push'](_0x5cbe65['shift']());}catch(_0x1ae792){_0x5cbe65['push'](_0x5cbe65['shift']());}}}(_0x3952,0xf297f),function(_0x2622ff,_0x19f1f4){const _0x4b450d=_0x16ba;typeof exports=='object'&&typeof module<'u'?_0x19f1f4(exports):typeof define==_0x4b450d(0x19f)&&define['amd']?define(['exports'],_0x19f1f4):(_0x2622ff=typeof globalThis<'u'?globalThis:_0x2622ff||self,_0x19f1f4(_0x2622ff[_0x4b450d(0x1c1)]={}));}(this,function(_0x1f5d74){'use strict';const _0x41c4e3=_0x16ba;var _0x19abd6=(_0x1649a7=>(_0x1649a7['Portrait']=_0x41c4e3(0x1a3),_0x1649a7[_0x41c4e3(0x1c3)]=_0x41c4e3(0x1c3),_0x1649a7))(_0x19abd6||{}),_0x4f3352=(_0xe7a475=>(_0xe7a475['Origin']=_0x41c4e3(0x1bf),_0xe7a475['FitWidth']='FitWidth',_0xe7a475[_0x41c4e3(0x1c7)]=_0x41c4e3(0x1c7),_0xe7a475[_0x41c4e3(0x1a2)]='FitPage',_0xe7a475[_0x41c4e3(0x1a9)]=_0x41c4e3(0x1a9),_0xe7a475))(_0x4f3352||{}),_0x496f89=(_0xccca8a=>(_0xccca8a['Start']='Start',_0xccca8a[_0x41c4e3(0x1af)]=_0x41c4e3(0x1af),_0xccca8a[_0x41c4e3(0x1ac)]='Middle',_0xccca8a))(_0x496f89||{}),_0x4d41cd=(_0x3dde9f=>(_0x3dde9f[_0x41c4e3(0x1aa)]=_0x41c4e3(0x1aa),_0x3dde9f[_0x41c4e3(0x1a5)]=_0x41c4e3(0x1a5),_0x3dde9f[_0x41c4e3(0x1cb)]='Wide',_0x3dde9f[_0x41c4e3(0x1a7)]=_0x41c4e3(0x1a7),_0x3dde9f))(_0x4d41cd||{});const _0x2fafd2={[_0x4d41cd[_0x41c4e3(0x1aa)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x4d41cd[_0x41c4e3(0x1a5)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x4d41cd['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x4d41cd[_0x41c4e3(0x1a7)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x401874=_0x41c4e3(0x1b7),_0x2d86a5=_0x41c4e3(0x1c9);function _0x31a05b(_0xc200fb,_0x52ab0a,_0x5a7521){const _0x70ecb2=_0x41c4e3,_0x454ff9=_0x5a7521===_0x19abd6['Portrait']?_0xc200fb:_0x52ab0a,_0x331561=_0x5a7521===_0x19abd6[_0x70ecb2(0x1a3)]?_0x52ab0a:_0xc200fb,_0x14e0a1=_0x70ecb2(0x1c8)+_0x2d86a5+_0x70ecb2(0x1a0)+_0x454ff9+_0x70ecb2(0x1b9)+_0x331561+_0x70ecb2(0x1a4)+_0x401874+_0x70ecb2(0x1cc)+_0x401874+'\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.'+_0x2d86a5+_0x70ecb2(0x1ab)+_0x331561+_0x70ecb2(0x1bb)+_0x454ff9+_0x70ecb2(0x1c4),_0x19b1d4=document[_0x70ecb2(0x1ca)](_0x70ecb2(0x1a6));return _0x19b1d4['innerHTML']=_0x14e0a1,_0x19b1d4[_0x70ecb2(0x1bd)]=_0x70ecb2(0x1bc),_0x19b1d4;}_0x1f5d74[_0x41c4e3(0x1b4)]=_0x2d86a5,_0x1f5d74[_0x41c4e3(0x1b2)]=_0x401874,_0x1f5d74[_0x41c4e3(0x1b6)]=_0x2fafd2,_0x1f5d74[_0x41c4e3(0x1a8)]=_0x496f89,_0x1f5d74['PrintDirection']=_0x19abd6,_0x1f5d74[_0x41c4e3(0x1b3)]=_0x4d41cd,_0x1f5d74[_0x41c4e3(0x1c5)]=_0x4f3352,_0x1f5d74[_0x41c4e3(0x1c2)]=_0x31a05b,Object[_0x41c4e3(0x1b5)](_0x1f5d74,Symbol[_0x41c4e3(0x1ad)],{'value':'Module'});}));function _0x16ba(_0x4ca1c4,_0x24dbdf){const _0x39526b=_0x3952();return _0x16ba=function(_0x16ba97,_0x4b1171){_0x16ba97=_0x16ba97-0x19f;let _0x5c50fc=_0x39526b[_0x16ba97];return _0x5c50fc;},_0x16ba(_0x4ca1c4,_0x24dbdf);}function _0x3952(){const _0x4c7192=['1149317EcZAol','2696493ocmusS','PRINT_CONTAINER_CLASS','PrintPaperMargin','PRINT_CANVAS_CLASS','defineProperty','PaperMarginMap','printing-canvas-container','84kEtbhb','px\x20','6209476vwzvor','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','offline-printing-css','className','6443724PhNZYJ','Origin','233455iZlpUZ','UniverProPrint','createPrintStyle','Landscape','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}','PrintScale','5509593xMBfAM','FitHeight','\x0a\x20\x20\x20\x20.','printing-canvas','createElement','Wide',',\x20.','function','\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','4yrhbqn','FitPage','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.','Narrow','style','None','PrintAlign','Custom','Normal','\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','toStringTag','5769344gfcuOm','End'];_0x3952=function(){return _0x4c7192;};return _0x3952();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.4",
|
|
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.0.5",
|
|
47
47
|
"vitest": "^3.2.4",
|
|
48
|
-
"@univerjs-infra/shared": "0.9.
|
|
48
|
+
"@univerjs-infra/shared": "0.9.4"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|