g6/packages/site/docs/apis/behaviors/WIP-RotateCanvas3DOptions.en.md

97 lines
2.6 KiB
Markdown
Raw Normal View History

---
title: RotateCanvas3DOptions
---
[Overview - v5.0.0-beta.21](../../README.en.md) / [Modules](../../modules.en.md) / [behaviors](../../modules/behaviors.en.md) / RotateCanvas3DOptions
[behaviors](../../modules/behaviors.en.md).RotateCanvas3DOptions
## Properties
### eventName
`Optional` **eventName**: `string`
The event name to trigger when drag end.
#### Defined in
2023-08-31 20:33:50 +08:00
[packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts:31](https://github.com/antvis/G6/blob/61e525e59b/packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts#L31)
2023-08-31 23:46:08 +08:00
---
### secondaryKey
`Optional` **secondaryKey**: `string`
The assistance secondary key to trigger the behavior.
If it is not assigned, triggered only by trigger.
You can also assigned it with a key on keyboard e.g. 'shift',
to make the behavior triggered only when the key is pressing and trigger is happening.
#### Defined in
2023-08-31 20:33:50 +08:00
[packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts:19](https://github.com/antvis/G6/blob/61e525e59b/packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts#L19)
2023-08-31 23:46:08 +08:00
---
### shouldBegin
`Optional` **shouldBegin**: (`event`: [`IG6GraphEvent`](IG6GraphEvent.en.md)) => `boolean`
#### Type declaration
▸ (`event`): `boolean`
Whether allow the behavior happen on the current item.
##### Parameters
2023-08-31 23:46:08 +08:00
| Name | Type |
| :------ | :------------------------------------- |
| `event` | [`IG6GraphEvent`](IG6GraphEvent.en.md) |
##### Returns
`boolean`
#### Defined in
2023-08-31 20:33:50 +08:00
[packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts:35](https://github.com/antvis/G6/blob/61e525e59b/packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts#L35)
2023-08-31 23:46:08 +08:00
---
### speedUpKey
`Optional` **speedUpKey**: `string`
To speed up rotating while pressing and rotate the canvas by direciton keys (trigger = 'directionKeys').
#### Defined in
2023-08-31 20:33:50 +08:00
[packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts:23](https://github.com/antvis/G6/blob/61e525e59b/packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts#L23)
2023-08-31 23:46:08 +08:00
---
### trigger
2023-08-31 23:46:08 +08:00
`Optional` **trigger**: `"drag"` \| `"directionKeys"`
The way to tranlate the canvas. 'drag' (default) means dragged by mouse, 'directionKeys' means the up/down/left/right key on keyBoard.
#### Defined in
2023-08-31 20:33:50 +08:00
[packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts:12](https://github.com/antvis/G6/blob/61e525e59b/packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts#L12)
2023-08-31 23:46:08 +08:00
---
### triggerOnItems
`Optional` **triggerOnItems**: `boolean`
Whether allow zooming canvas on a node/edge/combo.
#### Defined in
2023-08-31 20:33:50 +08:00
[packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts:27](https://github.com/antvis/G6/blob/61e525e59b/packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts#L27)