2013-08-11 03:26:38 +04:00
|
|
|
// This list is used both by the grunt build and index.html (in debug mode)
|
|
|
|
|
|
|
|
exports.scripts = [
|
|
|
|
// Core libraries
|
2013-09-30 23:22:58 +04:00
|
|
|
"js/lib/jquery-1.8.0.js","js/lib/jquery-ui-1.10.3.custom.js","js/lib/pubsub.js","js/lib/bootstrap/bootstrap.js",
|
2013-08-11 03:26:38 +04:00
|
|
|
// GIF Encoding libraries
|
|
|
|
"js/lib/gif/gif.worker.js",
|
|
|
|
"js/lib/gif/gif.js",
|
2013-12-06 01:12:48 +04:00
|
|
|
// Spectrum color-picker library
|
2013-11-21 03:44:46 +04:00
|
|
|
"js/lib/spectrum/spectrum.js",
|
2013-08-11 03:26:38 +04:00
|
|
|
|
|
|
|
// Application wide configuration
|
|
|
|
"js/Constants.js",
|
|
|
|
"js/Events.js",
|
2013-09-30 23:22:58 +04:00
|
|
|
|
2013-12-06 01:12:48 +04:00
|
|
|
|
2013-08-11 03:26:38 +04:00
|
|
|
// Libraries
|
|
|
|
"js/utils/core.js",
|
2013-11-05 03:05:49 +04:00
|
|
|
"js/utils/UserAgent.js",
|
2013-08-11 03:26:38 +04:00
|
|
|
"js/utils/CanvasUtils.js",
|
2014-02-10 00:49:08 +04:00
|
|
|
"js/utils/Dom.js",
|
2013-11-02 02:11:11 +04:00
|
|
|
"js/utils/Math.js",
|
2013-10-17 01:14:41 +04:00
|
|
|
"js/utils/FileUtils.js",
|
2013-09-22 23:02:43 +04:00
|
|
|
"js/utils/FrameUtils.js",
|
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 03:44:24 +04:00
|
|
|
"js/utils/LayerUtils.js",
|
2013-10-23 03:01:35 +04:00
|
|
|
"js/utils/ImageResizer.js",
|
2013-09-22 23:02:43 +04:00
|
|
|
"js/utils/PixelUtils.js",
|
|
|
|
"js/utils/Template.js",
|
2013-08-11 03:26:38 +04:00
|
|
|
"js/utils/UserSettings.js",
|
2013-11-15 03:03:05 +04:00
|
|
|
"js/utils/serialization/Serializer.js",
|
|
|
|
"js/utils/serialization/Deserializer.js",
|
|
|
|
"js/utils/serialization/backward/Deserializer_v0.js",
|
|
|
|
"js/utils/serialization/backward/Deserializer_v1.js",
|
2013-08-11 03:26:38 +04:00
|
|
|
|
|
|
|
// Application libraries-->
|
|
|
|
"js/rendering/DrawingLoop.js",
|
|
|
|
|
|
|
|
// Models
|
|
|
|
"js/model/Frame.js",
|
2013-09-22 23:02:43 +04:00
|
|
|
"js/model/Layer.js",
|
2013-12-11 00:25:36 +04:00
|
|
|
"js/model/piskel/Descriptor.js",
|
2013-09-22 23:02:43 +04:00
|
|
|
"js/model/Piskel.js",
|
|
|
|
|
|
|
|
// Selection
|
2013-08-11 03:26:38 +04:00
|
|
|
"js/selection/SelectionManager.js",
|
|
|
|
"js/selection/BaseSelection.js",
|
|
|
|
"js/selection/RectangularSelection.js",
|
|
|
|
"js/selection/ShapeSelection.js",
|
|
|
|
|
|
|
|
// Rendering
|
2013-11-01 18:39:42 +04:00
|
|
|
"js/rendering/AbstractRenderer.js",
|
2013-11-01 20:12:59 +04:00
|
|
|
"js/rendering/CompositeRenderer.js",
|
|
|
|
"js/rendering/layer/LayersRenderer.js",
|
2013-11-01 18:39:42 +04:00
|
|
|
"js/rendering/frame/FrameRenderer.js",
|
|
|
|
"js/rendering/frame/CachedFrameRenderer.js",
|
2013-08-11 03:26:38 +04:00
|
|
|
"js/rendering/CanvasRenderer.js",
|
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 03:44:24 +04:00
|
|
|
"js/rendering/FramesheetRenderer.js",
|
|
|
|
"js/rendering/PiskelRenderer.js",
|
2013-08-11 03:26:38 +04:00
|
|
|
|
|
|
|
// Controllers
|
2013-09-22 23:02:43 +04:00
|
|
|
"js/controller/PiskelController.js",
|
2013-08-11 03:26:38 +04:00
|
|
|
"js/controller/DrawingController.js",
|
|
|
|
"js/controller/PreviewFilmController.js",
|
2013-09-30 23:22:58 +04:00
|
|
|
"js/controller/LayersListController.js",
|
2013-08-11 03:26:38 +04:00
|
|
|
"js/controller/AnimatedPreviewController.js",
|
2013-11-02 02:11:11 +04:00
|
|
|
"js/controller/MinimapController.js",
|
2013-08-11 03:26:38 +04:00
|
|
|
"js/controller/ToolController.js",
|
|
|
|
"js/controller/PaletteController.js",
|
|
|
|
"js/controller/NotificationController.js",
|
2013-10-11 02:04:40 +04:00
|
|
|
|
|
|
|
// Settings sub-controllers
|
2013-08-12 09:31:09 +04:00
|
|
|
"js/controller/settings/ApplicationSettingsController.js",
|
2013-12-24 15:57:03 +04:00
|
|
|
"js/controller/settings/ResizeController.js",
|
2013-08-12 09:31:09 +04:00
|
|
|
"js/controller/settings/GifExportController.js",
|
2014-03-08 20:23:20 +04:00
|
|
|
"js/controller/settings/PngExportController.js",
|
2014-02-10 04:00:16 +04:00
|
|
|
"js/controller/settings/LocalStorageController.js",
|
2013-12-06 21:04:04 +04:00
|
|
|
"js/controller/settings/SaveController.js",
|
2013-10-11 02:04:40 +04:00
|
|
|
"js/controller/settings/ImportController.js",
|
|
|
|
// Settings controller
|
|
|
|
"js/controller/settings/SettingsController.js",
|
2013-08-11 03:26:38 +04:00
|
|
|
|
|
|
|
// Services
|
|
|
|
"js/service/LocalStorageService.js",
|
2013-12-19 02:22:25 +04:00
|
|
|
"js/service/GithubStorageService.js",
|
|
|
|
"js/service/AppEngineStorageService.js",
|
2013-08-11 03:26:38 +04:00
|
|
|
"js/service/HistoryService.js",
|
2014-02-12 02:42:38 +04:00
|
|
|
"js/service/SavedStatusService.js",
|
2013-11-20 02:46:33 +04:00
|
|
|
"js/service/keyboard/ShortcutService.js",
|
2013-11-18 00:15:53 +04:00
|
|
|
"js/service/keyboard/KeycodeTranslator.js",
|
2013-11-19 02:53:12 +04:00
|
|
|
"js/service/keyboard/CheatsheetService.js",
|
2013-09-07 19:50:43 +04:00
|
|
|
"js/service/ImageUploadService.js",
|
2013-08-11 03:26:38 +04:00
|
|
|
|
|
|
|
// Tools
|
|
|
|
"js/drawingtools/BaseTool.js",
|
|
|
|
"js/drawingtools/SimplePen.js",
|
|
|
|
"js/drawingtools/VerticalMirrorPen.js",
|
|
|
|
"js/drawingtools/Eraser.js",
|
|
|
|
"js/drawingtools/Stroke.js",
|
|
|
|
"js/drawingtools/PaintBucket.js",
|
|
|
|
"js/drawingtools/Rectangle.js",
|
|
|
|
"js/drawingtools/Circle.js",
|
|
|
|
"js/drawingtools/Move.js",
|
|
|
|
"js/drawingtools/selectiontools/BaseSelect.js",
|
|
|
|
"js/drawingtools/selectiontools/RectangleSelect.js",
|
|
|
|
"js/drawingtools/selectiontools/ShapeSelect.js",
|
|
|
|
"js/drawingtools/ColorPicker.js",
|
|
|
|
// Application controller and initialization
|
2013-09-22 23:02:43 +04:00
|
|
|
"js/app.js"
|
2013-08-11 03:26:38 +04:00
|
|
|
];
|