bs-geometric-forms

0.1.0 • Public • Published

bs-geometric-forms

NPM

Installation

npm i bs-geometric-forms

Usage

const { rectangle } = require('bs-geometric-forms');

const svg = d3.select('#app').append('svg');

const xPosition = 0;
const yPosition = 0;
const width = 100;
const height = 200;

svg.attr('height', 400);
svg.attr('width', 400);

rectangle(xPosition, yPosition, width, height, svg);

Example

npm run example then go to http://localhost:1234

Feature list

This package allow you to create the following forms:

  • Rectangle via rectangle function
  • Circle via circle function
  • Line via line function
  • Arc via arc function

Dependencies (2)

Dev Dependencies (1)

Package Sidebar

Install

npm i bs-geometric-forms

Weekly Downloads

2

Version

0.1.0

License

MIT

Last publish

Collaborators

  • dexterneo