问题调整
This commit is contained in:
parent
81340970ae
commit
adf0197b68
@ -31,7 +31,7 @@ export class PlatformDraw extends GraphicDrawAssistant<
|
|||||||
app,
|
app,
|
||||||
new PlatformTemplate(),
|
new PlatformTemplate(),
|
||||||
createData,
|
createData,
|
||||||
'svguse:/drawIcon.svg#icon-platform',
|
'svguse:../../drawIcon.svg#icon-platform',
|
||||||
'站台Platform'
|
'站台Platform'
|
||||||
);
|
);
|
||||||
this.container.addChild(this.platformGraphic);
|
this.container.addChild(this.platformGraphic);
|
||||||
|
@ -23,7 +23,7 @@ export class SignalDraw extends GraphicDrawAssistant<
|
|||||||
app,
|
app,
|
||||||
new SignalTemplate(),
|
new SignalTemplate(),
|
||||||
createData,
|
createData,
|
||||||
'svguse: /drawIcon.svg#icon-signal',
|
'svguse: ../../drawIcon.svg#icon-signal',
|
||||||
'信号机Signal'
|
'信号机Signal'
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -52,7 +52,7 @@ export class SignalDraw extends GraphicDrawAssistant<
|
|||||||
onRightClick(): void {
|
onRightClick(): void {
|
||||||
this.createAndStore(true);
|
this.createAndStore(true);
|
||||||
}
|
}
|
||||||
onLeftDown(e: FederatedPointerEvent): void {
|
onLeftUp(e: FederatedPointerEvent): void {
|
||||||
this.container.position.copyFrom(this.toCanvasCoordinates(e.global));
|
this.container.position.copyFrom(this.toCanvasCoordinates(e.global));
|
||||||
this.createAndStore(true);
|
this.createAndStore(true);
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,7 @@ export class StationDraw extends GraphicDrawAssistant<
|
|||||||
app,
|
app,
|
||||||
new StationTemplate(),
|
new StationTemplate(),
|
||||||
createData,
|
createData,
|
||||||
'svguse:/drawIcon.svg#icon-station',
|
'svguse:../../drawIcon.svg#icon-station',
|
||||||
'车站Station'
|
'车站Station'
|
||||||
);
|
);
|
||||||
this.codeGraph = this.graphicTemplate.new();
|
this.codeGraph = this.graphicTemplate.new();
|
||||||
|
Loading…
Reference in New Issue
Block a user