Package Exports
- @antv/g-plugin-device-renderer
- @antv/g-plugin-device-renderer/dist/index.esm.js
- @antv/g-plugin-device-renderer/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@antv/g-plugin-device-renderer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@antv/g-plugin-device-renderer
/platformHAL 硬件适配层/render实现 FrameGraph/geometries提供基础几何定义/materials提供基础材质/meshes提供内置 2D 图形所需 Mesh
扩展点
DeviceContribution
import { DeviceContribution } from '@antv/g-plugin-device-renderer';
@singleton({
token: DeviceContribution,
})
export class WebGLDeviceContribution implements DeviceContribution {
async createSwapChain($canvas: HTMLCanvasElement) {
// 创建基于 WebGL 的 Device
}
}