Skip to content

nicoleffect/point-plot

Repository files navigation

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

About

dot and line, dots to dots connect

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published