@flighthq/bitmapfont 0.5.1-next.903.f434bc2 → 0.5.1-next.905.5fbf787

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.903.f434bc2](https://github.com/flighthq/flight/tree/f434bc233778d75aeea61995df3a8cfaec459a85/packages/bitmapfont)
17
- - [License](https://github.com/flighthq/flight/blob/f434bc233778d75aeea61995df3a8cfaec459a85/LICENSE.md)
16
+ - [Source for @flighthq/bitmapfont@0.5.1-next.905.5fbf787](https://github.com/flighthq/flight/tree/5fbf7874064c384307542d68b4dcb6a895ff0dcf/packages/bitmapfont)
17
+ - [License](https://github.com/flighthq/flight/blob/5fbf7874064c384307542d68b4dcb6a895ff0dcf/LICENSE.md)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flighthq/bitmapfont",
3
- "version": "0.5.1-next.903.f434bc2",
3
+ "version": "0.5.1-next.905.5fbf787",
4
4
  "author": "Joshua Granick and other contributors",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -38,11 +38,11 @@
38
38
  "clean:dist": "tsx ../../scripts/clean-package-dist.ts"
39
39
  },
40
40
  "dependencies": {
41
- "@flighthq/entity": "0.5.1-next.903.f434bc2",
42
- "@flighthq/log": "0.5.1-next.903.f434bc2",
43
- "@flighthq/texture": "0.5.1-next.903.f434bc2",
44
- "@flighthq/textureatlas": "0.5.1-next.903.f434bc2",
45
- "@flighthq/types": "0.5.1-next.903.f434bc2"
41
+ "@flighthq/entity": "0.5.1-next.905.5fbf787",
42
+ "@flighthq/log": "0.5.1-next.905.5fbf787",
43
+ "@flighthq/texture": "0.5.1-next.905.5fbf787",
44
+ "@flighthq/textureatlas": "0.5.1-next.905.5fbf787",
45
+ "@flighthq/types": "0.5.1-next.905.5fbf787"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@flighthq/glyphatlas": "*",
@@ -10,6 +10,7 @@ import {
10
10
  getBitmapFontPage,
11
11
  getBitmapFontPages,
12
12
  hasBitmapFontGlyph,
13
+ initializeBitmapFont,
13
14
  packBitmapFontKerningKey,
14
15
  setBitmapFontGuard,
15
16
  unpackBitmapFontKerningKey,
@@ -209,6 +210,12 @@ describe('hasBitmapFontGlyph', () => {
209
210
  });
210
211
  });
211
212
 
213
+ describe('initializeBitmapFont', () => {
214
+ it('is the construction initializer of createBitmapFont', () => {
215
+ expect(typeof initializeBitmapFont).toBe('function');
216
+ });
217
+ });
218
+
212
219
  describe('packBitmapFontKerningKey', () => {
213
220
  it('gives every distinct pair a distinct key across the full codepoint space', () => {
214
221
  const pairs: readonly (readonly [number, number])[] = [
@@ -275,7 +282,6 @@ describe('setBitmapFontGuard', () => {
275
282
  expect(calls).toEqual([]);
276
283
  });
277
284
  });
278
-
279
285
  describe('unpackBitmapFontKerningKey', () => {
280
286
  it('recovers the pair a key was packed from', () => {
281
287
  // The pairs are the ones a 16-bit inverse (`key >>> 16` / `key & 0xffff`) reads back wrong: an
@@ -3,7 +3,7 @@ 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';
6
- import { createGlyphSourceFromBitmapFont } from './bitmapFontGlyphSource';
6
+ import { createGlyphSourceFromBitmapFont, initializeGlyphSourceFromBitmapFont } from './bitmapFontGlyphSource';
7
7
 
8
8
  describe('createGlyphSourceFromBitmapFont', () => {
9
9
  it('exposes the font as a GlyphSource whose lookups match the font', () => {
@@ -67,3 +67,8 @@ function sampleFontData(): BitmapFontData {
67
67
  pages: [createTextureAtlas()],
68
68
  };
69
69
  }
70
+ describe('initializeGlyphSourceFromBitmapFont', () => {
71
+ it('is the construction initializer of createGlyphSourceFromBitmapFont', () => {
72
+ expect(typeof initializeGlyphSourceFromBitmapFont).toBe('function');
73
+ });
74
+ });