This project is deployed onto GitHub Pages. Deployable assets are in docs
, rather than the usual dist
; this is because docs
is the default location for GitHub Pages. The project's tests run on Travis after each commit.
As the project currently uses client-side ES6 without transpilation, it's unlikely to work in older browsers. It has been verified as working correctly in the latest desktop versions of Safari and Chrome. In Firefox and in mobile browsers, drag-and-drop does not work, though the initial rendering and calculation does.
- improve layout
- fix drag-and-drop in Firefox
- better mobile/touch support
- support different viewports
Clone the repo, and then:
brew install nvm
nvm install
npm install
npm run build
npm test
npm run open
npm run watch
options.sideLength
: the length of each side of each squareoptions.squareCount
: the number of squares to be shownoptions.dragEventThrottlePeriod
: the minimum period, in milliseconds, between the recalculation of areas