0.1.0 • Published 6 years ago

bs-court-dimensions v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

bs-court-dimensions

NPM

Installation

npm i bs-court-dimensions

Usage

const { courtConfigZoomed, generateCourt } = require('bs-court-dimensions');

// Generate a FIBA basket court at your desired zoom level
const courtZoomed = courtConfigZoomed(60);

// Display the basket-ball court inside the svg
// Use same zoomMultiplicator as the courtConfigZoomed function
generateCourt('#app', courtZoomed, 60);

All functions are curried.

Example

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