2023-08-30 19:46:37 +08:00
|
|
|
|
---
|
|
|
|
|
title: ZoomCanvasOptions
|
|
|
|
|
---
|
|
|
|
|
|
2023-10-11 20:33:18 +08:00
|
|
|
|
[概述-v5.0.0-beta.21](../../ readme.zh.md)/[模块](../../ modules.zh.md)/[capingiors](../。 ./modules/behaviors.zh.md)/zoomcanvasoptions
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
[行为](../../模块/bepand.zh.md).zoomcanvasoptions
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
## 特性
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
###启用 iptimize
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
•``可选的**启用iptimize **:`boolean`
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
是否启用优化策略,这将隐藏所有形状在缩放时不包括节点钥匙的形状。
|
|
|
|
|
todo:优化触发器是 updownkeys
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
####定义
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
[packages/g6/src/stdlib/行/zoom-canvas.ts:10](https://github.com/antvis/antvis/g6/blob/61e525e59b/packages/g6/src/src/src/stdlib/stdlib/behavior/zoom-canvas。 TS#L10)
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
---
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
### eventname
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
•`可选的** eventname **:`string`
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
缩放结束时要触发的事件名称。
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
####定义
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
[packages/g6/src/stdlib/crutive/zoom-canvas.ts:34](https://github.com/antvis/g6/blob/61e525e59b/packages/g6/src/src/stdlib/stdlib/sstdlib/behavior/zoom-canvas。 TS#L34)
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
---
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
### Maxzoom
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
•`可选的** maxzoom **:`number`
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
缩放比率的最大值来限制 Zoom-Canvas-3D 行为
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
####定义
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
[packages/g6/src/stdlib/crutive/zoom-canvas.ts:42](https://github.com/antvis/g6/blob/61e525e59b/packages/g6/src/src/stdlib/stdlib/behavior/zoom-canvas。 TS#L42)
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
---
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
### Minzoom
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
•`可选的** minzoom **:`number`
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
缩放比率的最小值以限制变焦 - 瓦斯-3D 行为
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
####定义
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
[packages/g6/src/stdlib/行/zoom-canvas.ts:38](https://github.com/antvis/g6/blob/61e525e59b/packages/g6/src/src/src/stdlib/stdlib/behavior/zoom-canvas。 TS#L38)
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
---
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
### Secondarykey
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
•`可选的** SecondaryKey **:`弦乐
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
键盘上的助手次要键。 如果未分配,则在触发时会触发该行为。
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
####定义
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
[packages/g6/src/stdlib/行/zoom-canvas.ts:22](https://github.com/antvis/antvis/g6/blob/61e525e59b/packages/g6/src/src/src/stdlib/stdlib/behavior/zoom-com-canvas。 TS#L22)
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
---
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
### 灵敏度
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
•`可选的**灵敏度**:`number`
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
缩小的灵敏度 /速度。
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
####定义
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
[packages/g6/src/stdlib/行/zoom-canvas.ts:30](https://github.com/antvis/antvis/g6/blob/61e525e59b/packages/g6/src/src/src/stdlib/stdlib/behavior/zoom/zoom-canvas。 TS#L30)
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
---
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
###应该 begin
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
•`` 可选的** shosebegin ** :(`event`:[ ``Ig6graphevent`](ig6graphevent.zh.md))=>>'boolean`
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
####类型声明
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
▸(``event'):`boolean'
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
是否允许行为发生在当前项目上。
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
##### 参数
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
| 名称| 类型|
|
|
|
|
|
| :------- | :------- |
|
|
|
|
|
| `event` | [``ig6graphevent`](ig6graphevent.zh.md)|
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
#####返回
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
布尔'
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
####定义
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
[packages/g6/src/stdlib/crutive/zoom-canvas.ts:46](https://github.com/antvis/g6/blob/61e525e59b/packages/g6/src/src/src/stdlib/stdlib/behavior/zoom-canvas。 TS#L46)
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
---
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
### speedupkey
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
•`可选的** speepupkey **:`弦乐
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
键盘上的键在按下键按键和缩放键盘时加快翻译。 触发器应为此选项的“方向”。
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
####定义
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
[packages/g6/src/stdlib/行/zoom-canvas.ts:26](https://github.com/antvis/antvis/g6/blob/61e525e59b/packages/g6/src/src/src/stdlib/stdlib/stdlib/behavior/zoom-canvas。 TS#L26)
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
---
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
### 扳机
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
•` 可选的**触发**:````'''' `\ | ``''updownkeys''
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
默认情况下,行为触发了“车轮”。 “ Updownkeys”是指通过键盘上的向上 /下键触发此行为。
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
####定义
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
[packages/g6/src/stdlib/行/zoom-canvas.ts:18](https://github.com/antvis/antvis/g6/blob/61e525e59b/packages/g6/src/src/stdlib/stdlib/stdlib/behavior/zoom-canvas。 TS#L18)
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
---
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
### triggeronItems
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
•`可选的** triggeronItems **:`boolean`
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
允许在节点 /边缘 /组合上旋转时触发这种行为。
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
####定义
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
|
[packages/g6/src/stdlib/行/zoom-canvas.ts:14](https://github.com/antvis/antvis/g6/blob/61e525e59b/packages/g6/src/src/src/stdlib/stdlib/sstdlib/behavior/zoom-canvas。 TS#L14)
|