@opendata-ai/openchart-core 8.0.0-rc.9 → 8.1.0
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/README.md +1 -1
- package/dist/index.d.ts +403 -45
- package/dist/index.js +50 -18
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.css.map +1 -1
- package/package.json +1 -2
- package/schema/chart.schema.json +375 -69
- package/schema/table.schema.json +35 -1
- package/schema/vizspec.schema.json +992 -171
- package/src/accessibility/__tests__/alt-text.test.ts +0 -110
- package/src/accessibility/__tests__/aria.test.ts +0 -125
- package/src/accessibility/alt-text.ts +0 -155
- package/src/accessibility/aria.ts +0 -75
- package/src/accessibility/index.ts +0 -6
- package/src/colors/__tests__/colorblind.test.ts +0 -75
- package/src/colors/__tests__/contrast.test.ts +0 -119
- package/src/colors/__tests__/palettes.test.ts +0 -74
- package/src/colors/colorblind.ts +0 -131
- package/src/colors/contrast.ts +0 -143
- package/src/colors/index.ts +0 -36
- package/src/colors/palettes.ts +0 -206
- package/src/helpers/__tests__/deep-merge.test.ts +0 -54
- package/src/helpers/__tests__/spec-builders.test.ts +0 -338
- package/src/helpers/deep-merge.ts +0 -29
- package/src/helpers/spec-builders.ts +0 -479
- package/src/index.ts +0 -215
- package/src/labels/__tests__/collision.test.ts +0 -310
- package/src/labels/collision.ts +0 -249
- package/src/labels/index.ts +0 -13
- package/src/layout/__tests__/chrome.test.ts +0 -208
- package/src/layout/__tests__/text-measure.test.ts +0 -57
- package/src/layout/chrome.ts +0 -470
- package/src/layout/index.ts +0 -18
- package/src/layout/text-measure.ts +0 -404
- package/src/layout/text-wrap.ts +0 -93
- package/src/locale/__tests__/format.test.ts +0 -606
- package/src/locale/format.ts +0 -459
- package/src/locale/index.ts +0 -21
- package/src/responsive/__tests__/breakpoints.test.ts +0 -146
- package/src/responsive/__tests__/metrics.test.ts +0 -52
- package/src/responsive/breakpoints.ts +0 -177
- package/src/responsive/index.ts +0 -53
- package/src/responsive/metrics.ts +0 -299
- package/src/schema/__tests__/generated-artifacts.test.ts +0 -42
- package/src/schema/__tests__/schema.test.ts +0 -179
- package/src/styles/__tests__/reduced-motion-selectors.test.ts +0 -28
- package/src/styles/animation.css +0 -213
- package/src/styles/base.css +0 -102
- package/src/styles/chrome.css +0 -174
- package/src/styles/dark.css +0 -44
- package/src/styles/graph.css +0 -135
- package/src/styles/index.css +0 -28
- package/src/styles/keyframes.css +0 -151
- package/src/styles/legend.css +0 -18
- package/src/styles/reduced-motion.css +0 -67
- package/src/styles/series-search.css +0 -153
- package/src/styles/sparkline.css +0 -16
- package/src/styles/table-animation.css +0 -93
- package/src/styles/table.css +0 -398
- package/src/styles/token-definitions.ts +0 -199
- package/src/styles/tokens.css +0 -156
- package/src/styles/tooltip.css +0 -126
- package/src/styles/you-draw-it.css +0 -126
- package/src/theme/__tests__/dark-mode.test.ts +0 -232
- package/src/theme/__tests__/defaults.test.ts +0 -73
- package/src/theme/__tests__/resolve.test.ts +0 -277
- package/src/theme/dark-mode.ts +0 -258
- package/src/theme/defaults.ts +0 -110
- package/src/theme/index.ts +0 -8
- package/src/theme/presets.ts +0 -64
- package/src/theme/resolve.ts +0 -312
- package/src/types/__tests__/encoding.test.ts +0 -368
- package/src/types/__tests__/gradient.test.ts +0 -95
- package/src/types/__tests__/spec.test.ts +0 -499
- package/src/types/encoding.ts +0 -280
- package/src/types/events.ts +0 -236
- package/src/types/index.ts +0 -290
- package/src/types/layout.ts +0 -2024
- package/src/types/schema-roots.ts +0 -32
- package/src/types/spec.ts +0 -2925
- package/src/types/table.ts +0 -108
- package/src/types/theme.ts +0 -209
package/src/types/index.ts
DELETED
|
@@ -1,290 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @opendata-ai/openchart-core type system barrel export.
|
|
3
|
-
*
|
|
4
|
-
* Re-exports all types from the type modules so consumers can import
|
|
5
|
-
* from '@opendata-ai/openchart-core' directly.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
// Encoding rules
|
|
9
|
-
export type {
|
|
10
|
-
ChannelRule,
|
|
11
|
-
EncodingRule,
|
|
12
|
-
GraphChannelRule,
|
|
13
|
-
} from './encoding';
|
|
14
|
-
export {
|
|
15
|
-
GRAPH_ENCODING_RULES,
|
|
16
|
-
MARK_ENCODING_RULES,
|
|
17
|
-
} from './encoding';
|
|
18
|
-
// Event types (chart interaction callbacks)
|
|
19
|
-
export type {
|
|
20
|
-
ChartEventHandlers,
|
|
21
|
-
ChromeKey,
|
|
22
|
-
ElementEdit,
|
|
23
|
-
ElementRef,
|
|
24
|
-
MarkEvent,
|
|
25
|
-
} from './events';
|
|
26
|
-
export { elementRef } from './events';
|
|
27
|
-
// Layout types (engine output)
|
|
28
|
-
export type {
|
|
29
|
-
A11yMetadata,
|
|
30
|
-
AnnotationFootnote,
|
|
31
|
-
ArcMark,
|
|
32
|
-
AreaMark,
|
|
33
|
-
AxisLayout,
|
|
34
|
-
AxisTick,
|
|
35
|
-
BarListLayout,
|
|
36
|
-
BarListRowMark,
|
|
37
|
-
BarTableCell,
|
|
38
|
-
BaseLegendLayout,
|
|
39
|
-
CategoricalLegendLayout,
|
|
40
|
-
CategoryTableCell,
|
|
41
|
-
CellStyle,
|
|
42
|
-
ChartLayout,
|
|
43
|
-
CompileOptions,
|
|
44
|
-
CompileTableOptions,
|
|
45
|
-
CompileWarning,
|
|
46
|
-
ContinuousLegendBin,
|
|
47
|
-
ContinuousLegendLayout,
|
|
48
|
-
ContinuousLegendTick,
|
|
49
|
-
EndpointLabelEntry,
|
|
50
|
-
EndpointLabelsLayout,
|
|
51
|
-
FacetLayout,
|
|
52
|
-
FacetPanelLayout,
|
|
53
|
-
FillPatternType,
|
|
54
|
-
FlagTableCell,
|
|
55
|
-
GradientColorStop,
|
|
56
|
-
GradientLegendLayout,
|
|
57
|
-
GraphEdgeLayout,
|
|
58
|
-
GraphLayout,
|
|
59
|
-
GraphNodeLayout,
|
|
60
|
-
Gridline,
|
|
61
|
-
HeatmapTableCell,
|
|
62
|
-
ImageTableCell,
|
|
63
|
-
LegendChannel,
|
|
64
|
-
LegendEntry,
|
|
65
|
-
LegendEntryPosition,
|
|
66
|
-
LegendLayout,
|
|
67
|
-
LineMark,
|
|
68
|
-
MapBorders,
|
|
69
|
-
MapFeatureMark,
|
|
70
|
-
MapFocusLayout,
|
|
71
|
-
MapLayout,
|
|
72
|
-
MapPointMark,
|
|
73
|
-
Margins,
|
|
74
|
-
Mark,
|
|
75
|
-
MarkAria,
|
|
76
|
-
MeasureTextFn,
|
|
77
|
-
PaginationState,
|
|
78
|
-
Point,
|
|
79
|
-
PointMark,
|
|
80
|
-
Rect,
|
|
81
|
-
RectMark,
|
|
82
|
-
ResolvedAnimation,
|
|
83
|
-
ResolvedAnimationPhase,
|
|
84
|
-
ResolvedAnnotation,
|
|
85
|
-
ResolvedChrome,
|
|
86
|
-
ResolvedChromeElement,
|
|
87
|
-
ResolvedColumn,
|
|
88
|
-
ResolvedFillPattern,
|
|
89
|
-
ResolvedLabel,
|
|
90
|
-
ResolvedMetricBar,
|
|
91
|
-
ResolvedMetricCell,
|
|
92
|
-
ResolvedSeriesSearch,
|
|
93
|
-
ResolvedYouDrawIt,
|
|
94
|
-
RuleMarkLayout,
|
|
95
|
-
SankeyLayout,
|
|
96
|
-
SankeyLinkMark,
|
|
97
|
-
SankeyNodeMark,
|
|
98
|
-
ScaleInvert,
|
|
99
|
-
SizeLegendCircle,
|
|
100
|
-
SizeLegendLayout,
|
|
101
|
-
SortState,
|
|
102
|
-
SparklineData,
|
|
103
|
-
SparklineTableCell,
|
|
104
|
-
TableCell,
|
|
105
|
-
TableCellBase,
|
|
106
|
-
TableLayout,
|
|
107
|
-
TableRow,
|
|
108
|
-
TextMarkLayout,
|
|
109
|
-
TextStyle,
|
|
110
|
-
TextTableCell,
|
|
111
|
-
TickMarkLayout,
|
|
112
|
-
TileMapLayout,
|
|
113
|
-
TileMapTileMark,
|
|
114
|
-
TooltipContent,
|
|
115
|
-
TooltipField,
|
|
116
|
-
YouDrawItSample,
|
|
117
|
-
YouDrawItYInvert,
|
|
118
|
-
} from './layout';
|
|
119
|
-
// Spec types (user input)
|
|
120
|
-
export type {
|
|
121
|
-
A11yConfig,
|
|
122
|
-
AggregateOp,
|
|
123
|
-
AggregateTransform,
|
|
124
|
-
AnimationConfig,
|
|
125
|
-
AnimationEase,
|
|
126
|
-
AnimationPhaseConfig,
|
|
127
|
-
AnimationSpec,
|
|
128
|
-
AnimationStagger,
|
|
129
|
-
Annotation,
|
|
130
|
-
AnnotationAnchor,
|
|
131
|
-
AnnotationOffset,
|
|
132
|
-
ArcEncoding,
|
|
133
|
-
AreaEncoding,
|
|
134
|
-
AxisConfig,
|
|
135
|
-
BarEncoding,
|
|
136
|
-
BarListEncoding,
|
|
137
|
-
BarListSpec,
|
|
138
|
-
BarListSpecWithoutData,
|
|
139
|
-
BeeswarmEncoding,
|
|
140
|
-
BinParams,
|
|
141
|
-
BinTransform,
|
|
142
|
-
CalculateExpression,
|
|
143
|
-
CalculateTransform,
|
|
144
|
-
CalendarEncoding,
|
|
145
|
-
ChartSpec,
|
|
146
|
-
ChartSpecOverride,
|
|
147
|
-
ChartSpecWithoutData,
|
|
148
|
-
Chrome,
|
|
149
|
-
ChromeText,
|
|
150
|
-
ChromeTextStyle,
|
|
151
|
-
ChromeThemeOverride,
|
|
152
|
-
CircleEncoding,
|
|
153
|
-
Condition,
|
|
154
|
-
ConditionalValueDef,
|
|
155
|
-
ConnectorConfig,
|
|
156
|
-
ConnectorType,
|
|
157
|
-
DarkMode,
|
|
158
|
-
DataRow,
|
|
159
|
-
Display,
|
|
160
|
-
Encoding,
|
|
161
|
-
EncodingChannel,
|
|
162
|
-
EndpointLabelContent,
|
|
163
|
-
EndpointLabelsConfig,
|
|
164
|
-
FacetChannel,
|
|
165
|
-
FieldPredicate,
|
|
166
|
-
FieldType,
|
|
167
|
-
FilterPredicate,
|
|
168
|
-
FilterTransform,
|
|
169
|
-
FoldTransform,
|
|
170
|
-
GradientDef,
|
|
171
|
-
GradientStop,
|
|
172
|
-
GraphEdge,
|
|
173
|
-
GraphEncoding,
|
|
174
|
-
GraphEncodingChannel,
|
|
175
|
-
GraphLayoutConfig,
|
|
176
|
-
GraphNode,
|
|
177
|
-
GraphSpec,
|
|
178
|
-
GraphSpecWithoutData,
|
|
179
|
-
LabelConfig,
|
|
180
|
-
LabelDensity,
|
|
181
|
-
LabelSpec,
|
|
182
|
-
LayerSpec,
|
|
183
|
-
LegendConfig,
|
|
184
|
-
LinearGradient,
|
|
185
|
-
LineEncoding,
|
|
186
|
-
LogicalAnd,
|
|
187
|
-
LogicalNot,
|
|
188
|
-
LogicalOr,
|
|
189
|
-
LollipopEncoding,
|
|
190
|
-
MapEncoding,
|
|
191
|
-
MapFocus,
|
|
192
|
-
MapGeo,
|
|
193
|
-
MapPointsLayer,
|
|
194
|
-
MapProjection,
|
|
195
|
-
MapSpec,
|
|
196
|
-
MapSpecWithoutData,
|
|
197
|
-
MarkDef,
|
|
198
|
-
MarkType,
|
|
199
|
-
Metric,
|
|
200
|
-
NodeOverride,
|
|
201
|
-
ParliamentEncoding,
|
|
202
|
-
PointEncoding,
|
|
203
|
-
RadialGradient,
|
|
204
|
-
RangeAnnotation,
|
|
205
|
-
RangeEncoding,
|
|
206
|
-
RectEncoding,
|
|
207
|
-
RefLineAnnotation,
|
|
208
|
-
RelativeTimeRef,
|
|
209
|
-
ResolveConfig,
|
|
210
|
-
ResolveMode,
|
|
211
|
-
ResponsiveConfig,
|
|
212
|
-
SankeyEncoding,
|
|
213
|
-
SankeyLinkColor,
|
|
214
|
-
SankeyNodeAlign,
|
|
215
|
-
SankeySpec,
|
|
216
|
-
SankeySpecWithoutData,
|
|
217
|
-
ScaleConfig,
|
|
218
|
-
ScaleType,
|
|
219
|
-
SeriesSearchConfig,
|
|
220
|
-
SeriesStyle,
|
|
221
|
-
SortByField,
|
|
222
|
-
StoredVizSpec,
|
|
223
|
-
TableSpec,
|
|
224
|
-
TableSpecWithoutData,
|
|
225
|
-
TextAnnotation,
|
|
226
|
-
TextEncoding,
|
|
227
|
-
ThemeConfig,
|
|
228
|
-
TickEncoding,
|
|
229
|
-
TileMapEncoding,
|
|
230
|
-
TileMapPalette,
|
|
231
|
-
TileMapSpec,
|
|
232
|
-
TileMapSpecWithoutData,
|
|
233
|
-
TimeUnit,
|
|
234
|
-
TimeUnitTransform,
|
|
235
|
-
Transform,
|
|
236
|
-
ValueDef,
|
|
237
|
-
VizSpec,
|
|
238
|
-
WaffleEncoding,
|
|
239
|
-
WindowFieldDef,
|
|
240
|
-
WindowOp,
|
|
241
|
-
WindowSortField,
|
|
242
|
-
WindowTransform,
|
|
243
|
-
YouDrawItConfig,
|
|
244
|
-
} from './spec';
|
|
245
|
-
export {
|
|
246
|
-
getRepresentativeColor,
|
|
247
|
-
isAxislessMark,
|
|
248
|
-
isBarListSpec,
|
|
249
|
-
isChartSpec,
|
|
250
|
-
isConditionalDef,
|
|
251
|
-
isEncodingChannel,
|
|
252
|
-
isGradientDef,
|
|
253
|
-
isGraphSpec,
|
|
254
|
-
isLayerSpec,
|
|
255
|
-
isMapSpec,
|
|
256
|
-
isRangeAnnotation,
|
|
257
|
-
isRefLineAnnotation,
|
|
258
|
-
isSankeySpec,
|
|
259
|
-
isTableSpec,
|
|
260
|
-
isTextAnnotation,
|
|
261
|
-
isTileMapSpec,
|
|
262
|
-
isValueDef,
|
|
263
|
-
MARK_DISPLAY_NAMES,
|
|
264
|
-
MARK_TYPES,
|
|
265
|
-
resolveMarkDef,
|
|
266
|
-
resolveMarkType,
|
|
267
|
-
} from './spec';
|
|
268
|
-
// Table types
|
|
269
|
-
export type {
|
|
270
|
-
BarColumnConfig,
|
|
271
|
-
CategoryColorsConfig,
|
|
272
|
-
ColumnConfig,
|
|
273
|
-
HeatmapColumnConfig,
|
|
274
|
-
ImageColumnConfig,
|
|
275
|
-
SparklineColumnConfig,
|
|
276
|
-
} from './table';
|
|
277
|
-
// Theme types
|
|
278
|
-
export type {
|
|
279
|
-
ChromeDefaults,
|
|
280
|
-
ResolvedTheme,
|
|
281
|
-
SeriesStrategy,
|
|
282
|
-
Theme,
|
|
283
|
-
ThemeChromeDefaults,
|
|
284
|
-
ThemeColors,
|
|
285
|
-
ThemeFontSizes,
|
|
286
|
-
ThemeFonts,
|
|
287
|
-
ThemeFontWeights,
|
|
288
|
-
ThemeSpacing,
|
|
289
|
-
TokenValue,
|
|
290
|
-
} from './theme';
|