piskel/js/controller
jdescottes 4f54715f70 fix : reduce piskel model size
- Initial implementation : working but ...
- MODEL_VERSION has been bumped to 2
- The loading process is now theoretically asynchronous (loading images to
  read the content of the layers), but for now, the asynchronous behaviour
  is hidden behind a nasty hack, which is somehow similar to lazy loading.
  When loading the piskel, a Piskel is created synchronously, with fake
  empty frames, and as the images will get loaded, the fake frames will be
  replaced by the actual frames.

  I really don't like this, and the asynchronous nature of the loading
  should be clearly expressed
- There is no backward compatible deserializer for the previous version of
  the model (1)
- The Serializer utils is just badly designed. Serialization and
  deserialization should be splitted into two different classes
- Saving & loading are still done in app.js and should be moved to
  services

BUT : the size of the piskels is now pretty small. A piskel which was
using 890kB previously is now using only 10kB. Although it should be
noted, that after gzip there is no significant difference between this
version and the existing one. The only gains we can really expect with
this are : less disk space used on appengine, ability to reuse the
layers' pngs directly on piskel-website (but to be honest I can't see any
valid use case for this)
2013-11-08 00:44:24 +01:00
..
settings fix : reduce piskel model size 2013-11-08 00:44:24 +01:00
AnimatedPreviewController.js Layers:Review:Removed grid drawing routine : was never drawn 2013-09-30 22:44:02 +02:00
DrawingController.js Layers:Review:Removed grid drawing routine : was never drawn 2013-09-30 22:44:02 +02:00
LayersListController.js Layers:Review:Rename LayersController to LayersListController 2013-09-30 21:22:58 +02:00
NotificationController.js Issue 24 : Layers 2013-09-22 21:02:43 +02:00
PaletteController.js Fix jscolor : add jscolor.install to Palette Controller init sequence. Fix layer canvas update on DPI change 2013-09-26 22:43:45 +02:00
PiskelController.js Cleanup of saving/loading process 2013-10-10 00:06:11 +02:00
PreviewFilmController.js Layers:Review:Changed FrameRenderer className property to classes (array) 2013-09-29 23:14:10 +02:00
ToolController.js Merge from master + added more jshint checks (undef and latedef). Very helpful to catch post merge issues. 2013-08-10 14:28:10 +02:00