@univerjs-pro/print 1.0.0-alpha.5 → 1.0.0-alpha.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
|
-
const
|
|
1
|
+
const _0x5b4dc1=_0x4735;(function(_0x45e733,_0x5494aa){const _0x4c1519=_0x4735,_0x23a8fb=_0x45e733();while(!![]){try{const _0x32e1a0=-parseInt(_0x4c1519(0x1c0))/0x1*(parseInt(_0x4c1519(0x1d3))/0x2)+-parseInt(_0x4c1519(0x1ba))/0x3+-parseInt(_0x4c1519(0x1b9))/0x4+parseInt(_0x4c1519(0x1d1))/0x5+parseInt(_0x4c1519(0x1cb))/0x6+parseInt(_0x4c1519(0x1d5))/0x7*(parseInt(_0x4c1519(0x1d7))/0x8)+parseInt(_0x4c1519(0x1ca))/0x9;if(_0x32e1a0===_0x5494aa)break;else _0x23a8fb['push'](_0x23a8fb['shift']());}catch(_0x2137d3){_0x23a8fb['push'](_0x23a8fb['shift']());}}}(_0xcbc9,0x40aa0),Object[_0x5b4dc1(0x1de)](exports,Symbol['toStringTag'],{'value':_0x5b4dc1(0x1b7)}));let e=function(_0x5531f3){const _0x4f14cb=_0x5b4dc1;return _0x5531f3[_0x4f14cb(0x1d4)]='Portrait',_0x5531f3[_0x4f14cb(0x1c8)]=_0x4f14cb(0x1c8),_0x5531f3;}({}),t=function(_0x35f0cf){const _0x34c0e9=_0x5b4dc1;return _0x35f0cf['Origin']=_0x34c0e9(0x1d0),_0x35f0cf[_0x34c0e9(0x1cf)]=_0x34c0e9(0x1cf),_0x35f0cf['FitHeight']='FitHeight',_0x35f0cf[_0x34c0e9(0x1d2)]=_0x34c0e9(0x1d2),_0x35f0cf['Custom']=_0x34c0e9(0x1cc),_0x35f0cf;}({}),n=function(_0x1bf6f4){const _0x132740=_0x5b4dc1;return _0x1bf6f4[_0x132740(0x1b6)]=_0x132740(0x1b6),_0x1bf6f4[_0x132740(0x1bf)]=_0x132740(0x1bf),_0x1bf6f4[_0x132740(0x1db)]='Middle',_0x1bf6f4;}({}),r=function(_0xdaf90a){const _0x354eb2=_0x5b4dc1;return _0xdaf90a[_0x354eb2(0x1d9)]='Normal',_0xdaf90a[_0x354eb2(0x1bd)]=_0x354eb2(0x1bd),_0xdaf90a[_0x354eb2(0x1c9)]='Wide',_0xdaf90a['None']=_0x354eb2(0x1c4),_0xdaf90a[_0x354eb2(0x1cc)]=_0x354eb2(0x1cc),_0xdaf90a;}({});function _0x4735(_0x420415,_0x4dbd84){_0x420415=_0x420415-0x1b6;const _0xcbc90c=_0xcbc9();let _0x473521=_0xcbc90c[_0x420415];return _0x473521;}const i={'Normal':{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},'Narrow':{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},'Wide':{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},'None':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},'Custom':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},a=_0x5b4dc1(0x1be),o='printing-canvas';function _0xcbc9(){const _0x405e46=['printing-canvas-container','End','362707TuxNyB','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','PrintPaperMargin','style','None','createElement','className','PRINT_CONTAINER_CLASS','Landscape','Wide','5194863jdWOtf','1618626WrbQti','Custom','\x0a\x20\x20\x20\x20.','PrintScale','FitWidth','Origin','1383390CGKMoi','FitPage','2vDPygA','Portrait','742jqCCVx','PRINT_CANVAS_CLASS','14408QoWWRS',',\x20.','Normal','\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','Middle','\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','defineProperty','Start','Module','offline-printing-css','1093832IrapzC','1240599dkAqRs','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','Narrow'];_0xcbc9=function(){return _0x405e46;};return _0xcbc9();}function s(_0x24d385,_0x7466cd,_0x360beb){const _0x5b92b5=_0x5b4dc1;let _0xcd1390=_0x360beb===_0x5b92b5(0x1d4)?_0x24d385:_0x7466cd,_0x11ee60=_0x360beb===_0x5b92b5(0x1d4)?_0x7466cd:_0x24d385,_0x55c628=_0x5b92b5(0x1cd)+o+_0x5b92b5(0x1da)+_0xcd1390+_0x5b92b5(0x1dd)+_0x11ee60+'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.'+a+_0x5b92b5(0x1d8)+a+_0x5b92b5(0x1dc)+o+_0x5b92b5(0x1bc)+_0x11ee60+_0x5b92b5(0x1c1)+_0xcd1390+'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}',_0x16b0ad=document[_0x5b92b5(0x1c5)](_0x5b92b5(0x1c3));return _0x16b0ad['innerHTML']=_0x55c628,_0x16b0ad[_0x5b92b5(0x1c6)]=_0x5b92b5(0x1b8),_0x16b0ad;}exports[_0x5b4dc1(0x1d6)]=o,exports[_0x5b4dc1(0x1c7)]=a,exports['PaperMarginMap']=i,exports['PrintAlign']=n,exports[_0x5b4dc1(0x1bb)]=e,exports[_0x5b4dc1(0x1c2)]=r,exports[_0x5b4dc1(0x1ce)]=t,exports['createPrintStyle']=s;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x355f41=_0x210d;(function(_0x11d31e,_0x4ed7d0){const _0x50a588=_0x210d,_0x353161=_0x11d31e();while(!![]){try{const _0x529bed=parseInt(_0x50a588(0x103))/0x1*(-parseInt(_0x50a588(0xfa))/0x2)+-parseInt(_0x50a588(0x10e))/0x3*(-parseInt(_0x50a588(0x11d))/0x4)+-parseInt(_0x50a588(0x11b))/0x5*(-parseInt(_0x50a588(0x113))/0x6)+parseInt(_0x50a588(0x11c))/0x7*(parseInt(_0x50a588(0xf9))/0x8)+-parseInt(_0x50a588(0x10f))/0x9*(-parseInt(_0x50a588(0x115))/0xa)+-parseInt(_0x50a588(0x100))/0xb*(parseInt(_0x50a588(0x10d))/0xc)+-parseInt(_0x50a588(0x10b))/0xd;if(_0x529bed===_0x4ed7d0)break;else _0x353161['push'](_0x353161['shift']());}catch(_0x22de4e){_0x353161['push'](_0x353161['shift']());}}}(_0x1eeb,0x2210f));let e=function(_0x51fc47){const _0x31f8df=_0x210d;return _0x51fc47['Portrait']=_0x31f8df(0x104),_0x51fc47['Landscape']=_0x31f8df(0xf7),_0x51fc47;}({}),t=function(_0x3743a9){const _0x2fd491=_0x210d;return _0x3743a9[_0x2fd491(0x110)]=_0x2fd491(0x110),_0x3743a9['FitWidth']=_0x2fd491(0x109),_0x3743a9[_0x2fd491(0xfe)]=_0x2fd491(0xfe),_0x3743a9[_0x2fd491(0x111)]='FitPage',_0x3743a9['Custom']=_0x2fd491(0x119),_0x3743a9;}({}),n=function(_0x480771){const _0x35eb20=_0x210d;return _0x480771[_0x35eb20(0x101)]=_0x35eb20(0x101),_0x480771['End']=_0x35eb20(0x112),_0x480771[_0x35eb20(0x11a)]=_0x35eb20(0x11a),_0x480771;}({}),r=function(_0x3f1e3f){const _0x557b52=_0x210d;return _0x3f1e3f[_0x557b52(0xf8)]='Normal',_0x3f1e3f[_0x557b52(0x102)]=_0x557b52(0x102),_0x3f1e3f[_0x557b52(0x10c)]=_0x557b52(0x10c),_0x3f1e3f[_0x557b52(0x107)]=_0x557b52(0x107),_0x3f1e3f[_0x557b52(0x119)]=_0x557b52(0x119),_0x3f1e3f;}({});const i={'Normal':{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},'Narrow':{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},'Wide':{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},'None':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},'Custom':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},a=_0x355f41(0x105),o='printing-canvas';function _0x1eeb(){const _0xe3225e=['Narrow','139316cMwhDZ','Portrait','printing-canvas-container','px\x20','None','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','\x0a\x20\x20\x20\x20.','682279ZAcRNR','Wide','48eZzowA','60771UONNdo','2259MiRxoJ','Origin','FitPage','End','6lyIqcg','innerHTML','3410NFvDtJ','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}','\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.','offline-printing-css','Custom','Middle','1354700ZwkZwZ','7826gDuMGC','4RmKWxS','className','Landscape','Normal','728rDZYpP','2cRSBMX','createElement','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','\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',',\x20.','404778YaKhho','Start'];_0x1eeb=function(){return _0xe3225e;};return _0x1eeb();}function _0x210d(_0x4fa1f2,_0x540ba5){_0x4fa1f2=_0x4fa1f2-0xf7;const _0x1eeb9a=_0x1eeb();let _0x210d0f=_0x1eeb9a[_0x4fa1f2];return _0x210d0f;}function s(_0x267de1,_0x2af385,_0x2839a9){const _0x25036a=_0x355f41;let _0x1beb2e=_0x2839a9===_0x25036a(0x104)?_0x267de1:_0x2af385,_0x296653=_0x2839a9===_0x25036a(0x104)?_0x2af385:_0x267de1,_0x5444a9=_0x25036a(0x10a)+o+'\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'+_0x1beb2e+_0x25036a(0x106)+_0x296653+_0x25036a(0x108)+a+_0x25036a(0xff)+a+_0x25036a(0x117)+o+_0x25036a(0xfd)+_0x296653+_0x25036a(0xfc)+_0x1beb2e+_0x25036a(0x116),_0x5e9f38=document[_0x25036a(0xfb)]('style');return _0x5e9f38[_0x25036a(0x114)]=_0x5444a9,_0x5e9f38[_0x25036a(0x11e)]=_0x25036a(0x118),_0x5e9f38;}export{o as PRINT_CANVAS_CLASS,a as PRINT_CONTAINER_CLASS,i as PaperMarginMap,n as PrintAlign,e as PrintDirection,r as PrintPaperMargin,t as PrintScale,s as createPrintStyle};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x355f41=_0x210d;(function(_0x11d31e,_0x4ed7d0){const _0x50a588=_0x210d,_0x353161=_0x11d31e();while(!![]){try{const _0x529bed=parseInt(_0x50a588(0x103))/0x1*(-parseInt(_0x50a588(0xfa))/0x2)+-parseInt(_0x50a588(0x10e))/0x3*(-parseInt(_0x50a588(0x11d))/0x4)+-parseInt(_0x50a588(0x11b))/0x5*(-parseInt(_0x50a588(0x113))/0x6)+parseInt(_0x50a588(0x11c))/0x7*(parseInt(_0x50a588(0xf9))/0x8)+-parseInt(_0x50a588(0x10f))/0x9*(-parseInt(_0x50a588(0x115))/0xa)+-parseInt(_0x50a588(0x100))/0xb*(parseInt(_0x50a588(0x10d))/0xc)+-parseInt(_0x50a588(0x10b))/0xd;if(_0x529bed===_0x4ed7d0)break;else _0x353161['push'](_0x353161['shift']());}catch(_0x22de4e){_0x353161['push'](_0x353161['shift']());}}}(_0x1eeb,0x2210f));let e=function(_0x51fc47){const _0x31f8df=_0x210d;return _0x51fc47['Portrait']=_0x31f8df(0x104),_0x51fc47['Landscape']=_0x31f8df(0xf7),_0x51fc47;}({}),t=function(_0x3743a9){const _0x2fd491=_0x210d;return _0x3743a9[_0x2fd491(0x110)]=_0x2fd491(0x110),_0x3743a9['FitWidth']=_0x2fd491(0x109),_0x3743a9[_0x2fd491(0xfe)]=_0x2fd491(0xfe),_0x3743a9[_0x2fd491(0x111)]='FitPage',_0x3743a9['Custom']=_0x2fd491(0x119),_0x3743a9;}({}),n=function(_0x480771){const _0x35eb20=_0x210d;return _0x480771[_0x35eb20(0x101)]=_0x35eb20(0x101),_0x480771['End']=_0x35eb20(0x112),_0x480771[_0x35eb20(0x11a)]=_0x35eb20(0x11a),_0x480771;}({}),r=function(_0x3f1e3f){const _0x557b52=_0x210d;return _0x3f1e3f[_0x557b52(0xf8)]='Normal',_0x3f1e3f[_0x557b52(0x102)]=_0x557b52(0x102),_0x3f1e3f[_0x557b52(0x10c)]=_0x557b52(0x10c),_0x3f1e3f[_0x557b52(0x107)]=_0x557b52(0x107),_0x3f1e3f[_0x557b52(0x119)]=_0x557b52(0x119),_0x3f1e3f;}({});const i={'Normal':{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},'Narrow':{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},'Wide':{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},'None':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},'Custom':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},a=_0x355f41(0x105),o='printing-canvas';function _0x1eeb(){const _0xe3225e=['Narrow','139316cMwhDZ','Portrait','printing-canvas-container','px\x20','None','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','\x0a\x20\x20\x20\x20.','682279ZAcRNR','Wide','48eZzowA','60771UONNdo','2259MiRxoJ','Origin','FitPage','End','6lyIqcg','innerHTML','3410NFvDtJ','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}','\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.','offline-printing-css','Custom','Middle','1354700ZwkZwZ','7826gDuMGC','4RmKWxS','className','Landscape','Normal','728rDZYpP','2cRSBMX','createElement','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','\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',',\x20.','404778YaKhho','Start'];_0x1eeb=function(){return _0xe3225e;};return _0x1eeb();}function _0x210d(_0x4fa1f2,_0x540ba5){_0x4fa1f2=_0x4fa1f2-0xf7;const _0x1eeb9a=_0x1eeb();let _0x210d0f=_0x1eeb9a[_0x4fa1f2];return _0x210d0f;}function s(_0x267de1,_0x2af385,_0x2839a9){const _0x25036a=_0x355f41;let _0x1beb2e=_0x2839a9===_0x25036a(0x104)?_0x267de1:_0x2af385,_0x296653=_0x2839a9===_0x25036a(0x104)?_0x2af385:_0x267de1,_0x5444a9=_0x25036a(0x10a)+o+'\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'+_0x1beb2e+_0x25036a(0x106)+_0x296653+_0x25036a(0x108)+a+_0x25036a(0xff)+a+_0x25036a(0x117)+o+_0x25036a(0xfd)+_0x296653+_0x25036a(0xfc)+_0x1beb2e+_0x25036a(0x116),_0x5e9f38=document[_0x25036a(0xfb)]('style');return _0x5e9f38[_0x25036a(0x114)]=_0x5444a9,_0x5e9f38[_0x25036a(0x11e)]=_0x25036a(0x118),_0x5e9f38;}export{o as PRINT_CANVAS_CLASS,a as PRINT_CONTAINER_CLASS,i as PaperMarginMap,n as PrintAlign,e as PrintDirection,r as PrintPaperMargin,t as PrintScale,s as createPrintStyle};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x3ea1(_0xa604df,_0x96ea8d){_0xa604df=_0xa604df-0xa0;const _0x786396=_0x7863();let _0x3ea12e=_0x786396[_0xa604df];return _0x3ea12e;}function _0x7863(){const _0x16bb90=['\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;\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;\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\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','Start','50628ckrkYw','Wide','Narrow','None','PrintDirection','448296JZjBOy','Module','innerHTML','1233426rUBswI','Origin','Custom','350FJuTLt','exports','\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.','Landscape','2292oAycKv','\x0a\x20\x20\x20\x20.','Middle','FitPage','className','End','amd','createPrintStyle','323065uVGSzn','549530toKQVu','PRINT_CANVAS_CLASS','object',',\x20.','defineProperty','28SNCiwA','43954qTbItZ','11EicDGl','printing-canvas-container','Normal','PrintAlign','PRINT_CONTAINER_CLASS','63XWQKbi','px\x20','PrintScale','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','PaperMarginMap','4gVYnGV','Portrait','702ULChgJ'];_0x7863=function(){return _0x16bb90;};return _0x7863();}(function(_0x1260ef,_0x22fe52){const _0x56af0c=_0x3ea1,_0x4b150a=_0x1260ef();while(!![]){try{const _0x1de498=-parseInt(_0x56af0c(0xb5))/0x1*(parseInt(_0x56af0c(0xb6))/0x2)+parseInt(_0x56af0c(0xa0))/0x3+parseInt(_0x56af0c(0xc1))/0x4*(-parseInt(_0x56af0c(0xaf))/0x5)+-parseInt(_0x56af0c(0xa7))/0x6*(-parseInt(_0x56af0c(0xa3))/0x7)+-parseInt(_0x56af0c(0xcf))/0x8*(-parseInt(_0x56af0c(0xbc))/0x9)+-parseInt(_0x56af0c(0xb0))/0xa*(parseInt(_0x56af0c(0xb7))/0xb)+-parseInt(_0x56af0c(0xca))/0xc*(-parseInt(_0x56af0c(0xc3))/0xd);if(_0x1de498===_0x22fe52)break;else _0x4b150a['push'](_0x4b150a['shift']());}catch(_0x379965){_0x4b150a['push'](_0x4b150a['shift']());}}}(_0x7863,0x4d00d),function(_0x26b520,_0x2e3eae){const _0xdaf5c7=_0x3ea1;typeof exports==_0xdaf5c7(0xb2)&&typeof module<'u'?_0x2e3eae(exports):typeof define=='function'&&define[_0xdaf5c7(0xad)]?define([_0xdaf5c7(0xa4)],_0x2e3eae):(_0x26b520=typeof globalThis<'u'?globalThis:_0x26b520||self,_0x2e3eae(_0x26b520['UniverProPrint']={}));}(this,function(_0x100fde){const _0x170e64=_0x3ea1;Object[_0x170e64(0xb4)](_0x100fde,Symbol['toStringTag'],{'value':_0x170e64(0xd0)});let _0x2035c9=function(_0x446fbe){const _0xcdd672=_0x170e64;return _0x446fbe['Portrait']='Portrait',_0x446fbe[_0xcdd672(0xa6)]=_0xcdd672(0xa6),_0x446fbe;}({}),_0x5043fb=function(_0x5c5022){const _0x5c28e5=_0x170e64;return _0x5c5022[_0x5c28e5(0xa1)]='Origin',_0x5c5022['FitWidth']='FitWidth',_0x5c5022['FitHeight']='FitHeight',_0x5c5022[_0x5c28e5(0xaa)]=_0x5c28e5(0xaa),_0x5c5022[_0x5c28e5(0xa2)]=_0x5c28e5(0xa2),_0x5c5022;}({}),_0x1d04ef=function(_0x58391e){const _0x3faafc=_0x170e64;return _0x58391e[_0x3faafc(0xc9)]=_0x3faafc(0xc9),_0x58391e['End']=_0x3faafc(0xac),_0x58391e[_0x3faafc(0xa9)]='Middle',_0x58391e;}({}),_0x404f75=function(_0x3c4f85){const _0x363483=_0x170e64;return _0x3c4f85[_0x363483(0xb9)]=_0x363483(0xb9),_0x3c4f85['Narrow']=_0x363483(0xcc),_0x3c4f85[_0x363483(0xcb)]=_0x363483(0xcb),_0x3c4f85[_0x363483(0xcd)]=_0x363483(0xcd),_0x3c4f85[_0x363483(0xa2)]=_0x363483(0xa2),_0x3c4f85;}({}),_0x4f732e={'Normal':{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},'Narrow':{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},'Wide':{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},'None':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},'Custom':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x2e36b4=_0x170e64(0xb8),_0x3d90ae='printing-canvas';function _0x51d847(_0x4c0522,_0x40a84e,_0x4cf2ee){const _0x188fbb=_0x170e64;let _0x1f0a26=_0x4cf2ee===_0x188fbb(0xc2)?_0x4c0522:_0x40a84e,_0x31f1cc=_0x4cf2ee===_0x188fbb(0xc2)?_0x40a84e:_0x4c0522,_0x6a0958=_0x188fbb(0xa8)+_0x3d90ae+_0x188fbb(0xc4)+_0x1f0a26+_0x188fbb(0xbd)+_0x31f1cc+_0x188fbb(0xc6)+_0x2e36b4+_0x188fbb(0xb3)+_0x2e36b4+_0x188fbb(0xa5)+_0x3d90ae+_0x188fbb(0xc7)+_0x31f1cc+_0x188fbb(0xbf)+_0x1f0a26+_0x188fbb(0xc5),_0x4627e8=document['createElement']('style');return _0x4627e8[_0x188fbb(0xd1)]=_0x6a0958,_0x4627e8[_0x188fbb(0xab)]=_0x188fbb(0xc8),_0x4627e8;}_0x100fde[_0x170e64(0xb1)]=_0x3d90ae,_0x100fde[_0x170e64(0xbb)]=_0x2e36b4,_0x100fde[_0x170e64(0xc0)]=_0x4f732e,_0x100fde[_0x170e64(0xba)]=_0x1d04ef,_0x100fde[_0x170e64(0xce)]=_0x2035c9,_0x100fde['PrintPaperMargin']=_0x404f75,_0x100fde[_0x170e64(0xbe)]=_0x5043fb,_0x100fde[_0x170e64(0xae)]=_0x51d847;}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Shared print utilities for Univer Pro.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"typescript": "^6.0.3",
|
|
52
52
|
"vitest": "^4.1.10",
|
|
53
|
-
"@univerjs-infra/shared": "1.0.0-alpha.
|
|
53
|
+
"@univerjs-infra/shared": "1.0.0-alpha.6"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"test": "vitest run",
|