@opendata-ai/openchart-core 8.6.4 → 8.8.0

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.
@@ -6926,6 +6926,14 @@
6926
6926
  "minItems": 2,
6927
6927
  "maxItems": 2,
6928
6928
  "description": "Explicit extent [min, max] for binning."
6929
+ },
6930
+ "scaleType": {
6931
+ "type": "string",
6932
+ "enum": [
6933
+ "linear",
6934
+ "log"
6935
+ ],
6936
+ "description": "Scale type hint for the bin computation. When `'log'`, bin edges are log-spaced (equal width in log space) instead of linearly spaced. Set automatically by histogram sugar when `encoding.x.scale.type` is `'log'`."
6929
6937
  }
6930
6938
  },
6931
6939
  "additionalProperties": false,
@@ -7873,7 +7881,7 @@
7873
7881
  "$ref": "#/definitions/ChromeText"
7874
7882
  }
7875
7883
  ],
7876
- "description": "Right-anchored brand block on the footer row, paired with a small accent dot to its left. Visually balances the source/byline left-anchored text. When set, suppresses the default `OpenData` watermark for this chart."
7884
+ "description": "Right-anchored brand block on the footer row. Visually balances the source/byline left-anchored text. When set, suppresses the default `OpenData` watermark for this chart."
7877
7885
  }
7878
7886
  },
7879
7887
  "additionalProperties": false,
@@ -9148,7 +9156,7 @@
9148
9156
  "string",
9149
9157
  "number"
9150
9158
  ],
9151
- "description": "The x value (matching `encoding.x`'s domain) where drawing starts. Data before this point renders normally; data at or after it is hidden behind a hatched \"draw here\" region until reveal."
9159
+ "description": "The x value (matching `encoding.x`'s domain) where drawing starts. The line renders normally up to this point; data after it is hidden behind a hatched \"draw here\" region until reveal."
9152
9160
  },
9153
9161
  "prompt": {
9154
9162
  "type": "string",
@@ -9158,6 +9166,10 @@
9158
9166
  "type": "string",
9159
9167
  "description": "Label for the skip-to-reveal button. Defaults to \"Show me\"."
9160
9168
  },
9169
+ "resetLabel": {
9170
+ "type": "string",
9171
+ "description": "Label for the clear-drawing button, shown once the reader has drawn and hidden on reveal. Defaults to \"Clear\"."
9172
+ },
9161
9173
  "comparisonLine": {
9162
9174
  "type": "array",
9163
9175
  "items": {
@@ -441,7 +441,7 @@
441
441
  "$ref": "#/definitions/ChromeText"
442
442
  }
443
443
  ],
444
- "description": "Right-anchored brand block on the footer row, paired with a small accent dot to its left. Visually balances the source/byline left-anchored text. When set, suppresses the default `OpenData` watermark for this chart."
444
+ "description": "Right-anchored brand block on the footer row. Visually balances the source/byline left-anchored text. When set, suppresses the default `OpenData` watermark for this chart."
445
445
  }
446
446
  },
447
447
  "additionalProperties": false,
@@ -6955,6 +6955,14 @@
6955
6955
  "minItems": 2,
6956
6956
  "maxItems": 2,
6957
6957
  "description": "Explicit extent [min, max] for binning."
6958
+ },
6959
+ "scaleType": {
6960
+ "type": "string",
6961
+ "enum": [
6962
+ "linear",
6963
+ "log"
6964
+ ],
6965
+ "description": "Scale type hint for the bin computation. When `'log'`, bin edges are log-spaced (equal width in log space) instead of linearly spaced. Set automatically by histogram sugar when `encoding.x.scale.type` is `'log'`."
6958
6966
  }
6959
6967
  },
6960
6968
  "additionalProperties": false,
@@ -7902,7 +7910,7 @@
7902
7910
  "$ref": "#/definitions/ChromeText"
7903
7911
  }
7904
7912
  ],
7905
- "description": "Right-anchored brand block on the footer row, paired with a small accent dot to its left. Visually balances the source/byline left-anchored text. When set, suppresses the default `OpenData` watermark for this chart."
7913
+ "description": "Right-anchored brand block on the footer row. Visually balances the source/byline left-anchored text. When set, suppresses the default `OpenData` watermark for this chart."
7906
7914
  }
7907
7915
  },
7908
7916
  "additionalProperties": false,
@@ -9177,7 +9185,7 @@
9177
9185
  "string",
9178
9186
  "number"
9179
9187
  ],
9180
- "description": "The x value (matching `encoding.x`'s domain) where drawing starts. Data before this point renders normally; data at or after it is hidden behind a hatched \"draw here\" region until reveal."
9188
+ "description": "The x value (matching `encoding.x`'s domain) where drawing starts. The line renders normally up to this point; data after it is hidden behind a hatched \"draw here\" region until reveal."
9181
9189
  },
9182
9190
  "prompt": {
9183
9191
  "type": "string",
@@ -9187,6 +9195,10 @@
9187
9195
  "type": "string",
9188
9196
  "description": "Label for the skip-to-reveal button. Defaults to \"Show me\"."
9189
9197
  },
9198
+ "resetLabel": {
9199
+ "type": "string",
9200
+ "description": "Label for the clear-drawing button, shown once the reader has drawn and hidden on reveal. Defaults to \"Clear\"."
9201
+ },
9190
9202
  "comparisonLine": {
9191
9203
  "type": "array",
9192
9204
  "items": {
@@ -22626,6 +22638,17 @@
22626
22638
  }
22627
22639
  ],
22628
22640
  "description": "Focus the camera. A feature id (or array) fits those features; `{ features, padding }` adds breathing room; `{ points: true, padding }` fits the points layer's cluster instead of any feature (use when points occupy a small part of a large feature, so fitting the feature would leave the cluster small and off-center); `{ points: { field, value }, padding }` fits only the matching point subset, so a story can pan between sub-clusters. null clears focus from a prior story step."
22641
+ },
22642
+ "zoom": {
22643
+ "anyOf": [
22644
+ {
22645
+ "type": "boolean"
22646
+ },
22647
+ {
22648
+ "$ref": "#/definitions/GeoMapZoomConfig"
22649
+ }
22650
+ ],
22651
+ "description": "Let readers zoom and pan the map. Off by default. `true` enables it with defaults; an object tunes the zoom ceiling and the on-screen buttons. Gestures: ctrl/cmd + wheel or trackpad pinch zooms around the cursor (a plain wheel scrolls the page), drag pans, double-click zooms in, two-finger pinch zooms on touch, and +/-/arrows/0 work when the map has focus. One finger scrolls the page until the reader has zoomed in, then pans the map."
22629
22652
  }
22630
22653
  },
22631
22654
  "required": [
@@ -22737,6 +22760,21 @@
22737
22760
  ],
22738
22761
  "description": "Fit the point layer's cluster. `true` fits every point; `{ field, value }` fits only the points whose data row has `row[field] === value` (e.g. only the campuses rated \"F\"), which lets a story pan between sub-clusters."
22739
22762
  },
22763
+ "GeoMapZoomConfig": {
22764
+ "type": "object",
22765
+ "properties": {
22766
+ "maxZoom": {
22767
+ "type": "number",
22768
+ "description": "Largest zoom factor, relative to the full map. Default 12, minimum 1."
22769
+ },
22770
+ "controls": {
22771
+ "type": "boolean",
22772
+ "description": "Show on-screen zoom in / zoom out / reset buttons. Default true."
22773
+ }
22774
+ },
22775
+ "additionalProperties": false,
22776
+ "description": "Reader zoom and pan for a map. Opt-in: maps without it stay static.\n\n`maxZoom` caps how far readers can zoom in, as a multiple of the full map (the full map is 1, and readers can never zoom out past it). `controls` shows the on-screen zoom in / zoom out / reset buttons."
22777
+ },
22740
22778
  "GeoMapEncoding": {
22741
22779
  "type": "object",
22742
22780
  "properties": {