@antv/g-plugin-3d
Provide 3D extension for G
Last updated 7 months ago by panyuqi .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm 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 } from '@antv/g-webgl';
import { CubeGeometry, MeshBasicMaterial, Mesh, Plugin } from '@antv/g-plugin-3d';

// create a webgl renderer
const webglRenderer = new Renderer();
webglRenderer.registerPlugin(new Plugin());

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

// create a geometry
const geometry = new CubeGeometry({
    width: 200,
    height: 200,
    depth: 200,
});

// create a material
const material = new MeshBasicMaterial({
    map: 'https://xxx.png',
});

// create a cube mesh
const cube = new Mesh({
    fill: '#1890FF',
    opacity: 1,
    style: {
        geometry,
        material,
    },
});

// append to canvas
canvas.appendChild(cube);

// transform it like other 2D shapes
cube.translate(100, 100, 0);

Current Tags

  • 2.0.18-alpha.0                                ...           alpha (25 days ago)
  • 1.8.0-beta.1                                ...           beta (a year ago)
  • 2.0.17                                ...           latest (2 months ago)
  • 2.0.17                                ...           next (2 months ago)

244 Versions

  • 2.0.18-alpha.0                                ...           25 days ago
  • 2.0.17                                ...           2 months ago
  • 2.0.16                                ...           2 months ago
  • 2.0.16-alpha.0                                ...           2 months ago
  • 2.0.15                                ...           2 months ago
  • 2.0.14                                ...           3 months ago
  • 2.0.13                                ...           3 months ago
  • 2.0.12                                ...           3 months ago
  • 2.0.11                                ...           4 months ago
  • 2.0.10                                ...           4 months ago
  • 2.0.9                                ...           6 months ago
  • 2.0.8                                ...           6 months ago
  • 2.0.7                                ...           6 months ago
  • 2.0.6                                ...           6 months ago
  • 2.0.5                                ...           6 months ago
  • 2.0.4                                ...           7 months ago
  • 2.0.3                                ...           7 months ago
  • 2.0.2                                ...           7 months ago
  • 2.0.1                                ...           8 months ago
  • 2.0.0                                ...           8 months ago
  • 1.9.36                                ...           8 months ago
  • 1.9.35                                ...           8 months ago
  • 1.9.34-next.20                                ...           8 months ago
  • 1.9.34-next.19                                ...           8 months ago
  • 1.9.34-next.18                                ...           8 months ago
  • 1.9.34-next.17                                ...           8 months ago
  • 1.9.34-next.16                                ...           8 months ago
  • 1.9.34-next.15                                ...           8 months ago
  • 1.9.34-next.14                                ...           8 months ago
  • 1.9.34                                ...           9 months ago
  • 1.9.34-next.13                                ...           9 months ago
  • 1.9.34-next.12                                ...           9 months ago
  • 1.9.34-next.11                                ...           9 months ago
  • 1.9.34-next.10                                ...           9 months ago
  • 1.9.34-next.9                                ...           9 months ago
  • 1.9.34-next.8                                ...           10 months ago
  • 1.9.34-next.7                                ...           10 months ago
  • 1.9.34-next.6                                ...           10 months ago
  • 1.9.34-next.4                                ...           10 months ago
  • 1.9.34-next.3                                ...           10 months ago
  • 1.9.34-next.2                                ...           10 months ago
  • 1.9.34-next.1                                ...           10 months ago
  • 1.9.34-next.0                                ...           10 months ago
  • 1.9.33                                ...           10 months ago
  • 1.9.32                                ...           a year ago
  • 1.9.31                                ...           a year ago
  • 1.9.30                                ...           a year ago
  • 1.9.29                                ...           a year ago
  • 1.9.28                                ...           a year ago
  • 1.9.27                                ...           a year ago
  • 1.9.26                                ...           a year ago
  • 1.9.25                                ...           a year ago
  • 1.9.24                                ...           a year ago
  • 1.9.23                                ...           a year ago
  • 1.9.22                                ...           a year ago
  • 1.9.21                                ...           a year ago
  • 1.9.20                                ...           a year ago
  • 1.9.19                                ...           a year ago
  • 1.9.18                                ...           a year ago
  • 1.9.17                                ...           a year ago
  • 1.9.16                                ...           a year ago
  • 1.9.15                                ...           a year ago
  • 1.9.14                                ...           a year ago
  • 1.9.13                                ...           a year ago
  • 1.9.12                                ...           a year ago
  • 1.9.10                                ...           a year ago
  • 1.9.9                                ...           a year ago
  • 1.9.8                                ...           a year ago
  • 1.9.7                                ...           a year ago
  • 1.9.6                                ...           a year ago
  • 1.9.5                                ...           a year ago
  • 1.9.4                                ...           a year ago
  • 1.9.3                                ...           a year ago
  • 1.9.2                                ...           a year ago
  • 1.9.1                                ...           a year ago
  • 1.9.0                                ...           a year ago
  • 1.8.0                                ...           a year ago
  • 1.8.0-beta.1                                ...           a year ago
  • 1.8.0-alpha.1                                ...           a year ago
  • 1.7.57                                ...           a year ago
  • 1.7.56                                ...           a year ago
  • 1.7.55                                ...           a year ago
  • 1.7.54                                ...           a year ago
  • 1.7.53                                ...           a year ago
  • 1.7.52                                ...           a year ago
  • 1.7.51                                ...           a year ago
  • 1.7.50                                ...           a year ago
  • 1.7.49                                ...           a year ago
  • 1.7.48                                ...           2 years ago
  • 1.7.47                                ...           2 years ago
  • 1.7.46                                ...           2 years ago
  • 1.7.45                                ...           2 years ago
  • 1.7.44                                ...           2 years ago
  • 1.7.43                                ...           2 years ago
  • 1.7.42                                ...           2 years ago
  • 1.7.41                                ...           2 years ago
  • 1.7.40                                ...           2 years ago
  • 1.7.39                                ...           2 years ago
  • 1.7.38                                ...           2 years ago
  • 1.7.37                                ...           2 years ago
  • 1.7.36                                ...           2 years ago
  • 1.7.36-alpha.0                                ...           2 years ago
  • 1.7.35                                ...           2 years ago
  • 1.7.34                                ...           2 years ago
  • 1.7.33                                ...           2 years ago
  • 1.7.32                                ...           2 years ago
  • 1.7.31                                ...           2 years ago
  • 1.7.30                                ...           2 years ago
  • 1.7.29                                ...           2 years ago
  • 1.7.28                                ...           2 years ago
  • 1.7.27                                ...           2 years ago
  • 1.7.26                                ...           2 years ago
  • 1.7.25                                ...           2 years ago
  • 1.7.24                                ...           2 years ago
  • 1.7.23                                ...           2 years ago
  • 1.7.22                                ...           2 years ago
  • 1.7.21                                ...           2 years ago
  • 1.7.20                                ...           2 years ago
  • 1.7.19                                ...           2 years ago
  • 1.7.18                                ...           2 years ago
  • 1.7.17                                ...           2 years ago
  • 1.7.16                                ...           2 years ago
  • 1.7.15                                ...           2 years ago
  • 1.7.14                                ...           2 years ago
  • 1.7.13                                ...           2 years ago
  • 1.7.12                                ...           2 years ago
  • 1.7.11                                ...           2 years ago
  • 1.7.10                                ...           2 years ago
  • 1.7.9                                ...           2 years ago
  • 1.7.8                                ...           2 years ago
  • 1.7.7                                ...           2 years ago
  • 1.7.6                                ...           2 years ago
  • 1.7.5                                ...           2 years ago
  • 1.7.4                                ...           2 years ago
  • 1.7.3                                ...           2 years ago
  • 1.7.2                                ...           2 years ago
  • 1.7.1                                ...           2 years ago
  • 1.7.0                                ...           2 years ago
  • 1.6.4                                ...           2 years ago
  • 1.6.3                                ...           2 years ago
  • 1.6.2                                ...           2 years ago
  • 1.6.1                                ...           2 years ago
  • 1.6.0                                ...           2 years ago
  • 1.6.0-alpha.0                                ...           2 years ago
  • 1.5.3                                ...           2 years ago
  • 1.5.2                                ...           2 years ago
  • 1.5.1                                ...           2 years ago
  • 1.5.0                                ...           2 years ago
  • 1.4.0                                ...           2 years ago
  • 1.3.1                                ...           2 years ago
  • 1.3.0                                ...           2 years ago
  • 1.2.3                                ...           2 years ago
  • 1.2.2                                ...           2 years ago
  • 1.2.1                                ...           2 years ago
  • 1.2.0                                ...           2 years ago
  • 1.1.8                                ...           2 years ago
  • 1.1.8-alpha.1                                ...           2 years ago
  • 1.1.8-alpha.0                                ...           2 years ago
  • 1.1.7                                ...           2 years ago
  • 1.1.6                                ...           2 years ago
  • 1.1.5                                ...           2 years ago
  • 1.1.4                                ...           2 years ago
  • 1.1.3                                ...           2 years ago
  • 1.1.3-alpha.1                                ...           2 years ago
  • 1.1.3-alpha.0                                ...           2 years ago
  • 1.1.2                                ...           2 years ago
  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.25                                ...           3 years ago
  • 1.0.24                                ...           3 years ago
  • 1.0.24-alpha.16                                ...           3 years ago
  • 1.0.24-alpha.15                                ...           3 years ago
  • 1.0.24-alpha.14                                ...           3 years ago
  • 1.0.24-alpha.13                                ...           3 years ago
  • 1.0.24-alpha.12                                ...           3 years ago
  • 1.0.24-alpha.11                                ...           3 years ago
  • 1.0.24-alpha.10                                ...           3 years ago
  • 1.0.24-alpha.9                                ...           3 years ago
  • 1.0.24-alpha.8                                ...           3 years ago
  • 1.0.24-alpha.7                                ...           3 years ago
  • 1.0.24-alpha.6                                ...           3 years ago
  • 1.0.24-alpha.4                                ...           3 years ago
  • 1.0.24-alpha.2                                ...           3 years ago
  • 1.0.24-alpha.0                                ...           3 years ago
  • 1.0.23                                ...           3 years ago
  • 1.0.23-alpha.2                                ...           3 years ago
  • 1.0.23-alpha.1                                ...           3 years ago
  • 1.0.23-alpha.0                                ...           3 years ago
  • 1.0.22                                ...           3 years ago
  • 1.0.20                                ...           3 years ago
  • 1.0.19                                ...           3 years ago
  • 1.0.18                                ...           3 years ago
  • 1.0.17                                ...           3 years ago
  • 1.0.16                                ...           3 years ago
  • 1.0.15                                ...           3 years ago
  • 1.0.14                                ...           3 years ago
  • 1.0.13                                ...           3 years ago
  • 1.0.12                                ...           3 years ago
  • 1.0.11                                ...           3 years ago
  • 1.0.10                                ...           3 years ago
  • 1.0.9                                ...           3 years ago
  • 1.0.8                                ...           3 years ago
  • 1.0.7                                ...           3 years ago
  • 1.0.6                                ...           3 years ago
  • 1.0.5                                ...           3 years ago
  • 1.0.4                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0-alpha.37                                ...           3 years ago
  • 1.0.0-alpha.36                                ...           3 years ago
  • 1.0.0-alpha.35                                ...           3 years ago
  • 1.0.0-alpha.34                                ...           3 years ago
  • 1.0.0-alpha.33                                ...           3 years ago
  • 1.0.0-alpha.32                                ...           3 years ago
  • 1.0.0-alpha.31                                ...           3 years ago
  • 1.0.0-alpha.29                                ...           3 years ago
  • 1.0.0-alpha.28                                ...           3 years ago
  • 1.0.0-alpha.27                                ...           3 years ago
  • 1.0.0-alpha.26                                ...           3 years ago
  • 1.0.0-alpha.25                                ...           3 years ago
  • 1.0.0-alpha.24                                ...           3 years ago
  • 1.0.0-alpha.23                                ...           3 years ago
  • 1.0.0-alpha.22                                ...           3 years ago
  • 1.0.0-alpha.21                                ...           3 years ago
  • 1.0.0-alpha.20                                ...           3 years ago
  • 1.0.0-alpha.19                                ...           3 years ago
  • 1.0.0-alpha.18                                ...           3 years ago
  • 1.0.0-alpha.17                                ...           3 years ago
  • 1.0.0-alpha.16                                ...           3 years ago
  • 1.0.0-alpha.15                                ...           3 years ago
  • 1.0.0-alpha.14                                ...           3 years ago
  • 1.0.0-alpha.13                                ...           3 years ago
  • 1.0.0-alpha.12                                ...           3 years ago
  • 1.0.0-alpha.11                                ...           3 years ago
  • 1.0.0-alpha.10                                ...           3 years ago
  • 1.0.0-alpha.9                                ...           3 years ago
  • 1.0.0-alpha.8                                ...           3 years ago
  • 1.0.0-alpha.6                                ...           3 years ago
  • 1.0.0-alpha.5                                ...           3 years ago
  • 1.0.0-alpha.4                                ...           3 years ago
  • 1.0.0-alpha.3                                ...           3 years ago
  • 1.0.0-alpha.2                                ...           3 years ago
  • 1.0.0-alpha.1                                ...           3 years ago

© 2010 - cnpmjs.org x YWFE | Home | YWFE