diff options
Diffstat (limited to 'js/Electrical')
-rw-r--r-- | js/Electrical/Capacitor.js | 4 | ||||
-rw-r--r-- | js/Electrical/ConstantVoltage.js | 2 | ||||
-rw-r--r-- | js/Electrical/Diode.js | 8 | ||||
-rw-r--r-- | js/Electrical/Gyrator.js | 4 | ||||
-rw-r--r-- | js/Electrical/IdealTransformer.js | 2 | ||||
-rw-r--r-- | js/Electrical/Inductor.js | 2 | ||||
-rw-r--r-- | js/Electrical/NMOS.js | 18 | ||||
-rw-r--r-- | js/Electrical/NPN.js | 34 | ||||
-rw-r--r-- | js/Electrical/OpAmp.js | 6 | ||||
-rw-r--r-- | js/Electrical/PMOS.js | 18 | ||||
-rw-r--r-- | js/Electrical/PNP.js | 34 | ||||
-rw-r--r-- | js/Electrical/Resistor.js | 2 | ||||
-rw-r--r-- | js/Electrical/SineVoltage.js | 10 | ||||
-rw-r--r-- | js/Electrical/Switch.js | 4 | ||||
-rw-r--r-- | js/Electrical/VVsourceAC.js | 2 | ||||
-rw-r--r-- | js/Electrical/VsourceAC.js | 4 |
16 files changed, 77 insertions, 77 deletions
diff --git a/js/Electrical/Capacitor.js b/js/Electrical/Capacitor.js index 478d4f5d..c2d112a7 100644 --- a/js/Electrical/Capacitor.js +++ b/js/Electrical/Capacitor.js @@ -34,8 +34,8 @@ function Capacitor() { return options; } Capacitor.prototype.set = function Capacitor() { - this.C = parseFloat((arguments[0]["C"])) - this.v = parseFloat((arguments[0]["v"])) + this.C = parseFloat(arguments[0]["C"]) + this.v = parseFloat(arguments[0]["v"]) this.x = arg1; graphics = arg1.graphics; exprs = graphics.exprs; diff --git a/js/Electrical/ConstantVoltage.js b/js/Electrical/ConstantVoltage.js index 1d73e05d..afb791b1 100644 --- a/js/Electrical/ConstantVoltage.js +++ b/js/Electrical/ConstantVoltage.js @@ -31,7 +31,7 @@ function ConstantVoltage() { return options; } ConstantVoltage.prototype.set = function ConstantVoltage() { - this.V = parseFloat((arguments[0]["V"])) + this.V = parseFloat(arguments[0]["V"]) this.x = arg1; graphics = arg1.graphics; exprs = graphics.exprs; diff --git a/js/Electrical/Diode.js b/js/Electrical/Diode.js index 645cca15..07c96fcc 100644 --- a/js/Electrical/Diode.js +++ b/js/Electrical/Diode.js @@ -38,10 +38,10 @@ function Diode() { return options; } Diode.prototype.set = function Diode() { - this.Ids = parseFloat((arguments[0]["Ids"])) - this.Vt = parseFloat((arguments[0]["Vt"])) - this.Maxexp = parseFloat((arguments[0]["Maxexp"])) - this.R = parseFloat((arguments[0]["R"])) + this.Ids = parseFloat(arguments[0]["Ids"]) + this.Vt = parseFloat(arguments[0]["Vt"]) + this.Maxexp = parseFloat(arguments[0]["Maxexp"]) + this.R = parseFloat(arguments[0]["R"]) this.x = arg1; graphics = arg1.graphics; exprs = graphics.exprs; diff --git a/js/Electrical/Gyrator.js b/js/Electrical/Gyrator.js index 0b0ec7dd..988d2f0c 100644 --- a/js/Electrical/Gyrator.js +++ b/js/Electrical/Gyrator.js @@ -60,8 +60,8 @@ function Gyrator() { return options; } Gyrator.prototype.set = function Gyrator() { - this.G1 = parseFloat((arguments[0]["G1"])) - this.G2 = parseFloat((arguments[0]["G2"])) + this.G1 = arguments[0]["G1"] + this.G2 = arguments[0]["G2"] this.x = arg1; graphics = arg1.graphics; exprs = graphics.exprs; diff --git a/js/Electrical/IdealTransformer.js b/js/Electrical/IdealTransformer.js index f74a402d..0eb36484 100644 --- a/js/Electrical/IdealTransformer.js +++ b/js/Electrical/IdealTransformer.js @@ -59,7 +59,7 @@ function IdealTransformer() { return options; } IdealTransformer.prototype.set = function IdealTransformer() { - this.N = parseFloat((arguments[0]["N"])) + this.N = arguments[0]["N"] this.x = arg1; graphics = arg1.graphics; exprs = graphics.exprs; diff --git a/js/Electrical/Inductor.js b/js/Electrical/Inductor.js index 98ca66a8..f7452810 100644 --- a/js/Electrical/Inductor.js +++ b/js/Electrical/Inductor.js @@ -31,7 +31,7 @@ function Inductor() { return options; } Inductor.prototype.set = function Inductor() { - this.L = parseFloat((arguments[0]["L"])) + this.L = parseFloat(arguments[0]["L"]) this.x = arg1; graphics = arg1.graphics; exprs = graphics.exprs; diff --git a/js/Electrical/NMOS.js b/js/Electrical/NMOS.js index 9d8acf42..06efb39c 100644 --- a/js/Electrical/NMOS.js +++ b/js/Electrical/NMOS.js @@ -47,15 +47,15 @@ function NMOS() { return options; } NMOS.prototype.set = function NMOS() { - this.W = parseFloat((arguments[0]["W"])) - this.L = parseFloat((arguments[0]["L"])) - this.Beta = parseFloat((arguments[0]["Beta"])) - this.Vt = parseFloat((arguments[0]["Vt"])) - this.K2 = parseFloat((arguments[0]["K2"])) - this.K5 = parseFloat((arguments[0]["K5"])) - this.dW = parseFloat((arguments[0]["dW"])) - this.dL = parseFloat((arguments[0]["dL"])) - this.RDS = parseFloat((arguments[0]["RDS"])) + this.W = parseFloat(arguments[0]["W"]) + this.L = parseFloat(arguments[0]["L"]) + this.Beta = parseFloat(arguments[0]["Beta"]) + this.Vt = parseFloat(arguments[0]["Vt"]) + this.K2 = parseFloat(arguments[0]["K2"]) + this.K5 = parseFloat(arguments[0]["K5"]) + this.dW = parseFloat(arguments[0]["dW"]) + this.dL = parseFloat(arguments[0]["dL"]) + this.RDS = parseFloat(arguments[0]["RDS"]) this.x = arg1; graphics = arg1.graphics; exprs = graphics.exprs; diff --git a/js/Electrical/NPN.js b/js/Electrical/NPN.js index b54740fa..e8f8d167 100644 --- a/js/Electrical/NPN.js +++ b/js/Electrical/NPN.js @@ -75,23 +75,23 @@ function NPN() { return options; } NPN.prototype.set = function NPN() { - this.Bf = parseFloat((arguments[0]["Bf"])) - this.Br = parseFloat((arguments[0]["Br"])) - this.Is = parseFloat((arguments[0]["Is"])) - this.Vak = parseFloat((arguments[0]["Vak"])) - this.Tauf = parseFloat((arguments[0]["Tauf"])) - this.Taur = parseFloat((arguments[0]["Taur"])) - this.Ccs = parseFloat((arguments[0]["Ccs"])) - this.Cje = parseFloat((arguments[0]["Cje"])) - this.Cjc = parseFloat((arguments[0]["Cjc"])) - this.Phie = parseFloat((arguments[0]["Phie"])) - this.Me = parseFloat((arguments[0]["Me"])) - this.Phic = parseFloat((arguments[0]["Phic"])) - this.Mc = parseFloat((arguments[0]["Mc"])) - this.Gbc = parseFloat((arguments[0]["Gbc"])) - this.Gbe = parseFloat((arguments[0]["Gbe"])) - this.Vt = parseFloat((arguments[0]["Vt"])) - this.EMinMax = parseFloat((arguments[0]["EMinMax"])) + this.Bf = arguments[0]["Bf"] + this.Br = arguments[0]["Br"] + this.Is = arguments[0]["Is"] + this.Vak = arguments[0]["Vak"] + this.Tauf = arguments[0]["Tauf"] + this.Taur = arguments[0]["Taur"] + this.Ccs = arguments[0]["Ccs"] + this.Cje = arguments[0]["Cje"] + this.Cjc = arguments[0]["Cjc"] + this.Phie = arguments[0]["Phie"] + this.Me = arguments[0]["Me"] + this.Phic = arguments[0]["Phic"] + this.Mc = arguments[0]["Mc"] + this.Gbc = arguments[0]["Gbc"] + this.Gbe = arguments[0]["Gbe"] + this.Vt = arguments[0]["Vt"] + this.EMinMax = arguments[0]["EMinMax"] this.x = arg1; graphics = arg1.graphics; exprs = graphics.exprs; diff --git a/js/Electrical/OpAmp.js b/js/Electrical/OpAmp.js index b056b0b0..df6e5e00 100644 --- a/js/Electrical/OpAmp.js +++ b/js/Electrical/OpAmp.js @@ -35,9 +35,9 @@ function OpAmp() { return options; } OpAmp.prototype.set = function OpAmp() { - this.OLGain = parseFloat((arguments[0]["OLGain"])) - this.SatH = parseFloat((arguments[0]["SatH"])) - this.SatL = parseFloat((arguments[0]["SatL"])) + this.OLGain = arguments[0]["OLGain"] + this.SatH = arguments[0]["SatH"] + this.SatL = arguments[0]["SatL"] this.x = arg1; graphics = arg1.graphics; exprs = graphics.exprs; diff --git a/js/Electrical/PMOS.js b/js/Electrical/PMOS.js index 103e399d..4d2a2d7f 100644 --- a/js/Electrical/PMOS.js +++ b/js/Electrical/PMOS.js @@ -47,15 +47,15 @@ function PMOS() { return options; } PMOS.prototype.set = function PMOS() { - this.W = parseFloat((arguments[0]["W"])) - this.L = parseFloat((arguments[0]["L"])) - this.Beta = parseFloat((arguments[0]["Beta"])) - this.Vt = parseFloat((arguments[0]["Vt"])) - this.K2 = parseFloat((arguments[0]["K2"])) - this.K5 = parseFloat((arguments[0]["K5"])) - this.dW = parseFloat((arguments[0]["dW"])) - this.dL = parseFloat((arguments[0]["dL"])) - this.RDS = parseFloat((arguments[0]["RDS"])) + this.W = parseFloat(arguments[0]["W"]) + this.L = parseFloat(arguments[0]["L"]) + this.Beta = parseFloat(arguments[0]["Beta"]) + this.Vt = parseFloat(arguments[0]["Vt"]) + this.K2 = parseFloat(arguments[0]["K2"]) + this.K5 = parseFloat(arguments[0]["K5"]) + this.dW = parseFloat(arguments[0]["dW"]) + this.dL = parseFloat(arguments[0]["dL"]) + this.RDS = parseFloat(arguments[0]["RDS"]) this.x = arg1; graphics = arg1.graphics; exprs = graphics.exprs; diff --git a/js/Electrical/PNP.js b/js/Electrical/PNP.js index 088914ec..ecb4cc99 100644 --- a/js/Electrical/PNP.js +++ b/js/Electrical/PNP.js @@ -75,23 +75,23 @@ function PNP() { return options; } PNP.prototype.set = function PNP() { - this.Bf = parseFloat((arguments[0]["Bf"])) - this.Br = parseFloat((arguments[0]["Br"])) - this.Is = parseFloat((arguments[0]["Is"])) - this.Vak = parseFloat((arguments[0]["Vak"])) - this.Tauf = parseFloat((arguments[0]["Tauf"])) - this.Taur = parseFloat((arguments[0]["Taur"])) - this.Ccs = parseFloat((arguments[0]["Ccs"])) - this.Cje = parseFloat((arguments[0]["Cje"])) - this.Cjc = parseFloat((arguments[0]["Cjc"])) - this.Phie = parseFloat((arguments[0]["Phie"])) - this.Me = parseFloat((arguments[0]["Me"])) - this.Phic = parseFloat((arguments[0]["Phic"])) - this.Mc = parseFloat((arguments[0]["Mc"])) - this.Gbc = parseFloat((arguments[0]["Gbc"])) - this.Gbe = parseFloat((arguments[0]["Gbe"])) - this.Vt = parseFloat((arguments[0]["Vt"])) - this.EMinMax = parseFloat((arguments[0]["EMinMax"])) + this.Bf = arguments[0]["Bf"] + this.Br = arguments[0]["Br"] + this.Is = arguments[0]["Is"] + this.Vak = arguments[0]["Vak"] + this.Tauf = arguments[0]["Tauf"] + this.Taur = arguments[0]["Taur"] + this.Ccs = arguments[0]["Ccs"] + this.Cje = arguments[0]["Cje"] + this.Cjc = arguments[0]["Cjc"] + this.Phie = arguments[0]["Phie"] + this.Me = arguments[0]["Me"] + this.Phic = arguments[0]["Phic"] + this.Mc = arguments[0]["Mc"] + this.Gbc = arguments[0]["Gbc"] + this.Gbe = arguments[0]["Gbe"] + this.Vt = arguments[0]["Vt"] + this.EMinMax = arguments[0]["EMinMax"] this.x = arg1; graphics = arg1.graphics; exprs = graphics.exprs; diff --git a/js/Electrical/Resistor.js b/js/Electrical/Resistor.js index 7c6147d6..be2d95bf 100644 --- a/js/Electrical/Resistor.js +++ b/js/Electrical/Resistor.js @@ -31,7 +31,7 @@ function Resistor() { return options; } Resistor.prototype.set = function Resistor() { - this.R = parseFloat((arguments[0]["R"])) + this.R = parseFloat(arguments[0]["R"]) this.x = arg1; graphics = arg1.graphics; exprs = graphics.exprs; diff --git a/js/Electrical/SineVoltage.js b/js/Electrical/SineVoltage.js index c92aeefc..cd36b471 100644 --- a/js/Electrical/SineVoltage.js +++ b/js/Electrical/SineVoltage.js @@ -40,11 +40,11 @@ function SineVoltage() { return options; } SineVoltage.prototype.set = function SineVoltage() { - this.V = parseFloat((arguments[0]["V"])) - this.ph = parseFloat((arguments[0]["ph"])) - this.frq = parseFloat((arguments[0]["frq"])) - this.offset = parseFloat((arguments[0]["offset"])) - this.start = parseFloat((arguments[0]["start"])) + this.V = parseFloat(arguments[0]["V"]) + this.ph = parseFloat(arguments[0]["ph"]) + this.frq = parseFloat(arguments[0]["frq"]) + this.offset = parseFloat(arguments[0]["offset"]) + this.start = parseFloat(arguments[0]["start"]) this.x = arg1; graphics = arg1.graphics; exprs = graphics.exprs; diff --git a/js/Electrical/Switch.js b/js/Electrical/Switch.js index 46e66473..eff6b74e 100644 --- a/js/Electrical/Switch.js +++ b/js/Electrical/Switch.js @@ -36,8 +36,8 @@ function Switch() { return options; } Switch.prototype.set = function Switch() { - this.Ron = parseFloat((arguments[0]["Ron"])) - this.Roff = parseFloat((arguments[0]["Roff"])) + this.Ron = parseFloat(arguments[0]["Ron"]) + this.Roff = parseFloat(arguments[0]["Roff"]) this.x = arg1; graphics = arg1.graphics; exprs = graphics.exprs; diff --git a/js/Electrical/VVsourceAC.js b/js/Electrical/VVsourceAC.js index 8b56a29e..228d84ac 100644 --- a/js/Electrical/VVsourceAC.js +++ b/js/Electrical/VVsourceAC.js @@ -33,7 +33,7 @@ function VVsourceAC() { return options; } VVsourceAC.prototype.set = function VVsourceAC() { - this.FR = parseFloat((arguments[0]["FR"])) + this.FR = parseFloat(arguments[0]["FR"]) this.x = arg1; graphics = arg1.graphics; exprs = graphics.exprs; diff --git a/js/Electrical/VsourceAC.js b/js/Electrical/VsourceAC.js index 527a1bfd..9dd180d9 100644 --- a/js/Electrical/VsourceAC.js +++ b/js/Electrical/VsourceAC.js @@ -34,8 +34,8 @@ function VsourceAC() { return options; } VsourceAC.prototype.set = function VsourceAC() { - this.VA = parseFloat((arguments[0]["VA"])) - this.FR = parseFloat((arguments[0]["FR"])) + this.VA = parseFloat(arguments[0]["VA"]) + this.FR = parseFloat(arguments[0]["FR"]) this.x = arg1; graphics = arg1.graphics; exprs = graphics.exprs; |