sryd-charts-enterprise
Version:
Advanced Charting / Charts supporting Javascript / Typescript / React / Angular / Vue
76 lines (75 loc) • 3.18 kB
TypeScript
import { _ModuleSupport } from 'ag-charts-community';
import { type AnnotationContext, type AnnotationOptionsColorPickerType, type Padding } from '../annotationTypes';
import type { AnnotationTextAlignment, AnnotationTextPosition } from '../text/util';
declare const TextualPointProperties_base: (abstract new (...args: any[]) => {
id: string;
isValidWithContext(_context: AnnotationContext, warningPrefix?: string): boolean;
getDefaultColor(colorPickerType: AnnotationOptionsColorPickerType, isMultiColor?: boolean): string | undefined;
locked?: boolean;
visible?: boolean;
handleUnknownProperties(_unknownKeys: Set<string>, _properties: object): void;
set(properties: object): /*elided*/ any;
isValid<TContext = Omit<object, "type">>(this: TContext, warningPrefix?: string): boolean;
toJson<J>(this: J): object;
}) & {
new (...args: any[]): {
x?: import("../utils/scale").PointType;
y?: import("../utils/scale").PointType;
};
} & {
new (...args: any[]): {
handle: {
stroke?: string;
strokeOpacity?: number;
strokeWidth?: number;
lineCap?: _ModuleSupport.ShapeLineCap;
computedLineDash?: import("ag-charts-community").PixelSize[];
lineDash?: number[];
lineDashOffset?: number;
lineStyle?: import("ag-charts-community").AgAnnotationLineStyleType;
fill?: string;
fillOpacity?: number;
handleUnknownProperties(_unknownKeys: Set<string>, _properties: object): void;
set(properties: object): /*elided*/ any;
isValid<TContext = Omit<object, "type">>(this: TContext, warningPrefix?: string): boolean;
toJson<J>(this: J): object;
};
};
} & {
new (...args: any[]): {
padding?: number;
textAlign: import("ag-charts-community").TextAlign;
formatter?: import("ag-charts-community").Formatter<import("../annotationProperties").AxisLabelFormatterParams>;
};
} & {
new (...args: any[]): {
fontStyle?: import("ag-charts-community").FontStyle;
fontWeight?: import("ag-charts-community").FontWeight;
fontSize: number;
fontFamily: string;
color?: string;
};
} & typeof _ModuleSupport.BaseProperties;
export declare class TextualPointProperties extends TextualPointProperties_base {
text: string;
position: AnnotationTextPosition;
alignment: AnnotationTextAlignment;
placement: 'inside' | 'outside';
width?: number;
placeholderText?: string;
isValidWithContext(_context: AnnotationContext, warningPrefix?: string): boolean;
getDefaultColor(_colorPickerType: AnnotationOptionsColorPickerType): string | undefined;
getDefaultOpacity(_colorPickerType: AnnotationOptionsColorPickerType): number | undefined;
getPlaceholderColor(): string | undefined;
getPadding(): Padding;
getText(): {
text: string;
isPlaceholder: boolean;
};
getTextInputCoords(context: AnnotationContext, _height: number): {
x: number;
y: number;
};
getTextPosition(): AnnotationTextPosition;
}
export {};