Commit Graph

870 Commits

Author SHA1 Message Date
Julian Descottes
f9570ea3c5 Issue #640 - extract database code to dedicated package 2017-08-03 00:21:08 +02:00
Julian Descottes
f9cb631acb Issue #640 - migrate backup service to indexeddb 2017-08-03 00:21:08 +02:00
Julian Descottes
ed749a747f Issue #640 - migrate local browser save to indexeddb 2017-08-03 00:21:08 +02:00
Julian Descottes
30ecd41452 Issue #640 - remove duplicated entries in piskel-script-list 2017-08-03 00:21:08 +02:00
Julian Descottes
af65344c23 Issue #640 - rename PaletteService pointer to localStorage to localStorageGlobal
PaletteService exposes window.localStorage as this.localStorageService. This is confusing since we also have the LocalStorageService class used to save piskels in local storage.
2017-08-03 00:21:08 +02:00
juliandescottes
183133496e Fix #718 - when dropping image, only use import wizard for big images 2017-08-01 01:06:09 +02:00
Julian Descottes
a096dcabfd Fix #717: filter invalid colors 2017-07-18 08:05:48 +02:00
Julian Descottes
b21ea30fa8 Issue #658 - Support shift+UP/RIGHT/DOWN/LEFT to move the viewport 2017-06-10 23:12:11 +02:00
Julian Descottes
c2dbddcf9f Issue #636 - rename all application-settings things to preferences-settings
The name is not ideal, but it's better to have a MiscPreferencesController than a MainApplicationController for this kind of very simple panels.
2017-06-10 11:20:23 +02:00
Julian Descottes
09ce6ff88f Issue #636 - remove unused code 2017-06-10 11:20:23 +02:00
Julian Descottes
02a25d3f84 Fix eslint violations 2017-06-10 11:20:23 +02:00
Julian Descottes
726a8f74c1 Switch from jscs+jshint to eslint 2017-06-10 11:20:23 +02:00
Julian Descottes
d8ec58b42c Remove reference to seamless in tooltip 2017-06-10 11:20:23 +02:00
Julian Descottes
1168870ee0 Issue #636 - Allow users to change the grid color 2017-06-10 11:20:23 +02:00
Julian Descottes
d3a37c74e9 Issue #636 - rename seamless* to tile* 2017-06-10 11:20:23 +02:00
Julian Descottes
5d2ca7e70c Issue #636 - create sizepicker widget and use it in grid settings 2017-06-10 11:20:23 +02:00
Julian Descottes
2976fd09ea Issue #636 - create Tabs widget and use it application settings panel 2017-06-10 11:20:23 +02:00
Julian Descottes
94160d8fc4 Transform palette color title to uppercase 2017-06-04 22:29:54 +02:00
Julian Descottes
b977a146e9 Issue #663 - display 10 colors per row in palette for palettes with > 10 colors 2017-06-04 22:29:54 +02:00
Julian Descottes
a299d9aed0 Fix #697 - update confirmation message when closing Piskel with unsaved changes 2017-06-03 00:49:52 +02:00
Julian Descottes
cc2fc48107 Fix #271: add new piskel button for desktop application 2017-06-03 00:15:08 +02:00
Julian Descottes
799c9fbf5a Feature #541 crop based on the current selection 2017-06-01 19:46:34 +02:00
Julian Descottes
a9e22535d6 feature #541: add crop transform tool 2017-06-01 19:46:34 +02:00
Julian Descottes
4b4cbe47c8 support expanding the transform toolbox 2017-06-01 19:46:34 +02:00
Julian Descottes
e7d07c5353 Fix #699 - add SPACE to keycode translator 2017-05-27 09:05:05 +02:00
Julian Descottes
cf3383722a check meta key when recording drawing test (OSX) 2017-05-20 20:03:42 +02:00
Julian Descottes
6566ca07a5 add new layer just before the current layer 2017-05-20 20:03:42 +02:00
Julian Descottes
9fafa8b7a7 use SHIFT meta when clicking up down layer to move to top/bottom 2017-05-20 20:03:42 +02:00
Smie
cd560012e1 Adds comments to Stroke tool for drawing lines. 2017-05-17 23:57:30 +02:00
Smie
e819503cc5 Adjusts lineTool ends to square shape. 2017-05-17 23:57:30 +02:00
Smie
6512c3dcc0 Improves performance of line tool for large pen sizes. 2017-05-17 23:57:30 +02:00
juliandescottes
3535dfb25e replace references to github.com/juliandescottes for github.com/piskelapp 2017-05-14 19:18:19 +02:00
juliandescottes
d18b85df16 Fix template bug for IE11 2017-05-14 18:55:51 +02:00
juliandescottes
df6780a3e7 store version in window.pskl and display it in settings 2017-05-14 17:39:33 +02:00
juliandescottes
0ef69bae58 Fix #689 - Constants.DEFAULTS->DEFAULT in deserializers v0/v1 2017-05-14 17:39:33 +02:00
juliandescottes
b40c1c4744 reduce button size 2017-05-13 01:36:04 +02:00
juliandescottes
261259b38f remove unused styles from dialogs-import.css 2017-05-13 01:36:04 +02:00
juliandescottes
42f329980c remove cancel button from import steps, add big select mode buttons 2017-05-13 01:36:04 +02:00
juliandescottes
80a1edf027 add unit test for piskel MergeUtils 2017-05-13 01:36:04 +02:00
juliandescottes
92934502e8 fix merge of smaller piskel into bigger piskel 2017-05-13 01:36:04 +02:00
juliandescottes
4d07a4eb90 select the first imported layer after a merge 2017-05-13 01:36:04 +02:00
juliandescottes
4f15b14b58 IE11 fixes 2017-05-13 01:36:04 +02:00
juliandescottes
00d4a1614b protect frame-picker destroy if frame picker init() was not called 2017-05-13 01:36:04 +02:00
juliandescottes
a72b0c69e5 initialize insert-location frame-picker on show() 2017-05-13 01:36:04 +02:00
juliandescottes
c6733cdad4 add integration test for import merge wizard 2017-05-13 01:36:04 +02:00
juliandescottes
30274ad1f8 replace Promise by Q.defer in ImageImport step 2017-05-13 01:36:04 +02:00
juliandescottes
b7fe8c1a5e use image name as piskel name for image import 2017-05-13 01:36:04 +02:00
juliandescottes
a68dccfce0 persist preview UI during import wizard 2017-05-13 01:36:04 +02:00
juliandescottes
78bbc71e6c Implement Import and Merge wizard dialog 2017-05-13 01:36:04 +02:00
juliandescottes
af3d0fa48b Feature #683: duplicate layer when SHIFT+CLICK on create layer button 2017-05-13 01:11:45 +02:00
juliandescottes
f2b733c91e Fix #684 - import GIF as spritesheet failed 2017-05-11 01:47:15 +02:00
juliandescottes
5d6f354443 Fix #652 - fix worker ObjectURL creation 2017-05-08 01:17:29 +02:00
juliandescottes
f74b081fad avoid sanitization for cheatsheet keys 2017-05-08 00:06:14 +02:00
juliandescottes
b8fed60fa6 Fix #651 - stop drawing the zoomedout background if unnecessary 2017-05-06 18:47:01 +02:00
juliandescottes
a8c85b8a29 Issue #654 : stop using jquery to create the FramesList markup 2017-04-01 12:48:11 +02:00
juliandescottes
98768b2e5b select color using alt+click (fixes #623) 2017-03-02 01:39:28 +01:00
Julian Descottes
11a063de12 sanitize strings coming from user inputs 2017-02-23 19:37:29 +01:00
Julian Descottes
974450837e add confirmation message when closing desktop app with unsaved changes 2017-02-19 13:19:09 +01:00
juliandescottes
c6c64af2fd Use Q deferred instead of native promise (IE11) 2017-02-11 16:57:56 +01:00
juliandescottes
c68b82339c remove classList toggle with 2nd argument for IE11 2017-02-11 16:51:27 +01:00
Zoee Silcock
f30e16386d Use standard HTML entities for the arrows displayed on the keyboard shortcut list 2017-02-05 11:47:45 +01:00
juliandescottes
08b97cb6f0 select previous layer after deleting layer 2017-02-04 14:32:23 +01:00
juliandescottes
b6fa769ba1 temporary fix for layerlist scroll 2017-02-04 14:09:27 +01:00
juliandescottes
47b09b10c5 Merge branch 'master' of https://github.com/juliandescottes/piskel 2017-02-04 13:49:20 +01:00
juliandescottes
f039a89572 disable layerlist smoothscrolling 2017-02-04 13:43:49 +01:00
Guillaume Martigny
f5491dc557 Irregular whitespace 2017-02-01 16:15:02 +01:00
juliandescottes
e04fde7084 log errors when Deserialize fails 2017-01-29 14:18:59 +01:00
juliandescottes
1918227c81 add integration tests for PNG export & scaled export 2017-01-29 13:56:06 +01:00
juliandescottes
8b1b21368c add gif export integration test 2017-01-29 02:42:42 +01:00
juliandescottes
d781df3290 add drawing test for center tool 2017-01-29 00:11:58 +01:00
Smie
35bfcb5f00 Refines Circle tool for PenSize = 1 2017-01-28 02:27:50 +01:00
Smie
cce4cde98b Corrects Circle tool for even dimensions. 2017-01-28 02:27:50 +01:00
Smie
4706587abb Rewrites Circle drawing tool to behave better with large pen sizes. 2017-01-28 02:27:50 +01:00
juliandescottes
ba779a97a6 fix #621 : allow color worker to detect up to 256 colors 2017-01-25 15:07:55 +01:00
juliandescottes
dc149f88d6 remove extra caching from CurrentColorsService 2017-01-25 14:59:09 +01:00
Zoee Silcock
9be332fad3 Allow adding multiple frames with drag and drop
This is a partial solution issue number #285. When dropping multiple images it creates a new frame for each one. It works great when all images are the same size and within the size of the piskel document. When the images aren't the size of the document they are positioned in the same way as single image import.
2017-01-22 11:16:18 +01:00
juliandescottes
11db5ca45c remove getBoundRectanglePixels from PixelUtils 2017-01-21 18:24:48 +01:00
Smie
f8b77403cd Improves Rectangle tool performance. 2017-01-16 11:52:22 -07:00
juliandescottes
acad4df49e fix typos in perf warning popup 2017-01-15 13:33:57 +01:00
juliandescottes
af92ee6bd7 increase height of performance info popup 2017-01-15 13:26:48 +01:00
juliandescottes
a740699775 increase appengine storage limit to avoid false positive 2017-01-15 13:08:41 +01:00
juliandescottes
6ce2c00acf force color black on brush size label 2017-01-15 13:00:15 +01:00
juliandescottes
5bde3c471d remove unused paletteController member from DrawingController 2017-01-15 12:35:38 +01:00
juliandescottes
94b1a1df4a History service gets core piskelController from public piskelController 2017-01-14 21:58:37 +01:00
juliandescottes
8cad3bb607 display error message on file load error 2017-01-14 21:37:52 +01:00
juliandescottes
a4952d0db2 fix #603 shape select fails when clicking outside drawing area 2017-01-13 15:07:05 +01:00
juliandescottes
42f4812b46 move drop image logic to FrameUtils, add unit test 2017-01-13 13:58:57 +01:00
juliandescottes
bf91c4ef62 Fix image dropper when image has to be moved 2017-01-13 13:22:21 +01:00
juliandescottes
03f37d46ac add unit tests for colorToInt 2017-01-13 03:31:02 +01:00
juliandescottes
0abd779348 fix #602 : shape selection fails with some colors 2017-01-13 02:59:59 +01:00
juliandescottes
33259e5522 nits on previewSize widget 2017-01-11 23:43:57 +01:00
juliandescottes
e8207aba57 update labels for preview size widget 2017-01-11 21:59:37 +01:00
Guillaume Martigny
2f47bc433c lint fix 2017-01-11 12:32:29 +01:00
Guillaume Martigny
9cd3fa03a0 Merge branch 'master' into 362-MultiSizePreview 2017-01-11 12:28:20 +01:00
Guillaume Martigny
d4b4192d45 Final : Specific tooltip while preview size selection disabled 2017-01-11 12:23:49 +01:00
juliandescottes
2cdc999875 Fix bug when opening save panel for sprite with performance problem 2017-01-09 09:10:20 +01:00
Julian Descottes
d30f6a05d1 add integration tests 2017-01-08 16:09:03 +01:00
Julian Descottes
76ae797a9e nits: typos and case 2017-01-08 11:55:09 +01:00
Nick Garland
5bd113b38f Removed reset from SelectedColorsService and implemented the reset in PaletteController 2017-01-04 18:28:58 +00:00
Julian Descottes
aa5d4d4090 Merge branch 'master' of https://github.com/juliandescottes/piskel 2017-01-02 23:35:07 +01:00
Julian Descottes
398d93557a remove unused argument in FileDropperService constructor 2017-01-02 23:34:54 +01:00
Julian Descottes
0733a5a142 Merge pull request #600 from zoeesilcock/363-firefox-dnd-bug
Workaround for incorrect frame selection after re-ordering on Firefox
2017-01-02 23:27:33 +01:00
Zoee Silcock
2dea7faea0 Workaround for incorrect frame selection after re-ordering on Firefox
This commit is related to the following issue: #363

When a frame is dropped both `mouseup` and `click` events are triggered on Firefox. This is somwhat expected behaviour but other browsers do not trigger the `click` event.

One would expect jquery-ui to work the same across all browsers but when they got a bug report they decided to not change anything:
https://bugzilla.mozilla.org/show_bug.cgi?id=787944

The most comon workaround appears to be to use the `clone` helper in jquery-ui sortable. Unfortunately this doesn't work because the cloned frame doesn't keep the contents of the canvas. This seemed like the cleanest workaround, here are a few others:
http://stackoverflow.com/questions/947195/jquery-ui-sortable-how-can-i-cancel-the-click-event-on-an-item-thats-dragged
2016-12-29 10:09:05 +01:00
Zoee Silcock
809737908c Add a setting for changing the color format shown in the color picker 2016-12-29 08:08:13 +01:00
Julian Descottes
b869d63211 remove useless comment 2016-12-27 00:56:18 +01:00
Julian Descottes
c0f7e7be52 jshint cleanup, move HTML to a template, add css classes 2016-12-27 00:56:18 +01:00
Julian Descottes
98527c6ded update notification style to use piskel theme colors 2016-12-27 00:56:17 +01:00
Julian Descottes
9518d570e6 display save to gallery warning if performance issue detected 2016-12-27 00:52:32 +01:00
Julian Descottes
01b9898181 improve serialization error detection for firefox 2016-12-27 00:52:32 +01:00
juliandescottes
184b2e48aa disable gallery save when if spritesheet size too big (WIP) 2016-12-27 00:52:32 +01:00
juliandescottes
e97a641e95 add constant for the max datastore accepted size 2016-12-27 00:52:32 +01:00
Julian Descottes
7eea5d672a fix hover image for minimap popup preview 2016-12-25 10:20:57 +01:00
Julian Descottes
537234b1d1 update minimap crop style 2016-12-24 11:09:12 +01:00
Julian Descottes
57936d90b1 fix jshint issue 2016-12-24 10:26:40 +01:00
Julian Descottes
ef8060c07d remove unused resizeNearestNeighbor util 2016-12-24 10:24:23 +01:00
Julian Descottes
8551a8546a fix #369 improve perf of grid rendering 2016-12-23 23:41:41 +01:00
Julian Descottes
eb84e87a13 add gold border on textfield:focus 2016-12-23 21:09:05 +01:00
Julian Descottes
ca3b789747 add user setting for seamless mode opacity 2016-12-22 23:27:00 +01:00
Julian Descottes
22dd474799 add border radius to settings export tabs 2016-12-22 22:33:04 +01:00
Julian Descottes
16151e8e95 remove text-shadow from settings panels 2016-12-22 22:21:32 +01:00
Julian Descottes
2f62be4927 simplify buttons styling 2016-12-22 14:21:21 +01:00
Julian Descottes
fbaccb03f2 introduce css variables 2016-12-22 13:06:01 +01:00
juliandescottes
dda566a218 fix broken serializer 2016-12-21 17:20:54 +01:00
Julian Descottes
6cc41ee07b add a warning popup when detecting an unsupported browser 2016-12-21 15:44:04 +01:00
juliandescottes
32070efcc1 save split: add comments and cleanup 2016-12-21 12:22:50 +01:00
juliandescottes
c743334a31 Switch back to line layout 2016-12-21 11:45:34 +01:00
juliandescottes
84419a1550 split saved piskel in chunks when serialization fails 2016-12-21 02:28:11 +01:00
juliandescottes
66c941dd25 support chunked layerData in regular deserializer 2016-12-18 11:36:11 +01:00
juliandescottes
dba62d2b0d add pskl.utils.Array.chunk 2016-12-18 09:16:52 +01:00
juliandescottes
58bfe16b27 performance warning: text cleanup 2016-12-18 06:52:44 +01:00
juliandescottes
57b37971f6 add svg warning icon 2016-12-17 10:19:17 +01:00
juliandescottes
8dab74ceea add text to warning notifications popup 2016-12-16 10:04:36 +01:00
juliandescottes
d0cca52f47 issue #555: add performance warning icon, show dialog 2016-12-16 07:49:15 +01:00
juliandescottes
58cf9f8390 issue #555 detect performance issues based on sprite specs 2016-12-16 07:49:15 +01:00
juliandescottes
49109e51c9 fix js error when resizing piskel (missing fps arg) 2016-12-16 07:02:31 +01:00
Julian Descottes
b21fc0490d remove unused previewController member in ImportService 2016-12-13 11:04:03 +01:00
Julian Descottes
25ede9ffff cleanup unused arguments in PiskelFileUtils 2016-12-13 11:00:58 +01:00
Julian Descottes
37d2861352 move fps info from preview controller to piskel model 2016-12-13 09:17:34 +01:00
Julian Descottes
2fe0b842a5 update pixijs export metadata app url 2016-12-13 07:28:55 +01:00
Julian Descottes
dd7ab574b9 Merge pull request #581 from PSeitz/savejson
add pixi export
2016-12-12 20:23:45 -10:00
Julian Descottes
16cfffa898 Merge pull request #579 from PSeitz/piskelcopy
Copy between piskels
2016-12-09 07:18:45 -10:00
Julian Descottes
732c3c2d76 Merge pull request #577 from GMartigny/559-TooLongLayerName
Add ellipsis to overflowing layer item name #559
2016-12-06 03:19:48 +01:00
Pascal Seitz
21c7425cbc add pixi export 2016-12-05 19:11:01 +01:00
Guillaume Martigny
9ac9583455 Address comment and nit 2016-12-05 09:43:15 +01:00
Pascal Seitz
9608995d9c Fix spaces 2016-12-04 11:59:07 +01:00
Pascal Seitz
5faa985dea Copy between piskels
#272
2016-12-04 11:40:18 +01:00
Guillaume Martigny
5544f734cf 🥷 2016-12-02 17:30:38 +01:00
Guillaume Martigny
9d0d38e081 Proposal : tooltip only when layer name overflow 2016-12-02 17:21:10 +01:00
Guillaume Martigny
ad5c8182e4 Add ellipsis to overflowing layer item name #559 2016-12-01 11:43:23 +01:00
Guillaume Martigny
f2424ed16e Resolve options collision
Disable preview widget with tooltip
Fix animation with shortcuts
2016-11-30 11:25:47 +01:00