g-plugin-control
Previous
g-plugin-dragndrop
Loading...
Provides camera interaction for 3D scenes, internally using Hammer.js to respond to mouse-over, scroll-wheel events. Depending on the [camera type](/en/api/camera#camera#camera type), different interactions are provided.
Create the g-webgl
renderer and register the plugin.
import { Renderer as WebGLRenderer } from '@antv/g-webgl';import { Plugin } from '@antv/g-plugin-control';// 创建 WebGL 渲染器const webglRenderer = new WebGLRenderer();// 注册 3D 插件webglRenderer.registerPlugin(new Plugin());