Update large motor view SVG so that the drop shadow is outside the hole SVG

This commit is contained in:
Sam El-Husseini
2018-01-12 13:50:09 -08:00
parent d0aa68aeee
commit da9bea30b5
3 changed files with 146 additions and 176 deletions

View File

@ -46,9 +46,9 @@ namespace pxsim.visuals {
}
protected renderMotorAngle(holeEl: Element, angle: number) {
const width = 125.92;
const height = 37.9;
const transform = `rotate(${angle} ${width / 2} ${height / 2})`;
const width = 35.92;
const height = 35.9;
const transform = `translate(45.000000, 1.000000) rotate(${angle} ${width / 2} ${height / 2})`;
holeEl.setAttribute("transform", transform);
}