Commit graph

6321 commits

Author SHA1 Message Date
Jürg Lehni
d72db14c1f Switch to the paperjs.org version of rhill-voronoi-core.js 2016-01-27 11:56:26 +01:00
Jürg Lehni
d22104985d Fix spelling mistake. 2016-01-27 11:51:54 +01:00
Jürg Lehni
1888e7d64f Remove mention of paper-node.js from README. 2016-01-27 11:49:17 +01:00
Jürg Lehni
810428569a Some jshint related fixes. 2016-01-27 11:45:20 +01:00
Jürg Lehni
d92628a432 Make click and doubleclick events work on View. 2016-01-27 11:38:45 +01:00
Jürg Lehni
3276616f53 Introduce Item._itemHandlers to remove code redundancy. 2016-01-27 11:38:14 +01:00
Jürg Lehni
ed8a904b74 Some Curve._evaluateMethods related cleanup. 2016-01-27 11:37:12 +01:00
Jürg Lehni
849688833e Implement key events on View.
Closes #896
2016-01-27 11:36:39 +01:00
Jürg Lehni
0b991cefdd Only mark an image as loaded if it actually has src set and is complete. 2016-01-27 10:45:39 +01:00
Jürg Lehni
8391543115 Further improve Raster documentation. 2016-01-27 10:39:03 +01:00
Jürg Lehni
9cf912090c Implement Raster#_setImage() that doesn't trigger events.
For internal use / updates.
2016-01-27 10:33:01 +01:00
Jürg Lehni
26a64415a5 Document Raster#onLoad() and #onError() 2016-01-27 10:32:28 +01:00
Jürg Lehni
c5632d8a6a Improve documentation for event handlers on View and Item. 2016-01-27 10:27:14 +01:00
Jürg Lehni
52017340d2 Do not fire two subsequent mousedown events.
This should fix #922, but needs testing.
2016-01-27 09:53:09 +01:00
Jürg Lehni
caa93a51ca Improve handling of removeOn*() and filter out duplicate move events.
Closes #913
2016-01-27 09:48:20 +01:00
Jürg Lehni
ee4760afc4 Fix issue with zoomed retina canvases when repeatetly initializing same view canvas. 2016-01-27 09:38:57 +01:00
Jürg Lehni
e722be5b62 Add support for PDF canvas on Node.js again. 2016-01-27 09:34:37 +01:00
Jürg Lehni
86f6d8eccd Fix crash in unit tests. 2016-01-26 23:27:38 +01:00
Jürg Lehni
4af8999135 Clean up View#_handleFrame() 2016-01-26 22:35:46 +01:00
Jürg Lehni
b71ffdbe71 Remove all direct calls to view.update() and favor of the new view.requestUpdate()
Pure window.requestAnimationFrame() smoothness, automatic updates even when working directly from JavaScript, and no more slow-downs from onLoad events!

Closes #830, #925
2016-01-26 21:37:27 +01:00
Jürg Lehni
9ad63a7231 Merge branch 'unified-version' into develop 2016-01-26 21:06:54 +01:00
Jürg Lehni
5e69de3bd1 Restructure event handling on Raster item.
- Trigger #onLoad() events from Raster#setImage() also
- Add support for Raster#onError() handler
Closes #849 and #924
2016-01-26 21:06:36 +01:00
Jürg Lehni
4dd0099094 Fix some linting errors. 2016-01-26 20:33:42 +01:00
Jürg Lehni
3a8a7eff94 Update node-canvas version. 2016-01-26 20:33:33 +01:00
Jürg Lehni
d33fff31b8 Always access "global" constructors on window object now. 2016-01-26 20:33:19 +01:00
Jürg Lehni
77be5616b6 Include paper-core.js in load.js mechanism, and improve root folder guessing again. 2016-01-26 20:26:32 +01:00
Jürg Lehni
6a099003b2 Improve some comments about new file structure. 2016-01-26 20:14:49 +01:00
Jürg Lehni
e1a51f858a More work on unified version for browsers and node.
Relates to #739
2016-01-26 20:02:23 +01:00
Jürg Lehni
8b994ab640 Use paper.js indentation standard. 2016-01-26 17:02:08 +01:00
Jürg Lehni
87e6c0f2c3 Merge pull request #927 from sapics/minor-minifier
Simplify calculation in PathFitter
2016-01-26 17:00:02 +01:00
Jürg Lehni
a38834b81d Further refined code from 095cd47c1c 2016-01-26 16:59:27 +01:00
Jürg Lehni
b828c7733e Merge pull request #926 from sapics/minor-patch
Minor minification
2016-01-26 16:53:21 +01:00
Jürg Lehni
15797903cf Update to jsdom v7.2.2 with https://github.com/tmpvar/jsdom/pull/1366 back-portedd. 2016-01-26 16:51:40 +01:00
Jürg Lehni
7781ecb76a Some minor cleanups. 2016-01-26 16:29:13 +01:00
Jürg Lehni
46f415ca81 More work on source-map support for node.js
Relates to #656
2016-01-26 12:38:58 +01:00
Jürg Lehni
c479ec9272 Start with transition to unified version.
Relates to #739
2016-01-26 11:41:49 +01:00
sapics
e8137ccedb Simplify calculation in PathFitter 2016-01-26 19:34:27 +09:00
sapics
fc2c904850 Remove bower install from travis-ci 2016-01-26 12:08:19 +09:00
sapics
095cd47c1c Minifier matrix._transformCoordinates function 2016-01-26 12:07:34 +09:00
Jürg Lehni
1dcb19ec3b Implement jshint and watch task. 2016-01-25 11:35:15 +01:00
Jürg Lehni
89b3238385 Build and copy paper.js vesrion for docs.
And fix build issues introduced in previous commit: We do need a closure to create local name variables for the callback fucntions.
2016-01-25 11:26:08 +01:00
Jürg Lehni
d09459646d Move clear tasks to the task files they relate to. 2016-01-25 11:06:45 +01:00
Jürg Lehni
3a45d36224 Update JSDoc. 2016-01-25 10:53:09 +01:00
Jürg Lehni
1ae95999d5 Fix CompoundPath#insertChildren() when passing children lists from otheer items. 2016-01-24 17:59:39 +01:00
Jürg Lehni
82de56ea2c Render paper.js version number as part of the docs. 2016-01-23 19:48:41 +01:00
Jürg Lehni
79a6915a7e Move jsdoc-toolkit submodule to gulp/jsdoc 2016-01-23 19:23:43 +01:00
Jürg Lehni
fb9bdb4b39 Fetch all dev-dependencies NPM instead of Bower. 2016-01-23 19:01:38 +01:00
Jürg Lehni
eda738d4fa Split gulpfile.js into separate task files. 2016-01-23 18:26:56 +01:00
Jürg Lehni
145135b4f5 Give tracePaths() the capability to deal with open paths.
Relates to #912
2016-01-23 11:40:22 +01:00
Jürg Lehni
36e31eb250 Implement better handling of Raster#source and Raster#toDataURL() on Node.js
Closes #914
2016-01-22 17:05:50 +01:00