Socket
Socket
Sign inDemoInstall

ag-charts-community

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ag-charts-community - npm Package Compare versions

Comparing version 9.1.1 to 9.2.0

benchmarks/__image_snapshots__/integrated-charts-large-scale-test-ts-integrated-charts-large-scale-benchmark-after-load-1-x-legend-toggle-1-snap.png

13

dist/types/src/chart/axis/axis.d.ts

@@ -26,11 +26,4 @@ import type { ModuleInstance } from '../../module/baseModule';

import { AxisTick } from './axisTick';
import type { AxisTitle } from './axisTitle';
import { AxisTitle } from './axisTitle';
import type { AxisLineDatum } from './axisUtil';
export declare enum Tags {
TickLine = 0,
TickLabel = 1,
GridLine = 2,
GridArc = 3,
AxisLine = 4
}
type TickStrategyResult = {

@@ -102,3 +95,3 @@ index: number;

abstract get direction(): ChartAxisDirection;
boundSeries: ISeries<unknown>[];
boundSeries: ISeries<unknown, unknown>[];
includeInvisibleDomains: boolean;

@@ -159,3 +152,3 @@ interactionEnabled: boolean;

protected onLabelFormatChange(ticks: any[], format?: string): void;
title?: AxisTitle;
title: AxisTitle;
protected _titleCaption: Caption;

@@ -162,0 +155,0 @@ private setTickInterval;

import type { AgAxisLabelFormatterParams, FontStyle, FontWeight } from '../../options/agChartOptions';
import { BaseProperties } from '../../util/properties';
import type { ChartAxisLabel, ChartAxisLabelFlipFlag } from '../chartAxis';
export declare class AxisLabel implements ChartAxisLabel {
export declare class AxisLabel extends BaseProperties implements ChartAxisLabel {
enabled: boolean;

@@ -74,3 +75,2 @@ /** If set to `false`, axis labels will not be wrapped on multiple lines. */

format?: string;
getFont(): string;
}

@@ -0,7 +1,9 @@

import type { OrdinalTimeScale } from '../../scale/ordinalTimeScale';
import type { Scale } from '../../scale/scale';
import type { TimeScale } from '../../scale/timeScale';
import { BaseProperties } from '../../util/properties';
import { TimeInterval } from '../../util/time/interval';
export type TickInterval<S> = S extends TimeScale ? number | TimeInterval : number;
export type TickInterval<S> = S extends TimeScale | OrdinalTimeScale ? number | TimeInterval : number;
export type TickCount<S> = S extends TimeScale ? number | TimeInterval : number;
export declare class AxisTick<S extends Scale<D, number, I>, D = any, I = any> {
export declare class AxisTick<S extends Scale<D, number, I>, D = any, I = any> extends BaseProperties {
enabled: boolean;

@@ -8,0 +10,0 @@ /**

import type { AgAxisCaptionFormatterParams, AgAxisCaptionOptions, FontStyle, FontWeight, TextWrap } from '../../options/agChartOptions';
export declare class AxisTitle implements AgAxisCaptionOptions {
import { BaseProperties } from '../../util/properties';
export declare class AxisTitle extends BaseProperties implements AgAxisCaptionOptions {
enabled: boolean;

@@ -4,0 +5,0 @@ text?: string;

@@ -7,5 +7,4 @@ import type { AxisContext } from '../../module/moduleContext';

import { Axis } from './axis';
import type { TickInterval } from './axisTick';
import { CartesianAxisLabel } from './cartesianAxisLabel';
export declare abstract class CartesianAxis<S extends Scale<D, number, TickInterval<S>> = Scale<any, number, any>, D = any> extends Axis<S, D> {
export declare abstract class CartesianAxis<S extends Scale<D, number, any> = Scale<any, number, any>, D = any> extends Axis<S, D> {
static is(value: any): value is CartesianAxis<any>;

@@ -12,0 +11,0 @@ thickness: number;

import type { ModuleContext } from '../../module/moduleContext';
import { BandScale } from '../../scale/bandScale';
import type { OrdinalTimeScale } from '../../scale/ordinalTimeScale';
import { CartesianAxis } from './cartesianAxis';
export declare class CategoryAxis extends CartesianAxis<BandScale<string | object>> {
static className: string;
static type: "category";
export declare class CategoryAxis<S extends BandScale<string | object, number> | OrdinalTimeScale = BandScale<string | object, number>> extends CartesianAxis<S> {
static readonly className: string;
static readonly type: string;
private _paddingOverrideEnabled;
constructor(moduleCtx: ModuleContext);
constructor(moduleCtx: ModuleContext, scale?: S);
groupPaddingInner: number;

@@ -10,0 +11,0 @@ set paddingInner(value: number);

@@ -11,5 +11,5 @@ import type { ModuleContext } from '../../module/moduleContext';

export declare class GroupedCategoryAxis extends CartesianAxis<BandScale<string | number>> {
static className: string;
static type: "grouped-category";
readonly tickScale: BandScale<string | number>;
static readonly className = "GroupedCategoryAxis";
static readonly type: "grouped-category";
readonly tickScale: BandScale<string | number, number>;
private gridLineSelection;

@@ -16,0 +16,0 @@ private axisLineSelection;

import type { ModuleContext } from '../../module/moduleContext';
import { NumberAxis } from './numberAxis';
export declare class LogAxis extends NumberAxis {
static className: string;
static type: "log";
static readonly className = "LogAxis";
static readonly type: "log";
normaliseDataDomain(d: number[]): {

@@ -7,0 +7,0 @@ domain: number[];

@@ -10,4 +10,4 @@ import type { ModuleContext } from '../../module/moduleContext';

export declare class NumberAxis extends CartesianAxis<LinearScale | LogScale, number> {
static className: string;
static type: "number" | "log";
static readonly className: string;
static readonly type: string;
constructor(moduleCtx: ModuleContext, scale?: LinearScale | LogScale);

@@ -14,0 +14,0 @@ normaliseDataDomain(d: number[]): {

@@ -9,4 +9,4 @@ import type { ModuleContext } from '../../module/moduleContext';

export declare class TimeAxis extends CartesianAxis<TimeScale, number | Date> {
static className: string;
static type: "time";
static readonly className = "TimeAxis";
static readonly type: "time";
private datumFormat;

@@ -13,0 +13,0 @@ private datumFormatter;

@@ -11,4 +11,4 @@ import type { ChartOptions } from '../module/optionsModule';

export declare class CartesianChart extends Chart {
static className: string;
static type: string;
static readonly className = "CartesianChart";
static readonly type = "cartesian";
/** Integrated Charts feature state - not used in Standalone Charts. */

@@ -18,6 +18,7 @@ readonly paired: boolean;

private firstSeriesTranslation;
destroySeries(series: Series<any>[]): void;
destroySeries(series: Series<any, any>[]): void;
performLayout(): Promise<BBox>;
private _lastCrossLineIds?;
private _lastAxisWidths;
private _lastClipSeries;
private _lastVisibility;

@@ -24,0 +25,0 @@ updateAxes(inputShrinkRect: BBox): {

@@ -1,4 +0,1 @@

import type { ModuleInstance } from '../module/baseModule';
import type { LegendModule, RootModule } from '../module/coreModules';
import { type Module } from '../module/module';
import type { ModuleContext } from '../module/moduleContext';

@@ -15,3 +12,2 @@ import type { ChartOptions } from '../module/optionsModule';

import { BaseProperties } from '../util/properties';
import { type ActionOnSetOptions } from '../util/proxy';
import { Caption } from './caption';

@@ -35,7 +31,8 @@ import type { ChartAnimationPhase } from './chartAnimationPhase';

import { SyncManager } from './interaction/syncManager';
import { ToolbarManager } from './interaction/toolbarManager';
import { TooltipManager } from './interaction/tooltipManager';
import { ZoomManager } from './interaction/zoomManager';
import { LayoutService } from './layout/layoutService';
import type { CategoryLegendDatum, ChartLegend, ChartLegendType } from './legendDatum';
import { type SeriesOptionsTypes } from './mapping/types';
import { ModulesManager } from './modulesManager';
import { ChartOverlays } from './overlay/chartOverlays';

@@ -47,5 +44,4 @@ import { type Series } from './series/series';

import { UpdateOpts, UpdateService } from './updateService';
type OptionalHTMLElement = HTMLElement | undefined | null;
export type TransferableResources = {
container?: OptionalHTMLElement;
container?: HTMLElement;
scene: Scene;

@@ -61,2 +57,3 @@ element: HTMLElement;

export type ChartExtendedOptions = AgChartOptions & ChartSpecialOverrides;
type PointerEvent = PointerOffsets & Pick<Partial<InteractionEvent>, 'pointerHistory'>;
declare class SeriesArea extends BaseProperties {

@@ -67,3 +64,3 @@ clip?: boolean;

export declare abstract class Chart extends Observable implements AgChartInstance {
static chartsInstances: WeakMap<HTMLElement, Chart>;
private static readonly chartsInstances;
static getInstance(element: HTMLElement): Chart | undefined;

@@ -79,3 +76,3 @@ readonly id: string;

private extraDebugStats;
container: OptionalHTMLElement;
container?: HTMLElement;
data: any;

@@ -91,7 +88,6 @@ width?: number;

readonly seriesArea: SeriesArea;
title?: Caption;
subtitle?: Caption;
footnote?: Caption;
readonly title: Caption;
readonly subtitle: Caption;
readonly footnote: Caption;
mode: ChartMode;
static NodeValueChangeOptions: ActionOnSetOptions<Chart>;
destroyed: boolean;

@@ -102,5 +98,6 @@ private _skipSync;

readonly highlightManager: HighlightManager;
readonly modulesManager: ModulesManager;
readonly syncManager: SyncManager;
readonly tooltipManager: TooltipManager;
readonly zoomManager: ZoomManager;
readonly modules: Map<string, ModuleInstance>;
protected readonly animationManager: AnimationManager;

@@ -112,4 +109,4 @@ protected readonly chartEventManager: ChartEventManager;

protected readonly regionManager: RegionManager;
protected readonly toolbarManager: ToolbarManager;
protected readonly gestureDetector: GestureDetector;
protected readonly tooltipManager: TooltipManager;
protected readonly dataService: DataService<any>;

@@ -123,4 +120,3 @@ protected readonly layoutService: LayoutService;

protected readonly seriesLayerManager: SeriesLayerManager;
protected readonly legends: Map<ChartLegendType, ChartLegend>;
legend: ChartLegend | undefined;
private readonly sizeMonitor;
private readonly processors;

@@ -135,6 +131,2 @@ processedOptions: AgChartOptions & {

protected constructor(options: ChartOptions, resources?: TransferableResources);
addModule<T extends RootModule | LegendModule>(module: T): void;
removeModule(module: RootModule | LegendModule): void;
private attachLegend;
isModuleEnabled(module: Module): boolean;
getModuleContext(): ModuleContext;

@@ -163,5 +155,5 @@ resetAnimations(): void;

axes: ChartAxis[];
series: Series<any>[];
series: Series<any, any>[];
private onSeriesChange;
protected destroySeries(series: Series<any>[]): void;
protected destroySeries(allSeries: Series<any, any>[]): void;
private addSeriesListeners;

@@ -171,3 +163,2 @@ updateAllSeriesListeners(): void;

protected assignAxesToSeries(): void;
private findMatchingAxis;
private rawResize;

@@ -177,5 +168,4 @@ private resize;

processData(): Promise<void>;
placeLabels(): Map<Series<any>, PlacedLabel[]>;
private updateLegend;
protected validateCategoryLegendData(legendData: CategoryLegendDatum[]): void;
placeLabels(): Map<Series<any, any>, PlacedLabel[]>;
private getLegendData;
private processLayout;

@@ -195,3 +185,3 @@ protected performLayout(): Promise<BBox>;

protected handlePointerTooltip(event: PointerOffsets, disablePointer: (highlightOnly?: boolean) => void): void;
protected handlePointerNode(event: PointerOffsets): void;
protected handlePointerNode(event: PointerEvent): void;
protected onClick(event: InteractionEvent<'click'>): void;

@@ -206,6 +196,14 @@ protected onDoubleClick(event: InteractionEvent<'dblclick'>): void;

changeHighlightDatum(event: HighlightChangeEvent): void;
waitForUpdate(timeoutMs?: number): Promise<void>;
protected getMinRect(): BBox | undefined;
waitForUpdate(timeoutMs?: number, failOnTimeout?: boolean): Promise<void>;
private dataProcessListeners;
waitForDataProcess(timeout?: number): Promise<void>;
protected getMinRects(): {
minRect: BBox;
minVisibleRect: BBox;
} | undefined;
private filterMiniChartSeries;
applyOptions(chartOptions: ChartOptions): void;
private maybeResetAnimations;
private shouldForceNodeDataRefresh;
private applyMiniChartOptions;
private applyModules;

@@ -219,5 +217,4 @@ private applySeries;

private applyAxisModules;
private applyOptionValues;
private registerListeners;
}
export {};
/** Chart animation phases - determines the top-level animation lifecycle phase for the overall chart */
export type ChartAnimationPhase = 'initial' | 'ready';
export type ChartAnimationPhase = 'initial' | 'ready' | 'disabled';

@@ -12,2 +12,3 @@ import type { AxisContext, ModuleContextWithParent } from '../module/moduleContext';

import type { ChartAxisDirection } from './chartAxisDirection';
import type { CrossLine } from './crossline/crossLine';
import type { AxisLayout } from './layout/layoutService';

@@ -18,3 +19,3 @@ import type { ISeries } from './series/seriesTypes';

attachAxis(axisGroup: Node, gridGroup: Node): void;
boundSeries: ISeries<unknown>[];
boundSeries: ISeries<unknown, unknown>[];
calculateLayout(primaryTickCount?: number): {

@@ -29,3 +30,3 @@ primaryTickCount: number | undefined;

isReversed(): boolean;
crossLines?: any[];
crossLines?: CrossLine[];
dataDomain: {

@@ -83,3 +84,2 @@ domain: any[];

formatter?: (params: AgAxisLabelFormatterParams) => string;
getFont(): string;
getSideFlag(): ChartAxisLabelFlipFlag;

@@ -93,2 +93,3 @@ maxHeight?: number;

rotation?: number;
set(props: object): void;
}

@@ -1,3 +0,4 @@

export declare class ChartHighlight {
import { BaseProperties } from '../util/properties';
export declare class ChartHighlight extends BaseProperties {
range: 'tooltip' | 'node';
}
import type { JsonApplyParams } from '../util/json';
export declare const JSON_APPLY_PLUGINS: JsonApplyParams;
export declare function assignJsonApplyConstructedArray(array: any[], ctor: new () => any): void;
export declare const JSON_APPLY_OPTIONS: JsonApplyParams;

@@ -11,3 +11,3 @@ import type { AgChartInstance } from '../options/chart/chartBuilderOptions';

export declare class AgChartInstanceProxy implements AgChartProxy {
static chartInstances: WeakMap<Chart, AgChartInstanceProxy>;
static readonly chartInstances: WeakMap<Chart, AgChartInstanceProxy>;
static isInstance(x: any): x is AgChartInstanceProxy;

@@ -14,0 +14,0 @@ private static validateImplementation;

@@ -7,3 +7,3 @@ import type { CaptionLike } from './captionLike';

readonly title?: CaptionLike;
readonly series: ISeries<any>[];
readonly series: ISeries<any, any>[];
}

@@ -32,3 +32,3 @@ import type { AgCartesianCrossLineLabelOptions, AgCrossLineLabelPosition, FontStyle, FontWeight } from '../../options/agChartOptions';

protected static readonly LABEL_LAYER_ZINDEX = Layers.SERIES_LABEL_ZINDEX;
static className: string;
static readonly className = "CrossLine";
readonly id: string;

@@ -35,0 +35,0 @@ enabled?: boolean;

@@ -11,3 +11,3 @@ import type { AgBaseCrossLineLabelOptions, AgCrossLineLabelPosition } from '../../options/agChartOptions';

calculateLayout(visible: boolean, reversedAxis?: boolean): BBox | undefined;
calculatePadding(padding: Partial<Record<AgCrossLineLabelPosition, number>>): void;
calculatePadding?: (padding: Partial<Record<AgCrossLineLabelPosition, number>>) => void;
clippedRange: [number, number];

@@ -14,0 +14,0 @@ direction: ChartAxisDirection;

import type { AggregatePropertyDefinition, DatumPropertyDefinition, ScopeProvider } from './dataModel';
export declare function sum(scope: ScopeProvider, id: string, matchGroupId: string): AggregatePropertyDefinition<any, any, [number, number], [number, number]>;
export declare function groupSum(scope: ScopeProvider, id: string, matchGroupId?: string): AggregatePropertyDefinition<any, any, [number, number]>;
export declare function groupSum(scope: ScopeProvider, id: string, matchGroupId?: string): AggregatePropertyDefinition<any, any>;
export declare function range(scope: ScopeProvider, id: string, matchGroupId: string): AggregatePropertyDefinition<any, any, [number, number], [number, number]>;
export declare function count(scope: ScopeProvider, id: string): AggregatePropertyDefinition<any, any, [number, number], [number, number]>;
export declare function groupCount(scope: ScopeProvider, id: string): AggregatePropertyDefinition<any, any, [number, number]>;
export declare function average(scope: ScopeProvider, id: string, matchGroupId: string): AggregatePropertyDefinition<any, any, [number, number], [number, number]>;
export declare function groupCount(scope: ScopeProvider, id: string): AggregatePropertyDefinition<any, any>;
export declare function groupAverage(scope: ScopeProvider, id: string, matchGroupId?: string): AggregatePropertyDefinition<any, any, [number, number], [number, number, number]>;

@@ -9,0 +7,0 @@ export declare function area(scope: ScopeProvider, id: string, aggFn: AggregatePropertyDefinition<any, any>, matchGroupId?: string): AggregatePropertyDefinition<any, any, [number, number], [number, number]>;

@@ -17,7 +17,14 @@ import type { ChartMode } from '../chartMode';

execute(): void;
private extractScopedData;
private hasMultipleDataSources;
private processScopedData;
private validateRequests;
private mergeRequested;
private splitResult;
private static groupMatch;
private static mergeRequests;
private static mergeIdsMap;
private static createIdsMap;
static readonly skipKeys: Set<string>;
static deepEqual<T>(a: T, b: T): boolean;
}
export {};

@@ -1,8 +0,17 @@

export declare class DataDomain {
private readonly type;
private continuousDomain;
private discreteDomain;
constructor(type: 'continuous' | 'discrete');
export interface IDataDomain<D = any> {
extend(val: any): void;
getDomain(): number[] | Set<unknown>;
getDomain(): D[];
}
export declare class DiscreteDomain implements IDataDomain {
private domain;
static is(value: unknown): value is DiscreteDomain;
extend(val: any): void;
getDomain(): unknown[];
}
export declare class ContinuousDomain<T extends number | Date> implements IDataDomain<T> {
private domain;
static is<T extends number | Date = any>(value: unknown): value is ContinuousDomain<T>;
static extendDomain(values: unknown[], domain?: [number, number]): [number, number];
extend(value: T): void;
getDomain(): T[];
}
import type { ChartMode } from '../chartMode';
import type { ContinuousDomain } from './utilFunctions';
export type ScopeProvider = {

@@ -11,3 +10,3 @@ id: string;

datum: D;
validScopes?: string[];
validScopes?: Set<string>;
};

@@ -46,9 +45,6 @@ export interface UngroupedData<D> {

changed: boolean;
moved: any[];
added: any[];
updated: any[];
removed: any[];
addedIndices: number[];
updatedIndices: number[];
removedIndices: number[];
added: Map<string, any>;
updated: Map<string, any>;
removed: Map<string, any>;
moved: Map<string, any>;
};

@@ -99,6 +95,5 @@ type GroupedDataItem<D> = UngroupedDataItem<D[], any[][]> & {

scopes?: string[];
/** Unique id for a property definition within the scope(s) provided. */
/** Tuples of [scope, id] that match this definition. */
ids?: [string, string][];
id?: string;
/** Map<Scope, Set<Id>> */
idsMap?: Map<string, Set<string>>;
/** Optional group a property belongs to, for cross-scope combination. */

@@ -120,2 +115,3 @@ groupId?: string;

forceValue?: any;
includeProperty?: boolean;
invalidValue?: any;

@@ -139,3 +135,3 @@ missing?: MissMap;

* Outer function called once per all data processing; inner function called once per group;
* inner-most called once per datum.
* innermost called once per datum.
*/

@@ -146,3 +142,3 @@ adjust: () => () => (values: D[K][], indexes: number[]) => void;

type: 'property-value-processor';
property: PropertyId<keyof D & string>;
property: PropertyId<string>;
adjust: () => (processedData: ProcessedData<D>, valueIndex: number) => void;

@@ -165,2 +161,3 @@ };

private readonly debug;
private readonly scopeCache;
private readonly opts;

@@ -177,5 +174,4 @@ private readonly keys;

resolveProcessedDataIndexById(scope: ScopeProvider, searchId: string): ProcessedDataDef | never;
resolveProcessedDataIndicesById(scope: ScopeProvider, searchId: string | RegExp): ProcessedDataDef[] | never;
resolveProcessedDataDefById(scope: ScopeProvider, searchId: string): ProcessedDataDef | never;
resolveProcessedDataDefsByIds<T extends string>(scope: ScopeProvider, searchIds: T[]): [T, ProcessedDataDef[]][] | never;
resolveProcessedDataDefsByIds<T extends string>(scope: ScopeProvider, searchIds: T[]): [T, ProcessedDataDef[]][];
resolveProcessedDataDefsValues<T extends string>(defs: [T, ProcessedDataDef[]][], { keys, values }: {

@@ -185,4 +181,6 @@ keys: unknown[];

}): Record<T, any>;
resolveProcessedDataDefsById(searchScope: ScopeProvider, searchId: RegExp | string): ProcessedDataDef[] | never;
getDomain(scope: ScopeProvider, searchId: string | RegExp, type: "key" | "value" | "aggregate" | "group-value-processor" | "property-value-processor" | "reducer" | "processor" | undefined, processedData: ProcessedData<K>): any[] | ContinuousDomain<number> | [];
resolveProcessedDataDefsById(searchScope: ScopeProvider, searchId: string): ProcessedDataDef[] | never;
private scopeDefs;
getDomain(scope: ScopeProvider, searchId: string, type: "value" | "key" | "aggregate" | "group-value-processor" | "property-value-processor" | "reducer" | "processor" | undefined, processedData: ProcessedData<K>): any[] | [number, number] | [];
private getDomainsByType;
processData(data: D[], sources?: {

@@ -192,2 +190,3 @@ id: string;

}[]): (Grouped extends true ? GroupedData<D> : UngroupedData<D>) | undefined;
private hasMatchingDef;
private valueGroupIdxLookup;

@@ -203,6 +202,6 @@ private valueIdxLookup;

private initDataDomainProcessor;
buildAccessors(...defs: {
buildAccessors(defs: Iterable<{
property: string;
}[]): Record<string, (d: any) => any>;
}>): Map<string, (d: any) => any>;
}
export {};

@@ -24,2 +24,3 @@ import { Listeners } from '../../util/listeners';

private isLoadingInitialData;
private isLoadingData;
private freshRequests;

@@ -26,0 +27,0 @@ private requestCounter;

@@ -9,3 +9,5 @@ import type { GroupValueProcessorDefinition, ProcessedData, ProcessorOutputPropertyDefinition, PropertyId, PropertyValueProcessorDefinition, ReducerOutputPropertyDefinition, ScopeProvider } from './dataModel';

export declare function accumulateGroup(scope: ScopeProvider, matchGroupId: string, mode: 'normal' | 'trailing' | 'window' | 'window-trailing', sum: 'current' | 'last', separateNegative?: boolean): GroupValueProcessorDefinition<any, any>;
export declare function diff(previousData: ProcessedData<any>, updateMovedDatums?: boolean): ProcessorOutputPropertyDefinition<'diff'>;
export declare function createDatumId(keys: any | any[]): any;
export declare function diff(previousData: ProcessedData<any>, updateMovedData?: boolean): ProcessorOutputPropertyDefinition<'diff'>;
type KeyType = string | number | object;
export declare function createDatumId(keys: KeyType | KeyType[]): any;
export {};

@@ -1,15 +0,20 @@

export type ChartType = 'cartesian' | 'polar' | 'hierarchy';
export declare const CHART_TYPES: {
has(seriesType: string): boolean;
export type ChartType = 'cartesian' | 'polar' | 'hierarchy' | 'topology';
declare class ChartTypes extends Map<string, ChartType | 'unknown'> {
get(seriesType: string): "unknown" | ChartType;
isCartesian(seriesType: string): boolean;
isPolar(seriesType: string): boolean;
isHierarchy(seriesType: string): boolean;
readonly seriesTypes: string[];
readonly cartesianTypes: string[];
readonly polarTypes: string[];
readonly hierarchyTypes: string[];
};
export declare function registerChartSeriesType(seriesType: string, chartType: ChartType): void;
export declare function registerChartDefaults(chartType: ChartType, defaults: {}): void;
export declare function getChartDefaults(chartType: ChartType): {};
export declare function getChartType(seriesType: string): ChartType | 'unknown';
isTopology(seriesType: string): boolean;
get seriesTypes(): string[];
get cartesianTypes(): string[];
get polarTypes(): string[];
get hierarchyTypes(): string[];
get topologyTypes(): string[];
}
declare class ChartDefaults extends Map<ChartType, object> {
set(chartType: ChartType, defaults: object): this;
}
export declare const chartTypes: ChartTypes;
export declare const publicChartTypes: ChartTypes;
export declare const chartDefaults: ChartDefaults;
export {};

@@ -6,3 +6,3 @@ type EnterpriseModuleStub = {

optionsKey: string;
chartTypes: ('cartesian' | 'polar' | 'hierarchy')[];
chartTypes: ('cartesian' | 'polar' | 'hierarchy' | 'topology')[];
useCount?: number;

@@ -13,3 +13,3 @@ optionsInnerKey?: string;

export declare function isEnterpriseSeriesType(type: string): boolean;
export declare function getEnterpriseSeriesChartTypes(type: string): ("cartesian" | "polar" | "hierarchy")[] | undefined;
export declare function getEnterpriseSeriesChartTypes(type: string): ("topology" | "cartesian" | "polar" | "hierarchy")[] | undefined;
export declare function isEnterpriseSeriesTypeLoaded(type: string): boolean;

@@ -19,2 +19,3 @@ export declare function isEnterpriseCartesian(seriesType: string): boolean;

export declare function isEnterpriseHierarchy(seriesType: string): boolean;
export declare function isEnterpriseTopology(seriesType: string): boolean;
type UnknownPackage = {

@@ -21,0 +22,0 @@ packageType: string;

@@ -1,2 +0,2 @@

import type { AgChartOptions } from '../../options/agChartOptions';
import type { AgChartOptions } from '../../options/chart/chartBuilderOptions';
export declare function removeUsedEnterpriseOptions<T extends AgChartOptions>(options: T): void;

@@ -6,7 +6,6 @@ import type { ChartOptions } from '../module/optionsModule';

export declare class HierarchyChart extends Chart {
static className: string;
static type: "hierarchy";
static readonly className = "HierarchyChart";
static readonly type: "hierarchy";
constructor(options: ChartOptions, resources?: TransferableResources);
protected _data: any;
performLayout(): Promise<BBox>;
}

@@ -7,8 +7,13 @@ import { type IAnimation } from '../../motion/animation';

export declare class AnimationBatch {
private readonly maxAnimationTime;
private readonly debug;
private readonly controllers;
readonly stoppedCbs: Set<() => void>;
private readonly controllers;
private readonly debug;
private currentPhase;
private phases;
private skipAnimations;
private animationTimeConsumed;
/** Guard against premature animation execution. */
private isReady;
constructor(maxAnimationTime: number);
get size(): number;

@@ -21,2 +26,3 @@ isActive(): boolean;

progress(deltaTime: number): void;
ready(): void;
skip(skip?: boolean): void;

@@ -23,0 +29,0 @@ play(): void;

@@ -30,3 +30,3 @@ import type { AdditionalAnimationOptions, AnimationOptions, AnimationValue, IAnimation } from '../../motion/animation';

*/
animate<T extends AnimationValue>({ disableInteractions, ...opts }: AnimationOptions<T> & AdditionalAnimationOptions): Animation<T> | undefined;
animate<T extends AnimationValue>({ ...opts }: AnimationOptions<T> & AdditionalAnimationOptions): Animation<T> | undefined;
play(): void;

@@ -33,0 +33,0 @@ pause(): void;

@@ -5,4 +5,4 @@ import type { ChartAxisDirection } from '../chartAxisDirection';

type ChartEvents = LegendItemClickChartEvent | LegendItemDoubleClickChartEvent | AxisHoverChartEvent;
interface ChartEvent<ChartEventType> {
type: ChartEventType;
interface ChartEvent<T> {
type: T;
}

@@ -9,0 +9,0 @@ export interface LegendItemClickChartEvent extends ChartEvent<'legend-item-click'> {

@@ -15,3 +15,3 @@ export type ContextMenuAction = {

private disabledActions;
copyDefaultAction(): ContextMenuAction[];
copyDefaultActions(): ContextMenuAction[];
registerDefaultAction(action: ContextMenuAction): void;

@@ -18,0 +18,0 @@ enableAction(actionId: string): void;

@@ -6,8 +6,7 @@ /**

export declare class CursorManager {
private readonly states;
private readonly element;
private readonly stateTracker;
constructor(element: HTMLElement);
updateCursor(callerId: string, style?: string): void;
private applyStates;
getCursor(): string;
}

@@ -22,4 +22,4 @@ import type { SeriesNodeDatum } from '../series/seriesTypes';

private readonly highlightStates;
private readonly pickedStates;
private activeHighlight?;
private readonly pickedStates;
private activePicked?;

@@ -30,5 +30,3 @@ updateHighlight(callerId: string, highlightedDatum?: HighlightNodeDatum): void;

getActivePicked(): SeriesNodeDatum | undefined;
private applyHighlightStates;
private applyPickedStates;
private isEqual;
}
import { BaseManager } from './baseManager';
export declare const INTERACTION_TYPES: readonly ["click", "dblclick", "contextmenu", "hover", "drag-start", "drag", "drag-end", "leave", "page-left", "wheel"];
export declare const INTERACTION_TYPES: readonly ["click", "dblclick", "contextmenu", "hover", "drag-start", "drag", "drag-end", "leave", "enter", "page-left", "wheel"];
export type InteractionTypes = (typeof INTERACTION_TYPES)[number];

@@ -8,2 +8,5 @@ export type PointerOffsets = {

};
export type PointerHistoryEvent = PointerOffsets & {
type: string;
};
export type InteractionEvent<T extends InteractionTypes = InteractionTypes> = PointerOffsets & {

@@ -15,2 +18,3 @@ type: T;

deltaY: number;
pointerHistory: PointerHistoryEvent[];
sourceEvent: Event;

@@ -34,6 +38,4 @@ /** Consume the event, don't notify other listeners! */

private readonly debug;
private static interactionDocuments;
private readonly rootElement;
private readonly element;
private readonly window;
private eventHandler;

@@ -43,4 +45,6 @@ private mouseDown;

private dragStartElement?;
private clickHistory;
private dblclickHistory;
private stateQueue;
constructor(element: HTMLElement, document: Document, window: Window);
constructor(element: HTMLElement);
destroy(): void;

@@ -55,2 +59,4 @@ addListener<T extends InteractionTypes>(type: T, handler: (event: InteractionEvent<T> & {

private dispatchEvent;
private recordDown;
private recordUp;
private decideInteractionEventTypes;

@@ -57,0 +63,0 @@ private isEventOverElement;

import type { BBoxProvider } from '../../util/bboxset';
import { Listeners } from '../../util/listeners';
import type { InteractionEvent, InteractionManager, InteractionTypes } from './interactionManager';
import type { InteractionEvent, InteractionManager } from './interactionManager';
import { InteractionState } from './interactionManager';
export type RegionName = 'legend' | 'pagination';
export type RegionName = 'legend' | 'navigator' | 'pagination' | 'root' | 'series' | 'toolbar';
type RegionHandler<Event extends InteractionEvent> = (event: Event) => void;
declare class RegionListeners extends Listeners<InteractionTypes, RegionHandler<InteractionEvent<InteractionTypes>>> {
}
type Region = {
name: RegionName;
listeners: RegionListeners;
};
export declare class RegionManager {
private interactionManager;
currentRegion?: Region;
private readonly interactionManager;
private currentRegion?;
private isDragging;
private leftCanvas;
private eventHandler;

@@ -22,5 +17,13 @@ private regions;

private pushRegion;
addRegion(name: RegionName, bboxprovider: BBoxProvider): {
addListener<T extends "click" | "dblclick" | "contextmenu" | "hover" | "drag-start" | "drag" | "drag-end" | "leave" | "page-left" | "wheel">(type: T, handler: RegionHandler<InteractionEvent<T>>, triggeringStates?: InteractionState): () => void;
addRegion(name: RegionName, bboxprovider: BBoxProvider, ...extraProviders: BBoxProvider[]): {
addListener<T extends "click" | "dblclick" | "contextmenu" | "hover" | "drag-start" | "drag" | "drag-end" | "leave" | "enter" | "page-left" | "wheel">(type: T, handler: RegionHandler<InteractionEvent<T>>, triggeringStates?: InteractionState): () => void;
};
getRegion(name: RegionName): {
addListener<T extends "click" | "dblclick" | "contextmenu" | "hover" | "drag-start" | "drag" | "drag-end" | "leave" | "enter" | "page-left" | "wheel">(type: T, handler: RegionHandler<InteractionEvent<T>>, triggeringStates?: InteractionState): () => void;
};
private findByName;
private makeObserver;
private checkPointerHistory;
private dispatch;
private handleDragging;
private processEvent;

@@ -27,0 +30,0 @@ private pickRegion;

@@ -1,2 +0,1 @@

import type { ModuleInstance } from '../../module/baseModule';
import type { ChartAxisDirection } from '../chartAxisDirection';

@@ -6,2 +5,3 @@ import type { ISeries } from '../series/seriesTypes';

import type { HighlightManager } from './highlightManager';
import type { TooltipManager } from './tooltipManager';
import type { ZoomManager } from './zoomManager';

@@ -11,3 +11,3 @@ type GroupId = string | symbol;

type AxisLike = {
boundSeries: ISeries<any>[];
boundSeries: ISeries<any, any>[];
direction: ChartAxisDirection;

@@ -24,6 +24,10 @@ keys: string[];

axes: AxisLike[];
series: ISeries<any>[];
series: ISeries<any, any>[];
highlightManager: HighlightManager;
modulesManager: {
getModule<R>(module: string): R | undefined;
};
tooltipManager: TooltipManager;
zoomManager: ZoomManager;
modules: Map<string, ModuleInstance>;
waitForDataProcess(timeout?: number): Promise<void>;
};

@@ -30,0 +34,0 @@ export declare class SyncManager extends BaseManager {

@@ -1,5 +0,4 @@

import type { BBox } from '../../scene/bbox';
import type { ErrorBoundSeriesNodeDatum, SeriesNodeDatum } from '../series/seriesTypes';
import type { Tooltip, TooltipMeta } from '../tooltip/tooltip';
import type { InteractionManager, PointerOffsets } from './interactionManager';
import { type Tooltip, type TooltipMeta } from '../tooltip/tooltip';
import type { PointerOffsets } from './interactionManager';
/**

@@ -10,18 +9,14 @@ * Manages the tooltip HTML an element. Tracks the requested HTML from distinct dependents and

export declare class TooltipManager {
private readonly states;
private readonly canvasElement;
private readonly tooltip;
private appliedState?;
private exclusiveAreas;
private appliedExclusiveArea?;
private destroyFns;
constructor(tooltip: Tooltip, interactionManager: InteractionManager);
getRange(): import("../../main").InteractionRange;
private readonly stateTracker;
private readonly observer?;
private appliedState;
constructor(canvasElement: HTMLCanvasElement, tooltip: Tooltip);
updateTooltip(callerId: string, meta?: TooltipMeta, content?: string): void;
updateExclusiveRect(callerId: string, area?: BBox): void;
removeTooltip(callerId: string): void;
getTooltipMeta(callerId: string): TooltipMeta | undefined;
destroy(): void;
private checkExclusiveRects;
private applyStates;
static makeTooltipMeta(event: PointerOffsets, datum: SeriesNodeDatum & Pick<ErrorBoundSeriesNodeDatum, 'yBar'>): TooltipMeta;
}

@@ -15,2 +15,5 @@ import { ChartAxisDirection } from '../chartAxisDirection';

}
export interface ZoomPanStartEvent {
type: 'zoom-pan-start';
}
type ChartAxisLike = {

@@ -21,2 +24,3 @@ id: string;

};
type ZoomEvents = ZoomChangeEvent | ZoomPanStartEvent;
/**

@@ -26,8 +30,10 @@ * Manages the current zoom state for a chart. Tracks the requested zoom from distinct dependents

*/
export declare class ZoomManager extends BaseManager<'zoom-change', ZoomChangeEvent> {
export declare class ZoomManager extends BaseManager<ZoomEvents['type'], ZoomEvents> {
private axisZoomManagers;
private initialZoom?;
private state;
private rejectCallbacks;
updateAxes(axes: Array<ChartAxisLike>): void;
updateZoom(newZoom?: AxisZoomState): void;
updateAxisZoom(axisId: string, newZoom?: ZoomState): void;
updateZoom(callerId: string, newZoom?: AxisZoomState, canChangeInitial?: boolean, rejectCallback?: (stateId: string) => void): void;
updateAxisZoom(callerId: string, axisId: string, newZoom?: ZoomState): void;
fireZoomPanStartEvent(): void;
getZoom(): AxisZoomState | undefined;

@@ -34,0 +40,0 @@ getAxisZoom(axisId: string): ZoomState;

@@ -5,3 +5,3 @@ import type { FontStyle, FontWeight } from '../options/agChartOptions';

import type { Matrix } from '../scene/matrix';
import type { PointLabelDatum } from '../scene/util/labelPlacement';
import type { PlacedLabelDatum } from '../scene/util/labelPlacement';
import { BaseProperties } from '../util/properties';

@@ -12,3 +12,3 @@ import type { RequireOptional } from '../util/types';

enabled: boolean;
color: string;
color?: string;
fontStyle?: FontStyle;

@@ -35,2 +35,2 @@ fontWeight?: FontWeight;

export declare function getTextAlign(parallel: boolean, labelRotation: number, labelAutoRotation: number, sideFlag: ChartAxisLabelFlipFlag, regularFlipFlag: ChartAxisLabelFlipFlag): CanvasTextAlign;
export declare function calculateLabelBBox(text: string, bbox: BBox, labelX: number, labelY: number, labelMatrix: Matrix): PointLabelDatum;
export declare function calculateLabelBBox(text: string, bbox: BBox, labelX: number, labelY: number, labelMatrix: Matrix): PlacedLabelDatum;

@@ -14,3 +14,4 @@ /**

SERIES_CROSSLINE_LINE_ZINDEX = 8,
LEGEND_ZINDEX = 9
LEGEND_ZINDEX = 9,
NAVIGATOR_ZINDEX = 10
}
import type { BBox } from '../../scene/bbox';
import { Listeners } from '../../util/listeners';
import type { ChartAxisDirection } from '../chartAxisDirection';
type LayoutStage = 'start-layout' | 'before-series';

@@ -15,2 +16,4 @@ type LayoutComplete = 'layout-complete';

};
direction: ChartAxisDirection;
domain: any[];
}

@@ -17,0 +20,0 @@ export interface LayoutCompleteEvent {

import type { ModuleContext } from '../module/moduleContext';
import type { AgChartLegendClickEvent, AgChartLegendDoubleClickEvent, AgChartLegendLabelFormatterParams, AgChartLegendListeners, AgChartLegendOrientation, AgChartLegendPosition, FontStyle, FontWeight } from '../options/agChartOptions';
import type { Node } from '../scene/node';
import type { Scene } from '../scene/scene';
import { BaseProperties } from '../util/properties';
import type { CategoryLegendDatum } from './legendDatum';
import type { Marker } from './marker/marker';
import { MarkerConstructor } from './marker/util';
import { Pagination } from './pagination/pagination';

@@ -22,3 +22,3 @@ declare class LegendLabel extends BaseProperties {

*/
shape?: string | (new () => Marker);
shape?: string | MarkerConstructor;
size: number;

@@ -66,3 +66,3 @@ /**

private readonly ctx;
static className: string;
static readonly className = "Legend";
readonly id: string;

@@ -109,3 +109,3 @@ private readonly group;

private updateGroupVisibility;
attachLegend(node: Node): void;
attachLegend(scene: Scene): void;
detachLegend(): void;

@@ -125,3 +125,3 @@ private getItemLabel;

*/
private performLayout;
private calcLayout;
private truncate;

@@ -139,2 +139,3 @@ private updatePagination;

private handleLegendMouseExit;
private handleLegendMouseEnter;
private positionLegend;

@@ -141,0 +142,0 @@ private calculateLegendDimensions;

import type { AgChartLegendListeners } from '../options/agChartOptions';
import type { Node } from '../scene/node';
import type { Marker } from './marker/marker';
import type { Scene } from '../scene/scene';
import type { MarkerConstructor } from './marker/util';
export interface ChartLegend {
attachLegend(node: Node | null): void;
attachLegend(scene: Scene): void;
destroy(): void;

@@ -22,3 +22,3 @@ data: any;

marker: {
shape?: string | (new () => Marker);
shape?: string | MarkerConstructor;
fill?: string;

@@ -25,0 +25,0 @@ stroke?: string;

@@ -1,4 +0,4 @@

import type { AgChartOptions } from '../../options/agChartOptions';
import type { AgChartOptions } from '../../options/chart/chartBuilderOptions';
import type { ISeries } from '../series/seriesTypes';
export declare function matchSeriesOptions<S extends ISeries<any>>(series: S[], optSeries: NonNullable<AgChartOptions['series']>, oldOptsSeries?: AgChartOptions['series']): {
export declare function matchSeriesOptions<S extends ISeries<any, any>>(series: S[], optSeries: NonNullable<AgChartOptions['series']>, oldOptsSeries?: AgChartOptions['series']): {
status: "no-overlap";

@@ -11,3 +11,3 @@ oldKeys: IterableIterator<string>;

changes: ({
opts: import("../../options/agChartOptions").AgCartesianSeriesOptions | import("../../options/agChartOptions").AgHierarchySeriesOptions | import("../../options/agChartOptions").AgPolarSeriesOptions;
opts: import("../../main").AgCartesianSeriesOptions | import("../../main").AgHierarchySeriesOptions | import("../../main").AgPolarSeriesOptions | import("../../options/series/topology/topologyOptions").AgTopologySeriesOptions;
idx: number;

@@ -18,9 +18,15 @@ status: "add";

} | {
opts: import("../../options/agChartOptions").AgCartesianSeriesOptions | import("../../options/agChartOptions").AgHierarchySeriesOptions | import("../../options/agChartOptions").AgPolarSeriesOptions;
opts: import("../../main").AgCartesianSeriesOptions | import("../../main").AgHierarchySeriesOptions | import("../../main").AgPolarSeriesOptions | import("../../options/series/topology/topologyOptions").AgTopologySeriesOptions;
series: S;
diff: any;
idx: number;
status: "series-grouping";
} | {
opts: import("../../main").AgCartesianSeriesOptions | import("../../main").AgHierarchySeriesOptions | import("../../main").AgPolarSeriesOptions | import("../../options/series/topology/topologyOptions").AgTopologySeriesOptions;
series: S;
diff: any;
idx: number;
status: "update";
} | {
opts: import("../../options/agChartOptions").AgCartesianSeriesOptions | import("../../options/agChartOptions").AgHierarchySeriesOptions | import("../../options/agChartOptions").AgPolarSeriesOptions;
opts: import("../../main").AgCartesianSeriesOptions | import("../../main").AgHierarchySeriesOptions | import("../../main").AgPolarSeriesOptions | import("../../options/series/topology/topologyOptions").AgTopologySeriesOptions;
series: S;

@@ -27,0 +33,0 @@ idx: number;

@@ -1,2 +0,3 @@

import type { AgCartesianChartOptions, AgChartOptions, AgHierarchyChartOptions, AgPolarChartOptions } from '../../options/agChartOptions';
import type { AgCartesianChartOptions, AgHierarchyChartOptions, AgPolarChartOptions } from '../../options/agChartOptions';
import type { AgChartOptions, AgTopologyChartOptions } from '../../options/chart/chartBuilderOptions';
export type AxesOptionsTypes = NonNullable<AgCartesianChartOptions['axes']>[number];

@@ -11,6 +12,7 @@ export type SeriesOptionsTypes = NonNullable<AgChartOptions['series']>[number];

export declare function isAgCartesianChartOptions(input: AgChartOptions): input is AgCartesianChartOptions;
export declare function isAgPolarChartOptions(input: AgChartOptions): input is AgPolarChartOptions;
export declare function isAgHierarchyChartOptions(input: AgChartOptions): input is AgHierarchyChartOptions;
export declare function isAgPolarChartOptions(input: AgChartOptions): input is AgPolarChartOptions;
export declare function isAgTopologyChartOptions(input: AgChartOptions): input is AgTopologyChartOptions;
export declare function isAgPolarChartOptionsWithSeriesBasedLegend(input: AgChartOptions): input is AgPolarChartOptions;
export declare function isSeriesOptionType(input?: string): input is NonNullable<SeriesType>;
export declare function isAxisOptionType(input?: string): input is NonNullable<AxesOptionsTypes>['type'];
import { Marker } from './marker';
export declare class Circle extends Marker {
static className: string;
static readonly className = "Circle";
updatePath(): void;
}
import type { MarkerPathMove } from './marker';
import { Marker } from './marker';
export declare class Cross extends Marker {
static className: string;
static readonly className = "Cross";
static moves: MarkerPathMove[];
updatePath(): void;
}
import type { MarkerPathMove } from './marker';
import { Marker } from './marker';
export declare class Diamond extends Marker {
static className: string;
static readonly className = "Diamond";
static moves: MarkerPathMove[];
updatePath(): void;
}
import { Marker } from './marker';
export declare class Heart extends Marker {
static className: string;
static readonly className = "Heart";
rad(degree: number): number;
updatePath(): void;
}
import { BBox } from '../../scene/bbox';
import type { Point } from '../../scene/point';
import { Path } from '../../scene/shape/path';

@@ -8,3 +9,4 @@ export type MarkerPathMove = {

};
export declare abstract class Marker extends Path {
export declare class Marker extends Path {
static center: Point;
x: number;

@@ -11,0 +13,0 @@ y: number;

import type { MarkerPathMove } from './marker';
import { Marker } from './marker';
export declare class Plus extends Marker {
static className: string;
static readonly className = "Plus";
static moves: MarkerPathMove[];
updatePath(): void;
}
import { Marker } from './marker';
export declare class Square extends Marker {
static className: string;
static readonly className = "Square";
updatePath(): void;
}
import type { MarkerPathMove } from './marker';
import { Marker } from './marker';
export declare class Triangle extends Marker {
static className: string;
static readonly className = "Triangle";
static moves: MarkerPathMove[];
updatePath(): void;
}
import type { Marker } from './marker';
type MarkerConstructor = new () => Marker;
type MarkerSupportedShapes = 'circle' | 'cross' | 'diamond' | 'heart' | 'plus' | 'square' | 'triangle';
export type MarkerConstructor = typeof Marker;
type MarkerSupportedShapes = 'circle' | 'cross' | 'diamond' | 'heart' | 'plus' | 'pin' | 'square' | 'star' | 'triangle';
export type MarkerShape = MarkerConstructor | MarkerSupportedShapes;

@@ -5,0 +5,0 @@ export declare function isMarkerShape(shape: unknown): shape is MarkerSupportedShapes;

@@ -6,3 +6,3 @@ import type { FontStyle, FontWeight } from '../options/agChartOptions';

export declare class MarkerLabel extends Group {
static className: string;
static readonly className = "MarkerLabel";
private label;

@@ -9,0 +9,0 @@ private line;

import type { ModuleInstance } from '../../module/baseModule';
import { BaseModuleInstance } from '../../module/module';
import type { ModuleContext } from '../../module/moduleContext';
import { BBox } from '../../scene/bbox';
import type { BBox } from '../../scene/bbox';
import type { Group } from '../../scene/group';
import { RangeHandle } from './shapes/rangeHandle';
import { RangeMask } from './shapes/rangeMask';
import { RangeSelector } from './shapes/rangeSelector';
export declare class Navigator extends BaseModuleInstance implements ModuleInstance {
private readonly ctx;
protected readonly rs: RangeSelector;
miniChart: unknown;
private minHandleDragging;
private maxHandleDragging;
private panHandleOffset;
enabled: boolean;

@@ -20,11 +16,17 @@ mask: RangeMask;

height: number;
min: number;
max: number;
margin: number;
visible: boolean;
private updateGroupVisibility;
constructor(ctx: ModuleContext);
min?: number;
max?: number;
protected x: number;
protected y: number;
protected width: number;
private rangeSelector;
private dragging?;
private panStart?;
private _min;
private _max;
private minRange;
constructor(ctx: ModuleContext);
updateBackground(oldGroup?: Group, newGroup?: Group): void;
private updateGroupVisibility;
performLayout({ shrinkRect }: {

@@ -38,8 +40,11 @@ shrinkRect: BBox;

}): Promise<void>;
private onRangeChange;
private onZoomChange;
private onHover;
private onDragStart;
private onDrag;
private onDragStop;
private stopHandleDragging;
private onDragEnd;
private onLeave;
private onZoomChange;
private layoutNodes;
private updateNodes;
private updateZoom;
}

@@ -5,3 +5,4 @@ import { BBox } from '../../../scene/bbox';

export declare class RangeHandle extends Path {
static className: string;
static readonly className = "RangeHandle";
zIndex: number;
protected _fill: string;

@@ -29,2 +30,4 @@ protected _stroke: string;

get height(): number;
layout(x: number, y: number): void;
static align(minHandle: RangeHandle, maxHandle: RangeHandle, x: number, y: number, width: number, height: number, min: number, max: number): void;
computeBBox(): BBox;

@@ -31,0 +34,0 @@ isPointInPath(x: number, y: number): boolean;

import { BBox } from '../../../scene/bbox';
import { Path } from '../../../scene/shape/path';
export declare class RangeMask extends Path {
static className: string;
x: number;
y: number;
width: number;
height: number;
readonly minRange = 0.001;
protected _min: number;
set min(value: number);
get min(): number;
protected _max: number;
set max(value: number);
get max(): number;
onRangeChange?: () => any;
static readonly className = "RangeMask";
zIndex: number;
private x;
private y;
private width;
private height;
private min;
private max;
layout(x: number, y: number, width: number, height: number): void;
update(min: number, max: number): void;
computeBBox(): BBox;

@@ -18,0 +15,0 @@ computeVisibleRangeBBox(): BBox;

@@ -0,19 +1,16 @@

import { BBox } from '../../../scene/bbox';
import { Group } from '../../../scene/group';
import { RangeHandle } from './rangeHandle';
import { RangeMask } from './rangeMask';
import type { Node } from '../../../scene/node';
export declare class RangeSelector extends Group {
static className: string;
private static defaults;
readonly minHandle: RangeHandle;
readonly maxHandle: RangeHandle;
readonly background: Group;
readonly mask: RangeMask;
min: number;
max: number;
constructor();
onRangeChange?: () => any;
layout(x: number, y: number, width: number, height: number): void;
updateHandles(): void;
computeBBox(): import("../../../integrated-charts-scene").BBox;
computeVisibleRangeBBox(): import("../../../integrated-charts-scene").BBox;
private background;
private x;
private y;
private width;
private height;
private lOffset;
private rOffset;
constructor(children: Node[]);
layout(x: number, y: number, width: number, height: number, lOffset: number, rOffset: number): void;
updateBackground(oldGroup?: Group, newGroup?: Group): void;
computeBBox(): BBox;
}

@@ -1,12 +0,8 @@

import type { AnimationManager } from '../interaction/animationManager';
import { BaseProperties } from '../../util/properties';
import { Overlay } from './overlay';
export declare class ChartOverlays {
private static overlayDocuments;
constructor(parent: HTMLElement, animationManager: AnimationManager);
loading: Overlay;
noData: Overlay;
noVisibleSeries: Overlay;
export declare class ChartOverlays extends BaseProperties {
readonly loading: Overlay;
readonly noData: Overlay;
readonly noVisibleSeries: Overlay;
destroy(): void;
private renderLoadingSpinner;
protected createElement(parent: HTMLElement, tagName: string, options?: ElementCreationOptions): HTMLElement;
}
import type { BBox } from '../../scene/bbox';
import { BaseProperties } from '../../util/properties';
import type { AnimationManager } from '../interaction/animationManager';
export declare const DEFAULT_OVERLAY_CLASS = "ag-chart-overlay";
export declare const DEFAULT_OVERLAY_DARK_CLASS = "ag-chart-dark-overlay";
export declare class Overlay {
private className;
private parentElement;
private animationManager;
private element?;
constructor(className: string, parentElement: HTMLElement, animationManager: AnimationManager);
renderer?: () => string;
export declare class Overlay extends BaseProperties {
protected className: string;
protected defaultText: string;
text?: string;
renderer?: () => string | HTMLElement;
darkTheme: boolean;
show(rect: BBox): void;
hide(): void;
protected createElement(tagName: string, options?: ElementCreationOptions): HTMLElement;
private element?;
constructor(className: string, defaultText: string);
getText(): string;
getElement(animationManager: AnimationManager | undefined, rect: BBox): HTMLElement;
removeElement(animationManager?: AnimationManager): void;
}

@@ -39,3 +39,3 @@ import type { AgChartLegendOrientation, FontStyle, FontWeight } from '../../options/agChartOptions';

private readonly cursorManager;
static className: string;
static readonly className = "Pagination";
readonly id: string;

@@ -42,0 +42,0 @@ readonly marker: PaginationMarker;

@@ -7,4 +7,4 @@ import type { ChartOptions } from '../module/optionsModule';

export declare class PolarChart extends Chart {
static className: string;
static type: "polar";
static readonly className = "PolarChart";
static readonly type: "polar";
padding: Padding;

@@ -11,0 +11,0 @@ constructor(options: ChartOptions, resources?: TransferableResources);

import type { Direction } from '../../../options/chart/types';
import { BandScale } from '../../../scale/bandScale';
import type { Node } from '../../../scene/node';

@@ -11,4 +12,11 @@ import type { ChartAxis } from '../../chartAxis';

}
export declare abstract class AbstractBarSeries<TNode extends Node, TDatum extends CartesianSeriesNodeDatum, TLabel extends SeriesNodeDatum = TDatum, TContext extends CartesianSeriesNodeDataContext<TDatum, TLabel> = CartesianSeriesNodeDataContext<TDatum, TLabel>> extends CartesianSeries<TNode, TDatum, TLabel, TContext> {
abstract properties: AbstractBarSeriesProperties<any>;
export declare abstract class AbstractBarSeries<TNode extends Node, TProps extends AbstractBarSeriesProperties<any>, TDatum extends CartesianSeriesNodeDatum, TLabel extends SeriesNodeDatum = TDatum, TContext extends CartesianSeriesNodeDataContext<TDatum, TLabel> = CartesianSeriesNodeDataContext<TDatum, TLabel>> extends CartesianSeries<TNode, TProps, TDatum, TLabel, TContext> {
/**
* Used to get the position of bars within each group.
*/
protected groupScale: BandScale<string, number>;
protected smallestDataInterval?: {
x: number;
y: number;
};
getBandScalePadding(): {

@@ -24,2 +32,7 @@ inner: number;

protected getCategoryAxis(): ChartAxis | undefined;
protected updateGroupScale(xAxis: ChartAxis): {
barWidth: number;
groupIndex: number;
};
protected resolveKeyDirection(direction: ChartAxisDirection): ChartAxisDirection;
}

@@ -15,5 +15,5 @@ import type { ModuleContext } from '../../../module/moduleContext';

type AreaAnimationData = CartesianAnimationData<Group, MarkerSelectionDatum, LabelSelectionDatum, AreaSeriesNodeDataContext>;
export declare class AreaSeries extends CartesianSeries<Group, MarkerSelectionDatum, LabelSelectionDatum, AreaSeriesNodeDataContext> {
static className: string;
static type: "area";
export declare class AreaSeries extends CartesianSeries<Group, AreaSeriesProperties, MarkerSelectionDatum, LabelSelectionDatum, AreaSeriesNodeDataContext> {
static readonly className = "AreaSeries";
static readonly type: "area";
properties: AreaSeriesProperties;

@@ -20,0 +20,0 @@ constructor(moduleCtx: ModuleContext);

@@ -25,2 +25,3 @@ import type { FontStyle, FontWeight } from '../../../options/agChartOptions';

readonly points: AreaPathPoint[];
readonly phantomPoints?: AreaPathPoint[];
readonly itemId: string;

@@ -46,3 +47,3 @@ };

readonly textBaseline: CanvasTextBaseline;
readonly fill: string;
readonly fill?: string;
};

@@ -56,4 +57,5 @@ }

export declare function prepareAreaPathAnimation(newData: AreaSeriesNodeDataContext, oldData: AreaSeriesNodeDataContext, diff?: ProcessedOutputDiff): {
status: string;
fill: {
status: "added" | "removed" | "updated";
status: string;
path: {

@@ -69,3 +71,3 @@ addPhaseFn: (ratio: number, path: import("../../../integrated-charts-scene").Path) => void;

};
phase: "trailing" | "end" | "initial" | "remove" | "update" | "add";
phase: "none" | "trailing" | "initial" | "remove" | "update" | "add" | "end";
} | {

@@ -75,8 +77,8 @@ start: {

};
phase: "trailing" | "end" | "initial" | "remove" | "update" | "add";
phase: "none" | "trailing" | "initial" | "remove" | "update" | "add" | "end";
} | {
phase: "trailing" | "end" | "initial" | "remove" | "update" | "add";
phase: "none" | "trailing" | "initial" | "remove" | "update" | "add" | "end";
};
toFn: (_path: import("../../../integrated-charts-scene").Path) => {
phase: "trailing" | "end" | "initial" | "remove" | "update" | "add";
phase: "none" | "trailing" | "initial" | "remove" | "update" | "add" | "end";
};

@@ -92,3 +94,3 @@ };

translationY: number | undefined;
phase: "trailing" | "end" | "initial" | "remove" | "update" | "add";
phase: "none" | "trailing" | "initial" | "remove" | "update" | "add" | "end";
};

@@ -101,5 +103,5 @@ toFn: (_marker: import("../../marker/marker").Marker, datum: import("./pathUtil").PathNodeDatumLike) => {

opacity: number;
phase: "trailing" | "end" | "initial" | "remove" | "update" | "add";
phase: "none" | "trailing" | "initial" | "remove" | "update" | "add" | "end";
};
};
} | undefined;

@@ -14,3 +14,3 @@ import type { ModuleContext } from '../../../module/moduleContext';

import { BarSeriesProperties } from './barSeriesProperties';
import type { CartesianAnimationData, CartesianSeriesNodeDataContext, CartesianSeriesNodeDatum } from './cartesianSeries';
import { type CartesianAnimationData, type CartesianSeriesNodeDataContext, type CartesianSeriesNodeDatum } from './cartesianSeries';
interface BarNodeLabelDatum extends Readonly<Point> {

@@ -24,3 +24,3 @@ readonly text: string;

readonly textBaseline: CanvasTextBaseline;
readonly fill: string;
readonly fill?: string;
}

@@ -46,16 +46,7 @@ interface BarNodeDatum extends CartesianSeriesNodeDatum, ErrorBoundSeriesNodeDatum, Readonly<Point> {

type BarAnimationData = CartesianAnimationData<Rect, BarNodeDatum>;
export declare class BarSeries extends AbstractBarSeries<Rect, BarNodeDatum> {
static className: string;
static type: "bar";
export declare class BarSeries extends AbstractBarSeries<Rect, BarSeriesProperties, BarNodeDatum> {
static readonly className = "BarSeries";
static readonly type: "bar";
properties: BarSeriesProperties;
constructor(moduleCtx: ModuleContext);
/**
* Used to get the position of bars within each group.
*/
private groupScale;
protected resolveKeyDirection(direction: ChartAxisDirection): ChartAxisDirection;
protected smallestDataInterval?: {
x: number;
y: number;
};
processData(dataController: DataController): Promise<void>;

@@ -62,0 +53,0 @@ getSeriesDomain(direction: ChartAxisDirection): any[];

import type { ModuleContext } from '../../../module/moduleContext';
import type { FromToMotionPropFn } from '../../../motion/fromToMotion';
import type { AgBarSeriesFormatterParams, AgBarSeriesStyle } from '../../../options/agChartOptions';
import type { BBox } from '../../../scene/bbox';
import { BBox } from '../../../scene/bbox';
import type { DropShadow } from '../../../scene/dropShadow';

@@ -25,3 +25,2 @@ import type { Rect } from '../../../scene/shape/rect';

bottomLeftCornerRadius?: boolean;
cornerRadiusBbox?: BBox;
crisp?: boolean;

@@ -58,2 +57,3 @@ visible?: boolean;

width: number;
cornerRadiusBbox?: BBox;
opacity?: number;

@@ -65,3 +65,3 @@ };

};
export declare function resetBarSelectionsFn(_node: Rect, { x, y, width, height, opacity }: AnimatableBarDatum): {
export declare function resetBarSelectionsFn(_node: Rect, { x, y, width, height, cornerRadiusBbox, opacity }: AnimatableBarDatum): {
x: number;

@@ -71,4 +71,5 @@ y: number;

height: number;
cornerRadiusBbox: BBox | undefined;
opacity: number | undefined;
};
export {};
import type { ModuleContext } from '../../../module/moduleContext';
import { Group } from '../../../scene/group';
import type { Selection } from '../../../scene/selection';
import type { Text } from '../../../scene/shape/text';
import { Text } from '../../../scene/shape/text';
import type { PointLabelDatum } from '../../../scene/util/labelPlacement';

@@ -13,12 +13,12 @@ import { ChartAxisDirection } from '../../chartAxisDirection';

import type { CartesianAnimationData } from './cartesianSeries';
import { CartesianSeries, CartesianSeriesNodeClickEvent } from './cartesianSeries';
import { CartesianSeries, CartesianSeriesNodeEvent } from './cartesianSeries';
type BubbleAnimationData = CartesianAnimationData<Group, BubbleNodeDatum>;
declare class BubbleSeriesNodeClickEvent<TEvent extends string = SeriesNodeEventTypes> extends CartesianSeriesNodeClickEvent<TEvent> {
declare class BubbleSeriesNodeEvent<TEvent extends string = SeriesNodeEventTypes> extends CartesianSeriesNodeEvent<TEvent> {
readonly sizeKey?: string;
constructor(type: TEvent, nativeEvent: MouseEvent, datum: BubbleNodeDatum, series: BubbleSeries);
}
export declare class BubbleSeries extends CartesianSeries<Group, BubbleNodeDatum> {
static className: string;
static type: "bubble";
protected readonly NodeClickEvent: typeof BubbleSeriesNodeClickEvent;
export declare class BubbleSeries extends CartesianSeries<Group, BubbleSeriesProperties, BubbleNodeDatum> {
static readonly className = "BubbleSeries";
static readonly type: "bubble";
protected readonly NodeEvent: typeof BubbleSeriesNodeEvent;
properties: BubbleSeriesProperties;

@@ -25,0 +25,0 @@ private readonly sizeScale;

@@ -1,4 +0,5 @@

import type { AgBubbleSeriesLabelFormatterParams, AgBubbleSeriesOptions, AgBubbleSeriesOptionsKeys, AgBubbleSeriesTooltipRendererParams } from '../../../options/agChartOptions';
import type { AgBubbleSeriesLabelFormatterParams, AgBubbleSeriesOptions, AgBubbleSeriesOptionsKeys, AgBubbleSeriesTooltipRendererParams, LabelPlacement } from '../../../options/agChartOptions';
import type { MeasuredLabel } from '../../../scene/util/labelPlacement';
import { Label } from '../../label';
import type { MarkerConstructor } from '../../marker/util';
import { SeriesMarker } from '../seriesMarker';

@@ -10,2 +11,4 @@ import { SeriesTooltip } from '../seriesTooltip';

readonly label: MeasuredLabel;
readonly placement: LabelPlacement;
readonly marker: MarkerConstructor;
readonly fill: string | undefined;

@@ -23,2 +26,5 @@ }

}
declare class BubbleSeriesLabel extends Label<AgBubbleSeriesLabelFormatterParams> {
placement: LabelPlacement;
}
export declare class BubbleSeriesProperties extends CartesianSeriesProperties<AgBubbleSeriesOptions> {

@@ -39,5 +45,5 @@ xKey: string;

readonly marker: BubbleSeriesMarker;
readonly label: Label<AgBubbleSeriesLabelFormatterParams, any>;
readonly label: BubbleSeriesLabel;
readonly tooltip: SeriesTooltip<AgBubbleSeriesTooltipRendererParams<any>>;
}
export {};
import type { AnimationValue } from '../../../motion/animation';
import { StateMachine } from '../../../motion/states';
import { BBox } from '../../../scene/bbox';
import type { Node, NodeWithOpacity, ZIndexSubOrder } from '../../../scene/node';
import type { ZIndexSubOrder } from '../../../scene/layersManager';
import type { Node, NodeWithOpacity } from '../../../scene/node';
import type { Point } from '../../../scene/point';

@@ -15,7 +16,7 @@ import { Selection } from '../../../scene/selection';

import { DataModelSeries } from '../dataModelSeries';
import type { Series, SeriesNodeDataContext, SeriesNodeEventTypes, SeriesNodePickMatch } from '../series';
import { SeriesNodeClickEvent } from '../series';
import type { SeriesConstructorOpts, SeriesDirectionKeysMapping, SeriesNodeDataContext, SeriesNodeEventTypes, SeriesNodePickMatch } from '../series';
import { SeriesNodeEvent } from '../series';
import type { SeriesGroupZIndexSubOrderType } from '../seriesLayerManager';
import { SeriesProperties } from '../seriesProperties';
import type { SeriesNodeDatum } from '../seriesTypes';
import type { ISeries, SeriesNodeDatum } from '../seriesTypes';
import type { Scaling } from './scaling';

@@ -28,3 +29,3 @@ export interface CartesianSeriesNodeDatum extends SeriesNodeDatum {

}
interface SeriesOpts<TNode extends Node, TDatum extends CartesianSeriesNodeDatum, TLabel extends SeriesNodeDatum> {
type CartesianSeriesOpts<TNode extends Node, TProps extends CartesianSeriesProperties<any>, TDatum extends CartesianSeriesNodeDatum, TLabel extends SeriesNodeDatum> = {
pathsPerSeries: number;

@@ -34,8 +35,4 @@ pathsZIndexSubOrderOffset: number[];

hasHighlightedLabels: boolean;
directionKeys: {
[key in ChartAxisDirection]?: string[];
};
directionNames: {
[key in ChartAxisDirection]?: string[];
};
directionKeys: SeriesDirectionKeysMapping<TProps>;
directionNames: SeriesDirectionKeysMapping<TProps>;
datumSelectionGarbageCollection: boolean;

@@ -50,15 +47,21 @@ markerSelectionGarbageCollection: boolean;

};
}
export declare class CartesianSeriesNodeClickEvent<TEvent extends string = SeriesNodeEventTypes> extends SeriesNodeClickEvent<SeriesNodeDatum, TEvent> {
};
export declare const DEFAULT_CARTESIAN_DIRECTION_KEYS: {
x: "xKey"[];
y: "yKey"[];
};
export declare const DEFAULT_CARTESIAN_DIRECTION_NAMES: {
x: "xName"[];
y: "yName"[];
};
export declare class CartesianSeriesNodeEvent<TEvent extends string = SeriesNodeEventTypes> extends SeriesNodeEvent<SeriesNodeDatum, TEvent> {
readonly xKey?: string;
readonly yKey?: string;
constructor(type: TEvent, nativeEvent: MouseEvent, datum: SeriesNodeDatum, series: Series<any, any> & {
properties: {
xKey?: string;
yKey?: string;
};
});
constructor(type: TEvent, nativeEvent: MouseEvent, datum: SeriesNodeDatum, series: ISeries<SeriesNodeDatum, {
xKey?: string;
yKey?: string;
}>);
}
type CartesianAnimationState = 'empty' | 'ready' | 'waiting' | 'clearing';
type CartesianAnimationEvent = 'update' | 'updateData' | 'highlight' | 'highlightMarkers' | 'resize' | 'clear' | 'reset' | 'skip';
type CartesianAnimationState = 'empty' | 'ready' | 'waiting' | 'clearing' | 'disabled';
type CartesianAnimationEvent = 'update' | 'updateData' | 'highlight' | 'highlightMarkers' | 'resize' | 'clear' | 'reset' | 'skip' | 'disable';
export interface CartesianAnimationData<TNode extends Node, TDatum extends CartesianSeriesNodeDatum, TLabel extends SeriesNodeDatum = TDatum, TContext extends CartesianSeriesNodeDataContext<TDatum, TLabel> = CartesianSeriesNodeDataContext<TDatum, TLabel>> {

@@ -85,7 +88,6 @@ datumSelections: Selection<TNode, TDatum>[];

}
export declare abstract class CartesianSeries<TNode extends Node, TDatum extends CartesianSeriesNodeDatum, TLabel extends SeriesNodeDatum = TDatum, TContext extends CartesianSeriesNodeDataContext<TDatum, TLabel> = CartesianSeriesNodeDataContext<TDatum, TLabel>> extends DataModelSeries<TDatum, TLabel, TContext> {
abstract properties: CartesianSeriesProperties<any>;
export declare abstract class CartesianSeries<TNode extends Node, TProps extends CartesianSeriesProperties<any>, TDatum extends CartesianSeriesNodeDatum, TLabel extends SeriesNodeDatum = TDatum, TContext extends CartesianSeriesNodeDataContext<TDatum, TLabel> = CartesianSeriesNodeDataContext<TDatum, TLabel>> extends DataModelSeries<TDatum, TProps, TLabel, TContext> {
private _contextNodeData;
get contextNodeData(): TContext[];
protected readonly NodeClickEvent: typeof CartesianSeriesNodeClickEvent;
protected readonly NodeEvent: typeof CartesianSeriesNodeEvent;
private highlightSelection;

@@ -96,6 +98,7 @@ private highlightLabelSelection;

private subGroupId;
private minRectsCache;
private readonly opts;
private readonly debug;
protected animationState: StateMachine<CartesianAnimationState, CartesianAnimationEvent>;
protected constructor({ pathsPerSeries, hasMarkers, hasHighlightedLabels, pathsZIndexSubOrderOffset, directionKeys, directionNames, datumSelectionGarbageCollection, markerSelectionGarbageCollection, animationAlwaysUpdateSelections, animationResetFns, ...otherOpts }: Partial<SeriesOpts<TNode, TDatum, TLabel>> & ConstructorParameters<typeof DataModelSeries>[0]);
protected constructor({ pathsPerSeries, hasMarkers, hasHighlightedLabels, pathsZIndexSubOrderOffset, datumSelectionGarbageCollection, markerSelectionGarbageCollection, animationAlwaysUpdateSelections, animationResetFns, directionKeys, directionNames, ...otherOpts }: Partial<CartesianSeriesOpts<TNode, TProps, TDatum, TLabel>> & Pick<CartesianSeriesOpts<TNode, TProps, TDatum, TLabel>, 'directionKeys' | 'directionNames'> & SeriesConstructorOpts<TProps>);
resetAnimation(phase: ChartAnimationPhase): void;

@@ -113,6 +116,6 @@ addChartEventListeners(): void;

getGroupZIndexSubOrder(type: SeriesGroupZIndexSubOrderType, subIndex?: number): ZIndexSubOrder;
protected updateNodes(highlightedItems: TDatum[] | undefined, seriesHighlighted: boolean | undefined, anySeriesItemEnabled: boolean): Promise<void>;
protected updateNodes(highlightedItems: TDatum[] | undefined, seriesHighlighted: boolean, anySeriesItemEnabled: boolean): Promise<void>;
protected getHighlightLabelData(labelData: TLabel[], highlightedItem: TDatum): TLabel[] | undefined;
protected getHighlightData(_nodeData: TDatum[], highlightedItem: TDatum): TDatum[] | undefined;
protected updateHighlightSelection(seriesHighlighted?: boolean): Promise<TDatum[] | undefined>;
protected updateHighlightSelection(seriesHighlighted: boolean): Promise<TDatum[] | undefined>;
protected pickNodeExactShape(point: Point): SeriesNodePickMatch | undefined;

@@ -131,3 +134,7 @@ protected pickNodeClosestDatum(point: Point): SeriesNodePickMatch | undefined;

*/
getMinRect(): BBox | undefined;
getMinRects(width: number, height: number): {
minRect: BBox;
minVisibleRect: BBox;
} | undefined;
private computeMinRects;
protected updateHighlightSelectionItem(opts: {

@@ -134,0 +141,0 @@ items?: TDatum[];

@@ -11,5 +11,5 @@ import type { ModuleContext } from '../../../module/moduleContext';

type HistogramAnimationData = CartesianAnimationData<Rect, HistogramNodeDatum>;
export declare class HistogramSeries extends CartesianSeries<Rect, HistogramNodeDatum> {
static className: string;
static type: "histogram";
export declare class HistogramSeries extends CartesianSeries<Rect, HistogramSeriesProperties, HistogramNodeDatum> {
static readonly className = "HistogramSeries";
static readonly type: "histogram";
properties: HistogramSeriesProperties;

@@ -16,0 +16,0 @@ constructor(moduleCtx: ModuleContext);

import type { AgHistogramSeriesLabelFormatterParams, AgHistogramSeriesOptions, AgHistogramSeriesTooltipRendererParams, FontStyle, FontWeight } from '../../../options/agChartOptions';
import type { BBox } from '../../../scene/bbox';
import { DropShadow } from '../../../scene/dropShadow';

@@ -14,2 +15,8 @@ import { Label } from '../../label';

readonly opacity?: number;
readonly cornerRadius: number;
readonly topLeftCornerRadius: boolean;
readonly topRightCornerRadius: boolean;
readonly bottomRightCornerRadius: boolean;
readonly bottomLeftCornerRadius: boolean;
readonly cornerRadiusBbox?: BBox;
readonly strokeWidth: number;

@@ -27,3 +34,3 @@ readonly aggregatedValue: number;

readonly fontFamily: string;
readonly fill: string;
readonly fill?: string;
};

@@ -43,2 +50,3 @@ }

lineDashOffset: number;
cornerRadius: number;
areaPlot: boolean;

@@ -45,0 +53,0 @@ bins?: [number, number][];

@@ -14,5 +14,5 @@ import type { ModuleContext } from '../../../module/moduleContext';

type LineAnimationData = CartesianAnimationData<Group, LineNodeDatum>;
export declare class LineSeries extends CartesianSeries<Group, LineNodeDatum> {
static className: string;
static type: "line";
export declare class LineSeries extends CartesianSeries<Group, LineSeriesProperties, LineNodeDatum> {
static readonly className = "LineSeries";
static readonly type: "line";
properties: LineSeriesProperties;

@@ -19,0 +19,0 @@ constructor(moduleCtx: ModuleContext);

@@ -19,3 +19,3 @@ import type { AgLineSeriesLabelFormatterParams, AgLineSeriesOptions, AgLineSeriesOptionsKeys, AgLineSeriesTooltipRendererParams, FontStyle, FontWeight } from '../../../options/agChartOptions';

readonly textBaseline: CanvasTextBaseline;
readonly fill: string;
readonly fill?: string;
};

@@ -22,0 +22,0 @@ }

@@ -37,10 +37,7 @@ import type { Path } from '../../../scene/shape/path';

result: PathPoint[];
resultMap: PathPointMap<true>;
} | {
result: PathPoint[];
resultMap: PathPointMap<false>;
resultMap: PathPointMap<false> | PathPointMap<true>;
};
export declare function determinePathStatus(newData: LineContextLike, oldData: LineContextLike): "added" | "removed" | "updated";
export declare function determinePathStatus(newData: LineContextLike, oldData: LineContextLike, pairData: PathPoint[]): "added" | "removed" | "updated" | "no-op";
export declare function prepareLinePathAnimationFns(newData: LineContextLike, oldData: LineContextLike, pairData: PathPoint[], visibleToggleMode: 'fade' | 'none', render: (pairData: PathPoint[], ratios: Partial<Record<PathPointChange, number>>, path: Path) => void): {
status: "added" | "removed" | "updated";
status: string;
path: {

@@ -56,3 +53,3 @@ addPhaseFn: (ratio: number, path: Path) => void;

};
phase: "trailing" | "end" | "initial" | "remove" | "update" | "add";
phase: "none" | "trailing" | "initial" | "remove" | "update" | "add" | "end";
} | {

@@ -62,8 +59,8 @@ start: {

};
phase: "trailing" | "end" | "initial" | "remove" | "update" | "add";
phase: "none" | "trailing" | "initial" | "remove" | "update" | "add" | "end";
} | {
phase: "trailing" | "end" | "initial" | "remove" | "update" | "add";
phase: "none" | "trailing" | "initial" | "remove" | "update" | "add" | "end";
};
toFn: (_path: Path) => {
phase: "trailing" | "end" | "initial" | "remove" | "update" | "add";
phase: "none" | "trailing" | "initial" | "remove" | "update" | "add" | "end";
};

@@ -80,3 +77,3 @@ };

translationY: number | undefined;
phase: "trailing" | "end" | "initial" | "remove" | "update" | "add";
phase: "none" | "trailing" | "initial" | "remove" | "update" | "add" | "end";
};

@@ -89,7 +86,7 @@ toFn: (_marker: import("../../marker/marker").Marker, datum: PathNodeDatumLike) => {

opacity: number;
phase: "trailing" | "end" | "initial" | "remove" | "update" | "add";
phase: "none" | "trailing" | "initial" | "remove" | "update" | "add" | "end";
};
};
hasMotion: boolean;
status: "added" | "removed" | "updated";
status: string;
path: {

@@ -105,3 +102,3 @@ addPhaseFn: (ratio: number, path: Path) => void;

};
phase: "trailing" | "end" | "initial" | "remove" | "update" | "add";
phase: "none" | "trailing" | "initial" | "remove" | "update" | "add" | "end";
} | {

@@ -111,8 +108,8 @@ start: {

};
phase: "trailing" | "end" | "initial" | "remove" | "update" | "add";
phase: "none" | "trailing" | "initial" | "remove" | "update" | "add" | "end";
} | {
phase: "trailing" | "end" | "initial" | "remove" | "update" | "add";
phase: "none" | "trailing" | "initial" | "remove" | "update" | "add" | "end";
};
toFn: (_path: Path) => {
phase: "trailing" | "end" | "initial" | "remove" | "update" | "add";
phase: "none" | "trailing" | "initial" | "remove" | "update" | "add" | "end";
};

@@ -119,0 +116,0 @@ };

@@ -37,3 +37,3 @@ import type { NodeUpdateState } from '../../../motion/fromToMotion';

translationY: number | undefined;
phase: "trailing" | "end" | "initial" | "remove" | "update" | "add";
phase: "none" | "trailing" | "initial" | "remove" | "update" | "add" | "end";
};

@@ -46,5 +46,5 @@ toFn: (_marker: Marker, datum: PathNodeDatumLike) => {

opacity: number;
phase: "trailing" | "end" | "initial" | "remove" | "update" | "add";
phase: "none" | "trailing" | "initial" | "remove" | "update" | "add" | "end";
};
};
export {};

@@ -5,3 +5,3 @@ import type { ModuleContext } from '../../../module/moduleContext';

import type { Selection } from '../../../scene/selection';
import type { Text } from '../../../scene/shape/text';
import { Text } from '../../../scene/shape/text';
import type { PointLabelDatum } from '../../../scene/util/labelPlacement';

@@ -16,5 +16,5 @@ import { ChartAxisDirection } from '../../chartAxisDirection';

type ScatterAnimationData = CartesianAnimationData<Group, ScatterNodeDatum>;
export declare class ScatterSeries extends CartesianSeries<Group, ScatterNodeDatum> {
static className: string;
static type: "scatter";
export declare class ScatterSeries extends CartesianSeries<Group, ScatterSeriesProperties, ScatterNodeDatum> {
static readonly className = "ScatterSeries";
static readonly type: "scatter";
properties: ScatterSeriesProperties;

@@ -21,0 +21,0 @@ readonly colorScale: ColorScale;

import type { AgScatterSeriesLabelFormatterParams, AgScatterSeriesOptions, AgScatterSeriesOptionsKeys, AgScatterSeriesTooltipRendererParams } from '../../../options/agChartOptions';
import type { MeasuredLabel } from '../../../scene/util/labelPlacement';
import type { LabelPlacement, MeasuredLabel } from '../../../scene/util/labelPlacement';
import { Label } from '../../label';
import type { MarkerConstructor } from '../../marker/util';
import { SeriesMarker } from '../seriesMarker';

@@ -10,4 +11,9 @@ import { SeriesTooltip } from '../seriesTooltip';

readonly label: MeasuredLabel;
readonly placement: LabelPlacement;
readonly marker: MarkerConstructor;
readonly fill: string | undefined;
}
declare class ScatterSeriesLabel extends Label<AgScatterSeriesLabelFormatterParams> {
placement: LabelPlacement;
}
export declare class ScatterSeriesProperties extends CartesianSeriesProperties<AgScatterSeriesOptions> {

@@ -26,4 +32,5 @@ xKey: string;

readonly marker: SeriesMarker<AgScatterSeriesOptionsKeys, ScatterNodeDatum>;
readonly label: Label<AgScatterSeriesLabelFormatterParams, any>;
readonly label: ScatterSeriesLabel;
readonly tooltip: SeriesTooltip<AgScatterSeriesTooltipRendererParams<any>>;
}
export {};

@@ -5,4 +5,5 @@ import type { DataController } from '../data/dataController';

import { Series } from './series';
import type { SeriesProperties } from './seriesProperties';
import type { SeriesNodeDatum } from './seriesTypes';
export declare abstract class DataModelSeries<TDatum extends SeriesNodeDatum, TLabel = TDatum, TContext extends SeriesNodeDataContext<TDatum, TLabel> = SeriesNodeDataContext<TDatum, TLabel>> extends Series<TDatum, TLabel, TContext> {
export declare abstract class DataModelSeries<TDatum extends SeriesNodeDatum, TProps extends SeriesProperties<any>, TLabel = TDatum, TContext extends SeriesNodeDataContext<TDatum, TLabel> = SeriesNodeDataContext<TDatum, TLabel>> extends Series<TDatum, TProps, TLabel, TContext> {
protected dataModel?: DataModel<any, any, any>;

@@ -9,0 +10,0 @@ protected processedData?: ProcessedData<any>;

@@ -22,3 +22,3 @@ import type { ModuleContext } from '../../../module/moduleContext';

export declare class HierarchyNode<TDatum = Record<string, any>> implements SeriesNodeDatum, Pick<HighlightNodeDatum, 'colorValue'> {
readonly series: ISeries<any>;
readonly series: ISeries<any, any>;
readonly index: number;

@@ -39,3 +39,3 @@ readonly datum: TDatum | undefined;

readonly midPoint: Point;
constructor(series: ISeries<any>, index: number, datum: TDatum | undefined, size: number, colorValue: number | undefined, fill: string | undefined, stroke: string | undefined, sumSize: number, depth: number | undefined, parent: HierarchyNode<TDatum> | undefined, children: HierarchyNode<TDatum>[]);
constructor(series: ISeries<any, any>, index: number, datum: TDatum | undefined, size: number, colorValue: number | undefined, fill: string | undefined, stroke: string | undefined, sumSize: number, depth: number | undefined, parent: HierarchyNode<TDatum> | undefined, children: HierarchyNode<TDatum>[]);
contains(other: HierarchyNode<TDatum>): boolean;

@@ -45,4 +45,3 @@ walk(callback: (node: HierarchyNode<TDatum>) => void, order?: number): void;

}
export declare abstract class HierarchySeries<TNode extends Node = Group, TDatum extends SeriesNodeDatum = SeriesNodeDatum> extends Series<TDatum> {
abstract properties: HierarchySeriesProperties<any>;
export declare abstract class HierarchySeries<TNode extends Node = Group, TProps extends HierarchySeriesProperties<any> = HierarchySeriesProperties<any>, TDatum extends SeriesNodeDatum = SeriesNodeDatum> extends Series<TDatum, TProps> {
rootNode: HierarchyNode<TDatum>;

@@ -49,0 +48,0 @@ colorDomain: number[];

@@ -12,7 +12,7 @@ import type { ModuleContext } from '../../../module/moduleContext';

import type { SeriesNodeEventTypes } from '../series';
import { SeriesNodeClickEvent } from '../series';
import { SeriesNodeEvent } from '../series';
import type { SeriesNodeDatum } from '../seriesTypes';
import { DonutSeriesProperties } from './donutSeriesProperties';
import { type PolarAnimationData, PolarSeries } from './polarSeries';
declare class DonutSeriesNodeClickEvent<TEvent extends string = SeriesNodeEventTypes> extends SeriesNodeClickEvent<DonutNodeDatum, TEvent> {
declare class DonutSeriesNodeEvent<TEvent extends string = SeriesNodeEventTypes> extends SeriesNodeEvent<DonutNodeDatum, TEvent> {
readonly angleKey: string;

@@ -24,2 +24,11 @@ readonly radiusKey?: string;

}
interface DonutLabelDatum {
readonly text: string;
readonly textAlign: CanvasTextAlign;
readonly textBaseline: CanvasTextBaseline;
hidden: boolean;
collisionTextAlign?: CanvasTextAlign;
collisionOffsetY: number;
box?: BBox;
}
interface DonutNodeDatum extends SeriesNodeDatum {

@@ -37,11 +46,3 @@ readonly index: number;

readonly midSin: number;
readonly calloutLabel?: {
readonly text: string;
readonly textAlign: CanvasTextAlign;
readonly textBaseline: CanvasTextBaseline;
hidden: boolean;
collisionTextAlign?: CanvasTextAlign;
collisionOffsetY: number;
box?: BBox;
};
readonly calloutLabel?: DonutLabelDatum;
readonly sectorLabel?: {

@@ -59,5 +60,5 @@ readonly text: string;

}
export declare class DonutSeries extends PolarSeries<DonutNodeDatum, Sector> {
static className: string;
static type: "donut";
export declare class DonutSeries extends PolarSeries<DonutNodeDatum, DonutSeriesProperties, Sector> {
static readonly className = "DonutSeries";
static readonly type: "donut";
properties: DonutSeriesProperties;

@@ -82,5 +83,3 @@ private readonly previousRadiusScale;

addChartEventListeners(): void;
visibleChanged(): void;
get visible(): boolean;
private processSeriesItemEnabled;
protected nodeFactory(): Sector;

@@ -123,3 +122,3 @@ getSeriesDomain(direction: ChartAxisDirection): any[];

private updateZerosumRings;
protected readonly NodeClickEvent: typeof DonutSeriesNodeClickEvent;
protected readonly NodeEvent: typeof DonutSeriesNodeEvent;
private getDatumLegendName;

@@ -135,5 +134,5 @@ getTooltipHtml(nodeDatum: DonutNodeDatum): string;

getDatumIdFromData(datum: any): any;
getDatumId(datum: DonutNodeDatum): any;
getDatumId(datum: DonutNodeDatum): string;
protected onDataChange(): void;
}
export {};

@@ -12,7 +12,7 @@ import type { ModuleContext } from '../../../module/moduleContext';

import type { SeriesNodeEventTypes } from '../series';
import { SeriesNodeClickEvent } from '../series';
import { SeriesNodeEvent } from '../series';
import type { SeriesNodeDatum } from '../seriesTypes';
import { PieSeriesProperties } from './pieSeriesProperties';
import { type PolarAnimationData, PolarSeries } from './polarSeries';
declare class PieSeriesNodeClickEvent<TEvent extends string = SeriesNodeEventTypes> extends SeriesNodeClickEvent<PieNodeDatum, TEvent> {
declare class PieSeriesNodeEvent<TEvent extends string = SeriesNodeEventTypes> extends SeriesNodeEvent<PieNodeDatum, TEvent> {
readonly angleKey: string;

@@ -24,2 +24,11 @@ readonly radiusKey?: string;

}
interface PieCalloutLabelDatum {
readonly text: string;
readonly textAlign: CanvasTextAlign;
readonly textBaseline: CanvasTextBaseline;
hidden: boolean;
collisionTextAlign?: CanvasTextAlign;
collisionOffsetY: number;
box?: BBox;
}
interface PieNodeDatum extends SeriesNodeDatum {

@@ -37,11 +46,3 @@ readonly index: number;

readonly midSin: number;
readonly calloutLabel?: {
readonly text: string;
readonly textAlign: CanvasTextAlign;
readonly textBaseline: CanvasTextBaseline;
hidden: boolean;
collisionTextAlign?: CanvasTextAlign;
collisionOffsetY: number;
box?: BBox;
};
readonly calloutLabel?: PieCalloutLabelDatum;
readonly sectorLabel?: {

@@ -59,5 +60,5 @@ readonly text: string;

}
export declare class PieSeries extends PolarSeries<PieNodeDatum, Sector> {
static className: string;
static type: "pie";
export declare class PieSeries extends PolarSeries<PieNodeDatum, PieSeriesProperties, Sector> {
static readonly className = "PieSeries";
static readonly type: "pie";
properties: PieSeriesProperties;

@@ -82,5 +83,3 @@ private readonly previousRadiusScale;

addChartEventListeners(): void;
visibleChanged(): void;
get visible(): boolean;
private processSeriesItemEnabled;
protected nodeFactory(): Sector;

@@ -123,3 +122,3 @@ getSeriesDomain(direction: ChartAxisDirection): any[];

private updateZerosumRings;
protected readonly NodeClickEvent: typeof PieSeriesNodeClickEvent;
protected readonly NodeEvent: typeof PieSeriesNodeEvent;
private getDatumLegendName;

@@ -135,5 +134,5 @@ getTooltipHtml(nodeDatum: PieNodeDatum): string;

getDatumIdFromData(datum: any): any;
getDatumId(datum: PieNodeDatum): any;
getDatumId(datum: PieNodeDatum): string;
protected onDataChange(): void;
}
export {};

@@ -13,2 +13,3 @@ import type { ModuleContext } from '../../../module/moduleContext';

import { SeriesNodePickMode } from '../series';
import type { SeriesProperties } from '../seriesProperties';
import type { SeriesNodeDatum } from '../seriesTypes';

@@ -20,3 +21,9 @@ export type PolarAnimationState = 'empty' | 'ready' | 'waiting' | 'clearing';

};
export declare abstract class PolarSeries<TDatum extends SeriesNodeDatum, TNode extends Node> extends DataModelSeries<TDatum> {
type PolarSeriesProperties = {
angleKey: string;
angleName?: string;
radiusKey?: string;
radiusName?: string;
};
export declare abstract class PolarSeries<TDatum extends SeriesNodeDatum, TProps extends SeriesProperties<any> & PolarSeriesProperties, TNode extends Node> extends DataModelSeries<TDatum, TProps> {
protected itemGroup: Group;

@@ -71,1 +78,2 @@ protected itemSelection: Selection<TNode, TDatum>;

}
export {};

@@ -8,3 +8,3 @@ import type { ModuleContext, SeriesContext } from '../../module/moduleContext';

import { Group } from '../../scene/group';
import type { ZIndexSubOrder } from '../../scene/node';
import type { ZIndexSubOrder } from '../../scene/layersManager';
import type { Point } from '../../scene/point';

@@ -58,4 +58,4 @@ import type { PlacedLabel, PointLabelDatum } from '../../scene/util/labelPlacement';

}): (import("../data/dataModel").GroupValueProcessorDefinition<any, any> | import("../data/dataModel").AggregatePropertyDefinition<any, any, [number, number], [number, number]> | DatumPropertyDefinition<K>)[];
export type SeriesNodeEventTypes = 'nodeClick' | 'nodeDoubleClick' | 'groupingChanged';
interface INodeClickEvent<TEvent extends string = SeriesNodeEventTypes> extends TypedEvent {
export type SeriesNodeEventTypes = 'nodeClick' | 'nodeDoubleClick' | 'nodeContextMenuAction' | 'groupingChanged';
interface INodeEvent<TEvent extends string = SeriesNodeEventTypes> extends TypedEvent {
readonly type: TEvent;

@@ -66,6 +66,6 @@ readonly event: MouseEvent;

}
export interface INodeClickEventConstructor<TDatum extends SeriesNodeDatum, TSeries extends Series<TDatum, any>, TEvent extends string = SeriesNodeEventTypes> {
new (type: TEvent, event: MouseEvent, { datum }: TDatum, series: TSeries): INodeClickEvent<TEvent>;
export interface INodeEventConstructor<TDatum extends SeriesNodeDatum, TSeries extends Series<TDatum, any>, TEvent extends string = SeriesNodeEventTypes> {
new (type: TEvent, event: MouseEvent, { datum }: TDatum, series: TSeries): INodeEvent<TEvent>;
}
export declare class SeriesNodeClickEvent<TDatum extends SeriesNodeDatum, TEvent extends string = SeriesNodeEventTypes> implements INodeClickEvent<TEvent> {
export declare class SeriesNodeEvent<TDatum extends SeriesNodeDatum, TEvent extends string = SeriesNodeEventTypes> implements INodeEvent<TEvent> {
readonly type: TEvent;

@@ -75,3 +75,3 @@ readonly event: MouseEvent;

readonly seriesId: string;
constructor(type: TEvent, event: MouseEvent, { datum }: TDatum, series: Series<TDatum, any>);
constructor(type: TEvent, event: MouseEvent, { datum }: TDatum, series: ISeries<TDatum, unknown>);
}

@@ -89,16 +89,28 @@ export type SeriesNodeDataContext<S = SeriesNodeDatum, L = S> = {

export type SeriesModuleMap = ModuleMap<SeriesOptionModule, SeriesOptionInstance, SeriesContext>;
export type SeriesDirectionKeysMapping<P extends SeriesProperties<any>> = {
[key in ChartAxisDirection]?: (keyof P & string)[];
};
export declare class SeriesGroupingChangedEvent implements TypedEvent {
series: Series<any>;
series: Series<any, any>;
seriesGrouping: SeriesGrouping | undefined;
oldGrouping: SeriesGrouping | undefined;
type: string;
constructor(series: Series<any>, seriesGrouping: SeriesGrouping | undefined, oldGrouping: SeriesGrouping | undefined);
constructor(series: Series<any, any>, seriesGrouping: SeriesGrouping | undefined, oldGrouping: SeriesGrouping | undefined);
}
export declare abstract class Series<TDatum extends SeriesNodeDatum, TLabel = TDatum, TContext extends SeriesNodeDataContext<TDatum, TLabel> = SeriesNodeDataContext<TDatum, TLabel>> extends Observable implements ISeries<TDatum> {
export type SeriesConstructorOpts<TProps extends SeriesProperties<any>> = {
moduleCtx: ModuleContext;
useLabelLayer?: boolean;
pickModes?: SeriesNodePickMode[];
contentGroupVirtual?: boolean;
directionKeys?: SeriesDirectionKeysMapping<TProps>;
directionNames?: SeriesDirectionKeysMapping<TProps>;
canHaveAxes?: boolean;
};
export declare abstract class Series<TDatum extends SeriesNodeDatum, TProps extends SeriesProperties<any>, TLabel = TDatum, TContext extends SeriesNodeDataContext<TDatum, TLabel> = SeriesNodeDataContext<TDatum, TLabel>> extends Observable implements ISeries<TDatum, TProps> {
protected destroyFns: (() => void)[];
abstract readonly properties: SeriesProperties<any>;
abstract readonly properties: TProps;
pickModes: SeriesNodePickMode[];
seriesGrouping?: SeriesGrouping;
protected static readonly highlightedZIndex = 1000000000000;
protected readonly NodeClickEvent: INodeClickEventConstructor<TDatum, any>;
protected readonly NodeEvent: INodeEventConstructor<TDatum, any>;
readonly internalId: string;

@@ -118,3 +130,3 @@ get id(): string;

isMiniChart: boolean;
placeLabels(): Map<Series<any>, PlacedLabel[]>;
placeLabels(): Map<Series<any, any>, PlacedLabel[]>;
seriesRect?: BBox;

@@ -130,7 +142,9 @@ };

protected _chartData?: any[];
set data(input: any[] | undefined);
get data(): any[] | undefined;
protected get data(): any[] | undefined;
set visible(value: boolean);
get visible(): boolean;
get hasData(): boolean;
get tooltipEnabled(): boolean;
protected onDataChange(): void;
setOptionsData(input: unknown[]): void;
setChartData(input: unknown[]): void;

@@ -144,16 +158,3 @@ private onSeriesGroupingChange;

protected readonly ctx: ModuleContext;
constructor(seriesOpts: {
moduleCtx: ModuleContext;
useSeriesGroupLayer?: boolean;
useLabelLayer?: boolean;
pickModes?: SeriesNodePickMode[];
contentGroupVirtual?: boolean;
directionKeys?: {
[key in ChartAxisDirection]?: string[];
};
directionNames?: {
[key in ChartAxisDirection]?: string[];
};
canHaveAxes?: boolean;
});
constructor(seriesOpts: SeriesConstructorOpts<TProps>);
getGroupZIndexSubOrder(type: SeriesGroupZIndexSubOrderType, subIndex?: number): ZIndexSubOrder;

@@ -168,2 +169,3 @@ private seriesListeners;

getKeys(direction: ChartAxisDirection): string[];
getKeyProperties(direction: ChartAxisDirection): (keyof TProps & string)[];
getNames(direction: ChartAxisDirection): (string | undefined)[];

@@ -196,2 +198,3 @@ protected resolveKeyDirection(direction: ChartAxisDirection): ChartAxisDirection;

fireNodeDoubleClickEvent(event: MouseEvent, datum: TDatum): void;
createNodeContextMenuActionEvent(event: MouseEvent, datum: TDatum): INodeEvent;
abstract getLegendData<T extends ChartLegendType>(legendType: T): ChartLegendDatum<T>[];

@@ -210,3 +213,6 @@ abstract getLegendData(legendType: ChartLegendType): ChartLegendDatum<ChartLegendType>[];

}): void;
getMinRect(): BBox | undefined;
getMinRects(_width: number, _height: number): {
minRect: BBox;
minVisibleRect: BBox;
} | undefined;
protected _nodeDataDependencies?: NodeDataDependencies;

@@ -213,0 +219,0 @@ get nodeDataDependencies(): NodeDataDependencies;

import { Group } from '../../scene/group';
import type { ZIndexSubOrder } from '../../scene/node';
import type { ZIndexSubOrder } from '../../scene/layersManager';
import type { SeriesGrouping } from './seriesStateManager';

@@ -4,0 +4,0 @@ export type SeriesGroupZIndexSubOrderType = 'data' | 'labels' | 'highlight' | 'path' | 'marker' | 'paths' | 'annotation';

@@ -5,2 +5,3 @@ import type { AgSeriesMarkerFormatterParams, AgSeriesMarkerStyle, ISeriesMarker } from '../../options/series/markerOptions';

import type { MarkerShape } from '../marker/util';
export declare const MARKER_SHAPE: import("../../util/validation").ValidatePredicate;
export declare class SeriesMarker<TParams = never, TDatum = any> extends ChangeDetectableProperties implements ISeriesMarker<TDatum, RequireOptional<TParams>> {

@@ -7,0 +8,0 @@ enabled: boolean;

@@ -33,4 +33,4 @@ import type { InteractionRange } from '../../options/chart/types';

readonly highlightStyle: HighlightStyle;
abstract tooltip: SeriesTooltip<any>;
abstract tooltip: SeriesTooltip<never>;
}
export {};

@@ -6,11 +6,10 @@ import type { BBox } from '../../scene/bbox';

import type { ChartLegendDatum, ChartLegendType } from '../legendDatum';
import type { SeriesProperties } from './seriesProperties';
interface ChartAxisLike {
id: string;
}
export interface ISeries<TDatum> {
export interface ISeries<TDatum, TProps> {
id: string;
axes: Record<ChartAxisDirection, ChartAxisLike | undefined>;
contentGroup: Group;
properties: SeriesProperties<any>;
properties: TProps;
hasEventListener(type: string): boolean;

@@ -22,4 +21,6 @@ update(opts: {

fireNodeDoubleClickEvent(event: Event, datum: TDatum): void;
createNodeContextMenuActionEvent(event: Event, datum: TDatum): any;
getLegendData<T extends ChartLegendType>(legendType: T): ChartLegendDatum<T>[];
getLegendData(legendType: ChartLegendType): ChartLegendDatum<ChartLegendType>[];
getTooltipHtml(seriesDatum: any): string;
getBandScalePadding?(): {

@@ -31,4 +32,9 @@ inner: number;

getKeys(direction: ChartAxisDirection): string[];
getKeyProperties(direction: ChartAxisDirection): string[];
getNames(direction: ChartAxisDirection): (string | undefined)[];
getMinRect(): BBox | undefined;
getMinRects(width: number, height: number): {
minRect: BBox;
minVisibleRect: BBox;
} | undefined;
datumMidPoint?<T extends SeriesNodeDatum>(datum: T): Point | undefined;
isEnabled(): boolean;

@@ -43,3 +49,3 @@ type: string;

export interface SeriesNodeDatum {
readonly series: ISeries<any>;
readonly series: ISeries<any, any>;
readonly itemId?: any;

@@ -46,0 +52,0 @@ readonly datum: any;

@@ -20,2 +20,3 @@ export declare enum FONT_SIZE {

CATEGORY = "category",
ORDINAL_TIME = "ordinal-time",
NUMBER = "number",

@@ -22,0 +23,0 @@ TIME = "time",

import type { AgTooltipRendererResult, InteractionRange, TextWrap } from '../../options/agChartOptions';
import { BaseProperties } from '../../util/properties';
import type { InteractionEvent, PointerOffsets } from '../interaction/interactionManager';
export declare const DEFAULT_TOOLTIP_CLASS = "ag-chart-tooltip";
export declare const DEFAULT_TOOLTIP_DARK_CLASS = "ag-chart-dark-tooltip";
type TooltipPositionType = 'pointer' | 'node' | 'top' | 'right' | 'bottom' | 'left' | 'top-left' | 'top-right' | 'bottom-right' | 'bottom-left';
export type TooltipMeta = PointerOffsets & {
showArrow?: boolean;
lastPointerEvent: PointerOffsets;
lastPointerEvent?: PointerOffsets;
position?: {
type?: TooltipPositionType;
xOffset?: number;

@@ -12,6 +16,4 @@ yOffset?: number;

enableInteraction?: boolean;
addCustomClass?: boolean;
};
export declare function toTooltipHtml(input: string | AgTooltipRendererResult, defaults?: AgTooltipRendererResult): string;
type TooltipPositionType = 'pointer' | 'node';
export declare class TooltipPosition extends BaseProperties {

@@ -25,27 +27,21 @@ /** The type of positioning for the tooltip. By default, the tooltip follows the pointer. */

}
export declare class Tooltip {
private static tooltipDocuments;
private readonly element;
private readonly observer?;
private readonly canvasElement;
private readonly tooltipRoot;
private enableInteraction;
export declare class Tooltip extends BaseProperties {
enabled: boolean;
showArrow?: boolean;
class?: string;
lastClass?: string;
delay: number;
range: InteractionRange;
wrapping: TextWrap;
readonly position: TooltipPosition;
darkTheme: boolean;
private enableInteraction;
private lastVisibilityChange;
readonly position: TooltipPosition;
private readonly window;
constructor(canvasElement: HTMLCanvasElement, document: Document, window: Window, container: HTMLElement);
private readonly wrapTypes;
private readonly element;
readonly root: HTMLElement;
private showTimeout;
private _showArrow;
constructor();
destroy(): void;
isVisible(): boolean;
private updateClass;
private updateWrapping;
private showTimeout;
private _showArrow;
/**

@@ -55,8 +51,9 @@ * Shows tooltip at the given event's coordinates.

*/
show(meta: TooltipMeta, html?: string, instantly?: boolean): void;
show(canvasRect: DOMRect, meta: TooltipMeta, html?: string | null, instantly?: boolean): void;
private getWindowBoundingBox;
toggle(visible?: boolean, addCustomClass?: boolean): void;
toggle(visible: boolean): void;
pointerLeftOntoTooltip(event: InteractionEvent<'leave'>): boolean;
private updateShowArrow;
private getTooltipBounds;
}
export {};
import type { DataService } from '../data/dataService';
import type { AnimationManager } from '../interaction/animationManager';
import type { LayoutService } from '../layout/layoutService';

@@ -6,8 +7,9 @@ import type { ChartOverlays } from '../overlay/chartOverlays';

export declare class OverlaysProcessor<D extends object> implements UpdateProcessor {
private chartLike;
private readonly chartLike;
private readonly overlays;
private readonly dataService;
private readonly layoutService;
private readonly animationManager;
private destroyFns;
constructor(chartLike: ChartLike, overlays: ChartOverlays, dataService: DataService<D>, layoutService: LayoutService);
constructor(chartLike: ChartLike, overlays: ChartOverlays, dataService: DataService<D>, layoutService: LayoutService, animationManager: AnimationManager);
destroy(): void;

@@ -14,0 +16,0 @@ private onLayoutComplete;

@@ -14,5 +14,5 @@ import type { Scale } from '../../scale/scale';

padding: Padding;
title?: Caption;
subtitle?: Caption;
footnote?: Caption;
title: Caption;
subtitle: Caption;
footnote: Caption;
}

@@ -25,3 +25,3 @@ export interface AxisLike {

export interface SeriesLike {
data?: any[];
hasData: boolean;
visible: boolean;

@@ -28,0 +28,0 @@ }

@@ -9,2 +9,3 @@ import type { BBox } from '../scene/bbox';

minRect?: BBox;
minVisibleRect?: BBox;
}

@@ -15,3 +16,3 @@ export type UpdateOpts = {

newAnimationBatch?: boolean;
seriesToUpdate?: Iterable<ISeries<any>>;
seriesToUpdate?: Iterable<ISeries<any, any>>;
backOffMs?: number;

@@ -24,4 +25,7 @@ skipSync?: boolean;

update(type?: ChartUpdateType, options?: UpdateOpts): void;
dispatchUpdateComplete(minRect?: BBox): void;
dispatchUpdateComplete(rects?: {
minRect: BBox;
minVisibleRect: BBox;
}): void;
}
export {};
import * as fromToMotion from './motion/fromToMotion';
export { Caption } from './chart/caption';
export { DropShadow } from './scene/dropShadow';
export { ChangeDetectableProperties } from './scene/util/changeDetectableProperties';
export { Group } from './scene/group';

@@ -23,2 +24,3 @@ export { Scene } from './scene/scene';

export { BandScale } from './scale/bandScale';
export { OrdinalTimeScale } from './scale/ordinalTimeScale';
export { LinearScale } from './scale/linearScale';

@@ -29,2 +31,3 @@ export { toRadians } from './util/angle';

export { getMarker } from './chart/marker/util';
export type { MarkerShape } from './chart/marker/util';
export { Circle } from './chart/marker/circle';

@@ -45,8 +48,7 @@ export { Diamond } from './chart/marker/diamond';

resetMotion<N extends import("./scene/node").Node, T extends Partial<N>, D>(selectionsOrNodes: import("./scene/selection").Selection<N, D>[] | N[], propsFn: (node: N, datum: D) => T): void;
fromToMotion<N_1 extends import("./scene/node").Node, T_1 extends Record<string, string | number | undefined> & Partial<N_1>, D_1>(groupId: string, subId: string, animationManager: import("./module-support").AnimationManager, selectionsOrNodes: import("./scene/selection").Selection<N_1, D_1>[] | N_1[], fns: fromToMotion.FromToFns<N_1, T_1, D_1>, getDatumId?: ((node: N_1, datum: D_1) => string) | undefined, diff?: fromToMotion.FromToDiff | undefined): void;
staticFromToMotion<N_2 extends import("./scene/node").Node, T_2 extends Record<string, string | number | undefined> & Partial<N_2> & object, D_2>(groupId: string, subId: string, animationManager: import("./module-support").AnimationManager, selectionsOrNodes: import("./scene/selection").Selection<N_2, D_2>[] | N_2[], from: T_2, to: T_2, extraOpts: fromToMotion.ExtraOpts<N_2>): void;
NODE_UPDATE_PHASES: fromToMotion.NodeUpdateState[];
NODE_UPDATE_STATE_TO_PHASE_MAPPING: Record<fromToMotion.NodeUpdateState, "trailing" | "end" | "initial" | "remove" | "update" | "add">;
fromToMotion<N_1 extends import("./scene/node").Node, T_1 extends Record<string, string | number | import("./util/interpolating").Interpolating<any> | undefined> & Partial<N_1>, D_1>(groupId: string, subId: string, animationManager: import("./module-support").AnimationManager, selectionsOrNodes: import("./scene/selection").Selection<N_1, D_1>[] | N_1[], fns: fromToMotion.FromToFns<N_1, T_1, D_1>, getDatumId?: ((node: N_1, datum: D_1) => string) | undefined, diff?: fromToMotion.FromToDiff | undefined): void;
staticFromToMotion<N_2 extends import("./scene/node").Node, T_2 extends import("./module-support").AnimationValue & Partial<N_2> & object, D_2>(groupId: string, subId: string, animationManager: import("./module-support").AnimationManager, selectionsOrNodes: import("./scene/selection").Selection<N_2, D_2>[] | N_2[], from: T_2, to: T_2, extraOpts: fromToMotion.ExtraOpts<N_2>): void;
NODE_UPDATE_STATE_TO_PHASE_MAPPING: Record<fromToMotion.NodeUpdateState, "none" | "trailing" | "initial" | "remove" | "update" | "add" | "end">;
};
export { motion };
export type { NodeUpdateState, FromToMotionPropFn } from './motion/fromToMotion';

@@ -1,2 +0,1 @@

import type { ChartTheme as ChartThemeType } from './chart/themes/chartTheme';
export { getChartTheme } from './chart/mapping/themes';

@@ -6,2 +5,3 @@ export { ChartTheme } from './chart/themes/chartTheme';

export * from './chart/themes/constants';
export declare const themes: Record<"undefined" | import("./main").AgChartThemeName | "null", ChartThemeType>;
export * from './module/theme';
export declare const themes: Record<"undefined" | import("./main").AgChartThemeName | "null", import("./chart/themes/chartTheme").ChartTheme | undefined>;
export * from './util/array';
export * from './util/placement';
export * from './util/validation';

@@ -12,2 +13,4 @@ export * from './util/default';

export * from './util/proxy';
export * from './util/timeFormatDefaults';
export * from './util/timeFormat';
export * from './scene/util/shapes';

@@ -17,2 +20,3 @@ export * from './util/types';

export * from './module/theme';
export * from './module/axisModule';
export * from './module/baseModule';

@@ -29,2 +33,3 @@ export * from './module/coreModules';

export * from './chart/navigator/navigatorModule';
export * from './chart/chartAnimationPhase';
export * from './chart/chartAxisDirection';

@@ -47,2 +52,3 @@ export { assignJsonApplyConstructedArray } from './chart/chartOptions';

export * from './chart/interaction/gestureDetector';
export * from './chart/interaction/toolbarManager';
export * from './chart/interaction/tooltipManager';

@@ -58,2 +64,3 @@ export * from './chart/interaction/zoomManager';

export * from './chart/series/seriesTypes';
export * from './chart/series/util';
export * from './chart/series/cartesian/abstractBarSeries';

@@ -67,5 +74,10 @@ export * from './chart/series/cartesian/cartesianSeries';

export * from './chart/series/cartesian/pathUtil';
export * from './chart/series/dataModelSeries';
export * from './chart/series/polar/polarSeries';
export * from './chart/series/hierarchy/hierarchySeries';
export * from './chart/series/hierarchy/hierarchySeriesProperties';
export * from './chart/series/topologySeries';
export * from './chart/series/topology/geojson';
export * from './chart/series/topology/lonLatBbox';
export * from './chart/series/topology/mercatorScale';
export * from './chart/axis/axis';

@@ -72,0 +84,0 @@ export * from './chart/axis/axisLabel';

@@ -20,7 +20,8 @@ import type { DataController } from '../chart/data/dataController';

}
export interface BaseModule {
export type ChartTypes = 'cartesian' | 'polar' | 'hierarchy' | 'topology';
export interface BaseModule<T extends ChartTypes = ChartTypes> {
optionsKey: string;
packageType: 'community' | 'enterprise';
chartTypes: ('cartesian' | 'polar' | 'hierarchy')[];
chartTypes: T[];
identifier?: string;
}

@@ -1,11 +0,11 @@

import type { ChartAxis } from '../chart/chartAxis';
import type { ChartLegend, ChartLegendType } from '../chart/legendDatum';
import type { Series } from '../chart/series/series';
import type { AgChartOptions, AgChartThemeOverrides } from '../options/agChartOptions';
import type { BaseModule, ModuleInstance } from './baseModule';
import type { SeriesPaletteFactory } from './coreModulesTypes';
import type { AgCartesianChartOptions, AgChartThemeOverrides, AgPolarChartOptions } from '../options/agChartOptions';
import type { AgChartOptions } from '../options/chart/chartBuilderOptions';
import type { NextSeriesOptionTypes } from '../options/next';
import type { BaseModule, ChartTypes, ModuleInstance } from './baseModule';
import type { NextSeriesTypes, RequiredSeriesType, SeriesPaletteFactory } from './coreModulesTypes';
import type { ModuleContext } from './moduleContext';
export type ModuleInstanceConstructor<M> = new (moduleContext: ModuleContext) => M;
export type AxisConstructor = ModuleInstanceConstructor<ChartAxis>;
export type SeriesConstructor = ModuleInstanceConstructor<Series<any>>;
type ModuleInstanceConstructor<M> = new (moduleContext: ModuleContext) => M;
export type SeriesConstructor = ModuleInstanceConstructor<Series<any, any>>;
export type LegendConstructor = ModuleInstanceConstructor<ChartLegend>;

@@ -17,8 +17,2 @@ export interface RootModule<M extends ModuleInstance = ModuleInstance> extends BaseModule {

}
export interface AxisModule extends BaseModule {
type: 'axis';
identifier: string;
instanceConstructor: AxisConstructor;
themeTemplate: {};
}
export interface LegendModule extends BaseModule {

@@ -30,4 +24,3 @@ type: 'legend';

}
type SeriesOptionsTypes = NonNullable<AgChartOptions['series']>[number];
type RequiredSeriesType = NonNullable<SeriesOptionsTypes['type']>;
type SeriesOptionsTypes = NonNullable<AgChartOptions['series']>[number] | NextSeriesOptionTypes;
type Extensible<T> = {

@@ -38,16 +31,14 @@ [K in keyof T]?: NonNullable<T[K]> extends object ? Extensible<T[K]> : T[K];

};
export type ExtensibleTheme<SeriesType extends RequiredSeriesType> = Extensible<NonNullable<AgChartThemeOverrides[SeriesType]>>;
export type ExtensibleDefaults<SeriesType extends RequiredSeriesType> = Extensible<AgChartOptions & {
series?: {
type: SeriesType;
};
}>;
export type SeriesOptions<SeriesType extends RequiredSeriesType> = Extract<SeriesOptionsTypes, {
export type ExtensibleTheme<SeriesType extends RequiredSeriesType> = SeriesType extends NextSeriesTypes ? any : Extensible<NonNullable<AgChartThemeOverrides[Exclude<SeriesType, 'candlestick'>]>>;
export type SeriesTypeOptions<SeriesType extends RequiredSeriesType> = Extract<SeriesOptionsTypes, {
type: SeriesType;
}>;
export interface SeriesModule<SeriesType extends RequiredSeriesType = RequiredSeriesType> extends BaseModule {
type OptionsSeriesType<T extends AgChartOptions> = NonNullable<T['series']>[number]['type'];
type SeriesDefaultAxes<SeriesType extends RequiredSeriesType> = SeriesType extends OptionsSeriesType<AgCartesianChartOptions> ? AgCartesianChartOptions['axes'] : SeriesType extends OptionsSeriesType<AgPolarChartOptions> ? AgPolarChartOptions['axes'] : never;
export interface SeriesModule<SeriesType extends RequiredSeriesType = RequiredSeriesType, ChartType extends ChartTypes = ChartTypes> extends BaseModule<ChartType> {
type: 'series';
identifier: SeriesType;
instanceConstructor: SeriesConstructor;
seriesDefaults: ExtensibleDefaults<SeriesType>;
hidden?: boolean;
defaultAxes?: SeriesDefaultAxes<SeriesType>;
themeTemplate: ExtensibleTheme<SeriesType>;

@@ -60,4 +51,4 @@ enterpriseThemeTemplate?: ExtensibleTheme<SeriesType>;

stackedByDefault?: boolean;
swapDefaultAxesCondition?: (opts: SeriesOptions<SeriesType>) => boolean;
swapDefaultAxesCondition?: (opts: SeriesTypeOptions<SeriesType>) => boolean;
}
export {};
import type { SeriesOptionsTypes } from '../chart/mapping/types';
import type { AgChartOptions } from '../options/agChartOptions';
type RequiredSeriesType = NonNullable<SeriesOptionsTypes['type']>;
import type { AgChartOptions } from '../options/chart/chartBuilderOptions';
import type { NextSeriesOptionTypes } from '../options/next';
export type NextSeriesTypes = NextSeriesOptionTypes['type'];
export type RequiredSeriesType = NonNullable<SeriesOptionsTypes['type']> | NextSeriesTypes;
export interface SeriesPaletteFactoryParams {

@@ -17,3 +19,3 @@ takeColors: (count: number) => {

export type SeriesPaletteFactory<SeriesType extends RequiredSeriesType = RequiredSeriesType> = (params: SeriesPaletteFactoryParams) => SeriesPaletteOptions<SeriesType>;
export type SeriesPaletteOptions<SeriesType extends RequiredSeriesType, SeriesOpts = NonNullable<AgChartOptions['series']>[number] & {
export type SeriesPaletteOptions<SeriesType extends RequiredSeriesType, SeriesOpts = (NonNullable<AgChartOptions['series']>[number] | NextSeriesTypes) & {
type: SeriesType;

@@ -27,2 +29,1 @@ }, ColourKeys = 'stroke' | 'fill' | 'fills' | 'strokes' | 'colors', NestedKeys = 'marker' | 'calloutLine'> = {

};
export {};

@@ -12,5 +12,5 @@ import type { AgChartOptions } from '../options/chart/chartBuilderOptions';

licenseManager?: (options: AgChartOptions) => LicenseManager;
injectWatermark?: (document: Document, parentElement: HTMLElement, text: string) => void;
injectWatermark?: (parentElement: HTMLElement, text: string) => void;
}
export declare const enterpriseModule: EnterpriseModuleOptions;
export {};

@@ -0,6 +1,7 @@

import type { AxisModule } from './axisModule';
import type { ModuleInstance } from './baseModule';
import type { AxisModule, LegendModule, RootModule, SeriesModule } from './coreModules';
import type { LegendModule, RootModule, SeriesModule } from './coreModules';
import type { AxisOptionModule } from './optionsModule';
import type { SeriesOptionModule } from './optionsModuleTypes';
export type Module<M extends ModuleInstance = ModuleInstance> = RootModule<M> | AxisModule | AxisOptionModule | LegendModule | SeriesModule<any> | SeriesOptionModule;
export type Module<M extends ModuleInstance = ModuleInstance> = RootModule<M> | AxisModule | AxisOptionModule | LegendModule | SeriesModule<any, any> | SeriesOptionModule;
export declare abstract class BaseModuleInstance {

@@ -10,4 +11,9 @@ protected readonly destroyFns: (() => void)[];

}
export declare const REGISTERED_MODULES: Module[];
export declare function registerModule(module: Module): void;
export declare function hasRegisteredEnterpriseModules(): boolean;
declare class ModuleRegistry {
readonly modules: Module[];
register(...modules: Module[]): void;
hasEnterpriseModules(): boolean;
byType<T extends Module>(...types: Module['type'][]): Generator<T>;
}
export declare const moduleRegistry: ModuleRegistry;
export {};

@@ -0,1 +1,2 @@

import type { ChartAxisDirection } from '../chart/chartAxisDirection';
import type { ChartService } from '../chart/chartService';

@@ -12,2 +13,3 @@ import type { DataService } from '../chart/data/dataService';

import type { SyncManager } from '../chart/interaction/syncManager';
import type { ToolbarManager } from '../chart/interaction/toolbarManager';
import type { TooltipManager } from '../chart/interaction/tooltipManager';

@@ -22,4 +24,2 @@ import type { ZoomManager } from '../chart/interaction/zoomManager';

export interface ModuleContext {
document: Document;
window: Window;
scene: Scene;

@@ -41,2 +41,3 @@ callbackCache: CallbackCache;

syncManager: SyncManager;
toolbarManager: ToolbarManager;
tooltipManager: TooltipManager;

@@ -51,5 +52,6 @@ zoomManager: ZoomManager;

continuous: boolean;
direction: 'x' | 'y';
direction: ChartAxisDirection;
position?: AgCartesianAxisPosition;
keys(): string[];
seriesKeyProperties(): string[];
scaleBandwidth(): number;

@@ -56,0 +58,0 @@ scaleConvert(val: any): number;

@@ -7,11 +7,14 @@ import type { BaseModule, ModuleInstance } from './baseModule';

export declare class ModuleMap<M extends Module<I, C>, I extends ModuleInstance, C = ModuleContext> {
private moduleMap;
protected moduleMap: Map<string, {
module: M;
moduleInstance: I;
}>;
modules(): Generator<I, void, unknown>;
addModule(module: M, moduleFactory: (module: M) => I): void;
removeModule(module: M | string): void;
isModuleEnabled(module: M | string): boolean;
getModule(module: M | string): I | undefined;
get modules(): IterableIterator<I>;
mapValues<T>(callback: (value: I, index: number, array: I[]) => T): T[];
getModule<R>(module: M | string): R | undefined;
isEnabled(module: M | string): boolean;
mapModules<T>(callback: (value: I, index: number) => T): T[];
destroy(): void;
}
export {};

@@ -1,2 +0,2 @@

import { type SeriesOptions } from '../chart/factory/seriesTypes';
import { type SeriesOptions } from '../chart/factory/seriesRegistry';
import type { ChartTheme } from '../chart/themes/chartTheme';

@@ -6,3 +6,4 @@ import type { AgChartOptions } from '../options/chart/chartBuilderOptions';

import type { AxisContext, ModuleContextWithParent } from './moduleContext';
type AxisType = 'category' | 'number' | 'log' | 'time';
import type { SeriesType } from './optionsModuleTypes';
type AxisType = 'category' | 'number' | 'log' | 'time' | 'ordinal-time';
export interface AxisOptionModule<M extends ModuleInstance = ModuleInstance> extends BaseModule {

@@ -49,3 +50,3 @@ type: 'axis-option';

processedOptions: T;
seriesDefaults: T;
defaultAxes: T;
userOptions: Partial<T>;

@@ -57,4 +58,4 @@ specialOverrides: ChartSpecialOverrides;

protected getSeriesThemeConfig(seriesType: string): any;
protected getOptionsDefaults(options: T): T;
protected optionsType(options: Partial<T>): "area" | "line" | "bar" | "scatter" | "box-plot" | "bubble" | "bullet" | "heatmap" | "histogram" | "range-area" | "range-bar" | "waterfall" | "sunburst" | "treemap" | "donut" | "radial-column" | "nightingale" | "pie" | "radar-line" | "radar-area" | "radial-bar";
protected getDefaultAxes(options: T): T;
protected optionsType(options: Partial<T>): "area" | "bar" | "line" | "scatter" | "box-plot" | "bubble" | "bullet" | "heatmap" | "histogram" | "range-area" | "range-bar" | "waterfall" | "sunburst" | "treemap" | "donut" | "radial-column" | "nightingale" | "pie" | "radar-line" | "radar-area" | "radial-bar" | "map-line-background" | "map-line" | "map-marker" | "map-shape-background" | "map-shape";
protected sanityCheckAndCleanup(options: Partial<T>): void;

@@ -64,8 +65,9 @@ protected swapAxesPosition(options: T): void;

protected processSeriesOptions(options: T): void;
protected getSeriesPalette(seriesType: string, options: {
protected processMiniChartSeriesOptions(options: T): void;
protected getSeriesPalette(seriesType: SeriesType, options: {
colourIndex: number;
userPalette: boolean;
}): import("./coreModulesTypes").SeriesPaletteOptions<"area" | "line" | "bar" | "scatter" | "box-plot" | "bubble" | "bullet" | "heatmap" | "histogram" | "range-area" | "range-bar" | "waterfall" | "sunburst" | "treemap" | "donut" | "radial-column" | "nightingale" | "pie" | "radar-line" | "radar-area" | "radial-bar", (import("../main").AgCartesianSeriesOptions | import("../main").AgHierarchySeriesOptions | import("../options/series/polar/polarOptions").AgPolarSeriesOptions) & {
type: "area" | "line" | "bar" | "scatter" | "box-plot" | "bubble" | "bullet" | "heatmap" | "histogram" | "range-area" | "range-bar" | "waterfall" | "sunburst" | "treemap" | "donut" | "radial-column" | "nightingale" | "pie" | "radar-line" | "radar-area" | "radial-bar";
}, "fill" | "stroke" | "fills" | "strokes" | "colors", "marker" | "calloutLine">;
}): import("./coreModulesTypes").SeriesPaletteOptions<import("./coreModulesTypes").RequiredSeriesType, (import("../main").AgCartesianSeriesOptions | import("../main").AgHierarchySeriesOptions | import("../options/series/polar/polarOptions").AgPolarSeriesOptions | import("../options/series/topology/topologyOptions").AgTopologySeriesOptions | "candlestick") & {
type: import("./coreModulesTypes").RequiredSeriesType;
}, "fill" | "stroke" | "fills" | "strokes" | "colors", "marker" | "calloutLine"> | undefined;
protected getSeriesGroupingOptions(series: SeriesOptions & GroupingOptions): {

@@ -75,5 +77,5 @@ stacked: boolean;

};
protected setSeriesGroupingOptions(series: GroupingSeriesOptions[]): T["series"];
protected setSeriesGroupingOptions(allSeries: GroupingSeriesOptions[]): T["series"];
protected getSeriesGroupId(series: GroupingSeriesOptions): string;
protected getSeriesGrouping(series: GroupingSeriesOptions[]): SeriesGroup[];
protected getSeriesGrouping(allSeries: GroupingSeriesOptions[]): SeriesGroup[];
private getDefaultSeriesType;

@@ -80,0 +82,0 @@ private getTooltipPositionDefaults;

@@ -7,2 +7,3 @@ import type { ChartAxisDirection } from '../chart/chartAxisDirection';

import type { AgPolarSeriesOptions } from '../options/series/polar/polarOptions';
import type { AgTopologySeriesOptions } from '../options/series/topology/topologyOptions';
import type { Point } from '../scene/point';

@@ -15,3 +16,3 @@ import type { BaseModule, ModuleInstance } from './baseModule';

} | undefined;
export type SeriesType = NonNullable<AgCartesianSeriesOptions['type'] | AgPolarSeriesOptions['type'] | AgHierarchySeriesOptions['type']>;
export type SeriesType = NonNullable<AgCartesianSeriesOptions['type'] | AgPolarSeriesOptions['type'] | AgHierarchySeriesOptions['type'] | AgTopologySeriesOptions['type']>;
export interface SeriesOptionInstance extends ModuleInstance {

@@ -18,0 +19,0 @@ pickNodeExact(point: Point): PickNodeDatumResult;

import { Node } from '../scene/node';
import type { Selection } from '../scene/selection';
export type AnimationTiming = {
import { Interpolating } from '../util/interpolating';
export type AnimationMetadata = {
animationDuration: number;
animationDelay: number;
skipIfNoEarlierAnimations?: boolean;
};
export declare const QUICK_TRANSITION = 0.2;
export declare const INITIAL_LOAD: AnimationTiming;
export declare const REMOVE_PHASE: AnimationTiming;
export declare const UPDATE_PHASE: AnimationTiming;
export declare const ADD_PHASE: AnimationTiming;
export declare const LABEL_PHASE: AnimationTiming;
export declare const ANIMATION_PHASE_ORDER: readonly ["initial", "remove", "update", "add", "trailing", "end"];
export type AnimationPhase = (typeof ANIMATION_PHASE_ORDER)[number];
export declare const ANIMATION_PHASE_TIMINGS: Record<AnimationPhase, AnimationTiming>;
export type AnimationValue = number | string | undefined | Record<string, number | string | undefined>;
export declare const PHASE_ORDER: readonly ["initial", "remove", "update", "add", "trailing", "end", "none"];
export type AnimationPhase = (typeof PHASE_ORDER)[number];
export declare const PHASE_METADATA: Record<AnimationPhase, AnimationMetadata>;
export type AnimationValue = number | string | Interpolating | undefined | Record<string, number | string | Interpolating | undefined>;
export declare enum RepeatType {

@@ -50,3 +47,2 @@ Loop = "loop",

id?: string;
disableInteractions?: boolean;
}

@@ -60,3 +56,4 @@ export interface IAnimation {

readonly duration: number;
readonly play: () => void;
readonly autoplay: boolean;
readonly play: (initialUpdate?: boolean) => void;
readonly pause: () => void;

@@ -77,3 +74,3 @@ readonly stop: () => void;

readonly duration: number;
protected autoplay: boolean;
autoplay: boolean;
protected ease: (n: number) => number;

@@ -88,2 +85,3 @@ protected elapsed: number;

private readonly onUpdate;
private readonly from?;
private interpolate;

@@ -94,3 +92,3 @@ constructor(opts: AnimationOptions<T> & {

private checkCollapse;
play(): void;
play(initialUpdate?: boolean): void;
pause(): void;

@@ -97,0 +95,0 @@ stop(): void;

@@ -1,8 +0,7 @@

import type { ProcessedOutputDiff } from '../chart/data/dataModel';
import type { AnimationManager } from '../chart/interaction/animationManager';
import type { Node } from '../scene/node';
import type { Selection } from '../scene/selection';
import type { Interpolating } from '../util/interpolating';
import type { AnimationPhase, AnimationValue } from './animation';
export type NodeUpdateState = 'unknown' | 'added' | 'removed' | 'updated';
export declare const NODE_UPDATE_PHASES: NodeUpdateState[];
export type NodeUpdateState = 'unknown' | 'added' | 'removed' | 'updated' | 'no-op';
export type FromToMotionPropFnContext<T> = {

@@ -24,7 +23,11 @@ last: boolean;

};
export type FromToMotionPropFn<N extends Node, T extends Record<string, string | number | undefined> & Partial<N>, D> = (node: N, datum: D, state: NodeUpdateState, ctx: FromToMotionPropFnContext<N>) => T & Partial<ExtraOpts<N>>;
export type FromToMotionPropFn<N extends Node, T extends Record<string, string | number | Interpolating | undefined> & Partial<N>, D> = (node: N, datum: D, state: NodeUpdateState, ctx: FromToMotionPropFnContext<N>) => T & Partial<ExtraOpts<N>>;
type IntermediateFn<N extends Node, D> = (node: N, datum: D, state: NodeUpdateState, ctx: FromToMotionPropFnContext<N>) => Partial<N>;
export declare const NODE_UPDATE_STATE_TO_PHASE_MAPPING: Record<NodeUpdateState, AnimationPhase>;
export type FromToDiff = Pick<ProcessedOutputDiff, 'added' | 'removed'>;
export interface FromToFns<N extends Node, T extends Record<string, string | number | undefined> & Partial<N>, D> {
export interface FromToDiff {
changed: boolean;
added: Set<string> | Map<string, any>;
removed: Set<string> | Map<string, any>;
}
export interface FromToFns<N extends Node, T extends Record<string, string | number | Interpolating | undefined> & Partial<N>, D> {
fromFn: FromToMotionPropFn<N, T, D>;

@@ -48,3 +51,3 @@ toFn: FromToMotionPropFn<N, T, D>;

*/
export declare function fromToMotion<N extends Node, T extends Record<string, string | number | undefined> & Partial<N>, D>(groupId: string, subId: string, animationManager: AnimationManager, selectionsOrNodes: Selection<N, D>[] | N[], fns: FromToFns<N, T, D>, getDatumId?: (node: N, datum: D) => string, diff?: FromToDiff): void;
export declare function fromToMotion<N extends Node, T extends Record<string, string | number | Interpolating | undefined> & Partial<N>, D>(groupId: string, subId: string, animationManager: AnimationManager, selectionsOrNodes: Selection<N, D>[] | N[], fns: FromToFns<N, T, D>, getDatumId?: (node: N, datum: D) => string, diff?: FromToDiff): void;
/**

@@ -51,0 +54,0 @@ * Implements a batch "to/from" animation.

@@ -12,2 +12,3 @@ export * from './chart/axisOptions';

export * from './chart/legendOptions';
export * from './chart/navigatorOptions';
export * from './chart/polarAxisOptions';

@@ -48,2 +49,8 @@ export * from './chart/tooltipOptions';

export * from './series/polar/radialOptions';
export * from './series/topology/mapShapeOptions';
export * from './series/topology/mapLineOptions';
export * from './series/topology/mapMarkerOptions';
export * from './series/topology/mapShapeBackgroundOptions';
export * from './series/topology/mapLineBackgroundOptions';
export * from './series/markerOptions';
/**

@@ -50,0 +57,0 @@ * Internal Use Only: Used to ensure this file is treated as a module until we can use moduleDetection flag in Ts v4.7

import type { AgBaseCartesianChartOptions } from '../series/cartesian/cartesianOptions';
import type { AgBaseHierarchyChartOptions } from '../series/hierarchy/hierarchyOptions';
import type { AgBasePolarChartOptions } from '../series/polar/polarOptions';
import type { AgBaseTopologyChartOptions } from '../series/topology/topologyOptions';
import type { AgBaseChartOptions } from './chartOptions';

@@ -23,3 +24,6 @@ import type { AgBaseChartThemeOptions, AgChartTheme, AgChartThemeName } from './themeOptions';

}
export type AgChartOptions = AgCartesianChartOptions | AgPolarChartOptions | AgHierarchyChartOptions;
export interface AgTopologyChartOptions extends AgBaseTopologyChartOptions, AgBaseChartOptions {
theme?: AgChartTheme | AgChartThemeName;
}
export type AgChartOptions = AgCartesianChartOptions | AgPolarChartOptions | AgHierarchyChartOptions | AgTopologyChartOptions;
export interface AgChartInstance {

@@ -26,0 +30,0 @@ /** Get the `AgChartOptions` representing the current chart configuration. */

@@ -41,4 +41,4 @@ import type { AgAnimationOptions } from './animationOptions';

text?: string;
/** A function for generating HTML string for overlay content. */
renderer?: () => string;
/** A function for generating HTML element or string for overlay content. */
renderer?: () => HTMLElement | string;
}

@@ -159,3 +159,3 @@ export interface AgChartOverlaysOptions {

animation?: AgAnimationOptions;
/** Configuration for lazily loaded data. */
/** Configuration for asynchronously loaded data. */
dataSource?: AgDataSourceOptions<TDatum>;

@@ -168,2 +168,3 @@ /** Configuration for the context menu. */

navigator?: AgNavigatorOptions;
/** Configuration for the range buttons. */
/** Configuration for synchronizing multiple charts. */

@@ -170,0 +171,0 @@ sync?: AgChartSyncOptions;

import type { AgChartCallbackParams } from './callbackOptions';
import type { AgNodeContextMenuActionEvent } from './eventOptions';
export interface AgContextMenuOptions {

@@ -14,6 +15,9 @@ /** Whether to show the context menu. */

/** Callback function for the custom action. */
action: (params: AgContextMenuActionParams) => void;
action: (event: AgNodeContextMenuActionEvent) => void;
}
/**
* @deprecated v9.2 use AgNodeContextMenuActionEvent instead.
*/
export interface AgContextMenuActionParams<TDatum = any> extends AgChartCallbackParams<TDatum> {
event: MouseEvent;
}

@@ -49,2 +49,7 @@ interface AgChartEvent<T extends string> {

}
export interface AgNodeContextMenuActionEvent<TDatum = any> extends AgNodeBaseClickEvent<'contextMenuAction', TDatum> {
/** Event type. */ type: 'contextMenuAction';
/** @deprecated v9.2 use `xKey`, `yKey`, `angleKey` etc instead. */
itemId?: string;
}
export interface AgBaseChartListeners<TDatum> {

@@ -51,0 +56,0 @@ /** The listener to call when a node (marker, column, bar, tile or a pie sector) in any series is clicked.

@@ -0,1 +1,12 @@

import type { AgAreaSeriesOptions } from '../series/cartesian/areaOptions';
import type { AgBarSeriesOptions } from '../series/cartesian/barOptions';
import type { AgBoxPlotSeriesOptions } from '../series/cartesian/boxPlotOptions';
import type { AgBubbleSeriesOptions } from '../series/cartesian/bubbleOptions';
import type { AgHeatmapSeriesOptions } from '../series/cartesian/heatmapOptions';
import type { AgHistogramSeriesOptions } from '../series/cartesian/histogramOptions';
import type { AgLineSeriesOptions } from '../series/cartesian/lineOptions';
import type { AgRangeAreaSeriesOptions } from '../series/cartesian/rangeAreaOptions';
import type { AgRangeBarSeriesOptions } from '../series/cartesian/rangeBarOptions';
import type { AgScatterSeriesOptions } from '../series/cartesian/scatterOptions';
import type { AgWaterfallSeriesOptions } from '../series/cartesian/waterfallOptions';
import type { AgAxisLabelFormatterParams } from './axisOptions';

@@ -43,5 +54,31 @@ import type { CssColor, FontFamily, FontSize, FontStyle, FontWeight, Opacity, PixelSize, Ratio } from './types';

}
type CommonIgnoredProperties = 'cursor' | 'highlightStyle' | 'listeners' | 'nodeClickRange' | 'showInLegend' | 'showInMiniChart' | 'tooltip' | 'visible' | 'xName' | 'yName';
export interface AgLineMiniChartSeriesOptions extends Omit<AgLineSeriesOptions, CommonIgnoredProperties | 'errorBar' | 'title' | 'label'> {
}
export interface AgScatterMiniChartSeriesOptions extends Omit<AgScatterSeriesOptions, CommonIgnoredProperties | 'errorBar' | 'title' | 'label' | 'labelKey' | 'labelName'> {
}
export interface AgBubbleMiniChartSeriesOptions extends Omit<AgBubbleSeriesOptions, CommonIgnoredProperties | 'title' | 'label' | 'labelKey' | 'labelName' | 'sizeName'> {
}
export interface AgAreaMiniChartSeriesOptions extends Omit<AgAreaSeriesOptions, CommonIgnoredProperties | 'area'> {
}
export interface AgBarMiniChartSeriesOptions extends Omit<AgBarSeriesOptions, CommonIgnoredProperties | 'errorBar' | 'label' | 'legendItemName' | 'direction'> {
}
export interface AgBoxPlotMiniChartSeriesOptions extends Omit<AgBoxPlotSeriesOptions, CommonIgnoredProperties | 'direction' | 'legendItemName' | 'minName' | 'q1Name' | 'medianName' | 'q3Name' | 'maxName'> {
}
export interface AgHistogramMiniChartSeriesOptions extends Omit<AgHistogramSeriesOptions, CommonIgnoredProperties | 'label'> {
}
export interface AgHeatmapMiniChartSeriesOptions extends Omit<AgHeatmapSeriesOptions, CommonIgnoredProperties | 'title' | 'label' | 'colorName' | 'textAlign' | 'verticalAlign' | 'itemPadding' | 'colorRange'> {
}
export interface AgWaterfallMiniChartSeriesOptions extends Omit<AgWaterfallSeriesOptions, CommonIgnoredProperties | 'direction'> {
}
export interface AgRangeBarMiniChartSeriesOptions extends Omit<AgRangeBarSeriesOptions, CommonIgnoredProperties | 'label' | 'direction' | 'yLowName' | 'yHighName'> {
}
export interface AgRangeAreaMiniChartSeriesOptions extends Omit<AgRangeAreaSeriesOptions, CommonIgnoredProperties | 'label' | 'yLowName' | 'yHighName'> {
}
export type AgMiniChartSeriesOptions = AgLineMiniChartSeriesOptions | AgScatterMiniChartSeriesOptions | AgBubbleMiniChartSeriesOptions | AgAreaMiniChartSeriesOptions | AgBarMiniChartSeriesOptions | AgBoxPlotMiniChartSeriesOptions | AgHistogramMiniChartSeriesOptions | AgHeatmapMiniChartSeriesOptions | AgWaterfallMiniChartSeriesOptions | AgRangeBarMiniChartSeriesOptions | AgRangeAreaMiniChartSeriesOptions;
export interface AgNavigatorMiniChartOptions {
/** Whether to show a Mini Chart in the Navigator. */
enabled?: boolean;
/** Override series used in Mini Chart. */
series?: AgMiniChartSeriesOptions[];
/** Configuration for the Mini Chart's axis labels. */

@@ -98,1 +135,2 @@ label?: AgNavigatorMiniChartLabelOptions;

}
export {};

@@ -25,2 +25,8 @@ import type { AgAreaSeriesThemeableOptions } from '../series/cartesian/areaOptions';

import type { AgRadialColumnSeriesThemeableOptions } from '../series/polar/radialColumnOptions';
import type { AgMapLineBackgroundThemeableOptions } from '../series/topology/mapLineBackgroundOptions';
import type { AgMapLineSeriesThemeableOptions } from '../series/topology/mapLineOptions';
import type { AgMapMarkerSeriesThemeableOptions } from '../series/topology/mapMarkerOptions';
import type { AgMapShapeBackgroundThemeableOptions } from '../series/topology/mapShapeBackgroundOptions';
import type { AgMapShapeSeriesThemeableOptions } from '../series/topology/mapShapeOptions';
import type { AgBaseTopologyThemeOptions } from '../series/topology/topologyOptions';
import type { AgBaseThemeableChartOptions } from './chartOptions';

@@ -123,2 +129,17 @@ import type { CssColor } from './types';

}
export interface AgMapShapeSeriesThemeOverrides extends AgBaseTopologyThemeOptions {
series?: AgMapShapeSeriesThemeableOptions;
}
export interface AgMapLineSeriesThemeOverrides extends AgBaseTopologyThemeOptions {
series?: AgMapLineSeriesThemeableOptions;
}
export interface AgMapMarkerSeriesThemeOverrides extends AgBaseTopologyThemeOptions {
series?: AgMapMarkerSeriesThemeableOptions;
}
export interface AgMapShapeBackgroundThemeOverrides extends AgBaseTopologyThemeOptions {
series?: AgMapShapeBackgroundThemeableOptions;
}
export interface AgMapLineBackgroundThemeOverrides extends AgBaseTopologyThemeOptions {
series?: AgMapLineBackgroundThemeableOptions;
}
export interface AgCommonThemeableAxisOptions extends AgCartesianAxesTheme, AgPolarAxesTheme {

@@ -144,2 +165,3 @@ }

'box-plot'?: AgBoxPlotSeriesThemeOverrides;
/** Candlestick series theme overrides. */
/** Histogram series theme overrides. */

@@ -175,2 +197,12 @@ histogram?: AgHistogramSeriesThemeOverrides;

treemap?: AgTreemapSeriesThemeOverrides;
/** Map series theme overrides. */
'map-shape'?: AgMapShapeSeriesThemeOverrides;
/** Map-line series theme overrides. */
'map-line'?: AgMapLineSeriesThemeOverrides;
/** Map-marker series theme overrides. */
'map-marker'?: AgMapMarkerSeriesThemeOverrides;
/** map-shape-background series theme overrides. */
'map-shape-background'?: AgMapShapeBackgroundThemeOverrides;
/** map-line-background series theme overrides. */
'map-line-background'?: AgMapLineBackgroundThemeOverrides;
}

@@ -28,3 +28,11 @@ import type { AgChartCallbackParams } from './callbackOptions';

POINTER = "pointer",
NODE = "node"
NODE = "node",
TOP = "top",
RIGHT = "right",
BOTTOM = "bottom",
LEFT = "left",
TOP_LEFT = "top-left",
TOP_RIGHT = "top-right",
BOTTOM_RIGHT = "bottom-right",
BOTTOM_LEFT = "bottom-left"
}

@@ -31,0 +39,0 @@ export interface AgTooltipPositionOptions {

@@ -5,3 +5,4 @@ export type FontStyle = 'normal' | 'italic' | 'oblique';

export type FontSize = number;
export type MarkerShape = 'circle' | 'cross' | 'diamond' | 'heart' | 'plus' | 'triangle' | 'square' | any;
export type MarkerShape = 'circle' | 'cross' | 'diamond' | 'heart' | 'plus' | 'pin' | 'square' | 'star' | 'triangle' | any;
export type LabelPlacement = 'top' | 'bottom' | 'left' | 'right';
/** Alias to denote that a value should be a CSS-compliant color string, such as `#FFFFFF` or `rgb(255, 255, 255)` or `white`. */

@@ -46,1 +47,2 @@ export type CssColor = string;

export type Direction = 'vertical' | 'horizontal';
export type GeoJSON = any;

@@ -5,2 +5,18 @@ import type { Ratio } from './types';

export type AgZoomPanKey = 'alt' | 'ctrl' | 'meta' | 'shift';
export interface AgZoomRange {
/** The start of the axis zoom range. */
start?: Date | number;
/** The end of the axis zoom range. */
end?: Date | number;
}
export interface AgZoomRatio {
/** The minimum value of the axis zoom ratio.
* Default: `0`
*/
start?: number;
/** The maximum value of the axis zoom ratio.
* Default: `1`
*/
end?: number;
}
export interface AgZoomOptions {

@@ -17,5 +33,11 @@ /**

anchorPointY?: AgZoomAnchorPoint;
/** The axes on which to zoom, one of `xy`, `x`, or `y`. */
/**
* The axes on which to zoom when scrolling, one of `xy`, `x`, or `y`.
* Default: `x`
*/
axes?: AgZoomAxes;
/** Set to `true` to enable the zoom module, defaults to `false`. */
/**
* Set to `true` to enable the zoom module.
* Default: `false`
*/
enabled?: boolean;

@@ -62,2 +84,10 @@ /**

panKey?: AgZoomPanKey;
/** The initial x-axis range of the zoom, as values of the axis type. */
rangeX?: AgZoomRange;
/** The initial y-axis range of the zoom, as values of the axis type. */
rangeY?: AgZoomRange;
/** The initial x-axis range of the zoom, as a ratio between 0 to 1. */
ratioX?: AgZoomRatio;
/** The initial y-axis range of the zoom, as a ratio between 0 to 1. */
ratioY?: AgZoomRatio;
/**

@@ -64,0 +94,0 @@ * The amount to zoom when scrolling with the mouse wheel, as a ratio of the full chart.

@@ -6,2 +6,3 @@ import type { AgChartCallbackParams } from '../../chart/callbackOptions';

import type { AgSeriesTooltip, AgSeriesTooltipRendererParams } from '../../chart/tooltipOptions';
import type { PixelSize } from '../../chart/types';
import type { AgBaseCartesianThemeableOptions, AgBaseSeriesOptions } from '../seriesOptions';

@@ -20,2 +21,4 @@ import type { AgErrorBoundSeriesTooltipRendererParams } from './cartesianSeriesTooltipOptions';

export interface AgBarSeriesStyle extends FillOptions, StrokeOptions, LineDashOptions {
/** Apply rounded corners to each bar. */
cornerRadius?: PixelSize;
}

@@ -22,0 +25,0 @@ export type AgBarSeriesLabelFormatterParams = AgBarSeriesOptionsKeys & AgBarSeriesOptionsNames;

import type { AgSeriesTooltip } from '../../chart/tooltipOptions';
import type { CssColor, Ratio } from '../../chart/types';
import type { CssColor, PixelSize, Ratio } from '../../chart/types';
import type { AgBaseCartesianThemeableOptions, AgBaseSeriesOptions } from '../seriesOptions';

@@ -48,2 +48,4 @@ import type { AgCartesianSeriesTooltipRendererParams } from './cartesianSeriesTooltipOptions';

direction?: 'horizontal' | 'vertical';
/** Apply rounded corners to each bar. */
cornerRadius?: PixelSize;
/** Series-specific tooltip configuration. */

@@ -50,0 +52,0 @@ tooltip?: AgSeriesTooltip<AgBoxPlotSeriesTooltipRendererParams>;

import type { AgChartLabelOptions } from '../../chart/labelOptions';
import type { AgSeriesTooltip, AgSeriesTooltipRendererParams } from '../../chart/tooltipOptions';
import type { PixelSize } from '../../chart/types';
import type { LabelPlacement, PixelSize } from '../../chart/types';
import type { AgSeriesMarkerOptions } from '../markerOptions';

@@ -14,2 +14,9 @@ import type { AgBaseCartesianThemeableOptions, AgBaseSeriesOptions } from '../seriesOptions';

export type AgBubbleSeriesLabelFormatterParams = AgBubbleSeriesOptionsKeys & AgBubbleSeriesOptionsNames;
export interface AgBubbleSeriesLabel<TDatum> extends AgChartLabelOptions<TDatum, AgBubbleSeriesLabelFormatterParams> {
/**
* Placement of label in relation to the marker.
* Default: `top`
*/
placement?: LabelPlacement;
}
export interface AgBubbleSeriesThemeableOptions<TDatum = any> extends AgBaseCartesianThemeableOptions<TDatum> {

@@ -21,3 +28,3 @@ /** The title to use for the series. Defaults to `yName` if it exists, or `yKey` if not. */

/** Configuration for the labels shown on top of data points. */
label?: AgChartLabelOptions<TDatum, AgBubbleSeriesLabelFormatterParams>;
label?: AgBubbleSeriesLabel<TDatum>;
/** Series-specific tooltip configuration. */

@@ -24,0 +31,0 @@ tooltip?: AgSeriesTooltip<AgBubbleSeriesTooltipRendererParams<TDatum>>;

@@ -70,2 +70,7 @@ import type { AgAxisBaseTickOptions, AgAxisCaptionOptions, AgBaseAxisLabelOptions, AgBaseAxisOptions } from '../../chart/axisOptions';

}
export interface AgOrdinalTimeAxisOptions extends Omit<AgCategoryAxisOptions, 'type' | 'tick'> {
type: 'ordinal-time';
/** Configuration for the axis ticks. */
tick?: AgAxisOrdinalTimeTickOptions;
}
export interface AgGroupedCategoryAxisOptions extends AgBaseCartesianAxisOptions {

@@ -125,2 +130,4 @@ type: 'grouped-category';

}
export interface AgOrdinalTimeAxisThemeOptions extends Omit<AgOrdinalTimeAxisOptions, 'type' | 'crossLines'>, AgCartesianAxisThemeOptions<AgOrdinalTimeAxisOptions>, AgCartesianAxesCrossLineThemeOptions {
}
export interface AgGroupedCategoryAxisThemeOptions extends Omit<AgGroupedCategoryAxisOptions, 'type' | 'crossLines'>, AgCartesianAxisThemeOptions<AgGroupedCategoryAxisOptions>, AgCartesianAxesCrossLineThemeOptions {

@@ -152,2 +159,6 @@ }

}
export interface AgAxisOrdinalTimeTickOptions extends AgAxisBaseTickOptions {
/** The step value between ticks specified as a TimeInterval or a number. If the configured interval results in too many ticks given the chart size, it will be ignored. */
interval?: any;
}
export {};
import type { AgDropShadowOptions } from '../../chart/dropShadowOptions';
import type { AgChartLabelOptions } from '../../chart/labelOptions';
import type { AgSeriesTooltip } from '../../chart/tooltipOptions';
import type { PixelSize } from '../../chart/types';
import type { AgBaseCartesianThemeableOptions, AgBaseSeriesOptions } from '../seriesOptions';

@@ -23,2 +24,4 @@ import type { AgCartesianSeriesTooltipRendererParams } from './cartesianSeriesTooltipOptions';

label?: AgChartLabelOptions<TDatum, AgHistogramSeriesLabelFormatterParams>;
/** Apply rounded corners to each bar. */
cornerRadius?: PixelSize;
/** Series-specific tooltip configuration. */

@@ -25,0 +28,0 @@ tooltip?: AgSeriesTooltip<AgHistogramSeriesTooltipRendererParams<TDatum>>;

@@ -53,2 +53,4 @@ import type { AgChartCallbackParams } from '../../chart/callbackOptions';

direction?: 'horizontal' | 'vertical';
/** Apply rounded corners to each bar. */
cornerRadius?: PixelSize;
/** Series-specific tooltip configuration. */

@@ -55,0 +57,0 @@ tooltip?: AgSeriesTooltip<AgRangeBarSeriesTooltipRendererParams>;

import type { AgErrorBarOptions, AgErrorBarThemeableOptions } from '../../chart/errorBarOptions';
import type { AgChartLabelOptions } from '../../chart/labelOptions';
import type { AgSeriesTooltip, AgSeriesTooltipRendererParams } from '../../chart/tooltipOptions';
import type { LabelPlacement } from '../../chart/types';
import type { AgSeriesMarkerOptions } from '../markerOptions';

@@ -10,2 +11,9 @@ import type { AgBaseCartesianThemeableOptions, AgBaseSeriesOptions } from '../seriesOptions';

export type AgScatterSeriesLabelFormatterParams = AgScatterSeriesOptionsKeys & AgScatterSeriesOptionsNames;
export interface AgScatterSeriesLabel<TDatum> extends AgChartLabelOptions<TDatum, AgScatterSeriesLabelFormatterParams> {
/**
* Placement of label in relation to the marker.
* Default: `top`
*/
placement?: LabelPlacement;
}
export interface AgScatterSeriesThemeableOptions<TDatum = any> extends AgBaseCartesianThemeableOptions<TDatum> {

@@ -15,3 +23,3 @@ /** Configuration for the markers used in the series. */

/** Configuration for the labels shown on top of data points. */
label?: AgChartLabelOptions<TDatum, AgScatterSeriesLabelFormatterParams>;
label?: AgScatterSeriesLabel<TDatum>;
/** The title to use for the series. Defaults to `yName` if it exists, or `yKey` if not. */

@@ -18,0 +26,0 @@ title?: string;

@@ -92,2 +92,4 @@ import type { AgChartCallbackParams } from '../../chart/callbackOptions';

shadow?: AgDropShadowOptions;
/** Apply rounded corners to each bar. */
cornerRadius?: PixelSize;
/** Function used to return formatting for individual Waterfall series item cells, based on the given parameters. If the current cell is highlighted, the `highlighted` property will be set to `true`; make sure to check this if you want to differentiate between the highlighted and un-highlighted states. */

@@ -94,0 +96,0 @@ formatter?: (params: AgWaterfallSeriesFormatterParams<TDatum>) => AgWaterfallSeriesFormat;

@@ -13,3 +13,3 @@ import type { AgSeriesListeners } from '../chart/eventOptions';

export interface AgSeriesHighlightStyle {
/** Highlight style used for an individual marker when hovered. */
/** Highlight style used for an individual item within a series. */
item?: AgSeriesHighlightMarkerStyle;

@@ -16,0 +16,0 @@ /** Highlight style used for whole series when a series or legend item is hovered. */

@@ -5,7 +5,7 @@ import type { Scale } from './scale';

*/
export declare class BandScale<D> implements Scale<D, number, number> {
readonly type = "band";
private invalid;
interval: number;
private refresh;
export declare class BandScale<D, I = number> implements Scale<D, number, I> {
readonly type: string;
protected invalid: boolean;
interval?: I;
protected refresh(): void;
/**

@@ -15,7 +15,7 @@ * Maps datum to its index in the {@link domain} array.

*/
private index;
protected index: Map<D | D[], number>;
/**
* The output range values for datum at each index.
*/
private ordinalRange;
protected ordinalRange: number[];
/**

@@ -26,3 +26,3 @@ * Contains unique datums only. Since `{}` is used in place of `Map`

*/
private _domain;
protected _domain: D[];
set domain(values: D[]);

@@ -57,2 +57,3 @@ get domain(): D[];

update(): void;
private getIndex;
}
import type { Scale } from './scale';
export declare class ColorScale implements Scale<number, string, number> {
private invalid;
protected invalid: boolean;
domain: number[];

@@ -5,0 +5,0 @@ range: string[];

@@ -1,2 +0,1 @@

import type { TimeInterval } from '../util/time/interval';
import type { Scale, ScaleConvertParams } from './scale';

@@ -7,3 +6,3 @@ export declare abstract class ContinuousScale<D extends number | Date, I = number> implements Scale<D, number, I> {

static is(value: any): value is ContinuousScale<any, any>;
private invalid;
protected invalid: boolean;
domain: D[];

@@ -21,3 +20,2 @@ range: number[];

calcBandwidth(smallestInterval?: number): number;
fromDomain(d: D): number;
abstract toDomain(d: number): D;

@@ -32,8 +30,2 @@ getDomain(): any[];

protected getPixelRange(): number;
protected isDenseInterval({ start, stop, interval, count, }: {
start: number;
stop: number;
interval: number | TimeInterval;
count?: number;
}): boolean;
}

@@ -16,3 +16,3 @@ import { ContinuousScale } from './continuousScale';

protected updateNiceDomain(): void;
tickFormat({ ticks, specifier }: {
tickFormat({ ticks: specifiedTicks, specifier }: {
ticks?: any[];

@@ -19,0 +19,0 @@ specifier?: string;

@@ -0,24 +1,6 @@

import type { CountableTimeInterval } from '../util/time/interval';
import { TimeInterval } from '../util/time/interval';
import { ContinuousScale } from './continuousScale';
declare enum DefaultTimeFormats {
MILLISECOND = 0,
SECOND = 1,
MINUTE = 2,
HOUR = 3,
WEEK_DAY = 4,
SHORT_MONTH = 5,
MONTH = 6,
SHORT_YEAR = 7,
YEAR = 8
}
export declare class TimeScale extends ContinuousScale<Date, TimeInterval | number> {
readonly type = "time";
private year;
private month;
private week;
private day;
private hour;
private minute;
private second;
private millisecond;
/**

@@ -33,9 +15,5 @@ * Array of default tick intervals in the following format:

*/
private tickIntervals;
static readonly tickIntervals: [CountableTimeInterval, number, number][];
constructor();
toDomain(d: number): Date;
calculateDefaultTickFormat(ticks?: any[] | undefined): string;
buildFormatString(defaultTimeFormat: DefaultTimeFormats, yearChange: boolean): string;
getLowestGranularityFormat(value: Date | number): DefaultTimeFormats;
defaultTickFormat(ticks?: any[]): (date: Date) => string;
/**

@@ -47,3 +25,9 @@ * @param options Tick interval options.

*/
private getTickInterval;
static getTickInterval({ start, stop, count, minCount, maxCount, }: {
start: number;
stop: number;
count: number;
minCount: number;
maxCount: number;
}): CountableTimeInterval | TimeInterval | undefined;
invert(y: number): Date;

@@ -54,4 +38,15 @@ /**

ticks(): Date[];
private getDefaultTicks;
private getTicksForInterval;
static getDefaultTicks({ start, stop, tickCount, minTickCount, maxTickCount, }: {
start: number;
stop: number;
tickCount: number;
minTickCount: number;
maxTickCount: number;
}): Date[];
static getTicksForInterval({ start, stop, interval, availableRange, }: {
start: number;
stop: number;
interval: number | TimeInterval;
availableRange: number;
}): Date[] | undefined;
/**

@@ -75,2 +70,1 @@ * Returns a time format function suitable for displaying tick values.

}
export {};

@@ -0,3 +1,3 @@

import { Interpolating, interpolate } from '../util/interpolating';
import type { DistantObject, NearestResult } from './nearest';
import type { Point } from './point';
type Padding = {

@@ -10,3 +10,3 @@ top: number;

type ShrinkOrGrowPosition = 'top' | 'left' | 'bottom' | 'right' | 'vertical' | 'horizontal';
export declare class BBox implements DistantObject {
export declare class BBox implements DistantObject, Interpolating<BBox> {
x: number;

@@ -16,3 +16,4 @@ y: number;

height: number;
static zero: BBox;
static readonly zero: Readonly<BBox>;
static readonly NaN: Readonly<BBox>;
constructor(x: number, y: number, width: number, height: number);

@@ -23,5 +24,5 @@ clone(): BBox;

collidesBBox(other: BBox): boolean;
isInfinite(): boolean;
distanceSquared(point: Point): number;
static nearestBox(point: Point, boxes: BBox[]): NearestResult<BBox>;
isFinite(): boolean;
distanceSquared(x: number, y: number): number;
static nearestBox(x: number, y: number, boxes: BBox[]): NearestResult<BBox>;
shrink(amounts: Partial<Padding>): this;

@@ -31,4 +32,6 @@ shrink(amount: number, position?: ShrinkOrGrowPosition): this;

grow(amount: number, position?: ShrinkOrGrowPosition): this;
combine(other: BBox): void;
static merge(boxes: BBox[]): BBox;
[interpolate](other: BBox, d: number): BBox;
}
export {};

@@ -1,6 +0,7 @@

export type Size = {
width: number;
height: number;
};
type OffscreenCanvasRenderingContext2D = any;
interface CanvasOptions {
width?: number;
height?: number;
pixelRatio?: number;
}
/**

@@ -11,73 +12,23 @@ * Wraps the native Canvas element and overrides its CanvasRenderingContext2D to

export declare class HdpiCanvas {
static document: Document;
readonly document: Document;
readonly window: Window;
static is(value: unknown): value is HdpiCanvas;
readonly element: HTMLCanvasElement;
readonly realContext: CanvasRenderingContext2D;
readonly context: CanvasRenderingContext2D & {
verifyDepthZero?: () => void;
};
readonly imageSource: HTMLCanvasElement;
constructor(opts: {
document: Document;
window: Window;
width?: number;
height?: number;
domLayer?: boolean;
zIndex?: number;
name?: string;
overrideDevicePixelRatio?: number;
});
private _container?;
set container(value: HTMLElement | undefined);
get container(): HTMLElement | undefined;
private _enabled;
set enabled(value: boolean);
get enabled(): boolean;
private remove;
destroy(): void;
enabled: boolean;
container?: HTMLElement;
width: number;
height: number;
pixelRatio: number;
constructor(options: CanvasOptions);
drawImage(context: CanvasRenderingContext2D, dx?: number, dy?: number): void;
toDataURL(type?: string): string;
resize(width: number, height: number): void;
snapshot(): void;
clear(): void;
toImage(): HTMLImageElement;
getDataURL(type?: string): string;
/**
* @param fileName The name of the downloaded file.
* @param fileFormat The file format, the default is `image/png`
*/
download(fileName?: string, fileFormat?: string): void;
_pixelRatio: number;
get pixelRatio(): number;
/**
* Changes the pixel ratio of the Canvas element to the given value,
* or uses the window.devicePixelRatio (default), then resizes the Canvas
* element accordingly (default).
*/
private setPixelRatio;
set pixelated(value: boolean);
get pixelated(): boolean;
private _width;
get width(): number;
private _height;
get height(): number;
resize(width: number, height: number): void;
private static _textMeasuringContext?;
private static get textMeasuringContext();
private static _svgText?;
private static get svgText();
private static _has?;
static get has(): {
textMetrics: boolean;
getTransform: boolean;
};
static measureText(text: string, font: string, textBaseline: CanvasTextBaseline, textAlign: CanvasTextAlign): TextMetrics;
/**
* Returns the width and height of the measured text.
* @param text The single-line text to measure.
* @param font The font shorthand string.
*/
static getTextSize(text: string, font: string): Size;
private static textSizeCache;
private static measureSvgText;
static overrideScale(ctx: CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D, scale: number): any;
destroy(): void;
private onContainerChange;
private onEnabledChange;
static debugContext(ctx: CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D): void;
}
export {};
type OffscreenCanvasRenderingContext2D = any;
type OffscreenCanvas = any;
interface OffscreenCanvasOptions {
width: number;
height: number;
overrideDevicePixelRatio?: number;
width?: number;
height?: number;
pixelRatio?: number;
}

@@ -13,3 +13,2 @@ /**

export declare class HdpiOffscreenCanvas {
readonly realContext: OffscreenCanvasRenderingContext2D;
readonly context: OffscreenCanvasRenderingContext2D & {

@@ -19,23 +18,15 @@ verifyDepthZero?: () => void;

readonly canvas: OffscreenCanvas;
imageSource: ImageBitmap;
protected imageSource: ImageBitmap;
enabled: boolean;
width: number;
height: number;
pixelRatio: number;
static isSupported(): boolean;
constructor({ width, height, overrideDevicePixelRatio }: OffscreenCanvasOptions);
constructor({ width, height, pixelRatio }: OffscreenCanvasOptions);
drawImage(context: CanvasRenderingContext2D, dx?: number, dy?: number): void;
resize(width: number, height: number): void;
snapshot(): void;
clear(): void;
destroy(): void;
clear(): void;
_pixelRatio: number;
get pixelRatio(): number;
/**
* Changes the pixel ratio of the Canvas element to the given value,
* or uses the window.devicePixelRatio (default), then resizes the Canvas
* element accordingly (default).
*/
private setPixelRatio;
private _width;
get width(): number;
private _height;
get height(): number;
resize(width: number, height: number): void;
}
export {};

@@ -7,10 +7,10 @@ export declare enum RedrawType {

}
type SceneChangeDetectionOptions = {
type SceneChangeDetectionOptions<T = any> = {
redraw?: RedrawType;
type?: 'normal' | 'transform' | 'path' | 'font';
convertor?: (o: any) => any;
changeCb?: (o: any) => any;
changeCb?: (o: T) => any;
checkDirtyOnAssignment?: boolean;
};
export declare function SceneChangeDetection(opts?: SceneChangeDetectionOptions): (target: any, key: string) => void;
export declare function SceneChangeDetection<T = any>(opts?: SceneChangeDetectionOptions<T>): (target: T, key: string) => void;
export declare abstract class ChangeDetectable {

@@ -17,0 +17,0 @@ protected _dirty: RedrawType;

import type { BBox } from '../bbox';
interface GradientColorStop {
export interface GradientColorStop {
offset: number;

@@ -8,4 +8,4 @@ color: string;

stops: GradientColorStop[];
constructor(stops?: GradientColorStop[]);
abstract createGradient(ctx: CanvasRenderingContext2D, bbox: BBox): CanvasGradient | string;
}
export {};
import type { BBox } from '../bbox';
import { Gradient } from './gradient';
import { Gradient, type GradientColorStop } from './gradient';
export declare class LinearGradient extends Gradient {
angle: number;
constructor(stops: GradientColorStop[], angle?: number);
createGradient(ctx: CanvasRenderingContext2D, bbox: BBox): CanvasGradient | string;
}
import { BBox } from './bbox';
import type { HdpiCanvas } from './canvas/hdpiCanvas';
import type { HdpiOffscreenCanvas } from './canvas/hdpiOffscreenCanvas';
import type { LayerManager, RenderContext, ZIndexSubOrder } from './node';
import type { LayersManager, ZIndexSubOrder } from './layersManager';
import type { RenderContext } from './node';
import { Node, RedrawType } from './node';

@@ -15,2 +16,3 @@ export declare class Group extends Node {

static className: string;
static is(value: unknown): value is Group;
private clipRect?;

@@ -20,3 +22,3 @@ protected layer?: HdpiCanvas | HdpiOffscreenCanvas;

opacity: number;
protected zIndexChanged(): void;
protected onZIndexChange(): void;
isLayer(): boolean;

@@ -30,6 +32,6 @@ constructor(opts?: {

} | undefined);
_setLayerManager(scene?: LayerManager): void;
_setLayerManager(layersManager?: LayersManager): void;
protected getComputedOpacity(): number;
protected getVisibility(): boolean;
protected visibilityChanged(): void;
protected onVisibleChange(): void;
markDirty(source: Node, type?: RedrawType): void;

@@ -42,3 +44,2 @@ containsPoint(_x: number, _y: number): boolean;

private sortChildren;
private clipCtx;
static computeBBox(nodes: Node[]): BBox;

@@ -45,0 +46,0 @@ /**

@@ -6,6 +6,3 @@ /**

*/
export declare function segmentIntersection(ax1: number, ay1: number, ax2: number, ay2: number, bx1: number, by1: number, bx2: number, by2: number): {
x: number;
y: number;
} | null;
export declare function segmentIntersection(ax1: number, ay1: number, ax2: number, ay2: number, bx1: number, by1: number, bx2: number, by2: number): number;
/**

@@ -16,6 +13,3 @@ * Returns intersection points of the given cubic curve and the line segment.

*/
export declare function cubicSegmentIntersections(px1: number, py1: number, px2: number, py2: number, px3: number, py3: number, px4: number, py4: number, x1: number, y1: number, x2: number, y2: number): {
x: number;
y: number;
}[];
export declare function cubicSegmentIntersections(px1: number, py1: number, px2: number, py2: number, px3: number, py3: number, px4: number, py4: number, x1: number, y1: number, x2: number, y2: number): number;
/**

@@ -25,5 +19,2 @@ * Returns intersection points of the arc and the line segment.

*/
export declare function arcIntersections(cx: number, cy: number, r: number, startAngle: number, endAngle: number, counterClockwise: boolean, x1: number, y1: number, x2: number, y2: number): Array<{
x: number;
y: number;
}>;
export declare function arcIntersections(cx: number, cy: number, r: number, startAngle: number, endAngle: number, counterClockwise: boolean, x1: number, y1: number, x2: number, y2: number): number;

@@ -1,2 +0,1 @@

import type { Point } from './point';
export type NearestResult<T> = {

@@ -7,13 +6,16 @@ nearest: T | undefined;

export interface DistantObject {
distanceSquared(point: Point): number;
distanceSquared(x: number, y: number): number;
}
type NearestCalculator<TNearest> = {
nearestSquared(point: Point, maxDistance: number): NearestResult<TNearest>;
nearestSquared(x: number, y: number, maxDistance: number): NearestResult<TNearest>;
};
type DistantContainer<TNearest> = {
get children(): NearestCalculator<TNearest>[];
transformPoint(x: number, y: number): Point;
transformPoint(x: number, y: number): {
x: number;
y: number;
};
};
export declare function nearestSquared<TObject extends DistantObject>(point: Point, objects: TObject[], maxDistanceSquared?: number): NearestResult<TObject>;
export declare function nearestSquaredInContainer<TNearest>(point: Point, container: DistantContainer<TNearest>, maxDistanceSquared?: number): NearestResult<TNearest>;
export declare function nearestSquared<TObject extends DistantObject>(x: number, y: number, objects: Iterable<TObject>, maxDistanceSquared?: number): NearestResult<TObject>;
export declare function nearestSquaredInContainer<TNearest>(x: number, y: number, container: DistantContainer<TNearest>, maxDistanceSquared?: number): NearestResult<TNearest>;
export {};

@@ -1,6 +0,5 @@

import type { LiteralOrFn } from '../util/compare';
import type { BBox } from './bbox';
import type { HdpiCanvas } from './canvas/hdpiCanvas';
import type { HdpiOffscreenCanvas } from './canvas/hdpiOffscreenCanvas';
import type { BBoxProvider } from '../util/bboxset';
import { BBox } from './bbox';
import { ChangeDetectable, RedrawType, SceneChangeDetection } from './changeDetectable';
import type { LayersManager, ZIndexSubOrder } from './layersManager';
import { Matrix } from './matrix';

@@ -30,19 +29,4 @@ export { SceneChangeDetection, RedrawType };

tag?: number;
zIndex?: number;
}
type Layer = HdpiCanvas | HdpiOffscreenCanvas;
export type ZIndexSubOrder = [LiteralOrFn<string | number>, LiteralOrFn<number>];
export interface LayerManager {
debug: (...args: any[]) => void;
canvas: Layer;
markDirty(): void;
addLayer(opts: {
zIndex?: number;
zIndexSubOrder?: ZIndexSubOrder;
name?: string;
getComputedOpacity: () => number;
getVisibility: () => boolean;
}): Layer | undefined;
moveLayer(canvas: Layer, zIndex: number, zIndexSubOrder?: ZIndexSubOrder): void;
removeLayer(canvas: Layer): void;
}
export type NodeWithOpacity = Node & {

@@ -55,3 +39,3 @@ opacity: number;

*/
export declare abstract class Node extends ChangeDetectable {
export declare abstract class Node extends ChangeDetectable implements BBoxProvider {
static _nextSerialNumber: number;

@@ -70,3 +54,3 @@ /** Unique number to allow creation order to be easily determined. */

get datum(): any;
get previousDatum(): any | undefined;
get previousDatum(): any;
set datum(datum: any);

@@ -91,5 +75,7 @@ /**

protected _debug?: (...args: any[]) => void;
protected _layerManager?: LayerManager;
_setLayerManager(value?: LayerManager): void;
get layerManager(): LayerManager | undefined;
protected _layerManager?: LayersManager;
_setLayerManager(value?: LayersManager): void;
get layerManager(): LayersManager | undefined;
ancestors(): Generator<Node, void, unknown>;
traverseUp(): Generator<Node, void, unknown>;
private _parent?;

@@ -118,3 +104,2 @@ get parent(): Node | undefined;

matrix: Matrix;
protected inverseMatrix: Matrix;
private calculateCumulativeMatrix;

@@ -153,3 +138,3 @@ transformPoint(x: number, y: number): {

translationY: number;
constructor({ isVirtual, tag }?: NodeOptions);
constructor({ isVirtual, tag, zIndex }?: NodeOptions);
containsPoint(_x: number, _y: number): boolean;

@@ -164,2 +149,4 @@ /**

findNodes(predicate: (node: Node) => boolean): Node[];
private cachedBBox?;
getCachedBBox(): BBox;
computeBBox(): BBox | undefined;

@@ -177,3 +164,3 @@ computeTransformedBBox(): BBox | undefined;

visible: boolean;
protected visibilityChanged(): void;
protected onVisibleChange(): void;
protected dirtyZIndex: boolean;

@@ -189,3 +176,3 @@ zIndex: number;

};
protected zIndexChanged(): void;
protected onZIndexChange(): void;
}
import { HdpiCanvas } from './canvas/hdpiCanvas';
import { HdpiOffscreenCanvas } from './canvas/hdpiOffscreenCanvas';
import type { Node, RenderContext, ZIndexSubOrder } from './node';
import { LayersManager } from './layersManager';
import type { Node } from './node';
interface SceneOptions {
document: Document;
window: Window;
mode?: 'simple' | 'composite' | 'dom-composite' | 'adv-composite';
width?: number;
height?: number;
pixelRatio?: number;
}
interface SceneLayer {
id: number;
name?: string;
zIndex: number;
zIndexSubOrder?: ZIndexSubOrder;
canvas: HdpiOffscreenCanvas | HdpiCanvas;
getComputedOpacity: () => number;
getVisibility: () => boolean;
}
export declare class Scene {
static className: string;
static readonly className = "Scene";
private readonly debug;
readonly id: string;
readonly canvas: HdpiCanvas;
readonly layers: SceneLayer[];
private readonly opts;
constructor(opts: {
width?: number;
height?: number;
overrideDevicePixelRatio?: number;
} & SceneOptions);
set container(value: HTMLElement | undefined);
get container(): HTMLElement | undefined;
readonly layersManager: LayersManager;
private root;
private isDirty;
private pendingSize?;
constructor({ width, height, pixelRatio }: SceneOptions);
get width(): number;
get height(): number;
setContainer(value: HTMLElement): this;
setRoot(node: Node | null): this;
attachNode<T extends Node>(node: T): () => this;
appendChild<T extends Node>(node: T): this;
removeChild<T extends Node>(node: T): this;
download(fileName?: string, fileFormat?: string): void;
/** NOTE: Integrated Charts undocumented image download method. */
getDataURL(type?: string): string;
overrideDevicePixelRatio?: number;
get width(): number;
get height(): number;
private pendingSize?;
getDataURL(fileFormat?: string): string;
resize(width: number, height: number): boolean;
private _nextZIndex;
private _nextLayerId;
addLayer(opts: {
zIndex?: number;
zIndexSubOrder?: ZIndexSubOrder;
name?: string;
getComputedOpacity: () => number;
getVisibility: () => boolean;
}): HdpiCanvas | HdpiOffscreenCanvas | undefined;
removeLayer(canvas: HdpiCanvas | HdpiOffscreenCanvas): void;
moveLayer(canvas: HdpiCanvas | HdpiOffscreenCanvas, newZIndex: number, newZIndexSubOrder?: ZIndexSubOrder): void;
private sortLayers;
private _dirty;
markDirty(): void;
get dirty(): boolean;
_root: Node | null;
set root(node: Node | null);
get root(): Node | null;
private readonly debug;
/** Alternative to destroy() that preserves re-usable resources. */
strip(): void;
destroy(): void;
render(opts?: {

@@ -65,19 +34,6 @@ debugSplitTimes: Record<string, number>;

}): Promise<void>;
debugStats(debugSplitTimes: Record<string, number>, ctx: CanvasRenderingContext2D, renderCtxStats: RenderContext['stats'], extraDebugStats?: {}): void;
debugSceneNodeHighlight(ctx: CanvasRenderingContext2D, debugNodes: Record<string, Node>): void;
buildTree(node: Node): {
name?: string;
node?: any;
dirty?: string;
virtualParent?: Node;
};
buildDirtyTree(node: Node): {
dirtyTree: {
name?: string;
node?: any;
dirty?: string;
};
paths: string[];
};
/** Alternative to destroy() that preserves re-usable resources. */
strip(): void;
destroy(): void;
}
export {};

@@ -36,7 +36,7 @@ import { Node } from './node';

}>;
select<TChild extends Node = Node>(predicate: (node: Node) => node is TChild): TChild[];
selectByClass<TChild extends Node = Node>(Class: new () => TChild): TChild[];
selectByTag<TChild extends Node = Node>(tag: number): TChild[];
select<TChild2 extends Node = Node>(predicate: (node: Node) => node is TChild2): TChild2[];
selectByClass<TChild2 extends Node = Node>(Class: new () => TChild2): TChild2[];
selectByTag<TChild2 extends Node = Node>(tag: number): TChild2[];
nodes(): TChild[];
}
export {};

@@ -12,3 +12,3 @@ import { BBox } from '../bbox';

export declare class Arc extends Path {
static className: string;
static readonly className = "Arc";
protected static defaultStyles: {

@@ -15,0 +15,0 @@ fill: string;

@@ -5,3 +5,3 @@ import { BBox } from '../bbox';

export declare class Line extends Shape {
static className: string;
static readonly className = "Line";
protected static defaultStyles: never;

@@ -8,0 +8,0 @@ constructor(opts?: NodeOptions);

@@ -11,3 +11,3 @@ import type { RenderContext } from '../node';

export declare class Path extends Shape {
static className: string;
static readonly className: string;
/**

@@ -39,2 +39,3 @@ * Declare a path to retain for later rendering and hit testing

render(renderCtx: RenderContext): void;
protected drawPath(ctx: any): void;
}
import { Path2D } from '../path2D';
import { Path } from './path';
export declare class RadialColumnShape extends Path {
static className: string;
static readonly className = "RadialColumnShape";
readonly borderPath: Path2D;

@@ -6,0 +6,0 @@ isBeveled: boolean;

@@ -5,3 +5,3 @@ import { BBox } from '../bbox';

export declare class Range extends Shape {
static className: string;
static readonly className = "Range";
protected static defaultStyles: {

@@ -8,0 +8,0 @@ strokeWidth: number;

@@ -5,3 +5,3 @@ import { BBox } from '../bbox';

export declare class Rect extends Path {
static className: string;
static readonly className: string;
readonly borderPath: Path2D;

@@ -28,2 +28,3 @@ x: number;

private effectiveStrokeWidth;
private hittester;
/**

@@ -30,0 +31,0 @@ * When the rectangle's width or height is less than a pixel

import { BBox } from '../bbox';
import { Path } from './path';
export declare class Sector extends Path {
static className: string;
static readonly className = "Sector";
centerX: number;

@@ -6,0 +6,0 @@ centerY: number;

@@ -33,4 +33,4 @@ import type { DropShadow } from '../dropShadow';

strokeOpacity: number;
fill: string | undefined;
protected updateGradient(): void;
fill?: string;
protected onFillChange(): void;
protected gradient: LinearGradient | undefined;

@@ -47,3 +47,3 @@ /**

*/
stroke: string | undefined;
stroke?: string;
strokeWidth: number;

@@ -57,3 +57,3 @@ /**

align(start: number, length?: number): number;
lineDash: number[] | undefined;
lineDash?: number[];
lineDashOffset: number;

@@ -60,0 +60,0 @@ lineCap?: ShapeLineCap;

@@ -15,3 +15,3 @@ import type { FontFamily, FontSize, FontStyle, FontWeight, OverflowStrategy, TextWrap } from '../../options/chart/types';

export declare class Text extends Shape {
static className: string;
static readonly className = "Text";
static defaultLineHeightRatio: number;

@@ -40,3 +40,3 @@ static defaultStyles: {

private lines;
private _setLines;
private onTextChange;
text?: string;

@@ -77,4 +77,21 @@ private _dirtyFont;

}): void;
protected getVerticalModifier(textBaseline: CanvasTextBaseline): number;
private static _textContext;
private static get textContext();
private static _measureText;
private static _getTextSize;
static measureText(text: string, font: string, textBaseline: CanvasTextBaseline, textAlign: CanvasTextAlign): TextMetrics;
/**
* Returns the width and height of the measured text.
* @param text The single-line text to measure.
* @param font The font shorthand string.
*/
static getTextSize(text: string, font: string): {
width: number;
height: number;
};
}
interface TextMeasurer {
export declare class TextMeasurer {
protected font: string;
constructor(font: string | TextSizeProperties);
size(text: string): {

@@ -84,8 +101,4 @@ width: number;

};
width(line: string): number;
width(text: string): number;
}
export declare function createTextMeasurer(font: string): TextMeasurer;
export declare function getFont(fontProps: TextSizeProperties): string;
export declare function measureText(lines: string[], x: number, y: number, textProps: TextSizeProperties): BBox;
export declare function splitText(text?: string): string[];
export {};
import type { Point, SizedPoint } from '../point';
export type LabelPlacement = 'top' | 'bottom' | 'left' | 'right';
export interface MeasuredLabel {

@@ -7,5 +8,5 @@ readonly text: string;

}
export interface PlacedLabel<PLD = PointLabelDatum> extends MeasuredLabel, Readonly<Point> {
readonly index: number;
readonly datum: PLD;
export interface PlacedLabelDatum {
readonly point: Point;
readonly label: MeasuredLabel;
}

@@ -15,3 +16,11 @@ export interface PointLabelDatum {

readonly label: MeasuredLabel;
readonly marker: {
center: Point;
} | undefined;
readonly placement: LabelPlacement | undefined;
}
export interface PlacedLabel<PLD = PointLabelDatum> extends MeasuredLabel, Readonly<Point> {
readonly index: number;
readonly datum: PLD;
}
interface Bounds extends Readonly<Point> {

@@ -28,3 +37,3 @@ readonly width: number;

export declare function placeLabels(data: readonly (readonly PointLabelDatum[])[], bounds?: Bounds, padding?: number): PlacedLabel[][];
export declare function axisLabelsOverlap(data: readonly PointLabelDatum[], padding?: number): boolean;
export declare function axisLabelsOverlap(data: readonly PlacedLabelDatum[], padding?: number): boolean;
export {};

@@ -9,3 +9,3 @@ import type { BBox } from '../bbox';

export declare function isPointInSector(x: number, y: number, sector: SectorBoundaries): boolean;
export declare function boxCollidesSector(box: BBox, sector: SectorBoundaries): boolean;
export declare function boxCollidesSector(box: BBox, sector: SectorBoundaries): number;
export {};
export * from './scale/timeScale';
export * from './scale/bandScale';
export * from './scale/continuousScale';
export * from './scale/ordinalTimeScale';
export * from './scale/colorScale';

@@ -5,0 +6,0 @@ export * from './scale/linearScale';

export * from './util/angle';
export * from './util/equal';
export * from './util/id';

@@ -10,8 +11,9 @@ export * from './util/json';

export { isValidDate as isDate, isFiniteNumber as isNumber, isString } from './util/type-guards';
export { extent, normalisedExtent, normalisedExtentWithMetadata } from './util/array';
export { bifurcate, extent, normalisedExtent, normalisedExtentWithMetadata } from './util/array';
export { toFixed, isEqual as isNumberEqual } from './util/number';
export { tickFormat } from './util/numberFormat';
export { default as ticks, tickStep, range } from './util/ticks';
export { default as ticks, tickStep, range, isDenseInterval } from './util/ticks';
export { Color } from './util/color';
export type { MeasuredLabel, PointLabelDatum } from './scene/util/labelPlacement';
export type { LabelPlacement, MeasuredLabel, PointLabelDatum, PlacedLabel } from './scene/util/labelPlacement';
export * from './util/logger';
export type { RequireOptional } from './util/types';

@@ -12,2 +12,3 @@ /**

export declare function normalizeAngle180(radians: number): number;
export declare function isBetweenAngles(targetAngle: number, startAngle: number, endAngle: number): boolean;
export declare function toRadians(degrees: number): number;

@@ -14,0 +15,0 @@ export declare function toDegrees(radians: number): number;

@@ -12,1 +12,2 @@ export declare function extent(values: Array<number | Date>): [number, number] | undefined;

export declare function circularSliceArray<T>(data: T[], size: number, offset?: number): T[];
export declare function bifurcate<T>(isLeft: (array: T) => boolean, array: T[]): [T[], T[]];

@@ -7,7 +7,7 @@ interface BBoxLike {

export interface BBoxProvider {
computeBBox(): BBoxLike | undefined;
getCachedBBox(): BBoxLike;
}
export declare class BBoxSet<V> {
private nodes;
add(value: V, bbox: BBoxProvider): void;
private elems;
add(value: V, getters: BBoxProvider[]): void;
find(x: number, y: number): V[];

@@ -14,0 +14,0 @@ [Symbol.iterator](): IterableIterator<V>;

@@ -1,2 +0,2 @@

type DebugLogger = ((...logContent: any[]) => void) & {
export type DebugLogger = ((...logContent: any[]) => void) & {
check(): boolean;

@@ -8,2 +8,1 @@ };

};
export {};

@@ -1,1 +0,9 @@

export declare function injectStyle(document: Document, cssStyle: string): void;
export declare function getDocument(): Document;
export declare function getWindow<E>(): Window & E;
export declare function getWindow<K extends keyof Window>(propertyName: K): Window[K];
export declare function getWindow<R = unknown>(propertyName: string): R;
export declare function createElement<K extends keyof HTMLElementTagNameMap>(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K];
export declare function downloadUrl(dataUrl: string, fileName: string): void;
export declare function injectStyle(cssStyle: string, uniqueId?: string): void;
export declare function setDocument(document: Document): void;
export declare function setWindow(window: Window): void;

@@ -18,2 +18,4 @@ interface DebounceOptions {

export declare function identity<T>(x: T): T;
export declare function iterate<T extends Iterable<any>[]>(...iterators: T): Generator<T[number] extends Iterable<infer U> ? U : never, void, undefined>;
export declare function iterateReverseArray<T extends any[]>(array: T): Generator<T[number] extends Iterable<infer U> ? U : never, void, undefined>;
export declare function debounce<T extends (...args: Parameters<T>) => void>(callback: T, waitMs?: number, options?: DebounceOptions): ((...args: Parameters<T>) => void) & {

@@ -20,0 +22,0 @@ cancel(): void;

@@ -12,6 +12,6 @@ import type { DeepPartial } from './types';

* @param target target for diff vs. source
*
* @param skip object keys to skip during diff
* @returns `null` if no differences, or an object with the subset of properties that have changed.
*/
export declare function jsonDiff<T extends unknown>(source: T, target: T): Partial<T> | null;
export declare function jsonDiff<T extends unknown>(source: T, target: T, skip?: (keyof T)[]): Partial<T> | null;
/**

@@ -51,5 +51,3 @@ * Recursively clones of primitives and objects.

export type JsonApplyParams = {
constructors?: Record<string, new () => any>;
constructedArrays?: WeakMap<Array<any>, new () => any>;
allowedTypes?: Record<string, ReturnType<typeof classify>[]>;
};

@@ -66,7 +64,3 @@ /**

* @param params.skip property names to skip from the source
* @param params.constructors dictionary of property name to class constructors for properties that
* require object construction
* @param params.constructedArrays map stores arrays which items should be initialised
* using a class constructor
* @param params.allowedTypes overrides by path for allowed property types
* @param params.constructedArrays map stores arrays which items should be initialised using a class constructor
*/

@@ -77,10 +71,2 @@ export declare function jsonApply<Target extends object, Source extends DeepPartial<Target>>(target: Target, source?: Source, params?: {

skip?: string[];
idx?: number;
} & JsonApplyParams): Target;
type Classification = RestrictedClassification | 'function' | 'class-instance';
type RestrictedClassification = 'array' | 'object' | 'primitive';
/**
* Classify the type of value to assist with handling for merge purposes.
*/
declare function classify(value: any): Classification | null;
export {};
export declare function memo<T, R>(params: T, fnGenerator: (params: T) => () => R): () => R;
export declare function memoizeFunction<T, R>(baseFn: (params: T, ...rest: unknown[]) => R): (params: T, ...rest: unknown[]) => R;

@@ -7,2 +7,3 @@ import type { Intersection, PlainObject } from './types';

export declare function mapValues<T extends PlainObject, R>(object: T, mapper: (value: T[keyof T], key: keyof T, object: T) => R): Record<keyof T, R>;
export declare function without(object: object | undefined, keys: string[]): {};
export declare function getPath(object: object, path: string | string[]): any;

@@ -9,0 +10,0 @@ export declare function setPath(object: object, path: string | string[], newValue: unknown): void;

export declare class BaseProperties<T extends object = object> {
protected className?: string | undefined;
constructor(className?: string | undefined);
set(properties: T): this;
isValid<TContext = Omit<T, 'type'>>(this: TContext): boolean;
toJson<T>(this: T): Record<string, any>;
toJson<J>(this: J): Record<string, any>;
}

@@ -8,0 +6,0 @@ export declare class PropertiesArray<T extends BaseProperties> extends Array {

@@ -11,17 +11,15 @@ type Size = {

export declare class SizeMonitor {
private static elements;
private static resizeObserver;
private static ready;
private static documentReady;
private static ownerDocument?;
private static queuedObserveRequests;
static init(document: Document): void;
static onContentLoaded: EventListener;
private static destroy;
private static checkSize;
static observe(element: HTMLElement, cb: OnSizeChange): void;
static unobserve(element: HTMLElement): void;
static removeFromQueue(element: HTMLElement): void;
static checkClientSize(element: HTMLElement, entry: Entry): void;
private elements;
private resizeObserver;
private documentReady;
private queuedObserveRequests;
constructor();
onLoad: EventListener;
private destroy;
private checkSize;
observe(element: HTMLElement, cb: OnSizeChange): void;
unobserve(element: HTMLElement): void;
removeFromQueue(element: HTMLElement): void;
checkClientSize(element: HTMLElement, entry: Entry): void;
}
export {};

@@ -0,1 +1,2 @@

import type { TimeInterval } from './time/interval';
export type NumericTicks = number[] & {

@@ -9,1 +10,8 @@ fractionDigits: number;

export declare function range(start: number, stop: number, step: number): NumericTicks;
export declare function isDenseInterval({ start, stop, interval, count, availableRange, }: {
start: number;
stop: number;
interval: number | TimeInterval;
count?: number;
availableRange: number;
}): boolean;

@@ -27,6 +27,9 @@ interface ValidateOptions {

}
export declare function Validate(predicate: ValidatePredicate, options?: ValidateOptions): PropertyDecorator;
export declare function Validate(predicate: ValidatePredicate, options?: ValidateOptions & {
property?: string;
}): PropertyDecorator;
export declare const AND: (...predicates: ValidatePredicate[]) => ValidatePredicate;
export declare const OR: (...predicates: ValidatePredicate[]) => ValidatePredicate;
export declare const OBJECT: ValidateObjectPredicate;
export declare const PLAIN_OBJECT: ValidateObjectPredicate;
export declare const BOOLEAN: ValidatePredicate;

@@ -67,2 +70,3 @@ export declare const FUNCTION: ValidatePredicate;

export declare const INTERACTION_RANGE: ValidatePredicate;
export declare const LABEL_PLACEMENT: ValidatePredicate;
export declare function UNION(options: string[], message?: string): ValidatePredicate;

@@ -69,0 +73,0 @@ export declare const MIN_SPACING: ValidatePredicate;

@@ -1,1 +0,1 @@

export declare const VERSION = "9.1.1";
export declare const VERSION = "9.2.0";
{
"name": "ag-charts-community",
"version": "9.1.1",
"version": "9.2.0",
"description": "Advanced Charting / Charts supporting Javascript / Typescript / React / Angular / Vue",

@@ -60,3 +60,3 @@ "main": "./dist/package/main.cjs.js",

"@typescript-eslint/parser": "^5.51.0",
"ag-charts-test": "9.1.1",
"ag-charts-test": "9.2.0",
"canvas": "^2.10.2",

@@ -63,0 +63,0 @@ "jest": "^29.5.0",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc