Licensed under an AGPL open source licence
SPEC
- a global object
Mapmaker
which can be used to generate amapView
from amap
- a
mapView
includes- INPUTS: ability to intake JSON for a
map
,metacodeSet
's, andmetacodes
- PERSISTING: can output JSON, via Backbone models
SAVE
, fortopic
,synapse
,map
,mapping
, andmessages
- topic cards, used to view details of, and edit, topics
- synapse cards, used to view details of, and edit, synapses
- map Info box, used to view details of, and edit, the map
- a graph viz / editing tool
- emit messages that should be displayed via a UI, as 'toast' messages
- TRANSIENT: realtime collaboration on the graph viz / editing tool via websockets
- TRANSIENT: chat functionality
- TRANSIENT: multi- person video collaboration via WebRTC
- INPUTS: ability to intake JSON for a
map = ...;
canvasEl = document.getElementById("mapCanvas");
config = {};
maker = Mapmaker.buildMaker.create(canvasEl, config, map);
maker.exportImage();
maker.export(); // a json object of the whole map, including messages
maker.save(); // do whatever custom behaviour save is set up to do
To get this going::
clone this directory, enter the directory
cd mapmaker
Install node v0.10.35 via the website http://nodejs.org/
or via cmd line
sudo apt-get install nodejs -y
sudo apt-get install npm -y
ln -fs /usr/bin/nodejs /usr/bin/node
Install bower for front-end dependencies, grunt for a local server
npm install -g bower grunt-cli
Actually download the front-end, and server dependencies, and move some of them (grunt init)
npm install && bower install && grunt init
Run the development servers
grunt serveReload
- ACCEPTS:
map
,config
,$parent
- ACCEPTS:
mapView
,topic
- Public Api
- show
- hide
- ACCEPTS:
mapView
,synapse
- Public Api
- show
- hide
- ACCEPTS:
mapView
,map
- Public Api
- show
- hide