mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
4f54715f70
- 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)
87 lines
2.5 KiB
JavaScript
87 lines
2.5 KiB
JavaScript
// This list is used both by the grunt build and index.html (in debug mode)
|
|
|
|
exports.scripts = [
|
|
// Core libraries
|
|
"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",
|
|
// GIF Encoding libraries
|
|
"js/lib/gif/gif.worker.js",
|
|
"js/lib/gif/gif.js",
|
|
|
|
// Application wide configuration
|
|
"js/Constants.js",
|
|
"js/Events.js",
|
|
|
|
// Libraries
|
|
"js/utils/core.js",
|
|
"js/utils/CanvasUtils.js",
|
|
"js/utils/FileUtils.js",
|
|
"js/utils/FrameUtils.js",
|
|
"js/utils/LayerUtils.js",
|
|
"js/utils/ImageResizer.js",
|
|
"js/utils/PixelUtils.js",
|
|
"js/utils/Serializer.js",
|
|
"js/utils/Template.js",
|
|
"js/utils/UserSettings.js",
|
|
"js/lib/jsColor_1_4_0/jscolor.js",
|
|
|
|
// Application libraries-->
|
|
"js/rendering/DrawingLoop.js",
|
|
|
|
// Models
|
|
"js/model/Frame.js",
|
|
"js/model/Layer.js",
|
|
"js/model/Piskel.js",
|
|
|
|
// Selection
|
|
"js/selection/SelectionManager.js",
|
|
"js/selection/BaseSelection.js",
|
|
"js/selection/RectangularSelection.js",
|
|
"js/selection/ShapeSelection.js",
|
|
|
|
// Rendering
|
|
"js/rendering/CanvasRenderer.js",
|
|
"js/rendering/FrameRenderer.js",
|
|
"js/rendering/FramesheetRenderer.js",
|
|
"js/rendering/PiskelRenderer.js",
|
|
|
|
// Controllers
|
|
"js/controller/PiskelController.js",
|
|
"js/controller/DrawingController.js",
|
|
"js/controller/PreviewFilmController.js",
|
|
"js/controller/LayersListController.js",
|
|
"js/controller/AnimatedPreviewController.js",
|
|
"js/controller/ToolController.js",
|
|
"js/controller/PaletteController.js",
|
|
"js/controller/NotificationController.js",
|
|
|
|
// Settings sub-controllers
|
|
"js/controller/settings/ApplicationSettingsController.js",
|
|
"js/controller/settings/GifExportController.js",
|
|
"js/controller/settings/ImportController.js",
|
|
// Settings controller
|
|
"js/controller/settings/SettingsController.js",
|
|
|
|
// Services
|
|
"js/service/LocalStorageService.js",
|
|
"js/service/HistoryService.js",
|
|
"js/service/KeyboardEventService.js",
|
|
"js/service/ImageUploadService.js",
|
|
|
|
// 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
|
|
"js/app.js"
|
|
]; |