Jürg Lehni
|
e22fa3a664
|
Update copyright notice.
|
2014-01-04 01:47:16 +01:00 |
|
Jürg Lehni
|
8395541298
|
Clean up docs and fix spelling mistakes.
|
2013-12-29 15:44:26 +01:00 |
|
Jürg Lehni
|
f003cc05d7
|
Only start dragging if none of the mosedown events have stopped propagation.
|
2013-12-11 02:15:17 +01:00 |
|
Jürg Lehni
|
45f9fcd830
|
Fix item-level mousedrag events again.
|
2013-12-11 00:10:03 +01:00 |
|
Jürg Lehni
|
6e5d8939d5
|
Rename View#draw() -> View#update() and remove checkRedraw argument.
We always check for changes, since change propagation should work reliably.
|
2013-12-08 19:15:58 +01:00 |
|
Jürg Lehni
|
c75d48cf98
|
Fix comments.
|
2013-12-08 18:45:11 +01:00 |
|
Jürg Lehni
|
3263b91708
|
Start implementing mouse events on view.
Work in progress...
|
2013-12-06 22:26:48 +01:00 |
|
Jürg Lehni
|
2cfa329fa6
|
Completely rework event handling on view and tools.
Fixes multiple issues on iOS:
- mousedown events were sometimes fired twice.,
- the presence of mousedown handlers broke scrolling.
Closes #266.
|
2013-12-06 21:49:44 +01:00 |
|
Jürg Lehni
|
93d10983ee
|
Update to latest Prepro.js and switch from global options object to __options, to avoid name clashes.
|
2013-11-29 20:26:38 +01:00 |
|
Jürg Lehni
|
593e0d8d7f
|
Remove Base.merge() and use a new Straps.js feature instead.
A more clever Base() constructor that allows merging.
|
2013-11-28 22:20:00 +01:00 |
|
Jürg Lehni
|
78e4f3e1b2
|
Fix recently introduced issue with Node.js
|
2013-11-26 17:32:41 +01:00 |
|
Jürg Lehni
|
1f98d72c5b
|
Switch HiDPI on by default.
Allow deactivation by setting the hidpi attribute to "off" on the canvas.
|
2013-11-06 15:32:08 +01:00 |
|
Jürg Lehni
|
5439f6ba45
|
We need to take pixel ratio into account when directly blitting blend-modes onto canvas.
|
2013-11-06 13:11:54 +01:00 |
|
Jürg Lehni
|
8d7fc43de2
|
Implement proper support for HiDPI screens.
For performance reason optional for now, activated by setting the hidpi attribute on the canvas element.
|
2013-11-06 11:54:05 +01:00 |
|
Jürg Lehni
|
73fe0899ae
|
Improve exception when passing an invalid canvas.
|
2013-11-04 11:42:41 +01:00 |
|
Jürg Lehni
|
dba5a8a9e7
|
Deactivate Hi-DPI support for now.
|
2013-11-03 13:29:13 +01:00 |
|
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 |
|