physical-quantity 1.1.28 → 1.1.30
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/README.md +54 -55
- package/dist/pq.es.js +422 -339
- package/dist/pq.umd.js +472 -1
- package/package.json +4 -2
package/dist/pq.umd.js
CHANGED
|
@@ -1 +1,472 @@
|
|
|
1
|
-
function _0x2f97(){const _0x504d43=['g/mm³','focus','in\x20HG','\x22\x20width=\x2212\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</a>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20</div>\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20','selected','formatValue','</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22unit-container\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<select>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','psf','lbm/in³','display','kPa','MPa','.unit-container','style','isInteger','map','function','bind','toPrecision','exports','https://firebasestorage.googleapis.com/v0/b/auto-calc-80237.appspot.com/o/shared%2Fassets%2Fimages%2Fe3d-logo2.png?alt=media&token=7064f466-6168-4b8a-b921-4e86115cb492','decimal-places','block','kg/L','126jmeyhb','handleArrowClick','\x0a\x20\x20\x20\x20\x20\x20<style>\x0a\x20\x20\x20\x20\x20\x20\x20\x20:host\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20inline-block;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.quantity\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\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\x20\x20.value\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-left:\x200.25em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-right:\x200.25em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20text-decoration:\x20underline;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.unit-container\x20select\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20inline-flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20blue;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20lightgray;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border-radius:\x200.25em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200.25em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20.tooltip\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20absolute;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bottom:\x2075%;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20left:\x2085%;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20transform:\x20translateX(-50%);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20background-color:\x20#f5f5f5;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20border:\x201px\x20solid\x20#ccc;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20border-radius:\x204px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none;\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2012px;\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.tooltip\x20a\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-decoration:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20blue;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.tooltip\x20a:hover\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-decoration:\x20underline;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20</style>\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22quantity\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22value\x22\x20style=\x22position:\x20relative;\x22>','133fBFcPE','kg/m³','attributeChangedCallback','join','render','esu/s','ksi','toFixed','Length','closest','tooltipTimeout','target','define','m\x20W.C.','23204zulCMR','minute','unitConversion','uc-qty','removeEventListener','mouseout','unit','handleUnitChange','lbm','140053nBMkkZ','floor','toString','addEventListener','50802TDhjkm','object','10794112qiExsm','e3dLogoUrl','12ZITUhQ','pow','change','Ampere[amp]','decimalPlaces','replace','mouseover','1050970dWjBzI','</option>','amd','units','4080005bYMzSP','1135152IfbEOQ','select','observedAttributes','unitCategory','s[second]','atm','bar','getUnitCategory','attachShadow','week','innerHTML','includes','psi','g/cm³','PhysicalQuantity','value','cm\x20HG','shadowRoot','connectedCallback'];_0x2f97=function(){return _0x504d43;};return _0x2f97();}function _0x39ba(_0x470944,_0x14dee2){const _0x2f97be=_0x2f97();return _0x39ba=function(_0x39baef,_0x1e377d){_0x39baef=_0x39baef-0x1e2;let _0x22f67c=_0x2f97be[_0x39baef];return _0x22f67c;},_0x39ba(_0x470944,_0x14dee2);}(function(_0x4b6a67,_0x271ceb){const _0x4e8d2f=_0x39ba,_0x448f46=_0x4b6a67();while(!![]){try{const _0x33e414=-parseInt(_0x4e8d2f(0x1e3))/0x1+-parseInt(_0x4e8d2f(0x233))/0x2*(-parseInt(_0x4e8d2f(0x1eb))/0x3)+parseInt(_0x4e8d2f(0x1f7))/0x4+parseInt(_0x4e8d2f(0x1f6))/0x5+-parseInt(_0x4e8d2f(0x1e7))/0x6*(parseInt(_0x4e8d2f(0x225))/0x7)+parseInt(_0x4e8d2f(0x1e9))/0x8+parseInt(_0x4e8d2f(0x222))/0x9*(-parseInt(_0x4e8d2f(0x1f2))/0xa);if(_0x33e414===_0x271ceb)break;else _0x448f46['push'](_0x448f46['shift']());}catch(_0x205fb5){_0x448f46['push'](_0x448f46['shift']());}}}(_0x2f97,0xb08e9),function(_0x61a185,_0x4ecb5e){const _0x386f16=_0x39ba;typeof exports==_0x386f16(0x1e8)&&typeof module<'u'?module[_0x386f16(0x21d)]=_0x4ecb5e():typeof define==_0x386f16(0x21a)&&define[_0x386f16(0x1f4)]?define(_0x4ecb5e):(_0x61a185=typeof globalThis<'u'?globalThis:_0x61a185||self,_0x61a185[_0x386f16(0x205)]=_0x4ecb5e());}(this,function(){'use strict';const _0x153a09=_0x39ba;const _0x50ca24=0.45359237,_0x4c3494=25.4/0x3e8,_0x2c3907=0xc*_0x4c3494,_0x25ec30=0x18bcd,_0x5d0dac=133.322387415;class _0x265891 extends HTMLElement{constructor(){const _0x5a5051=_0x39ba;super(),this[_0x5a5051(0x1ff)]({'mode':'open'}),this[_0x5a5051(0x206)]=0x0,this['unit']='mm',this[_0x5a5051(0x1fa)]=_0x5a5051(0x22d),this[_0x5a5051(0x22f)]=null,this[_0x5a5051(0x1ef)]=0x3,this[_0x5a5051(0x1ea)]=_0x5a5051(0x21e),this['units']={'Length':['m','km','cm','mm','in','ft'],'Mass':['g','kg',_0x5a5051(0x1e2)],'Pressure':['Pa',_0x5a5051(0x214),_0x5a5051(0x215),'GPa',_0x5a5051(0x1fd),'mbar',_0x5a5051(0x1fc),'mm\x20HG',_0x5a5051(0x207),_0x5a5051(0x20c),'mm\x20W.C.',_0x5a5051(0x232),'in\x20W.C.',_0x5a5051(0x211),_0x5a5051(0x203),_0x5a5051(0x22b),'ksi[kip/in²]'],'Density':[_0x5a5051(0x226),_0x5a5051(0x221),_0x5a5051(0x204),_0x5a5051(0x20a),'lbm/ft³',_0x5a5051(0x212)],'Time':[_0x5a5051(0x1fb),'s',_0x5a5051(0x234),'h','h[hour]','day',_0x5a5051(0x200)],'ElectricalCurrent':['A',_0x5a5051(0x1ee),'mA','µA','kA','MA',_0x5a5051(0x22a)]},this[_0x5a5051(0x235)]={'Length':{'m':0x1,'km':0x3e8,'cm':0.01,'mm':0.001,'in':_0x4c3494,'ft':_0x2c3907},'Mass':{'kg':0x1,'g':0.001,'lbm':_0x50ca24},'Pressure':{'Pa':0x1,'kPa':0x3e8,'MPa':0xf4240,'GPa':0x3b9aca00,'bar':0x64*0x3e8,'mbar':0x64,'atm':_0x25ec30,'mm\x20HG':_0x5d0dac,'cm\x20HG':_0x5d0dac*0xa,'in\x20HG':_0x5d0dac*25.4,'mm\x20W.C.':0x1/0x3e8*0x3e8*9.80665,'m\x20W.C.':0x1*0x3e8*9.80665,'in\x20W.C.':_0x4c3494*0x3e8*9.80665,'psf':_0x50ca24*9.80665/Math[_0x5a5051(0x1ec)](_0x2c3907,0x2),'psi':_0x50ca24*9.80665/Math['pow'](_0x4c3494,0x2),'ksi':_0x50ca24*9.80665/Math[_0x5a5051(0x1ec)](_0x4c3494,0x2)*0x3e8,'ksi[kip/in²]':_0x50ca24*9.80665/Math[_0x5a5051(0x1ec)](_0x4c3494,0x2)*0x3e8},'Density':{'kg/m³':0x1,'kg/L':0x3e8,'g/cm³':0x1/0x3e8/Math[_0x5a5051(0x1ec)](0.01,0x3),'g/mm³':0x1/0x3e8/Math['pow'](0.001,0x3),'lbm/ft³':_0x50ca24/Math[_0x5a5051(0x1ec)](_0x2c3907,0x3),'lbm/in³':_0x50ca24/Math[_0x5a5051(0x1ec)](_0x4c3494,0x3)},'Time':{'s[second]':0x1,'s':0x1,'minute':0x3c,'h':0xe10,'h[hour]':0xe10,'day':0xe10*0x18,'week':0xe10*0x18*0x7},'ElectricalCurrent':{'A':0x1,'Ampere[amp]':0x1,'mA':0.001,'µA':0.000001,'kA':0x3e8,'MA':0xf4240,'esu/s':0x1/0xb2d05e00}},this[_0x5a5051(0x229)]();}static get[_0x153a09(0x1f9)](){const _0x28209e=_0x153a09;return[_0x28209e(0x206),'unit',_0x28209e(0x21f)];}[_0x153a09(0x227)](_0x4d3c9c,_0x4ca1cb,_0x3c83a7){const _0x3da4b5=_0x153a09;_0x4d3c9c===_0x3da4b5(0x206)?this[_0x3da4b5(0x206)]=parseFloat(_0x3c83a7):_0x4d3c9c===_0x3da4b5(0x239)?(this[_0x3da4b5(0x239)]=_0x3c83a7,this[_0x3da4b5(0x1fa)]=this[_0x3da4b5(0x1fe)](_0x3c83a7)):_0x4d3c9c==='decimal-places'&&(this[_0x3da4b5(0x1ef)]=parseInt(_0x3c83a7)||0x3),this[_0x3da4b5(0x229)]();}[_0x153a09(0x1fe)](_0x23271b){const _0x188331=_0x153a09;for(const _0x2e326d in this[_0x188331(0x1f5)])if(this[_0x188331(0x1f5)][_0x2e326d][_0x188331(0x202)](_0x23271b))return _0x2e326d;return null;}[_0x153a09(0x209)](){const _0x52b68b=_0x153a09;this[_0x52b68b(0x208)][_0x52b68b(0x1e6)](_0x52b68b(0x1ed),this[_0x52b68b(0x23a)][_0x52b68b(0x21b)](this)),this[_0x52b68b(0x229)]();}['disconnectedCallback'](){const _0x10e55f=_0x153a09;this[_0x10e55f(0x208)][_0x10e55f(0x237)](_0x10e55f(0x1ed),this['handleUnitChange'][_0x10e55f(0x21b)](this));}[_0x153a09(0x223)](_0x1bd387){const _0x303c82=_0x153a09;if(_0x1bd387['target'][_0x303c82(0x22e)]('.unit-container')){const _0x4d0178=this[_0x303c82(0x208)]['querySelector'](_0x303c82(0x1f8));_0x4d0178&&(_0x4d0178[_0x303c82(0x20b)](),_0x4d0178['click']());}}[_0x153a09(0x23a)](_0x2429c8){const _0x47edde=_0x153a09;if(_0x2429c8[_0x47edde(0x230)]['tagName']==='SELECT'){const _0x4226ff=_0x2429c8[_0x47edde(0x230)][_0x47edde(0x206)],_0x55554b=this[_0x47edde(0x235)][this[_0x47edde(0x1fa)]][this[_0x47edde(0x239)]]/this[_0x47edde(0x235)][this[_0x47edde(0x1fa)]][_0x4226ff];this['value']=this[_0x47edde(0x206)]*_0x55554b,this[_0x47edde(0x239)]=_0x4226ff,this['render']();}}[_0x153a09(0x20f)](_0x44f266){const _0x291355=_0x153a09;return Number[_0x291355(0x218)](_0x44f266)?_0x44f266[_0x291355(0x1e5)]():Math[_0x291355(0x1e4)](_0x44f266)!==0x0?_0x44f266[_0x291355(0x22c)](this['decimalPlaces'])['replace'](/0+$/,'')[_0x291355(0x1f0)](/\.$/,''):_0x44f266[_0x291355(0x21c)](0x3);}['render'](){const _0xa612ba=_0x153a09;this[_0xa612ba(0x208)][_0xa612ba(0x201)]=_0xa612ba(0x224)+this[_0xa612ba(0x20f)](this[_0xa612ba(0x206)])+_0xa612ba(0x210)+this[_0xa612ba(0x1f5)][this[_0xa612ba(0x1fa)]][_0xa612ba(0x219)](_0x1edad3=>'<option\x20value=\x22'+_0x1edad3+'\x22\x20'+(_0x1edad3===this[_0xa612ba(0x239)]?_0xa612ba(0x20e):'')+'>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1edad3+_0xa612ba(0x1f3))[_0xa612ba(0x228)]('')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</select>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<a\x20class=\x22tooltip\x22\x20href=\x22https://v2-docs.donwen.com/daily-calculations/unit-converter.html\x22\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20title=\x22Unit\x20Converter\x20for\x20All\x20Categories\x22\x20target=\x22_blank\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20src=\x22'+this[_0xa612ba(0x1ea)]+_0xa612ba(0x20d);const _0x1efaa0=this['shadowRoot']['querySelector'](_0xa612ba(0x216)),_0x329502=this[_0xa612ba(0x208)]['querySelectorAll']('.tooltip')[0x0];_0x1efaa0[_0xa612ba(0x1e6)](_0xa612ba(0x1f1),()=>{const _0x3095a7=_0xa612ba;this[_0x3095a7(0x22f)]=setTimeout(()=>{const _0x38fd36=_0x3095a7;_0x329502[_0x38fd36(0x217)][_0x38fd36(0x213)]=_0x38fd36(0x220);},0x3e8);}),_0x1efaa0[_0xa612ba(0x1e6)](_0xa612ba(0x238),()=>{const _0x896d24=_0xa612ba;setTimeout(()=>{const _0x396d10=_0x39ba;_0x329502[_0x396d10(0x217)]['display']='none';},0x7d0),clearTimeout(this[_0x896d24(0x22f)]);}),_0x329502[_0xa612ba(0x1e6)](_0xa612ba(0x238),()=>{setTimeout(()=>{const _0x4ea2d9=_0x39ba;_0x329502[_0x4ea2d9(0x217)]['display']='none';},0x7d0);});}}customElements[_0x153a09(0x231)]('physical-quantity',_0x265891);class _0x4f025e extends _0x265891{}return customElements['define'](_0x153a09(0x236),_0x4f025e),_0x265891;}));
|
|
1
|
+
(function (_0x20c8d4, _0x553135) {
|
|
2
|
+
const _0x1ed7b1 = _0x3639,
|
|
3
|
+
_0x4a19e1 = _0x20c8d4();
|
|
4
|
+
while (!![]) {
|
|
5
|
+
try {
|
|
6
|
+
const _0x118c6c =
|
|
7
|
+
(-parseInt(_0x1ed7b1(0x20b)) / 0x1) *
|
|
8
|
+
(parseInt(_0x1ed7b1(0x23d)) / 0x2) +
|
|
9
|
+
parseInt(_0x1ed7b1(0x22d)) / 0x3 +
|
|
10
|
+
parseInt(_0x1ed7b1(0x235)) / 0x4 +
|
|
11
|
+
(-parseInt(_0x1ed7b1(0x1f4)) / 0x5) *
|
|
12
|
+
(parseInt(_0x1ed7b1(0x1fa)) / 0x6) +
|
|
13
|
+
(parseInt(_0x1ed7b1(0x254)) / 0x7) *
|
|
14
|
+
(-parseInt(_0x1ed7b1(0x245)) / 0x8) +
|
|
15
|
+
(-parseInt(_0x1ed7b1(0x21b)) / 0x9) *
|
|
16
|
+
(parseInt(_0x1ed7b1(0x257)) / 0xa) +
|
|
17
|
+
(-parseInt(_0x1ed7b1(0x230)) / 0xb) *
|
|
18
|
+
(-parseInt(_0x1ed7b1(0x249)) / 0xc);
|
|
19
|
+
if (_0x118c6c === _0x553135) break;
|
|
20
|
+
else _0x4a19e1["push"](_0x4a19e1["shift"]());
|
|
21
|
+
} catch (_0x27ac9f) {
|
|
22
|
+
_0x4a19e1["push"](_0x4a19e1["shift"]());
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
})(_0xe5ab, 0x2cd36),
|
|
26
|
+
(function (_0x3baeaa, _0x2b861e) {
|
|
27
|
+
const _0x57599f = _0x3639;
|
|
28
|
+
typeof exports == _0x57599f(0x234) && typeof module < "u"
|
|
29
|
+
? (module["exports"] = _0x2b861e())
|
|
30
|
+
: typeof define == "function" && define[_0x57599f(0x1f6)]
|
|
31
|
+
? define(_0x2b861e)
|
|
32
|
+
: ((_0x3baeaa = typeof globalThis < "u" ? globalThis : _0x3baeaa || self),
|
|
33
|
+
(_0x3baeaa["PhysicalQuantity"] = _0x2b861e()));
|
|
34
|
+
})(this, function () {
|
|
35
|
+
"use strict";
|
|
36
|
+
const _0x153af8 = _0x3639;
|
|
37
|
+
const _0x2f9671 = 0.45359237,
|
|
38
|
+
_0x2d394f = 25.4 / 0x3e8,
|
|
39
|
+
_0x4a4064 = 0xc * _0x2d394f,
|
|
40
|
+
_0xf371b5 = 0x18bcd,
|
|
41
|
+
_0x1163ab = 133.322387415,
|
|
42
|
+
_0x9e0d09 = {
|
|
43
|
+
Length: ["m", "km", "cm", "mm", "in", "ft"],
|
|
44
|
+
Mass: ["g", "kg", "lbm"],
|
|
45
|
+
Pressure: [
|
|
46
|
+
"Pa",
|
|
47
|
+
_0x153af8(0x25b),
|
|
48
|
+
_0x153af8(0x201),
|
|
49
|
+
"GPa",
|
|
50
|
+
"bar",
|
|
51
|
+
_0x153af8(0x22c),
|
|
52
|
+
_0x153af8(0x256),
|
|
53
|
+
"mm\x20HG",
|
|
54
|
+
_0x153af8(0x24a),
|
|
55
|
+
_0x153af8(0x1f9),
|
|
56
|
+
_0x153af8(0x242),
|
|
57
|
+
_0x153af8(0x233),
|
|
58
|
+
"in\x20W.C.",
|
|
59
|
+
_0x153af8(0x211),
|
|
60
|
+
_0x153af8(0x23e),
|
|
61
|
+
_0x153af8(0x24b),
|
|
62
|
+
_0x153af8(0x258),
|
|
63
|
+
],
|
|
64
|
+
Density: [
|
|
65
|
+
_0x153af8(0x215),
|
|
66
|
+
_0x153af8(0x207),
|
|
67
|
+
"g/cm³",
|
|
68
|
+
_0x153af8(0x240),
|
|
69
|
+
_0x153af8(0x259),
|
|
70
|
+
_0x153af8(0x24c),
|
|
71
|
+
],
|
|
72
|
+
Time: [
|
|
73
|
+
_0x153af8(0x225),
|
|
74
|
+
"s",
|
|
75
|
+
"minute",
|
|
76
|
+
"h",
|
|
77
|
+
_0x153af8(0x20c),
|
|
78
|
+
"day",
|
|
79
|
+
"week",
|
|
80
|
+
],
|
|
81
|
+
ElectricalCurrent: [
|
|
82
|
+
"A",
|
|
83
|
+
_0x153af8(0x200),
|
|
84
|
+
"mA",
|
|
85
|
+
"µA",
|
|
86
|
+
"kA",
|
|
87
|
+
"MA",
|
|
88
|
+
"esu/s",
|
|
89
|
+
],
|
|
90
|
+
},
|
|
91
|
+
_0x391d9f = {
|
|
92
|
+
Length: {
|
|
93
|
+
m: 0x1,
|
|
94
|
+
km: 0x3e8,
|
|
95
|
+
cm: 0.01,
|
|
96
|
+
mm: 0.001,
|
|
97
|
+
in: _0x2d394f,
|
|
98
|
+
ft: _0x4a4064,
|
|
99
|
+
},
|
|
100
|
+
Mass: { kg: 0x1, g: 0.001, lbm: _0x2f9671 },
|
|
101
|
+
Pressure: {
|
|
102
|
+
Pa: 0x1,
|
|
103
|
+
kPa: 0x3e8,
|
|
104
|
+
MPa: 0xf4240,
|
|
105
|
+
GPa: 0x3b9aca00,
|
|
106
|
+
bar: 0x64 * 0x3e8,
|
|
107
|
+
mbar: 0x64,
|
|
108
|
+
atm: _0xf371b5,
|
|
109
|
+
"mm\x20HG": _0x1163ab,
|
|
110
|
+
"cm\x20HG": _0x1163ab * 0xa,
|
|
111
|
+
"in\x20HG": _0x1163ab * 25.4,
|
|
112
|
+
"mm\x20W.C.": (0x1 / 0x3e8) * 0x3e8 * 9.80665,
|
|
113
|
+
"m\x20W.C.": 0x1 * 0x3e8 * 9.80665,
|
|
114
|
+
"in\x20W.C.": _0x2d394f * 0x3e8 * 9.80665,
|
|
115
|
+
psf: (_0x2f9671 * 9.80665) / Math[_0x153af8(0x20d)](_0x4a4064, 0x2),
|
|
116
|
+
psi: (_0x2f9671 * 9.80665) / Math["pow"](_0x2d394f, 0x2),
|
|
117
|
+
ksi: ((_0x2f9671 * 9.80665) / Math["pow"](_0x2d394f, 0x2)) * 0x3e8,
|
|
118
|
+
"ksi[kip/in²]":
|
|
119
|
+
((_0x2f9671 * 9.80665) / Math[_0x153af8(0x20d)](_0x2d394f, 0x2)) *
|
|
120
|
+
0x3e8,
|
|
121
|
+
},
|
|
122
|
+
Density: {
|
|
123
|
+
"kg/m³": 0x1,
|
|
124
|
+
"kg/L": 0x3e8,
|
|
125
|
+
"g/cm³": 0x1 / 0x3e8 / Math[_0x153af8(0x20d)](0.01, 0x3),
|
|
126
|
+
"g/mm³": 0x1 / 0x3e8 / Math[_0x153af8(0x20d)](0.001, 0x3),
|
|
127
|
+
"lbm/ft³": _0x2f9671 / Math["pow"](_0x4a4064, 0x3),
|
|
128
|
+
"lbm/in³": _0x2f9671 / Math[_0x153af8(0x20d)](_0x2d394f, 0x3),
|
|
129
|
+
},
|
|
130
|
+
Time: {
|
|
131
|
+
"s[second]": 0x1,
|
|
132
|
+
s: 0x1,
|
|
133
|
+
minute: 0x3c,
|
|
134
|
+
h: 0xe10,
|
|
135
|
+
"h[hour]": 0xe10,
|
|
136
|
+
day: 0xe10 * 0x18,
|
|
137
|
+
week: 0xe10 * 0x18 * 0x7,
|
|
138
|
+
},
|
|
139
|
+
ElectricalCurrent: {
|
|
140
|
+
A: 0x1,
|
|
141
|
+
"Ampere[amp]": 0x1,
|
|
142
|
+
mA: 0.001,
|
|
143
|
+
µA: 0.000001,
|
|
144
|
+
kA: 0x3e8,
|
|
145
|
+
MA: 0xf4240,
|
|
146
|
+
"esu/s": 0x1 / 0xb2d05e00,
|
|
147
|
+
},
|
|
148
|
+
};
|
|
149
|
+
class _0xd2e8e1 extends HTMLElement {
|
|
150
|
+
constructor() {
|
|
151
|
+
const _0x98cd27 = _0x153af8;
|
|
152
|
+
super(),
|
|
153
|
+
this[_0x98cd27(0x239)]({ mode: _0x98cd27(0x22a) }),
|
|
154
|
+
(this[_0x98cd27(0x228)] = 0x0),
|
|
155
|
+
(this[_0x98cd27(0x23c)] = null),
|
|
156
|
+
(this[_0x98cd27(0x231)] = 0x3),
|
|
157
|
+
(this[_0x98cd27(0x222)] =
|
|
158
|
+
"https://firebasestorage.googleapis.com/v0/b/auto-calc-80237.appspot.com/o/shared%2Fassets%2Fimages%2Fe3d-logo2.png?alt=media&token=7064f466-6168-4b8a-b921-4e86115cb492"),
|
|
159
|
+
(this[_0x98cd27(0x1fb)] = _0x9e0d09),
|
|
160
|
+
(this[_0x98cd27(0x203)] = _0x391d9f),
|
|
161
|
+
(this[_0x98cd27(0x21d)] =
|
|
162
|
+
!this[_0x98cd27(0x1f5)](_0x98cd27(0x1fe)) ||
|
|
163
|
+
this["getAttribute"](_0x98cd27(0x1fe)) === _0x98cd27(0x1fd)),
|
|
164
|
+
this[_0x98cd27(0x244)]();
|
|
165
|
+
}
|
|
166
|
+
static get [_0x153af8(0x25c)]() {
|
|
167
|
+
const _0x5d47d5 = _0x153af8;
|
|
168
|
+
return ["value", "unit", _0x5d47d5(0x21f), "show-unit-arrow"];
|
|
169
|
+
}
|
|
170
|
+
[_0x153af8(0x214)](_0x53e8e4, _0x3f3267, _0x166c6d) {
|
|
171
|
+
const _0x17b619 = _0x153af8;
|
|
172
|
+
_0x53e8e4 === "value"
|
|
173
|
+
? (this[_0x17b619(0x228)] = parseFloat(_0x166c6d))
|
|
174
|
+
: _0x53e8e4 === _0x17b619(0x236)
|
|
175
|
+
? ((this[_0x17b619(0x236)] = _0x166c6d),
|
|
176
|
+
(this[_0x17b619(0x221)] = this[_0x17b619(0x23b)](_0x166c6d)))
|
|
177
|
+
: _0x53e8e4 === _0x17b619(0x21f)
|
|
178
|
+
? (this[_0x17b619(0x231)] = parseInt(_0x166c6d) || 0x3)
|
|
179
|
+
: _0x53e8e4 === _0x17b619(0x1fe) &&
|
|
180
|
+
(this[_0x17b619(0x21d)] =
|
|
181
|
+
_0x166c6d === null || _0x166c6d === _0x17b619(0x1fd)),
|
|
182
|
+
this[_0x17b619(0x244)]();
|
|
183
|
+
}
|
|
184
|
+
[_0x153af8(0x23b)](_0xbf017e) {
|
|
185
|
+
const _0x2e573c = _0x153af8;
|
|
186
|
+
for (const _0x5c21c5 in this[_0x2e573c(0x1fb)])
|
|
187
|
+
if (this["units"][_0x5c21c5]["includes"](_0xbf017e)) return _0x5c21c5;
|
|
188
|
+
return (
|
|
189
|
+
(this["units"][_0x2e573c(0x1ef)] =
|
|
190
|
+
this[_0x2e573c(0x1fb)]["Custom"] || []),
|
|
191
|
+
this["units"][_0x2e573c(0x1ef)]["push"](_0xbf017e),
|
|
192
|
+
(this["unitConversion"][_0x2e573c(0x1ef)] =
|
|
193
|
+
this[_0x2e573c(0x203)]["Custom"] || {}),
|
|
194
|
+
(this["unitConversion"][_0x2e573c(0x1ef)][_0xbf017e] = 0x1),
|
|
195
|
+
_0x2e573c(0x1ef)
|
|
196
|
+
);
|
|
197
|
+
}
|
|
198
|
+
[_0x153af8(0x1f0)]() {
|
|
199
|
+
const _0x35dbb2 = _0x153af8;
|
|
200
|
+
this["shadowRoot"][_0x35dbb2(0x219)](
|
|
201
|
+
_0x35dbb2(0x238),
|
|
202
|
+
this[_0x35dbb2(0x246)]["bind"](this)
|
|
203
|
+
),
|
|
204
|
+
(this[_0x35dbb2(0x236)] =
|
|
205
|
+
this[_0x35dbb2(0x204)](_0x35dbb2(0x236)) || "mm"),
|
|
206
|
+
(this["unitCategory"] = this[_0x35dbb2(0x23b)](
|
|
207
|
+
this[_0x35dbb2(0x236)]
|
|
208
|
+
)),
|
|
209
|
+
(this[_0x35dbb2(0x21d)] = this[_0x35dbb2(0x1f5)](_0x35dbb2(0x1fe))
|
|
210
|
+
? this[_0x35dbb2(0x204)](_0x35dbb2(0x1fe)) === _0x35dbb2(0x1fd)
|
|
211
|
+
: this[_0x35dbb2(0x221)] !== _0x35dbb2(0x1ef)),
|
|
212
|
+
this["render"]();
|
|
213
|
+
}
|
|
214
|
+
[_0x153af8(0x206)]() {
|
|
215
|
+
const _0x5792ce = _0x153af8;
|
|
216
|
+
this[_0x5792ce(0x217)][_0x5792ce(0x209)](
|
|
217
|
+
_0x5792ce(0x238),
|
|
218
|
+
this[_0x5792ce(0x246)][_0x5792ce(0x218)](this)
|
|
219
|
+
);
|
|
220
|
+
}
|
|
221
|
+
["handleArrowClick"](_0x2ec914) {
|
|
222
|
+
const _0x35d18a = _0x153af8;
|
|
223
|
+
if (_0x2ec914["target"]["closest"](".unit-container")) {
|
|
224
|
+
const _0x15da2d = this[_0x35d18a(0x217)]["querySelector"](
|
|
225
|
+
_0x35d18a(0x1f1)
|
|
226
|
+
);
|
|
227
|
+
_0x15da2d && (_0x15da2d[_0x35d18a(0x213)](), _0x15da2d["click"]());
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
[_0x153af8(0x246)](_0x29e91c) {
|
|
231
|
+
const _0xdd36f1 = _0x153af8;
|
|
232
|
+
if (_0x29e91c["target"]["tagName"] === _0xdd36f1(0x223)) {
|
|
233
|
+
const _0x4508d9 = _0x29e91c[_0xdd36f1(0x25a)]["value"],
|
|
234
|
+
_0x248f69 =
|
|
235
|
+
this[_0xdd36f1(0x203)][this["unitCategory"]][this["unit"]] /
|
|
236
|
+
this[_0xdd36f1(0x203)][this["unitCategory"]][_0x4508d9];
|
|
237
|
+
(this[_0xdd36f1(0x228)] = this[_0xdd36f1(0x228)] * _0x248f69),
|
|
238
|
+
(this[_0xdd36f1(0x236)] = _0x4508d9),
|
|
239
|
+
this["render"]();
|
|
240
|
+
}
|
|
241
|
+
this[_0xdd36f1(0x22e)]();
|
|
242
|
+
}
|
|
243
|
+
[_0x153af8(0x1f7)](_0x5f497f) {
|
|
244
|
+
const _0x4411aa = _0x153af8;
|
|
245
|
+
return Number[_0x4411aa(0x220)](_0x5f497f)
|
|
246
|
+
? _0x5f497f[_0x4411aa(0x255)]()
|
|
247
|
+
: Math[_0x4411aa(0x212)](_0x5f497f) !== 0x0
|
|
248
|
+
? _0x5f497f[_0x4411aa(0x21a)](this[_0x4411aa(0x231)])
|
|
249
|
+
[_0x4411aa(0x1ed)](/0+$/, "")
|
|
250
|
+
[_0x4411aa(0x1ed)](/\.$/, "")
|
|
251
|
+
: _0x5f497f[_0x4411aa(0x24f)](0x3);
|
|
252
|
+
}
|
|
253
|
+
[_0x153af8(0x244)]() {
|
|
254
|
+
const _0xc2143a = _0x153af8;
|
|
255
|
+
this["shadowRoot"][_0xc2143a(0x248)] =
|
|
256
|
+
_0xc2143a(0x1fc) +
|
|
257
|
+
(this["showUnitArrow"] ? "auto" : _0xc2143a(0x23a)) +
|
|
258
|
+
_0xc2143a(0x1ff) +
|
|
259
|
+
(this[_0xc2143a(0x21d)] ? _0xc2143a(0x23f) : _0xc2143a(0x23a)) +
|
|
260
|
+
_0xc2143a(0x20a) +
|
|
261
|
+
(this[_0xc2143a(0x21d)] ? _0xc2143a(0x23f) : _0xc2143a(0x23a)) +
|
|
262
|
+
_0xc2143a(0x22b) +
|
|
263
|
+
this["formatValue"](this[_0xc2143a(0x228)]) +
|
|
264
|
+
"</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22unit-container\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<select>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" +
|
|
265
|
+
(this["units"][this[_0xc2143a(0x221)]] || [this[_0xc2143a(0x236)]])
|
|
266
|
+
["map"](
|
|
267
|
+
(_0x449d20) =>
|
|
268
|
+
_0xc2143a(0x24e) +
|
|
269
|
+
_0x449d20 +
|
|
270
|
+
"\x22\x20" +
|
|
271
|
+
(_0x449d20 === this[_0xc2143a(0x236)] ? _0xc2143a(0x208) : "") +
|
|
272
|
+
">\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" +
|
|
273
|
+
_0x449d20 +
|
|
274
|
+
_0xc2143a(0x251)
|
|
275
|
+
)
|
|
276
|
+
[_0xc2143a(0x210)]("") +
|
|
277
|
+
_0xc2143a(0x20f) +
|
|
278
|
+
(this["showUnitArrow"] && this["unitCategory"] !== _0xc2143a(0x1ef)
|
|
279
|
+
? _0xc2143a(0x226) + this[_0xc2143a(0x222)] + _0xc2143a(0x20e)
|
|
280
|
+
: "") +
|
|
281
|
+
_0xc2143a(0x253);
|
|
282
|
+
const _0x129039 = this[_0xc2143a(0x217)][_0xc2143a(0x216)](
|
|
283
|
+
_0xc2143a(0x1eb)
|
|
284
|
+
),
|
|
285
|
+
_0x534743 = this[_0xc2143a(0x217)]["querySelectorAll"](
|
|
286
|
+
_0xc2143a(0x1ec)
|
|
287
|
+
)[0x0];
|
|
288
|
+
_0x129039 &&
|
|
289
|
+
_0x534743 &&
|
|
290
|
+
(_0x129039[_0xc2143a(0x219)](_0xc2143a(0x252), () => {
|
|
291
|
+
const _0x27ccae = _0xc2143a;
|
|
292
|
+
this[_0x27ccae(0x23c)] = setTimeout(() => {
|
|
293
|
+
const _0x5af90f = _0x27ccae;
|
|
294
|
+
_0x534743[_0x5af90f(0x21e)]["display"] = _0x5af90f(0x247);
|
|
295
|
+
}, 0x3e8);
|
|
296
|
+
}),
|
|
297
|
+
_0x129039[_0xc2143a(0x219)](_0xc2143a(0x24d), () => {
|
|
298
|
+
const _0xb9a523 = _0xc2143a;
|
|
299
|
+
setTimeout(() => {
|
|
300
|
+
const _0x2156a7 = _0x3639;
|
|
301
|
+
_0x534743[_0x2156a7(0x21e)][_0x2156a7(0x205)] = _0x2156a7(0x23a);
|
|
302
|
+
}, 0x7d0),
|
|
303
|
+
clearTimeout(this[_0xb9a523(0x23c)]);
|
|
304
|
+
}),
|
|
305
|
+
_0x534743[_0xc2143a(0x219)](_0xc2143a(0x24d), () => {
|
|
306
|
+
setTimeout(() => {
|
|
307
|
+
const _0x258c4e = _0x3639;
|
|
308
|
+
_0x534743[_0x258c4e(0x21e)][_0x258c4e(0x205)] = "none";
|
|
309
|
+
}, 0x7d0);
|
|
310
|
+
})),
|
|
311
|
+
this["updateDropdownWidth"]();
|
|
312
|
+
}
|
|
313
|
+
["updateDropdownWidth"]() {
|
|
314
|
+
const _0x509de2 = _0x153af8,
|
|
315
|
+
_0x269adc = this[_0x509de2(0x217)][_0x509de2(0x216)](
|
|
316
|
+
_0x509de2(0x1f1)
|
|
317
|
+
),
|
|
318
|
+
_0x127133 = _0x269adc[_0x509de2(0x21c)][_0x269adc["selectedIndex"]],
|
|
319
|
+
_0x5c3a49 = document[_0x509de2(0x1f8)](_0x509de2(0x227));
|
|
320
|
+
(_0x5c3a49[_0x509de2(0x21e)]["position"] = "absolute"),
|
|
321
|
+
(_0x5c3a49[_0x509de2(0x21e)][_0x509de2(0x232)] = _0x509de2(0x1f3)),
|
|
322
|
+
(_0x5c3a49[_0x509de2(0x21e)][_0x509de2(0x202)] =
|
|
323
|
+
getComputedStyle(_0x269adc)[_0x509de2(0x202)]),
|
|
324
|
+
document["body"][_0x509de2(0x250)](_0x5c3a49),
|
|
325
|
+
(_0x5c3a49[_0x509de2(0x243)] = _0x127133[_0x509de2(0x237)]);
|
|
326
|
+
const _0x534df8 = _0x5c3a49[_0x509de2(0x22f)];
|
|
327
|
+
document[_0x509de2(0x1f2)][_0x509de2(0x241)](_0x5c3a49);
|
|
328
|
+
const _0x4eefa4 =
|
|
329
|
+
parseInt(getComputedStyle(_0x269adc)["paddingLeft"]) +
|
|
330
|
+
parseInt(getComputedStyle(_0x269adc)[_0x509de2(0x229)]);
|
|
331
|
+
_0x269adc[_0x509de2(0x21e)]["width"] = this[_0x509de2(0x21d)]
|
|
332
|
+
? _0x534df8 + _0x4eefa4 + 0x16 + "px"
|
|
333
|
+
: _0x534df8 + _0x4eefa4 + 0x4 + "px";
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
customElements["define"](_0x153af8(0x1ee), _0xd2e8e1);
|
|
337
|
+
class _0x1803a3 extends _0xd2e8e1 {}
|
|
338
|
+
return customElements[_0x153af8(0x224)]("uc-qty", _0x1803a3), _0xd2e8e1;
|
|
339
|
+
});
|
|
340
|
+
function _0x3639(_0x5230f5, _0x26fc39) {
|
|
341
|
+
const _0xe5ab1a = _0xe5ab();
|
|
342
|
+
return (
|
|
343
|
+
(_0x3639 = function (_0x3639b1, _0x62d2b1) {
|
|
344
|
+
_0x3639b1 = _0x3639b1 - 0x1eb;
|
|
345
|
+
let _0x42545b = _0xe5ab1a[_0x3639b1];
|
|
346
|
+
return _0x42545b;
|
|
347
|
+
}),
|
|
348
|
+
_0x3639(_0x5230f5, _0x26fc39)
|
|
349
|
+
);
|
|
350
|
+
}
|
|
351
|
+
function _0xe5ab() {
|
|
352
|
+
const _0x48bfc1 = [
|
|
353
|
+
"463653lTwXuD",
|
|
354
|
+
"options",
|
|
355
|
+
"showUnitArrow",
|
|
356
|
+
"style",
|
|
357
|
+
"decimal-places",
|
|
358
|
+
"isInteger",
|
|
359
|
+
"unitCategory",
|
|
360
|
+
"e3dLogoUrl",
|
|
361
|
+
"SELECT",
|
|
362
|
+
"define",
|
|
363
|
+
"s[second]",
|
|
364
|
+
"\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<a\x20class=\x22tooltip\x22\x20href=\x22https://v2-docs.donwen.com/daily-calculations/unit-converter.html\x22\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20title=\x22Unit\x20Converter\x20for\x20All\x20Categories\x22\x20target=\x22_blank\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20src=\x22",
|
|
365
|
+
"span",
|
|
366
|
+
"value",
|
|
367
|
+
"paddingRight",
|
|
368
|
+
"open",
|
|
369
|
+
";\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20.tooltip\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20absolute;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bottom:\x2075%;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20left:\x2085%;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20transform:\x20translateX(-50%);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none;\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2012px;\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.tooltip\x20a\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-decoration:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20blue;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.tooltip\x20a:hover\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-decoration:\x20underline;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20</style>\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22quantity\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22value\x22\x20style=\x22position:\x20relative;\x22>",
|
|
370
|
+
"mbar",
|
|
371
|
+
"132954OfraDR",
|
|
372
|
+
"updateDropdownWidth",
|
|
373
|
+
"offsetWidth",
|
|
374
|
+
"55SEPtnd",
|
|
375
|
+
"decimalPlaces",
|
|
376
|
+
"visibility",
|
|
377
|
+
"m\x20W.C.",
|
|
378
|
+
"object",
|
|
379
|
+
"1001808duvHNH",
|
|
380
|
+
"unit",
|
|
381
|
+
"text",
|
|
382
|
+
"change",
|
|
383
|
+
"attachShadow",
|
|
384
|
+
"none",
|
|
385
|
+
"getUnitCategory",
|
|
386
|
+
"tooltipTimeout",
|
|
387
|
+
"262356GcGZNr",
|
|
388
|
+
"psi",
|
|
389
|
+
"auto",
|
|
390
|
+
"g/mm³",
|
|
391
|
+
"removeChild",
|
|
392
|
+
"mm\x20W.C.",
|
|
393
|
+
"textContent",
|
|
394
|
+
"render",
|
|
395
|
+
"331248UpUHmg",
|
|
396
|
+
"handleUnitChange",
|
|
397
|
+
"block",
|
|
398
|
+
"innerHTML",
|
|
399
|
+
"1862772fvBhDh",
|
|
400
|
+
"cm\x20HG",
|
|
401
|
+
"ksi",
|
|
402
|
+
"lbm/in³",
|
|
403
|
+
"mouseout",
|
|
404
|
+
"<option\x20value=\x22",
|
|
405
|
+
"toPrecision",
|
|
406
|
+
"appendChild",
|
|
407
|
+
"</option>",
|
|
408
|
+
"mouseover",
|
|
409
|
+
"\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20</div>\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20",
|
|
410
|
+
"42BSMFEg",
|
|
411
|
+
"toString",
|
|
412
|
+
"atm",
|
|
413
|
+
"40OpGxHd",
|
|
414
|
+
"ksi[kip/in²]",
|
|
415
|
+
"lbm/ft³",
|
|
416
|
+
"target",
|
|
417
|
+
"kPa",
|
|
418
|
+
"observedAttributes",
|
|
419
|
+
".unit-container",
|
|
420
|
+
".tooltip",
|
|
421
|
+
"replace",
|
|
422
|
+
"physical-quantity",
|
|
423
|
+
"Custom",
|
|
424
|
+
"connectedCallback",
|
|
425
|
+
"select",
|
|
426
|
+
"body",
|
|
427
|
+
"hidden",
|
|
428
|
+
"85jryQLc",
|
|
429
|
+
"hasAttribute",
|
|
430
|
+
"amd",
|
|
431
|
+
"formatValue",
|
|
432
|
+
"createElement",
|
|
433
|
+
"in\x20HG",
|
|
434
|
+
"60162AqcMTj",
|
|
435
|
+
"units",
|
|
436
|
+
"\x0a\x20\x20\x20\x20\x20\x20<style>\x0a\x20\x20\x20\x20\x20\x20\x20\x20:host\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20inline-block;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.quantity\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\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\x20\x20.value\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-left:\x200.25em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-right:\x200.25em;\x0a\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\x20\x20.unit-container\x20select\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20inline-flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20blue;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20lightgray;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border-radius:\x200.25em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200.25em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x201px\x203px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20appearance:\x20",
|
|
437
|
+
"true",
|
|
438
|
+
"show-unit-arrow",
|
|
439
|
+
";\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-moz-appearance:\x20",
|
|
440
|
+
"Ampere[amp]",
|
|
441
|
+
"MPa",
|
|
442
|
+
"font",
|
|
443
|
+
"unitConversion",
|
|
444
|
+
"getAttribute",
|
|
445
|
+
"display",
|
|
446
|
+
"disconnectedCallback",
|
|
447
|
+
"kg/L",
|
|
448
|
+
"selected",
|
|
449
|
+
"removeEventListener",
|
|
450
|
+
";\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-webkit-appearance:\x20",
|
|
451
|
+
"2JvUEeb",
|
|
452
|
+
"h[hour]",
|
|
453
|
+
"pow",
|
|
454
|
+
"\x22\x20width=\x2212\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</a>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20",
|
|
455
|
+
"\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</select>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20",
|
|
456
|
+
"join",
|
|
457
|
+
"psf",
|
|
458
|
+
"floor",
|
|
459
|
+
"focus",
|
|
460
|
+
"attributeChangedCallback",
|
|
461
|
+
"kg/m³",
|
|
462
|
+
"querySelector",
|
|
463
|
+
"shadowRoot",
|
|
464
|
+
"bind",
|
|
465
|
+
"addEventListener",
|
|
466
|
+
"toFixed",
|
|
467
|
+
];
|
|
468
|
+
_0xe5ab = function () {
|
|
469
|
+
return _0x48bfc1;
|
|
470
|
+
};
|
|
471
|
+
return _0xe5ab();
|
|
472
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "physical-quantity",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.30",
|
|
4
4
|
"description": "A web component to represent a physical quantity with unit conversion.",
|
|
5
5
|
"main": "dist/pq.umd.js",
|
|
6
6
|
"module": "dist/pq.es.js",
|
|
@@ -21,7 +21,9 @@
|
|
|
21
21
|
},
|
|
22
22
|
"keywords": [
|
|
23
23
|
"web-component",
|
|
24
|
-
"physical-quantity"
|
|
24
|
+
"physical-quantity",
|
|
25
|
+
"unit conversion",
|
|
26
|
+
"unit converter"
|
|
25
27
|
],
|
|
26
28
|
"author": "E3d - Don Wen <don.wen@yahoo.com>",
|
|
27
29
|
"license": "MIT",
|