From f02474d72db77eba298047779865ce53f7929b80 Mon Sep 17 00:00:00 2001 From: dong <58670809@qq.com> Date: Thu, 4 Jan 2024 16:45:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=BD=A6=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/packages/Train/Train.d.ts | 2 -- components/packages/Train/Train.js | 6 ------ 2 files changed, 8 deletions(-) diff --git a/components/packages/Train/Train.d.ts b/components/packages/Train/Train.d.ts index aefe210..86e4d87 100644 --- a/components/packages/Train/Train.d.ts +++ b/components/packages/Train/Train.d.ts @@ -9,7 +9,6 @@ declare class TrainHead extends Container { arrow: Graphics; pause: Graphics; train: Train; - isStop: boolean; arrowColor: string; pauseColor: string; constructor(train: Train); @@ -51,7 +50,6 @@ export declare class Train extends JlGraphic { constructor(data?: UpdateTrainConsts); get datas(): ITrainData; doRepaint(): void; - setIsStop(v: boolean): void; setArrowVisible(v: boolean): void; setPauseVisible(v: boolean): void; run(): void; diff --git a/components/packages/Train/Train.js b/components/packages/Train/Train.js index 7e52f06..ac59612 100644 --- a/components/packages/Train/Train.js +++ b/components/packages/Train/Train.js @@ -6,7 +6,6 @@ class TrainHead extends Container { arrow; // 列车箭头 pause; // 列车停止 train; - isStop; arrowColor; pauseColor; constructor(train) { @@ -16,7 +15,6 @@ class TrainHead extends Container { this.addChild(this.arrow); this.addChild(this.pause); this.train = train; - this.isStop = true; this.arrowColor = this.train.constDatas.arrowDefaultColor; this.pauseColor = this.train.constDatas.pauseDefaultColor; } @@ -224,10 +222,6 @@ class Train extends JlGraphic { this.trainbody.doRepaint(); this.trainHead.doRepaint(); } - // 设置列车是否显示停止 - setIsStop(v) { - this.trainHead.isStop = v; - } // 设置列车箭头是否显示 setArrowVisible(v) { this.trainHead.arrow.visible = v;