Commit graph

2094 commits

Author SHA1 Message Date
Jürg Lehni
b3e1fa68b8 Always stop events when they are handled by our View, removing the need to specifically handle touch events on iOS. 2011-06-22 08:09:22 +01:00
Jürg Lehni
c2244be53b Remove View#viewBounds in favour of #viewSize, and have View always occupy the full canvas. 2011-06-22 07:56:16 +01:00
Jürg Lehni
1d9bad5d01 Define view.updateFocus(), to loop through all scopes and their views and set the focus on the first active one, and call it whenever the browser is scrolled. 2011-06-21 21:49:36 +01:00
Jürg Lehni
8002ede7bd Use DomElement.isVisible() check even if keepalive=true. 2011-06-21 21:48:51 +01:00
Jonathan Puckey
52175da3e9 Improve RoundedRectangles example. 2011-06-21 20:10:23 +02:00
Jonathan Puckey
115d12f6ce Add failing test where cloning a linked size throws an error. 2011-06-21 18:42:53 +02:00
Jonathan Puckey
bda60f1f90 Merge remote branch 'origin/master' 2011-06-21 14:54:53 +02:00
Jonathan Puckey
531e0bb203 Add Space example. 2011-06-21 14:54:29 +02:00
Jürg Lehni
aa202050d2 Merge remote-tracking branch 'origin/master'
Conflicts:
	src/ui/View.js
2011-06-21 01:01:59 +01:00
Jürg Lehni
fc32a6757a Always use View.focused in handlers without caching view locally, as it can be modified elsewhere. 2011-06-21 01:00:37 +01:00
Jonathan Puckey
2c2d636198 Merge remote branch 'origin/master' 2011-06-21 01:52:59 +02:00
Jonathan Puckey
a17dc4171a Fix bug where cloned items that were selected weren't appearing in the Project#selectedItems array. 2011-06-21 01:52:44 +02:00
Jürg Lehni
9ac63831d7 No need to call DomEvent.stop() in these handlers, as selectstart handles it all. 2011-06-21 00:42:39 +01:00
Jürg Lehni
e0f13dd3a0 Merge branch 'master' of github.com:scriptographer/paper.js 2011-06-21 00:38:19 +01:00
Jürg Lehni
8a285a7baa Handle mouse events that go outside the view / canvas, by only installing mousedown events on view and all others on document. 2011-06-21 00:38:11 +01:00
Jürg Lehni
8361f513ed Allow the optional overriding of target in DomEvent.getOffset(). 2011-06-21 00:37:26 +01:00
Jürg Lehni
f6fdbd349d Define DomEvent.stop() as a shortcut to stopPropagation() / preventDefault(). 2011-06-21 00:37:03 +01:00
Jonathan Puckey
4c306b9997 Add failing test where after cloning a selected item, it isn't added to the Project#selectedItems array. 2011-06-21 01:31:07 +02:00
Jonathan Puckey
3a9da3c0a0 Documentation: add class example to PointText. 2011-06-21 01:12:47 +02:00
Jonathan Puckey
b5cc2e9334 Merge remote branch 'origin/master' 2011-06-21 00:58:35 +02:00
Jonathan Puckey
2361556af6 TextItem related documentation. 2011-06-21 00:54:14 +02:00
Jonathan Puckey
ba7291700b Hide Style from documentation. 2011-06-21 00:49:42 +02:00
Jürg Lehni
909bb6310f Shorten RadialRainbows. 2011-06-20 22:54:45 +01:00
Jürg Lehni
7c423190d4 Merge remote-tracking branch 'origin/master' 2011-06-20 22:51:59 +01:00
Jürg Lehni
0fecbe50bc Define View#isVisible() and use it to only handle key events if the focused view is not hidden. 2011-06-20 22:51:39 +01:00
Jürg Lehni
65bfb091e1 Filter out invisible elements in DomElement.isVisible() check. 2011-06-20 22:51:05 +01:00
Jonathan Puckey
ac310ecc04 Fix RadialRainbows example. 2011-06-20 23:20:39 +02:00
Jürg Lehni
23a0db603f No need to set text fillColor to black anymore, as it's the default now. 2011-06-20 20:25:19 +01:00
Jürg Lehni
937a9def77 Override default fillColor to 'black' in CharacterStyle. 2011-06-20 20:25:02 +01:00
Jürg Lehni
54964907dd Change Base.merge so that it produces a new hash and merges all passed hashes into it in sequence. 2011-06-20 20:24:33 +01:00
Jürg Lehni
3aff54517e Add support for ChangeFlag notifications to Raster. 2011-06-20 20:13:24 +01:00
Jürg Lehni
ea9eacf578 Fix value of ChangeFlag.CLIPPING 2011-06-20 20:07:04 +01:00
Jürg Lehni
4c20b1ef3d Support rotations by multiples of 90 degrees too, as they can be applied correctly to rectangles. 2011-06-20 19:52:22 +01:00
Jürg Lehni
5e524a478e We need to process _bounds and _position outside of _transform() handling, since items without _transform() can still have cached values, e.g. Group. 2011-06-20 19:33:34 +01:00
Jürg Lehni
22736dc72d Clean up code. 2011-06-20 19:32:42 +01:00
Jürg Lehni
bc567f4d29 Improve shear() parameter naming. 2011-06-20 19:20:51 +01:00
Jürg Lehni
2f2b3ed7e0 Fix selection behavior when segment lists are cleared, in which case we expect the path to remain selected. 2011-06-20 19:08:34 +01:00
Jürg Lehni
8909216cc0 Remove use of characterStyle / paragraphStyle where not necessary. 2011-06-20 18:55:08 +01:00
Jürg Lehni
318ed69ad2 Remove use of characterStyle / paragraphStyle where not necessary. 2011-06-20 18:53:36 +01:00
Jürg Lehni
0a877adba7 Define tests for path.bounds and path.strokeBounds with different stroke styles. 2011-06-20 18:49:16 +01:00
Jürg Lehni
8fb97a973a Remove stats for now since it is not included in built library. 2011-06-20 18:36:03 +01:00
Jürg Lehni
5e39e60d51 Fix typo. 2011-06-20 18:34:51 +01:00
Jürg Lehni
582f8f84fb Remove debug logging. 2011-06-20 18:28:12 +01:00
Jürg Lehni
58425c6bd3 Merge remote-tracking branch 'origin/master' 2011-06-20 18:25:59 +01:00
Jürg Lehni
5b85d78faa Use Matrix#getRotation() to decide if we can transform cached _bounds and _position for perforamce improvements. 2011-06-20 18:25:49 +01:00
Jürg Lehni
c6135c6dc7 Define Matrix#getTranslation, #getScaling() and #getRotation(), as a way to extract translation, scale and rotation from matrices. 2011-06-20 18:25:19 +01:00
Jonathan Puckey
a2a8939d5d Path# rename #pointsToCurves to #simplify and #curvesToPoints to #flatten. 2011-06-20 19:17:07 +02:00
Jürg Lehni
322a427208 Flock: Use Symbol#place() instead. 2011-06-20 17:52:46 +01:00
Jürg Lehni
02408fc47e Flock example: Reuse prepared symbol definition. 2011-06-20 17:51:39 +01:00
Jürg Lehni
37f5a64dce Improve _bounds handling by introducing Item#_createBounds() that always uses LinkedRectangle class. 2011-06-20 17:34:43 +01:00