You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Gisle Aune
3923179d02
|
6 years ago | |
---|---|---|
dev-server | 6 years ago | |
src | 6 years ago | |
.gitignore | 6 years ago | |
package-lock.json | 6 years ago | |
package.json | 6 years ago | |
readme.md | 6 years ago | |
webpack.config.js | 6 years ago |
readme.md
mapp-board
Mapp board is in early, early development. Contribution and issues are welcome, but it's a long way from being ready for any actual production use.
This is a module for a canvas-based board to help you make a mapping tool for your role-playing website. It has no API, and must be controlled through settings and events.
Using
const mappBoard = require("mapp-board"); // Import as pre-ES6 node module
import * as mappBoard from "mapp-board"; // Import as ES6 module
// Omit both if you import as <script> tag.
document.addEventListener("DOMContentLoaded", function() {
var board = new mappBoard.Board("container");
window.addEventListener('resize', function() {
board.resize(window.innerWidth, window.innerHeight);
}, false);
board.resize(window.innerWidth, window.innerHeight);
});
It's an exercise to the reader to wrap it in React, angular, vue, marko or whatever library you use.