Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ag-charts-enterprise

Package Overview
Dependencies
Maintainers
0
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ag-charts-enterprise - npm Package Compare versions

Comparing version 10.2.0 to 10.3.0

dist/package/main-modules.cjs.js

10

dist/types/src/axes/polar-crosslines/polarCrossLine.d.ts

@@ -22,5 +22,5 @@ import type { AgBaseCrossLineLabelOptions, FontStyle, FontWeight, _Scale } from 'ag-charts-community';

export declare abstract class PolarCrossLine extends BaseProperties implements _ModuleSupport.CrossLine {
protected static readonly LINE_LAYER_ZINDEX = _ModuleSupport.Layers.SERIES_CROSSLINE_LINE_ZINDEX;
protected static readonly RANGE_LAYER_ZINDEX = _ModuleSupport.Layers.SERIES_CROSSLINE_RANGE_ZINDEX;
protected static readonly LABEL_LAYER_ZINDEX = _ModuleSupport.Layers.SERIES_LABEL_ZINDEX;
protected static readonly LINE_LAYER_ZINDEX = _ModuleSupport.ZIndexMap.SERIES_CROSSLINE_LINE;
protected static readonly RANGE_LAYER_ZINDEX = _ModuleSupport.ZIndexMap.SERIES_CROSSLINE_RANGE;
protected static readonly LABEL_LAYER_ZINDEX = _ModuleSupport.ZIndexMap.SERIES_LABEL;
readonly id: string;

@@ -48,4 +48,4 @@ enabled?: boolean;

axisOuterRadius: number;
readonly group: _Scene.Group;
readonly labelGroup: _Scene.Group;
readonly group: _Scene.Layer;
readonly labelGroup: _Scene.Layer;
abstract update(visible: boolean): void;

@@ -52,0 +52,0 @@ protected setSectorNodeProps(node: _Scene.Path | _Scene.Sector): void;

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

import { _ModuleSupport, _Util } from 'ag-charts-community';
import { _ModuleSupport } from 'ag-charts-community';
import type { AgIconName } from 'ag-charts-types';

@@ -29,3 +29,4 @@ import { Popover, type PopoverOptions } from '../popover/popover';

label: string;
value: string | undefined;
color?: string;
opacity?: number;
onChange: (colorOpacity: string, color: string, opacity: number) => void;

@@ -50,3 +51,3 @@ onChangeHide: () => void;

protected showWithChildren(children: Array<HTMLElement>, options: Options): HTMLDivElement;
protected updatePosition(position: _Util.Vec2): void;
protected updatePosition(position: _ModuleSupport.Vec2): void;
/**************

@@ -69,3 +70,3 @@ * Containers *

protected createCheckbox({ label, checked, onChange }: CheckboxOptions): HTMLDivElement;
protected createColorPicker({ value, label, altText, onChange, onChangeHide }: ColorPickerOptions): HTMLDivElement;
protected createColorPicker({ color, opacity, label, altText, onChange, onChangeHide }: ColorPickerOptions): HTMLDivElement;
/***********

@@ -72,0 +73,0 @@ * Private *

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

import { _Util } from 'ag-charts-community';
import { _ModuleSupport } from 'ag-charts-community';
import { Popover, type PopoverOptions } from './popover';
export interface AnchoredPopoverOptions extends PopoverOptions {
anchor?: _Util.Vec2;
fallbackAnchor?: _Util.Vec2;
anchor?: _ModuleSupport.Vec2;
fallbackAnchor?: _ModuleSupport.Vec2;
}

@@ -14,5 +14,5 @@ /**

private fallbackAnchor?;
setAnchor(anchor: _Util.Vec2, fallbackAnchor?: Partial<_Util.Vec2>): void;
setAnchor(anchor: _ModuleSupport.Vec2, fallbackAnchor?: Partial<_ModuleSupport.Vec2>): void;
protected showWithChildren(children: Array<HTMLElement>, options: Options): HTMLDivElement;
protected repositionWithinBounds(): void;
}

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

import { _ModuleSupport, type _Util } from 'ag-charts-community';
import { _ModuleSupport } from 'ag-charts-community';
declare const BaseModuleInstance: typeof _ModuleSupport.BaseModuleInstance;

@@ -30,4 +30,4 @@ export interface PopoverConstructorOptions {

protected getPopoverElement(): HTMLDivElement | undefined;
protected updatePosition(position: _Util.Vec2): void;
protected updatePosition(position: _ModuleSupport.Vec2): void;
}
export {};
import { type AgAnnotationLineStyleType, _ModuleSupport } from 'ag-charts-community';
import { type AnnotationLineStyle, type AnnotationOptionsColorPickerType, AnnotationType, type ChannelAnnotationType, type ChannelTextPosition, type HasColorAnnotationType, type HasFontSizeAnnotationType, type HasLineStyleAnnotationType, type HasLineTextAnnotationType, type LineAnnotationType, type LineTextAlignment, type LineTextPosition } from './annotationTypes';
import { type AnnotationLineStyle, type AnnotationOptionsColorPickerType, AnnotationType, type ChannelTextPosition, type HasColorAnnotationType, type HasFontSizeAnnotationType, type HasLineStyleAnnotationType, type HasLineTextAnnotationType, type LineTextAlignment, type LineTextPosition } from './annotationTypes';
import type { AnnotationProperties } from './annotationsSuperTypes';

@@ -13,5 +13,5 @@ interface DefaultsMemento {

type DefaultFontSizes = Map<HasFontSizeAnnotationType, number | undefined>;
type DefaultLineStyles = Map<LineAnnotationType | ChannelAnnotationType, AnnotationLineStyle | undefined>;
type DefaultLineTextAlignments = Map<LineAnnotationType | ChannelAnnotationType, LineTextAlignment | undefined>;
type DefaultLineTextPositions = Map<LineAnnotationType | ChannelAnnotationType, LineTextPosition | ChannelTextPosition | undefined>;
type DefaultLineStyles = Map<HasLineStyleAnnotationType, AnnotationLineStyle | undefined>;
type DefaultLineTextAlignments = Map<HasLineTextAnnotationType, LineTextAlignment | undefined>;
type DefaultLineTextPositions = Map<HasLineTextAnnotationType, LineTextPosition | ChannelTextPosition | undefined>;
export declare class AnnotationDefaults implements _ModuleSupport.MementoOriginator<DefaultsMemento> {

@@ -18,0 +18,0 @@ mementoOriginatorKey: "annotation-defaults";

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

import type { AgAnnotationLineStyleType, FontStyle, FontWeight, Formatter, TextAlign } from 'ag-charts-community';
import type { AgAnnotationLineStyleType, FontStyle, FontWeight, Formatter, TextAlign, _Scene } from 'ag-charts-community';
import { _ModuleSupport } from 'ag-charts-community';

@@ -20,2 +20,4 @@ import type { AnnotationContext, AnnotationOptionsColorPickerType, ChannelTextPosition, Constructor, LineTextAlignment, LineTextPosition } from './annotationTypes';

new (...args: any[]): {
lineCap?: _Scene.ShapeLineCap | undefined;
computedLineDash?: number[] | undefined;
lineDash?: number[] | undefined;

@@ -40,2 +42,4 @@ lineDashOffset?: number | undefined;

new (...args: any[]): {
lineCap?: _Scene.ShapeLineCap | undefined;
computedLineDash?: number[] | undefined;
lineDash?: number[] | undefined;

@@ -85,2 +89,4 @@ lineDashOffset?: number | undefined;

new (...args: any[]): {
lineCap?: _Scene.ShapeLineCap | undefined;
computedLineDash?: number[] | undefined;
lineDash?: number[] | undefined;

@@ -134,3 +140,3 @@ lineDashOffset?: number | undefined;

id: string;
isValidWithContext(_context: AnnotationContext, warningPrefix: string): boolean;
isValidWithContext(_context: AnnotationContext, warningPrefix?: string): boolean;
getDefaultColor(colorPickerType: AnnotationOptionsColorPickerType): string | undefined;

@@ -223,2 +229,4 @@ locked?: boolean | undefined;

new (...args: any[]): {
lineCap?: _Scene.ShapeLineCap | undefined;
computedLineDash?: number[] | undefined;
lineDash?: number[] | undefined;

@@ -225,0 +233,0 @@ lineDashOffset?: number | undefined;

import { _ModuleSupport } from 'ag-charts-community';
import type { AnnotationProperties } from './annotationsSuperTypes';
declare class AxesButtons {
enabled: boolean;
axes?: 'x' | 'y' | 'xy';
}
import { AxesButtons } from './annotationAxesButtons';
export declare class Annotations extends _ModuleSupport.BaseModuleInstance implements _ModuleSupport.ModuleInstance {
readonly ctx: _ModuleSupport.ModuleContext;
private readonly ctx;
enabled: boolean;
axesButtons: AxesButtons;
data?: any[];
xKey?: string;
volumeKey?: string;
private readonly state;
private readonly annotationData;
private readonly defaults;
private dataModel?;
private processedData?;
private hoverCoords?;
private seriesRect?;

@@ -26,3 +28,2 @@ private readonly container;

private yAxis?;
private removeAmbientKeyboardListener?;
constructor(ctx: _ModuleSupport.ModuleContext);

@@ -32,6 +33,24 @@ private setupStateMachine;

destroy(): void;
processData(dataController: _ModuleSupport.DataController): Promise<void>;
/**
* Create an annotation scene within the `this.annotations` scene selection. This method is automatically called by
* the selection when a new scene is required.
*/
private createAnnotationScene;
/**
* Create an annotation datum within the `this.annotationData` properties array. It is created as an instance
* of `AnnotationProperties` from the given config for its type. This method is only called when annotations
* are added from the initial state.
*/
private createAnnotationDatum;
/**
* Append an annotation datum to `this.annotationData`, applying default styles. This method is called when a user
* interacts with the chart to draw their own annotations.
*/
private createAnnotation;
private injectDatumDependencies;
private getDatumRangeVolume;
private translateNode;
private createAnnotationDatumCopy;
private createAnnotation;
private getAnnotationConfig;
private onRestoreAnnotations;

@@ -54,3 +73,2 @@ private onToolbarButtonPress;

private onAnnotationsMenuPress;
private handleAmbientKeyboardEvent;
private onToolbarCancelled;

@@ -70,2 +88,3 @@ private cancelPlacementInteraction;

private getAnnotationContext;
private getPointFn;
private onHover;

@@ -75,2 +94,3 @@ private onClick;

private onAxisButtonClick;
private onZoomChange;
private onDragStart;

@@ -81,7 +101,8 @@ private onDrag;

private onDelete;
private onTextInput;
private onKeyDown;
private onCopyPaste;
private onKeyUp;
private beginAnnotationPlacement;
private toggleAnnotationOptionsButtons;
updateToolbarLineStyles(datum?: AnnotationProperties): void;
private updateToolbarLineStyles;
private clear;

@@ -92,2 +113,3 @@ private reset;

private deleteAll;
private deleteEphemeralAnnotations;
private hideOverlays;

@@ -97,2 +119,1 @@ private resetToolbarButtonStates;

}
export {};
export declare const annotationConfigs: {
[x: string]: import("./annotationsSuperTypes").AnnotationTypeConfig<import("./arrow-down/arrowDownProperties").ArrowDownProperties, import("./arrow-down/arrowDownScene").ArrowDownScene> | import("./annotationsSuperTypes").AnnotationTypeConfig<import("./arrow-up/arrowUpProperties").ArrowUpProperties, import("./arrow-up/arrowUpScene").ArrowUpScene> | import("./annotationsSuperTypes").AnnotationTypeConfig<import("./callout/calloutProperties").CalloutProperties, import("./callout/calloutScene").CalloutScene> | import("./annotationsSuperTypes").AnnotationTypeConfig<import("./comment/commentProperties").CommentProperties, import("./comment/commentScene").CommentScene> | import("./annotationsSuperTypes").AnnotationTypeConfig<import("./cross-line/crossLineProperties").HorizontalLineProperties, import("./cross-line/crossLineScene").CrossLineScene> | import("./annotationsSuperTypes").AnnotationTypeConfig<import("./cross-line/crossLineProperties").VerticalLineProperties, import("./cross-line/crossLineScene").CrossLineScene> | import("./annotationsSuperTypes").AnnotationTypeConfig<import("./disjoint-channel/disjointChannelProperties").DisjointChannelProperties, import("./disjoint-channel/disjointChannelScene").DisjointChannelScene> | import("./annotationsSuperTypes").AnnotationTypeConfig<import("./line/lineProperties").LineProperties, import("./line/lineScene").LineScene> | import("./annotationsSuperTypes").AnnotationTypeConfig<import("./line/lineProperties").ArrowProperties, import("./line/lineScene").LineScene> | import("./annotationsSuperTypes").AnnotationTypeConfig<import("./note/noteProperties").NoteProperties, import("./note/noteScene").NoteScene> | import("./annotationsSuperTypes").AnnotationTypeConfig<import("./parallel-channel/parallelChannelProperties").ParallelChannelProperties, import("./parallel-channel/parallelChannelScene").ParallelChannelScene> | import("./annotationsSuperTypes").AnnotationTypeConfig<import("./text/textProperties").TextProperties, import("./text/textScene").TextScene>;
[x: string]: import("./annotationsSuperTypes").AnnotationTypeConfig<import("./arrow-down/arrowDownProperties").ArrowDownProperties, import("./arrow-down/arrowDownScene").ArrowDownScene> | import("./annotationsSuperTypes").AnnotationTypeConfig<import("./arrow-up/arrowUpProperties").ArrowUpProperties, import("./arrow-up/arrowUpScene").ArrowUpScene> | import("./annotationsSuperTypes").AnnotationTypeConfig<import("./callout/calloutProperties").CalloutProperties, import("./callout/calloutScene").CalloutScene> | import("./annotationsSuperTypes").AnnotationTypeConfig<import("./comment/commentProperties").CommentProperties, import("./comment/commentScene").CommentScene> | import("./annotationsSuperTypes").AnnotationTypeConfig<import("./cross-line/crossLineProperties").HorizontalLineProperties, import("./cross-line/crossLineScene").CrossLineScene> | import("./annotationsSuperTypes").AnnotationTypeConfig<import("./cross-line/crossLineProperties").VerticalLineProperties, import("./cross-line/crossLineScene").CrossLineScene> | import("./annotationsSuperTypes").AnnotationTypeConfig<import("./disjoint-channel/disjointChannelProperties").DisjointChannelProperties, import("./disjoint-channel/disjointChannelScene").DisjointChannelScene> | import("./annotationsSuperTypes").AnnotationTypeConfig<import("./line/lineProperties").LineProperties, import("./line/lineScene").LineScene> | import("./annotationsSuperTypes").AnnotationTypeConfig<import("./line/lineProperties").ArrowProperties, import("./line/lineScene").LineScene> | import("./annotationsSuperTypes").AnnotationTypeConfig<import("./measurer/measurerProperties").DateRangeProperties, import("./measurer/measurerScene").MeasurerScene> | import("./annotationsSuperTypes").AnnotationTypeConfig<import("./measurer/measurerProperties").PriceRangeProperties, import("./measurer/measurerScene").MeasurerScene> | import("./annotationsSuperTypes").AnnotationTypeConfig<import("./measurer/measurerProperties").DatePriceRangeProperties, import("./measurer/measurerScene").MeasurerScene> | import("./annotationsSuperTypes").AnnotationTypeConfig<import("./measurer/measurerProperties").QuickDatePriceRangeProperties, import("./measurer/measurerScene").QuickMeasurerScene> | import("./annotationsSuperTypes").AnnotationTypeConfig<import("./note/noteProperties").NoteProperties, import("./note/noteScene").NoteScene> | import("./annotationsSuperTypes").AnnotationTypeConfig<import("./parallel-channel/parallelChannelProperties").ParallelChannelProperties, import("./parallel-channel/parallelChannelScene").ParallelChannelScene> | import("./annotationsSuperTypes").AnnotationTypeConfig<import("./text/textProperties").TextProperties, import("./text/textScene").TextScene>;
};
export declare function getTypedDatum(datum: unknown): import("./arrow-down/arrowDownProperties").ArrowDownProperties | import("./arrow-up/arrowUpProperties").ArrowUpProperties | import("./callout/calloutProperties").CalloutProperties | import("./comment/commentProperties").CommentProperties | import("./cross-line/crossLineProperties").HorizontalLineProperties | import("./cross-line/crossLineProperties").VerticalLineProperties | import("./disjoint-channel/disjointChannelProperties").DisjointChannelProperties | import("./line/lineProperties").ArrowProperties | import("./line/lineProperties").LineProperties | import("./note/noteProperties").NoteProperties | import("./parallel-channel/parallelChannelProperties").ParallelChannelProperties | import("./text/textProperties").TextProperties | undefined;
export declare function getTypedDatum(datum: unknown): import("./arrow-down/arrowDownProperties").ArrowDownProperties | import("./arrow-up/arrowUpProperties").ArrowUpProperties | import("./callout/calloutProperties").CalloutProperties | import("./comment/commentProperties").CommentProperties | import("./cross-line/crossLineProperties").HorizontalLineProperties | import("./cross-line/crossLineProperties").VerticalLineProperties | import("./disjoint-channel/disjointChannelProperties").DisjointChannelProperties | import("./line/lineProperties").ArrowProperties | import("./line/lineProperties").LineProperties | import("./measurer/measurerProperties").DateRangeProperties | import("./measurer/measurerProperties").PriceRangeProperties | import("./measurer/measurerProperties").DatePriceRangeProperties | import("./measurer/measurerProperties").QuickDatePriceRangeProperties | import("./note/noteProperties").NoteProperties | import("./parallel-channel/parallelChannelProperties").ParallelChannelProperties | import("./text/textProperties").TextProperties | undefined;
import type { AgAnnotationLineStyleType } from 'ag-charts-community';
import type { MenuItem } from '../../components/menu/menu';
import { AnnotationType } from './annotationTypes';
export declare enum AnnotationOptions {
Delete = "delete",
LineStrokeWidth = "line-stroke-width",
LineStyleType = "line-style-type",
LineColor = "line-color",
FillColor = "fill-color",
Lock = "lock",
TextColor = "text-color",
TextSize = "text-size",
Settings = "settings"
}
export declare const LINE_ANNOTATION_ITEMS: MenuItem<AnnotationType>[];
export declare const TEXT_ANNOTATION_ITEMS: MenuItem<AnnotationType>[];
export declare const SHAPE_ANNOTATION_ITEMS: MenuItem<AnnotationType>[];
export declare const MEASURER_ANNOTATION_ITEMS: MenuItem<AnnotationType>[];
export declare const LINE_STROKE_WIDTH_ITEMS: MenuItem<number>[];
export declare const LINE_STYLE_TYPE_ITEMS: MenuItem<AgAnnotationLineStyleType>[];
export declare const TEXT_SIZE_ITEMS: MenuItem<number>[];

@@ -10,3 +10,3 @@ import { _ModuleSupport, _Util } from 'ag-charts-community';

}
type AnnotationEvent = 'hover' | 'click' | 'dblclick' | 'drag' | 'dragStart' | 'dragEnd' | 'keyDown' | 'selectLast' | 'copy' | 'cut' | 'paste' | 'cancel' | 'reset' | 'delete' | 'deleteAll' | 'color' | 'fontSize' | 'lineProps' | 'lineStyle' | 'lineText' | 'updateTextInputBBox' | 'toolbarPressSettings' | 'render';
type AnnotationEvent = 'hover' | 'click' | 'dblclick' | 'zoomChange' | 'drag' | 'dragStart' | 'dragEnd' | 'keyDown' | 'keyUp' | 'selectLast' | 'translate' | 'translateEnd' | 'copy' | 'cut' | 'paste' | 'cancel' | 'reset' | 'delete' | 'deleteAll' | 'color' | 'fontSize' | 'lineProps' | 'lineStyle' | 'lineText' | 'updateTextInputBBox' | 'toolbarPressSettings' | 'render';
export declare class AnnotationsStateMachine extends StateMachine<States, AnnotationType | AnnotationEvent> {

@@ -16,2 +16,3 @@ debug: _Util.DebugLogger;

private active?;
private snapping;
private copied?;

@@ -18,0 +19,0 @@ constructor(ctx: AnnotationsStateMachineContext);

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

import type { _ModuleSupport, _Scene, _Util } from 'ag-charts-community';
import type { AnnotationContext, AnnotationType, Constructor, GuardDragClickDoubleEvent, Point } from './annotationTypes';
import type { _ModuleSupport, _Scene } from 'ag-charts-community';
import type { AnnotationContext, AnnotationType, Constructor, Point } from './annotationTypes';
import type { ArrowDownProperties } from './arrow-down/arrowDownProperties';

@@ -17,2 +17,4 @@ import type { ArrowDownScene } from './arrow-down/arrowDownScene';

import type { LineScene } from './line/lineScene';
import type { DatePriceRangeProperties, DateRangeProperties, PriceRangeProperties, QuickDatePriceRangeProperties } from './measurer/measurerProperties';
import type { MeasurerScene } from './measurer/measurerScene';
import type { NoteProperties } from './note/noteProperties';

@@ -29,7 +31,11 @@ import type { NoteScene } from './note/noteScene';

export type ChannelPropertiesType = ParallelChannelProperties | DisjointChannelProperties;
export type AnnotationProperties = LinePropertiesType | ChannelPropertiesType | TextualPropertiesType | ShapePropertiesType;
export type AnnotationScene = LineScene | CrossLineScene | ParallelChannelScene | DisjointChannelScene | ArrowUpScene | ArrowDownScene | CalloutScene | CommentScene | NoteScene | TextScene;
export type MeasurerPropertiesType = DateRangeProperties | PriceRangeProperties | DatePriceRangeProperties | QuickDatePriceRangeProperties;
export type AnnotationProperties = LinePropertiesType | ChannelPropertiesType | TextualPropertiesType | ShapePropertiesType | MeasurerPropertiesType;
export type EphemeralPropertiesType = QuickDatePriceRangeProperties;
export type AnnotationScene = LineScene | CrossLineScene | ParallelChannelScene | DisjointChannelScene | ArrowUpScene | ArrowDownScene | CalloutScene | CommentScene | NoteScene | TextScene | MeasurerScene;
export interface AnnotationsStateMachineContext {
resetToIdle: () => void;
hoverAtCoords: (coords: _Util.Vec2, active?: number) => number | undefined;
hoverAtCoords: (coords: _ModuleSupport.Vec2, active?: number) => number | undefined;
getNodeAtCoords: (coords: _ModuleSupport.Vec2, active: number) => string | undefined;
getHoverCoords: () => _ModuleSupport.Vec2 | undefined;
select: (index?: number, previous?: number) => void;

@@ -39,2 +45,3 @@ selectLast: () => number;

stopInteracting: () => void;
translate: (index: number, translation: _ModuleSupport.Vec2) => void;
copy: (index: number) => AnnotationProperties | undefined;

@@ -55,4 +62,5 @@ paste: (datum: AnnotationProperties) => void;

showAnnotationOptions: (index: number) => void;
showAnnotationSettings: (index: number, sourceEvent?: Event) => void;
showAnnotationSettings: (index: number, sourceEvent?: Event, initialTab?: 'line' | 'text') => void;
recordAction: (label: string) => void;
addPostUpdateFns: (...fns: (() => void)[]) => void;
update: () => void;

@@ -66,6 +74,6 @@ }

update: (node: AnnotationSceneNode, datum: _ModuleSupport.BaseProperties, context: AnnotationContext) => void;
translate: (node: AnnotationSceneNode, datum: _ModuleSupport.BaseProperties, translation: _ModuleSupport.Vec2, context: AnnotationContext) => void;
copy: (node: AnnotationSceneNode, datum: _ModuleSupport.BaseProperties, copiedDatum: _ModuleSupport.BaseProperties, context: AnnotationContext) => Datum | undefined;
createState: (ctx: AnnotationsStateMachineContext & {
delete: () => void;
guardDragClickDoubleEvent: GuardDragClickDoubleEvent;
deselect: () => void;

@@ -76,3 +84,5 @@ showAnnotationOptions: () => void;

dragState: (ctx: AnnotationsStateMachineContext & {
setSelectedWithDrag: () => void;
setSnapping: (snapping: boolean) => void;
getSnapping: () => boolean;
getHoverCoords: () => _ModuleSupport.Vec2 | undefined;
}, helpers: AnnotationsStateMachineHelperFns) => _ModuleSupport.StateMachine<any, any>;

@@ -79,0 +89,0 @@ }

@@ -15,3 +15,7 @@ import type { AgAnnotationLineStyleType, _ModuleSupport, _Scene } from 'ag-charts-community';

ArrowUp = "arrow-up",
ArrowDown = "arrow-down"
ArrowDown = "arrow-down",
DateRange = "date-range",
PriceRange = "price-range",
DatePriceRange = "date-price-range",
QuickDatePriceRange = "quick-date-price-range"
}

@@ -21,20 +25,12 @@ export type TextualAnnotationType = AnnotationType.Callout | AnnotationType.Comment | AnnotationType.Note | AnnotationType.Text;

export type ChannelAnnotationType = AnnotationType.DisjointChannel | AnnotationType.ParallelChannel;
export type MeasurerAnnotationType = AnnotationType.DateRange | AnnotationType.PriceRange | AnnotationType.DatePriceRange | AnnotationType.QuickDatePriceRange;
export type EphemeralAnnotationType = AnnotationType.QuickDatePriceRange;
export type HasColorAnnotationType = AnnotationType;
export type HasLineStyleAnnotationType = LineAnnotationType | ChannelAnnotationType;
export type HasLineTextAnnotationType = LineAnnotationType | ChannelAnnotationType;
export type HasFontSizeAnnotationType = Exclude<TextualAnnotationType, AnnotationType.Note> | LineAnnotationType | ChannelAnnotationType;
export type HasLineStyleAnnotationType = Exclude<LineAnnotationType | ChannelAnnotationType | MeasurerAnnotationType, EphemeralAnnotationType>;
export type HasLineTextAnnotationType = Exclude<LineAnnotationType | ChannelAnnotationType | MeasurerAnnotationType, EphemeralAnnotationType>;
export type HasFontSizeAnnotationType = Exclude<Exclude<TextualAnnotationType, AnnotationType.Note> | LineAnnotationType | ChannelAnnotationType | MeasurerAnnotationType, EphemeralAnnotationType>;
export declare const ANNOTATION_TYPES: AnnotationType[];
export declare const ANNOTATION_BUTTONS: readonly [AnnotationType.Line, AnnotationType.HorizontalLine, AnnotationType.VerticalLine, AnnotationType.DisjointChannel, AnnotationType.ParallelChannel, AnnotationType.Callout, AnnotationType.Comment, AnnotationType.Note, AnnotationType.Text, AnnotationType.Arrow, AnnotationType.ArrowUp, AnnotationType.ArrowDown];
export declare const ANNOTATION_BUTTON_GROUPS: readonly ["line-menu", "text-menu", "shape-menu"];
export declare const ANNOTATION_BUTTON_GROUPS: readonly ["line-menu", "text-menu", "shape-menu", "measurer-menu"];
export declare function stringToAnnotationType(value: string): AnnotationType | undefined;
export interface Coords {
x: number;
y: number;
}
export interface LineCoords {
x1: number;
y1: number;
x2: number;
y2: number;
}
export interface Bounds {

@@ -56,3 +52,3 @@ x: number;

}
export interface AnnotationAxisContext extends Pick<_ModuleSupport.AxisContext, 'continuous' | 'direction' | 'position' | 'scaleBandwidth' | 'scaleConvert' | 'scaleDomain' | 'scaleInvert' | 'scaleInvertNearest' | 'scaleValueFormatter' | 'attachLabel' | 'inRange'> {
export interface AnnotationAxisContext extends Pick<_ModuleSupport.AxisContext, 'continuous' | 'direction' | 'position' | 'scale' | 'scaleBandwidth' | 'scaleConvert' | 'scaleDomain' | 'scaleInvert' | 'scaleInvertNearest' | 'scaleStep' | 'scaleValueFormatter' | 'attachLabel' | 'inRange'> {
bounds: _Scene.BBox;

@@ -66,7 +62,2 @@ labelPadding: number;

};
export interface GuardDragClickDoubleEvent {
guard: () => boolean;
hover: () => void;
reset: () => void;
}
export type AnnotationOptionsColorPickerType = 'line-color' | 'fill-color' | 'text-color';

@@ -73,0 +64,0 @@ export type AnnotationLineStyle = {

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

import { _Scene, _Util } from 'ag-charts-community';
import { _ModuleSupport, _Scene } from 'ag-charts-community';
import { type AnnotationContext, AnnotationType } from '../annotationTypes';
import { ShapeScene } from '../scenes/shapeScene';
import { ShapePointScene } from '../scenes/shapePointScene';
import type { ArrowDownProperties } from './arrowDownProperties';
export declare class ArrowDownScene extends ShapeScene<ArrowDownProperties> {
export declare class ArrowDownScene extends ShapePointScene<ArrowDownProperties> {
static is(value: unknown): value is ArrowDownScene;

@@ -10,3 +10,3 @@ type: AnnotationType;

constructor();
updateAnchor(datum: ArrowDownProperties, point: _Util.Vec2, context: AnnotationContext): {
updateAnchor(datum: ArrowDownProperties, point: _ModuleSupport.Vec2, context: AnnotationContext): {
x: number;

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

};
protected getHandleCoords(datum: ArrowDownProperties, point: _Util.Vec2): _Util.Vec2;
protected getHandleCoords(datum: ArrowDownProperties, point: _ModuleSupport.Vec2): _ModuleSupport.Vec2;
}

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

import { _Scene, _Util } from 'ag-charts-community';
import { type _ModuleSupport, _Scene } from 'ag-charts-community';
import { AnnotationType } from '../annotationTypes';
import { ShapeScene } from '../scenes/shapeScene';
import { ShapePointScene } from '../scenes/shapePointScene';
import type { ArrowUpProperties } from './arrowUpProperties';
export declare class ArrowUpScene extends ShapeScene<ArrowUpProperties> {
export declare class ArrowUpScene extends ShapePointScene<ArrowUpProperties> {
static is(value: unknown): value is ArrowUpScene;

@@ -10,3 +10,3 @@ type: AnnotationType;

constructor();
protected getHandleCoords(datum: ArrowUpProperties, point: _Util.Vec2): _Util.Vec2;
protected getHandleCoords(datum: ArrowUpProperties, point: _ModuleSupport.Vec2): _ModuleSupport.Vec2;
}
import { _ModuleSupport, type _Scene } from 'ag-charts-community';
import type { Coords } from './annotationTypes';
declare const BaseModuleInstance: typeof _ModuleSupport.BaseModuleInstance;

@@ -16,3 +15,3 @@ export declare const DEFAULT_ANNOTATION_AXIS_BUTTON_CLASS = "ag-charts-annotations__axis-button";

private coords?;
constructor(ctx: _ModuleSupport.ModuleContext, axisCtx: _ModuleSupport.AxisContext, onButtonClick: (coords?: Coords) => void, seriesRect: _Scene.BBox);
constructor(ctx: _ModuleSupport.ModuleContext, axisCtx: _ModuleSupport.AxisContext, onButtonClick: (coords?: _ModuleSupport.Vec2) => void, seriesRect: _Scene.BBox);
update(seriesRect: _Scene.BBox, padding: number): void;

@@ -23,2 +22,4 @@ private setup;

private hide;
private onHighlightChange;
private onKeyPress;
private getButtonCoordinates;

@@ -25,0 +26,0 @@ private getAxisCoordinates;

@@ -24,3 +24,3 @@ import { type AnnotationContext, type AnnotationOptionsColorPickerType, AnnotationType, type Padding } from '../annotationTypes';

getPadding(): Padding;
getTextInputCoords(context: AnnotationContext): {
getTextInputCoords(context: AnnotationContext, height: number): {
x: number;

@@ -27,0 +27,0 @@ y: number;

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

import { _Scene, type _Util } from 'ag-charts-community';
import { type AnnotationContext, AnnotationType, type Coords, type LineCoords } from '../annotationTypes';
import { type _ModuleSupport, _Scene } from 'ag-charts-community';
import { type AnnotationContext, AnnotationType } from '../annotationTypes';
import { TextualStartEndScene } from '../scenes/textualStartEndScene';

@@ -23,4 +23,4 @@ import type { CalloutProperties } from './calloutProperties';

constructor();
drag(datum: CalloutProperties, target: Coords, context: AnnotationContext): void;
protected getLabelCoords(datum: CalloutProperties, bbox: _Scene.BBox, coords: LineCoords): _Util.Vec2;
drag(datum: CalloutProperties, target: _ModuleSupport.Vec2, context: AnnotationContext, snapping: boolean): void;
protected getLabelCoords(datum: CalloutProperties, bbox: _Scene.BBox, coords: _ModuleSupport.Vec4): _ModuleSupport.Vec2;
protected getHandleStyles(datum: CalloutProperties, handle: 'start' | 'end'): {

@@ -37,11 +37,10 @@ fill: string | undefined;

};
protected updateAnchor(datum: CalloutProperties, bbox: _Scene.BBox, context: AnnotationContext): import("packages/ag-charts-community/dist/types/src/module-support").ToolbarAnchor;
protected updateShape(datum: CalloutProperties, textBBox: _Scene.BBox, coords: LineCoords): void;
protected updateAnchor(datum: CalloutProperties, coords: _ModuleSupport.Vec4, context: AnnotationContext, bbox: _Scene.BBox): void;
protected updateShape(datum: CalloutProperties, textBBox: _Scene.BBox, coords: _ModuleSupport.Vec4): void;
private updatePath;
drawPath(path: _Scene.ExtendedPath2D, { x0, y0, x1, y1, cx, cy }: _Scene.Corner, cornerRadius: number, type: PathType): void;
private calculateCalloutPlacement;
getDimensions(datum: CalloutProperties, textBBox: _Scene.BBox, coords: LineCoords): CalloutDimensions | undefined;
getCursor(): "pointer" | undefined;
getDimensions(datum: CalloutProperties, textBBox: _Scene.BBox, coords: _ModuleSupport.Vec4): CalloutDimensions | undefined;
containsPoint(x: number, y: number): boolean;
}
export {};

@@ -24,3 +24,3 @@ import { type AnnotationContext, type AnnotationOptionsColorPickerType, AnnotationType, type Padding } from '../annotationTypes';

getPadding(): Padding;
getTextInputCoords(context: AnnotationContext): {
getTextInputCoords(context: AnnotationContext, height: number): {
x: number;

@@ -27,0 +27,0 @@ y: number;

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

import { _Scene, type _Util } from 'ag-charts-community';
import { type _ModuleSupport, _Scene } from 'ag-charts-community';
import { type AnnotationContext, AnnotationType } from '../annotationTypes';

@@ -11,3 +11,3 @@ import { TextualPointScene } from '../scenes/textualPointScene';

protected updateShape(datum: CommentProperties, bbox: _Scene.BBox): void;
protected getLabelCoords(datum: CommentProperties, point: _Util.Vec2): _Util.Vec2;
protected getLabelCoords(datum: CommentProperties, point: _ModuleSupport.Vec2): _ModuleSupport.Vec2;
protected getHandleStyles(datum: CommentProperties): {

@@ -14,0 +14,0 @@ fill: string | undefined;

@@ -6,3 +6,3 @@ import { type PixelSize, _ModuleSupport, type _Scene } from 'ag-charts-community';

id: string;
isValidWithContext(_context: AnnotationContext, warningPrefix: string): boolean;
isValidWithContext(_context: AnnotationContext, warningPrefix?: string | undefined): boolean;
getDefaultColor(colorPickerType: AnnotationOptionsColorPickerType): string | undefined;

@@ -34,2 +34,4 @@ locked?: boolean | undefined;

new (...args: any[]): {
lineCap?: _Scene.ShapeLineCap | undefined;
computedLineDash?: number[] | undefined;
lineDash?: number[] | undefined;

@@ -45,4 +47,2 @@ lineDashOffset?: number | undefined;

text: LineTextProperties;
lineCap?: _Scene.ShapeLineCap;
computedLineDash?: PixelSize[];
isValidWithContext(context: AnnotationContext, warningPrefix: string): boolean;

@@ -56,3 +56,3 @@ getDefaultColor(_colorPickerType: AnnotationOptionsColorPickerType): string | undefined;

id: string;
isValidWithContext(_context: AnnotationContext, warningPrefix: string): boolean;
isValidWithContext(_context: AnnotationContext, warningPrefix?: string | undefined): boolean;
getDefaultColor(colorPickerType: AnnotationOptionsColorPickerType): string | undefined;

@@ -84,2 +84,4 @@ locked?: boolean | undefined;

new (...args: any[]): {
lineCap?: _Scene.ShapeLineCap | undefined;
computedLineDash?: number[] | undefined;
lineDash?: number[] | undefined;

@@ -95,4 +97,2 @@ lineDashOffset?: number | undefined;

text: LineTextProperties;
lineCap?: _Scene.ShapeLineCap;
computedLineDash?: PixelSize[];
isValidWithContext(context: AnnotationContext, warningPrefix: string): boolean;

@@ -99,0 +99,0 @@ getDefaultColor(_colorPickerType: AnnotationOptionsColorPickerType): string | undefined;

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

import { type _Scene } from 'ag-charts-community';
import type { AnnotationContext, Coords } from '../annotationTypes';
import { _ModuleSupport } from 'ag-charts-community';
import type { AnnotationContext } from '../annotationTypes';
import { AnnotationScene } from '../scenes/annotationScene';
import { CollidableLine } from '../scenes/collidableLineScene';
import type { CollidableText } from '../scenes/collidableTextScene';
import { type CrossLineProperties } from './crossLineProperties';

@@ -10,6 +10,6 @@ export declare class CrossLineScene extends AnnotationScene {

activeHandle?: 'middle';
readonly line: CollidableLine;
private readonly line;
private readonly middle;
private axisLabel?;
text?: _Scene.TransformableText;
text?: CollidableText;
private seriesRect?;

@@ -22,3 +22,3 @@ private dragState?;

private updateHandle;
private readonly updateText;
private updateText;
private createAxisLabel;

@@ -29,4 +29,5 @@ private updateAxisLabel;

toggleActive(active: boolean): void;
dragStart(datum: CrossLineProperties, target: Coords, context: AnnotationContext): void;
drag(datum: CrossLineProperties, target: Coords, context: AnnotationContext): void;
dragStart(datum: CrossLineProperties, target: _ModuleSupport.Vec2, context: AnnotationContext): void;
drag(datum: CrossLineProperties, target: _ModuleSupport.Vec2, context: AnnotationContext): void;
translate(datum: CrossLineProperties, { x, y }: _ModuleSupport.Vec2, context: AnnotationContext): void;
stopDragging(): void;

@@ -36,2 +37,3 @@ copy(datum: CrossLineProperties, copiedDatum: CrossLineProperties, context: AnnotationContext): CrossLineProperties | undefined;

containsPoint(x: number, y: number): boolean;
getNodeAtCoords(x: number, y: number): "line" | "text" | "handle" | undefined;
getAnchor(): {

@@ -38,0 +40,0 @@ x: number;

@@ -12,3 +12,3 @@ import { type Direction, _ModuleSupport, _Util } from 'ag-charts-community';

}
export declare class CrossLineStateMachine extends StateMachine<'start' | 'waiting-first-render', 'click' | 'cancel' | 'render' | 'reset'> {
export declare class CrossLineStateMachine extends StateMachine<'start' | 'waiting-first-render', 'click' | 'drag' | 'cancel' | 'render' | 'reset'> {
debug: _Util.DebugLogger;

@@ -15,0 +15,0 @@ constructor(direction: Direction, ctx: CrossLineStateMachineContext);

@@ -6,3 +6,3 @@ import { type PixelSize, _ModuleSupport, type _Scene } from 'ag-charts-community';

id: string;
isValidWithContext(_context: AnnotationContext, warningPrefix: string): boolean;
isValidWithContext(_context: AnnotationContext, warningPrefix?: string | undefined): boolean;
getDefaultColor(colorPickerType: AnnotationOptionsColorPickerType): string | undefined;

@@ -40,2 +40,4 @@ locked?: boolean | undefined;

new (...args: any[]): {
lineCap?: _Scene.ShapeLineCap | undefined;
computedLineDash?: number[] | undefined;
lineDash?: number[] | undefined;

@@ -52,4 +54,3 @@ lineDashOffset?: number | undefined;

text: ChannelTextProperties;
lineCap?: _Scene.ShapeLineCap;
computedLineDash?: PixelSize[];
snapToAngle: number;
get bottom(): {

@@ -56,0 +57,0 @@ start: {

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

import { _Util } from 'ag-charts-community';
import type { AnnotationContext, Coords, LineCoords } from '../annotationTypes';
import { _ModuleSupport } from 'ag-charts-community';
import type { AnnotationContext } from '../annotationTypes';
import { ChannelScene } from '../scenes/channelScene';

@@ -18,14 +18,12 @@ import { DivariantHandle, UnivariantHandle } from '../scenes/handle';

constructor();
toggleHandles(show: boolean | Partial<Record<ChannelHandle, boolean>>): void;
toggleActive(active: boolean): void;
dragHandle(datum: DisjointChannelProperties, target: Coords, context: AnnotationContext): void;
protected getOtherCoords(datum: DisjointChannelProperties, topLeft: Coords, topRight: Coords, context: AnnotationContext): Coords[];
updateLines(datum: DisjointChannelProperties, top: LineCoords, bottom: LineCoords): void;
updateHandles(datum: DisjointChannelProperties, top: LineCoords, bottom: LineCoords): void;
dragHandle(datum: DisjointChannelProperties, target: _ModuleSupport.Vec2, context: AnnotationContext, snapping: boolean): void;
protected getOtherCoords(datum: DisjointChannelProperties, topLeft: _ModuleSupport.Vec2, topRight: _ModuleSupport.Vec2, context: AnnotationContext): _ModuleSupport.Vec2[];
updateLines(datum: DisjointChannelProperties, top: _ModuleSupport.Vec4, bottom: _ModuleSupport.Vec4): void;
updateHandles(datum: DisjointChannelProperties, top: _ModuleSupport.Vec4, bottom: _ModuleSupport.Vec4): void;
updateText: (datum: {
strokeWidth?: number | undefined;
text?: import("../annotationProperties").ChannelTextProperties | undefined;
}, top: LineCoords, bottom: LineCoords) => void;
protected getBackgroundPoints(datum: DisjointChannelProperties, top: LineCoords, bottom: LineCoords, bounds: LineCoords): [_Util.Vec2, _Util.Vec2];
}, top: _ModuleSupport.Vec4, bottom: _ModuleSupport.Vec4) => void;
getBackgroundPoints(datum: DisjointChannelProperties, top: _ModuleSupport.Vec4, bottom: _ModuleSupport.Vec4, bounds: _ModuleSupport.Vec4): [_ModuleSupport.Vec2, _ModuleSupport.Vec2];
}
export {};
import { _ModuleSupport, _Util } from 'ag-charts-community';
import { type GuardDragClickDoubleEvent } from '../annotationTypes';
import type { AnnotationsStateMachineContext } from '../annotationsSuperTypes';

@@ -13,5 +12,4 @@ import { DisjointChannelProperties } from './disjointChannelProperties';

showAnnotationOptions: () => void;
guardDragClickDoubleEvent: GuardDragClickDoubleEvent;
}
export declare class DisjointChannelStateMachine extends StateMachine<'start' | 'end' | 'height', 'click' | 'hover' | 'drag' | 'cancel' | 'reset'> {
export declare class DisjointChannelStateMachine extends StateMachine<'start' | 'end' | 'height', 'click' | 'hover' | 'keyDown' | 'keyUp' | 'drag' | 'dragEnd' | 'cancel' | 'reset'> {
debug: _Util.DebugLogger;

@@ -18,0 +16,0 @@ constructor(ctx: DisjointChannelStateMachineContext);

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

import { type PixelSize, _ModuleSupport, type _Scene } from 'ag-charts-community';
import { type PixelSize, type _Scene } from 'ag-charts-community';
import { LineTextProperties } from '../annotationProperties';
import { type AnnotationContext, type AnnotationOptionsColorPickerType, AnnotationType } from '../annotationTypes';
declare const LineTypeProperties_base: (abstract new (...args: any[]) => {
id: string;
isValidWithContext(_context: AnnotationContext, warningPrefix: string): boolean;
getDefaultColor(colorPickerType: AnnotationOptionsColorPickerType): string | undefined;
locked?: boolean | undefined;
visible?: boolean | undefined;
set(properties: object): any;
isValid<TContext = Omit<object, "type">>(this: TContext, warningPrefix?: string | undefined): boolean;
toJson<J>(this: J): object;
}) & {
import { StartEndProperties } from '../properties/startEndProperties';
declare const LineTypeProperties_base: {
new (...args: any[]): {
start: import("../annotationProperties").PointProperties;
end: import("../annotationProperties").PointProperties;
localeManager?: import("packages/ag-charts-community/dist/types/src/locale/localeManager").LocaleManager | undefined;
setLocaleManager(localeManager: import("packages/ag-charts-community/dist/types/src/locale/localeManager").LocaleManager): void;
};
} & {
new (...args: any[]): {
handle: import("../annotationProperties").HandleProperties;
};
} & {
new (...args: any[]): {
startCap?: "arrow" | undefined;

@@ -40,2 +28,4 @@ endCap?: "arrow" | undefined;

new (...args: any[]): {
lineCap?: _Scene.ShapeLineCap | undefined;
computedLineDash?: number[] | undefined;
lineDash?: number[] | undefined;

@@ -45,7 +35,5 @@ lineDashOffset?: number | undefined;

};
} & typeof _ModuleSupport.BaseProperties;
} & typeof StartEndProperties;
export declare abstract class LineTypeProperties extends LineTypeProperties_base {
text: LineTextProperties;
lineCap?: _Scene.ShapeLineCap;
computedLineDash?: PixelSize[];
isValidWithContext(context: AnnotationContext, warningPrefix?: string): boolean;

@@ -52,0 +40,0 @@ getDefaultColor(colorPickerType: AnnotationOptionsColorPickerType): string | undefined;

@@ -1,31 +0,28 @@

import { type _ModuleSupport, _Scene } from 'ag-charts-community';
import type { AnnotationContext, Coords, LineCoords } from '../annotationTypes';
import { CollidableLine } from '../scenes/collidableLineScene';
import { LinearScene } from '../scenes/linearScene';
import { _ModuleSupport, _Scene } from 'ag-charts-community';
import type { AnnotationContext } from '../annotationTypes';
import type { CollidableText } from '../scenes/collidableTextScene';
import { StartEndScene } from '../scenes/startEndScene';
import type { LineTypeProperties } from './lineProperties';
export declare class LineScene extends LinearScene<LineTypeProperties> {
export declare class LineScene extends StartEndScene<LineTypeProperties> {
static is(value: unknown): value is LineScene;
type: string;
activeHandle?: 'start' | 'end';
readonly line: CollidableLine;
private readonly start;
private readonly end;
text?: _Scene.TransformableText;
private readonly line;
text?: CollidableText;
private startCap?;
private endCap?;
private readonly anchor;
constructor();
update(datum: LineTypeProperties, context: AnnotationContext): void;
updateLine(datum: LineTypeProperties, coords: LineCoords, context: AnnotationContext): void;
updateHandles(datum: LineTypeProperties, coords: LineCoords, locked: boolean): void;
private readonly updateText;
updateCaps(datum: LineTypeProperties, coords: LineCoords): void;
updateAnchor(coords: LineCoords): void;
toggleHandles(show: boolean | Partial<Record<'start' | 'end', boolean>>): void;
toggleActive(active: boolean): void;
dragHandle(datum: LineTypeProperties, target: Coords, context: AnnotationContext): void;
stopDragging(): void;
getAnchor(): _ModuleSupport.ToolbarAnchor;
getCursor(): "pointer" | undefined;
private updateLine;
private updateText;
private updateCaps;
updateAnchor(_datum: LineTypeProperties, coords: _ModuleSupport.Vec4, _context: AnnotationContext, _bbox?: _Scene.BBox): void;
containsPoint(x: number, y: number): boolean;
getNodeAtCoords(x: number, y: number): string | undefined;
protected getHandleCoords(_datum: LineTypeProperties, coords: _ModuleSupport.Vec4, handle: 'start' | 'end', _bbox?: _Scene.BBox | undefined): _ModuleSupport.Vec2;
protected getHandleStyles(datum: LineTypeProperties): {
fill: string | undefined;
stroke: string | undefined;
strokeOpacity: number | undefined;
strokeWidth: number | undefined;
};
}
import { _ModuleSupport, _Util } from 'ag-charts-community';
import type { GuardDragClickDoubleEvent } from '../annotationTypes';
import type { AnnotationsStateMachineContext } from '../annotationsSuperTypes';

@@ -13,5 +12,4 @@ import { ArrowProperties, LineProperties } from './lineProperties';

showAnnotationOptions: () => void;
guardDragClickDoubleEvent: GuardDragClickDoubleEvent;
}
declare abstract class LineTypeStateMachine<Datum extends ArrowProperties | LineProperties> extends StateMachine<'start' | 'end', 'click' | 'hover' | 'drag' | 'reset' | 'cancel'> {
declare abstract class LineTypeStateMachine<Datum extends ArrowProperties | LineProperties> extends StateMachine<'start' | 'end', 'click' | 'hover' | 'keyDown' | 'keyUp' | 'drag' | 'dragEnd' | 'reset' | 'cancel'> {
debug: _Util.DebugLogger;

@@ -18,0 +16,0 @@ constructor(ctx: LineStateMachineContext<Datum>);

import { _ModuleSupport } from 'ag-charts-community';
import { type AnnotationContext, type AnnotationOptionsColorPickerType, AnnotationType, type Padding } from '../annotationTypes';
import { TextualPointProperties } from '../properties/textualPointProperties';
export declare const DEFAULT_NOTE_PADDING = 10;
export declare const HANDLE_SIZE = 11;
export declare const ICON_HEIGHT = 20;
export declare const ICON_WIDTH = 22;
export declare const ICON_SPACING = 10;
export declare const LABEL_OFFSET: number;
export declare const TOOLBAR_OFFSET = 34;
declare const NoteBackgroundProperties_base: {

@@ -34,3 +41,3 @@ new (...args: any[]): {

background: NoteBackgroundProperties;
position: "bottom";
position: 'bottom' | 'top';
alignment: "center";

@@ -41,3 +48,3 @@ width: number;

getPadding(): Padding;
getTextInputCoords(context: AnnotationContext): {
getTextInputCoords(context: AnnotationContext, height: number): {
x: number;

@@ -44,0 +51,0 @@ y: number;

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

import { _Scene, _Util } from 'ag-charts-community';
import { _ModuleSupport, _Scene } from 'ag-charts-community';
import { type AnnotationContext, AnnotationType } from '../annotationTypes';
import { TextualPointScene } from '../scenes/textualPointScene';
import type { NoteProperties } from './noteProperties';
export declare const LABEL_OFFSET: number;
import { type NoteProperties } from './noteProperties';
export declare class NoteScene extends TextualPointScene<NoteProperties> {

@@ -15,3 +14,3 @@ static is(value: unknown): value is NoteScene;

update(datum: NoteProperties, context: AnnotationContext): void;
getTextBBox(datum: NoteProperties, coords: _Util.Vec2, context: AnnotationContext): _Scene.BBox;
getTextBBox(datum: NoteProperties, coords: _ModuleSupport.Vec2, context: AnnotationContext): _Scene.BBox;
updateLabel(datum: NoteProperties, bbox: _Scene.BBox): void;

@@ -23,6 +22,5 @@ updateShape(datum: NoteProperties, bbox: _Scene.BBox): void;

y: number;
position: "above";
position: "above" | "below";
};
protected getLabelCoords(datum: NoteProperties, bbox: _Scene.BBox): _Util.Vec2;
protected getHandleCoords(_datum: NoteProperties, _bbox: _Scene.BBox, coords: _Util.Vec2): _Util.Vec2;
protected getHandleCoords(_datum: NoteProperties, coords: _ModuleSupport.Vec2, _bbox: _Scene.BBox): _ModuleSupport.Vec2;
protected getHandleStyles(datum: NoteProperties): {

@@ -29,0 +27,0 @@ fill: string | undefined;

@@ -6,3 +6,3 @@ import { type PixelSize, _ModuleSupport, type _Scene } from 'ag-charts-community';

id: string;
isValidWithContext(_context: AnnotationContext, warningPrefix: string): boolean;
isValidWithContext(_context: AnnotationContext, warningPrefix?: string | undefined): boolean;
getDefaultColor(colorPickerType: AnnotationOptionsColorPickerType): string | undefined;

@@ -40,2 +40,4 @@ locked?: boolean | undefined;

new (...args: any[]): {
lineCap?: _Scene.ShapeLineCap | undefined;
computedLineDash?: number[] | undefined;
lineDash?: number[] | undefined;

@@ -52,4 +54,3 @@ lineDashOffset?: number | undefined;

text: ChannelTextProperties;
lineCap?: _Scene.ShapeLineCap;
computedLineDash?: PixelSize[];
snapToAngle: number;
get bottom(): {

@@ -56,0 +57,0 @@ start: {

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

import { _Util } from 'ag-charts-community';
import type { AnnotationContext, Coords, LineCoords } from '../annotationTypes';
import { _ModuleSupport } from 'ag-charts-community';
import type { AnnotationContext } from '../annotationTypes';
import { ChannelScene } from '../scenes/channelScene';

@@ -21,15 +21,14 @@ import { DivariantHandle, UnivariantHandle } from '../scenes/handle';

constructor();
toggleHandles(show: boolean | Partial<Record<ChannelHandle, boolean>>): void;
toggleActive(active: boolean): void;
dragHandle(datum: ParallelChannelProperties, target: Coords, context: AnnotationContext): void;
protected getOtherCoords(datum: ParallelChannelProperties, topLeft: Coords, topRight: Coords, context: AnnotationContext): Coords[];
dragHandle(datum: ParallelChannelProperties, target: _ModuleSupport.Vec2, context: AnnotationContext, snapping: boolean): void;
protected getOtherCoords(datum: ParallelChannelProperties, topLeft: _ModuleSupport.Vec2, topRight: _ModuleSupport.Vec2, context: AnnotationContext): _ModuleSupport.Vec2[];
containsPoint(x: number, y: number): boolean;
updateLines(datum: ParallelChannelProperties, top: LineCoords, bottom: LineCoords, context: AnnotationContext, naturalTop: LineCoords, naturalBottom: LineCoords): void;
updateHandles(datum: ParallelChannelProperties, top: LineCoords, bottom: LineCoords): void;
getNodeAtCoords(x: number, y: number): string | undefined;
updateLines(datum: ParallelChannelProperties, top: _ModuleSupport.Vec4, bottom: _ModuleSupport.Vec4, context: AnnotationContext, naturalTop: _ModuleSupport.Vec4, naturalBottom: _ModuleSupport.Vec4): void;
updateHandles(datum: ParallelChannelProperties, top: _ModuleSupport.Vec4, bottom: _ModuleSupport.Vec4): void;
updateText: (datum: {
strokeWidth?: number | undefined;
text?: import("../annotationProperties").ChannelTextProperties | undefined;
}, top: LineCoords, bottom: LineCoords) => void;
protected getBackgroundPoints(datum: ParallelChannelProperties, top: LineCoords, bottom: LineCoords, bounds: LineCoords): [_Util.Vec2, _Util.Vec2];
}, top: _ModuleSupport.Vec4, bottom: _ModuleSupport.Vec4) => void;
getBackgroundPoints(datum: ParallelChannelProperties, top: _ModuleSupport.Vec4, bottom: _ModuleSupport.Vec4, bounds: _ModuleSupport.Vec4): [_ModuleSupport.Vec2, _ModuleSupport.Vec2];
}
export {};
import { _ModuleSupport, _Util } from 'ag-charts-community';
import { type GuardDragClickDoubleEvent } from '../annotationTypes';
import type { AnnotationsStateMachineContext } from '../annotationsSuperTypes';

@@ -13,5 +12,4 @@ import { ParallelChannelProperties } from './parallelChannelProperties';

showAnnotationOptions: () => void;
guardDragClickDoubleEvent: GuardDragClickDoubleEvent;
}
export declare class ParallelChannelStateMachine extends StateMachine<'start' | 'end' | 'height', 'click' | 'hover' | 'drag' | 'cancel' | 'reset'> {
export declare class ParallelChannelStateMachine extends StateMachine<'start' | 'end' | 'height', 'click' | 'hover' | 'keyDown' | 'keyUp' | 'drag' | 'dragEnd' | 'cancel' | 'reset'> {
debug: _Util.DebugLogger;

@@ -18,0 +16,0 @@ constructor(ctx: ParallelChannelStateMachineContext);

@@ -5,3 +5,3 @@ import { _ModuleSupport } from 'ag-charts-community';

id: string;
isValidWithContext(_context: AnnotationContext, warningPrefix: string): boolean;
isValidWithContext(_context: AnnotationContext, warningPrefix?: string | undefined): boolean;
getDefaultColor(colorPickerType: AnnotationOptionsColorPickerType): string | undefined;

@@ -8,0 +8,0 @@ locked?: boolean | undefined;

@@ -6,3 +6,3 @@ import { _ModuleSupport } from 'ag-charts-community';

id: string;
isValidWithContext(_context: AnnotationContext, warningPrefix: string): boolean;
isValidWithContext(_context: AnnotationContext, warningPrefix?: string | undefined): boolean;
getDefaultColor(colorPickerType: AnnotationOptionsColorPickerType): string | undefined;

@@ -54,7 +54,8 @@ locked?: boolean | undefined;

};
getTextInputCoords(context: AnnotationContext): {
getTextInputCoords(context: AnnotationContext, _height: number): {
x: number;
y: number;
};
getTextPosition(): AnnotationTextPosition;
}
export {};

@@ -1,14 +0,5 @@

import { _ModuleSupport } from 'ag-charts-community';
import { type AnnotationContext, type AnnotationOptionsColorPickerType, type Padding } from '../annotationTypes';
import type { AnnotationTextAlignment, AnnotationTextPosition } from '../text/util';
declare const TextualStartEndProperties_base: (abstract new (...args: any[]) => {
id: string;
isValidWithContext(_context: AnnotationContext, warningPrefix: string): boolean;
getDefaultColor(colorPickerType: AnnotationOptionsColorPickerType): string | undefined;
locked?: boolean | undefined;
visible?: boolean | undefined;
set(properties: object): any;
isValid<TContext = Omit<object, "type">>(this: TContext, warningPrefix?: string | undefined): boolean;
toJson<J>(this: J): object;
}) & {
import { StartEndProperties } from './startEndProperties';
declare const TextualStartEndProperties_base: {
new (...args: any[]): {

@@ -20,11 +11,2 @@ localeManager?: import("packages/ag-charts-community/dist/types/src/locale/localeManager").LocaleManager | undefined;

new (...args: any[]): {
start: import("../annotationProperties").PointProperties;
end: import("../annotationProperties").PointProperties;
};
} & {
new (...args: any[]): {
handle: import("../annotationProperties").HandleProperties;
};
} & {
new (...args: any[]): {
padding?: number | undefined;

@@ -42,3 +24,3 @@ textAlign: import("ag-charts-community").TextAlign;

};
} & typeof _ModuleSupport.BaseProperties;
} & typeof StartEndProperties;
export declare class TextualStartEndProperties extends TextualStartEndProperties_base {

@@ -60,7 +42,8 @@ text: string;

};
getTextInputCoords(context: AnnotationContext): {
getTextInputCoords(context: AnnotationContext, _height: number): {
x: number;
y: number;
};
getTextPosition(): AnnotationTextPosition;
}
export {};

@@ -5,3 +5,3 @@ import { _ModuleSupport, _Scene } from 'ag-charts-community';

name: string;
zIndex: _ModuleSupport.Layers;
zIndex: _ModuleSupport.ZIndexMap;
abstract type: string;

@@ -15,4 +15,6 @@ abstract activeHandle?: string;

abstract getCursor(): string | undefined;
abstract getNodeAtCoords(x: number, y: number): string | undefined;
toggleHovered(hovered: boolean): void;
private nonHandleChildren;
protected computeBBoxWithoutHandles(): _Scene.BBox;
}

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

import { _ModuleSupport, _Scene, _Util } from 'ag-charts-community';
import type { ChannelTextProperties, PointProperties } from '../annotationProperties';
import type { AnnotationContext, LineCoords } from '../annotationTypes';
import { _ModuleSupport, _Scene } from 'ag-charts-community';
import type { ChannelTextProperties } from '../annotationProperties';
import type { AnnotationContext, Point } from '../annotationTypes';
import { CollidableLine } from './collidableLineScene';
import type { CollidableText } from './collidableTextScene';
import type { Handle } from './handle';
import { LinearScene } from './linearScene';
type ChannelHandle = Partial<'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'topMiddle' | 'bottomMiddle'>;
export declare abstract class ChannelScene<Datum extends {

@@ -14,7 +16,7 @@ background: {

visible?: boolean;
start: Pick<PointProperties, 'x' | 'y'>;
end: Pick<PointProperties, 'x' | 'y'>;
start: Point;
end: Point;
bottom: {
start: Pick<PointProperties, 'x' | 'y'>;
end: Pick<PointProperties, 'x' | 'y'>;
start: Point;
end: Point;
};

@@ -29,6 +31,8 @@ strokeWidth?: number;

protected bottomLine: CollidableLine;
protected background: _Scene.Path;
text?: _Scene.TransformableText;
background: _Scene.Path;
text?: CollidableText;
private readonly anchor;
update(datum: Datum, context: AnnotationContext): void;
snapToAngle(target: _ModuleSupport.Vec2, context: AnnotationContext, handle: ChannelHandle, originHandle: ChannelHandle, angle: number, direction?: number): Point | undefined;
toggleHandles(show: boolean | Partial<Record<ChannelHandle, boolean>>): void;
toggleActive(active: boolean): void;

@@ -39,8 +43,12 @@ stopDragging(): void;

containsPoint(x: number, y: number): boolean;
protected abstract updateLines(datum: Datum, top: LineCoords, bottom: LineCoords, context: AnnotationContext, naturalTop: LineCoords, naturalBottom: LineCoords): void;
protected abstract updateHandles(datum: Datum, top: LineCoords, bottom: LineCoords): void;
protected abstract updateText(datum: Datum, top: LineCoords, bottom: LineCoords): void;
protected updateBackground(datum: Datum, top: LineCoords, bottom: LineCoords, context: AnnotationContext): void;
protected updateAnchor(top: LineCoords, bottom: LineCoords): void;
protected abstract getBackgroundPoints(datum: Datum, top: LineCoords, bottom: LineCoords, bounds: LineCoords): Array<_Util.Vec2>;
getNodeAtCoords(x: number, y: number): string | undefined;
protected abstract updateLines(datum: Datum, top: _ModuleSupport.Vec4, bottom: _ModuleSupport.Vec4, context: AnnotationContext, naturalTop: _ModuleSupport.Vec4, naturalBottom: _ModuleSupport.Vec4): void;
protected abstract updateHandles(datum: Datum, top: _ModuleSupport.Vec4, bottom: _ModuleSupport.Vec4): void;
protected abstract updateText(datum: Datum, top: _ModuleSupport.Vec4, bottom: _ModuleSupport.Vec4): void;
protected readonly updateBackground: (datum: {
background: import("ag-charts-community").FillOptions;
}, top: _ModuleSupport.Vec4, bottom: _ModuleSupport.Vec4, context: AnnotationContext) => void;
protected updateAnchor(top: _ModuleSupport.Vec4, bottom: _ModuleSupport.Vec4): void;
abstract getBackgroundPoints(datum: Datum, top: _ModuleSupport.Vec4, bottom: _ModuleSupport.Vec4, bounds: _ModuleSupport.Vec4): Array<_ModuleSupport.Vec2>;
}
export {};

@@ -21,4 +21,4 @@ import { _Scene } from 'ag-charts-community';

*/
protected applyClipMask(ctx: any): void;
protected closeClipMask(ctx: any): void;
protected applyClipMask(ctx: CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D): void;
protected closeClipMask(ctx: CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D): void;
}

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

import { _Scene } from 'ag-charts-community';
import type { Coords } from '../annotationTypes';
import { _ModuleSupport, _Scene } from 'ag-charts-community';
type InvariantHandleStyles = {

@@ -25,3 +24,3 @@ x: number;

static readonly INACTIVE_STROKE_WIDTH = 2;
protected abstract handle: _Scene.Rect | _Scene.Circle;
abstract handle: _Scene.Rect | _Scene.Circle;
protected abstract glow: _Scene.Rect | _Scene.Circle;

@@ -35,5 +34,5 @@ protected active: boolean;

}): void;
drag(target: Coords): {
point: Coords;
offset: Coords;
drag(target: _ModuleSupport.Vec2): {
point: _ModuleSupport.Vec2;
offset: _ModuleSupport.Vec2;
};

@@ -54,5 +53,5 @@ toggleActive(active: boolean): void;

update(styles: InvariantHandleStyles): void;
drag(target: Coords): {
point: Coords;
offset: Coords;
drag(target: _ModuleSupport.Vec2): {
point: _ModuleSupport.Vec2;
offset: _ModuleSupport.Vec2;
};

@@ -71,4 +70,4 @@ }

update(styles: UnivariantHandleStyles): void;
drag(target: Coords): {
point: Coords;
drag(target: _ModuleSupport.Vec2): {
point: _ModuleSupport.Vec2;
offset: {

@@ -90,3 +89,4 @@ x: number;

update(styles: DivariantHandleStyles): void;
getCursor(): string;
}
export {};

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

import { _Util } from 'ag-charts-community';
import { _ModuleSupport } from 'ag-charts-community';
import type { PointProperties } from '../annotationProperties';
import type { AnnotationContext, Coords, LineCoords } from '../annotationTypes';
import type { AnnotationContext } from '../annotationTypes';
import { AnnotationScene } from './annotationScene';

@@ -13,7 +13,7 @@ export declare abstract class LinearScene<Datum extends {

protected dragState?: {
offset: Coords;
start: Coords;
end: Coords;
offset: _ModuleSupport.Vec2;
start: _ModuleSupport.Vec2;
end: _ModuleSupport.Vec2;
};
protected extendLine({ x1, y1, x2, y2 }: LineCoords, datum: Datum, context: AnnotationContext): {
protected extendLine({ x1, y1, x2, y2 }: _ModuleSupport.Vec4, datum: Datum, context: AnnotationContext): {
x1: number;

@@ -24,15 +24,16 @@ y1: number;

};
dragStart(datum: Datum, target: Coords, context: AnnotationContext): void;
drag(datum: Datum, target: Coords, context: AnnotationContext): void;
protected abstract dragHandle(datum: Datum, target: Coords, context: AnnotationContext): void;
protected dragAll(datum: Datum, target: Coords, context: AnnotationContext): void;
dragStart(datum: Datum, target: _ModuleSupport.Vec2, context: AnnotationContext): void;
drag(datum: Datum, target: _ModuleSupport.Vec2, context: AnnotationContext, snapping: boolean): void;
protected abstract dragHandle(datum: Datum, target: _ModuleSupport.Vec2, context: AnnotationContext, snapping: boolean): void;
protected dragAll(datum: Datum, target: _ModuleSupport.Vec2, context: AnnotationContext): void;
translatePoints({ datum, start, end, translation, context, }: {
datum: Datum;
start: Coords;
end: Coords;
translation: _Util.Vec2;
start: _ModuleSupport.Vec2;
end: _ModuleSupport.Vec2;
translation: _ModuleSupport.Vec2;
context: AnnotationContext;
}): void;
translate(datum: Datum, translation: _ModuleSupport.Vec2, context: AnnotationContext): void;
copy(datum: Datum, copiedDatum: Datum, context: AnnotationContext): Datum | undefined;
protected getOtherCoords(_datum: Datum, _topLeft: Coords, _topRight: Coords, _context: AnnotationContext): Array<Coords>;
protected getOtherCoords(_datum: Datum, _topLeft: _ModuleSupport.Vec2, _topRight: _ModuleSupport.Vec2, _context: AnnotationContext): Array<_ModuleSupport.Vec2>;
}

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

import { _Scene, _Util } from 'ag-charts-community';
import { _ModuleSupport, _Scene } from 'ag-charts-community';
import type { ChannelTextProperties, LineTextProperties } from '../annotationProperties';
import type { LineCoords } from '../annotationTypes';
import type { AnnotationScene } from './annotationScene';
import type { CollidableLine } from './collidableLineScene';
import { CollidableText } from './collidableTextScene';
interface Numbers {
left: _Util.Vec2;
right: _Util.Vec2;
inset: _Util.Vec2;
offset: _Util.Vec2;
normal: _Util.Vec2;
left: _ModuleSupport.Vec2;
right: _ModuleSupport.Vec2;
inset: _ModuleSupport.Vec2;
offset: _ModuleSupport.Vec2;
normal: _ModuleSupport.Vec2;
angle: number;

@@ -19,5 +19,11 @@ }

}>(this: AnnotationScene & {
line: CollidableLine;
text?: _Scene.TransformableText;
}, datum: Datum, coords: LineCoords): void;
text?: CollidableText;
}, line: CollidableLine, datum: Datum, coords: _ModuleSupport.Vec4): {
clipMask: {
x: number;
y: number;
radius: number;
};
numbers: Numbers;
} | undefined;
static updateChannelText<Datum extends {

@@ -28,10 +34,10 @@ strokeWidth?: number;

text?: _Scene.TransformableText;
}, offsetInsideTextLabel: boolean, datum: Datum, top: LineCoords, bottom: LineCoords): void;
static getNumbers(coords: LineCoords, fontSize?: number, strokeWidth?: number): Numbers;
}, offsetInsideTextLabel: boolean, datum: Datum, top: _ModuleSupport.Vec4, bottom: _ModuleSupport.Vec4): void;
static getNumbers(coords: _ModuleSupport.Vec4, fontSize?: number, strokeWidth?: number): Numbers;
static positionAndAlignment({ left, right, normal, angle, inset, offset }: Numbers, position?: 'top' | 'center' | 'bottom', alignment?: 'left' | 'center' | 'right', offsetInsideTextLabel?: boolean): {
point: _Util.Vec2;
point: _ModuleSupport.Vec2;
textBaseline: "bottom" | "middle" | "top";
};
static setProperties(scene: _Scene.TransformableText, datum: LineTextProperties | ChannelTextProperties, point: _Util.Vec2, angle: number, textBaseline: CanvasTextBaseline): void;
static setProperties(scene: _Scene.TransformableText, datum: LineTextProperties | ChannelTextProperties, point: _ModuleSupport.Vec2, angle: number, textBaseline: CanvasTextBaseline): void;
}
export {};

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

import { _ModuleSupport, _Util } from 'ag-charts-community';
import type { AnnotationContext, Coords } from '../annotationTypes';
import { _ModuleSupport, _Scene } from 'ag-charts-community';
import type { AnnotationContext } from '../annotationTypes';
import type { PointProperties } from '../properties/pointProperties';

@@ -10,9 +10,10 @@ import { AnnotationScene } from './annotationScene';

protected dragState?: {
offset: Coords;
handle: Coords;
offset: _ModuleSupport.Vec2;
handle: _ModuleSupport.Vec2;
};
protected anchor: _ModuleSupport.ToolbarAnchor;
update(datum: Datum, context: AnnotationContext): void;
dragStart(datum: Datum, target: Coords, context: AnnotationContext): void;
drag(datum: Datum, target: Coords, context: AnnotationContext): void;
dragStart(datum: Datum, target: _ModuleSupport.Vec2, context: AnnotationContext): void;
drag(datum: Datum, target: _ModuleSupport.Vec2, context: AnnotationContext): void;
translate(datum: Datum, translation: _ModuleSupport.Vec2, context: AnnotationContext): void;
toggleHandles(show: boolean | Partial<Record<'handle', boolean>>): void;

@@ -23,6 +24,7 @@ toggleActive(active: boolean): void;

getAnchor(): _ModuleSupport.ToolbarAnchor;
getCursor(): "pointer" | undefined;
getCursor(): string;
containsPoint(x: number, y: number): boolean;
protected updateHandle(datum: Datum, point: _Util.Vec2): void;
protected updateAnchor(datum: Datum, point: _Util.Vec2, context: AnnotationContext): {
getNodeAtCoords(x: number, y: number): string | undefined;
protected updateHandle(datum: Datum, point: _ModuleSupport.Vec2, bbox?: _Scene.BBox): void;
protected updateAnchor(datum: Datum, point: _ModuleSupport.Vec2, context: AnnotationContext): {
x: number;

@@ -32,3 +34,3 @@ y: number;

};
protected getHandleCoords(_datum: Datum, point: _Util.Vec2): _Util.Vec2;
protected getHandleCoords(_datum: Datum, point: _ModuleSupport.Vec2, _bbox?: _Scene.BBox): _ModuleSupport.Vec2;
protected getHandleStyles(datum: Datum): {

@@ -35,0 +37,0 @@ fill: string | undefined;

@@ -1,30 +0,17 @@

import { _ModuleSupport, _Scene, _Util } from 'ag-charts-community';
import type { AnnotationContext, Coords } from '../annotationTypes';
import { _ModuleSupport, _Scene } from 'ag-charts-community';
import type { AnnotationContext } from '../annotationTypes';
import type { TextualPointProperties } from '../properties/textualPointProperties';
import { AnnotationScene } from './annotationScene';
import { DivariantHandle } from './handle';
export declare abstract class TextualPointScene<Datum extends TextualPointProperties> extends AnnotationScene {
import { PointScene } from './pointScene';
export declare abstract class TextualPointScene<Datum extends TextualPointProperties> extends PointScene<Datum> {
activeHandle?: string;
protected readonly label: _Scene.Text;
protected readonly handle: DivariantHandle;
protected dragState?: {
offset: Coords;
handle: Coords;
};
private anchor;
protected anchor: _ModuleSupport.ToolbarAnchor;
private textInputBBox?;
setTextInputBBox(bbox?: _Scene.BBox): void;
update(datum: Datum, context: AnnotationContext): void;
dragStart(datum: Datum, target: Coords, context: AnnotationContext): void;
drag(datum: Datum, target: Coords, context: AnnotationContext): void;
copy(datum: Datum, copiedDatum: Datum, context: AnnotationContext): Datum;
toggleHandles(show: boolean | Partial<Record<'handle', boolean>>): void;
toggleActive(active: boolean): void;
stopDragging(): void;
getAnchor(): _ModuleSupport.ToolbarAnchor;
getCursor(): "pointer" | undefined;
containsPoint(x: number, y: number): boolean;
protected getTextBBox(datum: Datum, coords: _Util.Vec2, _context: AnnotationContext): _Scene.BBox;
getNodeAtCoords(x: number, y: number): string | undefined;
protected getTextBBox(datum: Datum, coords: _ModuleSupport.Vec2, _context: AnnotationContext): _Scene.BBox;
protected updateLabel(datum: Datum, bbox: _Scene.BBox): void;
protected updateHandle(datum: Datum, bbox: _Scene.BBox, coords: _Util.Vec2): void;
protected updateShape(_datum: Datum, _bbox: _Scene.BBox): void;

@@ -36,4 +23,4 @@ protected updateAnchor(_datum: Datum, bbox: _Scene.BBox, context: AnnotationContext): {

};
protected getLabelCoords(_datum: Datum, bbox: _Scene.BBox): _Util.Vec2;
protected getHandleCoords(_datum: Datum, bbox: _Scene.BBox, _coords: _Util.Vec2): _Util.Vec2;
protected getLabelCoords(_datum: Datum, bbox: _Scene.BBox): _ModuleSupport.Vec2;
protected getHandleCoords(_datum: Datum, _coords: _ModuleSupport.Vec2, bbox: _Scene.BBox): _ModuleSupport.Vec2;
protected getHandleStyles(datum: Datum): {

@@ -40,0 +27,0 @@ fill: string | undefined;

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

import { type AgAnnotationHandleStyles, _ModuleSupport, _Scene, _Util } from 'ag-charts-community';
import type { AnnotationContext, Coords, LineCoords } from '../annotationTypes';
import { type AgAnnotationHandleStyles, _ModuleSupport, _Scene } from 'ag-charts-community';
import type { AnnotationContext } from '../annotationTypes';
import type { TextualStartEndProperties } from '../properties/textualStartEndProperties';
import { DivariantHandle } from '../scenes/handle';
import { LinearScene } from '../scenes/linearScene';
export declare abstract class TextualStartEndScene<Datum extends TextualStartEndProperties> extends LinearScene<Datum> {
import { StartEndScene } from '../scenes/startEndScene';
export declare abstract class TextualStartEndScene<Datum extends TextualStartEndProperties> extends StartEndScene<Datum> {
activeHandle?: 'start' | 'end';
protected readonly label: _Scene.Text;
protected readonly start: DivariantHandle;
protected readonly end: DivariantHandle;
protected anchor: _ModuleSupport.ToolbarAnchor;

@@ -15,17 +12,9 @@ protected textInputBBox?: _Scene.BBox;

update(datum: Datum, context: AnnotationContext): void;
toggleHandles(show: boolean | Partial<Record<'start' | 'end', boolean>>): void;
toggleActive(active: boolean): void;
dragHandle(datum: Datum, target: Coords, context: AnnotationContext): void;
stopDragging(): void;
getAnchor(): _ModuleSupport.ToolbarAnchor;
getCursor(): "pointer" | undefined;
containsPoint(x: number, y: number): boolean;
protected getTextBBox(datum: Datum, coords: LineCoords): _Scene.BBox;
protected updateLabel(datum: Datum, bbox: _Scene.BBox, coords: LineCoords): void;
protected updateHandles(datum: Datum, bbox: _Scene.BBox, coords: LineCoords): void;
protected updateShape(_datum: Datum, _textBBox: _Scene.BBox, _coords: LineCoords): void;
protected updateAnchor(_datum: Datum, bbox: _Scene.BBox, context: AnnotationContext): _ModuleSupport.ToolbarAnchor;
protected getLabelCoords(_datum: Datum, _bbox: _Scene.BBox, coords: LineCoords): _Util.Vec2;
protected getHandleCoords(_datum: Datum, _bbox: _Scene.BBox, coords: LineCoords, handle: 'start' | 'end'): _Util.Vec2;
protected getHandleStyles(datum: Datum, _handle: 'start' | 'end'): AgAnnotationHandleStyles;
getNodeAtCoords(x: number, y: number): string | undefined;
protected getTextBBox(datum: Datum, coords: _ModuleSupport.Vec4): _Scene.BBox;
protected updateLabel(datum: Datum, bbox: _Scene.BBox, coords: _ModuleSupport.Vec4): void;
protected updateShape(_datum: Datum, _textBBox: _Scene.BBox, _coords: _ModuleSupport.Vec4): void;
protected getLabelCoords(_datum: Datum, _bbox: _Scene.BBox, coords: _ModuleSupport.Vec4): _ModuleSupport.Vec2;
protected getHandleStyles(datum: Datum, handle?: 'start' | 'end'): AgAnnotationHandleStyles;
}
import { type AgAnnotationLineStyleType, _ModuleSupport } from 'ag-charts-community';
import { Dialog, type DialogOptions } from '../../../components/dialog/dialog';
import type { ColorPickerOptions } from '../../color-picker/colorPicker';
import type { ChannelTextPosition, LineTextAlignment, LineTextPosition } from '../annotationTypes';
import type { ChannelPropertiesType, LinePropertiesType } from '../annotationsSuperTypes';
interface LinearSettingsDialogOptions extends DialogOptions {
import { type ChannelTextPosition, type LineTextAlignment, type LineTextPosition } from '../annotationTypes';
import type { ChannelPropertiesType, EphemeralPropertiesType, LinePropertiesType, MeasurerPropertiesType } from '../annotationsSuperTypes';
export interface LinearSettingsDialogOptions extends DialogOptions {
initialSelectedTab: 'line' | 'text';
onChangeLine: (props: LinearSettingsDialogLineChangeProps) => void;
onChangeText: (props: LinearSettingsDialogTextChangeProps) => void;
onChangeFillColor: Required<ColorPickerOptions>['onChange'];
onChangeHideFillColor: Required<ColorPickerOptions>['onChangeHide'];
onChangeLineColor: Required<ColorPickerOptions>['onChange'];

@@ -20,2 +23,6 @@ onChangeHideLineColor: Required<ColorPickerOptions>['onChangeHide'];

extendEnd?: boolean;
extendAbove?: boolean;
extendBelow?: boolean;
extendLeft?: boolean;
extendRight?: boolean;
}

@@ -27,5 +34,6 @@ export interface LinearSettingsDialogTextChangeProps {

}
type LinearDialogPropertiesType = Exclude<LinePropertiesType | ChannelPropertiesType | MeasurerPropertiesType, EphemeralPropertiesType>;
export declare class AnnotationSettingsDialog extends Dialog {
constructor(ctx: _ModuleSupport.ModuleContext);
showLineOrChannel(datum: LinePropertiesType | ChannelPropertiesType, options: LinearSettingsDialogOptions): void;
show(datum: LinearDialogPropertiesType, options: LinearSettingsDialogOptions): void;
private createLinearLineTab;

@@ -32,0 +40,0 @@ private createLinearTextTab;

@@ -6,6 +6,6 @@ import { _ModuleSupport, _Util } from 'ag-charts-community';

export declare class DragStateMachine<D extends AnnotationProperties, N extends {
dragStart: (datum: D, offset: _Util.Vec2, context: AnnotationContext) => void;
drag: (datum: D, offset: _Util.Vec2, context: AnnotationContext) => void;
dragStart: (datum: D, offset: _ModuleSupport.Vec2, context: AnnotationContext) => void;
drag: (datum: D, offset: _ModuleSupport.Vec2, context: AnnotationContext, snapping: boolean) => void;
stopDragging: () => void;
}> extends StateMachine<'idle' | 'dragging', 'drag' | 'dragStart' | 'dragEnd'> {
}> extends StateMachine<'idle' | 'dragging', 'keyDown' | 'keyUp' | 'drag' | 'dragStart' | 'dragEnd'> {
debug: _Util.DebugLogger;

@@ -17,5 +17,7 @@ private hasMoved;

node: () => N | undefined;
setSelectedWithDrag: () => void;
setSnapping: (snapping: boolean) => void;
getSnapping: () => boolean;
getHoverCoords: () => _ModuleSupport.Vec2 | undefined;
});
}
export {};

@@ -11,3 +11,3 @@ import { _ModuleSupport, _Util } from 'ag-charts-community';

}
export declare abstract class PointStateMachine<Datum extends PointProperties, Node extends PointScene<Datum>> extends StateMachine<'start' | 'waiting-first-render', 'click' | 'cancel' | 'render' | 'reset'> {
export declare abstract class PointStateMachine<Datum extends PointProperties, Node extends PointScene<Datum>> extends StateMachine<'start' | 'waiting-first-render', 'click' | 'drag' | 'cancel' | 'render' | 'reset'> {
debug: _Util.DebugLogger;

@@ -14,0 +14,0 @@ constructor(ctx: PointStateMachineContext<Datum, Node>);

@@ -15,3 +15,3 @@ import { _ModuleSupport, _Util } from 'ag-charts-community';

}
export declare abstract class TextualPointStateMachine<Datum extends TextualPointProperties, Node extends TextualPointScene<Datum>> extends StateMachine<'start' | 'waiting-first-render' | 'edit', 'click' | 'cancel' | 'keyDown' | 'updateTextInputBBox' | 'color' | 'fontSize' | 'render' | 'reset'> {
export declare abstract class TextualPointStateMachine<Datum extends TextualPointProperties, Node extends TextualPointScene<Datum>> extends StateMachine<'start' | 'waiting-first-render' | 'edit', 'click' | 'dragStart' | 'zoomChange' | 'cancel' | 'keyDown' | 'updateTextInputBBox' | 'color' | 'fontSize' | 'render' | 'reset'> {
debug: _Util.DebugLogger;

@@ -18,0 +18,0 @@ constructor(ctx: TextualPointStateMachineContext<Datum, Node>);

@@ -15,3 +15,3 @@ import { _ModuleSupport, _Util } from 'ag-charts-community';

}
export declare abstract class TextualStartEndStateMachine<Datum extends TextualStartEndProperties, Node extends TextualStartEndScene<Datum>> extends StateMachine<'start' | 'waiting-first-render' | 'edit' | 'end', 'click' | 'cancel' | 'hover' | 'keyDown' | 'updateTextInputBBox' | 'color' | 'fontSize' | 'render' | 'reset'> {
export declare abstract class TextualStartEndStateMachine<Datum extends TextualStartEndProperties, Node extends TextualStartEndScene<Datum>> extends StateMachine<'start' | 'waiting-first-render' | 'edit' | 'end', 'click' | 'drag' | 'dragEnd' | 'dragStart' | 'zoomChange' | 'cancel' | 'hover' | 'keyDown' | 'updateTextInputBBox' | 'color' | 'fontSize' | 'render' | 'reset'> {
debug: _Util.DebugLogger;

@@ -18,0 +18,0 @@ constructor(ctx: TextualStartEndStateMachineContext<Datum, Node>);

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

import type { _Util } from 'ag-charts-community';
import type { _ModuleSupport } from 'ag-charts-community';
import { AnnotationType } from '../annotationTypes';

@@ -9,3 +9,3 @@ import { TextualPointScene } from '../scenes/textualPointScene';

constructor();
protected getHandleCoords(_datum: TextProperties, point: _Util.Vec2): _Util.Vec2;
protected getHandleCoords(_datum: TextProperties, point: _ModuleSupport.Vec2): _ModuleSupport.Vec2;
}

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

import { type TextAlign, _ModuleSupport, _Scene, type _Util } from 'ag-charts-community';
import { type TextAlign, _ModuleSupport, _Scene } from 'ag-charts-community';
export type AnnotationTextPosition = 'top' | 'center' | 'bottom';

@@ -17,3 +17,3 @@ export type AnnotationTextAlignment = 'left' | 'center' | 'right';

width?: number;
}, text: string, coords: _Util.Vec2, bbox?: _Scene.BBox): _Scene.BBox;
}, text: string, coords: _ModuleSupport.Vec2, bbox?: _Scene.BBox): _Scene.BBox;
export declare function updateTextNode(node: _Scene.Text, text: string, isPlaceholder: boolean, config: TextOptions & {

@@ -23,2 +23,2 @@ visible?: boolean;

getPlaceholderColor: () => string | undefined;
}, { x, y }: _Util.Vec2): void;
}, { x, y }: _ModuleSupport.Vec2): void;

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

import type { AnnotationProperties, ChannelPropertiesType, LinePropertiesType, TextualPropertiesType } from '../annotationsSuperTypes';
import type { AnnotationProperties, ChannelPropertiesType, EphemeralPropertiesType, LinePropertiesType, MeasurerPropertiesType, TextualPropertiesType } from '../annotationsSuperTypes';
import { NoteProperties } from '../note/noteProperties';
export declare function hasFontSize(datum?: AnnotationProperties): datum is Exclude<TextualPropertiesType, NoteProperties>;
export declare function hasLineStyle(datum?: AnnotationProperties): datum is LinePropertiesType | ChannelPropertiesType;
export declare function hasLineStyle(datum?: AnnotationProperties): datum is Exclude<LinePropertiesType | ChannelPropertiesType | MeasurerPropertiesType, EphemeralPropertiesType>;
export declare function hasLineColor(datum?: AnnotationProperties): boolean;

@@ -9,2 +9,2 @@ export declare function hasIconColor(datum?: AnnotationProperties): boolean;

export declare function hasTextColor(datum?: AnnotationProperties): boolean;
export declare function hasLineText(datum?: AnnotationProperties): datum is LinePropertiesType | ChannelPropertiesType;
export declare function hasLineText(datum?: AnnotationProperties): datum is Exclude<LinePropertiesType | ChannelPropertiesType | MeasurerPropertiesType, EphemeralPropertiesType>;

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

import { type AgAnnotationLineStyleType, type PixelSize, type _Scene } from 'ag-charts-community';
import type { Coords, LineCoords } from '../annotationTypes';
import { type AgAnnotationLineStyleType, type PixelSize, _ModuleSupport, type _Scene } from 'ag-charts-community';
export declare function getLineStyle(lineDash?: PixelSize[], lineStyle?: AgAnnotationLineStyleType): AgAnnotationLineStyleType;

@@ -10,2 +9,2 @@ export declare function getComputedLineDash(strokeWidth: number, styleType: AgAnnotationLineStyleType): PixelSize[];

*/
export declare function boundsIntersections({ x1, y1, x2, y2 }: LineCoords, bounds: _Scene.BBox): [Coords, Coords];
export declare function boundsIntersections(coords: _ModuleSupport.Vec4, bounds: _Scene.BBox): [_ModuleSupport.Vec2, _ModuleSupport.Vec2];
import type { AnnotationLineStyle, AnnotationOptionsColorPickerType } from '../annotationTypes';
import type { AnnotationProperties, ChannelPropertiesType, LinePropertiesType } from '../annotationsSuperTypes';
import type { AnnotationProperties, ChannelPropertiesType, LinePropertiesType, MeasurerPropertiesType } from '../annotationsSuperTypes';
export declare function setFontSize(datum: AnnotationProperties, fontSize: number): void;
export declare function setLineStyle(datum: LinePropertiesType | ChannelPropertiesType, style?: AnnotationLineStyle): void;
export declare function setLineStyle(datum: LinePropertiesType | ChannelPropertiesType | MeasurerPropertiesType, style?: AnnotationLineStyle): void;
export declare function setColor(datum: AnnotationProperties, colorPickerType: AnnotationOptionsColorPickerType, colorOpacity: string, color: string, opacity: number): void;

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

import type { ChannelPropertiesType, LinePropertiesType, TextualPropertiesType } from '../annotationsSuperTypes';
import type { ChannelPropertiesType, EphemeralPropertiesType, LinePropertiesType, MeasurerPropertiesType, TextualPropertiesType } from '../annotationsSuperTypes';
export declare function isEphemeralType(datum: unknown): datum is EphemeralPropertiesType;
export declare function isLineType(datum: unknown): datum is LinePropertiesType;
export declare function isChannelType(datum: unknown): datum is ChannelPropertiesType;
export declare function isTextType(datum: unknown): datum is TextualPropertiesType;
export declare function isMeasurerType(datum: unknown): datum is MeasurerPropertiesType;

@@ -13,1 +13,2 @@ import { type Direction } from 'ag-charts-community';

export declare function validateDatumPointDirection(value: any, context: AnnotationAxisContext): boolean;
export declare function isPoint(point: Point | undefined): point is Point;

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

import type { _ModuleSupport } from 'ag-charts-community';
import type { PointProperties } from '../annotationProperties';
import type { AnnotationAxisContext, AnnotationContext, Coords, Point } from '../annotationTypes';
import type { AnnotationAxisContext, AnnotationContext, Point } from '../annotationTypes';
export declare function convertLine(datum: {

@@ -17,6 +18,6 @@ start: Pick<PointProperties, 'x' | 'y'>;

export declare function convert(p: Point['x' | 'y'], context: Pick<AnnotationAxisContext, 'scaleBandwidth' | 'scaleConvert'>): number;
export declare function invertCoords(coords: Coords, context: AnnotationContext): {
export declare function invertCoords(coords: _ModuleSupport.Vec2, context: AnnotationContext): {
x: any;
y: any;
};
export declare function invert(n: Coords['x' | 'y'], context: Pick<AnnotationAxisContext, 'scaleBandwidth' | 'continuous' | 'scaleInvert' | 'scaleInvertNearest'>): any;
export declare function invert(n: _ModuleSupport.Vec2['x' | 'y'], context: Pick<AnnotationAxisContext, 'scaleBandwidth' | 'continuous' | 'scaleInvert' | 'scaleInvertNearest'>): any;
import { _ModuleSupport } from 'ag-charts-community';
import { Image } from '../image/image';
export declare class Background extends _ModuleSupport.Background<Image> {
private readonly ctx;
image: Image;
constructor(ctx: _ModuleSupport.ModuleContext);
protected onLayoutComplete(event: _ModuleSupport.LayoutCompleteEvent): void;
protected onImageLoad(): void;
}

@@ -35,2 +35,3 @@ import { _ModuleSupport, _Scene } from 'ag-charts-community';

private onMouseOut;
private onKeyPress;
private onHighlightChange;

@@ -37,0 +38,0 @@ private isInRange;

@@ -27,5 +27,4 @@ import type { AgErrorBarOptions, AgErrorBarThemeableOptions } from 'ag-charts-community';

export declare class ErrorBarGroup extends _Scene.Group {
get children(): ErrorBarNode[];
nearestSquared(x: number, y: number): _ModuleSupport.PickNodeDatumResult;
}
export {};

@@ -1,9 +0,8 @@

import { _ModuleSupport } from 'ag-charts-community';
import { _ModuleSupport, _Scene } from 'ag-charts-community';
import { Image } from '../image/image';
export declare class Foreground extends _ModuleSupport.Background<Image> {
private readonly ctx;
image: Image;
fill?: string;
fillOpacity?: number;
constructor(ctx: _ModuleSupport.ModuleContext);
protected createNode(): _Scene.Layer;
protected onLayoutComplete(event: _ModuleSupport.LayoutCompleteEvent): void;

@@ -10,0 +9,0 @@ protected onImageLoad(): void;

@@ -11,5 +11,5 @@ import { _ModuleSupport, _Scene, _Util } from 'ag-charts-community';

readonly root: _Scene.Group;
readonly seriesRoot: _Scene.TranslatableGroup;
readonly axisGridGroup: _Scene.Group;
readonly axisGroup: _Scene.Group;
readonly seriesRoot: _Scene.TranslatableLayer;
readonly axisGridGroup: _Scene.Layer;
readonly axisGroup: _Scene.Layer;
data: any;

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

@@ -12,4 +12,4 @@ import { type AgChartSyncOptions, _ModuleSupport } from 'ag-charts-community';

constructor(moduleContext: _ModuleSupport.ModuleContext);
updateSiblings(groupId?: string): void;
private updateChart;
private updateSiblings;
private enabledZoomSync;

@@ -19,3 +19,3 @@ private disableZoomSync?;

private disableNodeInteractionSync?;
syncAxes(stopPropagation?: boolean): void;
getSyncedDomain(axis: unknown): any[] | undefined;
private mergeZoom;

@@ -22,0 +22,0 @@ private onEnabledChange;

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

import { _ModuleSupport, _Scene, _Util } from 'ag-charts-community';
import { _ModuleSupport, _Scene } from 'ag-charts-community';
import type { FontOptions, TextAlign } from 'ag-charts-types';
import type { AnnotationTextPosition } from '../annotations/text/util';
interface Layout {
getTextInputCoords: () => _Util.Vec2;
position: AnnotationTextPosition;
getTextInputCoords: (height: number) => _ModuleSupport.Vec2;
getTextPosition: () => AnnotationTextPosition;
alignment: 'left' | 'center' | 'right';

@@ -15,3 +15,5 @@ textAlign: TextAlign;

private layout;
private visible;
constructor(ctx: _ModuleSupport.ModuleContext);
setKeyDownHandler(handler: (e: KeyboardEvent) => unknown): void;
show(opts: {

@@ -32,2 +34,3 @@ anchor?: {

hide(): void;
isVisible(): boolean;
updateColor(color: string): void;

@@ -37,4 +40,4 @@ updateFontSize(fontSize: number): _Scene.BBox | undefined;

private updatePosition;
private getBBox;
getBBox(): _Scene.BBox;
}
export {};

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

import type { _Scene } from 'ag-charts-community';
import { _ModuleSupport } from 'ag-charts-community';
import { _ModuleSupport, type _Scene } from 'ag-charts-community';
import type { AxisZoomStates } from './zoomTypes';

@@ -4,0 +3,0 @@ export interface ZoomPanUpdate {

@@ -24,3 +24,3 @@ import type { AgCandlestickSeriesItemOptions } from 'ag-charts-community';

};
render(renderCtx: _Scene.RenderContext): void;
preRender(): _Scene.ChildNodeCounts;
}

@@ -27,0 +27,0 @@ export declare class CandlestickGroup extends CandlestickBaseGroup<CandlestickNodeDatum, AgCandlestickSeriesItemOptions> {

@@ -62,3 +62,3 @@ import { _ModuleSupport, _Scene } from 'ag-charts-community';

update(opts: {
seriesRect?: _Scene.BBox | undefined;
seriesRect?: _Scene.BBox;
}): Promise<void>;

@@ -65,0 +65,0 @@ protected abstract updateLabelSelection(opts: {

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

import type { _ModuleSupport } from 'ag-charts-community';
import type { AgChartLabelFormatterParams, Formatter, _ModuleSupport, _Scene } from 'ag-charts-community';
export interface GaugeFormatterParams {
}
export interface GaugeLabelDatum {
value: number;
text?: string;
formatter?: Formatter<AgChartLabelFormatterParams<any>>;
}
export declare const fadeInFns: _ModuleSupport.FromToFns<_Scene.Node, any, any>;
export declare function formatLabel(value: number | undefined, axis: _ModuleSupport.ChartAxis | undefined): string;
export declare function getLabelText(series: _ModuleSupport.Series<any, any>, datum: GaugeLabelDatum, valueOverride?: number): string | undefined;

@@ -51,2 +51,5 @@ import type { FontStyle, FontWeight, TextAlign, VerticalAlign } from 'ag-charts-community';

protected nodeFactory(): _Scene.Rect;
update(params: {
seriesRect?: _Scene.BBox;
}): Promise<void>;
protected updateDatumSelection(opts: {

@@ -53,0 +56,0 @@ nodeData: HeatmapNodeDatum[];

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

import { type TextAlign, type VerticalAlign, _ModuleSupport, _Scene, _Util } from 'ag-charts-community';
import { type LinearGaugeNodeDatum, LinearGaugeSeriesProperties, type LinearGaugeTargetDatum } from './linearGaugeSeriesProperties';
import { _ModuleSupport, _Scene, _Util } from 'ag-charts-community';
import { type LinearGaugeLabelDatum, LinearGaugeLabelProperties, type LinearGaugeNodeDatum, LinearGaugeSeriesProperties, type LinearGaugeTargetDatum } from './linearGaugeSeriesProperties';
export type GaugeAnimationState = 'empty' | 'ready' | 'waiting' | 'clearing';

@@ -8,3 +8,2 @@ export type GaugeAnimationEvent = 'update' | 'updateData' | 'highlight' | 'highlightMarkers' | 'resize' | 'clear' | 'reset' | 'skip';

};
type LinearGaugeLabelDatum = never;
interface LinearGaugeNodeDataContext extends _ModuleSupport.SeriesNodeDataContext<LinearGaugeNodeDatum, LinearGaugeLabelDatum> {

@@ -19,4 +18,2 @@ targetData: LinearGaugeTargetDatum[];

properties: LinearGaugeSeriesProperties;
textAlign: TextAlign;
verticalAlign: VerticalAlign;
originX: number;

@@ -26,2 +23,3 @@ originY: number;

get thickness(): number;
computeInset(direction: _ModuleSupport.ChartAxisDirection, ticks: number[]): number;
private readonly scaleGroup;

@@ -31,2 +29,3 @@ private readonly itemGroup;

private readonly itemTargetLabelGroup;
private readonly itemLabelGroup;
private readonly highlightTargetGroup;

@@ -37,2 +36,3 @@ private scaleSelection;

private targetLabelSelection;
private labelSelection;
private highlightTargetSelection;

@@ -51,2 +51,3 @@ private readonly animationState;

private getTargetLabel;
labelDatum(label: LinearGaugeLabelProperties, value: number): LinearGaugeLabelDatum;
createNodeData(): Promise<{

@@ -56,3 +57,3 @@ itemId: string;

targetData: LinearGaugeTargetDatum[];
labelData: never[];
labelData: LinearGaugeLabelDatum[];
scaleData: LinearGaugeNodeDatum[];

@@ -73,4 +74,11 @@ } | undefined>;

private updateTargetLabelNodes;
private updateLabelSelection;
private updateLabelNodes;
labelsHaveExplicitText(): boolean;
formatLabelText(datum?: {
label: number;
}): void;
protected resetAllAnimation(): void;
resetAnimation(phase: _ModuleSupport.ChartAnimationPhase): void;
private animateLabelText;
animateEmptyUpdateReady(): void;

@@ -77,0 +85,0 @@ animateWaitingUpdateReady(): void;

import { _ModuleSupport, _Scene } from 'ag-charts-community';
import type { AgGaugeFillMode, AgLinearGaugeItemStylerParams, AgLinearGaugeLabelFormatterParams, AgLinearGaugeMarkerShape, AgLinearGaugeOptions, AgLinearGaugeStyle, AgLinearGaugeTargetPlacement, AgLinearGaugeTooltipRendererParams, FontStyle, FontWeight, MarkerShape, Styler } from 'ag-charts-types';
import type { AgChartLabelFormatterParams, AgGaugeFillMode, AgLinearGaugeItemStylerParams, AgLinearGaugeLabelFormatterParams, AgLinearGaugeLabelPlacement, AgLinearGaugeMarkerShape, AgLinearGaugeOptions, AgLinearGaugeStyle, AgLinearGaugeTargetPlacement, AgLinearGaugeTooltipRendererParams, FontStyle, FontWeight, Formatter, MarkerShape, OverflowStrategy, Styler, TextWrap } from 'ag-charts-types';
import { GaugeSegmentationProperties } from '../gauge-util/segmentation';
import { GaugeStopProperties } from '../gauge-util/stops';
import { AutoSizedLabel, AutoSizedSecondaryLabel } from '../util/autoSizedLabel';
import { AutoSizedLabel } from '../util/autoSizedLabel';
declare const BaseProperties: typeof _ModuleSupport.BaseProperties, SeriesProperties: typeof _ModuleSupport.SeriesProperties;

@@ -60,2 +60,19 @@ declare const Label: typeof _Scene.Label;

}
export type LinearGaugeLabelDatum = {
placement: AgLinearGaugeLabelPlacement;
avoidCollisions: boolean;
spacing: number;
text: string | undefined;
value: number;
fill: string | undefined;
fontStyle: FontStyle | undefined;
fontWeight: FontWeight | undefined;
fontSize: number;
minimumFontSize: number | undefined;
fontFamily: string;
lineHeight: number | undefined;
wrapping: TextWrap;
overflowStrategy: OverflowStrategy;
formatter: Formatter<AgChartLabelFormatterParams<any> & _ModuleSupport.RequireOptional<AgLinearGaugeLabelFormatterParams>> | undefined;
};
declare class LinearGaugeDefaultTargetLabelProperties extends Label<never> {

@@ -109,6 +126,5 @@ spacing: number | undefined;

text?: string;
placement: AgLinearGaugeLabelPlacement;
avoidCollisions: boolean;
}
export declare class LinearGaugeSecondaryLabelProperties extends AutoSizedSecondaryLabel<AgLinearGaugeLabelFormatterParams> {
text?: string;
}
export declare class LinearGaugeSeriesProperties extends SeriesProperties<AgLinearGaugeOptions> {

@@ -129,5 +145,4 @@ value: number;

readonly label: LinearGaugeLabelProperties;
readonly secondaryLabel: LinearGaugeSecondaryLabelProperties;
readonly tooltip: _ModuleSupport.SeriesTooltip<AgLinearGaugeTooltipRendererParams>;
}
export {};

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

import { type _ModuleSupport, _Scene } from 'ag-charts-community';
import { _ModuleSupport, _Scene } from 'ag-charts-community';
import type { LinearGaugeLabelDatum } from './linearGaugeSeriesProperties';
export interface AnimatableRectDatum {

@@ -37,2 +38,11 @@ x0: number;

};
export declare function formatLinearGaugeLabels(series: _ModuleSupport.Series<any, any>, selection: _Scene.Selection<_Scene.Text, LinearGaugeLabelDatum>, opts: {
padding: number;
horizontal: boolean;
}, bboxes: {
scale: _Scene.BBox;
bar: _Scene.BBox;
}, datumOverrides?: {
label: number | undefined;
}): void;
export {};

@@ -8,3 +8,3 @@ import { _ModuleSupport, _Scene } from 'ag-charts-community';

}
export declare class GeoGeometry extends Path {
export declare class GeoGeometry extends Path implements _ModuleSupport.DistantObject {
projectedGeometry: _ModuleSupport.Geometry | undefined;

@@ -18,3 +18,3 @@ renderMode: GeoGeometryRenderMode;

containsPoint(x: number, y: number): boolean;
distanceToPoint(x: number, y: number): number;
distanceSquared(x: number, y: number): number;
private geometryDistance;

@@ -21,0 +21,0 @@ private drawGeometry;

@@ -27,5 +27,5 @@ import { type AgNightingaleSeriesOptions, type AgRadialSeriesStyle, _ModuleSupport, _Scene } from 'ag-charts-community';

clipSector: _Scene.SectorBox;
phase: "end" | "initial" | "update" | "none" | "trailing" | "remove" | "add";
phase: "end" | "initial" | "remove" | "update" | "none" | "trailing" | "add";
};
};
}

@@ -30,3 +30,3 @@ import { _Scene } from 'ag-charts-community';

clipSector: _Scene.SectorBox;
phase: "end" | "initial" | "update" | "none" | "trailing" | "remove" | "add";
phase: "end" | "initial" | "remove" | "update" | "none" | "trailing" | "add";
};

@@ -33,0 +33,0 @@ };

@@ -25,3 +25,3 @@ import { _Scene } from 'ag-charts-community';

clipSector: _Scene.SectorBox;
phase: "end" | "initial" | "update" | "none" | "trailing" | "remove" | "add";
phase: "end" | "initial" | "remove" | "update" | "none" | "trailing" | "add";
};

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

@@ -30,3 +30,3 @@ import { _ModuleSupport, _Scene } from 'ag-charts-community';

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

@@ -33,0 +33,0 @@ };

@@ -46,3 +46,3 @@ import { _Scene } from 'ag-charts-community';

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

@@ -49,0 +49,0 @@ };

import { _Scene } from 'ag-charts-community';
declare const RadialGaugeNeedle_base: new (...args: any[]) => import("packages/ag-charts-community/dist/types/src/scene/transformable").RotatableType<import("packages/ag-charts-community/dist/types/src/scene/transformable").ScalableType<import("packages/ag-charts-community/dist/types/src/scene/transformable").TranslatableType<_Scene.SvgPath>>>;
export declare class RadialGaugeNeedle extends RadialGaugeNeedle_base {
static defaultPathData: string;
static readonly defaultPathData = "M0.50245 0.53745C0.481767 0.53745 0.465 0.520683 0.465 0.5C0.465 0.479317 0.481767 0.46255 0.50245 0.46255L1 0.500012L0.50245 0.53745Z";
scalingCenterX: number;

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

@@ -72,2 +72,3 @@ import { _ModuleSupport, _Scene } from 'ag-charts-community';

fontSize: number;
minimumFontSize: number | undefined;
fontFamily: string;

@@ -123,3 +124,3 @@ lineHeight: number | undefined;

enabled: boolean;
radiusRatio?: number | undefined;
radiusRatio?: number;
spacing: number;

@@ -126,0 +127,0 @@ fill: string;

import { type TextAlign, type VerticalAlign, type _ModuleSupport, _Scene } from 'ag-charts-community';
import type { RadialGaugeNeedle } from './radialGaugeNeedle';
import { type RadialGaugeLabelDatum, type RadialGaugeLabelProperties, type RadialGaugeSecondaryLabelProperties } from './radialGaugeSeriesProperties';
import { type RadialGaugeLabelDatum } from './radialGaugeSeriesProperties';
export interface AnimatableSectorDatum {

@@ -21,3 +21,2 @@ innerRadius: number;

};
export declare const fadeInFns: _ModuleSupport.FromToFns<_Scene.Node, any, any>;
export declare function computeClipSector(datum: AnimatableSectorDatum): _Scene.SectorBox | undefined;

@@ -38,8 +37,7 @@ export declare function clipSectorVisibility(startAngle: number, endAngle: number, clipSector: _Scene.SectorBox): boolean;

};
export declare function getLabelText(series: _ModuleSupport.Series<any, any>, label: RadialGaugeLabelProperties | RadialGaugeSecondaryLabelProperties, value: number | undefined, defaultFormatter?: (value: number) => string): string | undefined;
export declare function formatRadialGaugeLabels(series: _ModuleSupport.Series<any, any>, selection: _Scene.Selection<_Scene.Text, RadialGaugeLabelDatum>, labelProps: RadialGaugeLabelProperties, secondaryLabelProps: RadialGaugeSecondaryLabelProperties, opts: {
export declare function formatRadialGaugeLabels(series: _ModuleSupport.Series<any, any>, selection: _Scene.Selection<_Scene.Text, RadialGaugeLabelDatum>, opts: {
padding: number;
textAlign: TextAlign;
verticalAlign: VerticalAlign;
}, innerRadius: number, defaultFormatter: (value: number) => string, datumOverrides?: {
}, innerRadius: number, datumOverrides?: {
label: number | undefined;

@@ -46,0 +44,0 @@ secondaryLabel: number | undefined;

@@ -45,2 +45,3 @@ import type { AgChartAutoSizedBaseLabelOptions, AgChartAutoSizedLabelOptions, AgChartAutoSizedSecondaryLabelOptions, FontSize } from 'ag-charts-types';

};
export declare function getLineHeight(labelProps: AgChartAutoSizedLabelOptions<any, any>, fontSize: number): number;
export declare function formatStackedLabels<Meta>(labelValue: string, labelProps: AutoSizedLabelOptions, secondaryLabelValue: string, secondaryLabelProps: AutoSizedSecondaryLabelOptions, { padding }: LayoutParams, sizeFittingHeight: SizeFittingHeightFn<Meta>): ({

@@ -47,0 +48,0 @@ width: number;

@@ -68,4 +68,4 @@ import type { AgWaterfallSeriesItemType } from 'ag-charts-community';

protected updatePaths(opts: {
seriesHighlighted?: boolean | undefined;
itemId?: string | undefined;
seriesHighlighted?: boolean;
itemId?: string;
contextData: WaterfallContext;

@@ -72,0 +72,0 @@ paths: _Scene.Path[];

@@ -15,3 +15,3 @@ import { _Theme } from 'ag-charts-community';

formatter: undefined;
placement: "end";
placement: "outside-end";
};

@@ -29,3 +29,3 @@ };

formatter: undefined;
placement: "end";
placement: "outside-end";
};

@@ -43,3 +43,3 @@ };

formatter: undefined;
placement: "end";
placement: "outside-end";
};

@@ -46,0 +46,0 @@ };

{
"name": "ag-charts-enterprise",
"version": "10.2.0",
"version": "10.3.0",
"description": "Advanced Charting / Charts supporting Javascript / Typescript / React / Angular / Vue",

@@ -9,10 +9,16 @@ "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"
}
},
"private": false,
"scripts": {
"lint:circular": "npx madge --circular --extensions ts src/",
"lint:prune": "npx ts-prune -p tsconfig.lib.json"

@@ -67,3 +73,4 @@ },

"@typescript-eslint/parser": "^5.51.0",
"ag-charts-community": "10.2.0",
"ag-charts-community": "10.3.0",
"ag-charts-test": "10.3.0",
"canvas": "^2.10.2",

@@ -88,3 +95,3 @@ "del": "^6.0.0",

"dependencies": {
"ag-charts-community": "10.2.0"
"ag-charts-community": "10.3.0"
},

@@ -91,0 +98,0 @@ "publishConfig": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc