Jürg Lehni
c4a16c52f3
Add section about PKG_CONFIG_PATH workaround on OSX.
2016-01-17 12:32:23 +01:00
Jürg Lehni
9282527dff
Update README to reflect the change to Gulp.
...
And restructure the gulp-file a bit to improve readability.
2016-01-17 12:28:20 +01:00
Jürg Lehni
bb20e3a4a7
Switch from Rimraf to Del for deleting in Gulp.
2016-01-17 05:16:58 +01:00
Jürg Lehni
9dec7a1a77
Bring back ascii_only option in uglifyjs, as it still seems to cause issues, e.g. in gulp test.
2016-01-17 04:40:29 +01:00
Jürg Lehni
d78d15998f
Update Travis-CI script to use Gulp.
2016-01-17 04:37:00 +01:00
Jürg Lehni
c8bc179928
Big refactoring of the build process, now entierly Gulp based.
2016-01-17 04:32:28 +01:00
Jürg Lehni
36cb88de4d
Write documentation for Project#addLayer() and #insertLayer()
...
Closes #903
2016-01-16 16:51:47 +01:00
Jürg Lehni
5a82a5d4b9
Switch to forked version of gulp-qunit that allows checking for leaked globals.
...
See https://github.com/jonkemp/gulp-qunit/issues/22
2016-01-16 16:41:49 +01:00
Jürg Lehni
7783ebeed1
Explain reasons for /* jshint */ statements.
...
And consistently name Prepro.js
2016-01-16 15:37:02 +01:00
Jürg Lehni
00d2002b6f
Follow convention for multi-line if-statements.
...
Relates to #907
2016-01-16 15:13:45 +01:00
Jürg Lehni
3a3d46692b
Give view proper Matrix transformation functions, just like on Item.
...
Relates to #832
2016-01-16 15:10:28 +01:00
Jürg Lehni
b3e81af9b6
Merge pull request #907 from iconexperience/getMonoCurves-performance-improvement
...
Improve performance of _getMonoCurves() by filtering more curves
2016-01-16 15:09:16 +01:00
iconexperience
5de9558533
Add performance improvement of _getMonoCurves() by filtering curves that have end points and control points sorted in y direction.
2016-01-16 15:05:49 +01:00
Jürg Lehni
7fa013092e
Define View#matrix, giving access to more fine-grained control over the view transformation.
...
Relates to #832
2016-01-16 14:25:11 +01:00
Jürg Lehni
2669d06642
Merge Item#_remove() and Layer#_remove().
...
And add Project#_changed(), so it can be called through #_getOwner().
2016-01-16 14:21:05 +01:00
Jürg Lehni
1e7faaa95f
Replace Project#addChild(), #insertChild() with #addLayer() and #insertLayer()
...
Also replace #_addToProject() with new #_insertItem() helper, and streamline all #_insertSibling() related methods.
Relates to #903
2016-01-16 13:56:01 +01:00
Jürg Lehni
f60c984746
Update JSDoc.
2016-01-16 00:14:41 +01:00
Jürg Lehni
7f51ceaa34
Throw exception if segments or curves of wrong paths are passed to smooth()
2016-01-16 00:07:29 +01:00
Jürg Lehni
1bc2d2fffe
Fix bug with mouse events in scripts without tools.
2016-01-15 23:45:58 +01:00
Jürg Lehni
884a0c54ad
Update JSDoc, and some minor documentation changes.
2016-01-15 23:42:20 +01:00
Jürg Lehni
16e42c68fd
Various minor documentation fixes (mainly capitalization).
2016-01-15 23:22:08 +01:00
Jürg Lehni
1e97b405ba
Finish documenting #smooth().
2016-01-15 20:14:56 +01:00
Jürg Lehni
80320431fe
Fix smoothing of ranges with negative indices.
2016-01-15 18:20:52 +01:00
Jürg Lehni
56e0048186
Add documentation for PathItem#smooth() and Segment#smooth()
...
Closes #338
2016-01-15 18:14:22 +01:00
Jürg Lehni
96c50abce2
Prevent exception when selecting not inserted segments.
2016-01-15 17:32:01 +01:00
Jürg Lehni
9f448a97ef
Use the correct notation in the new smooth() calls.
2016-01-15 17:25:15 +01:00
Jürg Lehni
31297c359a
Update JSDoc.
...
Now with proper Markdown support!
2016-01-15 17:21:49 +01:00
Jürg Lehni
6262863d9f
Use correct segment index boundaries in Path#smooth().
2016-01-15 16:35:48 +01:00
Jürg Lehni
34dc0e1589
Fix geometric and catmull-rom smooth on closed paths.
2016-01-15 12:10:43 +01:00
Jürg Lehni
af799976d4
Explicitly use continuous smooth in a couple of examples.
2016-01-15 11:29:31 +01:00
Jürg Lehni
aba6f03230
Further simplify continuous smooth code, and add support for original method, now called asymmetric.
...
For backward compatibility, we default to asymmetric for now, but will switch to continuous when hitting v1.0.0.
Relates to #338
2016-01-15 11:24:47 +01:00
Jürg Lehni
5440f96a77
Shorten new continuous smooth code.
2016-01-15 10:37:04 +01:00
Jürg Lehni
978aaf9f3b
Introduce Item flag to selectively activate on stroke-scaling on classes that support it.
...
Closes #721
2016-01-15 09:56:10 +01:00
Jürg Lehni
1563f69ce9
Layers should not be turning up in hit-tests.
...
Closes #608
2016-01-14 19:33:48 +01:00
Jürg Lehni
cd366982d6
Some minor improvements in handling of selectedItems.
2016-01-14 19:19:39 +01:00
Jürg Lehni
d9c9b3d1a2
Fix exceptions when a top-level layer is selected.
...
Getting the parent layer on a top-level layer returns null.
2016-01-14 19:19:14 +01:00
Jürg Lehni
c5ec9ae0b9
Prevent calling constructor methods on existing items again when using importJSON().
...
Resetting _children to new array would mess up up the code that keeps track of insertion and updateVersions.
Closes #785
2016-01-14 19:12:00 +01:00
Jürg Lehni
495cf9f7ce
Remove unused parameter.
2016-01-14 17:44:00 +01:00
Jürg Lehni
cf924512c0
Further streamline and improve tool mouse-event handling.
2016-01-14 14:16:20 +01:00
Jürg Lehni
e2723f0312
Make sure we really don't call preventDefault() if there's only a mousemove handler.
2016-01-14 12:42:33 +01:00
Jürg Lehni
5f44d814f5
Improve handling of previously focused view.
...
Make sure we switch back to the original one if there are multiple neighboring views.
2016-01-14 11:47:18 +01:00
Jürg Lehni
cee3959bfa
Improve handling of temporary view focus switch in mousemove.
...
Closes #841
2016-01-14 11:43:17 +01:00
Jürg Lehni
edcb2a3868
Handle mouseover events on unfocused views again.
2016-01-14 11:34:48 +01:00
Jürg Lehni
b8a1fbcd67
Implement new convention when to call event.preventDefault()
after mouse-events:
...
- If any of the handlers were called, except for mousemove events which need to call `event.preventDefault()` explicitly, or `return false;`.
- If this is a mousedown event, and the view or tools respond to mouseup.
2016-01-14 11:19:54 +01:00
Jürg Lehni
1a6bf972d5
A lot of fine-tuning and fixing to better handle touch scrolling.
...
Relates to #686
2016-01-14 10:59:14 +01:00
Jürg Lehni
d5f2ff479d
Further overhaul and streamline handling of view and tool mouse-events.
2016-01-14 02:08:33 +01:00
Jürg Lehni
0743f1b7b8
Various optimizations around Project#view.
2016-01-14 01:44:05 +01:00
Jürg Lehni
00a7588a3a
Allow any mouse handler to return true in order to enforce browser default.
...
Relates to #686
2016-01-13 19:04:03 +01:00
Jürg Lehni
0780a87429
Remove unnecessary overrides of selectstart dragstart on view.
...
And simplify DomEvent.add() / remove(), as we don't need support for multiple types in one entry anymore.
2016-01-13 18:04:54 +01:00
Jürg Lehni
8b0340e6df
Have View#_handleEvent() also return true if event is handled.
...
And use it to call preventDefault() if either tool or view handle events.
2016-01-13 17:53:39 +01:00