@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/schema/table.schema.json
CHANGED
|
@@ -392,6 +392,10 @@
|
|
|
392
392
|
"color": {
|
|
393
393
|
"type": "string",
|
|
394
394
|
"description": "Text color (CSS color string)."
|
|
395
|
+
},
|
|
396
|
+
"maxLines": {
|
|
397
|
+
"type": "number",
|
|
398
|
+
"description": "Maximum number of lines this chrome text may wrap to. Additional lines are dropped and the last kept line is truncated with an ellipsis. Bounds the chrome's contribution to layout height at any container width. Applies whether the font size comes from the theme default or an explicit override. Caps height only, not horizontal overflow of a single unbreakable word."
|
|
395
399
|
}
|
|
396
400
|
},
|
|
397
401
|
"additionalProperties": false,
|
|
@@ -776,7 +780,7 @@
|
|
|
776
780
|
"update": {
|
|
777
781
|
"anyOf": [
|
|
778
782
|
{
|
|
779
|
-
"$ref": "#/definitions/
|
|
783
|
+
"$ref": "#/definitions/UpdatePhaseConfig"
|
|
780
784
|
},
|
|
781
785
|
{
|
|
782
786
|
"type": "boolean"
|
|
@@ -856,6 +860,36 @@
|
|
|
856
860
|
},
|
|
857
861
|
"additionalProperties": false,
|
|
858
862
|
"description": "Stagger configuration for sequential element reveal."
|
|
863
|
+
},
|
|
864
|
+
"UpdatePhaseConfig": {
|
|
865
|
+
"type": "object",
|
|
866
|
+
"properties": {
|
|
867
|
+
"duration": {
|
|
868
|
+
"type": "number",
|
|
869
|
+
"description": "Duration in ms. Default: 500 for enter."
|
|
870
|
+
},
|
|
871
|
+
"ease": {
|
|
872
|
+
"$ref": "#/definitions/AnimationEase",
|
|
873
|
+
"description": "Easing preset. Default: 'smooth'."
|
|
874
|
+
},
|
|
875
|
+
"stagger": {
|
|
876
|
+
"anyOf": [
|
|
877
|
+
{
|
|
878
|
+
"$ref": "#/definitions/AnimationStagger"
|
|
879
|
+
},
|
|
880
|
+
{
|
|
881
|
+
"type": "boolean"
|
|
882
|
+
}
|
|
883
|
+
],
|
|
884
|
+
"description": "Stagger config. true = defaults, false = no stagger. Default: true for enter."
|
|
885
|
+
},
|
|
886
|
+
"maxMarks": {
|
|
887
|
+
"type": "number",
|
|
888
|
+
"description": "Maximum mark count that still runs a tweened data-update transition. Default: 500. Above the cap the chart swaps instantly instead, because per-frame SVG attribute writes on thousands of elements drop frames on low-end devices. Raise it deliberately when the audience is desktop-heavy and you have measured the frame budget."
|
|
889
|
+
}
|
|
890
|
+
},
|
|
891
|
+
"additionalProperties": false,
|
|
892
|
+
"description": "Data-update phase config. Adds `maxMarks` on top of the shared phase options; the cap is meaningless for enter/exit, which animate via CSS."
|
|
859
893
|
}
|
|
860
894
|
}
|
|
861
895
|
}
|