piskel/js
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
..
controller fix : reduce piskel model size 2013-11-08 00:44:24 +01:00
drawingtools Dev environment : closure compiler + jshint update 2013-09-28 23:52:51 +02:00
lib Rollback of initialization sequence 2013-10-04 23:46:19 +02:00
model Fix : layer : duplicateFrame bug 2013-10-28 21:57:59 +01:00
rendering fix : reduce piskel model size 2013-11-08 00:44:24 +01:00
selection Dev environment : closure compiler + jshint update 2013-09-28 23:52:51 +02:00
service fix : reduce piskel model size 2013-11-08 00:44:24 +01:00
utils fix : reduce piskel model size 2013-11-08 00:44:24 +01:00
app.js fix : reduce piskel model size 2013-11-08 00:44:24 +01:00
Constants.js fix : reduce piskel model size 2013-11-08 00:44:24 +01:00
Events.js Synchronize resize fields, resize image when importing 2013-10-23 01:01:35 +02:00