@opendata-ai/openchart-core 8.0.0-rc.23 → 8.0.0-rc.24
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 +16 -4
- package/dist/index.js.map +1 -1
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -502,7 +502,15 @@ interface MarkDef {
|
|
|
502
502
|
endAngle?: number;
|
|
503
503
|
/** Corner radius for rect/bar marks. 'pill' sets rx to half the bar thickness. */
|
|
504
504
|
cornerRadius?: number | 'pill';
|
|
505
|
-
/**
|
|
505
|
+
/**
|
|
506
|
+
* Bar/column marks: fixed bar thickness in pixels. When set, bars are this
|
|
507
|
+
* height (horizontal) or width (vertical), centered within the band.
|
|
508
|
+
*
|
|
509
|
+
* Point marks: the dot RADIUS in pixels (default 5, typical 2-12). This is
|
|
510
|
+
* NOT Vega-Lite's point `size`, which is an area in px^2 -- a VL size of
|
|
511
|
+
* 110 corresponds to `size: 6` here (r = sqrt(area / pi)). Validation
|
|
512
|
+
* rejects values above 50 with the conversion.
|
|
513
|
+
*/
|
|
506
514
|
size?: number;
|
|
507
515
|
/** Whether the mark is filled (vs stroked only). */
|
|
508
516
|
filled?: boolean;
|
|
@@ -949,9 +957,13 @@ interface Encoding<TData extends DataRow = DataRow> {
|
|
|
949
957
|
*/
|
|
950
958
|
color?: EncodingChannel<TData> | ConditionalValueDef<TData> | ValueDef;
|
|
951
959
|
/**
|
|
952
|
-
* Size channel. Used by point/bubble charts to scale
|
|
953
|
-
*
|
|
954
|
-
*
|
|
960
|
+
* Size channel. Used by point/bubble charts to scale dots by a quantitative
|
|
961
|
+
* field, area-proportionally (sqrt curve). The units are dot RADII in px:
|
|
962
|
+
* `scale.range` defaults to [3, 30] for scatter, and a bare `{ value }`
|
|
963
|
+
* constant expands to `mark.size`, also a radius. This differs from
|
|
964
|
+
* Vega-Lite, where point size is an area in px^2 -- VL-scale values
|
|
965
|
+
* (60-900) are rejected by validation with the conversion.
|
|
966
|
+
* Accepts a conditional definition to vary size based on data predicates.
|
|
955
967
|
*/
|
|
956
968
|
size?: EncodingChannel<TData> | ConditionalValueDef<TData> | ValueDef;
|
|
957
969
|
/**
|