@visactor/vchart-schema 2.0.9 → 2.0.10-alpha.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/vchart.json +195 -26
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visactor/vchart-schema",
3
- "version": "2.0.9",
3
+ "version": "2.0.10-alpha.1",
4
4
  "description": "The VChart JSON schema file.",
5
5
  "sideEffects": false,
6
6
  "main": "vchart.json",
package/vchart.json CHANGED
@@ -335,6 +335,7 @@
335
335
  "BoxPlotShaftShape": {
336
336
  "enum": [
337
337
  "bar",
338
+ "filled-line",
338
339
  "line"
339
340
  ],
340
341
  "type": "string"
@@ -1839,7 +1840,7 @@
1839
1840
  "description": "盒子填充颜色,为空则不填充"
1840
1841
  },
1841
1842
  "boxWidth": {
1842
- "$ref": "#/definitions/VisualType<number>",
1843
+ "$ref": "#/definitions/VisualType<string|number>",
1843
1844
  "description": "box宽度"
1844
1845
  },
1845
1846
  "cursor": {
@@ -1927,7 +1928,7 @@
1927
1928
  "description": "中轴线类型"
1928
1929
  },
1929
1930
  "shaftWidth": {
1930
- "$ref": "#/definitions/VisualType<number>",
1931
+ "$ref": "#/definitions/VisualType<string|number>",
1931
1932
  "description": "最大最小值宽度"
1932
1933
  },
1933
1934
  "stroke": {
@@ -2009,7 +2010,7 @@
2009
2010
  "description": "盒子填充颜色,为空则不填充"
2010
2011
  },
2011
2012
  "boxWidth": {
2012
- "$ref": "#/definitions/VisualType<number>",
2013
+ "$ref": "#/definitions/VisualType<string|number>",
2013
2014
  "description": "box宽度"
2014
2015
  },
2015
2016
  "cursor": {
@@ -2097,7 +2098,7 @@
2097
2098
  "description": "中轴线类型"
2098
2099
  },
2099
2100
  "shaftWidth": {
2100
- "$ref": "#/definitions/VisualType<number>",
2101
+ "$ref": "#/definitions/VisualType<string|number>",
2101
2102
  "description": "最大最小值宽度"
2102
2103
  },
2103
2104
  "stroke": {
@@ -22238,10 +22239,55 @@
22238
22239
  "$ref": "#/definitions/IBackgroundSpec",
22239
22240
  "description": "图表背景色配置,优先级高于构造函数中的 background 配置\n自1.11.6版本支持渐变色对象的配置"
22240
22241
  },
22242
+ "boxGapInGroup": {
22243
+ "anyOf": [
22244
+ {
22245
+ "items": {
22246
+ "type": [
22247
+ "string",
22248
+ "number"
22249
+ ]
22250
+ },
22251
+ "type": "array"
22252
+ },
22253
+ {
22254
+ "type": [
22255
+ "string",
22256
+ "number"
22257
+ ]
22258
+ }
22259
+ ],
22260
+ "description": "分组箱线图中各个分组内的间距,可以设置绝对的像素值,也可以使用百分比(如 '10%')。\n1. number 类型,表示像素值\n2. string 类型,百分比用法,如 '10%',该值为对应最后一个分组字段对应的 scale 的 bandWidth 占比",
22261
+ "since": "2.0.10"
22262
+ },
22263
+ "boxMaxWidth": {
22264
+ "description": "最大宽度,可以设置绝对的像素值,也可以使用百分比(如 '10%')\n1. number 类型,表示像素值\n2. string 类型,百分比用法,如 '10%',该值为对应最后一个分组字段对应的 scale 的 bandWidth 占比",
22265
+ "since": "2.0.10",
22266
+ "type": [
22267
+ "string",
22268
+ "number"
22269
+ ]
22270
+ },
22271
+ "boxMinWidth": {
22272
+ "description": "最小宽度,可以设置绝对的像素值,也可以使用百分比(如 '10%')\n1. number 类型,表示像素值\n2. string 类型,百分比用法,如 '10%',该值为对应最后一个分组字段对应的 scale 的 bandWidth 占比",
22273
+ "since": "2.0.10",
22274
+ "type": [
22275
+ "string",
22276
+ "number"
22277
+ ]
22278
+ },
22241
22279
  "boxPlot": {
22242
22280
  "$ref": "#/definitions/IMarkSpec<IBoxPlotMarkSpec>",
22243
22281
  "description": "图元配置"
22244
22282
  },
22283
+ "boxWidth": {
22284
+ "description": "宽度,可以设置绝对的像素值,也可以使用百分比(如 '10%')\n1. number 类型,表示像素值\n2. string 类型,百分比用法,如 '10%',该值为对应最后一个分组字段对应的 scale 的 bandWidth 占比",
22285
+ "since": "2.0.10",
22286
+ "type": [
22287
+ "string",
22288
+ "number"
22289
+ ]
22290
+ },
22245
22291
  "brush": {
22246
22292
  "$ref": "#/definitions/IBrushSpec",
22247
22293
  "description": "框选配置"
@@ -22970,6 +23016,11 @@
22970
23016
  "description": "系列名称",
22971
23017
  "type": "string"
22972
23018
  },
23019
+ "outlier": {
23020
+ "$ref": "#/definitions/IMarkSpec<ISymbolMarkSpec>",
23021
+ "description": "异常值图元配置",
23022
+ "since": "2.0.10"
23023
+ },
22973
23024
  "outliersField": {
22974
23025
  "description": "异常值字段",
22975
23026
  "type": "string"
@@ -23251,7 +23302,10 @@
23251
23302
  },
23252
23303
  "boxWidth": {
23253
23304
  "description": "box宽度",
23254
- "type": "number"
23305
+ "type": [
23306
+ "string",
23307
+ "number"
23308
+ ]
23255
23309
  },
23256
23310
  "cursor": {
23257
23311
  "$ref": "#/definitions/Cursor_1",
@@ -23358,7 +23412,10 @@
23358
23412
  },
23359
23413
  "shaftWidth": {
23360
23414
  "description": "最大最小值宽度",
23361
- "type": "number"
23415
+ "type": [
23416
+ "string",
23417
+ "number"
23418
+ ]
23362
23419
  },
23363
23420
  "stroke": {
23364
23421
  "anyOf": [
@@ -23533,10 +23590,55 @@
23533
23590
  ],
23534
23591
  "description": "数据更新 - 数据更新动画"
23535
23592
  },
23593
+ "boxGapInGroup": {
23594
+ "anyOf": [
23595
+ {
23596
+ "items": {
23597
+ "type": [
23598
+ "string",
23599
+ "number"
23600
+ ]
23601
+ },
23602
+ "type": "array"
23603
+ },
23604
+ {
23605
+ "type": [
23606
+ "string",
23607
+ "number"
23608
+ ]
23609
+ }
23610
+ ],
23611
+ "description": "分组箱线图中各个分组内的间距,可以设置绝对的像素值,也可以使用百分比(如 '10%')。\n1. number 类型,表示像素值\n2. string 类型,百分比用法,如 '10%',该值为对应最后一个分组字段对应的 scale 的 bandWidth 占比",
23612
+ "since": "2.0.10"
23613
+ },
23614
+ "boxMaxWidth": {
23615
+ "description": "最大宽度,可以设置绝对的像素值,也可以使用百分比(如 '10%')\n1. number 类型,表示像素值\n2. string 类型,百分比用法,如 '10%',该值为对应最后一个分组字段对应的 scale 的 bandWidth 占比",
23616
+ "since": "2.0.10",
23617
+ "type": [
23618
+ "string",
23619
+ "number"
23620
+ ]
23621
+ },
23622
+ "boxMinWidth": {
23623
+ "description": "最小宽度,可以设置绝对的像素值,也可以使用百分比(如 '10%')\n1. number 类型,表示像素值\n2. string 类型,百分比用法,如 '10%',该值为对应最后一个分组字段对应的 scale 的 bandWidth 占比",
23624
+ "since": "2.0.10",
23625
+ "type": [
23626
+ "string",
23627
+ "number"
23628
+ ]
23629
+ },
23536
23630
  "boxPlot": {
23537
23631
  "$ref": "#/definitions/IMarkSpec<IBoxPlotMarkSpec>",
23538
23632
  "description": "图元配置"
23539
23633
  },
23634
+ "boxWidth": {
23635
+ "description": "宽度,可以设置绝对的像素值,也可以使用百分比(如 '10%')\n1. number 类型,表示像素值\n2. string 类型,百分比用法,如 '10%',该值为对应最后一个分组字段对应的 scale 的 bandWidth 占比",
23636
+ "since": "2.0.10",
23637
+ "type": [
23638
+ "string",
23639
+ "number"
23640
+ ]
23641
+ },
23540
23642
  "data": {
23541
23643
  "$ref": "#/definitions/IDataType",
23542
23644
  "description": "系列可以配置自身的数据,也可以从chart.data中获取数据"
@@ -23626,6 +23728,11 @@
23626
23728
  "description": "系列名称",
23627
23729
  "type": "string"
23628
23730
  },
23731
+ "outlier": {
23732
+ "$ref": "#/definitions/IMarkSpec<ISymbolMarkSpec>",
23733
+ "description": "异常值图元配置",
23734
+ "since": "2.0.10"
23735
+ },
23629
23736
  "outliersField": {
23630
23737
  "description": "异常值字段",
23631
23738
  "type": "string"
@@ -75770,6 +75877,48 @@
75770
75877
  ],
75771
75878
  "type": "object"
75772
75879
  },
75880
+ "IVisualSpecStyle<unknown,string|number>": {
75881
+ "properties": {
75882
+ "clamp": {
75883
+ "default": false,
75884
+ "description": "enable clamp in linear scale\nIf clamp is enabled, the return value of the scale is always within the scale’s range.",
75885
+ "since": "1.13.6",
75886
+ "type": "boolean"
75887
+ },
75888
+ "domain": {
75889
+ "description": "will set to scale.domain, it means input of scale",
75890
+ "items": {},
75891
+ "type": "array"
75892
+ },
75893
+ "field": {
75894
+ "description": "指定映射对应的数据字段",
75895
+ "type": "string"
75896
+ },
75897
+ "range": {
75898
+ "description": "will set to scale.range, it means output of scale",
75899
+ "items": {
75900
+ "type": [
75901
+ "string",
75902
+ "number"
75903
+ ]
75904
+ },
75905
+ "type": "array"
75906
+ },
75907
+ "specified": {
75908
+ "typeof": "function"
75909
+ },
75910
+ "type": {
75911
+ "$ref": "#/definitions/ScaleType",
75912
+ "description": "type of scale"
75913
+ }
75914
+ },
75915
+ "required": [
75916
+ "domain",
75917
+ "range",
75918
+ "type"
75919
+ ],
75920
+ "type": "object"
75921
+ },
75773
75922
  "IVisualSpecStyle<unknown,string|number|ITokenKey<any>>": {
75774
75923
  "properties": {
75775
75924
  "clamp": {
@@ -79035,7 +79184,7 @@
79035
79184
  },
79036
79185
  "Map<Function,(...args:any[])=>void>": {
79037
79186
  "properties": {
79038
- "__@toStringTag@12877": {
79187
+ "__@toStringTag@12886": {
79039
79188
  "type": "string"
79040
79189
  },
79041
79190
  "size": {
@@ -79043,14 +79192,14 @@
79043
79192
  }
79044
79193
  },
79045
79194
  "required": [
79046
- "__@toStringTag@12877",
79195
+ "__@toStringTag@12886",
79047
79196
  "size"
79048
79197
  ],
79049
79198
  "type": "object"
79050
79199
  },
79051
79200
  "Map<number,IGraphicRender>": {
79052
79201
  "properties": {
79053
- "__@toStringTag@12877": {
79202
+ "__@toStringTag@12886": {
79054
79203
  "type": "string"
79055
79204
  },
79056
79205
  "size": {
@@ -79058,14 +79207,14 @@
79058
79207
  }
79059
79208
  },
79060
79209
  "required": [
79061
- "__@toStringTag@12877",
79210
+ "__@toStringTag@12886",
79062
79211
  "size"
79063
79212
  ],
79064
79213
  "type": "object"
79065
79214
  },
79066
79215
  "Map<number,{layer:ILayer;group?:IGroup;zIndex:number;drawContribution?:IDrawContribution;}>": {
79067
79216
  "properties": {
79068
- "__@toStringTag@12877": {
79217
+ "__@toStringTag@12886": {
79069
79218
  "type": "string"
79070
79219
  },
79071
79220
  "size": {
@@ -79073,14 +79222,14 @@
79073
79222
  }
79074
79223
  },
79075
79224
  "required": [
79076
- "__@toStringTag@12877",
79225
+ "__@toStringTag@12886",
79077
79226
  "size"
79078
79227
  ],
79079
79228
  "type": "object"
79080
79229
  },
79081
79230
  "Map<string,Map<number,IGraphicRender>>": {
79082
79231
  "properties": {
79083
- "__@toStringTag@12877": {
79232
+ "__@toStringTag@12886": {
79084
79233
  "type": "string"
79085
79234
  },
79086
79235
  "size": {
@@ -79088,14 +79237,14 @@
79088
79237
  }
79089
79238
  },
79090
79239
  "required": [
79091
- "__@toStringTag@12877",
79240
+ "__@toStringTag@12886",
79092
79241
  "size"
79093
79242
  ],
79094
79243
  "type": "object"
79095
79244
  },
79096
79245
  "Map<string|HTMLCanvasElement|HTMLImageElement|IBackgroundConfig,{state:\"loading\"|\"fail\"|\"success\"|\"init\";data?:HTMLCanvasElement|HTMLImageElement;}>": {
79097
79246
  "properties": {
79098
- "__@toStringTag@12877": {
79247
+ "__@toStringTag@12886": {
79099
79248
  "type": "string"
79100
79249
  },
79101
79250
  "size": {
@@ -79103,14 +79252,14 @@
79103
79252
  }
79104
79253
  },
79105
79254
  "required": [
79106
- "__@toStringTag@12877",
79255
+ "__@toStringTag@12886",
79107
79256
  "size"
79108
79257
  ],
79109
79258
  "type": "object"
79110
79259
  },
79111
79260
  "Map<string|HTMLElement,{container:string|HTMLElement;dom:any;wrapGroup:any;root?:any;}>": {
79112
79261
  "properties": {
79113
- "__@toStringTag@12877": {
79262
+ "__@toStringTag@12886": {
79114
79263
  "type": "string"
79115
79264
  },
79116
79265
  "size": {
@@ -79118,14 +79267,14 @@
79118
79267
  }
79119
79268
  },
79120
79269
  "required": [
79121
- "__@toStringTag@12877",
79270
+ "__@toStringTag@12886",
79122
79271
  "size"
79123
79272
  ],
79124
79273
  "type": "object"
79125
79274
  },
79126
79275
  "Map<string|number,IAnimate>": {
79127
79276
  "properties": {
79128
- "__@toStringTag@12877": {
79277
+ "__@toStringTag@12886": {
79129
79278
  "type": "string"
79130
79279
  },
79131
79280
  "size": {
@@ -79133,7 +79282,7 @@
79133
79282
  }
79134
79283
  },
79135
79284
  "required": [
79136
- "__@toStringTag@12877",
79285
+ "__@toStringTag@12886",
79137
79286
  "size"
79138
79287
  ],
79139
79288
  "type": "object"
@@ -100629,34 +100778,34 @@
100629
100778
  },
100630
100779
  "Promise<FontFaceSet>": {
100631
100780
  "properties": {
100632
- "__@toStringTag@12877": {
100781
+ "__@toStringTag@12886": {
100633
100782
  "type": "string"
100634
100783
  }
100635
100784
  },
100636
100785
  "required": [
100637
- "__@toStringTag@12877"
100786
+ "__@toStringTag@12886"
100638
100787
  ],
100639
100788
  "type": "object"
100640
100789
  },
100641
100790
  "Promise<ServiceWorkerRegistration>": {
100642
100791
  "properties": {
100643
- "__@toStringTag@12877": {
100792
+ "__@toStringTag@12886": {
100644
100793
  "type": "string"
100645
100794
  }
100646
100795
  },
100647
100796
  "required": [
100648
- "__@toStringTag@12877"
100797
+ "__@toStringTag@12886"
100649
100798
  ],
100650
100799
  "type": "object"
100651
100800
  },
100652
100801
  "Promise<any>": {
100653
100802
  "properties": {
100654
- "__@toStringTag@12877": {
100803
+ "__@toStringTag@12886": {
100655
100804
  "type": "string"
100656
100805
  }
100657
100806
  },
100658
100807
  "required": [
100659
- "__@toStringTag@12877"
100808
+ "__@toStringTag@12886"
100660
100809
  ],
100661
100810
  "type": "object"
100662
100811
  },
@@ -115644,6 +115793,7 @@
115644
115793
  {
115645
115794
  "enum": [
115646
115795
  "bar",
115796
+ "filled-line",
115647
115797
  "line"
115648
115798
  ],
115649
115799
  "type": "string"
@@ -116425,6 +116575,25 @@
116425
116575
  }
116426
116576
  ]
116427
116577
  },
116578
+ "VisualType<string|number>": {
116579
+ "anyOf": [
116580
+ {
116581
+ "$ref": "#/definitions/IVisualScale"
116582
+ },
116583
+ {
116584
+ "typeof": "function"
116585
+ },
116586
+ {
116587
+ "$ref": "#/definitions/IVisualSpecStyle<unknown,string|number>"
116588
+ },
116589
+ {
116590
+ "type": [
116591
+ "string",
116592
+ "number"
116593
+ ]
116594
+ }
116595
+ ]
116596
+ },
116428
116597
  "VisualType<string|number|ITokenKey<any>>": {
116429
116598
  "anyOf": [
116430
116599
  {