@visactor/vchart-schema 2.0.22-alpha.4 → 2.0.22
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/vchart.json +176 -1
package/package.json
CHANGED
package/vchart.json
CHANGED
|
@@ -30583,7 +30583,14 @@
|
|
|
30583
30583
|
"description": "图表标题配置"
|
|
30584
30584
|
},
|
|
30585
30585
|
"tooltip": {
|
|
30586
|
-
"
|
|
30586
|
+
"allOf": [
|
|
30587
|
+
{
|
|
30588
|
+
"$ref": "#/definitions/ITooltipTheme<string|IColorKey>"
|
|
30589
|
+
},
|
|
30590
|
+
{
|
|
30591
|
+
"$ref": "#/definitions/Partial<Pick<ITooltipSpec,\"mark\"|\"visible\"|\"group\"|\"dimension\"|\"activeType\"|\"trigger\"|\"triggerOff\"|\"showDelay\"|\"hideTimer\"|\"lockAfterClick\"|\"renderMode\"|\"confine\"|\"className\"|\"parentElement\"|\"enterable\"|\"throttleInterval\">>"
|
|
30592
|
+
}
|
|
30593
|
+
],
|
|
30587
30594
|
"description": "tooltip 组件配置"
|
|
30588
30595
|
},
|
|
30589
30596
|
"totalLabel": {
|
|
@@ -101255,6 +101262,174 @@
|
|
|
101255
101262
|
},
|
|
101256
101263
|
"type": "object"
|
|
101257
101264
|
},
|
|
101265
|
+
"Partial<Pick<ITooltipSpec,\"mark\"|\"visible\"|\"group\"|\"dimension\"|\"activeType\"|\"trigger\"|\"triggerOff\"|\"showDelay\"|\"hideTimer\"|\"lockAfterClick\"|\"renderMode\"|\"confine\"|\"className\"|\"parentElement\"|\"enterable\"|\"throttleInterval\">>": {
|
|
101266
|
+
"properties": {
|
|
101267
|
+
"activeType": {
|
|
101268
|
+
"anyOf": [
|
|
101269
|
+
{
|
|
101270
|
+
"items": {
|
|
101271
|
+
"$ref": "#/definitions/TooltipActiveType"
|
|
101272
|
+
},
|
|
101273
|
+
"type": "array"
|
|
101274
|
+
},
|
|
101275
|
+
{
|
|
101276
|
+
"enum": [
|
|
101277
|
+
"dimension",
|
|
101278
|
+
"group",
|
|
101279
|
+
"mark"
|
|
101280
|
+
],
|
|
101281
|
+
"type": "string"
|
|
101282
|
+
}
|
|
101283
|
+
],
|
|
101284
|
+
"description": "受支持的激活类型\n(*支持在series上设置)\n(*会影响自定义handler)"
|
|
101285
|
+
},
|
|
101286
|
+
"className": {
|
|
101287
|
+
"description": "tooltip dom元素的 className,仅当 renderMode: 'html' 时生效",
|
|
101288
|
+
"type": "string"
|
|
101289
|
+
},
|
|
101290
|
+
"confine": {
|
|
101291
|
+
"description": "是否将 tooltip 框限制在画布区域内,renderMode 为 canvas 时,默认开启。",
|
|
101292
|
+
"type": "boolean"
|
|
101293
|
+
},
|
|
101294
|
+
"dimension": {
|
|
101295
|
+
"$ref": "#/definitions/ITooltipPattern",
|
|
101296
|
+
"description": "dimension tooltip 对应的配置,其中dimension tooltip 用于展示维度对应的数据信息,比如x轴对应的数据信息"
|
|
101297
|
+
},
|
|
101298
|
+
"enterable": {
|
|
101299
|
+
"description": "鼠标是否可进入提示框浮层中,默认为false,如需详情内交互,如添加链接,按钮,可设置为 true。\n该属性目前只对 renderMode 为 html 时生效\nTODO: 支持 renderMode: canvas",
|
|
101300
|
+
"type": "boolean"
|
|
101301
|
+
},
|
|
101302
|
+
"group": {
|
|
101303
|
+
"$ref": "#/definitions/IGroupTooltipPattern",
|
|
101304
|
+
"description": "group tooltip 对应的配置,其中group tooltip 用于展示整个分组数据对应的数据信息,比如说线图中一条线代表一个相同的分组,可以使用 group tooltip展示整条线所有点对应的数据"
|
|
101305
|
+
},
|
|
101306
|
+
"hideTimer": {
|
|
101307
|
+
"description": "隐藏计时器",
|
|
101308
|
+
"since": "1.11.7",
|
|
101309
|
+
"type": "number"
|
|
101310
|
+
},
|
|
101311
|
+
"lockAfterClick": {
|
|
101312
|
+
"description": "点击后锁定,只有点击才可以更新位置或者解锁,通常用于 trigger 为 `['hover', 'click']` 的场景\n(*会影响自定义handler)",
|
|
101313
|
+
"since": "1.10.0",
|
|
101314
|
+
"type": "boolean"
|
|
101315
|
+
},
|
|
101316
|
+
"mark": {
|
|
101317
|
+
"allOf": [
|
|
101318
|
+
{
|
|
101319
|
+
"$ref": "#/definitions/ITooltipPattern"
|
|
101320
|
+
},
|
|
101321
|
+
{
|
|
101322
|
+
"typeof": "function"
|
|
101323
|
+
}
|
|
101324
|
+
],
|
|
101325
|
+
"description": "mark tooltip对应的配置,其中mark tooltip 用于展示图元对应的数据信息,比如柱图中的柱子,散点图中的点,面积图中的点灯"
|
|
101326
|
+
},
|
|
101327
|
+
"parentElement": {
|
|
101328
|
+
"anyOf": [
|
|
101329
|
+
{
|
|
101330
|
+
"$ref": "#/definitions/HTMLElement"
|
|
101331
|
+
},
|
|
101332
|
+
{
|
|
101333
|
+
"$ref": "#/definitions/HTMLCanvasElement"
|
|
101334
|
+
},
|
|
101335
|
+
{
|
|
101336
|
+
"type": "string"
|
|
101337
|
+
}
|
|
101338
|
+
],
|
|
101339
|
+
"description": "tooltip dom 元素的挂载点,可传 id 或 dom 对象"
|
|
101340
|
+
},
|
|
101341
|
+
"renderMode": {
|
|
101342
|
+
"description": "tooltip 渲染方式,默认为 html",
|
|
101343
|
+
"enum": [
|
|
101344
|
+
"canvas",
|
|
101345
|
+
"html"
|
|
101346
|
+
],
|
|
101347
|
+
"type": "string"
|
|
101348
|
+
},
|
|
101349
|
+
"showDelay": {
|
|
101350
|
+
"description": "当设置了`enterable: true`,且 trigger类型为`hover`的时候,为了方便鼠标进入提示信息的内容区域,设置的显示延迟时长\n其他情况设置无效",
|
|
101351
|
+
"since": "1.12.8",
|
|
101352
|
+
"type": "number"
|
|
101353
|
+
},
|
|
101354
|
+
"throttleInterval": {
|
|
101355
|
+
"description": "更新 tooltip 的防抖动时间间隔,单位是 ms",
|
|
101356
|
+
"type": "number"
|
|
101357
|
+
},
|
|
101358
|
+
"trigger": {
|
|
101359
|
+
"anyOf": [
|
|
101360
|
+
{
|
|
101361
|
+
"typeof": "function"
|
|
101362
|
+
},
|
|
101363
|
+
{
|
|
101364
|
+
"items": {
|
|
101365
|
+
"anyOf": [
|
|
101366
|
+
{
|
|
101367
|
+
"typeof": "function"
|
|
101368
|
+
},
|
|
101369
|
+
{
|
|
101370
|
+
"enum": [
|
|
101371
|
+
"click",
|
|
101372
|
+
"hover"
|
|
101373
|
+
],
|
|
101374
|
+
"type": "string"
|
|
101375
|
+
}
|
|
101376
|
+
]
|
|
101377
|
+
},
|
|
101378
|
+
"type": "array"
|
|
101379
|
+
},
|
|
101380
|
+
{
|
|
101381
|
+
"enum": [
|
|
101382
|
+
"click",
|
|
101383
|
+
"hover",
|
|
101384
|
+
"none"
|
|
101385
|
+
],
|
|
101386
|
+
"type": "string"
|
|
101387
|
+
}
|
|
101388
|
+
],
|
|
101389
|
+
"description": "tooltip触发方式\n(*会影响自定义handler)",
|
|
101390
|
+
"since": "1.12.10 支持自定义的事件触发"
|
|
101391
|
+
},
|
|
101392
|
+
"triggerOff": {
|
|
101393
|
+
"anyOf": [
|
|
101394
|
+
{
|
|
101395
|
+
"typeof": "function"
|
|
101396
|
+
},
|
|
101397
|
+
{
|
|
101398
|
+
"items": {
|
|
101399
|
+
"anyOf": [
|
|
101400
|
+
{
|
|
101401
|
+
"typeof": "function"
|
|
101402
|
+
},
|
|
101403
|
+
{
|
|
101404
|
+
"enum": [
|
|
101405
|
+
"click",
|
|
101406
|
+
"hover"
|
|
101407
|
+
],
|
|
101408
|
+
"type": "string"
|
|
101409
|
+
}
|
|
101410
|
+
]
|
|
101411
|
+
},
|
|
101412
|
+
"type": "array"
|
|
101413
|
+
},
|
|
101414
|
+
{
|
|
101415
|
+
"enum": [
|
|
101416
|
+
"click",
|
|
101417
|
+
"hover",
|
|
101418
|
+
"none"
|
|
101419
|
+
],
|
|
101420
|
+
"type": "string"
|
|
101421
|
+
}
|
|
101422
|
+
],
|
|
101423
|
+
"description": "隐藏tooltip的触发方式(目前仅支持和trigger一致的设置以及none)\n(*会影响自定义handler)",
|
|
101424
|
+
"since": "1.12.10 支持自定义的事件触发"
|
|
101425
|
+
},
|
|
101426
|
+
"visible": {
|
|
101427
|
+
"description": "是否显示\n(*支持在series上设置)\n(*会影响自定义handler)",
|
|
101428
|
+
"type": "boolean"
|
|
101429
|
+
}
|
|
101430
|
+
},
|
|
101431
|
+
"type": "object"
|
|
101432
|
+
},
|
|
101258
101433
|
"Partial<Record<\"area\",false|IAnimationConfig|IAnimationConfig[]>>": {
|
|
101259
101434
|
"properties": {
|
|
101260
101435
|
"area": {
|