Merge branch 'master' of https://git.code.tencent.com/beijing-rtss-test/bj-rtss-client
This commit is contained in:
commit
81857d1087
@ -139,7 +139,7 @@ class smallDoorGraphic extends Container {
|
||||
this.addChild(this.smallDoorGraphic);
|
||||
this.addChild(this.labelGraphic);
|
||||
}
|
||||
draw(direction: string, stateData: IPlatformState, i): void {
|
||||
draw(direction: string, stateData: IPlatformState, i: number): void {
|
||||
const start =
|
||||
-platformConsts.smallDoorWidth * 15 + platformConsts.smallDoorWidth * i;
|
||||
const smallDoorGraphic = this.smallDoorGraphic;
|
||||
@ -175,9 +175,9 @@ export class doorGraphic extends Container {
|
||||
}
|
||||
}
|
||||
clear(): void {
|
||||
this.children.forEach((smallDoorGraphic) => {
|
||||
smallDoorGraphic.children[0].clear();
|
||||
smallDoorGraphic.children[1].text = '';
|
||||
this.children.forEach((g) => {
|
||||
(g as smallDoorGraphic).smallDoorGraphic.clear();
|
||||
(g as smallDoorGraphic).labelGraphic.text = '';
|
||||
});
|
||||
}
|
||||
// changeState(stateData: IPlatformState): void {
|
||||
|
Loading…
Reference in New Issue
Block a user