@flighthq/bitmapfont 0.5.1-next.704.19c91ec → 0.5.1-next.730.f29a5aa

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -13,5 +13,5 @@ Import the supported application-facing API from `@flighthq/bitmapfont`. The `@f
13
13
  This package is part of the locked-version Flight SDK graph. Applications may instead install and import `@flighthq/sdk` when package-level tree shaking is sufficient.
14
14
 
15
15
  - [Flight project](https://github.com/flighthq/flight)
16
- - [Source for @flighthq/bitmapfont@0.5.1-next.704.19c91ec](https://github.com/flighthq/flight/tree/19c91ec3e569d6b3b471682726465a79fba9f8cb/packages/bitmapfont)
17
- - [License](https://github.com/flighthq/flight/blob/19c91ec3e569d6b3b471682726465a79fba9f8cb/LICENSE.md)
16
+ - [Source for @flighthq/bitmapfont@0.5.1-next.730.f29a5aa](https://github.com/flighthq/flight/tree/f29a5aab5db192284ce5cadf08ffae2649a598ea/packages/bitmapfont)
17
+ - [License](https://github.com/flighthq/flight/blob/f29a5aab5db192284ce5cadf08ffae2649a598ea/LICENSE.md)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flighthq/bitmapfont",
3
- "version": "0.5.1-next.704.19c91ec",
3
+ "version": "0.5.1-next.730.f29a5aa",
4
4
  "author": "Joshua Granick and other contributors",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -38,10 +38,10 @@
38
38
  "clean:dist": "tsx ../../scripts/clean-package-dist.ts"
39
39
  },
40
40
  "dependencies": {
41
- "@flighthq/log": "0.5.1-next.704.19c91ec",
42
- "@flighthq/texture": "0.5.1-next.704.19c91ec",
43
- "@flighthq/textureatlas": "0.5.1-next.704.19c91ec",
44
- "@flighthq/types": "0.5.1-next.704.19c91ec"
41
+ "@flighthq/log": "0.5.1-next.730.f29a5aa",
42
+ "@flighthq/texture": "0.5.1-next.730.f29a5aa",
43
+ "@flighthq/textureatlas": "0.5.1-next.730.f29a5aa",
44
+ "@flighthq/types": "0.5.1-next.730.f29a5aa"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@flighthq/glyphatlas": "*",
@@ -1,5 +1,5 @@
1
1
  import { createTextureAtlas, createTextureAtlasFromImageResource } from '@flighthq/textureatlas/contract';
2
- import type { BitmapFontData, Image } from '@flighthq/types/contract';
2
+ import type { BitmapFontData, ImageResource } from '@flighthq/types/contract';
3
3
  import { describe, expect, it } from 'vitest';
4
4
 
5
5
  import { createBitmapFont, getBitmapFontGlyph } from './bitmapFont';
@@ -32,7 +32,7 @@ describe('createGlyphSourceFromBitmapFont', () => {
32
32
  });
33
33
 
34
34
  it('pairs page 0 with the font atlas image and has no other page', () => {
35
- const image = {} as Image;
35
+ const image = {} as ImageResource;
36
36
  const font = createBitmapFont({ ...sampleFontData(), pages: [createTextureAtlasFromImageResource(image)] });
37
37
  const source = createGlyphSourceFromBitmapFont(font);
38
38
 
@@ -42,8 +42,8 @@ describe('createGlyphSourceFromBitmapFont', () => {
42
42
  });
43
43
 
44
44
  it('resolves each page image of a multi-page font', () => {
45
- const image0 = {} as Image;
46
- const image1 = {} as Image;
45
+ const image0 = {} as ImageResource;
46
+ const image1 = {} as ImageResource;
47
47
  const font = createBitmapFont({
48
48
  ...sampleFontData(),
49
49
  pages: [createTextureAtlasFromImageResource(image0), createTextureAtlasFromImageResource(image1)],