Add large and medium motor speed labels (#480)

* Add large and medium motor speed labels

* Support dual motor labels.
This commit is contained in:
Sam El-Husseini
2018-04-10 11:50:58 -07:00
committed by GitHub
parent 8398c8efdb
commit 379a6a26be
6 changed files with 43 additions and 4 deletions

View File

@ -26,5 +26,10 @@ namespace pxsim.visuals {
const transform = `translate(2 1.84) rotate(${angle} ${width / 2} ${height / 2})`;
holeEl.setAttribute("transform", transform);
}
protected positionMotorLabel() {
this.motorLabelGroup.setAttribute('transform', 'translate(25 13)');
this.motorLabel.style.fontSize = '11px';
}
}
}