@univerjs-pro/print 0.10.3 → 0.10.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';
|
|
1
|
+
'use strict';function _0x2dd8(){const _0x12fe4d=['defineProperty','PrintPaperMargin','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.','FitPage','PrintAlign','printing-canvas-container','Normal','PrintScale','Origin','5139tHYvxK','PRINT_CONTAINER_CLASS','691220CtqdDO','FitWidth',',\x20.','createPrintStyle','Wide','Narrow','Start','Middle','createElement','px\x20','PaperMarginMap','Module','\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.','\x0a\x20\x20\x20\x20.','6915744pzgdwU','3924148RMUaMQ','toStringTag','None','printing-canvas','317112DbogCV','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','FitHeight','\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','914704LixqYE','5EZQBIo','className','\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','Custom','168sDTohG','27cAtSQD','1200229ePanKh','PrintDirection','Portrait'];_0x2dd8=function(){return _0x12fe4d;};return _0x2dd8();}const _0x37fc59=_0x562d;(function(_0x1251b4,_0x38dc24){const _0x28824a=_0x562d,_0x244fde=_0x1251b4();while(!![]){try{const _0x84ccb9=parseInt(_0x28824a(0x98))/0x1+parseInt(_0x28824a(0x96))/0x2*(-parseInt(_0x28824a(0x78))/0x3)+-parseInt(_0x28824a(0x89))/0x4*(-parseInt(_0x28824a(0x92))/0x5)+-parseInt(_0x28824a(0x88))/0x6+-parseInt(_0x28824a(0x91))/0x7+-parseInt(_0x28824a(0x8d))/0x8+-parseInt(_0x28824a(0x97))/0x9*(-parseInt(_0x28824a(0x7a))/0xa);if(_0x84ccb9===_0x38dc24)break;else _0x244fde['push'](_0x244fde['shift']());}catch(_0x580297){_0x244fde['push'](_0x244fde['shift']());}}}(_0x2dd8,0xe10cd));function _0x562d(_0x4dee5c,_0x39a879){const _0x2dd841=_0x2dd8();return _0x562d=function(_0x562de4,_0x12e431){_0x562de4=_0x562de4-0x75;let _0x228f46=_0x2dd841[_0x562de4];return _0x228f46;},_0x562d(_0x4dee5c,_0x39a879);}Object[_0x37fc59(0x9b)](exports,Symbol[_0x37fc59(0x8a)],{'value':_0x37fc59(0x85)});var e=(_0x3d4ade=>(_0x3d4ade[_0x37fc59(0x9a)]=_0x37fc59(0x9a),_0x3d4ade['Landscape']='Landscape',_0x3d4ade))(e||{}),l=(_0x1b7dcc=>(_0x1b7dcc[_0x37fc59(0x77)]=_0x37fc59(0x77),_0x1b7dcc['FitWidth']=_0x37fc59(0x7b),_0x1b7dcc[_0x37fc59(0x8f)]=_0x37fc59(0x8f),_0x1b7dcc['FitPage']=_0x37fc59(0x9e),_0x1b7dcc[_0x37fc59(0x95)]=_0x37fc59(0x95),_0x1b7dcc))(l||{}),c=(_0x139f9d=>(_0x139f9d[_0x37fc59(0x80)]=_0x37fc59(0x80),_0x139f9d['End']='End',_0x139f9d[_0x37fc59(0x81)]=_0x37fc59(0x81),_0x139f9d))(c||{}),i=(_0x3d029e=>(_0x3d029e[_0x37fc59(0x75)]=_0x37fc59(0x75),_0x3d029e['Narrow']=_0x37fc59(0x7f),_0x3d029e[_0x37fc59(0x7e)]='Wide',_0x3d029e[_0x37fc59(0x8b)]=_0x37fc59(0x8b),_0x3d029e))(i||{});const h={[i[_0x37fc59(0x75)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i[_0x37fc59(0x7f)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i[_0x37fc59(0x7e)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x37fc59(0xa0),n=_0x37fc59(0x8c);function m(_0x2c7726,_0x482e54,_0x3f487a){const _0x1c0273=_0x37fc59,_0x474e64=_0x3f487a===e[_0x1c0273(0x9a)]?_0x2c7726:_0x482e54,_0x2e03c7=_0x3f487a===e[_0x1c0273(0x9a)]?_0x482e54:_0x2c7726,_0x5c6392=_0x1c0273(0x87)+n+_0x1c0273(0x94)+_0x474e64+_0x1c0273(0x83)+_0x2e03c7+_0x1c0273(0x9d)+r+_0x1c0273(0x7c)+r+_0x1c0273(0x86)+n+_0x1c0273(0x90)+_0x2e03c7+_0x1c0273(0x8e)+_0x474e64+'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}',_0x4ec2f4=document[_0x1c0273(0x82)]('style');return _0x4ec2f4['innerHTML']=_0x5c6392,_0x4ec2f4[_0x1c0273(0x93)]='offline-printing-css',_0x4ec2f4;}exports['PRINT_CANVAS_CLASS']=n,exports[_0x37fc59(0x79)]=r,exports[_0x37fc59(0x84)]=h,exports[_0x37fc59(0x9f)]=c,exports[_0x37fc59(0x99)]=e,exports[_0x37fc59(0x9c)]=i,exports[_0x37fc59(0x76)]=l,exports[_0x37fc59(0x7d)]=m;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x434243=_0x3adc;(function(_0x4eb3fc,_0x6bffdc){const _0x264c6b=_0x3adc,_0x3b7a8d=_0x4eb3fc();while(!![]){try{const _0x3c7654=-parseInt(_0x264c6b(0x1ee))/0x1*(parseInt(_0x264c6b(0x201))/0x2)+parseInt(_0x264c6b(0x1e1))/0x3*(parseInt(_0x264c6b(0x1ea))/0x4)+-parseInt(_0x264c6b(0x1fd))/0x5*(-parseInt(_0x264c6b(0x1f5))/0x6)+parseInt(_0x264c6b(0x1ef))/0x7*(-parseInt(_0x264c6b(0x1e9))/0x8)+-parseInt(_0x264c6b(0x1f6))/0x9+parseInt(_0x264c6b(0x1ff))/0xa*(-parseInt(_0x264c6b(0x1f8))/0xb)+parseInt(_0x264c6b(0x1f4))/0xc*(parseInt(_0x264c6b(0x1df))/0xd);if(_0x3c7654===_0x6bffdc)break;else _0x3b7a8d['push'](_0x3b7a8d['shift']());}catch(_0x952d7d){_0x3b7a8d['push'](_0x3b7a8d['shift']());}}}(_0x2ee0,0xa07fb));var e=(_0x573b3f=>(_0x573b3f['Portrait']=_0x434243(0x203),_0x573b3f[_0x434243(0x1fc)]='Landscape',_0x573b3f))(e||{}),l=(_0xa3224=>(_0xa3224['Origin']=_0x434243(0x1f9),_0xa3224[_0x434243(0x1fa)]='FitWidth',_0xa3224['FitHeight']=_0x434243(0x1f1),_0xa3224[_0x434243(0x1e0)]=_0x434243(0x1e0),_0xa3224[_0x434243(0x1fe)]=_0x434243(0x1fe),_0xa3224))(l||{}),m=(_0x54f11c=>(_0x54f11c[_0x434243(0x200)]=_0x434243(0x200),_0x54f11c[_0x434243(0x1eb)]='End',_0x54f11c['Middle']='Middle',_0x54f11c))(m||{}),o=(_0x5b85d1=>(_0x5b85d1[_0x434243(0x1e5)]=_0x434243(0x1e5),_0x5b85d1[_0x434243(0x1e7)]='Narrow',_0x5b85d1['Wide']=_0x434243(0x1ed),_0x5b85d1['None']='None',_0x5b85d1))(o||{});function _0x3adc(_0x4b4349,_0x54cfbd){const _0x2ee09d=_0x2ee0();return _0x3adc=function(_0x3adccf,_0x4a6b0a){_0x3adccf=_0x3adccf-0x1de;let _0x293327=_0x2ee09d[_0x3adccf];return _0x293327;},_0x3adc(_0x4b4349,_0x54cfbd);}function _0x2ee0(){const _0xdab2d5=['Custom','550OBUCcs','Start','1687102KCxcxY','innerHTML','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.','5349981ieGLtI','FitPage','23451qacYRD','None','\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','className','Normal','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Narrow','\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','382336SZwYDS','164ZsZDgn','End','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}','Wide','1UdprXc','63FqTokI','offline-printing-css','FitHeight','\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.','printing-canvas','72YFtxYD','1560648aSNtAz','7027920DRXHJm','style','67573rCnvbN','Origin','FitWidth',',\x20.','Landscape','5XUqjuc'];_0x2ee0=function(){return _0xdab2d5;};return _0x2ee0();}const c={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x434243(0x1e7)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x434243(0x1ed)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x434243(0x1e2)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p='printing-canvas-container',d=_0x434243(0x1f3);function g(_0x15f294,_0x2f83c9,_0x267333){const _0x187891=_0x434243,_0x383590=_0x267333===e[_0x187891(0x203)]?_0x15f294:_0x2f83c9,_0x4d529d=_0x267333===e[_0x187891(0x203)]?_0x2f83c9:_0x15f294,_0x20e421='\x0a\x20\x20\x20\x20.'+d+_0x187891(0x1e3)+_0x383590+'px\x20'+_0x4d529d+_0x187891(0x1de)+p+_0x187891(0x1fb)+p+_0x187891(0x1f2)+d+_0x187891(0x1e8)+_0x4d529d+_0x187891(0x1e6)+_0x383590+_0x187891(0x1ec),_0x374726=document['createElement'](_0x187891(0x1f7));return _0x374726[_0x187891(0x202)]=_0x20e421,_0x374726[_0x187891(0x1e4)]=_0x187891(0x1f0),_0x374726;}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 _0x434243=_0x3adc;(function(_0x4eb3fc,_0x6bffdc){const _0x264c6b=_0x3adc,_0x3b7a8d=_0x4eb3fc();while(!![]){try{const _0x3c7654=-parseInt(_0x264c6b(0x1ee))/0x1*(parseInt(_0x264c6b(0x201))/0x2)+parseInt(_0x264c6b(0x1e1))/0x3*(parseInt(_0x264c6b(0x1ea))/0x4)+-parseInt(_0x264c6b(0x1fd))/0x5*(-parseInt(_0x264c6b(0x1f5))/0x6)+parseInt(_0x264c6b(0x1ef))/0x7*(-parseInt(_0x264c6b(0x1e9))/0x8)+-parseInt(_0x264c6b(0x1f6))/0x9+parseInt(_0x264c6b(0x1ff))/0xa*(-parseInt(_0x264c6b(0x1f8))/0xb)+parseInt(_0x264c6b(0x1f4))/0xc*(parseInt(_0x264c6b(0x1df))/0xd);if(_0x3c7654===_0x6bffdc)break;else _0x3b7a8d['push'](_0x3b7a8d['shift']());}catch(_0x952d7d){_0x3b7a8d['push'](_0x3b7a8d['shift']());}}}(_0x2ee0,0xa07fb));var e=(_0x573b3f=>(_0x573b3f['Portrait']=_0x434243(0x203),_0x573b3f[_0x434243(0x1fc)]='Landscape',_0x573b3f))(e||{}),l=(_0xa3224=>(_0xa3224['Origin']=_0x434243(0x1f9),_0xa3224[_0x434243(0x1fa)]='FitWidth',_0xa3224['FitHeight']=_0x434243(0x1f1),_0xa3224[_0x434243(0x1e0)]=_0x434243(0x1e0),_0xa3224[_0x434243(0x1fe)]=_0x434243(0x1fe),_0xa3224))(l||{}),m=(_0x54f11c=>(_0x54f11c[_0x434243(0x200)]=_0x434243(0x200),_0x54f11c[_0x434243(0x1eb)]='End',_0x54f11c['Middle']='Middle',_0x54f11c))(m||{}),o=(_0x5b85d1=>(_0x5b85d1[_0x434243(0x1e5)]=_0x434243(0x1e5),_0x5b85d1[_0x434243(0x1e7)]='Narrow',_0x5b85d1['Wide']=_0x434243(0x1ed),_0x5b85d1['None']='None',_0x5b85d1))(o||{});function _0x3adc(_0x4b4349,_0x54cfbd){const _0x2ee09d=_0x2ee0();return _0x3adc=function(_0x3adccf,_0x4a6b0a){_0x3adccf=_0x3adccf-0x1de;let _0x293327=_0x2ee09d[_0x3adccf];return _0x293327;},_0x3adc(_0x4b4349,_0x54cfbd);}function _0x2ee0(){const _0xdab2d5=['Custom','550OBUCcs','Start','1687102KCxcxY','innerHTML','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.','5349981ieGLtI','FitPage','23451qacYRD','None','\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','className','Normal','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Narrow','\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','382336SZwYDS','164ZsZDgn','End','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}','Wide','1UdprXc','63FqTokI','offline-printing-css','FitHeight','\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.','printing-canvas','72YFtxYD','1560648aSNtAz','7027920DRXHJm','style','67573rCnvbN','Origin','FitWidth',',\x20.','Landscape','5XUqjuc'];_0x2ee0=function(){return _0xdab2d5;};return _0x2ee0();}const c={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x434243(0x1e7)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x434243(0x1ed)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x434243(0x1e2)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p='printing-canvas-container',d=_0x434243(0x1f3);function g(_0x15f294,_0x2f83c9,_0x267333){const _0x187891=_0x434243,_0x383590=_0x267333===e[_0x187891(0x203)]?_0x15f294:_0x2f83c9,_0x4d529d=_0x267333===e[_0x187891(0x203)]?_0x2f83c9:_0x15f294,_0x20e421='\x0a\x20\x20\x20\x20.'+d+_0x187891(0x1e3)+_0x383590+'px\x20'+_0x4d529d+_0x187891(0x1de)+p+_0x187891(0x1fb)+p+_0x187891(0x1f2)+d+_0x187891(0x1e8)+_0x4d529d+_0x187891(0x1e6)+_0x383590+_0x187891(0x1ec),_0x374726=document['createElement'](_0x187891(0x1f7));return _0x374726[_0x187891(0x202)]=_0x20e421,_0x374726[_0x187891(0x1e4)]=_0x187891(0x1f0),_0x374726;}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
|
-
|
|
1
|
+
function _0x11a3(_0x50454f,_0x1b46a8){const _0x1ab8b6=_0x1ab8();return _0x11a3=function(_0x11a316,_0x34c228){_0x11a316=_0x11a316-0x113;let _0x4a1e13=_0x1ab8b6[_0x11a316];return _0x4a1e13;},_0x11a3(_0x50454f,_0x1b46a8);}function _0x1ab8(){const _0x49abf9=['PrintDirection','amd','\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','offline-printing-css','None','1RciMbu','className','7olPIiw','UniverProPrint','Normal','innerHTML','2669220pRWQyW','PrintPaperMargin','FitHeight','986856ZNHyGV','printing-canvas','PaperMarginMap','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.','Origin','Landscape',',\x20.','exports','object','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}','style','FitPage','defineProperty','createPrintStyle','Start','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','402198MBvhFH','toStringTag','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','1095LZlpTh','px\x20','PRINT_CONTAINER_CLASS','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.','1550153irNnwJ','2431656Enxpkw','Middle','Module','\x0a\x20\x20\x20\x20.','function','Wide','Portrait','59476IZYchX','2956uwNFim','10PSbJvl','End'];_0x1ab8=function(){return _0x49abf9;};return _0x1ab8();}(function(_0x151703,_0x55dc38){const _0x348ed1=_0x11a3,_0x46d5ab=_0x151703();while(!![]){try{const _0x290a99=-parseInt(_0x348ed1(0x141))/0x1*(-parseInt(_0x348ed1(0x138))/0x2)+parseInt(_0x348ed1(0x12b))/0x3*(parseInt(_0x348ed1(0x139))/0x4)+-parseInt(_0x348ed1(0x13a))/0x5*(-parseInt(_0x348ed1(0x128))/0x6)+parseInt(_0x348ed1(0x143))/0x7*(parseInt(_0x348ed1(0x117))/0x8)+-parseInt(_0x348ed1(0x131))/0x9+-parseInt(_0x348ed1(0x114))/0xa+parseInt(_0x348ed1(0x130))/0xb;if(_0x290a99===_0x55dc38)break;else _0x46d5ab['push'](_0x46d5ab['shift']());}catch(_0x2bd06f){_0x46d5ab['push'](_0x46d5ab['shift']());}}}(_0x1ab8,0x273c9),function(_0x3caca7,_0x1b33a2){const _0x1a7855=_0x11a3;typeof exports==_0x1a7855(0x11f)&&typeof module<'u'?_0x1b33a2(exports):typeof define==_0x1a7855(0x135)&&define[_0x1a7855(0x13d)]?define([_0x1a7855(0x11e)],_0x1b33a2):(_0x3caca7=typeof globalThis<'u'?globalThis:_0x3caca7||self,_0x1b33a2(_0x3caca7[_0x1a7855(0x144)]={}));}(this,function(_0x558ea8){'use strict';const _0x18c3e1=_0x11a3;var _0x1f6c7e=(_0x15010d=>(_0x15010d[_0x18c3e1(0x137)]=_0x18c3e1(0x137),_0x15010d[_0x18c3e1(0x11c)]='Landscape',_0x15010d))(_0x1f6c7e||{}),_0x8796eb=(_0x5330ce=>(_0x5330ce['Origin']=_0x18c3e1(0x11b),_0x5330ce['FitWidth']=_0x18c3e1(0x126),_0x5330ce['FitHeight']=_0x18c3e1(0x116),_0x5330ce[_0x18c3e1(0x122)]='FitPage',_0x5330ce[_0x18c3e1(0x12e)]=_0x18c3e1(0x12e),_0x5330ce))(_0x8796eb||{}),_0x31d395=(_0x48f23c=>(_0x48f23c[_0x18c3e1(0x125)]=_0x18c3e1(0x125),_0x48f23c[_0x18c3e1(0x13b)]=_0x18c3e1(0x13b),_0x48f23c[_0x18c3e1(0x132)]=_0x18c3e1(0x132),_0x48f23c))(_0x31d395||{}),_0x477d8c=(_0x3d7253=>(_0x3d7253[_0x18c3e1(0x145)]=_0x18c3e1(0x145),_0x3d7253['Narrow']='Narrow',_0x3d7253[_0x18c3e1(0x136)]='Wide',_0x3d7253['None']='None',_0x3d7253))(_0x477d8c||{});const _0x1aa70c={[_0x477d8c[_0x18c3e1(0x145)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x477d8c['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x477d8c[_0x18c3e1(0x136)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x477d8c[_0x18c3e1(0x140)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x43671b='printing-canvas-container',_0x45fdc4=_0x18c3e1(0x118);function _0x1d5d22(_0x13fd65,_0x219e41,_0x569f01){const _0x2455da=_0x18c3e1,_0x1a4f5c=_0x569f01===_0x1f6c7e[_0x2455da(0x137)]?_0x13fd65:_0x219e41,_0x5e84a2=_0x569f01===_0x1f6c7e['Portrait']?_0x219e41:_0x13fd65,_0x4391d4=_0x2455da(0x134)+_0x45fdc4+_0x2455da(0x127)+_0x1a4f5c+_0x2455da(0x12c)+_0x5e84a2+_0x2455da(0x11a)+_0x43671b+_0x2455da(0x11d)+_0x43671b+_0x2455da(0x12f)+_0x45fdc4+_0x2455da(0x13e)+_0x5e84a2+_0x2455da(0x12a)+_0x1a4f5c+_0x2455da(0x120),_0x2060da=document['createElement'](_0x2455da(0x121));return _0x2060da[_0x2455da(0x113)]=_0x4391d4,_0x2060da[_0x2455da(0x142)]=_0x2455da(0x13f),_0x2060da;}_0x558ea8['PRINT_CANVAS_CLASS']=_0x45fdc4,_0x558ea8[_0x18c3e1(0x12d)]=_0x43671b,_0x558ea8[_0x18c3e1(0x119)]=_0x1aa70c,_0x558ea8['PrintAlign']=_0x31d395,_0x558ea8[_0x18c3e1(0x13c)]=_0x1f6c7e,_0x558ea8[_0x18c3e1(0x115)]=_0x477d8c,_0x558ea8['PrintScale']=_0x8796eb,_0x558ea8[_0x18c3e1(0x124)]=_0x1d5d22,Object[_0x18c3e1(0x123)](_0x558ea8,Symbol[_0x18c3e1(0x129)],{'value':_0x18c3e1(0x133)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.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.6",
|
|
47
47
|
"vitest": "^3.2.4",
|
|
48
|
-
"@univerjs-infra/shared": "0.10.
|
|
48
|
+
"@univerjs-infra/shared": "0.10.4"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|