ag-charts-community
Advanced tools
Comparing version 10.2.0 to 10.3.0
@@ -1,2 +0,3 @@ | ||
import type { AgChartInstance, AgChartOptions, AgFinancialChartOptions, AgGaugeOptions } from 'ag-charts-types'; | ||
import type { AgChartInstance, AgChartOptions, AgFinancialChartOptions, AgGaugeOptions, AgSparklineOptions } from 'ag-charts-types'; | ||
import { type ChartInternalOptionMetadata } from '../module/optionsModule'; | ||
/** | ||
@@ -25,5 +26,6 @@ * Factory for creating and updating instances of AgChartInstance. | ||
*/ | ||
static create<O extends AgChartOptions>(options: O): AgChartInstance<O>; | ||
static create<O extends AgChartOptions>(userOptions: O, optionsMetadata?: ChartInternalOptionMetadata): AgChartInstance<O>; | ||
static createFinancialChart(options: AgFinancialChartOptions): AgChartInstance<AgFinancialChartOptions>; | ||
static createGauge(options: AgGaugeOptions): AgChartInstance<AgGaugeOptions>; | ||
static __createSparkline(options: AgSparklineOptions): AgChartInstance<AgSparklineOptions>; | ||
} |
@@ -1,2 +0,2 @@ | ||
import { type AgGaugeChartOptions, type AgGaugeOptions } from 'ag-charts-types'; | ||
export declare function gauge(opts: AgGaugeOptions): AgGaugeChartOptions; | ||
import { type AgGaugeChartOptions, type AgGaugeOptions, type AgLinearGaugeThemeOverrides, type AgRadialGaugeThemeOverrides } from 'ag-charts-types'; | ||
export declare function gauge(opts: AgGaugeOptions, presetTheme: AgRadialGaugeThemeOverrides | AgLinearGaugeThemeOverrides | undefined): AgGaugeChartOptions; |
import { gauge } from './gauge'; | ||
import { priceVolume } from './priceVolumePreset'; | ||
import { sparkline } from './sparkline'; | ||
export declare const PRESETS: { | ||
'price-volume': typeof priceVolume; | ||
gauge: typeof gauge; | ||
sparkline: typeof sparkline; | ||
}; |
import type { AgBaseFinancialPresetOptions, AgCartesianChartOptions, AgPriceVolumePreset } from 'ag-charts-types'; | ||
import type { ChartTheme } from '../../chart/themes/chartTheme'; | ||
export declare function priceVolume(opts: AgPriceVolumePreset & AgBaseFinancialPresetOptions, getTheme: () => ChartTheme): AgCartesianChartOptions; | ||
export declare function priceVolume(opts: AgPriceVolumePreset & AgBaseFinancialPresetOptions, _presetTheme: any, getTheme: () => ChartTheme): AgCartesianChartOptions; |
@@ -1,2 +0,2 @@ | ||
import type { DOMManager } from '../../dom/domManager'; | ||
import type { KeyNavManager } from '../../chart/interaction/keyNavManager'; | ||
import type { MementoOriginator } from './memento'; | ||
@@ -10,3 +10,5 @@ export declare class HistoryManager { | ||
private readonly debug; | ||
constructor(domManager: DOMManager); | ||
private readonly destroyFns; | ||
constructor(keyNavManager: KeyNavManager); | ||
destroy(): void; | ||
addMementoOriginator(originator: MementoOriginator): void; | ||
@@ -17,3 +19,2 @@ clear(): void; | ||
redo(): void; | ||
private onKeyDown; | ||
private findPreviousMemento; | ||
@@ -20,0 +21,0 @@ private restoreMemento; |
@@ -23,4 +23,4 @@ import type { AgAnnotation, AgAnnotationsThemeableOptions } from 'ag-charts-types'; | ||
setAnnotationStyles(styles: AgAnnotationsThemeableOptions): void; | ||
getAnnotationTypeStyles(type: keyof AgAnnotationsThemeableOptions): import("ag-charts-types").AgLineAnnotationStyles | import("ag-charts-types").AgTextAnnotationStyles | import("ag-charts-types").AgChannelAnnotationStyles | import("ag-charts-types").AgCalloutAnnotationStyles | import("ag-charts-types").AgCommentAnnotationStyles | import("ag-charts-types").AgNoteAnnotationStyles | import("ag-charts-types").AgShapeAnnotationStyles | import("ag-charts-types").AgAnnotationAxesButtons | undefined; | ||
getAnnotationTypeStyles(type: keyof AgAnnotationsThemeableOptions): import("ag-charts-types").AgLineAnnotationStyles | import("ag-charts-types").AgTextAnnotationStyles | import("ag-charts-types").AgChannelAnnotationStyles | import("ag-charts-types").AgCalloutAnnotationStyles | import("ag-charts-types").AgCommentAnnotationStyles | import("ag-charts-types").AgNoteAnnotationStyles | import("ag-charts-types").AgShapeAnnotationStyles | import("ag-charts-types").AgMeasurerAnnotationStyles | import("ag-charts-types").AgQuickMeasurerAnnotationStyles | import("ag-charts-types").AgAnnotationAxesButtons | undefined; | ||
private cleanData; | ||
} |
@@ -1,2 +0,2 @@ | ||
import type { CssColor, FontFamily, FontSize, FontStyle, FontWeight } from 'ag-charts-types'; | ||
import type { AgAxisBoundSeries, CssColor, FontFamily, FontSize, FontStyle, FontWeight } from 'ag-charts-types'; | ||
import type { AxisContext } from '../../module/axisContext'; | ||
@@ -155,3 +155,2 @@ import type { ModuleInstance } from '../../module/baseModule'; | ||
readonly title: AxisTitle; | ||
private setTickInterval; | ||
/** | ||
@@ -182,3 +181,3 @@ * The length of the grid. The grid is only visible in case of a non-zero value. | ||
private tickGenerationResult; | ||
calculateLayout(primaryTickCount?: number): { | ||
calculateLayout(domain?: any[], primaryTickCount?: number): { | ||
primaryTickCount: number | undefined; | ||
@@ -190,3 +189,3 @@ bbox: BBox; | ||
setDomain(domain: D[]): void; | ||
updateScale(): void; | ||
updateScale(domain?: any[]): void; | ||
private calculateRotations; | ||
@@ -225,4 +224,2 @@ private generateTicks; | ||
rotation: number; | ||
rotationCenterX: number; | ||
rotationCenterY: number; | ||
translationX: number; | ||
@@ -249,3 +246,3 @@ translationY: number; | ||
getBBox(): BBox; | ||
getRegionNode(): TransformableGroup; | ||
getRegionNode(): Node | undefined; | ||
initCrossLine(crossLine: CrossLine): void; | ||
@@ -257,3 +254,3 @@ isAnySeriesActive(): boolean; | ||
direction: ChartAxisDirection; | ||
boundSeries: import("ag-charts-types").AgAxisBoundSeries[]; | ||
boundSeries: AgAxisBoundSeries[]; | ||
defaultValue: string | undefined; | ||
@@ -260,0 +257,0 @@ }; |
import type { AxisContext } from '../../module/axisContext'; | ||
import { Group } from '../../scene/group'; | ||
import { Layer } from '../../scene/layer'; | ||
import type { ChartAxisDirection } from '../chartAxisDirection'; | ||
@@ -13,4 +14,4 @@ type Axis = { | ||
private readonly axes; | ||
readonly axisGridGroup: Group; | ||
readonly axisGroup: Group; | ||
readonly axisGridGroup: Layer; | ||
readonly axisGroup: Layer; | ||
constructor(sceneRoot: Group); | ||
@@ -17,0 +18,0 @@ updateAxes(oldAxes: Axis[], newAxes: Axis[]): void; |
import type { AgCartesianAxisPosition } from 'ag-charts-types'; | ||
import type { AxisContext } from '../../module/axisContext'; | ||
import type { Scale } from '../../scale/scale'; | ||
import type { Node } from '../../scene/node'; | ||
import { ChartAxisDirection } from '../chartAxisDirection'; | ||
@@ -14,3 +15,3 @@ import { Axis } from './axis'; | ||
update(animated?: boolean): number | undefined; | ||
calculateLayout(primaryTickCount?: number): { | ||
calculateLayout(domain?: any[], primaryTickCount?: number): { | ||
primaryTickCount: number | undefined; | ||
@@ -21,2 +22,3 @@ bbox: import("../../integrated-charts-scene").BBox; | ||
protected createLabel(): CartesianAxisLabel; | ||
getRegionNode(): Node | undefined; | ||
} |
@@ -17,4 +17,4 @@ import type { ModuleContext } from '../../module/moduleContext'; | ||
}; | ||
protected calculateDomain(): void; | ||
updateScale(domain?: any[]): void; | ||
private reduceBandScalePadding; | ||
} |
@@ -9,4 +9,3 @@ import type { ModuleInstance } from '../../module/baseModule'; | ||
export declare class Background<TImage = never> extends BaseModuleInstance implements ModuleInstance { | ||
private readonly zIndex; | ||
private readonly layer; | ||
protected readonly ctx: ModuleContext; | ||
protected readonly node: Group; | ||
@@ -19,4 +18,5 @@ protected readonly rectNode: Rect; | ||
text?: string; | ||
constructor(ctx: ModuleContext, zIndex?: number, layer?: boolean); | ||
constructor(ctx: ModuleContext); | ||
protected createNode(): Group; | ||
protected onLayoutComplete(e: LayoutCompleteEvent): void; | ||
} |
@@ -29,7 +29,7 @@ import type { FontStyle, FontWeight, TextAlign, TextWrap } from 'ag-charts-types'; | ||
private proxyText?; | ||
registerInteraction(moduleCtx: ModuleContext): () => void; | ||
registerInteraction(moduleCtx: ModuleContext, where: 'beforebegin' | 'afterend'): () => void; | ||
computeTextWrap(containerWidth: number, containerHeight: number): void; | ||
updateA11yText(proxyService: ProxyInteractionService): void; | ||
updateA11yText(proxyService: ProxyInteractionService, where: 'beforebegin' | 'afterend'): void; | ||
handleMouseMove(moduleCtx: ModuleContext, event: PointerInteractionEvent<'hover'>): void; | ||
handleMouseLeave(moduleCtx: ModuleContext, _event: PointerInteractionEvent<'leave'>): void; | ||
} |
@@ -31,3 +31,2 @@ import type { LayoutContext } from '../module/baseModule'; | ||
seriesRect: BBox; | ||
animationRect: BBox; | ||
visibility: VisibilityMap; | ||
@@ -43,2 +42,3 @@ clipSeries: boolean; | ||
private calculateAxisDimensions; | ||
private getSyncedDomain; | ||
private sizeAxis; | ||
@@ -45,0 +45,0 @@ private calculateAxisArea; |
@@ -7,2 +7,3 @@ import type { AgChartInstance, AgChartOptions } from 'ag-charts-types'; | ||
import { TranslatableGroup } from '../scene/group'; | ||
import { TranslatableLayer } from '../scene/layer'; | ||
import type { Scene } from '../scene/scene'; | ||
@@ -32,10 +33,2 @@ import type { PlacedLabel } from '../scene/util/labelPlacement'; | ||
}; | ||
export interface ChartSpecialOverrides { | ||
document?: Document; | ||
window?: Window; | ||
overrideDevicePixelRatio?: number; | ||
sceneMode?: 'simple'; | ||
presetType?: string; | ||
} | ||
export type ChartExtendedOptions = AgChartOptions & ChartSpecialOverrides; | ||
declare class SeriesArea extends BaseProperties { | ||
@@ -51,4 +44,4 @@ clip?: boolean; | ||
readonly seriesRoot: TranslatableGroup; | ||
readonly highlightRoot: TranslatableGroup; | ||
readonly annotationRoot: TranslatableGroup; | ||
readonly highlightRoot: TranslatableLayer; | ||
readonly annotationRoot: TranslatableLayer; | ||
readonly tooltip: Tooltip; | ||
@@ -71,2 +64,3 @@ readonly overlays: ChartOverlays; | ||
getCanvasDataURL(fileFormat?: string): string; | ||
toSVG(): string | undefined; | ||
readonly padding: Padding; | ||
@@ -81,4 +75,4 @@ readonly seriesArea: SeriesArea; | ||
destroyed: boolean; | ||
private _skipSync; | ||
private readonly _destroyFns; | ||
protected skipSync: boolean; | ||
chartAnimationPhase: ChartAnimationPhase; | ||
@@ -97,6 +91,7 @@ readonly modulesManager: ModulesManager; | ||
publicApi?: AgChartInstance; | ||
getOptions(): import("ag-charts-types").AgCartesianChartOptions | import("ag-charts-types").AgPolarChartOptions | import("ag-charts-types").AgHierarchyChartOptions | import("ag-charts-types").AgTopologyChartOptions | import("ag-charts-types").AgFlowProportionChartOptions; | ||
getOptions(): import("ag-charts-types").AgCartesianChartOptions | import("ag-charts-types").AgPolarChartOptions | import("ag-charts-types").AgHierarchyChartOptions | import("ag-charts-types").AgTopologyChartOptions | import("ag-charts-types").AgFlowProportionChartOptions | import("ag-charts-types").AgStandaloneChartOptions; | ||
protected constructor(options: ChartOptions, resources?: TransferableResources); | ||
private initSeriesAreaDependencies; | ||
getModuleContext(): ModuleContext; | ||
abstract getChartType(): 'cartesian' | 'polar' | 'hierarchy' | 'topology' | 'flow-proportion' | 'gauge'; | ||
abstract getChartType(): 'cartesian' | 'polar' | 'hierarchy' | 'topology' | 'flow-proportion' | 'standalone' | 'gauge'; | ||
protected getCaptionText(): string; | ||
@@ -149,4 +144,2 @@ protected getAriaLabel(): string; | ||
waitForUpdate(timeoutMs?: number, failOnTimeout?: boolean): Promise<void>; | ||
private readonly dataProcessListeners; | ||
waitForDataProcess(timeout?: number): Promise<void>; | ||
protected getMinRects(): { | ||
@@ -163,2 +156,3 @@ minRect: BBox; | ||
private applyModules; | ||
private initSeriesDeclarationOrder; | ||
private applySeries; | ||
@@ -165,0 +159,0 @@ private applyAxes; |
@@ -31,3 +31,3 @@ import type { AgAxisLabelFormatterParams, AgCartesianAxisPosition, FontOptions, Formatter } from 'ag-charts-types'; | ||
attachAxis(axisGroup: Node, gridGroup: Node): void; | ||
calculateLayout(primaryTickCount?: number): { | ||
calculateLayout(domain?: any[], primaryTickCount?: number): { | ||
primaryTickCount?: number; | ||
@@ -46,3 +46,3 @@ bbox: BBox; | ||
getModuleMap(): ModuleMap<any, any, any>; | ||
getRegionNode(): Node; | ||
getRegionNode(): Node | undefined; | ||
inRange(x: number, width?: number, tolerance?: number): boolean; | ||
@@ -49,0 +49,0 @@ isReversed(): boolean; |
@@ -17,3 +17,2 @@ import { HistoryManager } from '../api/state/historyManager'; | ||
import { AnimationManager } from './interaction/animationManager'; | ||
import { AriaAnnouncementService } from './interaction/ariaAnnouncementServices'; | ||
import { ChartEventManager } from './interaction/chartEventManager'; | ||
@@ -48,3 +47,2 @@ import { ContextMenuRegistry } from './interaction/contextMenuRegistry'; | ||
annotationManager: AnnotationManager; | ||
ariaAnnouncementService: AriaAnnouncementService; | ||
axisManager: AxisManager; | ||
@@ -51,0 +49,0 @@ chartService: ChartService; |
import type { AgChartInstance, AgChartOptions, AgChartState, DownloadOptions, ImageDataUrlOptions } from 'ag-charts-types'; | ||
import type { MementoCaretaker } from '../api/state/memento'; | ||
import type { LicenseManager } from '../module/enterpriseModule'; | ||
import type { ChartInternalOptionMetadata, ChartSpecialOverrides } from '../module/optionsModule'; | ||
import type { DeepPartial } from '../util/types'; | ||
@@ -11,3 +12,4 @@ import type { Chart } from './chart'; | ||
caretaker: MementoCaretaker; | ||
createOrUpdate(opts: AgChartOptions, chart?: AgChartInstance): AgChartProxy; | ||
create(userOptions: AgChartOptions, processedOverrides?: Partial<AgChartOptions>, specialOverrides?: ChartSpecialOverrides, optionsMetadata?: ChartInternalOptionMetadata): AgChartProxy; | ||
update(opts: AgChartOptions, chart?: AgChartInstance, specialOverrides?: ChartSpecialOverrides): AgChartProxy; | ||
updateUserDelta(chart: AgChartInstance, deltaOptions: DeepPartial<AgChartOptions>): void; | ||
@@ -29,5 +31,6 @@ } | ||
updateDelta(deltaOptions: DeepPartial<AgChartOptions>): Promise<void>; | ||
getOptions(): import("ag-charts-types").AgCartesianChartOptions | import("ag-charts-types").AgPolarChartOptions | import("ag-charts-types").AgHierarchyChartOptions | import("ag-charts-types").AgTopologyChartOptions | import("ag-charts-types").AgFlowProportionChartOptions; | ||
getOptions(): import("ag-charts-types").AgCartesianChartOptions | import("ag-charts-types").AgPolarChartOptions | import("ag-charts-types").AgHierarchyChartOptions | import("ag-charts-types").AgTopologyChartOptions | import("ag-charts-types").AgFlowProportionChartOptions | import("ag-charts-types").AgStandaloneChartOptions; | ||
waitForUpdate(): Promise<void>; | ||
download(opts?: DownloadOptions): Promise<void>; | ||
__toSVG(opts?: DownloadOptions): Promise<string | undefined>; | ||
getImageDataURL(opts?: ImageDataUrlOptions): Promise<string>; | ||
@@ -34,0 +37,0 @@ getState(): Required<AgChartState>; |
import type { AgCartesianCrossLineLabelOptions, AgCrossLineLabelPosition, FontStyle, FontWeight } from 'ag-charts-types'; | ||
import type { Scale } from '../../scale/scale'; | ||
import { Group } from '../../scene/group'; | ||
import { Layer } from '../../scene/layer'; | ||
import { BaseProperties } from '../../util/properties'; | ||
import { ChartAxisDirection } from '../chartAxisDirection'; | ||
import { Layers } from '../layers'; | ||
import { ZIndexMap } from '../zIndexMap'; | ||
import { type CrossLine, type CrossLineType } from './crossLine'; | ||
@@ -29,5 +29,5 @@ import type { CrossLineLabelPosition } from './crossLineLabelPosition'; | ||
export declare class CartesianCrossLine extends BaseProperties implements CrossLine<CartesianCrossLineLabel> { | ||
protected static readonly LINE_LAYER_ZINDEX = Layers.SERIES_CROSSLINE_LINE_ZINDEX; | ||
protected static readonly RANGE_LAYER_ZINDEX = Layers.SERIES_CROSSLINE_RANGE_ZINDEX; | ||
protected static readonly LABEL_LAYER_ZINDEX = Layers.SERIES_LABEL_ZINDEX; | ||
protected static readonly LINE_LAYER_ZINDEX = ZIndexMap.SERIES_CROSSLINE_LINE; | ||
protected static readonly RANGE_LAYER_ZINDEX = ZIndexMap.SERIES_CROSSLINE_RANGE; | ||
protected static readonly LABEL_LAYER_ZINDEX = ZIndexMap.SERIES_LABEL; | ||
static readonly className = "CrossLine"; | ||
@@ -53,4 +53,4 @@ readonly id: string; | ||
direction: ChartAxisDirection; | ||
readonly group: Group; | ||
readonly labelGroup: Group; | ||
readonly group: Layer; | ||
readonly labelGroup: Layer; | ||
private readonly crossLineRange; | ||
@@ -57,0 +57,0 @@ private readonly crossLineLabel; |
import type { AgCartesianAxisPosition } from 'ag-charts-types'; | ||
import type { BBox } from '../../scene/bbox'; | ||
import type { Point } from '../../scene/point'; | ||
import { ChartAxisDirection } from '../chartAxisDirection'; | ||
export type CrossLineLabelPosition = 'top' | 'left' | 'right' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'inside' | 'insideLeft' | 'insideRight' | 'insideTop' | 'insideBottom' | 'insideTopLeft' | 'insideBottomLeft' | 'insideTopRight' | 'insideBottomRight'; | ||
type CoordinatesFnOpts = { | ||
yDirection: boolean; | ||
direction: ChartAxisDirection; | ||
xStart: number; | ||
@@ -12,3 +13,3 @@ xEnd: number; | ||
}; | ||
type CoordinatesFn = ({ yDirection, xStart, xEnd, yStart, yEnd }: CoordinatesFnOpts) => Point; | ||
type CoordinatesFn = ({ direction, xStart, xEnd, yStart, yEnd }: CoordinatesFnOpts) => Point; | ||
type PositionCalcFns = { | ||
@@ -15,0 +16,0 @@ c: CoordinatesFn; |
@@ -1,2 +0,2 @@ | ||
export type ChartType = 'cartesian' | 'polar' | 'hierarchy' | 'topology' | 'flow-proportion' | 'gauge'; | ||
export type ChartType = 'cartesian' | 'polar' | 'hierarchy' | 'topology' | 'flow-proportion' | 'standalone' | 'gauge'; | ||
declare class ChartTypes extends Map<string, ChartType | 'unknown'> { | ||
@@ -9,2 +9,3 @@ get(seriesType: string): "unknown" | ChartType; | ||
isFlowProportion(seriesType: string): boolean; | ||
isStandalone(seriesType: string): boolean; | ||
isGauge(seriesType: string): boolean; | ||
@@ -17,2 +18,3 @@ get seriesTypes(): string[]; | ||
get flowProportionTypes(): string[]; | ||
get standaloneTypes(): string[]; | ||
get gaugeTypes(): string[]; | ||
@@ -19,0 +21,0 @@ } |
@@ -6,3 +6,3 @@ type EnterpriseModuleStub = { | ||
optionsKey: string; | ||
chartTypes: ('cartesian' | 'polar' | 'hierarchy' | 'topology' | 'flow-proportion' | 'gauge')[]; | ||
chartTypes: ('cartesian' | 'polar' | 'hierarchy' | 'topology' | 'flow-proportion' | 'standalone' | 'gauge')[]; | ||
useCount?: number; | ||
@@ -13,3 +13,3 @@ optionsInnerKey?: string; | ||
export declare function isEnterpriseSeriesType(type: string): boolean; | ||
export declare function getEnterpriseSeriesChartTypes(type: string): ("cartesian" | "polar" | "hierarchy" | "topology" | "flow-proportion" | "gauge")[] | undefined; | ||
export declare function getEnterpriseSeriesChartTypes(type: string): ("standalone" | "cartesian" | "polar" | "hierarchy" | "topology" | "flow-proportion" | "gauge")[] | undefined; | ||
export declare function isEnterpriseSeriesTypeLoaded(type: string): boolean; | ||
@@ -21,2 +21,3 @@ export declare function isEnterpriseCartesian(seriesType: string): boolean; | ||
export declare function isEnterpriseFlowProportion(seriesType: string): boolean; | ||
export declare function isEnterpriseStandalone(seriesType: string): boolean; | ||
export declare function isEnterpriseGauge(seriesType: string): boolean; | ||
@@ -23,0 +24,0 @@ type UnknownPackage = { |
@@ -1,2 +0,1 @@ | ||
import type { AgChartOptions } from 'ag-charts-types'; | ||
import type { SeriesModule, SeriesTooltipDefaults } from '../../module/coreModules'; | ||
@@ -10,5 +9,5 @@ import type { SeriesPaletteFactory } from '../../module/coreModulesTypes'; | ||
private readonly themeTemplates; | ||
register(seriesType: NonNullable<SeriesType>, { chartTypes: [chartType], moduleFactory, tooltipDefaults, defaultAxes, themeTemplate, paletteFactory, solo, stackable, groupable, stackedByDefault, swapDefaultAxesCondition, hidden, }: SeriesModule<any, any>): void; | ||
register(seriesType: NonNullable<SeriesType>, { chartTypes: [chartType], moduleFactory, tooltipDefaults, defaultAxes, themeTemplate, paletteFactory, solo, stackable, groupable, stackedByDefault, hidden, }: SeriesModule<any, any>): void; | ||
create(seriesType: SeriesType, moduleContext: ModuleContext): ISeries<any, any>; | ||
cloneDefaultAxes(seriesType: SeriesType): { | ||
cloneDefaultAxes(seriesType: SeriesType, options: {}): { | ||
axes: object[]; | ||
@@ -24,4 +23,3 @@ } | null; | ||
isStackedByDefault(seriesType: SeriesType): boolean; | ||
isDefaultAxisSwapNeeded(options: AgChartOptions): boolean | undefined; | ||
} | ||
export declare const seriesRegistry: SeriesRegistry; |
@@ -36,3 +36,3 @@ import type { AdditionalAnimationOptions, AnimationOptions, AnimationValue, IAnimation } from '../../motion/animation'; | ||
*/ | ||
animate<T extends AnimationValue>({ ...opts }: AnimationOptions<T> & AdditionalAnimationOptions): Animation<T> | undefined; | ||
animate<T extends AnimationValue>(opts: AnimationOptions<T> & AdditionalAnimationOptions): Animation<T> | undefined; | ||
play(): void; | ||
@@ -39,0 +39,0 @@ pause(): void; |
@@ -67,5 +67,6 @@ import type { AgContextMenuOptions } from 'ag-charts-types'; | ||
disableAction(actionId: string): void; | ||
setActionVisiblity(actionId: string, visible: boolean): void; | ||
showAction(actionId: string): void; | ||
hideAction(actionId: string): void; | ||
isDisabled(actionId: string): boolean; | ||
} | ||
export {}; |
@@ -5,3 +5,4 @@ import type { DOMManager } from '../../dom/domManager'; | ||
export { InteractionState }; | ||
export declare const POINTER_INTERACTION_TYPES: readonly ["click", "dblclick", "contextmenu", "hover", "drag-start", "drag", "drag-end", "leave", "enter", "page-left", "wheel"]; | ||
export declare const DRAG_INTERACTION_TYPES: readonly ["drag-start", "drag", "drag-end"]; | ||
export declare const POINTER_INTERACTION_TYPES: readonly ["drag-start", "drag", "drag-end", "click", "dblclick", "contextmenu", "hover", "leave", "enter", "page-left", "wheel"]; | ||
declare const FOCUS_INTERACTION_TYPES: readonly ["blur", "focus"]; | ||
@@ -48,6 +49,5 @@ declare const KEY_INTERACTION_TYPES: readonly ["keydown", "keyup"]; | ||
private readonly eventHandler; | ||
private readonly overlayEventHandler; | ||
private mouseDown; | ||
private touchDown; | ||
private pointerCaptureCanvasElement?; | ||
private dragPreStartElement?; | ||
private dragStartElement?; | ||
@@ -65,5 +65,3 @@ private readonly clickHistory; | ||
getState(): InteractionState; | ||
private processCanvasOverlayEvent; | ||
private processEvent; | ||
private ignoreEvent; | ||
private dispatchEvent; | ||
@@ -70,0 +68,0 @@ private dispatchTypedEvent; |
import { BaseManager } from '../baseManager'; | ||
export declare enum InteractionState { | ||
Default = 16, | ||
ZoomDrag = 8, | ||
Annotations = 4, | ||
ContextMenu = 2, | ||
Animation = 1, | ||
All = 31 | ||
Default = 32, | ||
ZoomDrag = 16, | ||
Annotations = 8, | ||
ContextMenu = 4, | ||
Animation = 2, | ||
AnnotationsSelected = 1, | ||
All = 63 | ||
} | ||
@@ -10,0 +11,0 @@ export declare abstract class InteractionStateListener<TType extends string, TEvent extends { |
@@ -0,6 +1,7 @@ | ||
import type { FocusIndicator } from '../../dom/focusIndicator'; | ||
import type { ChartMode } from '../chartMode'; | ||
import type { InteractionEvent, InteractionManager } from './interactionManager'; | ||
import { InteractionState } from './interactionManager'; | ||
import { InteractionStateListener } from './interactionStateListener'; | ||
import { InteractionState, InteractionStateListener } from './interactionStateListener'; | ||
import { type PreventableEvent } from './preventableEvent'; | ||
export type KeyNavEventType = 'blur' | 'focus' | 'nav-hori' | 'nav-vert' | 'nav-zoom' | 'submit' | 'cancel' | 'delete'; | ||
export type KeyNavEventType = 'blur' | 'focus' | 'nav-hori' | 'nav-vert' | 'nav-zoom' | 'submit' | 'undo' | 'redo'; | ||
export type KeyNavEvent<T extends KeyNavEventType = KeyNavEventType> = PreventableEvent & { | ||
@@ -12,12 +13,10 @@ type: T; | ||
export declare class KeyNavManager extends InteractionStateListener<KeyNavEventType, KeyNavEvent> { | ||
readonly focusIndicator: FocusIndicator; | ||
readonly interactionManager: InteractionManager; | ||
private hasBrowserFocus; | ||
private isMouseBlurred; | ||
private isClicking; | ||
constructor(interactionManager: InteractionManager); | ||
private previousInputDevice; | ||
constructor(focusIndicator: FocusIndicator, interactionManager: InteractionManager, mode: ChartMode); | ||
protected getState(): InteractionState; | ||
destroy(): void; | ||
private onClickStart; | ||
private onClickStop; | ||
private mouseBlur; | ||
private onClick; | ||
private onMouse; | ||
private onBlur; | ||
@@ -24,0 +23,0 @@ private onFocus; |
@@ -1,2 +0,1 @@ | ||
import type { FocusIndicator } from '../../dom/focusIndicator'; | ||
import { Node } from '../../scene/node'; | ||
@@ -28,3 +27,2 @@ import type { InteractionManager, PointerInteractionEvent, PointerInteractionTypes } from './interactionManager'; | ||
private readonly interactionManager; | ||
private readonly focusIndicator; | ||
private readonly debug; | ||
@@ -37,10 +35,10 @@ private current?; | ||
private readonly allRegionsListeners; | ||
constructor(interactionManager: InteractionManager, focusIndicator: FocusIndicator); | ||
constructor(interactionManager: InteractionManager); | ||
destroy(): void; | ||
addRegion(name: RegionName, ...nodes: RegionNodeType[]): { | ||
addListener<T extends "click" | "contextmenu" | "dblclick" | "drag" | "wheel" | "hover" | "drag-start" | "drag-end" | "leave" | "enter" | "page-left">(type: T, handler: (event: TypeInfo[T]) => void, triggeringStates?: InteractionState): () => void; | ||
addListener<T extends "click" | "contextmenu" | "dblclick" | "drag" | "wheel" | "drag-start" | "drag-end" | "hover" | "leave" | "enter" | "page-left">(type: T, handler: (event: TypeInfo[T]) => void, triggeringStates?: InteractionState): () => void; | ||
}; | ||
updateRegion(name: RegionName, ...nodes: RegionNodeType[]): void; | ||
getRegion(name: RegionName): { | ||
addListener<T extends "click" | "contextmenu" | "dblclick" | "drag" | "wheel" | "hover" | "drag-start" | "drag-end" | "leave" | "enter" | "page-left">(type: T, handler: (event: TypeInfo[T]) => void, triggeringStates?: InteractionState): () => void; | ||
addListener<T extends "click" | "contextmenu" | "dblclick" | "drag" | "wheel" | "drag-start" | "drag-end" | "hover" | "leave" | "enter" | "page-left">(type: T, handler: (event: TypeInfo[T]) => void, triggeringStates?: InteractionState): () => void; | ||
}; | ||
@@ -47,0 +45,0 @@ listenAll<T extends RegionEvent['type']>(type: T, handler: (event: TypeInfo[T]) => void, triggeringStates?: InteractionState): () => void; |
@@ -5,13 +5,7 @@ import { BBox } from '../../scene/bbox'; | ||
export declare enum REGIONS { | ||
TITLE = "title", | ||
SUBTITLE = "subtitle", | ||
FOOTNOTE = "footnote", | ||
LEGEND = "legend", | ||
NAVIGATOR = "navigator", | ||
PAGINATION = "pagination", | ||
ROOT = "root", | ||
SERIES = "series", | ||
HORIZONTAL_AXES = "horizontal-axes", | ||
VERTICAL_AXES = "vertical-axes", | ||
TOOLBAR = "toolbar" | ||
VERTICAL_AXES = "vertical-axes" | ||
} | ||
@@ -18,0 +12,0 @@ export type RegionName = `${REGIONS}`; |
@@ -33,8 +33,7 @@ import { BaseManager } from '../baseManager'; | ||
}; | ||
waitForDataProcess(timeout?: number): Promise<void>; | ||
}; | ||
export declare class SyncManager extends BaseManager { | ||
protected chart: ChartLike; | ||
static chartsGroups: Map<GroupId, Set<ChartLike>>; | ||
static DEFAULT_GROUP: symbol; | ||
private static readonly chartsGroups; | ||
private static readonly DEFAULT_GROUP; | ||
constructor(chart: ChartLike); | ||
@@ -41,0 +40,0 @@ subscribe(groupId?: GroupId): this; |
@@ -42,5 +42,5 @@ import type { AgIconName, AgToolbarOptions } from 'ag-charts-types'; | ||
id: string; | ||
label?: string | undefined; | ||
icon?: AgIconName | undefined; | ||
fill?: string | undefined; | ||
label?: string; | ||
icon?: AgIconName; | ||
fill?: string; | ||
} | ||
@@ -47,0 +47,0 @@ export interface ToolbarButtonMovedEvent<T = any> extends ToolbarBaseEvent<'button-moved'> { |
import type { DOMManager } from '../../dom/domManager'; | ||
import type { ErrorBoundSeriesNodeDatum, SeriesNodeDatum } from '../series/seriesTypes'; | ||
import type { Tooltip, TooltipContent, TooltipMeta } from '../tooltip/tooltip'; | ||
import { type TooltipPointerEvent } from '../tooltip/tooltip'; | ||
import type { Tooltip, TooltipContent, TooltipMeta, TooltipPointerEvent } from '../tooltip/tooltip'; | ||
/** | ||
@@ -23,3 +22,3 @@ * Manages the tooltip HTML an element. Tracks the requested HTML from distinct dependents and | ||
private applyStates; | ||
static makeTooltipMeta(event: TooltipPointerEvent<'hover' | 'drag' | 'keyboard'>, datum: SeriesNodeDatum & Pick<ErrorBoundSeriesNodeDatum, 'yBar'>): TooltipMeta; | ||
static makeTooltipMeta(event: TooltipPointerEvent<'hover' | 'click' | 'dblclick' | 'keyboard'>, datum: SeriesNodeDatum & Pick<ErrorBoundSeriesNodeDatum, 'yBar'>): TooltipMeta; | ||
} |
@@ -68,3 +68,3 @@ import type { AgChartLegendClickEvent, AgChartLegendDoubleClickEvent, AgChartLegendLabelFormatterParams, AgChartLegendListeners, AgChartLegendOrientation, AgChartLegendPosition, FontStyle, FontWeight, Formatter } from 'ag-charts-types'; | ||
private readonly itemSelection; | ||
private readonly spriteRenderer; | ||
private spriteRenderer; | ||
private readonly oldSize; | ||
@@ -100,5 +100,7 @@ private pages; | ||
private readonly destroyFns; | ||
private proxyLegendDirty; | ||
private readonly proxyLegendToolbar; | ||
private readonly proxyLegendPagination; | ||
private readonly proxyLegendItemDescription; | ||
private readonly proxyLegendToolbarDestroyFns; | ||
private proxyPrevButton?; | ||
@@ -110,2 +112,3 @@ private proxyNextButton?; | ||
private initLegendItemToolbar; | ||
private onDataUpdate; | ||
onMarkerShapeChange(): void; | ||
@@ -149,17 +152,16 @@ private getOrientation; | ||
private getMarkerStyles; | ||
private getDatumForPoint; | ||
private computePagedBBox; | ||
private findNode; | ||
private contextToggleVisibility; | ||
private contextToggleOtherSeries; | ||
private checkContextClick; | ||
private checkLegendClick; | ||
private onContextClick; | ||
private onClick; | ||
private getVisibleItemCount; | ||
private doClick; | ||
private checkLegendDoubleClick; | ||
private onDoubleClick; | ||
private doDoubleClick; | ||
private handleLegendMouseMove; | ||
private doHover; | ||
private handleLegendMouseExit; | ||
private toTooltipMeta; | ||
private onHover; | ||
private onLeave; | ||
private updateHighlight; | ||
private handleLegendMouseEnter; | ||
private onLocaleChanged; | ||
@@ -166,0 +168,0 @@ private getItemAriaText; |
@@ -18,2 +18,3 @@ import type { FontStyle, FontWeight } from 'ag-charts-types'; | ||
destroy(): void; | ||
destroyProxyButton(): void; | ||
proxyButton?: ListSwitch; | ||
@@ -20,0 +21,0 @@ pageIndex: number; |
@@ -11,3 +11,3 @@ import type { AgChartOptions } from 'ag-charts-types'; | ||
changes: ({ | ||
opts: import("ag-charts-types").AgCartesianSeriesOptions | import("ag-charts-types").AgPolarSeriesOptions | import("ag-charts-types").AgHierarchySeriesOptions | import("ag-charts-types").AgTopologySeriesOptions | import("ag-charts-types").AgFlowProportionSeriesOptions; | ||
opts: import("ag-charts-types").AgCartesianSeriesOptions | import("ag-charts-types").AgPolarSeriesOptions | import("ag-charts-types").AgHierarchySeriesOptions | import("ag-charts-types").AgTopologySeriesOptions | import("ag-charts-types").AgFlowProportionSeriesOptions | import("ag-charts-types").AgStandaloneSeriesOptions; | ||
idx: number; | ||
@@ -18,3 +18,3 @@ status: "add"; | ||
} | { | ||
opts: import("ag-charts-types").AgCartesianSeriesOptions | import("ag-charts-types").AgPolarSeriesOptions | import("ag-charts-types").AgHierarchySeriesOptions | import("ag-charts-types").AgTopologySeriesOptions | import("ag-charts-types").AgFlowProportionSeriesOptions; | ||
opts: import("ag-charts-types").AgCartesianSeriesOptions | import("ag-charts-types").AgPolarSeriesOptions | import("ag-charts-types").AgHierarchySeriesOptions | import("ag-charts-types").AgTopologySeriesOptions | import("ag-charts-types").AgFlowProportionSeriesOptions | import("ag-charts-types").AgStandaloneSeriesOptions; | ||
series: S; | ||
@@ -25,3 +25,3 @@ diff: any; | ||
} | { | ||
opts: import("ag-charts-types").AgCartesianSeriesOptions | import("ag-charts-types").AgPolarSeriesOptions | import("ag-charts-types").AgHierarchySeriesOptions | import("ag-charts-types").AgTopologySeriesOptions | import("ag-charts-types").AgFlowProportionSeriesOptions; | ||
opts: import("ag-charts-types").AgCartesianSeriesOptions | import("ag-charts-types").AgPolarSeriesOptions | import("ag-charts-types").AgHierarchySeriesOptions | import("ag-charts-types").AgTopologySeriesOptions | import("ag-charts-types").AgFlowProportionSeriesOptions | import("ag-charts-types").AgStandaloneSeriesOptions; | ||
series: S; | ||
@@ -32,3 +32,3 @@ diff: any; | ||
} | { | ||
opts: import("ag-charts-types").AgCartesianSeriesOptions | import("ag-charts-types").AgPolarSeriesOptions | import("ag-charts-types").AgHierarchySeriesOptions | import("ag-charts-types").AgTopologySeriesOptions | import("ag-charts-types").AgFlowProportionSeriesOptions; | ||
opts: import("ag-charts-types").AgCartesianSeriesOptions | import("ag-charts-types").AgPolarSeriesOptions | import("ag-charts-types").AgHierarchySeriesOptions | import("ag-charts-types").AgTopologySeriesOptions | import("ag-charts-types").AgFlowProportionSeriesOptions | import("ag-charts-types").AgStandaloneSeriesOptions; | ||
series: S; | ||
@@ -35,0 +35,0 @@ idx: number; |
@@ -1,5 +0,4 @@ | ||
import type { AgCartesianChartOptions, AgCartesianSeriesOptions, AgFlowProportionChartOptions, AgFlowProportionSeriesOptions, AgGaugeChartOptions, AgGaugeOptions, AgHierarchyChartOptions, AgHierarchySeriesOptions, AgPolarChartOptions, AgPolarSeriesOptions, AgTopologyChartOptions, AgTopologySeriesOptions } from 'ag-charts-types'; | ||
import type { AgChartOptions } from 'ag-charts-types'; | ||
import type { AgCartesianChartOptions, AgCartesianSeriesOptions, AgChartOptions, AgFlowProportionChartOptions, AgFlowProportionSeriesOptions, AgGaugeChartOptions, AgGaugeOptions, AgHierarchyChartOptions, AgHierarchySeriesOptions, AgPolarChartOptions, AgPolarSeriesOptions, AgStandaloneChartOptions, AgStandaloneSeriesOptions, AgTopologyChartOptions, AgTopologySeriesOptions } from 'ag-charts-types'; | ||
export type AxesOptionsTypes = NonNullable<AgCartesianChartOptions['axes']>[number]; | ||
export type SeriesOptionsTypes = AgCartesianSeriesOptions | AgPolarSeriesOptions | AgHierarchySeriesOptions | AgTopologySeriesOptions | AgFlowProportionSeriesOptions | AgGaugeOptions; | ||
export type SeriesOptionsTypes = AgCartesianSeriesOptions | AgPolarSeriesOptions | AgHierarchySeriesOptions | AgTopologySeriesOptions | AgFlowProportionSeriesOptions | AgStandaloneSeriesOptions | AgGaugeOptions; | ||
export type SeriesType = SeriesOptionsTypes['type']; | ||
@@ -10,3 +9,3 @@ export declare function optionsType(input: { | ||
}[]; | ||
}): NonNullable<SeriesType>; | ||
}): SeriesType; | ||
export declare function isAgCartesianChartOptions(input: AgChartOptions): input is AgCartesianChartOptions; | ||
@@ -17,2 +16,3 @@ export declare function isAgPolarChartOptions(input: AgChartOptions): input is AgPolarChartOptions; | ||
export declare function isAgFlowProportionChartOptions(input: AgChartOptions): input is AgFlowProportionChartOptions; | ||
export declare function isAgStandaloneChartOptions(input: AgChartOptions): input is AgStandaloneChartOptions; | ||
export declare function isAgGaugeChartOptions(input: any): input is AgGaugeChartOptions; | ||
@@ -19,0 +19,0 @@ export declare function isAgPolarChartOptionsWithSeriesBasedLegend(input: AgChartOptions): input is AgPolarChartOptions; |
@@ -5,4 +5,4 @@ import type { MarkerPathMove } from './marker'; | ||
static readonly className = "ArrowUp"; | ||
static moves: MarkerPathMove[]; | ||
static readonly moves: MarkerPathMove[]; | ||
updatePath(): void; | ||
} |
@@ -1,7 +0,6 @@ | ||
import type { MarkerPathMove } from './marker'; | ||
import { Marker } from './marker'; | ||
export declare class Cross extends Marker { | ||
static readonly className = "Cross"; | ||
static moves: MarkerPathMove[]; | ||
private static readonly moves; | ||
updatePath(): void; | ||
} |
@@ -1,7 +0,6 @@ | ||
import type { MarkerPathMove } from './marker'; | ||
import { Marker } from './marker'; | ||
export declare class Diamond extends Marker { | ||
static readonly className = "Diamond"; | ||
static moves: MarkerPathMove[]; | ||
private static readonly moves; | ||
updatePath(): void; | ||
} |
@@ -22,4 +22,4 @@ import { BBox } from '../../scene/bbox'; | ||
export declare class Marker extends Marker_base { | ||
static center: Point; | ||
static readonly center: Point; | ||
} | ||
export {}; |
import { Marker } from './marker'; | ||
export declare class Pin extends Marker { | ||
static readonly className = "MapPin"; | ||
static center: { | ||
static readonly center: { | ||
x: number; | ||
@@ -6,0 +6,0 @@ y: number; |
@@ -1,7 +0,6 @@ | ||
import type { MarkerPathMove } from './marker'; | ||
import { Marker } from './marker'; | ||
export declare class Plus extends Marker { | ||
static readonly className = "Plus"; | ||
static moves: MarkerPathMove[]; | ||
private static readonly moves; | ||
updatePath(): void; | ||
} |
@@ -1,7 +0,6 @@ | ||
import type { MarkerPathMove } from './marker'; | ||
import { Marker } from './marker'; | ||
export declare class Triangle extends Marker { | ||
static readonly className = "Triangle"; | ||
static moves: MarkerPathMove[]; | ||
private static readonly moves; | ||
updatePath(): void; | ||
} |
@@ -5,9 +5,9 @@ import type { ModuleInstance } from '../module/baseModule'; | ||
import { ModuleMap } from '../module/moduleMap'; | ||
import type { ChartLegend, ChartLegendType } from './legendDatum'; | ||
import type { ChartLegend } from './legendDatum'; | ||
export declare class ModulesManager extends ModuleMap<RootModule | LegendModule, ModuleInstance, ModuleContext> { | ||
applyOptions(options: object): void; | ||
legends(): Generator<{ | ||
legendType: ChartLegendType; | ||
legendType: import("./legendDatum").ChartLegendType; | ||
legend: ChartLegend; | ||
}, void, unknown>; | ||
} |
@@ -37,2 +37,3 @@ import type { LayoutContext, ModuleInstance } from '../../module/baseModule'; | ||
private onHover; | ||
private updateCursor; | ||
private onDragStart; | ||
@@ -39,0 +40,0 @@ private onDrag; |
@@ -6,4 +6,4 @@ import { BBox } from '../../../scene/bbox'; | ||
zIndex: number; | ||
protected centerX: number; | ||
protected centerY: number; | ||
private centerX; | ||
private centerY; | ||
width: number; | ||
@@ -10,0 +10,0 @@ height: number; |
import { BBox } from '../../../scene/bbox'; | ||
import { Group } from '../../../scene/group'; | ||
import { Layer } from '../../../scene/layer'; | ||
import type { Node } from '../../../scene/node'; | ||
export declare class RangeSelector extends Group { | ||
export declare class RangeSelector extends Layer { | ||
private readonly background; | ||
@@ -6,0 +7,0 @@ private x; |
@@ -6,4 +6,2 @@ import type { AgChartLegendOrientation, FontStyle, FontWeight } from 'ag-charts-types'; | ||
import { ChartUpdateType } from '../chartUpdateType'; | ||
import type { CursorManager } from '../interaction/cursorManager'; | ||
import type { RegionManager } from '../interaction/regionManager'; | ||
import type { Marker } from '../marker/marker'; | ||
@@ -39,4 +37,2 @@ import { type MarkerShape } from '../marker/util'; | ||
private readonly pageUpdateCallback; | ||
private readonly regionManager; | ||
private readonly cursorManager; | ||
static readonly className = "Pagination"; | ||
@@ -53,3 +49,3 @@ readonly id: string; | ||
private readonly destroyFns; | ||
constructor(chartUpdateCallback: (type: ChartUpdateType) => void, pageUpdateCallback: (newPage: number) => void, regionManager: RegionManager, cursorManager: CursorManager); | ||
constructor(chartUpdateCallback: (type: ChartUpdateType) => void, pageUpdateCallback: (newPage: number) => void); | ||
destroy(): void; | ||
@@ -86,7 +82,6 @@ totalPages: number; | ||
private enableOrDisableButtons; | ||
clickNext(): void; | ||
clickPrevious(): void; | ||
setPage(pageNumber: number): void; | ||
private onPaginationClick; | ||
private onPaginationMouseMove; | ||
getCursor(node: 'previous' | 'next'): "pointer" | undefined; | ||
onClick(event: MouseEvent, node: 'previous' | 'next'): void; | ||
onMouseHover(node: 'previous' | 'next' | undefined): void; | ||
private onPaginationChanged; | ||
@@ -93,0 +88,0 @@ private incrementPage; |
@@ -1,2 +0,1 @@ | ||
import type { FontStyle, FontWeight } from 'ag-charts-types'; | ||
import type { NodeUpdateState } from '../../../motion/fromToMotion'; | ||
@@ -48,12 +47,3 @@ import type { Point, SizedPoint } from '../../../scene/point'; | ||
readonly itemId: any; | ||
readonly label?: { | ||
readonly text: string; | ||
readonly fontStyle?: FontStyle; | ||
readonly fontWeight?: FontWeight; | ||
readonly fontSize: number; | ||
readonly fontFamily: string; | ||
readonly textAlign: CanvasTextAlign; | ||
readonly textBaseline: CanvasTextBaseline; | ||
readonly fill?: string; | ||
}; | ||
readonly labelText: string; | ||
} | ||
@@ -60,0 +50,0 @@ export interface AreaSeriesNodeDataContext extends CartesianSeriesNodeDataContext<MarkerSelectionDatum, LabelSelectionDatum> { |
@@ -1,2 +0,1 @@ | ||
import type { FontStyle, FontWeight } from 'ag-charts-types'; | ||
import type { ModuleContext } from '../../../module/moduleContext'; | ||
@@ -19,9 +18,4 @@ import { BBox } from '../../../scene/bbox'; | ||
readonly text: string; | ||
readonly fontStyle?: FontStyle; | ||
readonly fontWeight?: FontWeight; | ||
readonly fontSize: number; | ||
readonly fontFamily: string; | ||
readonly textAlign: CanvasTextAlign; | ||
readonly textBaseline: CanvasTextBaseline; | ||
readonly fill?: string; | ||
} | ||
@@ -53,2 +47,3 @@ interface BarNodeDatum extends CartesianSeriesNodeDatum, ErrorBoundSeriesNodeDatum, Readonly<Point> { | ||
properties: BarSeriesProperties; | ||
get pickModeAxis(): "main" | undefined; | ||
constructor(moduleCtx: ModuleContext); | ||
@@ -55,0 +50,0 @@ private crossFilteringEnabled; |
@@ -8,2 +8,3 @@ import type { AgBarSeriesItemStylerParams, AgBarSeriesLabelFormatterParams, AgBarSeriesLabelPlacement, AgBarSeriesOptions, AgBarSeriesStyle, AgBarSeriesTooltipRendererParams, Styler } from 'ag-charts-types'; | ||
placement: AgBarSeriesLabelPlacement; | ||
padding: number; | ||
} | ||
@@ -31,3 +32,4 @@ export declare class BarSeriesProperties extends AbstractBarSeriesProperties<AgBarSeriesOptions> { | ||
readonly tooltip: SeriesTooltip<AgBarSeriesTooltipRendererParams<any>>; | ||
sparklineMode: boolean; | ||
} | ||
export {}; |
@@ -43,3 +43,3 @@ import type { AgBarSeriesItemStylerParams, AgBarSeriesStyle, Styler } from 'ag-charts-types'; | ||
export declare function checkCrisp(scale: Scale<any, any> | undefined, visibleRange: number[] | undefined, smallestDataInterval: number | undefined, largestDataInterval: number | undefined): boolean; | ||
type InitialPosition<T> = { | ||
export type InitialPosition<T> = { | ||
isVertical: boolean; | ||
@@ -46,0 +46,0 @@ mode: 'normal' | 'fade'; |
@@ -29,2 +29,3 @@ import type { AgSeriesMarkerStyle } from 'ag-charts-types'; | ||
private readonly colorScale; | ||
get pickModeAxis(): "main-category"; | ||
constructor(moduleCtx: ModuleContext); | ||
@@ -31,0 +32,0 @@ processData(dataController: DataController): Promise<void>; |
@@ -1,2 +0,2 @@ | ||
import type { AgHistogramSeriesLabelFormatterParams, AgHistogramSeriesOptions, AgHistogramSeriesTooltipRendererParams, FontStyle, FontWeight } from 'ag-charts-types'; | ||
import type { AgHistogramSeriesLabelFormatterParams, AgHistogramSeriesOptions, AgHistogramSeriesTooltipRendererParams } from 'ag-charts-types'; | ||
import type { BBox } from '../../../scene/bbox'; | ||
@@ -29,7 +29,2 @@ import { DropShadow } from '../../../scene/dropShadow'; | ||
readonly y: number; | ||
readonly fontStyle?: FontStyle; | ||
readonly fontWeight?: FontWeight; | ||
readonly fontSize: number; | ||
readonly fontFamily: string; | ||
readonly fill?: string; | ||
}; | ||
@@ -36,0 +31,0 @@ } |
@@ -10,3 +10,3 @@ import type { AgChartLabelOptions } from 'ag-charts-types'; | ||
}; | ||
type LabelPlacement = 'start' | 'end' | 'inside' | 'outside'; | ||
export type BarLabelPlacement = 'inside-center' | 'inside-start' | 'inside-end' | 'outside-start' | 'outside-end'; | ||
type LabelDatum = Point & { | ||
@@ -18,5 +18,5 @@ text: string; | ||
export declare function updateLabelNode(textNode: Text, label: AgChartLabelOptions<any, any>, labelDatum?: LabelDatum): void; | ||
export declare function adjustLabelPlacement({ isPositive, isVertical, placement, padding, rect, }: { | ||
placement: LabelPlacement; | ||
isPositive: boolean; | ||
export declare function adjustLabelPlacement({ isUpward, isVertical, placement, padding, rect, }: { | ||
placement: BarLabelPlacement; | ||
isUpward: boolean; | ||
isVertical: boolean; | ||
@@ -23,0 +23,0 @@ padding?: number; |
@@ -24,2 +24,3 @@ import type { ModuleContext } from '../../../module/moduleContext'; | ||
properties: LineSeriesProperties; | ||
get pickModeAxis(): "main-category"; | ||
constructor(moduleCtx: ModuleContext); | ||
@@ -26,0 +27,0 @@ processData(dataController: DataController): Promise<void>; |
@@ -1,2 +0,2 @@ | ||
import type { AgLineSeriesLabelFormatterParams, AgLineSeriesOptions, AgLineSeriesOptionsKeys, AgLineSeriesTooltipRendererParams, FontStyle, FontWeight } from 'ag-charts-types'; | ||
import type { AgLineSeriesLabelFormatterParams, AgLineSeriesOptions, AgLineSeriesOptionsKeys, AgLineSeriesTooltipRendererParams } from 'ag-charts-types'; | ||
import { Label } from '../../label'; | ||
@@ -12,12 +12,3 @@ import { SeriesMarker } from '../seriesMarker'; | ||
}; | ||
readonly label?: { | ||
readonly text: string; | ||
readonly fontStyle?: FontStyle; | ||
readonly fontWeight?: FontWeight; | ||
readonly fontSize: number; | ||
readonly fontFamily: string; | ||
readonly textAlign: CanvasTextAlign; | ||
readonly textBaseline: CanvasTextBaseline; | ||
readonly fill?: string; | ||
}; | ||
readonly labelText?: string; | ||
readonly selected: boolean | undefined; | ||
@@ -24,0 +15,0 @@ } |
@@ -80,3 +80,3 @@ import { type FromToFns, type NodeUpdateState } from '../../../motion/fromToMotion'; | ||
translationY: number | undefined; | ||
phase: "none" | "trailing" | "initial" | "remove" | "update" | "add" | "end"; | ||
phase: "none" | "trailing" | "add" | "initial" | "remove" | "update" | "end"; | ||
}; | ||
@@ -89,3 +89,3 @@ toFn: (_marker: import("../../marker/marker").Marker, datum: PathNodeDatumLike) => { | ||
opacity: number; | ||
phase: "none" | "trailing" | "initial" | "remove" | "update" | "add" | "end"; | ||
phase: "none" | "trailing" | "add" | "initial" | "remove" | "update" | "end"; | ||
}; | ||
@@ -92,0 +92,0 @@ }; |
@@ -41,3 +41,3 @@ import type { NodeUpdateState } from '../../../motion/fromToMotion'; | ||
translationY: number | undefined; | ||
phase: "none" | "trailing" | "initial" | "remove" | "update" | "add" | "end"; | ||
phase: "none" | "trailing" | "add" | "initial" | "remove" | "update" | "end"; | ||
}; | ||
@@ -50,3 +50,3 @@ toFn: (_marker: Marker, datum: PathNodeDatumLike) => { | ||
opacity: number; | ||
phase: "none" | "trailing" | "initial" | "remove" | "update" | "add" | "end"; | ||
phase: "none" | "trailing" | "add" | "initial" | "remove" | "update" | "end"; | ||
}; | ||
@@ -53,0 +53,0 @@ }; |
@@ -55,4 +55,4 @@ import type { Point } from '../../../scene/point'; | ||
clipScalingX: number; | ||
clipMode: undefined; | ||
clip: boolean; | ||
}; | ||
export declare function updateClipPath({ nodeDataDependencies }: NodeDataDependant, path: Path): void; |
@@ -14,3 +14,2 @@ import type { Group } from '../../../scene/group'; | ||
}; | ||
export declare function childrenIter<TNode extends Node = Node>(parent: Node): Iterable<TNode>; | ||
export declare function addHitTestersToQuadtree<TNode extends QuadtreeCompatibleNode, TDatum extends SeriesNodeDatum>(quadtree: QuadtreeNearest<TDatum>, hitTesters: Iterable<TNode>): void; | ||
@@ -17,0 +16,0 @@ type SeriesWithQuadtreeNearest<TDatum extends SeriesNodeDatum> = { |
@@ -23,2 +23,3 @@ import type { ModuleContext } from '../../../module/moduleContext'; | ||
readonly colorScale: ColorScale; | ||
get pickModeAxis(): "main-category"; | ||
constructor(moduleCtx: ModuleContext); | ||
@@ -25,0 +26,0 @@ processData(dataController: DataController): Promise<void>; |
import type { TextAlign, VerticalAlign } from 'ag-charts-types'; | ||
import type { ChartAxisDirection } from '../chartAxisDirection'; | ||
import type { Series } from './series'; | ||
@@ -20,2 +21,3 @@ export interface GaugeSeries extends Series<any, any> { | ||
readonly thickness: number; | ||
computeInset(direction: ChartAxisDirection, ticks: number[]): number; | ||
} |
@@ -34,6 +34,3 @@ import type { ModuleContext } from '../../../module/moduleContext'; | ||
readonly children: HierarchyNode<TDatum>[]; | ||
static Walk: { | ||
PreOrder: number; | ||
PostOrder: number; | ||
}; | ||
private static readonly Walk; | ||
readonly midPoint: Point; | ||
@@ -40,0 +37,0 @@ 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>[]); |
import type { AgDonutSeriesStyle } from 'ag-charts-types'; | ||
import type { ModuleContext } from '../../../module/moduleContext'; | ||
import { BBox } from '../../../scene/bbox'; | ||
import { Group, TranslatableGroup } from '../../../scene/group'; | ||
import { Group } from '../../../scene/group'; | ||
import { TranslatableLayer } from '../../../scene/layer'; | ||
import type { Point } from '../../../scene/point'; | ||
@@ -74,3 +75,3 @@ import { Selection } from '../../../scene/selection'; | ||
private readonly calloutLabelSelection; | ||
readonly backgroundGroup: TranslatableGroup; | ||
readonly backgroundGroup: TranslatableLayer; | ||
readonly zerosumRingsGroup: Group; | ||
@@ -87,2 +88,3 @@ readonly zerosumOuterRing: Circle; | ||
seriesItemEnabled: boolean[]; | ||
legendItemEnabled: boolean[]; | ||
private oldTitle?; | ||
@@ -143,2 +145,3 @@ surroundingRadius?: number; | ||
protected toggleSeriesItem(itemId: number, enabled: boolean): void; | ||
setLegendState(enabledItems: boolean[]): void; | ||
toggleOtherSeriesItems(legendItemName: string, enabled: boolean): void; | ||
@@ -145,0 +148,0 @@ animateEmptyUpdateReady(_data?: PolarAnimationData): void; |
import type { AgPieSeriesStyle } from 'ag-charts-types'; | ||
import type { ModuleContext } from '../../../module/moduleContext'; | ||
import { BBox } from '../../../scene/bbox'; | ||
import { Group, TranslatableGroup } from '../../../scene/group'; | ||
import { Group } from '../../../scene/group'; | ||
import { TranslatableLayer } from '../../../scene/layer'; | ||
import type { Point } from '../../../scene/point'; | ||
@@ -71,3 +72,3 @@ import { Sector } from '../../../scene/shape/sector'; | ||
private readonly calloutLabelSelection; | ||
readonly backgroundGroup: TranslatableGroup; | ||
readonly backgroundGroup: TranslatableLayer; | ||
readonly zerosumRingsGroup: Group; | ||
@@ -77,2 +78,3 @@ readonly zerosumOuterRing: Circle; | ||
seriesItemEnabled: boolean[]; | ||
legendItemEnabled: boolean[]; | ||
private oldTitle?; | ||
@@ -125,2 +127,3 @@ surroundingRadius?: number; | ||
protected toggleSeriesItem(itemId: number, enabled: boolean): void; | ||
setLegendState(enabledItems: boolean[]): void; | ||
toggleOtherSeriesItems(legendItemName: string, enabled: boolean): void; | ||
@@ -127,0 +130,0 @@ animateEmptyUpdateReady(_data?: PolarAnimationData): void; |
@@ -33,8 +33,6 @@ import type { AgChartLabelFormatterParams, AgChartLabelOptions, AgSeriesMarkerStyle, AgSeriesMarkerStylerParams, ISeriesMarker } from 'ag-charts-types'; | ||
EXACT_SHAPE_MATCH = 0, | ||
/** Pick matches by nearest category/X-axis value, then distance within that category/X-value. */ | ||
NEAREST_BY_MAIN_AXIS_FIRST = 1, | ||
/** Pick matches by nearest category value, then distance within that category. */ | ||
NEAREST_BY_MAIN_CATEGORY_AXIS_FIRST = 2, | ||
/** Pick matches based upon distance to ideal position */ | ||
NEAREST_NODE = 3 | ||
NEAREST_NODE = 1, | ||
/** Pick matches based upon distance from axis */ | ||
AXIS_ALIGNED = 2 | ||
} | ||
@@ -106,3 +104,3 @@ export type SeriesNodePickIntent = 'tooltip' | 'highlight' | 'highlight-tooltip' | 'context-menu' | 'event'; | ||
useLabelLayer?: boolean; | ||
pickModes?: SeriesNodePickMode[]; | ||
pickModes: SeriesNodePickMode[]; | ||
contentGroupVirtual?: boolean; | ||
@@ -117,2 +115,3 @@ directionKeys?: SeriesDirectionKeysMapping<TProps>; | ||
pickModes: SeriesNodePickMode[]; | ||
get pickModeAxis(): 'main' | 'main-category' | undefined; | ||
seriesGrouping?: SeriesGrouping; | ||
@@ -119,0 +118,0 @@ protected static readonly highlightedZIndex = 1000000000000; |
@@ -10,19 +10,69 @@ import type { TranslatableGroup } from '../../scene/group'; | ||
import { type Series } from './series'; | ||
/** Manager that handles all top-down series-area related concerns and state. */ | ||
import type { SeriesProperties } from './seriesProperties'; | ||
import type { SeriesNodeDatum } from './seriesTypes'; | ||
export interface SeriesAreaChartDependencies { | ||
fireEvent<TEvent extends TypedEvent>(event: TEvent): void; | ||
getUpdateType(): ChartUpdateType; | ||
chartType: 'cartesian' | 'polar' | 'hierarchy' | 'topology' | 'flow-proportion' | 'standalone' | 'gauge'; | ||
seriesRoot: TranslatableGroup; | ||
ctx: ChartContext; | ||
tooltip: Tooltip; | ||
highlight: ChartHighlight; | ||
overlays: ChartOverlays; | ||
} | ||
export declare class SeriesAreaManager extends BaseManager { | ||
private readonly ctx; | ||
private readonly chart; | ||
readonly id: string; | ||
private series; | ||
private seriesRect?; | ||
private readonly subManagers; | ||
constructor(chart: { | ||
performUpdateType: ChartUpdateType; | ||
fireEvent<TEvent extends TypedEvent>(event: TEvent): void; | ||
seriesRoot: TranslatableGroup; | ||
}, ctx: ChartContext, chartType: 'cartesian' | 'polar' | 'hierarchy' | 'topology' | 'flow-proportion' | 'gauge', tooltip: Tooltip, highlight: ChartHighlight, overlays: ChartOverlays); | ||
private hoverRect?; | ||
private readonly ariaLabel; | ||
private readonly highlight; | ||
private readonly tooltip; | ||
/** | ||
* A11y Requirements for Tooltip/Highlight (see AG-13051 for details): | ||
* | ||
* - When the series-area is blurred, always the mouse to update the tooltip/highlight. | ||
* | ||
* - When the series-area receives a `focus` event, use `:focus-visible` to guess the input device. | ||
* (this is decided by the browser). | ||
* | ||
* - For keyboard users, `focus` and `keydown` events always updates & shows the tooltip/highlight on | ||
* the currently (or newly) focused datum. | ||
* | ||
* - For keyboard users, `mousemove` events update the tooltip/highlight iff `pickNode` finds a match | ||
* for the mouse event offsets. | ||
*/ | ||
private hoverDevice; | ||
private readonly focus; | ||
constructor(chart: SeriesAreaChartDependencies); | ||
dataChanged(): void; | ||
private preSceneRender; | ||
seriesChanged(series: Series<any, any>[]): void; | ||
private update; | ||
seriesChanged(series: Series<SeriesNodeDatum, SeriesProperties<object>>[]): void; | ||
private layoutComplete; | ||
private onContextMenu; | ||
private onLeave; | ||
private onHover; | ||
private onHoverLikeEvent; | ||
private onClick; | ||
private onFocus; | ||
private onBlur; | ||
private onNavVert; | ||
private onNavHori; | ||
private onSubmit; | ||
private checkSeriesNodeClick; | ||
private refreshFocus; | ||
private handleFocus; | ||
private handleSeriesFocus; | ||
private handleHierarchySeriesFocus; | ||
private updatePickedFocus; | ||
private getDatumAriaText; | ||
private clearHighlight; | ||
private clearTooltip; | ||
private clearAll; | ||
private readonly hoverScheduler; | ||
private handleHoverHighlight; | ||
private handleHoverTooltip; | ||
private changeHighlightDatum; | ||
} |
@@ -7,23 +7,22 @@ export type SeriesGrouping = { | ||
}; | ||
export type SeriesGroupingResult = { | ||
visibleGroupCount: number; | ||
visibleSameStackCount: number; | ||
index: number; | ||
}; | ||
type SeriesIdLike = { | ||
internalId: string; | ||
type: string; | ||
}; | ||
type SeriesLike = SeriesIdLike & { | ||
seriesGrouping?: SeriesGrouping; | ||
visible: boolean; | ||
}; | ||
export declare class SeriesStateManager { | ||
private readonly groups; | ||
registerSeries({ id, seriesGrouping, visible, type, }: { | ||
id: string; | ||
seriesGrouping?: SeriesGrouping; | ||
visible: boolean; | ||
type: string; | ||
}): void; | ||
deregisterSeries({ id, type }: { | ||
id: string; | ||
type: string; | ||
}): void; | ||
getVisiblePeerGroupIndex({ type, seriesGrouping, visible, }: { | ||
type: string; | ||
seriesGrouping?: SeriesGrouping; | ||
visible: boolean; | ||
}): { | ||
visibleGroupCount: number; | ||
visibleSameStackCount: number; | ||
index: number; | ||
}; | ||
registerSeries({ internalId, seriesGrouping, visible, type }: SeriesLike): void; | ||
updateSeries({ internalId, seriesGrouping, visible, type }: SeriesLike): void; | ||
deregisterSeries({ internalId, type }: SeriesIdLike): void; | ||
getVisiblePeerGroupIndex({ type, seriesGrouping, visible }: SeriesLike): SeriesGroupingResult; | ||
} | ||
export {}; |
@@ -35,3 +35,3 @@ /** GeoJSON types based on https://datatracker.ietf.org/doc/html/rfc7946 */ | ||
type: (Geometry | Feature | FeatureCollection)['type']; | ||
bbox?: BBox | undefined; | ||
bbox?: BBox; | ||
} | ||
@@ -38,0 +38,0 @@ export interface Feature extends GeoJsonObject { |
@@ -1,4 +0,4 @@ | ||
import type { AgChartTheme, AgChartThemePalette, AgPaletteColors } from 'ag-charts-types'; | ||
import type { AgChartTheme, AgChartThemePalette, AgPaletteColors, AgPresetOverrides } from 'ag-charts-types'; | ||
import { type PaletteType } from '../../module/coreModulesTypes'; | ||
import { FONT_SIZE, FONT_WEIGHT, POSITION } from './constants'; | ||
import { CARTESIAN_POSITION, FONT_SIZE, FONT_WEIGHT } from './constants'; | ||
import { type DefaultColors } from './defaultColors'; | ||
@@ -13,2 +13,3 @@ export declare class ChartTheme { | ||
readonly config: any; | ||
readonly presets: AgPresetOverrides; | ||
private static getAxisDefaults; | ||
@@ -65,3 +66,3 @@ protected getChartDefaults(): { | ||
legend: { | ||
position: POSITION; | ||
position: CARTESIAN_POSITION; | ||
spacing: number; | ||
@@ -105,7 +106,7 @@ listeners: {}; | ||
enabled: boolean; | ||
darkTheme: string; | ||
darkTheme: boolean; | ||
delay: number; | ||
}; | ||
overlays: { | ||
darkTheme: string; | ||
darkTheme: boolean; | ||
}; | ||
@@ -112,0 +113,0 @@ listeners: {}; |
@@ -12,3 +12,3 @@ export declare enum FONT_SIZE { | ||
} | ||
export declare enum POSITION { | ||
export declare enum CARTESIAN_POSITION { | ||
TOP = "top", | ||
@@ -15,0 +15,0 @@ RIGHT = "right", |
@@ -1,2 +0,4 @@ | ||
export declare const IS_DARK_THEME: string; | ||
export declare const IS_DARK_THEME: boolean; | ||
export declare const IS_COMMUNITY: boolean; | ||
export declare const IS_ENTERPRISE: boolean; | ||
export declare const DEFAULT_FONT_FAMILY: string; | ||
@@ -29,4 +31,5 @@ export declare const DEFAULT_LABEL_COLOUR: string; | ||
export declare const DEFAULT_POLAR_SERIES_STROKE: string; | ||
export declare const DEFAULT_DIVERGING_SERIES_COLOUR_RANGE: string; | ||
export declare const DEFAULT_GAUGE_SERIES_COLOUR_RANGE: string; | ||
export declare const DEFAULT_DIVERGING_SERIES_COLOR_RANGE: string; | ||
export declare const DEFAULT_GAUGE_SERIES_COLOR_RANGE: string; | ||
export declare const DEFAULT_FUNNEL_SERIES_COLOR_RANGE: string; | ||
export declare const DEFAULT_HIERARCHY_FILLS: string; | ||
@@ -38,2 +41,8 @@ export declare const DEFAULT_HIERARCHY_STROKES: string; | ||
export declare const DEFAULT_ANNOTATION_HANDLE_FILL: string; | ||
export declare const DEFAULT_ANNOTATION_STATISTICS_FILL: string; | ||
export declare const DEFAULT_ANNOTATION_STATISTICS_STROKE: string; | ||
export declare const DEFAULT_ANNOTATION_STATISTICS_COLOR: string; | ||
export declare const DEFAULT_ANNOTATION_STATISTICS_DIVIDER_STROKE: string; | ||
export declare const DEFAULT_ANNOTATION_STATISTICS_DOWN_FILL: string; | ||
export declare const DEFAULT_ANNOTATION_STATISTICS_DOWN_STROKE: string; | ||
export declare const DEFAULT_TEXTBOX_FILL: string; | ||
@@ -40,0 +49,0 @@ export declare const DEFAULT_TEXTBOX_STROKE: string; |
@@ -30,6 +30,7 @@ import type { ModuleInstance } from '../../module/baseModule'; | ||
private onLeave; | ||
private toggleNoPointerEvents; | ||
private onGroupChanged; | ||
private onGroupButtonsChanged; | ||
private onLayoutComplete; | ||
private toggleButtonsClass; | ||
private toggleButtonsTransition; | ||
private onPreDomUpdate; | ||
@@ -36,0 +37,0 @@ private onUpdateComplete; |
@@ -7,8 +7,6 @@ import type { AgTooltipRendererResult, InteractionRange, TextWrap } from 'ag-charts-types'; | ||
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 TooltipEventType = 'hover' | 'drag' | 'keyboard'; | ||
type TooltipPositionType = 'pointer' | 'node' | 'top' | 'right' | 'bottom' | 'left' | 'top-left' | 'top-right' | 'bottom-right' | 'bottom-left' | 'sparkline'; | ||
export type TooltipEventType = 'hover' | 'click' | 'dblclick' | 'keyboard'; | ||
export type TooltipPointerEvent<T extends TooltipEventType = TooltipEventType> = PointerOffsets & { | ||
type: T; | ||
relatedElement?: HTMLElement; | ||
targetElement?: HTMLElement; | ||
}; | ||
@@ -15,0 +13,0 @@ export type TooltipMeta = PointerOffsets & { |
@@ -21,3 +21,4 @@ import type { DOMManager } from '../../dom/domManager'; | ||
private onLayoutComplete; | ||
private toggleOverlay; | ||
private showOverlay; | ||
private hideOverlay; | ||
} |
@@ -5,4 +5,8 @@ import type { AgIconName } from 'ag-charts-types'; | ||
import { type Size } from '../util/sizeMonitor'; | ||
declare const DOM_ELEMENT_CLASSES: readonly ["styles", "canvas-center", "canvas", "canvas-proxy", "canvas-overlay"]; | ||
export type DOMElementClass = (typeof DOM_ELEMENT_CLASSES)[number]; | ||
declare const DOM_ELEMENT_CLASSES: readonly ["styles", "canvas", "canvas-center", "canvas-overlay", "canvas-proxy", "series-area"]; | ||
type DOMElementClass = (typeof DOM_ELEMENT_CLASSES)[number]; | ||
type DOMInsertOption = { | ||
where: InsertPosition; | ||
query: string; | ||
}; | ||
type Events = { | ||
@@ -30,3 +34,4 @@ type: 'hidden'; | ||
setTabIndex(tabIndex: number): void; | ||
addEventListenerOnElement<K extends keyof HTMLElementEventMap>(elementType: DOMElementClass, type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): () => void; | ||
updateCanvasLabel(ariaLabel: string): void; | ||
private getEventElement; | ||
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; | ||
@@ -54,7 +59,8 @@ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; | ||
getCursor(): string; | ||
addChild(domElementClass: DOMElementClass, id: string, child?: HTMLElement): HTMLElement; | ||
addChild(domElementClass: DOMElementClass, id: string, child?: HTMLElement, insert?: DOMInsertOption): HTMLElement; | ||
removeChild(domElementClass: DOMElementClass, id: string): void; | ||
incrementDataCounter(name: string): void; | ||
setDataBoolean(name: string, value: boolean): void; | ||
getIconClassNames(icon: AgIconName): string; | ||
} | ||
export {}; |
@@ -6,3 +6,2 @@ import type { AgIconName } from 'ag-charts-types'; | ||
icon?: AgIconName; | ||
altText?: undefined; | ||
}; | ||
@@ -9,0 +8,0 @@ type IconOnly = { |
import { Path } from '../scene/shape/path'; | ||
import type { BBoxValues } from '../util/bboxinterface'; | ||
import type { MenuDevice } from '../util/keynavUtil'; | ||
import type { DOMManager } from './domManager'; | ||
@@ -15,4 +14,5 @@ export declare class FocusIndicator { | ||
private show; | ||
private isShown; | ||
guessDevice(event: Event): MenuDevice; | ||
private getFocusableElement; | ||
overrideFocusVisible(focusVisible: boolean | undefined): void; | ||
isFocusVisible(): boolean; | ||
} |
import type { Direction } from 'ag-charts-types'; | ||
import type { LocaleManager } from '../locale/localeManager'; | ||
import type { BBoxProvider, BBoxValues } from '../util/bboxinterface'; | ||
import { BoundedText } from './boundedText'; | ||
import type { DOMElementClass, DOMManager } from './domManager'; | ||
import type { FocusIndicator } from './focusIndicator'; | ||
import type { DOMManager } from './domManager'; | ||
export type ListSwitch = { | ||
@@ -11,14 +9,14 @@ button: HTMLButtonElement; | ||
}; | ||
type UpdateServiceLike = { | ||
addListener(type: 'update-complete', handler: () => unknown): () => void; | ||
}; | ||
type ElemParams<T extends ProxyElementType> = { | ||
readonly type: T; | ||
readonly id: string; | ||
readonly parent: HTMLElement | DOMElementClass; | ||
readonly parent: HTMLElement | 'beforebegin' | 'afterend'; | ||
}; | ||
type InteractParams<T extends ProxyElementType> = ElemParams<T> & { | ||
readonly focusable: BBoxProvider<BBoxValues>; | ||
readonly tabIndex?: number; | ||
readonly onclick?: (ev: MouseEvent) => void; | ||
readonly ondblclick?: (ev: MouseEvent) => void; | ||
readonly onmouseenter?: (ev: MouseEvent) => void; | ||
readonly onmouseleave?: (ev: MouseEvent) => void; | ||
readonly oncontextmenu?: (ev: MouseEvent) => void; | ||
readonly onchange?: (ev: Event) => void; | ||
@@ -84,9 +82,5 @@ readonly onfocus?: (ev: FocusEvent) => void; | ||
private readonly domManager; | ||
private readonly focusIndicator; | ||
private readonly debugShowDOMProxies; | ||
private focusable?; | ||
private readonly destroyFns; | ||
constructor(updateService: UpdateServiceLike, localeManager: LocaleManager, domManager: DOMManager, focusIndicator: FocusIndicator); | ||
constructor(localeManager: LocaleManager, domManager: DOMManager); | ||
destroy(): void; | ||
private update; | ||
private addLocalisation; | ||
@@ -93,0 +87,0 @@ createProxyContainer<T extends ProxyContainerType>(args: { |
@@ -7,5 +7,6 @@ import * as fromToMotion from './motion/fromToMotion'; | ||
export { Group, ScalableGroup, RotatableGroup, TranslatableGroup } from './scene/group'; | ||
export { Layer, TranslatableLayer } from './scene/layer'; | ||
export { Scene } from './scene/scene'; | ||
export { Node, PointerEvents, RedrawType, SceneChangeDetection } from './scene/node'; | ||
export type { RenderContext } from './scene/node'; | ||
export type { RenderContext, ChildNodeCounts } from './scene/node'; | ||
export { Rotatable, Translatable, Transformable, Scalable } from './scene/transformable'; | ||
@@ -59,3 +60,3 @@ export { Selection } from './scene/selection'; | ||
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">; | ||
NODE_UPDATE_STATE_TO_PHASE_MAPPING: Record<fromToMotion.NodeUpdateState, "none" | "trailing" | "add" | "initial" | "remove" | "update" | "end">; | ||
}; | ||
@@ -62,0 +63,0 @@ export { motion }; |
@@ -6,3 +6,4 @@ import type { AgChartTheme, AgChartThemeName } from 'ag-charts-types'; | ||
export * from './chart/themes/constants'; | ||
export * from './chart/themes/util'; | ||
export * from './module/theme'; | ||
export declare const themes: Record<AgChartThemeName, AgChartTheme>; |
export { AG_CHARTS_LOCALE_EN_US } from 'ag-charts-locale'; | ||
export * from 'ag-charts-types'; | ||
export * as time from './util/time/index'; | ||
export * from './main-modules'; | ||
export { AgCharts } from './api/agCharts'; | ||
@@ -5,0 +6,0 @@ export { VERSION } from './version'; |
export * from './util/array'; | ||
export * from './util/placement'; | ||
export * from './util/validation'; | ||
export * from './util/default'; | ||
@@ -13,5 +11,8 @@ export { extractDecoratedProperties, isDecoratedObject, listDecoratedProperties } from './util/decorator'; | ||
export * from './util/object'; | ||
export * from './util/placement'; | ||
export * from './util/properties'; | ||
export * from './util/proxy'; | ||
export * from './util/format.util'; | ||
export * from './util/search.util'; | ||
export * from './util/stateMachine'; | ||
export * from './util/timeFormatDefaults'; | ||
@@ -23,2 +24,5 @@ export * from './util/textMeasurer'; | ||
export * from './util/type-guards'; | ||
export * from './util/validation'; | ||
export * from './util/vector'; | ||
export * from './util/vector4'; | ||
export * from './module/theme'; | ||
@@ -62,3 +66,3 @@ export * from './module/axisModule'; | ||
export * from './chart/interaction/zoomManager'; | ||
export * from './chart/layers'; | ||
export * from './chart/zIndexMap'; | ||
export * from './chart/series/series'; | ||
@@ -109,3 +113,2 @@ export * from './chart/series/seriesEvents'; | ||
export * as Motion from './motion/easing'; | ||
export * from './util/stateMachine'; | ||
export * from './motion/resetMotion'; | ||
@@ -112,0 +115,0 @@ export * from './motion/fromToMotion'; |
import type { AgCartesianAxisPosition } from 'ag-charts-types'; | ||
import type { ChartAxisDirection } from '../chart/chartAxisDirection'; | ||
import type { Scale } from '../scale/scale'; | ||
import type { Node } from '../scene/node'; | ||
@@ -9,2 +10,3 @@ export interface AxisContext { | ||
position?: AgCartesianAxisPosition; | ||
scale: Scale<any, any, any>; | ||
keys(): string[]; | ||
@@ -17,2 +19,3 @@ seriesKeyProperties(): string[]; | ||
scaleInvertNearest(position: number): any; | ||
scaleStep(): number; | ||
scaleValueFormatter(specifier?: string): ((x: any) => string) | undefined; | ||
@@ -19,0 +22,0 @@ attachLabel(node: Node): void; |
@@ -13,3 +13,3 @@ import type { DataController } from '../chart/data/dataController'; | ||
} | ||
export type ChartTypes = 'cartesian' | 'polar' | 'hierarchy' | 'topology' | 'flow-proportion' | 'gauge'; | ||
export type ChartTypes = 'cartesian' | 'polar' | 'hierarchy' | 'topology' | 'flow-proportion' | 'standalone' | 'gauge'; | ||
export interface BaseModule<T extends ChartTypes = ChartTypes> { | ||
@@ -16,0 +16,0 @@ optionsKey: string; |
@@ -1,3 +0,2 @@ | ||
import type { AgCartesianChartOptions, AgCartesianSeriesOptions, AgChartThemeOverrides, AgFlowProportionSeriesOptions, AgHierarchySeriesOptions, AgLinearGaugeOptions, AgPolarChartOptions, AgPolarSeriesOptions, AgRadialGaugeOptions, AgTopologySeriesOptions } from 'ag-charts-types'; | ||
import type { AgChartOptions } from 'ag-charts-types'; | ||
import type { AgCartesianChartOptions, AgCartesianSeriesOptions, AgChartOptions, AgChartThemeOverrides, AgFlowProportionSeriesOptions, AgHierarchySeriesOptions, AgLinearGaugeOptions, AgPolarChartOptions, AgPolarSeriesOptions, AgRadialGaugeOptions, AgStandaloneSeriesOptions, AgTopologySeriesOptions } from 'ag-charts-types'; | ||
import type { ChartLegend, ChartLegendType } from '../chart/legendDatum'; | ||
@@ -35,7 +34,8 @@ import type { Series } from '../chart/series/series'; | ||
}>; | ||
type Axes = Record<Required<AgCartesianSeriesOptions>['type'], AgCartesianChartOptions['axes']> & Record<Required<AgPolarSeriesOptions>['type'], AgPolarChartOptions['axes']> & Record<Required<AgHierarchySeriesOptions>['type'], never> & Record<Required<AgTopologySeriesOptions>['type'], never> & Record<Required<AgFlowProportionSeriesOptions>['type'], never> & { | ||
type GaugeAxes = { | ||
'radial-gauge': AgPolarChartOptions['axes']; | ||
'linear-gauge': AgCartesianChartOptions['axes']; | ||
}; | ||
type SeriesDefaultAxes<SeriesType extends RequiredSeriesType> = Axes[SeriesType]; | ||
type Axes = Record<Required<AgCartesianSeriesOptions>['type'], AgCartesianChartOptions['axes']> & Record<Required<AgPolarSeriesOptions>['type'], AgPolarChartOptions['axes']> & Record<Required<AgHierarchySeriesOptions>['type'], never> & Record<Required<AgTopologySeriesOptions>['type'], never> & Record<Required<AgFlowProportionSeriesOptions>['type'], never> & Record<Required<AgStandaloneSeriesOptions>['type'], never> & GaugeAxes; | ||
type SeriesDefaultAxes<SeriesType extends RequiredSeriesType> = Axes[SeriesType] | ((series: any) => Axes[SeriesType]); | ||
export type SeriesTooltipDefaults = { | ||
@@ -42,0 +42,0 @@ range: 'exact' | 'nearest'; |
@@ -8,3 +8,2 @@ import type { HistoryManager } from '../api/state/historyManager'; | ||
import type { AnimationManager } from '../chart/interaction/animationManager'; | ||
import type { AriaAnnouncementService } from '../chart/interaction/ariaAnnouncementServices'; | ||
import type { ChartEventManager } from '../chart/interaction/chartEventManager'; | ||
@@ -42,3 +41,2 @@ import type { ContextMenuRegistry } from '../chart/interaction/contextMenuRegistry'; | ||
readonly annotationManager: AnnotationManager; | ||
readonly ariaAnnouncementService: AriaAnnouncementService; | ||
readonly chartEventManager: ChartEventManager; | ||
@@ -45,0 +43,0 @@ readonly contextMenuRegistry: ContextMenuRegistry; |
@@ -16,3 +16,3 @@ import { type AgChartOptions } from 'ag-charts-types'; | ||
} | ||
interface ChartSpecialOverrides { | ||
export interface ChartSpecialOverrides { | ||
document: Document; | ||
@@ -22,2 +22,4 @@ window: Window; | ||
sceneMode?: 'simple'; | ||
} | ||
export interface ChartInternalOptionMetadata { | ||
presetType?: string; | ||
@@ -55,7 +57,8 @@ } | ||
userOptions: Partial<T>; | ||
processedOverrides: Partial<T>; | ||
specialOverrides: ChartSpecialOverrides; | ||
optionMetadata: ChartInternalOptionMetadata; | ||
annotationThemes: any; | ||
presetType?: string; | ||
private readonly debug; | ||
constructor(userOptions: T, specialOverrides?: Partial<ChartSpecialOverrides>); | ||
constructor(userOptions: T, processedOverrides: Partial<T>, specialOverrides: Partial<ChartSpecialOverrides>, metadata: ChartInternalOptionMetadata); | ||
getOptions(): T; | ||
@@ -65,5 +68,4 @@ diffOptions(options: T): Partial<T> | null; | ||
protected getDefaultAxes(options: T): T; | ||
protected optionsType(options: Partial<T>): "area" | "line" | "box-plot" | "candlestick" | "ohlc" | "bullet" | "heatmap" | "range-area" | "range-bar" | "waterfall" | "nightingale" | "radar-area" | "radar-line" | "radial-bar" | "radial-column" | "sunburst" | "treemap" | "map-shape" | "map-line" | "map-marker" | "map-shape-background" | "map-line-background" | "chord" | "sankey" | "scatter" | "bubble" | "bar" | "histogram" | "donut" | "pie"; | ||
protected optionsType(options: Partial<T>): "area" | "line" | "box-plot" | "candlestick" | "cone-funnel" | "funnel" | "ohlc" | "bullet" | "heatmap" | "range-area" | "range-bar" | "waterfall" | "nightingale" | "radar-area" | "radar-line" | "radial-bar" | "radial-column" | "sunburst" | "treemap" | "map-shape" | "map-line" | "map-marker" | "map-shape-background" | "map-line-background" | "chord" | "sankey" | "pyramid" | "bar" | "bubble" | "histogram" | "scatter" | "donut" | "pie"; | ||
protected sanityCheckAndCleanup(options: Partial<T>): void; | ||
protected swapAxesPosition(options: T): void; | ||
protected processAxesOptions(options: T, axesThemes: any): void; | ||
@@ -70,0 +72,0 @@ protected processSeriesOptions(options: T): void; |
@@ -1,2 +0,2 @@ | ||
import type { AgCartesianSeriesOptions, AgFlowProportionSeriesOptions, AgGaugeOptions, AgHierarchySeriesOptions, AgPolarSeriesOptions, AgTopologySeriesOptions } from 'ag-charts-types'; | ||
import type { AgCartesianSeriesOptions, AgFlowProportionSeriesOptions, AgGaugeOptions, AgHierarchySeriesOptions, AgPolarSeriesOptions, AgStandaloneSeriesOptions, AgTopologySeriesOptions } from 'ag-charts-types'; | ||
import type { ChartAxisDirection } from '../chart/chartAxisDirection'; | ||
@@ -13,3 +13,3 @@ import type { PropertyDefinition } from '../chart/data/dataModel'; | ||
} | undefined; | ||
export type SeriesType = NonNullable<AgCartesianSeriesOptions['type'] | AgPolarSeriesOptions['type'] | AgHierarchySeriesOptions['type'] | AgTopologySeriesOptions['type'] | AgFlowProportionSeriesOptions['type'] | AgGaugeOptions['type']>; | ||
export type SeriesType = NonNullable<AgCartesianSeriesOptions['type'] | AgPolarSeriesOptions['type'] | AgHierarchySeriesOptions['type'] | AgTopologySeriesOptions['type'] | AgFlowProportionSeriesOptions['type'] | AgStandaloneSeriesOptions['type'] | AgGaugeOptions['type']>; | ||
export interface SeriesOptionInstance extends ModuleInstance { | ||
@@ -16,0 +16,0 @@ pickNodeExact(point: Point): PickNodeDatumResult; |
@@ -29,5 +29,8 @@ import { TimeInterval } from '../util/time/interval'; | ||
* Returns a time format function suitable for displaying tick values. | ||
* @param specifier If the specifier string is provided, this method is equivalent to | ||
* the {@link TimeLocaleObject.format} method. | ||
* If no specifier is provided, this method returns the default time format function. | ||
* | ||
* @param ticks Optional array of tick values for custom formatting. | ||
* @param domain Optional array representing the [min, max] values of the time axis. | ||
* @param specifier Optional format specifier string for custom date formatting (e.g., `%Y`, `%m`, `%d`). | ||
* @param formatOffset Optional number for applying an offset to the format (e.g., timezone shifts). | ||
* @returns A function that formats a `Date` object into a string based on the provided specifier or default format. | ||
*/ | ||
@@ -34,0 +37,0 @@ tickFormat({ ticks, domain, specifier, formatOffset, }: { |
@@ -27,3 +27,2 @@ type OffscreenCanvasRenderingContext2D = any; | ||
resize(width: number, height: number): void; | ||
snapshot(): void; | ||
clear(): void; | ||
@@ -30,0 +29,0 @@ destroy(): void; |
@@ -15,11 +15,2 @@ export declare enum RedrawType { | ||
export declare function SceneChangeDetection<T = any>(opts?: SceneChangeDetectionOptions<T>): (target: T, key: string) => void; | ||
export declare abstract class ChangeDetectable { | ||
protected _dirty: RedrawType; | ||
protected markDirty(_source: any, type?: RedrawType): void; | ||
markClean(_opts?: { | ||
force?: boolean; | ||
recursive?: boolean; | ||
}): void; | ||
isDirty(): boolean; | ||
} | ||
export {}; |
@@ -34,3 +34,3 @@ import { BBox } from './bbox'; | ||
}>; | ||
computeSVGDataPath(transform: (x: number, y: number) => { | ||
toSVG(transform?: (x: number, y: number) => { | ||
x: number; | ||
@@ -37,0 +37,0 @@ y: number; |
import { BBox } from './bbox'; | ||
import type { HdpiCanvas } from './canvas/hdpiCanvas'; | ||
import type { LayersManager, ZIndexSubOrder } from './layersManager'; | ||
import type { ZIndexSubOrder } from './layersManager'; | ||
import type { ChildNodeCounts, RenderContext } from './node'; | ||
import { Node, RedrawType } from './node'; | ||
import { Node } from './node'; | ||
export declare class Group extends Node { | ||
protected readonly opts?: { | ||
readonly layer?: boolean | undefined; | ||
readonly name?: string | undefined; | ||
readonly isVirtual?: boolean | undefined; | ||
readonly zIndex?: number | undefined; | ||
readonly zIndexSubOrder?: ZIndexSubOrder | undefined; | ||
readonly isVirtual?: boolean | undefined; | ||
readonly name?: string | undefined; | ||
readonly nonEmptyChildDerivedZIndex?: boolean | undefined; | ||
readonly layer?: boolean | undefined; | ||
} | undefined; | ||
static className: string; | ||
static is(value: unknown): value is Group; | ||
private clipRect?; | ||
protected layer?: HdpiCanvas; | ||
static computeChildrenBBox(nodes: Iterable<Node>, skipInvisible?: boolean): BBox; | ||
protected static compareChildren(a: Node, b: Node): number; | ||
protected clipRect?: BBox; | ||
opacity: number; | ||
protected onZIndexChange(): void; | ||
isLayer(): boolean; | ||
constructor(opts?: { | ||
readonly layer?: boolean | undefined; | ||
readonly name?: string | undefined; | ||
readonly isVirtual?: boolean | undefined; | ||
readonly zIndex?: number | undefined; | ||
readonly zIndexSubOrder?: ZIndexSubOrder | undefined; | ||
readonly isVirtual?: boolean | undefined; | ||
readonly name?: string | undefined; | ||
readonly nonEmptyChildDerivedZIndex?: boolean | undefined; | ||
readonly layer?: boolean | undefined; | ||
} | undefined); | ||
_setLayerManager(layersManager?: LayersManager): void; | ||
private initialiseLayer; | ||
protected getComputedOpacity(): number; | ||
protected getVisibility(): boolean; | ||
protected onVisibleChange(): void; | ||
markDirty(source: Node, type?: RedrawType): void; | ||
containsPoint(_x: number, _y: number): boolean; | ||
protected computeBBox(): BBox; | ||
private lastBBox?; | ||
preRender(): ChildNodeCounts; | ||
deriveZIndexFromChildren(): void; | ||
render(renderCtx: RenderContext): void; | ||
private sortChildren; | ||
static computeChildrenBBox(nodes: Iterable<Node>, opts?: { | ||
skipInvisible: boolean; | ||
}): BBox; | ||
setClipRect(bbox?: BBox): void; | ||
protected isDirty(renderCtx: RenderContext): { | ||
isDirty: boolean; | ||
isChildDirty: boolean; | ||
isChildLayerDirty: boolean; | ||
}; | ||
protected debugSkip(renderCtx: RenderContext): void; | ||
render(renderCtx: RenderContext, skip?: boolean): void; | ||
protected sortedChildren(): Iterable<Node>; | ||
protected renderClip(renderCtx: RenderContext): BBox | undefined; | ||
protected renderChildren(children: Iterable<Node>, renderCtx: RenderContext): void; | ||
/** | ||
@@ -52,3 +44,12 @@ * Transforms bbox given in the canvas coordinate space to bbox in this group's coordinate space and | ||
*/ | ||
setClipRectInGroupCoordinateSpace(bbox?: BBox): void; | ||
setClipRect(bbox?: BBox): void; | ||
/** | ||
* Set the clip rect within the canvas coordinate space. | ||
* @param bbox clipRect bbox in the canvas coordinate space. | ||
*/ | ||
setClipRectCanvasSpace(bbox?: BBox): void; | ||
toSVG(): { | ||
elements: SVGElement[]; | ||
defs?: SVGElement[]; | ||
} | undefined; | ||
} | ||
@@ -55,0 +56,0 @@ declare const ScalableGroup_base: new (...args: any[]) => import("./transformable").ScalableType<Group>; |
import { BBox } from './bbox'; | ||
import { ChangeDetectable, RedrawType, SceneChangeDetection } from './changeDetectable'; | ||
import { RedrawType, SceneChangeDetection } from './changeDetectable'; | ||
import type { LayersManager, ZIndexSubOrder } from './layersManager'; | ||
@@ -41,20 +41,12 @@ export { SceneChangeDetection, RedrawType }; | ||
*/ | ||
export declare abstract class Node extends ChangeDetectable { | ||
static _nextSerialNumber: number; | ||
export declare abstract class Node { | ||
private static _nextSerialNumber; | ||
static extractBBoxes(nodes: Iterable<Node>, skipInvisible?: boolean): Generator<BBox, void, unknown>; | ||
/** Unique number to allow creation order to be easily determined. */ | ||
readonly serialNumber: number; | ||
/** | ||
* Unique node ID in the form `ClassName-NaturalNumber`. | ||
*/ | ||
readonly childNodeCounts: ChildNodeCounts; | ||
/** Unique node ID in the form `ClassName-NaturalNumber`. */ | ||
readonly id: string; | ||
readonly name?: string; | ||
protected _datum?: any; | ||
protected _previousDatum?: any; | ||
/** | ||
* Some arbitrary data bound to the node. | ||
*/ | ||
get datum(): any; | ||
get previousDatum(): any; | ||
set datum(datum: any); | ||
/** | ||
* Some number to identify this node, typically within a `Group` node. | ||
@@ -64,2 +56,14 @@ * Usually this will be some enum value used as a selector. | ||
tag: number; | ||
transitionOut?: boolean; | ||
pointerEvents: PointerEvents; | ||
protected _datum?: any; | ||
protected _previousDatum?: any; | ||
protected _debug?: (...args: any[]) => void; | ||
protected _layerManager?: LayersManager; | ||
protected _dirty: RedrawType; | ||
protected dirtyZIndex: boolean; | ||
private childNodes?; | ||
private parentNode?; | ||
private virtualChildrenCount; | ||
private cachedBBox?; | ||
/** | ||
@@ -72,3 +76,3 @@ * To simplify the type system (especially in Selections) we don't have the `Parent` node | ||
/** | ||
* Indicates if this node should be substituted for it's children when traversing the scene | ||
* Indicates if this node should be substituted for its children when traversing the scene | ||
* graph. This allows intermingling of child-nodes that are managed by different chart classes | ||
@@ -78,20 +82,32 @@ * without breaking scene-graph encapsulation. | ||
readonly isVirtual: boolean; | ||
protected _debug?: (...args: any[]) => void; | ||
protected _layerManager?: LayersManager; | ||
visible: boolean; | ||
zIndex: number; | ||
zIndexSubOrder?: ZIndexSubOrder; | ||
constructor(options?: NodeOptions); | ||
/** | ||
* Some arbitrary data bound to the node. | ||
*/ | ||
get datum(): any; | ||
set datum(datum: any); | ||
get previousDatum(): any; | ||
get layerManager(): LayersManager | undefined; | ||
get dirty(): RedrawType; | ||
/** Perform any pre-rendering initialization. */ | ||
preRender(): ChildNodeCounts; | ||
render(renderCtx: RenderContext): void; | ||
_setLayerManager(value?: LayersManager): void; | ||
get layerManager(): LayersManager | undefined; | ||
ancestors(): Generator<Node, void, unknown>; | ||
traverseUp(): Generator<Node, void, unknown>; | ||
private _parent?; | ||
get parent(): Node | undefined; | ||
private readonly _virtualChildren; | ||
private readonly _children; | ||
get children(): Node[]; | ||
protected get virtualChildren(): Node[]; | ||
protected sortChildren(compareFn?: (a: Node, b: Node) => number): void; | ||
traverseUp(includeSelf?: boolean): Generator<Node, void, unknown>; | ||
children(flattenVirtual?: boolean): Generator<Node, void, undefined>; | ||
virtualChildren(): Generator<Node, void, undefined>; | ||
hasVirtualChildren(): boolean; | ||
private childSet; | ||
setProperties<T>(this: T, styles: { | ||
[K in keyof T]?: T[K]; | ||
}, pickKeys?: (keyof T)[]): T; | ||
/** | ||
* Checks if the node is a leaf (has no children). | ||
*/ | ||
isLeaf(): boolean; | ||
/** | ||
* Checks if the node is the root (has no parent). | ||
*/ | ||
isRoot(): boolean; | ||
/** | ||
* Appends one or more new node instances to this parent. | ||
@@ -106,6 +122,9 @@ * If one needs to: | ||
appendChild<T extends Node>(node: T): T; | ||
removeChild<T extends Node>(node: T): T; | ||
removeChild(node: Node): boolean; | ||
remove(): boolean; | ||
clear(): void; | ||
constructor({ isVirtual, tag, zIndex, name }?: NodeOptions); | ||
destroy(): void; | ||
setProperties<T>(this: T, styles: { | ||
[K in keyof T]?: T[K]; | ||
}, pickKeys?: (keyof T)[]): T; | ||
containsPoint(_x: number, _y: number): boolean; | ||
@@ -119,11 +138,6 @@ /** | ||
pickNode(x: number, y: number, _localCoords?: boolean): Node | undefined; | ||
private cachedBBox?; | ||
private invalidateCachedBBox; | ||
getBBox(): BBox; | ||
protected computeBBox(): BBox | undefined; | ||
readonly _childNodeCounts: ChildNodeCounts; | ||
/** Perform any pre-rendering initialization. */ | ||
preRender(): ChildNodeCounts; | ||
render(renderCtx: RenderContext): void; | ||
markDirty(_source: Node, type?: RedrawType, parentType?: RedrawType): void; | ||
get dirty(): RedrawType; | ||
markDirty(type?: RedrawType, parentType?: RedrawType): void; | ||
markClean(opts?: { | ||
@@ -133,15 +147,8 @@ force?: boolean; | ||
}): void; | ||
visible: boolean; | ||
protected onVisibleChange(): void; | ||
protected dirtyZIndex: boolean; | ||
zIndex: number; | ||
/** Discriminators for render order within a zIndex. */ | ||
zIndexSubOrder?: ZIndexSubOrder; | ||
pointerEvents: PointerEvents; | ||
get nodeCount(): { | ||
count: number; | ||
visibleCount: number; | ||
dirtyCount: number; | ||
}; | ||
protected onZIndexChange(): void; | ||
toSVG(): { | ||
elements: SVGElement[]; | ||
defs?: SVGElement[]; | ||
} | undefined; | ||
} |
@@ -32,2 +32,3 @@ import type { BBox } from './bbox'; | ||
}): Promise<void>; | ||
toSVG(): string | undefined; | ||
/** Alternative to destroy() that preserves re-usable resources. */ | ||
@@ -34,0 +35,0 @@ strip(): void; |
@@ -19,3 +19,4 @@ import { BBox } from './bbox'; | ||
export declare function debugSceneNodeHighlight(ctx: CanvasRenderingContext2D, debugNodes: Record<string, Node>): void; | ||
export declare function buildTree(node: Node): BuildTree; | ||
export declare const skippedProperties: Set<string>; | ||
export declare function buildTree(node: Node, mode: 'json' | 'console'): BuildTree; | ||
export declare function buildDirtyTree(node: Node): { | ||
@@ -22,0 +23,0 @@ dirtyTree: { |
@@ -10,3 +10,3 @@ import { Node } from './node'; | ||
static selectAll<TChild extends Node = Node>(parent: Node, predicate: (node: Node) => node is TChild): TChild[]; | ||
static selectByClass<TChild extends Node = Node>(node: Node, Class: new () => TChild, ...ExtraClasses: Array<new () => TChild>): TChild[]; | ||
static selectByClass<TChild extends Node = Node>(node: Node, ...Classes: Array<new () => TChild>): TChild[]; | ||
static selectByTag<TChild extends Node = Node>(node: Node, tag: number): TChild[]; | ||
@@ -13,0 +13,0 @@ private readonly nodeFactory; |
@@ -14,14 +14,13 @@ import { BBox } from '../bbox'; | ||
protected static defaultStyles: { | ||
fill: string; | ||
stroke: undefined; | ||
lineWidth: number; | ||
fillStyle: null; | ||
fill?: string | undefined; | ||
stroke?: string | undefined; | ||
strokeWidth: number; | ||
lineDash: undefined; | ||
lineDash?: number[] | undefined; | ||
lineDashOffset: number; | ||
lineCap: undefined; | ||
lineJoin: undefined; | ||
lineCap?: import("./shape").ShapeLineCap | undefined; | ||
lineJoin?: import("./shape").ShapeLineJoin | undefined; | ||
opacity: number; | ||
fillShadow: undefined; | ||
} & { | ||
lineWidth: number; | ||
fillStyle: null; | ||
fillShadow?: import("../dropShadow").DropShadow | undefined; | ||
}; | ||
@@ -28,0 +27,0 @@ constructor(); |
@@ -7,3 +7,13 @@ import type { DistantObject } from '../../util/nearest'; | ||
static readonly className = "Line"; | ||
protected static defaultStyles: never; | ||
protected static defaultStyles: { | ||
fill: undefined; | ||
strokeWidth: number; | ||
stroke?: string | undefined; | ||
lineDash?: number[] | undefined; | ||
lineDashOffset: number; | ||
lineCap?: import("./shape").ShapeLineCap | undefined; | ||
lineJoin?: import("./shape").ShapeLineJoin | undefined; | ||
opacity: number; | ||
fillShadow?: import("../dropShadow").DropShadow | undefined; | ||
}; | ||
constructor(opts?: NodeOptions); | ||
@@ -16,2 +26,6 @@ x1: number; | ||
set y(value: number); | ||
get midPoint(): { | ||
x: number; | ||
y: number; | ||
}; | ||
protected computeBBox(): BBox; | ||
@@ -21,2 +35,6 @@ isPointInPath(x: number, y: number): boolean; | ||
render(renderCtx: RenderContext): void; | ||
toSVG(): { | ||
elements: SVGElement[]; | ||
defs?: SVGElement[]; | ||
} | undefined; | ||
} |
@@ -1,4 +0,4 @@ | ||
import type { DistantObject } from '../../util//nearest'; | ||
import type { DistantObject } from '../../util/nearest'; | ||
import { ExtendedPath2D } from '../extendedPath2D'; | ||
import type { RenderContext } from '../node'; | ||
import type { ChildNodeCounts, RenderContext } from '../node'; | ||
import { RedrawType } from '../node'; | ||
@@ -22,3 +22,3 @@ import { Shape } from './shape'; | ||
private _clipPath?; | ||
clipMode?: 'normal' | 'punch-out'; | ||
clip: boolean; | ||
set clipX(value: number); | ||
@@ -38,3 +38,3 @@ set clipY(value: number); | ||
distanceSquared(x: number, y: number): number; | ||
computeSVGDataPath(transform: (x: number, y: number) => { | ||
svgPathData(transform?: (x: number, y: number) => { | ||
x: number; | ||
@@ -46,4 +46,10 @@ y: number; | ||
updatePath(): void; | ||
private updatePathIfDirty; | ||
preRender(): ChildNodeCounts; | ||
render(renderCtx: RenderContext): void; | ||
protected drawPath(ctx: any): void; | ||
toSVG(): { | ||
elements: SVGElement[]; | ||
defs?: SVGElement[]; | ||
} | undefined; | ||
} |
@@ -8,10 +8,10 @@ import { BBox } from '../bbox'; | ||
strokeWidth: number; | ||
fill: string; | ||
stroke: undefined; | ||
lineDash: undefined; | ||
fill?: string | undefined; | ||
stroke?: string | undefined; | ||
lineDash?: number[] | undefined; | ||
lineDashOffset: number; | ||
lineCap: undefined; | ||
lineJoin: undefined; | ||
lineCap?: import("./shape").ShapeLineCap | undefined; | ||
lineJoin?: import("./shape").ShapeLineJoin | undefined; | ||
opacity: number; | ||
fillShadow: undefined; | ||
fillShadow?: import("../dropShadow").DropShadow | undefined; | ||
}; | ||
@@ -18,0 +18,0 @@ constructor(opts?: NodeOptions); |
@@ -7,2 +7,13 @@ import type { DropShadow } from '../dropShadow'; | ||
export type CanvasContext = CanvasFillStrokeStyles & CanvasCompositing & CanvasShadowStyles & CanvasPathDrawingStyles & CanvasDrawPath & CanvasTransform & CanvasState; | ||
interface DefaultStyles { | ||
fill?: string; | ||
stroke?: string; | ||
strokeWidth: number; | ||
lineDash?: number[]; | ||
lineDashOffset: number; | ||
lineCap?: ShapeLineCap; | ||
lineJoin?: ShapeLineJoin; | ||
opacity: number; | ||
fillShadow?: DropShadow; | ||
} | ||
export declare abstract class Shape extends Node { | ||
@@ -17,13 +28,3 @@ /** | ||
*/ | ||
protected static defaultStyles: { | ||
fill: string; | ||
stroke: undefined; | ||
strokeWidth: number; | ||
lineDash: undefined; | ||
lineDashOffset: number; | ||
lineCap: undefined; | ||
lineJoin: undefined; | ||
opacity: number; | ||
fillShadow: undefined; | ||
}; | ||
protected static readonly defaultStyles: DefaultStyles; | ||
/** | ||
@@ -75,1 +76,2 @@ * Restores the default styles introduced by this subclass. | ||
} | ||
export {}; |
@@ -17,14 +17,3 @@ import type { FontFamily, FontSize, FontStyle, FontWeight } from 'ag-charts-types'; | ||
static readonly className = "Text"; | ||
static defaultLineHeightRatio: number; | ||
static defaultStyles: { | ||
fill: string; | ||
stroke: undefined; | ||
strokeWidth: number; | ||
lineDash: undefined; | ||
lineDashOffset: number; | ||
lineCap: undefined; | ||
lineJoin: undefined; | ||
opacity: number; | ||
fillShadow: undefined; | ||
} & { | ||
static readonly defaultStyles: { | ||
textAlign: CanvasTextAlign; | ||
@@ -36,2 +25,11 @@ fontStyle: undefined; | ||
textBaseline: CanvasTextBaseline; | ||
fill?: string | undefined; | ||
stroke?: string | undefined; | ||
strokeWidth: number; | ||
lineDash?: number[] | undefined; | ||
lineDashOffset: number; | ||
lineCap?: import("./shape").ShapeLineCap | undefined; | ||
lineJoin?: import("./shape").ShapeLineJoin | undefined; | ||
opacity: number; | ||
fillShadow?: import("../dropShadow").DropShadow | undefined; | ||
}; | ||
@@ -60,2 +58,6 @@ x: number; | ||
}): void; | ||
toSVG(): { | ||
elements: SVGElement[]; | ||
defs?: SVGElement[]; | ||
} | undefined; | ||
} | ||
@@ -62,0 +64,0 @@ declare const RotatableText_base: new (...args: any[]) => import("../transformable").RotatableType<Text>; |
@@ -15,2 +15,3 @@ import type { Node } from './node'; | ||
export declare class SpriteRenderer { | ||
static offscreenCanvasCount: number; | ||
private readonly offscreenCanvas; | ||
@@ -17,0 +18,0 @@ private readonly renderCtx; |
@@ -25,2 +25,3 @@ import type { BBox } from './bbox'; | ||
updateMatrix(matrix: Matrix): void; | ||
computeBBoxWithoutTransforms(): BBox | undefined; | ||
}; | ||
@@ -27,0 +28,0 @@ export declare function isMatrixTransform<N extends Node>(node: N): node is MatrixTransformType<N>; |
@@ -5,3 +5,3 @@ import { BaseProperties } from '../../util/properties'; | ||
protected _dirty: RedrawType; | ||
protected markDirty(_source: any, type?: RedrawType): void; | ||
protected markDirty(type?: RedrawType): void; | ||
markClean(_opts?: { | ||
@@ -8,0 +8,0 @@ force?: boolean; |
export * from './util/angle'; | ||
export * from './util/attributeUtil'; | ||
export * from './util/distance'; | ||
export * from './util/equal'; | ||
@@ -11,4 +12,2 @@ export * from './util/id'; | ||
export * from './util/value'; | ||
export * from './util/vector'; | ||
export * from './util/zip'; | ||
export { isValidDate as isDate, isFiniteNumber as isNumber, isString } from './util/type-guards'; | ||
@@ -15,0 +14,0 @@ export { extent, normalisedExtentWithMetadata } from './util/array'; |
@@ -11,1 +11,2 @@ export declare function extent(values: Array<Date | number | unknown>): [number, number] | null; | ||
export declare function circularSliceArray<T>(data: T[], size: number, offset?: number): T[]; | ||
export declare function sortBasedOnArray<T>(baseArray: T[], orderArray: T[]): T[]; |
@@ -0,1 +1,2 @@ | ||
import type { Nullable } from './types'; | ||
type ElementID = string; | ||
@@ -9,6 +10,7 @@ type BaseAttributeTypeMap = { | ||
'aria-hidden': boolean; | ||
'aria-label': string | undefined; | ||
'aria-label': string; | ||
'aria-labelledby': ElementID; | ||
'aria-live': 'assertive' | 'polite'; | ||
'aria-selected': boolean; | ||
'data-preventdefault': boolean; | ||
class: string; | ||
@@ -28,6 +30,14 @@ id: ElementID; | ||
}>; | ||
export declare function setAttribute<A extends keyof BaseAttributeTypeMap>(e: HTMLElement | undefined, qualifiedName: A, value: BaseAttributeTypeMap[A]): void; | ||
export declare function setAttribute<A extends keyof InputAttributeTypeMap>(e: HTMLTextAreaElement | undefined, qualifiedName: A, value: InputAttributeTypeMap[A]): void; | ||
export declare function setAttributes(e: HTMLElement | undefined, attrs: AttributeSet | undefined): void; | ||
export declare function setAttributes(e: HTMLTextAreaElement | undefined, attrs: InputAttributeTypeMap | undefined): void; | ||
type BaseStyleTypeMap = { | ||
cursor: 'pointer'; | ||
display: 'none'; | ||
'pointer-events': 'auto' | 'none'; | ||
}; | ||
export declare function setAttribute<A extends keyof BaseAttributeTypeMap>(e: Nullable<HTMLElement>, qualifiedName: A, value: BaseAttributeTypeMap[A] | undefined): void; | ||
export declare function setAttribute<A extends keyof InputAttributeTypeMap>(e: Nullable<HTMLTextAreaElement>, qualifiedName: A, value: InputAttributeTypeMap[A] | undefined): void; | ||
export declare function setAttributes(e: Nullable<HTMLElement>, attrs: AttributeSet | undefined): void; | ||
export declare function setAttributes(e: Nullable<HTMLTextAreaElement>, attrs: InputAttributeTypeMap | undefined): void; | ||
export declare function getAttribute<A extends keyof BaseAttributeTypeMap>(e: Nullable<HTMLElement | EventTarget>, qualifiedName: A, defaultValue?: BaseAttributeTypeMap[A]): BaseAttributeTypeMap[A] | undefined; | ||
export declare function getAttribute<A extends keyof InputAttributeTypeMap>(e: Nullable<HTMLTextAreaElement>, qualifiedName: A, defaultValue?: InputAttributeTypeMap[A]): InputAttributeTypeMap[A] | undefined; | ||
export declare function setElementStyle<P extends keyof BaseStyleTypeMap>(e: Nullable<Pick<HTMLElement, 'style'>>, property: P, value: BaseStyleTypeMap[P] | undefined): void; | ||
export {}; |
export declare function resetIds(): void; | ||
export declare function createId(instance: any): string; | ||
export declare function uuid(): string; | ||
export declare function generateUUID(): string; |
@@ -16,16 +16,8 @@ export declare function initToolbarKeyNav(opts: { | ||
} | ||
export type MenuDevice = { | ||
type: 'keyboard'; | ||
lastFocus: HTMLElement; | ||
} | { | ||
type: 'mouse'; | ||
lastFocus: HTMLElement | undefined; | ||
}; | ||
export declare function initMenuKeyNav(opts: { | ||
orientation: 'vertical'; | ||
device: MenuDevice; | ||
sourceEvent: Event; | ||
menu: HTMLElement; | ||
buttons: HTMLElement[]; | ||
autoCloseOnBlur?: boolean; | ||
skipMouseFocusRestore?: boolean; | ||
closeCallback: () => void; | ||
@@ -35,1 +27,3 @@ }): MenuCloser; | ||
export declare function isButtonClickEvent(event: KeyboardEvent | MouseEvent): boolean; | ||
export declare function getLastFocus(sourceEvent: Event | undefined): HTMLElement | undefined; | ||
export declare function stopPageScrolling(element: HTMLElement): () => void; |
@@ -12,3 +12,3 @@ export type NearestResult<T> = { | ||
type DistantContainer<TNearest> = { | ||
get children(): NearestCalculator<TNearest>[]; | ||
children: Iterable<NearestCalculator<TNearest>>; | ||
transformPoint?: (x: number, y: number) => { | ||
@@ -15,0 +15,0 @@ x: number; |
@@ -6,3 +6,3 @@ import type { Intersection, PlainObject } from './types'; | ||
export declare function mergeDefaults<TSource extends PlainObject, TArgs extends (TSource | FalsyType)[]>(...sources: TArgs): Intersection<Exclude<TArgs[number], FalsyType>>; | ||
export declare function mergeArrayDefaults(dataArray: PlainObject[], ...itemDefaults: PlainObject[]): PlainObject[]; | ||
export declare function mergeArrayDefaults<T extends PlainObject>(dataArray: T[], ...itemDefaults: T[]): T[] | Intersection<Exclude<T, FalsyType>>[]; | ||
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>; | ||
@@ -9,0 +9,0 @@ export declare function without(object: object | undefined, keys: string[]): {}; |
@@ -19,1 +19,8 @@ import type { PlainObject } from './types'; | ||
export declare function isSymbol(value: unknown): value is symbol; | ||
export declare function excludesType<T extends string, O extends { | ||
type: T; | ||
}, X extends T>(obj: O & { | ||
type: T; | ||
}, excluded: X): obj is O & { | ||
type: Exclude<T, X>; | ||
}; |
@@ -0,1 +1,2 @@ | ||
export type Nullable<T> = T | null | undefined; | ||
export type PlainObject = { | ||
@@ -2,0 +3,0 @@ [key: string | number | symbol]: any; |
@@ -8,2 +8,8 @@ interface ValidateOptions { | ||
} | ||
interface UnionOption { | ||
value: string; | ||
deprecated?: boolean; | ||
deprecatedTo?: string; | ||
undocumented?: boolean; | ||
} | ||
export interface ValidatePredicate { | ||
@@ -73,3 +79,3 @@ (value: unknown, ctx: ValidationContext): boolean; | ||
export declare const LABEL_PLACEMENT: ValidatePredicate; | ||
export declare function UNION(options: string[], message?: string): ValidatePredicate; | ||
export declare function UNION(options: (string | UnionOption)[], message?: string): ValidatePredicate; | ||
export declare const MIN_SPACING: ValidatePredicate; | ||
@@ -76,0 +82,0 @@ export declare const MAX_SPACING: ValidatePredicate; |
@@ -20,2 +20,3 @@ export declare const Vec2: { | ||
rotate: typeof rotate; | ||
round: typeof round; | ||
sub: typeof sub; | ||
@@ -27,2 +28,8 @@ }; | ||
} | ||
interface Vec4 { | ||
x1: number; | ||
y1: number; | ||
x2: number; | ||
y2: number; | ||
} | ||
/** | ||
@@ -41,3 +48,4 @@ * Add the components of the vectors `a` and `b`. | ||
*/ | ||
declare function multiply(a: Vec2, b: Vec2 | number): Vec2; | ||
declare function multiply(a: Vec2, b: Vec2): Vec2; | ||
declare function multiply(a: Vec2, b: number): Vec2; | ||
/** | ||
@@ -73,6 +81,3 @@ * Get the length of a vector. | ||
*/ | ||
declare function rotate(a: Vec2, theta: number, b?: Vec2): { | ||
x: number; | ||
y: number; | ||
}; | ||
declare function rotate(a: Vec2, theta: number, b?: Vec2): Vec2; | ||
/** | ||
@@ -92,6 +97,3 @@ * Get the gradient of the line that intersects two points. | ||
*/ | ||
declare function intersectAtY(gradient: number, coefficient: number, y?: number, reflection?: number): { | ||
x: number; | ||
y: number; | ||
}; | ||
declare function intersectAtY(gradient: number, coefficient: number, y?: number, reflection?: number): Vec2; | ||
/** | ||
@@ -101,7 +103,8 @@ * Get the point where a line intersects a vertical line at the given x value. | ||
*/ | ||
declare function intersectAtX(gradient: number, coefficient: number, x?: number, reflection?: number): { | ||
x: number; | ||
y: number; | ||
}; | ||
declare function intersectAtX(gradient: number, coefficient: number, x?: number, reflection?: number): Vec2; | ||
/** | ||
* Round each component of the vector to the nearest integer. | ||
*/ | ||
declare function round(a: Vec2): Vec2; | ||
/** | ||
* Check if the components of `a` and `b` are equal. | ||
@@ -115,9 +118,2 @@ */ | ||
/** | ||
* Create a vector from a box containing a `width` and `height`. | ||
*/ | ||
declare function from(bbox: { | ||
width: number; | ||
height: number; | ||
}): Vec2; | ||
/** | ||
* Create a vector from a html element's `offsetWidth` and `offsetHeight`. | ||
@@ -137,11 +133,15 @@ */ | ||
/** | ||
* Create a vector from a line or box containing a pair of coordinates. | ||
* Create a pair of vectors of the top left and bottom right of a bounding box. | ||
*/ | ||
declare function from(pair: { | ||
x1: number; | ||
y1: number; | ||
x2: number; | ||
y2: number; | ||
declare function from(bbox: { | ||
x: number; | ||
y: number; | ||
width: number; | ||
height: number; | ||
}): [Vec2, Vec2]; | ||
/** | ||
* Create a pair of vectors from a line or box containing a pair of coordinates. | ||
*/ | ||
declare function from(vec4: Vec4): [Vec2, Vec2]; | ||
/** | ||
* Apply the components of `b` to `a` and return `a`. | ||
@@ -148,0 +148,0 @@ */ |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "10.2.0"; | ||
export declare const VERSION = "10.3.0"; |
The MIT License | ||
Copyright (c) 2015-2019 AG GRID LTD | ||
Copyright (c) 2015-2024 AG GRID LTD | ||
@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
{ | ||
"name": "ag-charts-community", | ||
"version": "10.2.0", | ||
"version": "10.3.0", | ||
"description": "Advanced Charting / Charts supporting Javascript / Typescript / React / Angular / Vue", | ||
@@ -9,9 +9,15 @@ "main": "./dist/package/main.cjs.js", | ||
"exports": { | ||
"import": "./dist/package/main.esm.mjs", | ||
"require": "./dist/package/main.cjs.js", | ||
"types": "./dist/types/src/main.d.ts", | ||
"default": "./dist/package/main.cjs.js" | ||
".": { | ||
"import": "./dist/package/main.esm.mjs", | ||
"require": "./dist/package/main.cjs.js", | ||
"types": "./dist/types/src/main.d.ts", | ||
"default": "./dist/package/main.cjs.js" | ||
}, | ||
"./modules": { | ||
"import": "./dist/package/main-modules.esm.mjs", | ||
"require": "./dist/package/main-modules.cjs.js", | ||
"types": "./dist/types/src/main-modules.d.ts" | ||
} | ||
}, | ||
"scripts": { | ||
"lint:circular": "npx madge --circular --extensions ts src/", | ||
"lint:prune": "npx ts-prune -p tsconfig.lib.json" | ||
@@ -57,4 +63,4 @@ }, | ||
"dependencies": { | ||
"ag-charts-types": "10.2.0", | ||
"ag-charts-locale": "10.2.0" | ||
"ag-charts-types": "10.3.0", | ||
"ag-charts-locale": "10.3.0" | ||
}, | ||
@@ -72,3 +78,3 @@ "devDependencies": { | ||
"@typescript-eslint/parser": "^5.51.0", | ||
"ag-charts-test": "10.2.0", | ||
"ag-charts-test": "10.3.0", | ||
"assert": "2.0.0", | ||
@@ -75,0 +81,0 @@ "canvas": "^2.10.2", |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11703226
391
231853
+ Addedag-charts-locale@10.3.0(transitive)
+ Addedag-charts-types@10.3.0(transitive)
- Removedag-charts-locale@10.2.0(transitive)
- Removedag-charts-types@10.2.0(transitive)
Updatedag-charts-locale@10.3.0
Updatedag-charts-types@10.3.0