@antv/g-plugin-3d
Provide 3D extension for G
Last updated 2 months ago by zhanba .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @antv/g-plugin-3d 
SYNC missed versions from official npm registry.

3D extension for G

Provide some 3D shapes such as Cube, Sphere, support g-webgl only.

Cube

import { Canvas, Group } from '@antv/g';
import { Renderer as WebGLRenderer } from '@antv/g-webgl';
import { Cube, containerModule } from '@antv/g-plugin-3d';

// create a webgl renderer
const webglRenderer = new WebGLRenderer();
webglRenderer.registerPlugin(containerModule);

// create a canvas
const canvas = new Canvas({
    container: 'container',
    width: 600,
    height: 500,
    renderer: webglRenderer,
});

// create a cube
const cube = new Cube({
    attrs: {
        width: 200,
        height: 200,
        depth: 200,
        fill: '#1890FF',
    },
});

Current Tags

  • 1.0.0-alpha.4                                ...           latest (2 months ago)
  • 1.0.0-alpha.21                                ...           next (9 days ago)

20 Versions

  • 1.0.0-alpha.21                                ...           9 days ago
  • 1.0.0-alpha.20                                ...           14 days ago
  • 1.0.0-alpha.19                                ...           14 days ago
  • 1.0.0-alpha.18                                ...           15 days ago
  • 1.0.0-alpha.17                                ...           16 days ago
  • 1.0.0-alpha.16                                ...           17 days ago
  • 1.0.0-alpha.15                                ...           19 days ago
  • 1.0.0-alpha.14                                ...           22 days ago
  • 1.0.0-alpha.13                                ...           22 days ago
  • 1.0.0-alpha.12                                ...           a month ago
  • 1.0.0-alpha.11                                ...           a month ago
  • 1.0.0-alpha.10                                ...           a month ago
  • 1.0.0-alpha.9                                ...           a month ago
  • 1.0.0-alpha.8                                ...           2 months ago
  • 1.0.0-alpha.6                                ...           2 months ago
  • 1.0.0-alpha.5                                ...           2 months ago
  • 1.0.0-alpha.4                                ...           2 months ago
  • 1.0.0-alpha.3                                ...           2 months ago
  • 1.0.0-alpha.2                                ...           3 months ago
  • 1.0.0-alpha.1                                ...           3 months ago
Downloads
Today 0
This Week 0
This Month 76
Last Day 0
Last Week 8
Last Month 103
Dependencies (4)
Dev Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |