@flighthq/bitmaptext 0.5.1-next.1069.554a2ac → 0.5.1-next.1197.6a425ce

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.1069.554a2ac](https://github.com/flighthq/flight/tree/554a2acc3fecf189b89b0729308ff890a15c21cc/packages/bitmaptext)
17
- - [License](https://github.com/flighthq/flight/blob/554a2acc3fecf189b89b0729308ff890a15c21cc/LICENSE.md)
16
+ - [Source for @flighthq/bitmaptext@0.5.1-next.1197.6a425ce](https://github.com/flighthq/flight/tree/6a425ce64e6d501dac8218fe625e73d58da88639/packages/bitmaptext)
17
+ - [License](https://github.com/flighthq/flight/blob/6a425ce64e6d501dac8218fe625e73d58da88639/LICENSE.md)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flighthq/bitmaptext",
3
- "version": "0.5.1-next.1069.554a2ac",
3
+ "version": "0.5.1-next.1197.6a425ce",
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.1069.554a2ac",
42
- "@flighthq/geometry": "0.5.1-next.1069.554a2ac",
43
- "@flighthq/log": "0.5.1-next.1069.554a2ac",
44
- "@flighthq/node": "0.5.1-next.1069.554a2ac",
45
- "@flighthq/scene2d": "0.5.1-next.1069.554a2ac",
46
- "@flighthq/texture": "0.5.1-next.1069.554a2ac",
47
- "@flighthq/textureatlas": "0.5.1-next.1069.554a2ac",
48
- "@flighthq/types": "0.5.1-next.1069.554a2ac"
41
+ "@flighthq/entity": "0.5.1-next.1197.6a425ce",
42
+ "@flighthq/geometry": "0.5.1-next.1197.6a425ce",
43
+ "@flighthq/log": "0.5.1-next.1197.6a425ce",
44
+ "@flighthq/node": "0.5.1-next.1197.6a425ce",
45
+ "@flighthq/scene2d": "0.5.1-next.1197.6a425ce",
46
+ "@flighthq/texture": "0.5.1-next.1197.6a425ce",
47
+ "@flighthq/textureatlas": "0.5.1-next.1197.6a425ce",
48
+ "@flighthq/types": "0.5.1-next.1197.6a425ce"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@flighthq/glyphatlas": "*",
@@ -1,6 +1,12 @@
1
1
  import { createGlyphAtlas, createGlyphSourceFromGlyphAtlas } from '@flighthq/glyphatlas/contract';
2
2
  import { setLogSink } from '@flighthq/log/contract';
3
- import type { GlyphAtlas, GlyphEntry, GlyphRasterizerBackend, GlyphSource, LogEntry } from '@flighthq/types/contract';
3
+ import type {
4
+ GlyphAtlas,
5
+ GlyphEntry,
6
+ HostGlyphRasterizerProvider,
7
+ GlyphSource,
8
+ LogEntry,
9
+ } from '@flighthq/types/contract';
4
10
  import { EntityRuntimeKey } from '@flighthq/types/contract';
5
11
  import { afterEach, beforeEach, describe, expect, it } from 'vitest';
6
12
 
@@ -28,7 +34,7 @@ function messages(): string {
28
34
  // of them resident at once: laying out its tail evicts its head, every pass invalidates the last, and
29
35
  // the layout cannot settle however many passes it is given.
30
36
  function createTinyGlyphAtlas(): GlyphAtlas {
31
- const backend: GlyphRasterizerBackend = {
37
+ const backend: HostGlyphRasterizerProvider = {
32
38
  rasterize: () => ({
33
39
  advance: 8,
34
40
  bearingX: 0,
@@ -9,7 +9,7 @@ import type {
9
9
  Bitmap,
10
10
  GlyphAtlas,
11
11
  GlyphEntry,
12
- GlyphRasterizerBackend,
12
+ HostGlyphRasterizerProvider,
13
13
  GlyphSource,
14
14
  ImageResource,
15
15
  } from '@flighthq/types/contract';
@@ -78,7 +78,7 @@ function createTwoPageGlyphSource(): { source: GlyphSource; page0Image: ImageRes
78
78
  // repack every rect is still a well-formed rect over real pixels, so only reading the pixels can tell a
79
79
  // correct region from one that now covers the wrong glyph. Codepoints stay under 0x100 for the channel
80
80
  // to hold them exactly.
81
- function createCodepointColorRasterizerBackend(size: number): GlyphRasterizerBackend {
81
+ function createCodepointColorRasterizerBackend(size: number): HostGlyphRasterizerProvider {
82
82
  return {
83
83
  rasterize(codepoint) {
84
84
  const pixels = new Uint8ClampedArray(size * size * 4);