rozetko
3 years ago
6 changed files with 1 additions and 10306 deletions
@ -1,15 +0,0 @@ |
|||||||
import { ScatterData } from './types'; |
|
||||||
import * as d3 from 'd3'; |
|
||||||
export declare class DelaunayDiagram { |
|
||||||
protected series: ScatterData[]; |
|
||||||
private _delaunayData; |
|
||||||
private _delaunayDiagram; |
|
||||||
constructor(series: ScatterData[], xScale: d3.ScaleLinear<number, number>, yScale: (string: any) => d3.ScaleLinear<number, number>); |
|
||||||
get data(): number[][] | undefined; |
|
||||||
setDelaunayDiagram(xScale: d3.ScaleLinear<number, number>, yScale: (string: any) => d3.ScaleLinear<number, number>): void; |
|
||||||
findPointIndex(eventX: number, eventY: number): number | undefined; |
|
||||||
getDataRowByIndex(index: number): number[] | undefined; |
|
||||||
private getDatapointsForDelaunay; |
|
||||||
private concatSeriesDatapoints; |
|
||||||
private getSerieIdxByTarget; |
|
||||||
} |
|
@ -1,90 +0,0 @@ |
|||||||
import { ChartwerkPod, TickOrientation, TimeFormat, yAxisOrientation } from '@chartwerk/core'; |
|
||||||
import { ScatterData, ScatterOptions, PointType, LineType } from './types'; |
|
||||||
import { DelaunayDiagram } from './delaunay'; |
|
||||||
import * as d3 from 'd3'; |
|
||||||
export declare class ChartwerkScatterPod extends ChartwerkPod<ScatterData, ScatterOptions> { |
|
||||||
metricContainer: any; |
|
||||||
_delaunayDiagram: DelaunayDiagram; |
|
||||||
constructor(el: HTMLElement, _series?: ScatterData[], _options?: ScatterOptions); |
|
||||||
renderMetrics(): void; |
|
||||||
clearAllMetrics(): void; |
|
||||||
protected updateCrosshair(): void; |
|
||||||
appendCrosshairPoints(): void; |
|
||||||
protected appendCrosshairPoint(serieIdx: number): void; |
|
||||||
protected renderLines(): void; |
|
||||||
renderLine(datapoints: number[][], lineType: LineType, color: string, orientation: yAxisOrientation): void; |
|
||||||
protected renderPoints(): void; |
|
||||||
getSeriesColorFromDataRow(values: number[], rowIdx: number): string; |
|
||||||
onPanningEnd(): void; |
|
||||||
unhighlight(): void; |
|
||||||
highlight(pointIdx: number): void; |
|
||||||
protected getCrosshairCircleBackgroundSize(serieIdx: number): number; |
|
||||||
renderSharedCrosshair(values: { |
|
||||||
x?: number; |
|
||||||
y?: number; |
|
||||||
}): void; |
|
||||||
moveCrosshairLine(xPosition: number, yPosition: number): void; |
|
||||||
findAndHighlightDatapoints(eventX: number, eventY: number): { |
|
||||||
values: any[]; |
|
||||||
pointIdx: number; |
|
||||||
} | null; |
|
||||||
protected getYScale(orientation: yAxisOrientation): d3.ScaleLinear<number, number>; |
|
||||||
hideSharedCrosshair(): void; |
|
||||||
onMouseMove(): void; |
|
||||||
onMouseOver(): void; |
|
||||||
onMouseOut(): void; |
|
||||||
} |
|
||||||
export declare const VueChartwerkScatterPodObject: { |
|
||||||
render(createElement: any): any; |
|
||||||
mixins: { |
|
||||||
props: { |
|
||||||
id: { |
|
||||||
type: StringConstructor; |
|
||||||
required: boolean; |
|
||||||
}; |
|
||||||
series: { |
|
||||||
type: ArrayConstructor; |
|
||||||
required: boolean; |
|
||||||
default: () => any[]; |
|
||||||
}; |
|
||||||
options: { |
|
||||||
type: ObjectConstructor; |
|
||||||
required: boolean; |
|
||||||
default: () => {}; |
|
||||||
}; |
|
||||||
}; |
|
||||||
watch: { |
|
||||||
id(): void; |
|
||||||
series(): void; |
|
||||||
options(): void; |
|
||||||
}; |
|
||||||
mounted(): void; |
|
||||||
destroyed(): void; |
|
||||||
methods: { |
|
||||||
render(): void; |
|
||||||
renderSharedCrosshair(values: { |
|
||||||
x?: number; |
|
||||||
y?: number; |
|
||||||
}): void; |
|
||||||
hideSharedCrosshair(): void; |
|
||||||
onPanningRescale(event: any): void; |
|
||||||
renderChart(): void; |
|
||||||
appendEvents(): void; |
|
||||||
zoomIn(range: any): void; |
|
||||||
zoomOut(centers: any): void; |
|
||||||
mouseMove(evt: any): void; |
|
||||||
mouseOut(): void; |
|
||||||
onLegendClick(idx: any): void; |
|
||||||
panningEnd(range: any): void; |
|
||||||
panning(range: any): void; |
|
||||||
contextMenu(evt: any): void; |
|
||||||
sharedCrosshairMove(event: any): void; |
|
||||||
renderStart(): void; |
|
||||||
renderEnd(): void; |
|
||||||
}; |
|
||||||
}[]; |
|
||||||
methods: { |
|
||||||
render(): void; |
|
||||||
}; |
|
||||||
}; |
|
||||||
export { ScatterData, ScatterOptions, TickOrientation, TimeFormat, PointType, LineType }; |
|
File diff suppressed because one or more lines are too long
@ -1,26 +0,0 @@ |
|||||||
import { TimeSerie, Options } from '@chartwerk/core'; |
|
||||||
declare type ScatterDataParams = { |
|
||||||
pointType: PointType; |
|
||||||
lineType: LineType; |
|
||||||
pointSize: number; |
|
||||||
colorFormatter?: ColorFormatter; |
|
||||||
}; |
|
||||||
declare type ScatterOptionsParams = { |
|
||||||
voronoiRadius: number; |
|
||||||
circleView: boolean; |
|
||||||
renderGrid: boolean; |
|
||||||
}; |
|
||||||
export declare type ScatterData = TimeSerie & Partial<ScatterDataParams>; |
|
||||||
export declare type ScatterOptions = Options & Partial<ScatterOptionsParams>; |
|
||||||
export declare enum PointType { |
|
||||||
NONE = "none", |
|
||||||
CIRCLE = "circle", |
|
||||||
RECTANGLE = "rectangle" |
|
||||||
} |
|
||||||
export declare enum LineType { |
|
||||||
NONE = "none", |
|
||||||
SOLID = "solid", |
|
||||||
DASHED = "dashed" |
|
||||||
} |
|
||||||
export declare type ColorFormatter = (datapoint: number[], pointIdx: any) => string; |
|
||||||
export {}; |
|
Loading…
Reference in new issue