Benny Lichtner
Benny Lichtner
E.g. ``` var myDataSet = new ABM.DataSet(100, 100, new Array(100*100)); myDataSet.setXY(10, 10, 255); var img = myDataSet.toImage(); ``` `img` ends up being all black
See http://jsfiddle.net/dqkFF/1/. We should probably just throw an error when initializing the model with weird coordinate limits?
Is there ever a reason why a modeler would want to use `patches.patchXY()` instead of `patches.patch()`? If possible, it seems like it would be nice to simplify. `patches.patch()` will work...
I'm thinking some of the model options variables could use a name change. Size should probably be patchSize, and minX/maxX/minY/maxY should be leftX/rightX/bottomY/topY?
We've been talking loosely about supporting layers, or about making AS2.0 layer-oriented, but I don't really know what this means.
I'm working on a custom leaflet layer for agentscript models, but I'm running into problems with event propagation. The leaflet layer should probably live above the patch layer, which means...
I think I remember you talking about this, but I'm not sure if it's implemented yet? Initializing a model (and its size) from a loaded image? Could you do something...
I'll try and patch this when I get a chance.
qunit.js and qunit.css (available from http://qunitjs.com/) are needed to run the filer.js tests, but they aren't included in the repo https://github.com/ebidel/filer.js/pull/45#issuecomment-33243825
Calling db.saveDoc() on an Array saves each element individually, but there doesn't seem to be a way to update a list of pre-existing elements (unless I'm missing something).