• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

excaliburjs / Excalibur / 14804036802

02 May 2025 09:58PM UTC coverage: 5.927% (-83.4%) from 89.28%
14804036802

Pull #3404

github

web-flow
Merge 5c103d7f8 into 0f2ccaeb2
Pull Request #3404: feat: added Graph module to Math

234 of 8383 branches covered (2.79%)

229 of 246 new or added lines in 1 file covered. (93.09%)

13145 existing lines in 208 files now uncovered.

934 of 15759 relevant lines covered (5.93%)

4.72 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

8.33
/src/engine/TileMap/IsometricEntitySystem.ts
1
import { System, SystemType } from '../EntityComponentSystem/System';
2
import { TransformComponent } from '../EntityComponentSystem/Components/TransformComponent';
3
import { IsometricEntityComponent } from './IsometricEntityComponent';
4
import { Query, SystemPriority, World } from '../EntityComponentSystem';
5

6
export class IsometricEntitySystem extends System {
7
  static priority: number = SystemPriority.Lower;
1✔
8

UNCOV
9
  public readonly systemType = SystemType.Update;
×
10
  query: Query<typeof TransformComponent | typeof IsometricEntityComponent>;
UNCOV
11
  constructor(public world: World) {
×
UNCOV
12
    super();
×
UNCOV
13
    this.query = this.world.query([TransformComponent, IsometricEntityComponent]);
×
14
  }
15

16
  update(): void {
17
    let transform: TransformComponent;
18
    let iso: IsometricEntityComponent;
UNCOV
19
    for (let i = 0; i < this.query.entities.length; i++) {
×
UNCOV
20
      const entity = this.query.entities[i];
×
UNCOV
21
      transform = entity.get(TransformComponent);
×
UNCOV
22
      iso = entity.get(IsometricEntityComponent);
×
23

UNCOV
24
      const maxZindexPerElevation = Math.max(iso.columns * iso.tileWidth, iso.rows * iso.tileHeight);
×
25

UNCOV
26
      const newZ = maxZindexPerElevation * iso.elevation + transform.pos.y;
×
UNCOV
27
      transform.z = newZ;
×
28
    }
29
  }
30
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc