@blueprint-chart/lib 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/dist/charts/axis/axis-service.d.ts +0 -55
- package/dist/charts/axis/horizontal-axis.d.ts +0 -58
- package/dist/charts/axis/index.d.ts +0 -4
- package/dist/charts/axis/vertical-axis.d.ts +0 -12
- package/dist/charts/canvas/canvas.d.ts +0 -45
- package/dist/charts/chart-helpers.d.ts +0 -3
- package/dist/charts/colorblind.d.ts +0 -34
- package/dist/charts/contrast.d.ts +0 -33
- package/dist/charts/curves.d.ts +0 -2
- package/dist/charts/date-parse.d.ts +0 -12
- package/dist/charts/defaults/expectations.d.ts +0 -2
- package/dist/charts/defaults/helpers.d.ts +0 -6
- package/dist/charts/defaults/types.d.ts +0 -61
- package/dist/charts/format-helpers.d.ts +0 -31
- package/dist/charts/frame/frame.d.ts +0 -8
- package/dist/charts/index.d.ts +0 -17
- package/dist/charts/legend/legend-size.d.ts +0 -5
- package/dist/charts/legend/legend.d.ts +0 -4
- package/dist/charts/line-symbols.d.ts +0 -9
- package/dist/charts/motion.d.ts +0 -45
- package/dist/charts/palettes.d.ts +0 -7
- package/dist/charts/plugins/annotations/context.d.ts +0 -17
- package/dist/charts/plugins/annotations/direction-helpers.d.ts +0 -14
- package/dist/charts/plugins/annotations/free-renderer.d.ts +0 -4
- package/dist/charts/plugins/annotations/index.d.ts +0 -10
- package/dist/charts/plugins/annotations/point-renderer.d.ts +0 -6
- package/dist/charts/plugins/annotations/position-helpers.d.ts +0 -2
- package/dist/charts/plugins/annotations/range-renderer.d.ts +0 -4
- package/dist/charts/plugins/annotations/shared.d.ts +0 -57
- package/dist/charts/plugins/annotations/snapshots.d.ts +0 -21
- package/dist/charts/plugins/arc-labels.d.ts +0 -53
- package/dist/charts/plugins/crosshair.d.ts +0 -10
- package/dist/charts/plugins/proximity.d.ts +0 -27
- package/dist/charts/plugins/test-helpers.d.ts +0 -1
- package/dist/charts/plugins/tooltip.d.ts +0 -6
- package/dist/charts/plugins/value-labels.d.ts +0 -6
- package/dist/charts/registry.d.ts +0 -5
- package/dist/charts/resolve.d.ts +0 -3
- package/dist/charts/scale-helpers.d.ts +0 -19
- package/dist/charts/series-helpers.d.ts +0 -10
- package/dist/charts/stack-helpers.d.ts +0 -17
- package/dist/charts/transition-cache.d.ts +0 -8
- package/dist/charts/types/area/area.d.ts +0 -3
- package/dist/charts/types/area-stacked/area-stacked.d.ts +0 -3
- package/dist/charts/types/bar-grouped/bar-grouped.d.ts +0 -3
- package/dist/charts/types/bar-horizontal/bar-horizontal.d.ts +0 -3
- package/dist/charts/types/bar-multi/bar-multi.d.ts +0 -3
- package/dist/charts/types/bar-split/bar-split.d.ts +0 -3
- package/dist/charts/types/bar-stacked/bar-stacked.d.ts +0 -3
- package/dist/charts/types/bar-vertical/bar-vertical.d.ts +0 -3
- package/dist/charts/types/column-stacked/column-stacked.d.ts +0 -3
- package/dist/charts/types/donut/donut.d.ts +0 -4
- package/dist/charts/types/line/line.d.ts +0 -3
- package/dist/charts/types/line-multi/line-multi.d.ts +0 -3
- package/dist/charts/types/pie/pie.d.ts +0 -2
- package/dist/charts/types.d.ts +0 -269
- package/dist/dsl/converter.d.ts +0 -50
- package/dist/dsl/index.d.ts +0 -3
- package/dist/dsl/lexer.d.ts +0 -8
- package/dist/dsl/parser.d.ts +0 -2
- package/dist/dsl/serializer.d.ts +0 -3
- package/dist/dsl/types.d.ts +0 -88
- package/dist/enums.d.ts +0 -193
- package/dist/index.d.ts +0 -27
- package/dist/index.js +0 -7088
- package/dist/lib/lib.iife.js +0 -186
- package/dist/runtime/chart-css.d.ts +0 -1
- package/dist/runtime/index.d.ts +0 -4
- package/dist/runtime/runtime.d.ts +0 -1
- package/dist/runtime/scenes.d.ts +0 -19
- package/dist/runtime/steps.d.ts +0 -3
- package/dist/samples.d.ts +0 -10
package/dist/dsl/types.d.ts
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { DslNodeType, AnnotationKind, AnnotationAction } from '../enums';
|
|
2
|
-
export interface PropertyNode {
|
|
3
|
-
type: DslNodeType.Property;
|
|
4
|
-
key: string;
|
|
5
|
-
value: string | number;
|
|
6
|
-
isPercentage: boolean;
|
|
7
|
-
values?: (string | number)[];
|
|
8
|
-
}
|
|
9
|
-
export interface DataNode {
|
|
10
|
-
type: DslNodeType.Data;
|
|
11
|
-
entries: PropertyNode[];
|
|
12
|
-
}
|
|
13
|
-
export interface ColorizeNode {
|
|
14
|
-
type: DslNodeType.Colorize;
|
|
15
|
-
target: string;
|
|
16
|
-
properties: PropertyNode[];
|
|
17
|
-
}
|
|
18
|
-
export interface HighlightNode {
|
|
19
|
-
type: DslNodeType.Highlight;
|
|
20
|
-
target: string;
|
|
21
|
-
}
|
|
22
|
-
export interface AreaFillNode {
|
|
23
|
-
type: DslNodeType.AreaFill;
|
|
24
|
-
from: string;
|
|
25
|
-
to: string;
|
|
26
|
-
properties: PropertyNode[];
|
|
27
|
-
}
|
|
28
|
-
export interface PointAnnotationNode {
|
|
29
|
-
type: DslNodeType.Annotation;
|
|
30
|
-
kind: AnnotationKind.Point;
|
|
31
|
-
target: string;
|
|
32
|
-
properties: PropertyNode[];
|
|
33
|
-
}
|
|
34
|
-
export interface RangeAnnotationNode {
|
|
35
|
-
type: DslNodeType.Annotation;
|
|
36
|
-
kind: AnnotationKind.Range;
|
|
37
|
-
properties: PropertyNode[];
|
|
38
|
-
}
|
|
39
|
-
export interface FreeAnnotationNode {
|
|
40
|
-
type: DslNodeType.Annotation;
|
|
41
|
-
kind: AnnotationKind.Free;
|
|
42
|
-
properties: PropertyNode[];
|
|
43
|
-
}
|
|
44
|
-
export type AnnotationNode = PointAnnotationNode | RangeAnnotationNode | FreeAnnotationNode;
|
|
45
|
-
export interface SeriesNode {
|
|
46
|
-
type: DslNodeType.Series;
|
|
47
|
-
name: string;
|
|
48
|
-
properties: PropertyNode[];
|
|
49
|
-
}
|
|
50
|
-
export interface AnnotationVisibilityNode {
|
|
51
|
-
type: DslNodeType.AnnotationVisibility;
|
|
52
|
-
action: AnnotationAction;
|
|
53
|
-
kind: AnnotationKind;
|
|
54
|
-
id: string;
|
|
55
|
-
}
|
|
56
|
-
export interface SceneNode {
|
|
57
|
-
type: DslNodeType.Scene;
|
|
58
|
-
name: string | null;
|
|
59
|
-
properties: PropertyNode[];
|
|
60
|
-
data: DataNode | null;
|
|
61
|
-
colorizes: ColorizeNode[];
|
|
62
|
-
highlights: HighlightNode[];
|
|
63
|
-
areaFills: AreaFillNode[];
|
|
64
|
-
annotations: AnnotationNode[];
|
|
65
|
-
annotationVisibility: AnnotationVisibilityNode[];
|
|
66
|
-
series: SeriesNode[];
|
|
67
|
-
transforms: TransformNode[];
|
|
68
|
-
}
|
|
69
|
-
/** @deprecated Use SceneNode instead */
|
|
70
|
-
export type StepNode = SceneNode;
|
|
71
|
-
export interface TransformNode {
|
|
72
|
-
type: DslNodeType.Transform;
|
|
73
|
-
transformType: string;
|
|
74
|
-
properties: PropertyNode[];
|
|
75
|
-
}
|
|
76
|
-
export interface ChartNode {
|
|
77
|
-
type: DslNodeType.Chart;
|
|
78
|
-
chartType: string;
|
|
79
|
-
properties: PropertyNode[];
|
|
80
|
-
data: DataNode | null;
|
|
81
|
-
colorizes: ColorizeNode[];
|
|
82
|
-
highlights: HighlightNode[];
|
|
83
|
-
areaFills: AreaFillNode[];
|
|
84
|
-
annotations: AnnotationNode[];
|
|
85
|
-
series: SeriesNode[];
|
|
86
|
-
scenes: SceneNode[];
|
|
87
|
-
transforms: TransformNode[];
|
|
88
|
-
}
|
package/dist/enums.d.ts
DELETED
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
export declare enum ChartType {
|
|
2
|
-
BarVertical = "bar-vertical",
|
|
3
|
-
BarHorizontal = "bar-horizontal",
|
|
4
|
-
BarMulti = "bar-multi",
|
|
5
|
-
ColumnStacked = "column-stacked",
|
|
6
|
-
BarStacked = "bar-stacked",
|
|
7
|
-
BarSplit = "bar-split",
|
|
8
|
-
BarGrouped = "bar-grouped",
|
|
9
|
-
Line = "line",
|
|
10
|
-
LineMulti = "line-multi",
|
|
11
|
-
Area = "area",
|
|
12
|
-
AreaStacked = "area-stacked",
|
|
13
|
-
Donut = "donut",
|
|
14
|
-
Pie = "pie",
|
|
15
|
-
VerticalBar = "vertical-bar",
|
|
16
|
-
HorizontalBar = "horizontal-bar"
|
|
17
|
-
}
|
|
18
|
-
export declare enum AxisDirection {
|
|
19
|
-
Left = "left",
|
|
20
|
-
Right = "right"
|
|
21
|
-
}
|
|
22
|
-
export declare enum ScaleType {
|
|
23
|
-
Linear = "linear",
|
|
24
|
-
Log = "log"
|
|
25
|
-
}
|
|
26
|
-
export declare enum GridStyle {
|
|
27
|
-
Solid = "solid",
|
|
28
|
-
Dashed = "dashed",
|
|
29
|
-
Dotted = "dotted",
|
|
30
|
-
None = "none"
|
|
31
|
-
}
|
|
32
|
-
export declare enum LabelPosition {
|
|
33
|
-
Auto = "auto",
|
|
34
|
-
Inside = "inside",
|
|
35
|
-
Outside = "outside",
|
|
36
|
-
Off = "off"
|
|
37
|
-
}
|
|
38
|
-
export declare enum LabelRotation {
|
|
39
|
-
Auto = "auto",
|
|
40
|
-
Horizontal = "horizontal",
|
|
41
|
-
Vertical = "vertical"
|
|
42
|
-
}
|
|
43
|
-
export declare enum TickPosition {
|
|
44
|
-
Above = "above",
|
|
45
|
-
Below = "below"
|
|
46
|
-
}
|
|
47
|
-
export declare enum FrameSizing {
|
|
48
|
-
Auto = "auto",
|
|
49
|
-
Standard = "standard",
|
|
50
|
-
AspectRatio = "aspect-ratio"
|
|
51
|
-
}
|
|
52
|
-
export declare enum CompassDirection {
|
|
53
|
-
NW = "NW",
|
|
54
|
-
N = "N",
|
|
55
|
-
NE = "NE",
|
|
56
|
-
E = "E",
|
|
57
|
-
SE = "SE",
|
|
58
|
-
S = "S",
|
|
59
|
-
SW = "SW",
|
|
60
|
-
W = "W",
|
|
61
|
-
Center = "center"
|
|
62
|
-
}
|
|
63
|
-
export declare enum AnnotationLineStyle {
|
|
64
|
-
Direct = "direct",
|
|
65
|
-
CurveLeft = "curve-left",
|
|
66
|
-
CurveRight = "curve-right",
|
|
67
|
-
Elbow = "elbow"
|
|
68
|
-
}
|
|
69
|
-
export declare enum StrokeStyle {
|
|
70
|
-
Solid = "solid",
|
|
71
|
-
Dotted = "dotted",
|
|
72
|
-
Dashed = "dashed"
|
|
73
|
-
}
|
|
74
|
-
export declare enum AnnotationKind {
|
|
75
|
-
Point = "point",
|
|
76
|
-
Range = "range",
|
|
77
|
-
Free = "free"
|
|
78
|
-
}
|
|
79
|
-
export declare enum AnnotationAction {
|
|
80
|
-
Hide = "hide",
|
|
81
|
-
Show = "show"
|
|
82
|
-
}
|
|
83
|
-
export declare enum RangeAnchor {
|
|
84
|
-
Start = "start",
|
|
85
|
-
Center = "center",
|
|
86
|
-
End = "end"
|
|
87
|
-
}
|
|
88
|
-
export declare enum Orientation {
|
|
89
|
-
Vertical = "vertical",
|
|
90
|
-
Horizontal = "horizontal"
|
|
91
|
-
}
|
|
92
|
-
export declare enum SymbolShape {
|
|
93
|
-
Circle = "circle",
|
|
94
|
-
Square = "square",
|
|
95
|
-
Diamond = "diamond",
|
|
96
|
-
Triangle = "triangle",
|
|
97
|
-
TriangleDown = "triangleDown",
|
|
98
|
-
Cross = "cross",
|
|
99
|
-
Star = "star"
|
|
100
|
-
}
|
|
101
|
-
export declare enum SymbolShowOn {
|
|
102
|
-
All = "all",
|
|
103
|
-
First = "first",
|
|
104
|
-
Last = "last",
|
|
105
|
-
FirstLast = "firstLast"
|
|
106
|
-
}
|
|
107
|
-
export declare enum SymbolStyle {
|
|
108
|
-
Filled = "filled",
|
|
109
|
-
Hollow = "hollow"
|
|
110
|
-
}
|
|
111
|
-
export declare enum SortDirection {
|
|
112
|
-
Ascending = "ascending",
|
|
113
|
-
Descending = "descending",
|
|
114
|
-
None = "none"
|
|
115
|
-
}
|
|
116
|
-
export declare enum SortMode {
|
|
117
|
-
Total = "total",
|
|
118
|
-
WithinGroups = "within-groups",
|
|
119
|
-
None = "none"
|
|
120
|
-
}
|
|
121
|
-
export declare enum LegendPosition {
|
|
122
|
-
Top = "top",
|
|
123
|
-
Bottom = "bottom",
|
|
124
|
-
Left = "left",
|
|
125
|
-
Right = "right"
|
|
126
|
-
}
|
|
127
|
-
export declare enum Anchor {
|
|
128
|
-
Start = "start",
|
|
129
|
-
Middle = "middle",
|
|
130
|
-
End = "end"
|
|
131
|
-
}
|
|
132
|
-
export declare enum ValueLabelPosition {
|
|
133
|
-
Inside = "inside",
|
|
134
|
-
Outside = "outside",
|
|
135
|
-
Auto = "auto"
|
|
136
|
-
}
|
|
137
|
-
export declare enum CrosshairDirection {
|
|
138
|
-
Both = "both",
|
|
139
|
-
Vertical = "vertical",
|
|
140
|
-
Horizontal = "horizontal"
|
|
141
|
-
}
|
|
142
|
-
export declare enum CrosshairStyle {
|
|
143
|
-
Solid = "solid",
|
|
144
|
-
Dashed = "dashed",
|
|
145
|
-
Dotted = "dotted"
|
|
146
|
-
}
|
|
147
|
-
export declare enum StackMode {
|
|
148
|
-
Normal = "normal",
|
|
149
|
-
Percent = "percent"
|
|
150
|
-
}
|
|
151
|
-
export declare enum LineStyle {
|
|
152
|
-
Solid = "solid",
|
|
153
|
-
Dashed = "dashed",
|
|
154
|
-
Dotted = "dotted",
|
|
155
|
-
None = "none"
|
|
156
|
-
}
|
|
157
|
-
export declare enum ChartOptionType {
|
|
158
|
-
Colors = "colors",
|
|
159
|
-
Boolean = "boolean",
|
|
160
|
-
Select = "select",
|
|
161
|
-
Text = "text",
|
|
162
|
-
NumberFormat = "numberFormat",
|
|
163
|
-
DateFormat = "dateFormat"
|
|
164
|
-
}
|
|
165
|
-
export declare enum DirectLabelMode {
|
|
166
|
-
Off = "",
|
|
167
|
-
Auto = "auto",
|
|
168
|
-
Outside = "outside",
|
|
169
|
-
Inside = "inside"
|
|
170
|
-
}
|
|
171
|
-
export declare enum Interpolation {
|
|
172
|
-
Linear = "linear",
|
|
173
|
-
MonotoneX = "monotoneX",
|
|
174
|
-
Step = "step",
|
|
175
|
-
StepBefore = "stepBefore",
|
|
176
|
-
StepAfter = "stepAfter",
|
|
177
|
-
Basis = "basis",
|
|
178
|
-
Cardinal = "cardinal",
|
|
179
|
-
CatmullRom = "catmullRom"
|
|
180
|
-
}
|
|
181
|
-
export declare enum DslNodeType {
|
|
182
|
-
Property = "property",
|
|
183
|
-
Data = "data",
|
|
184
|
-
Colorize = "colorize",
|
|
185
|
-
Highlight = "highlight",
|
|
186
|
-
AreaFill = "areafill",
|
|
187
|
-
Annotation = "annotation",
|
|
188
|
-
Series = "series",
|
|
189
|
-
AnnotationVisibility = "annotation-visibility",
|
|
190
|
-
Scene = "scene",
|
|
191
|
-
Transform = "transform",
|
|
192
|
-
Chart = "chart"
|
|
193
|
-
}
|
package/dist/index.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export { ChartType, AxisDirection, ScaleType, GridStyle, LabelPosition, LabelRotation, TickPosition, FrameSizing, CompassDirection, AnnotationLineStyle, StrokeStyle, AnnotationKind, AnnotationAction, RangeAnchor, Orientation, SymbolShape, SymbolShowOn, SymbolStyle, SortDirection, SortMode, LegendPosition, Anchor, ValueLabelPosition, CrosshairDirection, CrosshairStyle, StackMode, LineStyle, ChartOptionType, DirectLabelMode, Interpolation, DslNodeType, } from './enums';
|
|
2
|
-
export type { ChartData, ChartOptions, ChartRenderer, ChartOptionDef, ChartTypeOptions, ChartTypeOptionKey, ColorizeConfig, HighlightConfig, AxisOptions, FrameOptions, AreaFillConfig, AnnotationConfig, PointAnnotationConfig, RangeAnnotationConfig, FreeAnnotationConfig, AnnotationLineConfig, LineSymbolConfig, SeriesOverride, Margin, } from './charts/types';
|
|
3
|
-
export { createFrame } from './charts/frame/frame';
|
|
4
|
-
export type { FrameElements } from './charts/frame/frame';
|
|
5
|
-
export { createCanvas } from './charts/canvas/canvas';
|
|
6
|
-
export type { CanvasElements } from './charts/canvas/canvas';
|
|
7
|
-
export { renderVerticalAxis } from './charts/axis/vertical-axis';
|
|
8
|
-
export { renderHorizontalAxis } from './charts/axis/horizontal-axis';
|
|
9
|
-
export { renderLegend } from './charts/legend/legend';
|
|
10
|
-
export { registerChart, getChart, getChartOptions, listCharts } from './charts/registry';
|
|
11
|
-
export { parseData, buildChartOptions } from './charts/chart-helpers';
|
|
12
|
-
export { getChartTypeDefaults, resolveChartTypeOptions } from './charts/resolve';
|
|
13
|
-
export { resolveBarGapPadding, DEFAULT_BAR_GAP } from './charts/scale-helpers';
|
|
14
|
-
export { resolvePalette, listPalettes } from './charts/palettes';
|
|
15
|
-
export type { PaletteEntry } from './charts/palettes';
|
|
16
|
-
export { resolveSeriesColor, resolveSeriesInterpolation, isSeriesHidden } from './charts/series-helpers';
|
|
17
|
-
export { resolveBackgroundColor, adjustColorsForBackground, wcagContrastRatio, wcagLevel } from './charts/contrast';
|
|
18
|
-
export { getTransitionDuration, snapshotForFadeOut, commitFadeOut, fadeIn } from './charts/motion';
|
|
19
|
-
export { getCachedChart } from './charts/transition-cache';
|
|
20
|
-
export { getCvdFilterId, createCvdSvgFilter, simulateCvdColor, checkCvdColors } from './charts/colorblind';
|
|
21
|
-
export type { CvdType, CvdIssue } from './charts/colorblind';
|
|
22
|
-
export { parse } from './dsl/parser';
|
|
23
|
-
export { serialize, compactSerialize } from './dsl/serializer';
|
|
24
|
-
export { propertyMap, extractChartTypeOptions, dataEntriesToString, extractSceneOverrides, convertColorizes, convertHighlights, convertAreaFills, convertAnnotations, convertSeriesOverrides } from './dsl/converter';
|
|
25
|
-
export type { AnnotationNode, AnnotationVisibilityNode, PointAnnotationNode, RangeAnnotationNode, FreeAnnotationNode, AreaFillNode, ChartNode, DataNode, ColorizeNode, HighlightNode, PropertyNode, SceneNode, SeriesNode, StepNode, TransformNode } from './dsl/types';
|
|
26
|
-
export { samples } from './samples';
|
|
27
|
-
export type { ChartSample } from './samples';
|