Compare commits
No commits in common. "562e2ea9dcb27c2f50a28531197deb2c9d7b6f0f" and "215eb20a55766e9130f9c55c5dfe50a802bd7bf4" have entirely different histories.
562e2ea9dc
...
215eb20a55
BIN
imgs/127ohm.png
BIN
imgs/127ohm.png
Binary file not shown.
Before Width: | Height: | Size: 2.3 MiB After Width: | Height: | Size: 2.6 MiB |
@ -47,7 +47,7 @@ class Resistor {
|
||||
${svg}
|
||||
</g>
|
||||
</svg>`
|
||||
element.innerHTML = thesvg;
|
||||
element.innerHTML += thesvg;
|
||||
}
|
||||
}
|
||||
|
||||
@ -57,7 +57,7 @@ class NestedResistor extends Resistor {
|
||||
constructor(l, func, instance) {
|
||||
super(func(l.map(e => e.getOhmage())));
|
||||
this.func = func
|
||||
this.children = flatten(l, instance);
|
||||
this.children = flatten(l, instance.constructor.name);
|
||||
}
|
||||
cost() {
|
||||
return sum(this.children.map(e => e.cost()));
|
||||
|
Loading…
Reference in New Issue
Block a user