@axdspub/axiom-charts 0.0.13 → 0.0.15

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.
@@ -1,4 +1,4 @@
1
- import { IRequestItemProps, IDataResult, INumericDataAccessor, IRequestItemData, IRequestItemImplementation } from '@axdspub/axiom-ui-data-services';
1
+ import { IRequestItemProps, IDataResult, INumericDataAccessor, IRequestItemData, INumericData, IRequestItemImplementation } from '@axdspub/axiom-ui-data-services';
2
2
  import { ReactElement } from 'react';
3
3
 
4
4
  interface IUnit {
@@ -101,7 +101,7 @@ interface IPlotScrubPosition {
101
101
  xPosition: number;
102
102
  yPosition: number;
103
103
  xValue: number | Date | string;
104
- yValue: number;
104
+ yValue: INumericData;
105
105
  }
106
106
  type PlotId = string;
107
107
  type IPlotScrubPositions = Record<PlotId, IPlotScrubPosition>;
@@ -147,6 +147,7 @@ interface IChart {
147
147
  description?: string;
148
148
  help?: string;
149
149
  onScrub?: (scrubPositions: IPlotScrubPositions) => void;
150
+ onScrubEnd?: () => void;
150
151
  }
151
152
  interface IChartImplementationProps extends IChart {
152
153
  element?: HTMLElement;
@@ -163,6 +164,7 @@ declare class ChartRoot implements IChartImplementation {
163
164
  settings: IChartSettings;
164
165
  plotImplementations?: IPlotImplementation[];
165
166
  onScrub?: (scrubPositions: IPlotScrubPositions) => void;
167
+ onScrubEnd?: () => void;
166
168
  runtime: {
167
169
  prevWidth: number;
168
170
  prevHeight: number;
@@ -263,6 +263,7 @@ var AxiomCharts = (function (exports, axiomUiDataServices, d3Array, lodash, requ
263
263
  this.settings = props.settings;
264
264
  this.element = props.element;
265
265
  this.onScrub = props.onScrub;
266
+ this.onScrubEnd = props.onScrubEnd;
266
267
  this.runtime = {
267
268
  prevWidth: 0,
268
269
  prevHeight: 0