Package Exports
- pretty-grid
- pretty-grid/dist/pretty-grid.js
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 (pretty-grid) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Pretty Grid
Grid creation and manipulation made pretty.
Getting started
Browser
For a browser based project, add the folowing script tag to your index.html file
<script src="https://cdn.jsdelivr.net/npm/pretty-grid"></script>All pretty-grid features can now be accessed from the prettyGrid global object.
const grid = new prettyGrid.Grid(3, 5, 500, 500);
grid.draw(point => ...));A browser example project can be found here
Node
For a nodejs based project, install pretty-grid using:
npm install pretty-gridimport features from pretty-grid
import { Grid } from 'pretty-grid';
const grid = new Grid(3, 5, 500, 500);
grid.draw(point => ...));A node based example project can be found here
Docs
The full documentation can be found here