MCPcopy
hub / github.com/klinecharts/KLineChart / Chart

Interface Chart

src/Chart.ts:85–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85export interface Chart extends Store {
86 id: string
87 getDom: (paneId?: string, position?: DomPosition) => Nullable<HTMLElement>
88 getSize: (paneId?: string, position?: DomPosition) => Nullable<Bounding>
89 createIndicator: (value: string | IndicatorCreate, options?: CreateIndicatorOptions) => Nullable<string>
90 getIndicators: (filter?: IndicatorFilter) => Indicator[]
91 createOverlay: (value: string | OverlayCreate | Array<string | OverlayCreate>) => Nullable<string> | Array<Nullable<string>>
92 getOverlays: (filter?: OverlayFilter) => Overlay[]
93 setPaneOptions: (options: PaneOptions) => void
94 overrideYAxis: (xAxis: XAxisOverride) => void
95 overrideXAxis: (yAxis: YAxisOverride) => void
96 getPaneOptions: (id?: string) => Nullable<PaneOptions> | PaneOptions[]
97 scrollByDistance: (distance: number, animationDuration?: number) => void
98 scrollToRealTime: (animationDuration?: number) => void
99 scrollToDataIndex: (dataIndex: number, animationDuration?: number) => void
100 scrollToTimestamp: (timestamp: number, animationDuration?: number) => void
101 zoomAtCoordinate: (scale: number, coordinate?: Coordinate, animationDuration?: number) => void
102 zoomAtDataIndex: (scale: number, dataIndex: number, animationDuration?: number) => void
103 zoomAtTimestamp: (scale: number, timestamp: number, animationDuration?: number) => void
104 convertToPixel: (points: Partial<Point> | Array<Partial<Point>>, filter?: ConvertFilter) => Partial<Coordinate> | Array<Partial<Coordinate>>
105 convertFromPixel: (coordinates: Array<Partial<Coordinate>>, filter?: ConvertFilter) => Partial<Point> | Array<Partial<Point>>
106 executeAction: (type: ActionType, data: Crosshair) => void
107 subscribeAction: (type: ActionType, callback: ActionCallback) => void
108 unsubscribeAction: (type: ActionType, callback?: ActionCallback) => void
109 getConvertPictureUrl: (includeOverlay?: boolean, type?: 'png' | 'jpeg' | 'bmp', backgroundColor?: string) => string
110 resize: () => void
111}
112
113export default class ChartImp implements Chart {
114 id: string

Callers

nothing calls this directly

Implementers 1

ChartImpsrc/Chart.ts

Calls

no outgoing calls

Tested by

no test coverage detected