Jonathan Puckey
5d15c3dfef
Simplify ToolEvent#getModifiers() & small cleanup in Key.
2011-04-25 17:26:58 +02:00
Jonathan Puckey
1e4ae9afb4
Simplify ToolEvent#modifiers.
2011-04-25 12:05:18 +02:00
Jonathan Puckey
22bc08501e
Implement ToolEvent#modifiers.
2011-04-25 11:52:52 +02:00
Jürg Lehni
6d8379f885
Separate Events into Event and Element object, add a row of useful Element helper functions and define experimental Event.requestAnimationFrame().
2011-03-14 22:14:20 +01:00
Jonathan Puckey
df0c95e41f
Fix bug in Tool.js.
2011-03-09 16:51:50 +01:00
Jürg Lehni
6a67052090
Update copyright / licensing comments.
2011-03-08 01:41:50 +00:00
Jürg Lehni
6d8c7787bd
Export ToolEvent too.
2011-03-07 11:08:58 +00:00
Jürg Lehni
e1a7aff2f0
Add copyright notice and license file.
2011-03-07 00:50:44 +00:00
Jürg Lehni
342c5911c1
Add Events.getOffset(), to return coordinates relative to the target element's position.
2011-03-04 23:46:16 +00:00
Jürg Lehni
298dc912f3
Convert Tool to using new Events object instead of realing on full Bootstrap.
2011-03-04 23:32:46 +00:00
Jürg Lehni
702899b382
Fix a bug in #getFixedDistance() where equals was used on numbers (Java port left-over).
2011-03-04 19:16:25 +00:00
Jürg Lehni
92bf51a7cc
Simplify the way the paper namespace is created and populated.
2011-03-04 13:34:31 +00:00
Jonathan Puckey
81c5e0e4c8
Fix ToolHandler#getFixedDistance.
2011-03-04 12:20:53 +01:00
Jürg Lehni
6619447aa1
Convert ToolEvent type constants to Sg-style hyphenated lowercase strings.
2011-03-03 23:06:53 +00:00
Jürg Lehni
2b6dede883
Clean up white-spaces and line lengths.
2011-03-03 22:45:17 +00:00
Jürg Lehni
7e52355f93
Rename Doc -> Document since paper code is namespaced now and does not clash with global Document prototype.
2011-03-03 17:23:27 +00:00
Jürg Lehni
5ed30d7089
Make sure all files end on empty line.
2011-03-03 16:32:55 +00:00
Jürg Lehni
d088dc629e
Rename Paper to paper, implement it as an object literal and add paper.populate() and paper.install() methods that do the bootstraping.
2011-03-03 16:21:17 +00:00
Jürg Lehni
941c3c7346
Declare all classes as local variables, so they can be scoped.
2011-03-03 13:33:41 +00:00
Jonathan Puckey
14b8452bad
Fix mistakes in Tool.js
2011-02-28 19:29:32 +01:00
Jonathan Puckey
4fa293ec6d
Have Tool convert points from view coordinates to artwork coordinates.
2011-02-28 18:31:03 +01:00
Jonathan Puckey
22bccf3a31
Tool: Fix issue with onMouseMove being called while the user is dragging the mouse.
2011-02-26 13:00:55 +01:00
Jonathan Puckey
357a8af6ec
Clean up white spaces.
2011-02-21 03:32:39 +01:00
Jonathan Puckey
51ab66b0f8
Remove trailing comma in ToolEvent.
2011-02-20 21:22:31 +01:00
Jürg Lehni
c6b5b11b1e
Use dragstart event instead of mousedown, to go with drag and dragend.
2011-02-15 22:32:05 +00:00
Jonathan Puckey
24e93bcaf5
Tool#setDocument: remove mousemove functionality for now, since it is interfering with tool.fixedDistance.
...
Remove events when a tool has been attached to another document before.
When not passed a document in the constructor, use the global Paper.document.
Only redraw the document when the corresponding mousehandler exists.
2011-02-15 00:01:56 +01:00
Jonathan Puckey
3c22aedfbb
ToolEvent: fix small mistake.
2011-02-14 23:41:47 +01:00
Jonathan Puckey
4395caf41f
Tool: add support for Tool#onMouseMove(event) and add RoundedRectangles example
2011-02-14 22:43:14 +01:00
Jonathan Puckey
e36ea0c2e3
Tool: add support for Tool#eventInterval
2011-02-14 22:23:05 +01:00
Jonathan Puckey
a633b2a066
Tool: use dragend instead of mouseup, since mouseup is not fired when the mouse is released outside of the canvas area.
2011-02-14 20:08:19 +01:00
Jürg Lehni
7370326cb2
Add space after beans: true.
2011-02-13 18:52:17 +00:00
Jürg Lehni
08d4826441
Reformating code to follow Scriptotgrapher coding conventions.
2011-02-13 16:26:24 +00:00
Jonathan Puckey
c0e2101c32
Clean up src directory and move Bootstrap.js into lib.
2011-02-12 17:59:39 +01:00