@opendata-ai/openchart-core 9.6.1 → 9.7.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/dist/index.d.ts +147 -18
- package/dist/index.js +1009 -120
- package/dist/index.js.map +1 -1
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
- package/schema/chart.schema.json +87 -2
- package/schema/table.schema.json +87 -2
- package/schema/vizspec.schema.json +199 -2
package/schema/chart.schema.json
CHANGED
|
@@ -3927,6 +3927,10 @@
|
|
|
3927
3927
|
"Chrome": {
|
|
3928
3928
|
"type": "object",
|
|
3929
3929
|
"properties": {
|
|
3930
|
+
"logo": {
|
|
3931
|
+
"type": "boolean",
|
|
3932
|
+
"description": "Whether to show the theme logo. Set false to hide it for this spec."
|
|
3933
|
+
},
|
|
3930
3934
|
"eyebrow": {
|
|
3931
3935
|
"anyOf": [
|
|
3932
3936
|
{
|
|
@@ -4775,6 +4779,21 @@
|
|
|
4775
4779
|
"ThemeConfig": {
|
|
4776
4780
|
"type": "object",
|
|
4777
4781
|
"properties": {
|
|
4782
|
+
"logo": {
|
|
4783
|
+
"anyOf": [
|
|
4784
|
+
{
|
|
4785
|
+
"$ref": "#/definitions/ThemeLogo"
|
|
4786
|
+
},
|
|
4787
|
+
{
|
|
4788
|
+
"type": "null"
|
|
4789
|
+
}
|
|
4790
|
+
],
|
|
4791
|
+
"description": "Theme logo; null clears an inherited logo."
|
|
4792
|
+
},
|
|
4793
|
+
"locale": {
|
|
4794
|
+
"type": "string",
|
|
4795
|
+
"description": "Number and date formatting locale; defaults to en-US."
|
|
4796
|
+
},
|
|
4778
4797
|
"colors": {
|
|
4779
4798
|
"anyOf": [
|
|
4780
4799
|
{
|
|
@@ -4809,7 +4828,7 @@
|
|
|
4809
4828
|
"additionalProperties": {
|
|
4810
4829
|
"type": "array",
|
|
4811
4830
|
"items": {
|
|
4812
|
-
"
|
|
4831
|
+
"$ref": "#/definitions/TokenValue"
|
|
4813
4832
|
}
|
|
4814
4833
|
},
|
|
4815
4834
|
"description": "Sequential palettes keyed by name. Each is an array of color stops."
|
|
@@ -4819,7 +4838,7 @@
|
|
|
4819
4838
|
"additionalProperties": {
|
|
4820
4839
|
"type": "array",
|
|
4821
4840
|
"items": {
|
|
4822
|
-
"
|
|
4841
|
+
"$ref": "#/definitions/TokenValue"
|
|
4823
4842
|
}
|
|
4824
4843
|
},
|
|
4825
4844
|
"description": "Diverging palettes keyed by name. Each is an array of color stops with a neutral midpoint."
|
|
@@ -5104,6 +5123,47 @@
|
|
|
5104
5123
|
"additionalProperties": false,
|
|
5105
5124
|
"description": "User-facing theme configuration for overriding defaults. All fields are optional. The engine deep-merges these onto the default theme."
|
|
5106
5125
|
},
|
|
5126
|
+
"ThemeLogo": {
|
|
5127
|
+
"type": "object",
|
|
5128
|
+
"properties": {
|
|
5129
|
+
"src": {
|
|
5130
|
+
"type": "string",
|
|
5131
|
+
"description": "Logo image data URL."
|
|
5132
|
+
},
|
|
5133
|
+
"height": {
|
|
5134
|
+
"type": "number",
|
|
5135
|
+
"description": "Display height in pixels."
|
|
5136
|
+
},
|
|
5137
|
+
"width": {
|
|
5138
|
+
"type": "number",
|
|
5139
|
+
"description": "Display width in pixels; omitted to derive it from the source aspect ratio."
|
|
5140
|
+
},
|
|
5141
|
+
"position": {
|
|
5142
|
+
"$ref": "#/definitions/LogoPosition",
|
|
5143
|
+
"description": "Logo placement. Defaults to bottom-right."
|
|
5144
|
+
},
|
|
5145
|
+
"alt": {
|
|
5146
|
+
"type": "string",
|
|
5147
|
+
"description": "Accessible description of the logo."
|
|
5148
|
+
}
|
|
5149
|
+
},
|
|
5150
|
+
"required": [
|
|
5151
|
+
"src",
|
|
5152
|
+
"height"
|
|
5153
|
+
],
|
|
5154
|
+
"additionalProperties": false,
|
|
5155
|
+
"description": "Theme logo source, size and placement."
|
|
5156
|
+
},
|
|
5157
|
+
"LogoPosition": {
|
|
5158
|
+
"type": "string",
|
|
5159
|
+
"enum": [
|
|
5160
|
+
"top-left",
|
|
5161
|
+
"top-right",
|
|
5162
|
+
"bottom-left",
|
|
5163
|
+
"bottom-right"
|
|
5164
|
+
],
|
|
5165
|
+
"description": "Placement of a theme logo relative to the visualization."
|
|
5166
|
+
},
|
|
5107
5167
|
"TokenValue": {
|
|
5108
5168
|
"anyOf": [
|
|
5109
5169
|
{
|
|
@@ -5131,6 +5191,18 @@
|
|
|
5131
5191
|
"ChromeThemeOverride": {
|
|
5132
5192
|
"type": "object",
|
|
5133
5193
|
"properties": {
|
|
5194
|
+
"fontFamily": {
|
|
5195
|
+
"type": "string",
|
|
5196
|
+
"description": "Font family override for this chrome element."
|
|
5197
|
+
},
|
|
5198
|
+
"textAlign": {
|
|
5199
|
+
"$ref": "#/definitions/ChromeTextAlign",
|
|
5200
|
+
"description": "Horizontal alignment of this chrome element."
|
|
5201
|
+
},
|
|
5202
|
+
"prefix": {
|
|
5203
|
+
"type": "string",
|
|
5204
|
+
"description": "Text prepended for display while preserving the authored text."
|
|
5205
|
+
},
|
|
5134
5206
|
"color": {
|
|
5135
5207
|
"$ref": "#/definitions/TokenValue",
|
|
5136
5208
|
"description": "Text color. Accepts a TokenValue for light/dark pairs."
|
|
@@ -5151,6 +5223,15 @@
|
|
|
5151
5223
|
"additionalProperties": false,
|
|
5152
5224
|
"description": "Per-element chrome theme typography controls."
|
|
5153
5225
|
},
|
|
5226
|
+
"ChromeTextAlign": {
|
|
5227
|
+
"type": "string",
|
|
5228
|
+
"enum": [
|
|
5229
|
+
"left",
|
|
5230
|
+
"center",
|
|
5231
|
+
"right"
|
|
5232
|
+
],
|
|
5233
|
+
"description": "Horizontal alignment of a chrome text element."
|
|
5234
|
+
},
|
|
5154
5235
|
"SeriesStrategy": {
|
|
5155
5236
|
"type": "string",
|
|
5156
5237
|
"enum": [
|
|
@@ -8439,6 +8520,10 @@
|
|
|
8439
8520
|
"$ref": "#/definitions/ThemeConfig",
|
|
8440
8521
|
"description": "Theme configuration overrides."
|
|
8441
8522
|
},
|
|
8523
|
+
"locale": {
|
|
8524
|
+
"type": "string",
|
|
8525
|
+
"description": "Number and date formatting locale; overrides the theme locale."
|
|
8526
|
+
},
|
|
8442
8527
|
"watermark": {
|
|
8443
8528
|
"type": "boolean",
|
|
8444
8529
|
"description": "Whether to show the OpenChart watermark. Defaults to true; auto-hides when the container is under 200px tall (the cramped height class) unless explicitly set."
|
package/schema/table.schema.json
CHANGED
|
@@ -60,6 +60,10 @@
|
|
|
60
60
|
"$ref": "#/definitions/ThemeConfig",
|
|
61
61
|
"description": "Theme configuration overrides."
|
|
62
62
|
},
|
|
63
|
+
"locale": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"description": "Number and date formatting locale; overrides the theme locale."
|
|
66
|
+
},
|
|
63
67
|
"watermark": {
|
|
64
68
|
"type": "boolean",
|
|
65
69
|
"description": "Whether to show the OpenChart watermark. Defaults to true."
|
|
@@ -450,6 +454,10 @@
|
|
|
450
454
|
"Chrome": {
|
|
451
455
|
"type": "object",
|
|
452
456
|
"properties": {
|
|
457
|
+
"logo": {
|
|
458
|
+
"type": "boolean",
|
|
459
|
+
"description": "Whether to show the theme logo. Set false to hide it for this spec."
|
|
460
|
+
},
|
|
453
461
|
"eyebrow": {
|
|
454
462
|
"anyOf": [
|
|
455
463
|
{
|
|
@@ -602,6 +610,21 @@
|
|
|
602
610
|
"ThemeConfig": {
|
|
603
611
|
"type": "object",
|
|
604
612
|
"properties": {
|
|
613
|
+
"logo": {
|
|
614
|
+
"anyOf": [
|
|
615
|
+
{
|
|
616
|
+
"$ref": "#/definitions/ThemeLogo"
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
"type": "null"
|
|
620
|
+
}
|
|
621
|
+
],
|
|
622
|
+
"description": "Theme logo; null clears an inherited logo."
|
|
623
|
+
},
|
|
624
|
+
"locale": {
|
|
625
|
+
"type": "string",
|
|
626
|
+
"description": "Number and date formatting locale; defaults to en-US."
|
|
627
|
+
},
|
|
605
628
|
"colors": {
|
|
606
629
|
"anyOf": [
|
|
607
630
|
{
|
|
@@ -636,7 +659,7 @@
|
|
|
636
659
|
"additionalProperties": {
|
|
637
660
|
"type": "array",
|
|
638
661
|
"items": {
|
|
639
|
-
"
|
|
662
|
+
"$ref": "#/definitions/TokenValue"
|
|
640
663
|
}
|
|
641
664
|
},
|
|
642
665
|
"description": "Sequential palettes keyed by name. Each is an array of color stops."
|
|
@@ -646,7 +669,7 @@
|
|
|
646
669
|
"additionalProperties": {
|
|
647
670
|
"type": "array",
|
|
648
671
|
"items": {
|
|
649
|
-
"
|
|
672
|
+
"$ref": "#/definitions/TokenValue"
|
|
650
673
|
}
|
|
651
674
|
},
|
|
652
675
|
"description": "Diverging palettes keyed by name. Each is an array of color stops with a neutral midpoint."
|
|
@@ -931,6 +954,47 @@
|
|
|
931
954
|
"additionalProperties": false,
|
|
932
955
|
"description": "User-facing theme configuration for overriding defaults. All fields are optional. The engine deep-merges these onto the default theme."
|
|
933
956
|
},
|
|
957
|
+
"ThemeLogo": {
|
|
958
|
+
"type": "object",
|
|
959
|
+
"properties": {
|
|
960
|
+
"src": {
|
|
961
|
+
"type": "string",
|
|
962
|
+
"description": "Logo image data URL."
|
|
963
|
+
},
|
|
964
|
+
"height": {
|
|
965
|
+
"type": "number",
|
|
966
|
+
"description": "Display height in pixels."
|
|
967
|
+
},
|
|
968
|
+
"width": {
|
|
969
|
+
"type": "number",
|
|
970
|
+
"description": "Display width in pixels; omitted to derive it from the source aspect ratio."
|
|
971
|
+
},
|
|
972
|
+
"position": {
|
|
973
|
+
"$ref": "#/definitions/LogoPosition",
|
|
974
|
+
"description": "Logo placement. Defaults to bottom-right."
|
|
975
|
+
},
|
|
976
|
+
"alt": {
|
|
977
|
+
"type": "string",
|
|
978
|
+
"description": "Accessible description of the logo."
|
|
979
|
+
}
|
|
980
|
+
},
|
|
981
|
+
"required": [
|
|
982
|
+
"src",
|
|
983
|
+
"height"
|
|
984
|
+
],
|
|
985
|
+
"additionalProperties": false,
|
|
986
|
+
"description": "Theme logo source, size and placement."
|
|
987
|
+
},
|
|
988
|
+
"LogoPosition": {
|
|
989
|
+
"type": "string",
|
|
990
|
+
"enum": [
|
|
991
|
+
"top-left",
|
|
992
|
+
"top-right",
|
|
993
|
+
"bottom-left",
|
|
994
|
+
"bottom-right"
|
|
995
|
+
],
|
|
996
|
+
"description": "Placement of a theme logo relative to the visualization."
|
|
997
|
+
},
|
|
934
998
|
"TokenValue": {
|
|
935
999
|
"anyOf": [
|
|
936
1000
|
{
|
|
@@ -958,6 +1022,18 @@
|
|
|
958
1022
|
"ChromeThemeOverride": {
|
|
959
1023
|
"type": "object",
|
|
960
1024
|
"properties": {
|
|
1025
|
+
"fontFamily": {
|
|
1026
|
+
"type": "string",
|
|
1027
|
+
"description": "Font family override for this chrome element."
|
|
1028
|
+
},
|
|
1029
|
+
"textAlign": {
|
|
1030
|
+
"$ref": "#/definitions/ChromeTextAlign",
|
|
1031
|
+
"description": "Horizontal alignment of this chrome element."
|
|
1032
|
+
},
|
|
1033
|
+
"prefix": {
|
|
1034
|
+
"type": "string",
|
|
1035
|
+
"description": "Text prepended for display while preserving the authored text."
|
|
1036
|
+
},
|
|
961
1037
|
"color": {
|
|
962
1038
|
"$ref": "#/definitions/TokenValue",
|
|
963
1039
|
"description": "Text color. Accepts a TokenValue for light/dark pairs."
|
|
@@ -978,6 +1054,15 @@
|
|
|
978
1054
|
"additionalProperties": false,
|
|
979
1055
|
"description": "Per-element chrome theme typography controls."
|
|
980
1056
|
},
|
|
1057
|
+
"ChromeTextAlign": {
|
|
1058
|
+
"type": "string",
|
|
1059
|
+
"enum": [
|
|
1060
|
+
"left",
|
|
1061
|
+
"center",
|
|
1062
|
+
"right"
|
|
1063
|
+
],
|
|
1064
|
+
"description": "Horizontal alignment of a chrome text element."
|
|
1065
|
+
},
|
|
981
1066
|
"SeriesStrategy": {
|
|
982
1067
|
"type": "string",
|
|
983
1068
|
"enum": [
|