Jürg Lehni
810428569a
Some jshint related fixes.
2016-01-27 11:45:20 +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
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
e1a51f858a
More work on unified version for browsers and node.
...
Relates to #739
2016-01-26 20:02:23 +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
Jürg Lehni
fb9bdb4b39
Fetch all dev-dependencies NPM instead of Bower.
2016-01-23 19:01:38 +01:00
Jürg Lehni
2ed9fae105
Fix issue with PaperScript compilation if no url is specified.
...
Also change a few related things:
- Move url in PaperScript#execute() into options object
- Document PaperScope#execute()
Closes #902
2016-01-17 17:32:23 +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
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
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
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
8639051081
More work and clean-up on JSHint compliance.
2016-01-09 12:05:42 +01:00
Jürg Lehni
f2ae7840cf
A lot of work on documentation.
...
- @values lists
- Improve event documentation
- Compound path
- etc.
2016-01-08 20:45:54 +01:00
Jürg Lehni
64f997a3bc
More work on JSHint compliance.
2016-01-08 20:32:52 +01:00
Jürg Lehni
b9c76f44e8
Convert "Note: " comments to "NOTE: " and do some cleanup.
2016-01-06 14:23:19 +01:00
Jürg Lehni
a7a07fb6d5
Update JSDoc and do some documentation spring-cleaning.
...
- Convert from {@code ...} to shorter `...`
- Reformat some documentation comment blocks
- Update copyright notices
2015-12-30 21:55:19 +01:00
Jürg Lehni
f2a44a5832
Remove Base#class again as it's causing issues in lookup tables.
2015-12-30 21:55:18 +01:00
Jürg Lehni
de532aac2f
Implement control over recursive iteration in #getItems()
...
Closes #853 .
2015-12-30 21:55:18 +01:00
Jürg Lehni
3314668a0c
Streamline mouse event handling between View and Item.
...
Consolidating code and making View#onMouseDown/Up/Move/... events work.
2015-10-14 16:25:36 +02:00
Jürg Lehni
247e80f569
Update to latest prepro.js with proper support for strings and scientific numbers.
2015-10-11 15:50:25 +02:00
Jürg Lehni
cf4e5c2983
Fix typo.
2015-09-06 15:30:38 +02:00
Jürg Lehni
824b0c7e7e
Remove legacy Color constructors.
2015-09-06 15:28:46 +02:00
Jürg Lehni
bae7fa435f
Some minor clean-ups for #593 .
2015-08-21 15:53:37 +02:00
Jürg Lehni
8f9e0f58fa
Merge pull request #593 from megawac/helpers
...
Helpers
2015-08-21 15:53:06 +02:00
Jürg Lehni
5f50372b02
More optimizations and clean up in Base.equals()
2015-08-21 15:42:19 +02:00
Jürg Lehni
4f17aa376d
Merge pull request #594 from megawac/equals
...
Refactor and optimize base equals
2015-08-21 15:36:51 +02:00
Jürg Lehni
27b7063fc4
To avoid possible duplicate browser requests for PaperScript files, support the data-src attribute as well as src.
...
Closes #749 .
2015-08-21 15:11:01 +02:00
Jürg Lehni
eb3628063c
Handle missing keyup events for keys pressed while Command key is down on Mac.
...
Closes #630 .
2015-08-21 13:56:44 +02:00
Oleg Elifantiev
70766c47d5
Fixed typo in word 'async'
2015-08-05 11:46:54 +03:00
Jürg Lehni
b541088c6f
A whole lot of documentation clean-up.
2015-06-16 17:50:37 +02:00
Jürg Lehni
b26c6221f1
Fix PaperScript increment operator in rare special case.
...
Closes #691 .
2015-06-15 23:43:03 +02:00
Jürg Lehni
572a51d2a7
Protect Emitter#emit() against handler list changes.
...
Closes #706 .
2015-06-15 20:03:13 +02:00
Jürg Lehni
6b428f5a37
Assume that Emiter#_evenTypes is not always defined.
...
Resolves https://github.com/paperjs/paper.js/pull/674#discussion_r30042363
2015-05-13 20:21:22 +02:00
Jürg Lehni
75c6db6986
Merge pull request #674 from rumman23/670-custom-events
...
custom events
2015-05-13 18:14:08 +02:00
Jürg Lehni
111d5c8f66
Merge pull request #681 from hackalyze/load-scripts-synchronously
...
Fix paperscript source from being executed out-of-order
2015-05-11 19:57:47 +02:00
Jürg Lehni
27bb8a356f
Implement unique ids, and fix issue with Base.deserialize()
...
Gradient and Symbol were overriding each other in the dictionary, and dictionary entries could not contain references to other dictionary entries.
Closes #690
2015-05-11 19:39:39 +02:00
Chris Pawlukowsky
2ede4f0a6b
It was possible for loadAll to execute paperscript source in a different order from the order the script tags appear in the HTML. This is due to the script source being retrieved asynchronously in loadScript in the call to Http.request. This fix retrieves paperscript source synchronously unless the HTML5 async attribute is included on the script element.
2015-04-18 10:23:44 -04:00
rumman
8b24a33b17
unregistered events enabled in emitter
2015-04-07 22:33:48 +02:00
Jürg Lehni
48bc34b21f
Filter out deserialized dictionary in Base.deserialize()
...
Closes #637
2015-02-28 19:03:03 +01:00
Jonathan Puckey
3b70fcd603
Fix mistake in PaperScript reference - thanks to paperjs/paperjs.github.io/pull/5
2015-02-24 18:35:28 +01:00
Jonathan Puckey
809c41b1cf
Merge pull request #591 from ponychicken/detectAtomShell
...
Browser detection: Add Atom shell
2015-01-21 14:57:15 +01:00
Jürg Lehni
b816337e18
Remove legay.js since we're about to hit 2015.
...
Closes #592
2014-12-26 06:21:56 +01:00
Jürg Lehni
4d6f5c259c
Remove non-breaking space.
...
Closes #602 .
2014-12-17 20:07:14 -08:00
Graeme
4837df715f
Use keys loop in serialize
2014-12-13 12:05:42 -05:00
Graeme
65df4d079e
Refactor and optimize base equals
2014-12-13 11:59:37 -05:00
Graeme
c6208db025
Refactor Base._set
2014-12-13 11:47:03 -05:00