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

excaliburjs / Excalibur / 16699382598
89%

Build:
DEFAULT BRANCH: main
Ran 03 Aug 2025 12:49AM UTC
Jobs 1
Files 237
Run time 2791min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 Aug 2025 12:44AM UTC coverage: 87.973% (+0.001%) from 87.972%
16699382598

push

github

web-flow
feat: Support meta data for Animation (#3490)

Feature requested on the discord: https://discord.com/channels/1195771303215513671/1400805035503390721

# Changes

arbitrary meta data can now be added for an `Animation`

```ts
const rect = new ex.Rectangle({
  width: 100,
  height: 100,
  color: ex.Color.Blue
});
const anim = new ex.Animation({
  frames: [
    {
      graphic: rect,
      duration: 100
    }
  ],
  data: { someKey: 'someValue' }
});

console.log(anim.data.get('someKey')) // someValue

anim.data.set('otherKey', 'otherValue')
console.log(anim.data.get('otherKey')) // otherValue
```

`fromSpriteSheet(...)` now also accepts data as an optional argument.

```ts
const anim = ex.Animation.fromSpriteSheet(someSpriteSheet, [0, 1, 2, 3], 100, ex.AnimationStrategy.Freeze, {
  someKey: 'someValue'
});
```

as well as `fromSpriteSheetCoordinates({...})`

```ts
const anim = ex.Animation.fromSpriteSheetCoordinates({
  spriteSheet: someSpriteSheet,
  frameCoordinates: [{ x: 0, y: 0, duration: 100 }],
  data: {
    someKey: 'someValue'
  }
});
```

5162 of 7149 branches covered (72.21%)

2 of 2 new or added lines in 1 file covered. (100.0%)

13956 of 15864 relevant lines covered (87.97%)

24780.07 hits per line

Jobs
ID Job ID Ran Files Coverage
1 16699382598.1 03 Aug 2025 12:49AM UTC 237
87.97
GitHub Action Run
Source Files on build 16699382598
  • Tree
  • List 237
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #16699382598
  • 04670b3b on github
  • Prev Build on main (#16698893261)
  • Next Build on main (#16730880984)
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