sryd-charts-enterprise
Version:
Advanced Charting / Charts supporting Javascript / Typescript / React / Angular / Vue
244 lines (243 loc) • 7.75 kB
TypeScript
import type { AgAnnotationLineStyleType, FontStyle, FontWeight, Formatter, PixelSize, TextAlign } from 'ag-charts-community';
import { _ModuleSupport } from 'ag-charts-community';
import type { AnnotationContext, AnnotationOptionsColorPickerType, ChannelTextPosition, Constructor, LineTextAlignment, LineTextPosition } from './annotationTypes';
import type { PointType } from './utils/scale';
declare const BaseProperties: typeof _ModuleSupport.BaseProperties;
export declare class PointProperties extends BaseProperties {
x?: PointType;
y?: PointType;
}
declare const ChannelAnnotationMiddleProperties_base: {
new (...args: any[]): {
stroke?: string;
strokeOpacity?: number;
strokeWidth?: number;
};
} & {
new (...args: any[]): {
lineCap?: _ModuleSupport.ShapeLineCap;
computedLineDash?: PixelSize[];
lineDash?: number[];
lineDashOffset?: number;
lineStyle?: AgAnnotationLineStyleType;
};
} & {
new (...args: any[]): {
visible?: boolean;
};
} & typeof _ModuleSupport.BaseProperties;
export declare class ChannelAnnotationMiddleProperties extends ChannelAnnotationMiddleProperties_base {
}
declare const AxisLabelProperties_base: {
new (...args: any[]): {
stroke?: string;
strokeOpacity?: number;
strokeWidth?: number;
};
} & {
new (...args: any[]): {
lineCap?: _ModuleSupport.ShapeLineCap;
computedLineDash?: PixelSize[];
lineDash?: number[];
lineDashOffset?: number;
lineStyle?: AgAnnotationLineStyleType;
};
} & {
new (...args: any[]): {
fill?: string;
fillOpacity?: number;
};
} & {
new (...args: any[]): {
padding?: number;
textAlign: TextAlign;
formatter?: Formatter<AxisLabelFormatterParams>;
};
} & {
new (...args: any[]): {
fontStyle?: FontStyle;
fontWeight?: FontWeight;
fontSize: number;
fontFamily: string;
color?: string;
};
} & typeof _ModuleSupport.BaseProperties;
export declare class AxisLabelProperties extends AxisLabelProperties_base {
enabled?: boolean;
cornerRadius: number;
}
declare const BackgroundProperties_base: {
new (...args: any[]): {
fill?: string;
fillOpacity?: number;
};
} & typeof _ModuleSupport.BaseProperties;
declare class BackgroundProperties extends BackgroundProperties_base {
}
declare const HandleProperties_base: {
new (...args: any[]): {
stroke?: string;
strokeOpacity?: number;
strokeWidth?: number;
};
} & {
new (...args: any[]): {
lineCap?: _ModuleSupport.ShapeLineCap;
computedLineDash?: PixelSize[];
lineDash?: number[];
lineDashOffset?: number;
lineStyle?: AgAnnotationLineStyleType;
};
} & {
new (...args: any[]): {
fill?: string;
fillOpacity?: number;
};
} & typeof _ModuleSupport.BaseProperties;
declare class HandleProperties extends HandleProperties_base {
}
declare const LineTextProperties_base: {
new (...args: any[]): {
fontStyle?: FontStyle;
fontWeight?: FontWeight;
fontSize: number;
fontFamily: string;
color?: string;
};
} & typeof _ModuleSupport.BaseProperties;
export declare class LineTextProperties extends LineTextProperties_base {
label: string;
position?: LineTextPosition;
alignment?: LineTextAlignment;
}
declare const LabelTextProperties_base: {
new (...args: any[]): {
fontStyle?: FontStyle;
fontWeight?: FontWeight;
fontSize: number;
fontFamily: string;
color?: string;
};
} & typeof _ModuleSupport.BaseProperties;
export declare class LabelTextProperties extends LabelTextProperties_base {
}
declare const ChannelTextProperties_base: {
new (...args: any[]): {
fontStyle?: FontStyle;
fontWeight?: FontWeight;
fontSize: number;
fontFamily: string;
color?: string;
};
} & typeof _ModuleSupport.BaseProperties;
export declare class ChannelTextProperties extends ChannelTextProperties_base {
label: string;
position?: ChannelTextPosition;
alignment?: LineTextAlignment;
}
export interface AxisLabelFormatterParams {
readonly value: any;
}
/*******************************
* Annotations specific mixins *
*******************************/
export declare function Annotation<U extends Constructor<_ModuleSupport.BaseProperties>>(Parent: U): (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;
}) & U;
export declare function Line<T extends Constructor>(Parent: T): {
new (...args: any[]): {
start: PointProperties;
end: PointProperties;
};
} & T;
export declare function Point<T extends Constructor>(Parent: T): {
new (...args: any[]): {
x?: PointType;
y?: PointType;
};
} & T;
export declare function Value<T extends Constructor>(Parent: T): {
new (...args: any[]): {
value?: PointType;
};
} & T;
export declare function Background<T extends Constructor>(Parent: T): {
new (...args: any[]): {
background: BackgroundProperties;
};
} & T;
export declare function Handle<T extends Constructor>(Parent: T): {
new (...args: any[]): {
handle: HandleProperties;
};
} & T;
export declare function AxisLabel<T extends Constructor>(Parent: T): {
new (...args: any[]): {
axisLabel: AxisLabelProperties;
};
} & T;
export declare function Label<T extends Constructor>(Parent: T): {
new (...args: any[]): {
padding?: number;
textAlign: TextAlign;
formatter?: Formatter<AxisLabelFormatterParams>;
};
} & T;
export declare function Cappable<T extends Constructor>(Parent: T): {
new (...args: any[]): {
startCap?: "arrow";
endCap?: "arrow";
};
} & T;
export declare function Extendable<T extends Constructor>(Parent: T): {
new (...args: any[]): {
extendStart?: boolean;
extendEnd?: boolean;
};
} & T;
export declare function Localisable<T extends Constructor>(Parent: T): {
new (...args: any[]): {
localeManager?: _ModuleSupport.ModuleContext["localeManager"];
setLocaleManager(localeManager: _ModuleSupport.ModuleContext["localeManager"]): void;
};
} & T;
export declare function Fill<T extends Constructor>(Parent: T): {
new (...args: any[]): {
fill?: string;
fillOpacity?: number;
};
} & T;
export declare function Stroke<T extends Constructor>(Parent: T): {
new (...args: any[]): {
stroke?: string;
strokeOpacity?: number;
strokeWidth?: number;
};
} & T;
export declare function LineStyle<T extends Constructor>(Parent: T): {
new (...args: any[]): {
lineCap?: _ModuleSupport.ShapeLineCap;
computedLineDash?: PixelSize[];
lineDash?: number[];
lineDashOffset?: number;
lineStyle?: AgAnnotationLineStyleType;
};
} & T;
export declare function Font<T extends Constructor>(Parent: T): {
new (...args: any[]): {
fontStyle?: FontStyle;
fontWeight?: FontWeight;
fontSize: number;
fontFamily: string;
color?: string;
};
} & T;
export {};