@kineviz/gl 0.4.7 → 0.4.9
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/dist/index.d.mts +33 -9
- package/dist/index.d.ts +33 -9
- package/dist/index.js +82 -82
- package/dist/index.mjs +82 -82
- package/dist/kineviz-gl.umd.js +230 -230
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -14973,10 +14973,9 @@ declare class CoverageApi {
|
|
|
14973
14973
|
private items;
|
|
14974
14974
|
constructor(layers: LayersApi, kmToWorld: (km: number, latDeg: number) => number);
|
|
14975
14975
|
private resolve;
|
|
14976
|
-
/** Set (or replace)
|
|
14976
|
+
/** Set (or replace) one coverage disc by nodeId, or a batch of discs. */
|
|
14977
14977
|
set(nodeId: string, spec: Omit<CoverageSpec, "anchorNodeId">): void;
|
|
14978
|
-
|
|
14979
|
-
setMany(specs: CoverageSpec[]): void;
|
|
14978
|
+
set(specs: CoverageSpec[]): void;
|
|
14980
14979
|
/**
|
|
14981
14980
|
* Remove coverage for a single node, or clear all coverage.
|
|
14982
14981
|
* @param nodeId - When provided, removes only that node's disc. When omitted, clears all.
|
|
@@ -16201,6 +16200,20 @@ interface GraphRendererProps {
|
|
|
16201
16200
|
legend?: boolean | {
|
|
16202
16201
|
visible?: boolean;
|
|
16203
16202
|
};
|
|
16203
|
+
/**
|
|
16204
|
+
* UI language for all built-in panels (toolbar, legend, node-info overlay).
|
|
16205
|
+
* One of the bundled locales: `'en'` (default), `'zh'`, `'es'`. Unknown
|
|
16206
|
+
* values fall back to English. Each subsystem ships its own translation
|
|
16207
|
+
* bundle (see `toolbar/i18n/*.json`, `legend/i18n.*.json`,
|
|
16208
|
+
* `layers/i18n/nodeInfo.*.json`); set this once and every panel follows.
|
|
16209
|
+
*
|
|
16210
|
+
* Hosts needing strings beyond the bundled locales can still override
|
|
16211
|
+
* individual subsystems (e.g. `toolbar={{ messages }}`), and a per-toolbar
|
|
16212
|
+
* `locale` override wins over this canvas-level value.
|
|
16213
|
+
*
|
|
16214
|
+
* @category Subsystem mount toggles
|
|
16215
|
+
*/
|
|
16216
|
+
locale?: string;
|
|
16204
16217
|
/**
|
|
16205
16218
|
* Called when the canvas theme changes (toolbar toggle,
|
|
16206
16219
|
* `api.renderer.setTheme(...)`, etc.). Use this to sync the host
|
|
@@ -16802,7 +16815,7 @@ declare function useOptionalRenderEngineApi(): RenderEngineApi$1 | null;
|
|
|
16802
16815
|
* Sets up Three.js scene, renderer, and camera.
|
|
16803
16816
|
* Provides context for child components.
|
|
16804
16817
|
*/
|
|
16805
|
-
declare function GraphRenderer({ container: containerProp, className, style, backgroundColor, antialias, pixelRatio, children, store: storeProp, controls: controlsProp, enableControl, drag: dragProp, enableDrag, controlConfig, cameraZ, initialPosition, onReady, apiRef, apiOptions, nodeCloud, edgeCloud, node: nodeProp, edge: edgeProp, caption: captionProp, edgeCaption: edgeCaptionProp, data: dataProp, minimap: minimapProp, map: mapProp, toolbar: toolbarProp, legend: legendProp, layoutController, forceLayout, autoStartLayout, iconFonts, theme, mapProvider, textScale: textScaleProp, edgeTextScale: edgeTextScaleProp, is3D: is3DProp, defaultDim, mapProjection: mapProjectionProp, onThemeChange, onViewChange, clickDim, onNodeClick, onNodeDoubleClick, onEdgeClick, onEdgeDoubleClick, onBackgroundClick, onNodeContextMenu, onEdgeContextMenu, onBackgroundContextMenu, onNodeHover, onEdgeHover, onNodeDragStart, onNodeDrag, onNodeDragEnd, onDestroy, onError, onDelta, onLayoutStart, onLayoutEnd, onLayoutProgress, onAlgorithmStart, onAlgorithmEnd, onAlgorithmError, onAlgorithmProgress, onHistoryChange, onStyleChange, selection, defaultSelection, onSelectionChange, hidden, defaultHidden, onVisibilityChange, defaultIs3D, onIs3DChange, defaultTheme, defaultViewState, viewState, onViewStateChange, hoveredId, onHoverChange, pinned, defaultPinned, onPinnedChange, }: GraphRendererProps): react_jsx_runtime.JSX.Element;
|
|
16818
|
+
declare function GraphRenderer({ container: containerProp, className, style, backgroundColor, antialias, pixelRatio, children, store: storeProp, controls: controlsProp, enableControl, drag: dragProp, enableDrag, controlConfig, cameraZ, initialPosition, onReady, apiRef, apiOptions, nodeCloud, edgeCloud, node: nodeProp, edge: edgeProp, caption: captionProp, edgeCaption: edgeCaptionProp, data: dataProp, minimap: minimapProp, map: mapProp, toolbar: toolbarProp, legend: legendProp, locale, layoutController, forceLayout, autoStartLayout, iconFonts, theme, mapProvider, textScale: textScaleProp, edgeTextScale: edgeTextScaleProp, is3D: is3DProp, defaultDim, mapProjection: mapProjectionProp, onThemeChange, onViewChange, clickDim, onNodeClick, onNodeDoubleClick, onEdgeClick, onEdgeDoubleClick, onBackgroundClick, onNodeContextMenu, onEdgeContextMenu, onBackgroundContextMenu, onNodeHover, onEdgeHover, onNodeDragStart, onNodeDrag, onNodeDragEnd, onDestroy, onError, onDelta, onLayoutStart, onLayoutEnd, onLayoutProgress, onAlgorithmStart, onAlgorithmEnd, onAlgorithmError, onAlgorithmProgress, onHistoryChange, onStyleChange, selection, defaultSelection, onSelectionChange, hidden, defaultHidden, onVisibilityChange, defaultIs3D, onIs3DChange, defaultTheme, defaultViewState, viewState, onViewStateChange, hoveredId, onHoverChange, pinned, defaultPinned, onPinnedChange, }: GraphRendererProps): react_jsx_runtime.JSX.Element;
|
|
16806
16819
|
|
|
16807
16820
|
/** GraphCanvas — alias for GraphRenderer (used in new layer system API) */
|
|
16808
16821
|
declare const GraphCanvas: typeof GraphRenderer;
|
|
@@ -17220,12 +17233,20 @@ interface NodeInfoPanelProps {
|
|
|
17220
17233
|
container?: HTMLElement | null;
|
|
17221
17234
|
/** Accepted for backward-compat; theme is driven by `data-gxr-theme` tokens. */
|
|
17222
17235
|
isDark?: boolean;
|
|
17223
|
-
/** Show the footer "
|
|
17236
|
+
/** Show the footer "Expand neighbors" button. Default false (hidden). */
|
|
17224
17237
|
showExpandNeighbors?: boolean;
|
|
17225
|
-
/** Host callback invoked when the "
|
|
17238
|
+
/** Host callback invoked when the "Expand neighbors" button is clicked. */
|
|
17226
17239
|
onExpandNeighbors?: (nodeId: string) => void;
|
|
17240
|
+
/** UI language. Selects the built-in `en` / `zh` / `es` bundle. Default `en`. */
|
|
17241
|
+
locale?: string;
|
|
17242
|
+
/**
|
|
17243
|
+
* Optional per-key overrides for hosts that need strings the built-in
|
|
17244
|
+
* bundles don't cover. Keys: `nodeInfo.properties`, `nodeInfo.relations`,
|
|
17245
|
+
* `nodeInfo.expandNeighbors`. Takes precedence over the `locale` bundle.
|
|
17246
|
+
*/
|
|
17247
|
+
messages?: Record<string, string>;
|
|
17227
17248
|
}
|
|
17228
|
-
declare function NodeInfoPanel({ manager, store, container, showExpandNeighbors, onExpandNeighbors }: NodeInfoPanelProps): react_jsx_runtime.JSX.Element;
|
|
17249
|
+
declare function NodeInfoPanel({ manager, store, container, showExpandNeighbors, onExpandNeighbors, locale, messages }: NodeInfoPanelProps): react_jsx_runtime.JSX.Element;
|
|
17229
17250
|
|
|
17230
17251
|
interface GlobeLayerProps {
|
|
17231
17252
|
/** Globe radius in scene units. Default: 5 */
|
|
@@ -17587,13 +17608,16 @@ interface LegendPanelProps {
|
|
|
17587
17608
|
store: GraphStore;
|
|
17588
17609
|
api: RenderEngineApi$1;
|
|
17589
17610
|
visible?: boolean;
|
|
17611
|
+
/** UI language. Selects the built-in `en` / `zh` / `es` bundle. Default `en`. */
|
|
17612
|
+
locale?: string;
|
|
17613
|
+
/** Optional per-key overrides, layered on top of the `locale` bundle. */
|
|
17590
17614
|
messages?: Record<string, string>;
|
|
17591
17615
|
/** When minimap is visible, legend limits height to avoid overlap */
|
|
17592
17616
|
minimapVisible?: boolean;
|
|
17593
17617
|
/** Icon atlas manager for rendering icon glyphs in the style popover */
|
|
17594
17618
|
iconAtlasManager?: IconAtlasManager | null;
|
|
17595
17619
|
}
|
|
17596
|
-
declare function LegendPanel({ store, api, visible, messages, minimapVisible, iconAtlasManager }: LegendPanelProps): react_jsx_runtime.JSX.Element;
|
|
17620
|
+
declare function LegendPanel({ store, api, visible, locale, messages, minimapVisible, iconAtlasManager }: LegendPanelProps): react_jsx_runtime.JSX.Element;
|
|
17597
17621
|
|
|
17598
17622
|
interface MinimapLayerProps {
|
|
17599
17623
|
width?: number;
|
|
@@ -17656,7 +17680,7 @@ interface CoverageLayerProps {
|
|
|
17656
17680
|
/**
|
|
17657
17681
|
* Declarative React wrapper for the CoverageRenderer.
|
|
17658
17682
|
* Mounts a world-anchored coverage-disc layer; updates whenever `items` changes.
|
|
17659
|
-
* For imperative runtime use, prefer `api.coverage.set/
|
|
17683
|
+
* For imperative runtime use, prefer `api.coverage.set/clear`.
|
|
17660
17684
|
*/
|
|
17661
17685
|
declare function CoverageLayer({ items }: CoverageLayerProps): null;
|
|
17662
17686
|
|
package/dist/index.d.ts
CHANGED
|
@@ -14973,10 +14973,9 @@ declare class CoverageApi {
|
|
|
14973
14973
|
private items;
|
|
14974
14974
|
constructor(layers: LayersApi, kmToWorld: (km: number, latDeg: number) => number);
|
|
14975
14975
|
private resolve;
|
|
14976
|
-
/** Set (or replace)
|
|
14976
|
+
/** Set (or replace) one coverage disc by nodeId, or a batch of discs. */
|
|
14977
14977
|
set(nodeId: string, spec: Omit<CoverageSpec, "anchorNodeId">): void;
|
|
14978
|
-
|
|
14979
|
-
setMany(specs: CoverageSpec[]): void;
|
|
14978
|
+
set(specs: CoverageSpec[]): void;
|
|
14980
14979
|
/**
|
|
14981
14980
|
* Remove coverage for a single node, or clear all coverage.
|
|
14982
14981
|
* @param nodeId - When provided, removes only that node's disc. When omitted, clears all.
|
|
@@ -16201,6 +16200,20 @@ interface GraphRendererProps {
|
|
|
16201
16200
|
legend?: boolean | {
|
|
16202
16201
|
visible?: boolean;
|
|
16203
16202
|
};
|
|
16203
|
+
/**
|
|
16204
|
+
* UI language for all built-in panels (toolbar, legend, node-info overlay).
|
|
16205
|
+
* One of the bundled locales: `'en'` (default), `'zh'`, `'es'`. Unknown
|
|
16206
|
+
* values fall back to English. Each subsystem ships its own translation
|
|
16207
|
+
* bundle (see `toolbar/i18n/*.json`, `legend/i18n.*.json`,
|
|
16208
|
+
* `layers/i18n/nodeInfo.*.json`); set this once and every panel follows.
|
|
16209
|
+
*
|
|
16210
|
+
* Hosts needing strings beyond the bundled locales can still override
|
|
16211
|
+
* individual subsystems (e.g. `toolbar={{ messages }}`), and a per-toolbar
|
|
16212
|
+
* `locale` override wins over this canvas-level value.
|
|
16213
|
+
*
|
|
16214
|
+
* @category Subsystem mount toggles
|
|
16215
|
+
*/
|
|
16216
|
+
locale?: string;
|
|
16204
16217
|
/**
|
|
16205
16218
|
* Called when the canvas theme changes (toolbar toggle,
|
|
16206
16219
|
* `api.renderer.setTheme(...)`, etc.). Use this to sync the host
|
|
@@ -16802,7 +16815,7 @@ declare function useOptionalRenderEngineApi(): RenderEngineApi$1 | null;
|
|
|
16802
16815
|
* Sets up Three.js scene, renderer, and camera.
|
|
16803
16816
|
* Provides context for child components.
|
|
16804
16817
|
*/
|
|
16805
|
-
declare function GraphRenderer({ container: containerProp, className, style, backgroundColor, antialias, pixelRatio, children, store: storeProp, controls: controlsProp, enableControl, drag: dragProp, enableDrag, controlConfig, cameraZ, initialPosition, onReady, apiRef, apiOptions, nodeCloud, edgeCloud, node: nodeProp, edge: edgeProp, caption: captionProp, edgeCaption: edgeCaptionProp, data: dataProp, minimap: minimapProp, map: mapProp, toolbar: toolbarProp, legend: legendProp, layoutController, forceLayout, autoStartLayout, iconFonts, theme, mapProvider, textScale: textScaleProp, edgeTextScale: edgeTextScaleProp, is3D: is3DProp, defaultDim, mapProjection: mapProjectionProp, onThemeChange, onViewChange, clickDim, onNodeClick, onNodeDoubleClick, onEdgeClick, onEdgeDoubleClick, onBackgroundClick, onNodeContextMenu, onEdgeContextMenu, onBackgroundContextMenu, onNodeHover, onEdgeHover, onNodeDragStart, onNodeDrag, onNodeDragEnd, onDestroy, onError, onDelta, onLayoutStart, onLayoutEnd, onLayoutProgress, onAlgorithmStart, onAlgorithmEnd, onAlgorithmError, onAlgorithmProgress, onHistoryChange, onStyleChange, selection, defaultSelection, onSelectionChange, hidden, defaultHidden, onVisibilityChange, defaultIs3D, onIs3DChange, defaultTheme, defaultViewState, viewState, onViewStateChange, hoveredId, onHoverChange, pinned, defaultPinned, onPinnedChange, }: GraphRendererProps): react_jsx_runtime.JSX.Element;
|
|
16818
|
+
declare function GraphRenderer({ container: containerProp, className, style, backgroundColor, antialias, pixelRatio, children, store: storeProp, controls: controlsProp, enableControl, drag: dragProp, enableDrag, controlConfig, cameraZ, initialPosition, onReady, apiRef, apiOptions, nodeCloud, edgeCloud, node: nodeProp, edge: edgeProp, caption: captionProp, edgeCaption: edgeCaptionProp, data: dataProp, minimap: minimapProp, map: mapProp, toolbar: toolbarProp, legend: legendProp, locale, layoutController, forceLayout, autoStartLayout, iconFonts, theme, mapProvider, textScale: textScaleProp, edgeTextScale: edgeTextScaleProp, is3D: is3DProp, defaultDim, mapProjection: mapProjectionProp, onThemeChange, onViewChange, clickDim, onNodeClick, onNodeDoubleClick, onEdgeClick, onEdgeDoubleClick, onBackgroundClick, onNodeContextMenu, onEdgeContextMenu, onBackgroundContextMenu, onNodeHover, onEdgeHover, onNodeDragStart, onNodeDrag, onNodeDragEnd, onDestroy, onError, onDelta, onLayoutStart, onLayoutEnd, onLayoutProgress, onAlgorithmStart, onAlgorithmEnd, onAlgorithmError, onAlgorithmProgress, onHistoryChange, onStyleChange, selection, defaultSelection, onSelectionChange, hidden, defaultHidden, onVisibilityChange, defaultIs3D, onIs3DChange, defaultTheme, defaultViewState, viewState, onViewStateChange, hoveredId, onHoverChange, pinned, defaultPinned, onPinnedChange, }: GraphRendererProps): react_jsx_runtime.JSX.Element;
|
|
16806
16819
|
|
|
16807
16820
|
/** GraphCanvas — alias for GraphRenderer (used in new layer system API) */
|
|
16808
16821
|
declare const GraphCanvas: typeof GraphRenderer;
|
|
@@ -17220,12 +17233,20 @@ interface NodeInfoPanelProps {
|
|
|
17220
17233
|
container?: HTMLElement | null;
|
|
17221
17234
|
/** Accepted for backward-compat; theme is driven by `data-gxr-theme` tokens. */
|
|
17222
17235
|
isDark?: boolean;
|
|
17223
|
-
/** Show the footer "
|
|
17236
|
+
/** Show the footer "Expand neighbors" button. Default false (hidden). */
|
|
17224
17237
|
showExpandNeighbors?: boolean;
|
|
17225
|
-
/** Host callback invoked when the "
|
|
17238
|
+
/** Host callback invoked when the "Expand neighbors" button is clicked. */
|
|
17226
17239
|
onExpandNeighbors?: (nodeId: string) => void;
|
|
17240
|
+
/** UI language. Selects the built-in `en` / `zh` / `es` bundle. Default `en`. */
|
|
17241
|
+
locale?: string;
|
|
17242
|
+
/**
|
|
17243
|
+
* Optional per-key overrides for hosts that need strings the built-in
|
|
17244
|
+
* bundles don't cover. Keys: `nodeInfo.properties`, `nodeInfo.relations`,
|
|
17245
|
+
* `nodeInfo.expandNeighbors`. Takes precedence over the `locale` bundle.
|
|
17246
|
+
*/
|
|
17247
|
+
messages?: Record<string, string>;
|
|
17227
17248
|
}
|
|
17228
|
-
declare function NodeInfoPanel({ manager, store, container, showExpandNeighbors, onExpandNeighbors }: NodeInfoPanelProps): react_jsx_runtime.JSX.Element;
|
|
17249
|
+
declare function NodeInfoPanel({ manager, store, container, showExpandNeighbors, onExpandNeighbors, locale, messages }: NodeInfoPanelProps): react_jsx_runtime.JSX.Element;
|
|
17229
17250
|
|
|
17230
17251
|
interface GlobeLayerProps {
|
|
17231
17252
|
/** Globe radius in scene units. Default: 5 */
|
|
@@ -17587,13 +17608,16 @@ interface LegendPanelProps {
|
|
|
17587
17608
|
store: GraphStore;
|
|
17588
17609
|
api: RenderEngineApi$1;
|
|
17589
17610
|
visible?: boolean;
|
|
17611
|
+
/** UI language. Selects the built-in `en` / `zh` / `es` bundle. Default `en`. */
|
|
17612
|
+
locale?: string;
|
|
17613
|
+
/** Optional per-key overrides, layered on top of the `locale` bundle. */
|
|
17590
17614
|
messages?: Record<string, string>;
|
|
17591
17615
|
/** When minimap is visible, legend limits height to avoid overlap */
|
|
17592
17616
|
minimapVisible?: boolean;
|
|
17593
17617
|
/** Icon atlas manager for rendering icon glyphs in the style popover */
|
|
17594
17618
|
iconAtlasManager?: IconAtlasManager | null;
|
|
17595
17619
|
}
|
|
17596
|
-
declare function LegendPanel({ store, api, visible, messages, minimapVisible, iconAtlasManager }: LegendPanelProps): react_jsx_runtime.JSX.Element;
|
|
17620
|
+
declare function LegendPanel({ store, api, visible, locale, messages, minimapVisible, iconAtlasManager }: LegendPanelProps): react_jsx_runtime.JSX.Element;
|
|
17597
17621
|
|
|
17598
17622
|
interface MinimapLayerProps {
|
|
17599
17623
|
width?: number;
|
|
@@ -17656,7 +17680,7 @@ interface CoverageLayerProps {
|
|
|
17656
17680
|
/**
|
|
17657
17681
|
* Declarative React wrapper for the CoverageRenderer.
|
|
17658
17682
|
* Mounts a world-anchored coverage-disc layer; updates whenever `items` changes.
|
|
17659
|
-
* For imperative runtime use, prefer `api.coverage.set/
|
|
17683
|
+
* For imperative runtime use, prefer `api.coverage.set/clear`.
|
|
17660
17684
|
*/
|
|
17661
17685
|
declare function CoverageLayer({ items }: CoverageLayerProps): null;
|
|
17662
17686
|
|