From 3c3a0a2ecb69159b9daea2f395618b878b813f0c Mon Sep 17 00:00:00 2001 From: joylink_zhaoerwei Date: Wed, 10 Jan 2024 16:06:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/packages/Platform/GPPlatform.d.ts | 4 ++-- components/packages/Platform/PlatformTemplate.d.ts | 4 ++-- src/packages/Platform/GPPlatform.ts | 6 +++--- src/packages/Platform/PlatformTemplate.ts | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/components/packages/Platform/GPPlatform.d.ts b/components/packages/Platform/GPPlatform.d.ts index 15b6d2c..e079e07 100644 --- a/components/packages/Platform/GPPlatform.d.ts +++ b/components/packages/Platform/GPPlatform.d.ts @@ -1,10 +1,10 @@ import { GraphicState } from 'jl-graphic'; import { JlPlatform } from './JlPlatform'; -export interface IBeiJingPlatformState extends GraphicState { +export interface IGPPlatformState extends GraphicState { id?: number; } export declare class GPPlatform extends JlPlatform { constructor(); - get states(): IBeiJingPlatformState; + get states(): IGPPlatformState; doRepaint(): void; } diff --git a/components/packages/Platform/PlatformTemplate.d.ts b/components/packages/Platform/PlatformTemplate.d.ts index 62cfa74..f06e4ab 100644 --- a/components/packages/Platform/PlatformTemplate.d.ts +++ b/components/packages/Platform/PlatformTemplate.d.ts @@ -2,12 +2,12 @@ import { JlGraphicTemplate } from 'jl-graphic'; import { JlPlatform } from './JlPlatform'; import { IPlatformData } from './PlatformConfig'; import { ITHPlatformState } from './THPlatform'; -import { IBeiJingPlatformState } from './GPPlatform'; +import { IGPPlatformState } from './GPPlatform'; import { StyleType } from 'common/common'; export declare class PlatformTemplate extends JlGraphicTemplate { hasdoor?: boolean; direction?: string; styleType: StyleType; - constructor(dataTemplate: IPlatformData, stateTemplate: ITHPlatformState | IBeiJingPlatformState, styleType: StyleType); + constructor(dataTemplate: IPlatformData, stateTemplate: ITHPlatformState | IGPPlatformState, styleType: StyleType); new(): JlPlatform; } diff --git a/src/packages/Platform/GPPlatform.ts b/src/packages/Platform/GPPlatform.ts index 76785fa..0d1f22f 100644 --- a/src/packages/Platform/GPPlatform.ts +++ b/src/packages/Platform/GPPlatform.ts @@ -2,7 +2,7 @@ import { GraphicState } from 'jl-graphic'; import { GPConsts } from './PlatformConfig'; import { JlPlatform } from './JlPlatform'; -export interface IBeiJingPlatformState extends GraphicState { +export interface IGPPlatformState extends GraphicState { id?: number; } @@ -10,8 +10,8 @@ export class GPPlatform extends JlPlatform { constructor() { super(GPConsts); } - get states(): IBeiJingPlatformState { - return this.getStates(); + get states(): IGPPlatformState { + return this.getStates(); } doRepaint(): void { this.rectGraphic.stateFillColor = GPConsts.noTrainStop; diff --git a/src/packages/Platform/PlatformTemplate.ts b/src/packages/Platform/PlatformTemplate.ts index adde8e5..716ef61 100644 --- a/src/packages/Platform/PlatformTemplate.ts +++ b/src/packages/Platform/PlatformTemplate.ts @@ -2,7 +2,7 @@ import { JlGraphicTemplate } from 'jl-graphic'; import { JlPlatform } from './JlPlatform'; import { IPlatformData } from './PlatformConfig'; import { ITHPlatformState, THPlatform } from './THPlatform'; -import { GPPlatform, IBeiJingPlatformState } from './GPPlatform'; +import { GPPlatform, IGPPlatformState } from './GPPlatform'; import { StyleType } from 'common/common'; export class PlatformTemplate extends JlGraphicTemplate { @@ -11,7 +11,7 @@ export class PlatformTemplate extends JlGraphicTemplate { styleType: StyleType; constructor( dataTemplate: IPlatformData, - stateTemplate: ITHPlatformState | IBeiJingPlatformState, + stateTemplate: ITHPlatformState | IGPPlatformState, styleType: StyleType, ) { super(JlPlatform.Type, { dataTemplate, stateTemplate });