@flighthq/bitmaptext 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/bitmaptext`. 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/bitmaptext@0.5.1-next.903.f434bc2](https://github.com/flighthq/flight/tree/f434bc233778d75aeea61995df3a8cfaec459a85/packages/bitmaptext)
17
- - [License](https://github.com/flighthq/flight/blob/f434bc233778d75aeea61995df3a8cfaec459a85/LICENSE.md)
16
+ - [Source for @flighthq/bitmaptext@0.5.1-next.905.5fbf787](https://github.com/flighthq/flight/tree/5fbf7874064c384307542d68b4dcb6a895ff0dcf/packages/bitmaptext)
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/bitmaptext",
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,14 +38,14 @@
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/geometry": "0.5.1-next.903.f434bc2",
43
- "@flighthq/log": "0.5.1-next.903.f434bc2",
44
- "@flighthq/node": "0.5.1-next.903.f434bc2",
45
- "@flighthq/scene2d": "0.5.1-next.903.f434bc2",
46
- "@flighthq/texture": "0.5.1-next.903.f434bc2",
47
- "@flighthq/textureatlas": "0.5.1-next.903.f434bc2",
48
- "@flighthq/types": "0.5.1-next.903.f434bc2"
41
+ "@flighthq/entity": "0.5.1-next.905.5fbf787",
42
+ "@flighthq/geometry": "0.5.1-next.905.5fbf787",
43
+ "@flighthq/log": "0.5.1-next.905.5fbf787",
44
+ "@flighthq/node": "0.5.1-next.905.5fbf787",
45
+ "@flighthq/scene2d": "0.5.1-next.905.5fbf787",
46
+ "@flighthq/texture": "0.5.1-next.905.5fbf787",
47
+ "@flighthq/textureatlas": "0.5.1-next.905.5fbf787",
48
+ "@flighthq/types": "0.5.1-next.905.5fbf787"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@flighthq/glyphatlas": "*",
@@ -11,6 +11,7 @@ import {
11
11
  createBitmapTextRuntime,
12
12
  getBitmapTextBounds,
13
13
  getBitmapTextPages,
14
+ initializeBitmapTextData,
14
15
  isBitmapTextGlyphLayoutStale,
15
16
  reserveBitmapText,
16
17
  setBitmapTextAlign,
@@ -154,6 +155,12 @@ describe('getBitmapTextPages', () => {
154
155
  });
155
156
  });
156
157
 
158
+ describe('initializeBitmapTextData', () => {
159
+ it('is the construction initializer of createBitmapTextData', () => {
160
+ expect(typeof initializeBitmapTextData).toBe('function');
161
+ });
162
+ });
163
+
157
164
  describe('isBitmapTextGlyphLayoutStale', () => {
158
165
  it('reads stale before the first layout and settled after it', () => {
159
166
  const text = createBitmapText(createTestGlyphSource(), { text: 'AB' });
@@ -232,7 +239,6 @@ describe('setBitmapTextText', () => {
232
239
  expect(text.data.text).toBe('changed');
233
240
  });
234
241
  });
235
-
236
242
  describe('setBitmapTextWrapWidth', () => {
237
243
  it('mutates the wrapWidth field', () => {
238
244
  const text = createBitmapText(createTestGlyphSource());