point-plot

1.1.4 • Public • Published

point-plot

dot and line, dots to dots connect

demo1 --> demo2 -->

examples

// html
<canvas id="canvas"></canvas>
// npm install point-plot
import pointPlot from 'point-plot'

 pointPlot({
  canvas: document.getElementById('canvas'), // require
  color: '255,255,255', // default
  r: 4, // default
  distance: 100, // default, distance of dot to dot
  isConnect: true, // default, if you don't need lines, set it false
  isOnClick: true, // default, event for click or touchstart
  isOnMove: true// default
 })

// or

<script src="https://nicoleffect.github.io/point-plot/dist/point-plot.iife.min.js"></script>

pointPlot({ canvas: document.getElementById('canvas') })

all modes

amd、cjs、es、iife、umd

Package Sidebar

Install

npm i point-plot

Weekly Downloads

0

Version

1.1.4

License

MIT

Unpacked Size

35.8 kB

Total Files

4

Last publish

Collaborators

  • nicoleffect