@pioneer-code/pioneer-charts 22.2.2 → 22.2.3

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/package.json CHANGED
@@ -22,7 +22,7 @@
22
22
  "type": "git",
23
23
  "url": "git+https://github.com/PioneerCode/pioneer-charts.git"
24
24
  },
25
- "version": "22.2.2",
25
+ "version": "22.2.3",
26
26
  "license": "MIT",
27
27
  "peerDependencies": {
28
28
  "@angular/common": "^22.1.0",
@@ -292,8 +292,8 @@ interface IPcacGridBuilderConfig<XDomain extends AxisDomain = AxisDomain, YDomai
292
292
  declare class PcacGridBuilder {
293
293
  /**
294
294
  * Vertical lines, one per x-axis tick (or category), running the plot's full height. The group
295
- * is classed `pcac-grid-vertical` so a chart can find and redraw just this grid - the
296
- * line/area/plot charts do on zoom, when the x ticks move.
295
+ * is classed `pcac-grid-vertical` (the horizontal one `pcac-grid-horizontal`) so a chart can
296
+ * find and redraw just one grid - the line/area/plot charts do on zoom, when an axis's ticks move.
297
297
  */
298
298
  drawVerticalGrid<XDomain extends AxisDomain, YDomain extends AxisDomain>(config: IPcacGridBuilderConfig<XDomain, YDomain>): void;
299
299
  /**
@@ -603,7 +603,7 @@ declare class PcacChart {
603
603
  /**
604
604
  * Draws whichever grids the resolved axes ask for: vertical lines from the x axis's ticks,
605
605
  * horizontal from the y's (`PcacAxisConfig.showGrid`). `which` restricts it to one axis - the
606
- * line/area/plot charts redraw just the x grid against the rescaled x on zoom.
606
+ * line/area/plot charts redraw just a zoomed axis's grid against its rescaled scale on zoom.
607
607
  */
608
608
  drawGrids<XDomain extends AxisDomain, YDomain extends AxisDomain>(xScale: AxisScale<XDomain>, yScale: AxisScale<YDomain>, which?: 'x' | 'y' | 'both'): void;
609
609
  /**
@@ -880,7 +880,13 @@ declare class PcacPointImageConfig {
880
880
  */
881
881
  declare class PcacLineAreaChartConfig extends PcacAxisChartConfig {
882
882
  enableEffects: boolean;
883
- enableZoom: boolean;
883
+ /**
884
+ * Zoom and pan along the x / y axis (scroll / pinch to zoom 1x-10x, drag to pan, never leaving
885
+ * the original domain). Either, or both, can be on. A gesture is always two-dimensional, so with
886
+ * only one enabled the other axis simply stays put. Both off by default.
887
+ */
888
+ enableZoomX: boolean;
889
+ enableZoomY: boolean;
884
890
  /**
885
891
  * Hex color codes to override the default colors
886
892
  */