plotly-image3d
TypeScript icon, indicating that this package has built-in type declarations

0.0.8 • Public • Published

plotly-image3d

Plot 3d-image

Usage

const { registerImage3d } = require("plotly-image3d")
const plotly = require('plotly.js')
registerImage3d(Plotly.register, Plotly.Plots.getModule)

plotly.rect(document.body,
    [{
      type: 'image3d',
      x: [0, 0, 1, 1, 0],
      y: [0, 0, 1, 1, 0],
      z: [0, 1, 1, 0, 0],
      opacity: 1,
      source: 'url to image'
    }]
    )

Readme

Keywords

none

Package Sidebar

Install

npm i plotly-image3d

Weekly Downloads

5

Version

0.0.8

License

ISC

Unpacked Size

8.37 kB

Total Files

7

Last publish

Collaborators

  • ouyangqianba