@kineviz/gl 0.6.0 → 0.6.1
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/CHANGELOG.md +13 -0
- package/dist/index.d.mts +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +20 -20
- package/dist/index.mjs +21 -21
- package/dist/kineviz-gl.umd.js +96 -96
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@kineviz/gl` are documented here.
|
|
4
4
|
|
|
5
|
+
## 0.6.1 — 2026-08-05
|
|
6
|
+
|
|
7
|
+
Icons survive a slow font. Goal: an icon assigned before its font finishes
|
|
8
|
+
loading should still be drawn, instead of silently falling back.
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- **Icon UVs are re-resolved when a font arrives after the first attempt.** Assigning a category icon before its font had loaded resolved to nothing and stayed that way, so the glyph was dropped for the lifetime of the scene — hosts had to work around it by re-applying `setCategoryIcon` on a timer. `IconAtlasManager` now records unresolved requests and replays them once the font registers, and `GraphContext` re-runs resolution on font load. Covered by `tests/react/iconLateFontResolve.test.tsx`.
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
|
|
16
|
+
- **`animals/horse` ontology glyph** (`0xe154`) in `@kineviz/icons`, with the ontology and UI fonts rebuilt. Note that `@kineviz/gl` does not ship font assets — consumers load the woff2 themselves, so picking up the new glyph means taking the rebuilt font from `@kineviz/icons`, not from this package.
|
|
17
|
+
|
|
5
18
|
## 0.6.0 — 2026-06-29
|
|
6
19
|
|
|
7
20
|
Node-anchored info cards. Goal: attach rich, interactive HTML cards to graph
|
package/dist/index.d.mts
CHANGED
|
@@ -5750,6 +5750,16 @@ interface ImageEntry {
|
|
|
5750
5750
|
|
|
5751
5751
|
declare class IconAtlasManager {
|
|
5752
5752
|
private fonts;
|
|
5753
|
+
/**
|
|
5754
|
+
* Bumped every time a font is registered.
|
|
5755
|
+
*
|
|
5756
|
+
* Consumers cache icon-name -> UV resolutions. A name that could not be
|
|
5757
|
+
* resolved before may resolve now, so anything holding such a cache must be
|
|
5758
|
+
* able to tell that the atlas has changed underneath it. `hasFonts()` cannot
|
|
5759
|
+
* serve this purpose: the built-in marker font is registered first, so it is
|
|
5760
|
+
* true from the start even while a user-supplied font is still loading.
|
|
5761
|
+
*/
|
|
5762
|
+
private _fontsVersion;
|
|
5753
5763
|
private iconCache;
|
|
5754
5764
|
private textureSize;
|
|
5755
5765
|
private textureData;
|
|
@@ -5799,6 +5809,8 @@ declare class IconAtlasManager {
|
|
|
5799
5809
|
getTexture(): THREE$1.DataTexture;
|
|
5800
5810
|
/** Check if texture was recreated and needs rebinding */
|
|
5801
5811
|
isDirty(): boolean;
|
|
5812
|
+
/** Changes whenever a font is registered. See `_fontsVersion`. */
|
|
5813
|
+
get fontsVersion(): number;
|
|
5802
5814
|
/** Check if any fonts are registered */
|
|
5803
5815
|
hasFonts(): boolean;
|
|
5804
5816
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -5750,6 +5750,16 @@ interface ImageEntry {
|
|
|
5750
5750
|
|
|
5751
5751
|
declare class IconAtlasManager {
|
|
5752
5752
|
private fonts;
|
|
5753
|
+
/**
|
|
5754
|
+
* Bumped every time a font is registered.
|
|
5755
|
+
*
|
|
5756
|
+
* Consumers cache icon-name -> UV resolutions. A name that could not be
|
|
5757
|
+
* resolved before may resolve now, so anything holding such a cache must be
|
|
5758
|
+
* able to tell that the atlas has changed underneath it. `hasFonts()` cannot
|
|
5759
|
+
* serve this purpose: the built-in marker font is registered first, so it is
|
|
5760
|
+
* true from the start even while a user-supplied font is still loading.
|
|
5761
|
+
*/
|
|
5762
|
+
private _fontsVersion;
|
|
5753
5763
|
private iconCache;
|
|
5754
5764
|
private textureSize;
|
|
5755
5765
|
private textureData;
|
|
@@ -5799,6 +5809,8 @@ declare class IconAtlasManager {
|
|
|
5799
5809
|
getTexture(): THREE$1.DataTexture;
|
|
5800
5810
|
/** Check if texture was recreated and needs rebinding */
|
|
5801
5811
|
isDirty(): boolean;
|
|
5812
|
+
/** Changes whenever a font is registered. See `_fontsVersion`. */
|
|
5813
|
+
get fontsVersion(): number;
|
|
5802
5814
|
/** Check if any fonts are registered */
|
|
5803
5815
|
hasFonts(): boolean;
|
|
5804
5816
|
/**
|