@opendata-ai/openchart-core 8.0.0-rc.13 → 8.0.0-rc.15

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.ts CHANGED
@@ -1033,6 +1033,13 @@ interface GraphEncoding {
1033
1033
  edgeStyle?: GraphEncodingChannel;
1034
1034
  /** Label field for nodes. */
1035
1035
  nodeLabel?: GraphEncodingChannel;
1036
+ /**
1037
+ * Label priority mapping for nodes. Maps a quantitative field to a 0-1
1038
+ * priority range; higher values are shown first as the user zooms in.
1039
+ * Omit to use the default degree-based priority.
1040
+ * `nodeOverrides[id].alwaysShowLabel` still wins as the hard override.
1041
+ */
1042
+ nodeLabelPriority?: GraphEncodingChannel;
1036
1043
  }
1037
1044
  /** Layout algorithm for graph visualization. */
1038
1045
  interface GraphLayoutConfig {
@@ -2298,7 +2305,7 @@ interface NodeOverride {
2298
2305
  * already exists on load and choreography reduces the chaos.
2299
2306
  */
2300
2307
  interface GraphAnimationConfig {
2301
- /** Node/edge reveal on first render. Default `{ duration: 600, ease: 'smooth', stagger: true }`. */
2308
+ /** Node/edge reveal on first render. Default `{ duration: 500, ease: 'smooth', stagger: true }`. */
2302
2309
  enter?: AnimationPhaseConfig | boolean;
2303
2310
  /** Data-update enter-fade for newly added marks. Default `{ duration: 300, ease: 'smooth' }`. */
2304
2311
  update?: AnimationPhaseConfig | boolean;