ag-charts-types
Advanced tools
Comparing version 10.2.0 to 10.3.0
@@ -18,2 +18,6 @@ import type { AgStateSerializableDate } from '../api/stateTypes'; | ||
'arrow-down'?: AgShapeAnnotationStyles; | ||
'date-range'?: AgMeasurerAnnotationStyles; | ||
'price-range'?: AgMeasurerAnnotationStyles; | ||
'date-price-range'?: AgMeasurerAnnotationStyles; | ||
'quick-date-price-range'?: AgQuickMeasurerAnnotationStyles; | ||
axesButtons?: AgAnnotationAxesButtons; | ||
@@ -31,4 +35,2 @@ } | ||
} | ||
export interface AgShapeAnnotationStyles extends Lockable, Visible, FillOptions { | ||
} | ||
export interface AgChannelAnnotationStyles extends Extendable, Lockable, Visible, StrokeOptions, LineOptions { | ||
@@ -51,2 +53,15 @@ handle?: AgAnnotationHandleStyles; | ||
} | ||
export interface AgShapeAnnotationStyles extends Lockable, Visible, FillOptions { | ||
} | ||
export interface AgMeasurerAnnotationStyles extends StrokeOptions, LineOptions, Extendable, Lockable, Visible { | ||
background?: FillOptions; | ||
statistics?: AgMeasurerAnnotationStatistics; | ||
} | ||
export interface AgQuickMeasurerAnnotationStyles extends Visible { | ||
up?: AgQuickMeasurerAnnotationDirectionStyles; | ||
down?: AgQuickMeasurerAnnotationDirectionStyles; | ||
} | ||
export interface AgQuickMeasurerAnnotationDirectionStyles extends FillOptions, StrokeOptions, LineOptions { | ||
statistics?: AgMeasurerAnnotationStatistics; | ||
} | ||
export interface AgAnnotationsOptions extends Toggleable { | ||
@@ -56,3 +71,3 @@ /** The options for the axes buttons */ | ||
} | ||
export type AgAnnotation = AgLineAnnotation | AgHorizontalLineAnnotation | AgVerticalLineAnnotation | AgDisjointChannelAnnotation | AgParallelChannelAnnotation | AgCalloutAnnotation | AgCommentAnnotation | AgNoteAnnotation | AgTextAnnotation | AgArrowAnnotation | AgArrowUpAnnotation | AgArrowDownAnnotation; | ||
export type AgAnnotation = AgLineAnnotation | AgHorizontalLineAnnotation | AgVerticalLineAnnotation | AgDisjointChannelAnnotation | AgParallelChannelAnnotation | AgCalloutAnnotation | AgCommentAnnotation | AgNoteAnnotation | AgTextAnnotation | AgArrowAnnotation | AgArrowUpAnnotation | AgArrowDownAnnotation | AgDateRangeAnnotation | AgPriceRangeAnnotation | AgDatePriceRangeAnnotation; | ||
export interface AgLineAnnotation extends AnnotationLinePoints, Cappable, Extendable, Lockable, Visible, StrokeOptions, LineOptions { | ||
@@ -165,2 +180,49 @@ /** Configuration for the trend line annotation.*/ | ||
} | ||
export interface AgDateRangeAnnotation extends AgMeasurerAnnotation { | ||
/** Configuration for the date range annotation.*/ | ||
type: 'date-range'; | ||
/** | ||
* Whether the annotation should be extended up above. | ||
* | ||
* Default: `false` | ||
*/ | ||
extendAbove?: boolean; | ||
/** | ||
* Whether the annotation should be extended down below. | ||
* | ||
* Default: `false` | ||
*/ | ||
extendBelow?: boolean; | ||
} | ||
export interface AgPriceRangeAnnotation extends AgMeasurerAnnotation { | ||
/** Configuration for the price range annotation.*/ | ||
type: 'price-range'; | ||
/** | ||
* Whether the annotation should be extended to the left. | ||
* | ||
* Default: `false` | ||
*/ | ||
extendLeft?: boolean; | ||
/** | ||
* Whether the annotation should be extended to the right. | ||
* | ||
* Default: `false` | ||
*/ | ||
extendRight?: boolean; | ||
} | ||
export interface AgDatePriceRangeAnnotation extends AgMeasurerAnnotation { | ||
/** Configuration for the price range annotation.*/ | ||
type: 'date-price-range'; | ||
} | ||
export interface AgMeasurerAnnotation extends AnnotationLinePoints, Lockable, Visible, StrokeOptions, LineOptions { | ||
/** Configuration for the drag handles. */ | ||
handle?: AgAnnotationHandle; | ||
/** Configuration for the line text. */ | ||
text?: AgLineAnnotationText; | ||
/** Configuration for the statistics. */ | ||
statistics?: AgMeasurerAnnotationStatistics; | ||
} | ||
export interface AgMeasurerAnnotationStatistics extends FontOptions, FillOptions, StrokeOptions { | ||
divider?: StrokeOptions; | ||
} | ||
export type AgAnnotationLineStyleType = 'solid' | 'dashed' | 'dotted'; | ||
@@ -167,0 +229,0 @@ export interface LineOptions extends LineDashOptions { |
@@ -1,4 +0,4 @@ | ||
export type AgIconName = 'align-center' | 'align-left' | 'align-right' | 'arrow-drawing' | 'arrow-down-drawing' | 'arrow-up-drawing' | 'callout-annotation' | 'candlestick-series' | 'close' | 'comment-annotation' | 'delete' | 'disjoint-channel-drawing' | 'drag-handle' | 'fill-color' | 'line-style-solid' | 'line-style-dashed' | 'line-style-dotted' | 'high-low-series' | 'hlc-series' | 'hollow-candlestick-series' | 'horizontal-line-drawing' | 'line-color' | 'line-series' | 'line-with-markers-series' | 'locked' | 'note-annotation' | 'ohlc-series' | 'pan-end' | 'pan-left' | 'pan-right' | 'pan-start' | 'parallel-channel-drawing' | 'position-bottom' | 'position-center' | 'position-top' | 'price-label-annotation' | 'reset' | 'settings' | 'step-line-series' | 'text-annotation' | 'trend-line-drawing' | 'unlocked' | 'vertical-line-drawing' | 'zoom-in' | 'zoom-out' | AgIconLegacyName; | ||
export type AgIconName = 'align-center' | 'align-left' | 'align-right' | 'arrow-drawing' | 'arrow-down-drawing' | 'arrow-up-drawing' | 'callout-annotation' | 'candlestick-series' | 'close' | 'comment-annotation' | 'date-range-drawing' | 'date-price-range-drawing' | 'delete' | 'disjoint-channel-drawing' | 'drag-handle' | 'fill-color' | 'line-style-solid' | 'line-style-dashed' | 'line-style-dotted' | 'high-low-series' | 'hlc-series' | 'hollow-candlestick-series' | 'horizontal-line-drawing' | 'line-color' | 'line-series' | 'line-with-markers-series' | 'locked' | 'measurer-drawing' | 'note-annotation' | 'ohlc-series' | 'pan-end' | 'pan-left' | 'pan-right' | 'pan-start' | 'parallel-channel-drawing' | 'position-bottom' | 'position-center' | 'position-top' | 'price-label-annotation' | 'price-range-drawing' | 'reset' | 'settings' | 'step-line-series' | 'text-annotation' | 'trend-line-drawing' | 'unlocked' | 'vertical-line-drawing' | 'zoom-in' | 'zoom-out' | AgIconLegacyName; | ||
/** @deprecated */ | ||
export type AgIconLegacyName = 'delete-legacy' | 'disjoint-channel' | 'disjoint-channel-legacy' | 'horizontal-line' | 'horizontal-line-legacy' | 'line-color-legacy' | 'lock' | 'lock-legacy' | 'pan-end-legacy' | 'pan-left-legacy' | 'pan-right-legacy' | 'pan-start-legacy' | 'parallel-channel' | 'parallel-channel-legacy' | 'reset-legacy' | 'trend-line' | 'trend-line-legacy' | 'unlock' | 'unlock-legacy' | 'vertical-line' | 'vertical-line-legacy' | 'zoom-in-legacy' | 'zoom-in-alt' | 'zoom-in-alt-legacy' | 'zoom-out-legacy' | 'zoom-out-alt' | 'zoom-out-alt-legacy'; | ||
export declare const ICONS_LEGACY: AgIconLegacyName[]; |
@@ -67,6 +67,10 @@ import type { Formatter } from './callbackOptions'; | ||
enabled: boolean; | ||
/** The browser event that triggered the legend event. */ | ||
event: Event; | ||
} | ||
export interface AgChartLegendClickEvent extends AgChartLegendEvent<'click'> { | ||
preventDefault(): void; | ||
} | ||
export interface AgChartLegendDoubleClickEvent extends AgChartLegendEvent<'dblclick'> { | ||
preventDefault(): void; | ||
} | ||
@@ -73,0 +77,0 @@ export interface AgChartLegendContextMenuEvent extends AgChartLegendEvent<'contextmenu'> { |
@@ -0,1 +1,3 @@ | ||
import type { AgLinearGaugeTarget, AgLinearGaugeThemeableOptions } from '../presets/gauge/linearGaugeOptions'; | ||
import type { AgRadialGaugeTarget, AgRadialGaugeThemeableOptions } from '../presets/gauge/radialGaugeOptions'; | ||
import type { AgAreaSeriesThemeableOptions } from '../series/cartesian/areaOptions'; | ||
@@ -8,2 +10,4 @@ import type { AgBarSeriesThemeableOptions } from '../series/cartesian/barOptions'; | ||
import type { AgBaseCartesianThemeOptions, AgCartesianAxesTheme } from '../series/cartesian/cartesianOptions'; | ||
import type { AgConeFunnelSeriesThemeableOptions } from '../series/cartesian/coneFunnelOptions'; | ||
import type { AgFunnelSeriesThemeableOptions } from '../series/cartesian/funnelOptions'; | ||
import type { AgHeatmapSeriesThemeableOptions } from '../series/cartesian/heatmapOptions'; | ||
@@ -31,2 +35,4 @@ import type { AgHistogramSeriesThemeableOptions } from '../series/cartesian/histogramOptions'; | ||
import type { AgRadialColumnSeriesThemeableOptions } from '../series/polar/radialColumnOptions'; | ||
import type { AgPyramidSeriesThemeableOptions } from '../series/standalone/pyramidOptions'; | ||
import type { AgBaseStandaloneThemeOptions } from '../series/standalone/standaloneOptions'; | ||
import type { AgMapLineBackgroundThemeableOptions } from '../series/topology/mapLineBackgroundOptions'; | ||
@@ -39,3 +45,3 @@ import type { AgMapLineSeriesThemeableOptions } from '../series/topology/mapLineOptions'; | ||
import type { AgAnnotationsThemeableOptions } from './annotationsOptions'; | ||
import type { AgBaseThemeableChartOptions } from './chartOptions'; | ||
import type { AgBaseChartOptions, AgBaseThemeableChartOptions } from './chartOptions'; | ||
import type { AgLocaleThemeableOptions } from './localeOptions'; | ||
@@ -64,3 +70,3 @@ import type { CssColor } from './types'; | ||
/** Configuration from this object is merged over the defaults specified in the base theme. */ | ||
overrides?: AgChartThemeOverrides; | ||
overrides?: AgThemeOverrides; | ||
} | ||
@@ -93,2 +99,8 @@ /** This object is used to define the configuration for a custom chart theme. */ | ||
} | ||
export interface AgConeFunnelSeriesThemeOverrides extends AgBaseCartesianThemeOptions { | ||
series?: AgConeFunnelSeriesThemeableOptions; | ||
} | ||
export interface AgFunnelSeriesThemeOverrides extends AgBaseCartesianThemeOptions { | ||
series?: AgFunnelSeriesThemeableOptions; | ||
} | ||
export interface AgOhlcSeriesThemeOverrides extends AgBaseCartesianThemeOptions { | ||
@@ -115,6 +127,6 @@ series?: AgOhlcSeriesThemeableOptions; | ||
} | ||
export interface AgDonutSeriesThemeOverrides extends AgBasePolarThemeOptions { | ||
export interface AgDonutSeriesThemeOverrides extends AgBaseThemeableChartOptions { | ||
series?: AgDonutSeriesThemeableOptions; | ||
} | ||
export interface AgPieSeriesThemeOverrides extends AgBasePolarThemeOptions { | ||
export interface AgPieSeriesThemeOverrides extends AgBaseThemeableChartOptions { | ||
series?: AgPieSeriesThemeableOptions; | ||
@@ -164,2 +176,18 @@ } | ||
} | ||
export interface AgPyramidThemeOverrides extends AgBaseStandaloneThemeOptions { | ||
series?: AgPyramidSeriesThemeableOptions; | ||
} | ||
export type AgBaseGaugePresetThemeOptions = Pick<AgBaseChartOptions<any>, 'animation' | 'background' | 'container' | 'contextMenu' | 'footnote' | 'height' | 'listeners' | 'locale' | 'minHeight' | 'minWidth' | 'padding' | 'subtitle' | 'title' | 'width'>; | ||
type AgRadialGaugeTheme = AgBaseGaugePresetThemeOptions & AgRadialGaugeThemeableOptions; | ||
export interface AgRadialGaugeTargetTheme extends Omit<AgRadialGaugeTarget, 'value' | 'text'> { | ||
} | ||
export interface AgRadialGaugeThemeOverrides extends AgRadialGaugeTheme { | ||
targets?: AgRadialGaugeTargetTheme; | ||
} | ||
type AgLinearGaugeTheme = AgBaseGaugePresetThemeOptions & AgLinearGaugeThemeableOptions; | ||
export interface AgLinearGaugeTargetTheme extends Omit<AgLinearGaugeTarget, 'value' | 'text'> { | ||
} | ||
export interface AgLinearGaugeThemeOverrides extends AgLinearGaugeTheme { | ||
targets?: AgLinearGaugeTargetTheme; | ||
} | ||
export interface AgCommonThemeableAxisOptions extends AgCartesianAxesTheme, AgPolarAxesTheme { | ||
@@ -172,2 +200,3 @@ } | ||
} | ||
export type AgGaugeThemeOverrides = AgRadialGaugeThemeOverrides | AgLinearGaugeThemeOverrides; | ||
export interface AgChartThemeOverrides { | ||
@@ -190,2 +219,6 @@ /** Common theme overrides for series. */ | ||
candlestick?: AgCandlestickSeriesThemeOverrides; | ||
/** Cone Funnel series theme overrides. */ | ||
'cone-funnel'?: AgConeFunnelSeriesThemeOverrides; | ||
/** Funnel series theme overrides. */ | ||
funnel?: AgFunnelSeriesThemeOverrides; | ||
/** ohlc series theme overrides. */ | ||
@@ -237,2 +270,13 @@ ohlc?: AgOhlcSeriesThemeOverrides; | ||
chord?: AgChordThemeOverrides; | ||
/** Pyramid series theme overrides. */ | ||
pyramid?: AgPyramidThemeOverrides; | ||
} | ||
export interface AgPresetOverrides { | ||
/** Radial gauge theme overrides. */ | ||
'radial-gauge'?: AgRadialGaugeThemeOverrides; | ||
/** Linear Gauge theme overrides. */ | ||
'linear-gauge'?: AgLinearGaugeThemeOverrides; | ||
} | ||
export interface AgThemeOverrides extends AgChartThemeOverrides, AgPresetOverrides { | ||
} | ||
export {}; |
@@ -65,3 +65,3 @@ import type { Toggleable } from '../series/cartesian/commonOptions'; | ||
} | ||
export type AgToolbarAnnotationsButtonValue = 'line-menu' | 'text-menu' | 'shape-menu' | 'line' | 'horizontal-line' | 'vertical-line' | 'parallel-channel' | 'disjoint-channel' | 'text' | 'comment' | 'callout' | 'note' | 'clear'; | ||
export type AgToolbarAnnotationsButtonValue = 'line-menu' | 'text-menu' | 'shape-menu' | 'measurer-menu' | 'line' | 'horizontal-line' | 'vertical-line' | 'parallel-channel' | 'disjoint-channel' | 'text' | 'comment' | 'callout' | 'note' | 'clear'; | ||
export interface AgToolbarSeriesTypeGroup extends AgToolbarGroup { | ||
@@ -68,0 +68,0 @@ } |
import type { AgBaseChartOptions } from './chart/chartOptions'; | ||
import type { AgBaseChartThemeOptions, AgChartTheme, AgChartThemeName } from './chart/themeOptions'; | ||
import type { AgBaseChartThemeOptions, AgBaseGaugePresetThemeOptions, AgChartTheme, AgChartThemeName } from './chart/themeOptions'; | ||
import type { PixelSize } from './chart/types'; | ||
@@ -8,6 +8,8 @@ import type { AgFinancialChartPresets } from './presets/financial/financialOptions'; | ||
import type { AgRadialGaugePreset } from './presets/gauge/radialGaugeOptions'; | ||
import type { AgBaseCartesianChartOptions } from './series/cartesian/cartesianOptions'; | ||
import type { AgSparklineAreaPreset, AgSparklineBarPreset, AgSparklineLinePreset, AgSparklinePresets } from './presets/sparkline/sparklineOptions'; | ||
import type { AgBaseCartesianChartOptions, AgCategoryAxisOptions, AgGroupedCategoryAxisOptions, AgLogAxisOptions, AgNumberAxisOptions, AgOrdinalTimeAxisOptions, AgTimeAxisOptions } from './series/cartesian/cartesianOptions'; | ||
import type { AgBaseFlowProportionChartOptions } from './series/flow-proportion/flowProportionOptions'; | ||
import type { AgBaseHierarchyChartOptions } from './series/hierarchy/hierarchyOptions'; | ||
import type { AgBasePolarChartOptions } from './series/polar/polarOptions'; | ||
import type { AgBaseStandaloneChartOptions } from './series/standalone/standaloneOptions'; | ||
import type { AgBaseTopologyChartOptions } from './series/topology/topologyOptions'; | ||
@@ -37,15 +39,31 @@ export interface AgChartThemeOptions extends AgBaseChartThemeOptions { | ||
} | ||
export interface AgStandaloneChartOptions extends AgBaseStandaloneChartOptions, AgBaseChartOptions { | ||
theme?: AgChartTheme | AgChartThemeName; | ||
} | ||
export interface AgGaugeChartOptions extends AgBaseChartOptions { | ||
theme?: AgChartTheme | AgChartThemeName; | ||
} | ||
export type AgChartOptions = AgCartesianChartOptions | AgPolarChartOptions | AgHierarchyChartOptions | AgTopologyChartOptions | AgFlowProportionChartOptions; | ||
export type AgBaseFinancialPresetOptions = Pick<AgCartesianChartOptions, 'container' | 'width' | 'height' | 'minWidth' | 'minHeight' | 'theme' | 'title'> & Pick<AgCartesianChartOptions, 'initialState' | 'data'>; | ||
export type AgFinancialChartOptions = AgFinancialChartPresets & AgBaseFinancialPresetOptions; | ||
export type AgBaseGaugePresetOptions = Pick<AgBaseChartOptions<any>, 'animation' | 'background' | 'container' | 'contextMenu' | 'footnote' | 'height' | 'listeners' | 'locale' | 'minHeight' | 'minWidth' | 'padding' | 'subtitle' | 'title' | 'width'> & { | ||
export type AgChartOptions = AgCartesianChartOptions | AgPolarChartOptions | AgHierarchyChartOptions | AgTopologyChartOptions | AgFlowProportionChartOptions | AgStandaloneChartOptions; | ||
export type AgBaseFinancialPresetOptions = Pick<AgCartesianChartOptions, 'container' | 'width' | 'height' | 'minWidth' | 'minHeight' | 'theme' | 'title' | 'initialState' | 'data'>; | ||
export type AgSparklineAxisOptions = Omit<AgNumberAxisOptions, 'position'> | Omit<AgLogAxisOptions, 'position'> | Omit<AgCategoryAxisOptions, 'position'> | Omit<AgOrdinalTimeAxisOptions, 'position'> | Omit<AgGroupedCategoryAxisOptions, 'position'> | Omit<AgTimeAxisOptions, 'position'>; | ||
export type AgBaseSparklinePresetThemeOptions = Pick<AgCartesianChartOptions, 'background' | 'container' | 'height' | 'listeners' | 'locale' | 'minHeight' | 'minWidth' | 'padding' | 'width' | 'data'> & { | ||
xAxis?: AgSparklineAxisOptions; | ||
yAxis?: AgSparklineAxisOptions; | ||
}; | ||
export type AgFinancialChartOptions = AgBaseFinancialPresetOptions & AgFinancialChartPresets; | ||
export interface AgBaseGaugePresetOptions extends AgBaseGaugePresetThemeOptions { | ||
theme?: AgChartTheme | AgChartThemeName; | ||
}; | ||
export type AgLinearGaugeOptions = AgLinearGaugePreset & AgBaseGaugePresetOptions; | ||
export type AgRadialGaugeOptions = AgRadialGaugePreset & AgBaseGaugePresetOptions; | ||
export type AgGaugeOptions = AgGaugePresets & AgBaseGaugePresetOptions; | ||
export type AgChartInstanceOptions = AgChartOptions | AgFinancialChartOptions; | ||
} | ||
export type AgLinearGaugeOptions = AgBaseGaugePresetOptions & AgLinearGaugePreset; | ||
export type AgRadialGaugeOptions = AgBaseGaugePresetOptions & AgRadialGaugePreset; | ||
export type AgGaugeOptions = AgBaseGaugePresetOptions & AgGaugePresets; | ||
export interface AgBaseSparklinePresetOptions extends AgBaseSparklinePresetThemeOptions { | ||
theme?: AgChartTheme | AgChartThemeName; | ||
} | ||
export type AgSparklineBarOptions = AgBaseSparklinePresetOptions & AgSparklineBarPreset; | ||
export type AgSparklineLineOptions = AgBaseSparklinePresetOptions & AgSparklineLinePreset; | ||
export type AgSparklineAreaOptions = AgBaseSparklinePresetOptions & AgSparklineAreaPreset; | ||
export type AgSparklineOptions = AgBaseSparklinePresetOptions & AgSparklinePresets; | ||
export type AgPresetOptions = AgFinancialChartOptions | AgGaugeOptions | AgSparklineOptions; | ||
export type AgChartInstanceOptions = AgChartOptions | AgPresetOptions; | ||
type DeepPartial<T> = T extends Array<unknown> ? T : T extends object ? { | ||
@@ -52,0 +70,0 @@ [K in keyof T]?: DeepPartial<T[K]>; |
export * from './api/initialStateOptions'; | ||
export * from './api/agCharts'; | ||
export * from './chart/annotationsOptions'; | ||
@@ -42,2 +43,4 @@ export * from './chart/axisOptions'; | ||
export * from './series/cartesian/commonOptions'; | ||
export * from './series/cartesian/coneFunnelOptions'; | ||
export * from './series/cartesian/funnelOptions'; | ||
export * from './series/cartesian/heatmapOptions'; | ||
@@ -55,2 +58,4 @@ export * from './series/cartesian/histogramOptions'; | ||
export * from './series/flow-proportion/sankeyOptions'; | ||
export * from './series/standalone/pyramidOptions'; | ||
export * from './series/standalone/standaloneOptions'; | ||
export * from './series/hierarchy/hierarchyOptions'; | ||
@@ -57,0 +62,0 @@ export * from './series/hierarchy/sunburstOptions'; |
@@ -81,5 +81,16 @@ import type { DatumCallbackParams } from '../../chart/callbackOptions'; | ||
} | ||
export type AgLinearGaugeLabelPlacement = 'inside-start' | 'outside-start' | 'inside-end' | 'outside-end' | 'inside-center' | 'bar-inside' | 'bar-inside-end' | 'bar-outside-end' | 'bar-end'; | ||
export interface AgLinearGaugeLabelOptions extends AgChartAutoSizedLabelOptions<never, AgLinearGaugeLabelFormatterParams> { | ||
/** Text to always display. */ | ||
text?: string; | ||
/** Distance between the shape edges and the text. */ | ||
spacing?: PixelSize; | ||
/** | ||
* Avoid label collisions with the bar and/or scale. | ||
* | ||
* Default: `true` | ||
*/ | ||
avoidCollisions?: boolean; | ||
/** Placement of the label. */ | ||
placement?: AgLinearGaugeLabelPlacement; | ||
} | ||
@@ -105,6 +116,6 @@ export interface AgLinearGaugeSecondaryLabelOptions extends AgChartAutoSizedSecondaryLabelOptions<never, AgLinearGaugeLabelFormatterParams> { | ||
cornerMode?: AgGaugeCornerMode; | ||
/** Configuration for all targets. */ | ||
target?: AgLinearGaugeTargetOptions; | ||
/** Configuration for the bar. */ | ||
bar?: AgLinearGaugeBarStyle; | ||
/** Configuration for the labels shown inside the shape. */ | ||
label?: AgLinearGaugeLabelOptions; | ||
/** Series-specific tooltip configuration. */ | ||
@@ -111,0 +122,0 @@ tooltip?: AgSeriesTooltip<AgLinearGaugeTooltipRendererParams>; |
@@ -81,7 +81,7 @@ import type { DatumCallbackParams } from '../../chart/callbackOptions'; | ||
export interface AgRadialGaugeThemeableOptions extends AgRadialGaugeStyle, AgBaseGaugeThemeableOptions { | ||
/** Outer radius of the gauge. */ | ||
outerRadius?: PixelSize; | ||
/** Inner radius of the gauge. */ | ||
innerRadius?: PixelSize; | ||
/** Ratio of the outer radius of the gauge. */ | ||
outerRadius?: number; | ||
/** Ratio of the inner radius of the gauge. */ | ||
innerRadius?: number; | ||
/** Ratio of the outer radius of the gauge. */ | ||
outerRadiusRatio?: Ratio; | ||
@@ -88,0 +88,0 @@ /** Ratio of the inner radius of the gauge. */ |
import type { AgFinancialChartPresets } from './financial/financialOptions'; | ||
import type { AgGaugePresets } from './gauge/gaugeOptions'; | ||
export type Preset = AgFinancialChartPresets | AgGaugePresets; | ||
import type { AgSparklinePresets } from './sparkline/sparklineOptions'; | ||
export type AgPreset = AgFinancialChartPresets | AgGaugePresets | AgSparklinePresets; |
@@ -10,6 +10,8 @@ import type { DatumCallbackParams, Styler } from '../../chart/callbackOptions'; | ||
import type { FillOptions, LineDashOptions, StrokeOptions } from './commonOptions'; | ||
export type AgBarSeriesLabelPlacement = 'inside' | 'outside'; | ||
export type AgBarSeriesLabelPlacement = 'inside-center' | 'inside-start' | 'inside-end' | 'outside-start' | 'outside-end' | 'inside' | 'outside'; | ||
export interface AgBarSeriesLabelOptions<TDatum, TParams> extends AgChartLabelOptions<TDatum, TParams> { | ||
/** Where to render series labels relative to the segments. */ | ||
placement?: AgBarSeriesLabelPlacement; | ||
/** Distance between the shape edges and the text. */ | ||
padding?: PixelSize; | ||
} | ||
@@ -16,0 +18,0 @@ export interface AgBarSeriesItemStylerParams<TDatum> extends DatumCallbackParams<TDatum>, AgBarSeriesOptionsKeys, Required<AgBarSeriesStyle> { |
@@ -7,2 +7,4 @@ import type { AgAreaSeriesOptions } from './areaOptions'; | ||
import type { AgCandlestickSeriesOptions } from './candlestickOptions'; | ||
import type { AgConeFunnelSeriesOptions } from './coneFunnelOptions'; | ||
import type { AgFunnelSeriesOptions } from './funnelOptions'; | ||
import type { AgHeatmapSeriesOptions } from './heatmapOptions'; | ||
@@ -16,2 +18,2 @@ import type { AgHistogramSeriesOptions } from './histogramOptions'; | ||
import type { AgWaterfallSeriesOptions } from './waterfallOptions'; | ||
export type AgCartesianSeriesOptions = AgLineSeriesOptions | AgScatterSeriesOptions | AgBubbleSeriesOptions | AgAreaSeriesOptions | AgBarSeriesOptions | AgBoxPlotSeriesOptions | AgCandlestickSeriesOptions | AgOhlcSeriesOptions | AgHistogramSeriesOptions | AgHeatmapSeriesOptions | AgWaterfallSeriesOptions | AgRangeBarSeriesOptions | AgRangeAreaSeriesOptions | AgBulletSeriesOptions; | ||
export type AgCartesianSeriesOptions = AgAreaSeriesOptions | AgBarSeriesOptions | AgBoxPlotSeriesOptions | AgBubbleSeriesOptions | AgBulletSeriesOptions | AgCandlestickSeriesOptions | AgConeFunnelSeriesOptions | AgFunnelSeriesOptions | AgHeatmapSeriesOptions | AgHistogramSeriesOptions | AgLineSeriesOptions | AgOhlcSeriesOptions | AgRangeAreaSeriesOptions | AgRangeBarSeriesOptions | AgScatterSeriesOptions | AgWaterfallSeriesOptions; |
@@ -32,3 +32,3 @@ import type { DatumItemCallbackParams, Styler } from '../../chart/callbackOptions'; | ||
} | ||
export type AgWaterfallSeriesLabelPlacement = 'start' | 'end' | 'inside'; | ||
export type AgWaterfallSeriesLabelPlacement = 'inside-center' | 'inside-start' | 'inside-end' | 'outside-start' | 'outside-end' | 'inside' | 'start' | 'end'; | ||
export interface AgWaterfallSeriesThemeableOptions<TDatum = any> extends AgBaseCartesianThemeableOptions<TDatum> { | ||
@@ -35,0 +35,0 @@ /** |
@@ -70,5 +70,9 @@ import type { DatumCallbackParams, Styler } from '../../chart/callbackOptions'; | ||
} | ||
export interface AgChordSeriesTooltipRendererParams<TDatum> extends AgSeriesTooltipRendererParams<TDatum>, AgChordSeriesOptionsKeys, AgChordSeriesOptionsNames { | ||
interface SizeParams { | ||
size: number; | ||
} | ||
export interface AgChordSeriesLabelFormatterParams<_TDatum = any> extends AgChordSeriesOptionsKeys { | ||
export interface AgChordSeriesTooltipRendererParams<TDatum> extends AgSeriesTooltipRendererParams<TDatum>, AgChordSeriesOptionsKeys, AgChordSeriesOptionsNames, SizeParams { | ||
} | ||
export interface AgChordSeriesLabelFormatterParams<_TDatum = any> extends AgChordSeriesOptionsKeys, SizeParams { | ||
} | ||
export {}; |
@@ -68,5 +68,9 @@ import type { DatumCallbackParams, Styler } from '../../chart/callbackOptions'; | ||
} | ||
export interface AgSankeySeriesTooltipRendererParams<TDatum> extends AgSeriesTooltipRendererParams<TDatum>, AgSankeySeriesOptionsKeys, AgSankeySeriesOptionsNames { | ||
interface SizeParams { | ||
size: number; | ||
} | ||
export interface AgSankeySeriesLabelFormatterParams<_TDatum = any> extends AgSankeySeriesOptionsKeys { | ||
export interface AgSankeySeriesTooltipRendererParams<TDatum> extends AgSeriesTooltipRendererParams<TDatum>, AgSankeySeriesOptionsKeys, AgSankeySeriesOptionsNames, SizeParams { | ||
} | ||
export interface AgSankeySeriesLabelFormatterParams<_TDatum = any> extends AgSankeySeriesOptionsKeys, SizeParams { | ||
} | ||
export {}; |
The MIT License | ||
Copyright (c) 2015-2019 AG GRID LTD | ||
Copyright (c) 2015-2024 AG GRID LTD | ||
@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
{ | ||
"name": "ag-charts-types", | ||
"version": "10.2.0", | ||
"version": "10.3.0", | ||
"description": "Advanced Charting / Charts supporting Javascript / Typescript / React / Angular / Vue", | ||
@@ -15,3 +15,2 @@ "main": "./dist/package/main.cjs.js", | ||
"scripts": { | ||
"lint:circular": "npx madge --circular --extensions ts src/", | ||
"lint:prune": "npx ts-prune -p tsconfig.lib.json" | ||
@@ -18,0 +17,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
327993
96
5410