diff --git a/src/graphics/platform/PlatformDrawAssistant.ts b/src/graphics/platform/PlatformDrawAssistant.ts index 407289d..af080cf 100644 --- a/src/graphics/platform/PlatformDrawAssistant.ts +++ b/src/graphics/platform/PlatformDrawAssistant.ts @@ -31,7 +31,7 @@ export class PlatformDraw extends GraphicDrawAssistant< app, new PlatformTemplate(), createData, - 'svguse:/drawIcon.svg#icon-platform', + 'svguse:../../drawIcon.svg#icon-platform', '站台Platform' ); this.container.addChild(this.platformGraphic); diff --git a/src/graphics/signal/SignalDrawAssistant.ts b/src/graphics/signal/SignalDrawAssistant.ts index 7556589..2e84440 100644 --- a/src/graphics/signal/SignalDrawAssistant.ts +++ b/src/graphics/signal/SignalDrawAssistant.ts @@ -23,7 +23,7 @@ export class SignalDraw extends GraphicDrawAssistant< app, new SignalTemplate(), createData, - 'svguse: /drawIcon.svg#icon-signal', + 'svguse: ../../drawIcon.svg#icon-signal', '信号机Signal' ); @@ -52,7 +52,7 @@ export class SignalDraw extends GraphicDrawAssistant< onRightClick(): void { this.createAndStore(true); } - onLeftDown(e: FederatedPointerEvent): void { + onLeftUp(e: FederatedPointerEvent): void { this.container.position.copyFrom(this.toCanvasCoordinates(e.global)); this.createAndStore(true); } diff --git a/src/graphics/station/StationDrawAssistant.ts b/src/graphics/station/StationDrawAssistant.ts index e03fd9c..4508486 100644 --- a/src/graphics/station/StationDrawAssistant.ts +++ b/src/graphics/station/StationDrawAssistant.ts @@ -23,7 +23,7 @@ export class StationDraw extends GraphicDrawAssistant< app, new StationTemplate(), createData, - 'svguse:/drawIcon.svg#icon-station', + 'svguse:../../drawIcon.svg#icon-station', '车站Station' ); this.codeGraph = this.graphicTemplate.new();