@opendata-ai/openchart-core 8.0.0-rc.3 → 8.0.0-rc.4
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 +9 -5
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
- package/src/styles/animation.css +6 -5
- package/src/styles/keyframes.css +17 -1
- package/src/types/layout.ts +3 -1
- package/src/types/spec.ts +6 -4
package/dist/index.d.ts
CHANGED
|
@@ -2441,8 +2441,8 @@ interface MapGeo {
|
|
|
2441
2441
|
}
|
|
2442
2442
|
/** Encoding channels specific to map visualizations. */
|
|
2443
2443
|
interface MapEncoding {
|
|
2444
|
-
/** Join key field in the data
|
|
2445
|
-
key
|
|
2444
|
+
/** Join key field in the data. Required for choropleth; optional in basemap-only mode (points layer with empty data). */
|
|
2445
|
+
key?: EncodingChannel;
|
|
2446
2446
|
/** Color encoding (quantitative or nominal). Drives fill color of features. Optional when a points layer is present (basemap-only mode). */
|
|
2447
2447
|
color?: EncodingChannel;
|
|
2448
2448
|
/** Tooltip encoding (optional). */
|
|
@@ -2456,14 +2456,16 @@ interface MapPointsLayer {
|
|
|
2456
2456
|
longitude: EncodingChannel;
|
|
2457
2457
|
/** Field holding latitude (y coordinate). */
|
|
2458
2458
|
latitude: EncodingChannel;
|
|
2459
|
-
/** Optional quantitative size encoding. Area-proportional: r proportional to sqrt(value). */
|
|
2459
|
+
/** Optional quantitative size encoding. Area-proportional: r proportional to sqrt(value). No size legend is rendered in v1; explain the scale in chrome.subtitle if needed. */
|
|
2460
2460
|
size?: EncodingChannel;
|
|
2461
2461
|
/** Optional color encoding (nominal or quantitative). Independent scale from choropleth. */
|
|
2462
2462
|
color?: EncodingChannel;
|
|
2463
2463
|
/** Tooltip channel(s), same shape as MapEncoding.tooltip. */
|
|
2464
2464
|
tooltip?: EncodingChannel | EncodingChannel[];
|
|
2465
|
-
/** Stable id
|
|
2465
|
+
/** Stable id for event callbacks. Data-update transitions for points are not yet supported. */
|
|
2466
2466
|
key?: EncodingChannel;
|
|
2467
|
+
/** Fill opacity for point circles. Default 0.65. Range 0-1. */
|
|
2468
|
+
opacity?: number;
|
|
2467
2469
|
}
|
|
2468
2470
|
interface MapSpec {
|
|
2469
2471
|
/** Discriminant: always "map". */
|
|
@@ -4678,7 +4680,9 @@ interface MapPointMark {
|
|
|
4678
4680
|
stroke: string;
|
|
4679
4681
|
/** Stroke width in px. */
|
|
4680
4682
|
strokeWidth: number;
|
|
4681
|
-
/**
|
|
4683
|
+
/** Fill opacity (0-1). */
|
|
4684
|
+
fillOpacity: number;
|
|
4685
|
+
/** Stable key for events. */
|
|
4682
4686
|
key: string;
|
|
4683
4687
|
/** Original data row. */
|
|
4684
4688
|
data: Record<string, unknown>;
|