JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q50800F
  • License MIT

Draw images and shapes on the specified line segment

Package Exports

  • drawbetween

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (drawbetween) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

drawbetween.js

A node module to draw images and shapes on the specified line segment.

NPM Version Downloads Stats

Demo

https://higuri.github.io/drawbetween.js/sample/index.html

Installation

npm install drawbetween

Usage Example

HTML

<div id="canvas" style="width:100px; height:100px"></div>

JavaScript

const DrawBetween = require('drawbetween');

const draw = new DrawBetween('#canvas');
draw.circles({x: 25, y: 25}, {x: 75, y: 75});

API

line(p0, p1, options)

rects(p0, p1, options)

circles(p0, p1, options)

images(p0, p1, imgurl, options)

clear()

TODO

License

This project is licensed under the MIT License - see the LICENSE.md file for details.