Skip to content

Commit da94f2d

Browse files
committed
chore: add dist files
1 parent 690fdca commit da94f2d

2,177 files changed

Lines changed: 40241 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
import { ChartType } from '..';
2+
import { LegacyAnimationConfig } from '../../common/animation';
3+
import { BaseDatum, Spec } from '../../specs';
4+
import { SpecType } from '../../specs/constants';
5+
import { SFProps } from '../../state/spec_factory';
6+
import { Datum, ValueAccessor, ValueFormatter } from '../../utils/common';
7+
/**
8+
* Control function for resetting chart focus
9+
* @public
10+
*/
11+
export type FlameGlobalControl = () => void;
12+
/**
13+
* Control function for setting chart focus on a specific node
14+
* @public
15+
*/
16+
export type FlameNodeControl = (nodeIndex: number) => void;
17+
/**
18+
* Control function for setting chart focus on a specific node
19+
* @public
20+
*/
21+
export type FlameSearchControl = (text: string) => void;
22+
/**
23+
* Provides direct controls for the Flame component user.
24+
* The call site supplied callback function is invoked on the chart component initialization as well as on component update,
25+
* so the callback must be idempotent.
26+
* @public
27+
*/
28+
export interface ControlReceiverCallbacks {
29+
resetFocus: (control: FlameGlobalControl) => void;
30+
focusOnNode: (control: FlameNodeControl) => void;
31+
search: (control: FlameSearchControl) => void;
32+
}
33+
/**
34+
* Column oriented data input for N data points:
35+
* - label: array of N strings
36+
* - value: Float64Array of N numbers, for tooltip value display
37+
* - color: Float32Array of 4 * N numbers, eg. green[i] = color[4 * i + 1]
38+
* - position0: Tween from: Float32Array of 2 * N numbers with unit coordinates [x0, y0, x1, y1, ..., xN-1, yN-1]
39+
* - position1: Tween to: Float32Array of 2 * N numbers with unit coordinates [x0, y0, x1, y1, ..., xN-1, yN-1]
40+
* - size0: Tween from: Float32Array of N numbers with unit widths [width0, width1, ... , widthN-1]
41+
* - size1: Tween to: Float32Array of N numbers with unit widths [width0, width1, ... , widthN-1]
42+
* If position0 === position1 and size0 === size1, then the nodes are not animated
43+
* @public
44+
*/
45+
export interface ColumnarViewModel {
46+
label: string[];
47+
value: Float64Array;
48+
color: Float32Array;
49+
position0: Float32Array;
50+
position1: Float32Array;
51+
size0: Float32Array;
52+
size1: Float32Array;
53+
}
54+
/**
55+
* Specifies the flame chart
56+
* @public
57+
*/
58+
export interface FlameSpec<D extends BaseDatum = Datum> extends Spec, LegacyAnimationConfig {
59+
specType: typeof SpecType.Series;
60+
chartType: typeof ChartType.Flame;
61+
columnarData: ColumnarViewModel;
62+
controlProviderCallback: Partial<ControlReceiverCallbacks>;
63+
valueAccessor: ValueAccessor<D>;
64+
valueFormatter: ValueFormatter;
65+
valueGetter: (datumIndex: number) => number;
66+
search?: {
67+
text: string;
68+
};
69+
onSearchTextChange?: (text: string) => void;
70+
}
71+
declare const buildProps: import("../../state/spec_factory").BuildProps<FlameSpec<any>, "chartType" | "specType", "animation" | "valueFormatter" | "valueGetter" | "valueAccessor", "search" | "onSearchTextChange", "id" | "columnarData" | "controlProviderCallback">;
72+
/**
73+
* Adds flame spec to chart specs
74+
* @public
75+
*/
76+
export declare const Flame: <D extends BaseDatum = any>(props: SFProps<FlameSpec<D>, "chartType" | "specType", "animation" | "valueFormatter" | "valueGetter" | "valueAccessor", "search" | "onSearchTextChange", "id" | "columnarData" | "controlProviderCallback">) => null;
77+
export {};
78+
//# sourceMappingURL=flame_api.d.ts.map

packages/charts/dist/chart_types/flame_chart/flame_api.d.ts.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/charts/dist/chart_types/flame_chart/flame_api.js

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/charts/dist/chart_types/flame_chart/flame_api.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export {};
2+
//# sourceMappingURL=flame_chart.d.ts.map

packages/charts/dist/chart_types/flame_chart/flame_chart.d.ts.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)