Jonathan Puckey
|
61ecf44140
|
Fix spelling mistake in CanvasView#initialize. Closes #316.
|
2013-10-25 17:15:54 +02:00 |
|
Jürg Lehni
|
7285ec636a
|
Improve CanvasView constructor.
Support canvas / size arguments, but not both together, and throw exception if both fail.
|
2013-10-14 16:06:30 +02:00 |
|
Jürg Lehni
|
c68a7d33da
|
Switch from options.browser and options.node to options.environment
|
2013-10-10 23:09:00 +02:00 |
|
Jürg Lehni
|
d158056899
|
Optimise DomElement.getPrefixValue()
|
2013-10-10 16:40:46 +02:00 |
|
Jürg Lehni
|
22e13df102
|
Implement support for Hi-DPI canvas on Retina screens.
|
2013-10-10 16:31:24 +02:00 |
|
Jürg Lehni
|
6b19f25f4b
|
Fix typos in comments.
|
2013-08-08 15:21:35 -07:00 |
|
Jürg Lehni
|
3224876e6f
|
Use fire('frame') instead of onFrame(), to correctly handle frame events on Node.
|
2013-07-19 15:49:16 -07:00 |
|
Jürg Lehni
|
4f5dac8567
|
Improved PrePro to be able to dynamically load Node.js code too, and improve load.js to handle both environments.
Also moved PaperScript .pjs extension code to PaperScript, and DOM related Node.js code to dom/node.js
|
2013-06-27 13:49:04 -07:00 |
|
Jürg Lehni
|
a4535edbb9
|
Bring back _class names, since code minification breaks reliance on constructor.name.
Closes #248.
|
2013-06-23 20:18:32 -07:00 |
|
Jürg Lehni
|
6fa6c022c9
|
Rename options.server to options.node
|
2013-05-28 00:01:55 -07:00 |
|
Jürg Lehni
|
cd7db56249
|
Remove all create() constructors for basic types since new constructors are now faster.
Woop!
|
2013-05-27 23:57:31 -07:00 |
|
Jürg Lehni
|
4e6f52c20c
|
Remove need for _needsRedraw() calls by replacing it with a boolean flag.
|
2013-05-27 23:40:23 -07:00 |
|
Jürg Lehni
|
10d5de3ed6
|
Implement a better way to name and export class constructors.
This change also simplified the way classes are exported to PaperScope objects.
|
2013-05-27 12:48:58 -07:00 |
|
Jürg Lehni
|
369b329b23
|
Change straps.js to directly use initialize() as constructor function rather than redirecting calls to it.
Should yield some interesting performance improvements.
|
2013-05-27 09:11:50 -07:00 |
|
Jürg Lehni
|
8dbe1f4927
|
Fix issues with running paper.js in node.
We need to export the Object and Array definition into new context, to make Base.isPlainObject() work. See http://nodejs.org/api/vm.html#vm_globals
|
2013-05-08 18:17:23 -07:00 |
|
Jürg Lehni
|
52af99de6b
|
Fix issue with click events on items.
Closes #179.
|
2013-03-05 15:44:22 -08:00 |
|
Jürg Lehni
|
8185cc07e7
|
Clean up mouse-handling code and add support for Project#options.hitTolerance.
|
2013-03-05 15:44:03 -08:00 |
|
Jürg Lehni
|
701c5fd9e7
|
In case of doubleclick mouse events, still fire normal clicks if no doubleclick handler stops event bubbling.
|
2013-02-14 20:22:47 -08:00 |
|
Jürg Lehni
|
ca3cc7f46d
|
Define CanvasProvider.getContext() next to getCanvas(), and support both types in release().
|
2013-02-12 16:06:24 -08:00 |
|
Jürg Lehni
|
357b7dbc54
|
Shorten CanvasProvider method names.
|
2013-02-12 15:53:27 -08:00 |
|
Jürg Lehni
|
6c9c16ad3d
|
Update copyright information comments, and year.
|
2013-01-28 18:03:27 -08:00 |
|
Jürg Lehni
|
2218ca31f6
|
Fix support for double-click events.
Closes #90.
|
2012-12-17 22:22:58 +01:00 |
|
Jürg Lehni
|
4e1db6a1d1
|
Fix a row of documentation issues.
|
2012-11-06 13:35:50 -08:00 |
|
Jürg Lehni
|
2280c0cb94
|
Fix drawing of selected items in zoomed views.
|
2011-12-27 16:40:49 +01:00 |
|
Jürg Lehni
|
7b03dbedb9
|
Move stats update to onFrame handler.
|
2011-12-27 16:06:47 +01:00 |
|
Jürg Lehni
|
010209c70f
|
Pass on view matrix to Project#draw.
So selection drawing is not zoomed.
|
2011-12-20 11:41:23 +01:00 |
|
Jürg Lehni
|
b5e46971f0
|
Replace new Size(x, y) calls with internal Size.create(x, y).
|
2011-11-29 17:11:15 +01:00 |
|
Jürg Lehni
|
b9f6c99dcd
|
Add comments and clean up code.
|
2011-11-17 19:28:05 +01:00 |
|
Jürg Lehni
|
427cc21b3a
|
Fix a comment.
|
2011-11-17 00:06:21 +01:00 |
|
Jürg Lehni
|
1b484a2f7b
|
Implement MouseEvent#delta for Item#onMouseDrag and #onMouseMove.
|
2011-11-17 00:04:30 +01:00 |
|
Jürg Lehni
|
cf54b1a7c1
|
Change parameter sequence in mouse event code.
|
2011-11-16 23:47:51 +01:00 |
|
Jürg Lehni
|
9061daa935
|
Simplify event handling code.
|
2011-11-16 23:41:47 +01:00 |
|
Jürg Lehni
|
80d3763c39
|
Implement Item#onMouseDrag evnets, and have them silence #onMouseMove events if both are present.
|
2011-11-16 23:30:14 +01:00 |
|
Jürg Lehni
|
d066ad775d
|
Implement Item#onClick and #onDoubleClick.
|
2011-11-16 23:18:27 +01:00 |
|
Jürg Lehni
|
b3bf57c8e9
|
Implement Item#onMouseEnter / #onMouseLeave.
|
2011-11-16 22:59:39 +01:00 |
|
Jürg Lehni
|
8efc7ce7cd
|
Implement Item#onMouseUp events and work on #onMouseMove.
|
2011-11-16 22:41:22 +01:00 |
|
Jürg Lehni
|
57bd659023
|
Move Item base mouse handling code to CanvasView.
|
2011-11-16 13:12:41 +01:00 |
|
Jürg Lehni
|
1eff9741a4
|
Separate Canvas related code from View into CanvasView class.
|
2011-11-14 20:18:08 +01:00 |
|