positioning systemled
This commit is contained in:
parent
ae6917c7b3
commit
7f2fd0dd09
@ -478,7 +478,7 @@ namespace pxsim.visuals {
|
|||||||
private lastFlashTime: number = 0;
|
private lastFlashTime: number = 0;
|
||||||
public flashSystemLed() {
|
public flashSystemLed() {
|
||||||
if (!this.systemLed)
|
if (!this.systemLed)
|
||||||
this.systemLed = <SVGCircleElement>svg.child(this.g, "circle", { class: "sim-systemled", cx: 300, cy: 20, r: 5 })
|
this.systemLed = <SVGCircleElement>svg.child(this.g, "circle", { class: "sim-systemled", cx: 95, cy: 73, r: 5 })
|
||||||
let now = Date.now();
|
let now = Date.now();
|
||||||
if (now - this.lastFlashTime > 150) {
|
if (now - this.lastFlashTime > 150) {
|
||||||
this.lastFlashTime = now;
|
this.lastFlashTime = now;
|
||||||
|
Loading…
Reference in New Issue
Block a user