jdescottes
bd99027852
feature : zoom
...
- Added MinimapController that displays a frame on the animated preview
when zoomed in
- Added bounds for the offset to make sure it doesn't go crazy
- Added new utility Math.js with a minmax function
- TODO : the minimap controller has a lot of dependencies, see if could be
cleaned up
- TODO : DrawingController knows the size of the picture it has to render
only indirectly, which makes it hard in some cases (such as boundary
checking performed during setOffset)
2013-11-01 23:11:11 +01:00
jdescottes
68edbe62c7
Forgot 2 files !
2013-11-01 17:17:41 +01:00
jdescottes
472906957a
feature : zoom :
...
- Extracted layers rendering logic from DrawingController to dedicated
class
- Turned RendererManager into Composite renderer (extends
AbstractRenderer)
- AbstractRenderer no longer contains a render(frame) method, implementing
the render differs too much between my current renderers to impose a
single signature, but I should improve this later if too much time on ma
hands
2013-11-01 17:12:59 +01:00
jdescottes
b7e8310b61
feature : zoom : continued
...
- simplified Renderer(s) architecture (removed decorator,
CachedFrameRenderer simply inherits from FrameRenderer now)
- keeping AbstractRenderer to act as interface
- fixed issue with layers : forgot to clone the first frame while merging
and therefore was modifying the original frame when I just wanted to
create a tmp frame (FrameUtils.js)
- extracted the mousemove throttling delay used in DrawingController to
Constants.js and reduced it from 40ms to 10ms
2013-11-01 16:27:23 +01:00
jdescottes
51f86afe6e
feature : zoom
...
- Created AbstractRenderer in rendering package
- Created CachedRenderer and CachedFrameRenderer to extract basic frame
caching logic from DrawingController
- Created RendererManager to synchronize updates made to several Renderer
settings
- Moved FrameRenderer from pskl.rendering to pskl.rendering.frame
- Fixed the resize of the drawing area when the window is resized
2013-11-01 15:39:42 +01:00
jdescottes
3ce9aaa843
Added utilities for alpha-composition in FrameUtils, for future usage ... maybe
2013-11-01 11:17:50 +01:00
jdescottes
7490651f83
Zoom initial implementation. No UI, only bound to mousewheel. Everything is broken, to amend !
2013-10-29 22:16:39 +01:00
jdescottes
a69b83e9bd
Fix : layer : duplicateFrame bug
2013-10-28 21:57:59 +01:00
grosbouddha
721783ce6c
Merge pull request #138 from juliandescottes/piskel-website-adaptations
...
Piskel website adaptations
2013-10-11 11:27:28 -07:00
Julian Descottes
4527846ad6
PR138#commitcomment-4293036 use full namespace when specifying a classtype
...
See https://github.com/juliandescottes/piskel/pull/138#commitcomment-4293036
2013-10-10 13:35:18 +02:00
jdescottes
55e3607ecc
Cleanup of saving/loading process
2013-10-10 00:06:11 +02:00
jdescottes
564f74265a
Piskel website adaptations :
...
M CanvasRenderer : can set the color used to represent transparency
M app.js : modified code responsible for saving when in website mode
M PiskelController.js : just some argument renaming
2013-10-08 23:44:06 +02:00
grosbouddha
913a50cb28
Merge pull request #129 from juliandescottes/cleanup-cheap-templates
...
Refactor : moved cheap-templates.js to lib. Added documentation
2013-10-04 15:07:01 -07:00
grosbouddha
93ba8c70a0
Merge pull request #130 from juliandescottes/layers-backward-compatibility
...
Layers:Added backward compatibility for previous models
2013-10-04 15:03:27 -07:00
jdescottes
17a147c880
grrmml
2013-10-04 23:55:45 +02:00
jdescottes
1e99a051e6
Rollback of initialization sequence
2013-10-04 23:46:19 +02:00
jdescottes
894486fba6
Review : fixes
2013-10-04 23:26:53 +02:00
jdescottes
5502d75ca5
Layers:Added backward compatibility for previous models
2013-10-04 22:59:42 +02:00
jdescottes
a87b09908d
Refactor : moved cheap-templates.js to lib. Added documentation
2013-10-04 22:25:47 +02:00
Vince
09da75af92
Removing external libs from Closure compiler pass
2013-10-02 00:11:03 +02:00
grosbouddha
a075a1c8b3
Merge pull request #128 from juliandescottes/feature-gif-export-panel
...
Feature gif export panel
2013-09-30 15:51:20 -07:00
jdescottes
2686a2e944
Layers:Review:Removed grid drawing routine : was never drawn
2013-09-30 22:44:02 +02:00
jdescottes
f514b6cd10
Layers:Review:Cleanup of GifExportController
2013-09-30 22:00:31 +02:00
jdescottes
7aa407970f
Layers:Review:Rename LayersController to LayersListController
2013-09-30 21:22:58 +02:00
jdescottes
64daa05140
Layers:Review:Rename layers.html to layers-list.html
2013-09-30 21:20:40 +02:00
jdescottes
90f2fac2d3
Layers:Minor style changes
2013-09-29 23:33:40 +02:00
jdescottes
b3d1cc5ea6
Layers:Review:Added todos in cheap-templates.js
2013-09-29 23:27:23 +02:00
jdescottes
4eebff804b
Layers:Review:Renamed layers-container to layers-list-container. Extracted URLs to Constant.js
2013-09-29 23:26:09 +02:00
jdescottes
76511058d1
Layers:Review:Rename renderers frame up/down to above/below
2013-09-29 23:16:32 +02:00
jdescottes
4f754c6af2
Layers:Review:Changed FrameRenderer className property to classes (array)
2013-09-29 23:14:10 +02:00
jdescottes
17ba93cc9f
Layers:Review:Renamed layers canvases css classes to layers-above/below-canvas
2013-09-29 23:05:24 +02:00
jdescottes
bcf34e6e55
Layers:Review:Only one selector per line
2013-09-29 22:53:05 +02:00
jdescottes
82dda463a8
Dev environment : JSHint will raise error if trailing whitespace
2013-09-29 22:50:24 +02:00
Julian Descottes
b261884d2b
Dev environment : Remove globals
2013-09-29 00:06:07 +02:00
Julian Descottes
87ba28372c
Layers : Deleted js/model/Framesheet.js
...
No longer used
2013-09-29 00:02:21 +02:00
Julian Descottes
be9238c9b1
Layers : FRAMESHEET_RESET -> PISKEL_RESET
...
Framesheet no longer exists.
2013-09-29 00:01:18 +02:00
Julian Descottes
ca427e0853
Dev environment : closure compiler + jshint update
...
Fixed error raised by closure compiler
Added es3 option to jshint (detect trailing commas)
Added curly option to jshint (missing curly braces for if/for blocks)
Removed trailing whitespaces (not enforced through jshint though)
2013-09-28 23:52:51 +02:00
Julian Descottes
b254c582b9
Merge branch 'master' into feature-gif-export-panel
2013-09-28 23:37:12 +02:00
Julian Descottes
80b336aab5
Merge pull request #127 from juliandescottes/closurecompiler
...
Basic wiring of Closure compiler
2013-09-28 14:32:59 -07:00
Vince
948457a3dc
Show closure compiler warnings
...
- Flush JS binary to temporary file instead of STDOUT
- Flushing to temp file allow display of warnings (mostly our fake
require/provide)
- gitignore the temp JS file
- Clean some comments
2013-09-28 21:28:45 +02:00
Vince
38dc1dc9fe
Closure Compiler: Fix All The things !
...
- Adding some small fixes to pass compile step (mostly /** instead of
/*).
- Adding some closure externs
2013-09-28 21:10:12 +02:00
Vince
39d9491aff
Plug 'compile' on test
...
Let's break all the thingz !
2013-09-28 19:11:41 +02:00
Vince
f3453918c1
Fix typo + plugin compile step in Travis
2013-09-28 19:06:35 +02:00
Vince
2f9b75fe5e
Experiment closure compiler - should trigger errors
...
local compiler.jar
should trigger errors on Travis
2013-09-28 18:51:10 +02:00
Julian Descottes
2df811b647
Layers : fix : Set button height to 24px
2013-09-27 23:19:08 +02:00
jdescottes
1bc73125dc
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
jdescottes
50ca22d91a
Clear layers canvas before redraw
2013-09-26 21:53:37 +02:00
jdescottes
3a8d96f840
Arrow icons update
2013-09-26 07:47:11 +02:00
jdescottes
9395be3034
Layers : add layer icon. Position buttons on top of list. Fix name generation issue
2013-09-25 22:43:21 +02:00
jdescottes
ff5f9273a8
Layers container style update
2013-09-25 21:03:57 +02:00