@flighthq/bitmaptext 0.5.1-next.4305.c5b7dc0 → 0.5.1-next.4329.8d695d9
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 +2 -2
- package/dist/contract.js +4 -4
- package/dist/enableBitmapTextGuards.js +1 -1
- package/dist/index.js +4 -4
- package/dist/updateBitmapText.js +1 -1
- package/package.json +10 -10
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.
|
|
17
|
-
- [License](https://github.com/flighthq/flight/blob/
|
|
16
|
+
- [Source for @flighthq/bitmaptext@0.5.1-next.4329.8d695d9](https://github.com/flighthq/flight/tree/8d695d97fdf10328d441d2ba3091fd16029b5387/packages/bitmaptext)
|
|
17
|
+
- [License](https://github.com/flighthq/flight/blob/8d695d97fdf10328d441d2ba3091fd16029b5387/LICENSE.md)
|
package/dist/contract.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
1
|
+
export * from './bitmapText.js';
|
|
2
|
+
export * from './enableBitmapTextGuards.js';
|
|
3
|
+
export * from './explainBitmapTextMissingGlyphs.js';
|
|
4
|
+
export * from './updateBitmapText.js';
|
|
5
5
|
//# sourceMappingURL=contract.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { logOnce } from '@flighthq/log/contract';
|
|
2
2
|
import { LogLevel } from '@flighthq/types/contract';
|
|
3
|
-
import { setBitmapTextLayoutGuard, setBitmapTextMissingGlyphGuard } from
|
|
3
|
+
import { setBitmapTextLayoutGuard, setBitmapTextMissingGlyphGuard } from './updateBitmapText.js';
|
|
4
4
|
/** Uninstalls the guard installed by `enableBitmapTextGuards`. */
|
|
5
5
|
export function disableBitmapTextGuards() {
|
|
6
6
|
setBitmapTextLayoutGuard(null);
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { computeBitmapTextLocalBoundsRectangle, createBitmapText, getBitmapTextBounds, getBitmapTextLineCount, getBitmapTextPages, isBitmapTextGlyphLayoutStale, isBitmapTextTruncated, reserveBitmapText, setBitmapTextAlign, setBitmapTextEllipsis, setBitmapTextGlyphSource, setBitmapTextLetterSpacing, setBitmapTextLineHeight, setBitmapTextMaxLines, setBitmapTextText, setBitmapTextWrapWidth, } from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export { refreshBitmapTextGlyphLayout, setBitmapTextMissingGlyphGuard, updateBitmapText } from
|
|
1
|
+
export { computeBitmapTextLocalBoundsRectangle, createBitmapText, getBitmapTextBounds, getBitmapTextLineCount, getBitmapTextPages, isBitmapTextGlyphLayoutStale, isBitmapTextTruncated, reserveBitmapText, setBitmapTextAlign, setBitmapTextEllipsis, setBitmapTextGlyphSource, setBitmapTextLetterSpacing, setBitmapTextLineHeight, setBitmapTextMaxLines, setBitmapTextText, setBitmapTextWrapWidth, } from './bitmapText.js';
|
|
2
|
+
export * from './enableBitmapTextGuards.js';
|
|
3
|
+
export * from './explainBitmapTextMissingGlyphs.js';
|
|
4
|
+
export { refreshBitmapTextGlyphLayout, setBitmapTextMissingGlyphGuard, updateBitmapText } from './updateBitmapText.js';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
package/dist/updateBitmapText.js
CHANGED
|
@@ -3,7 +3,7 @@ import { invalidateNodeLocalBounds } from '@flighthq/node/contract';
|
|
|
3
3
|
import { getNode2DRuntime } from '@flighthq/scene2d/contract';
|
|
4
4
|
import { createTexture, setTextureSource } from '@flighthq/texture/contract';
|
|
5
5
|
import { addTextureAtlasRegion, createTextureAtlas } from '@flighthq/textureatlas/contract';
|
|
6
|
-
import { isBitmapTextGlyphLayoutStale } from
|
|
6
|
+
import { isBitmapTextGlyphLayoutStale } from './bitmapText.js';
|
|
7
7
|
// Re-lays-out `bitmapText` when, and only when, its glyph source has repacked since the last layout —
|
|
8
8
|
// the pairing that keeps a dynamic atlas correct. Returns whether it re-laid-out, so a caller can count
|
|
9
9
|
// churn. Call it once per frame per BitmapText bound to a `@flighthq/glyphatlas` source: a repack
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flighthq/bitmaptext",
|
|
3
|
-
"version": "0.5.1-next.
|
|
3
|
+
"version": "0.5.1-next.4329.8d695d9",
|
|
4
4
|
"author": "Joshua Granick and other contributors",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -38,18 +38,18 @@
|
|
|
38
38
|
"clean:dist": "tsx ../../scripts/clean-package-dist.ts"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@flighthq/entity": "0.5.1-next.
|
|
42
|
-
"@flighthq/geometry": "0.5.1-next.
|
|
43
|
-
"@flighthq/log": "0.5.1-next.
|
|
44
|
-
"@flighthq/node": "0.5.1-next.
|
|
45
|
-
"@flighthq/scene2d": "0.5.1-next.
|
|
46
|
-
"@flighthq/texture": "0.5.1-next.
|
|
47
|
-
"@flighthq/textureatlas": "0.5.1-next.
|
|
48
|
-
"@flighthq/types": "0.5.1-next.
|
|
41
|
+
"@flighthq/entity": "0.5.1-next.4329.8d695d9",
|
|
42
|
+
"@flighthq/geometry": "0.5.1-next.4329.8d695d9",
|
|
43
|
+
"@flighthq/log": "0.5.1-next.4329.8d695d9",
|
|
44
|
+
"@flighthq/node": "0.5.1-next.4329.8d695d9",
|
|
45
|
+
"@flighthq/scene2d": "0.5.1-next.4329.8d695d9",
|
|
46
|
+
"@flighthq/texture": "0.5.1-next.4329.8d695d9",
|
|
47
|
+
"@flighthq/textureatlas": "0.5.1-next.4329.8d695d9",
|
|
48
|
+
"@flighthq/types": "0.5.1-next.4329.8d695d9"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@flighthq/glyphatlas": "*",
|
|
52
|
-
"typescript": "^
|
|
52
|
+
"typescript": "^7.0.2"
|
|
53
53
|
},
|
|
54
54
|
"description": "QuadBatch-backed bitmap text display node laying out glyphs from a GlyphSource",
|
|
55
55
|
"sideEffects": false
|