g6/packages/site/docs/apis/interfaces/plugins-TooltipConfig.zh.md
pomelo 1eda86a093
V5 locale (#4870)
* feat: fix locale

* feat: update api doc
2023-08-29 18:39:28 +08:00

161 lines
3.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[概述 - v5.0.0-alpha.9](../README.zh.md) / [模块](../modules.zh.md) / [插件](../modules/plugins.zh.md ) / 工具提示配置
# 接口TooltipConfig
[插件](../modules/plugins.zh.md).TooltipConfig
等级制度
- `IPluginBaseConfig`
**`工具提示配置`**
特性
班级名称
`可选` **类名**`字符串`
####继承自
IPluginBaseConfig.className
#### 定义于
[types/plugin.ts:6](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/plugin.ts#L6)
___
容器
`可选` **容器**`字符串` \| `HTMLDivElement`
####继承自
IPluginBaseConfig.container
#### 定义于
[types/plugin.ts:5](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/plugin.ts#L5)
___
### 修复到节点
`可选` **fixToNode**: [`number`, `number`] \| `放置`
#### 定义于
[stdlib/plugin/tooltip/index.ts:66](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/tooltip/index.ts#L66)
___
### 获取内容
`可选` **getContent**: (`evt?`: [`IG6GraphEvent`](types-IG6GraphEvent.zh.md)) => `string` \| `HTMLDivElement` \| `Promise`<`字符串` \| `HTMLDivElement`\>
#### 类型声明
▸ (`evt?`): `字符串` \| `HTMLDivElement` \| `Promise`<`字符串` \| `HTMLDivElement`\>
参数
| 名称 | 类型 |
| :------ | :------ |
| `事件?` | [`IG6GraphEvent`](types-IG6GraphEvent.zh.md) |
##### 返回
`字符串` \| `HTMLDivElement` \| `Promise`<`字符串` \| `HTMLDivElement`\>
#### 定义于
[stdlib/plugin/tooltip/index.ts:57](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/tooltip/index.ts#L57)
___
### 图表
`可选` **graph**: [`IGraph`](types-IGraph.zh.md)<`BehaviorRegistry`, `ThemeRegistry`\>
####继承自
IPluginBaseConfig.graph
#### 定义于
[types/plugin.ts:7](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/plugin.ts#L7)
___
### 项目类型
`可选` **itemTypes**: (``"node"`` \| ``"edge"`` \| ``"combo"`` \| ``"canvas"``)[]
#### 定义于
[stdlib/plugin/tooltip/index.ts:64](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/tooltip/index.ts#L64)
___
### 加载内容
`可选` **loadingContent**`字符串` \| `HTMLDivElement`
#### 定义于
[stdlib/plugin/tooltip/index.ts:67](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/tooltip/index.ts#L67)
___
### 偏移X
`可选` **offsetX**`数字`
#### 定义于
[stdlib/plugin/tooltip/index.ts:60](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/tooltip/index.ts#L60)
___
### 偏移Y
`可选` **offsetY**`数字`
#### 定义于
[stdlib/plugin/tooltip/index.ts:61](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/tooltip/index.ts#L61)
___
### 应该开始
`可选` **shouldBegin**: (`evt?`: [`IG6GraphEvent`](types-IG6GraphEvent.zh.md)) => `boolean`
#### 类型声明
▸ (`evt?`): `布尔值`
参数
| 名称 | 类型 |
| :------ | :------ |
| `事件?` | [`IG6GraphEvent`](types-IG6GraphEvent.zh.md) |
##### 返回
`布尔值`
#### 定义于
[stdlib/plugin/tooltip/index.ts:62](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/tooltip/index.ts#L62)
___
扳机
`可选` **触发**``"点击"`` \| ``“指针输入器”``
#### 定义于
[stdlib/plugin/tooltip/index.ts:65](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/tooltip/index.ts#L65)