@opendata-ai/openchart-core 8.7.0 → 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.
@@ -22638,6 +22638,17 @@
22638
22638
  }
22639
22639
  ],
22640
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."
22641
22652
  }
22642
22653
  },
22643
22654
  "required": [
@@ -22749,6 +22760,21 @@
22749
22760
  ],
22750
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."
22751
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
+ },
22752
22778
  "GeoMapEncoding": {
22753
22779
  "type": "object",
22754
22780
  "properties": {