Jürg Lehni
|
a1196c9f74
|
Change focusing behavior: Try getting the view from the current event target in mousemove event, and temporarily focus views so keyboard events are handled too.
|
2011-06-22 08:29:53 +01:00 |
|
Jürg Lehni
|
07cfaf8662
|
Rename DomEvent.getElement() -> getTarget().
|
2011-06-22 08:27:51 +01:00 |
|
Jürg Lehni
|
725499dc2e
|
Only change focus if none is set or if the current view is invisible.
|
2011-06-22 08:10:54 +01:00 |
|
Jürg Lehni
|
8cb6169249
|
Produce ids for View canvases without one and link to views by id.
|
2011-06-22 08:10:17 +01:00 |
|
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 |
|
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
|
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
|
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 |
|
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
|
318ed69ad2
|
Remove use of characterStyle / paragraphStyle where not necessary.
|
2011-06-20 18:53:36 +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
|
37f5a64dce
|
Improve _bounds handling by introducing Item#_createBounds() that always uses LinkedRectangle class.
|
2011-06-20 17:34:43 +01:00 |
|
Jürg Lehni
|
8b66c4fa83
|
Remove flags parameter in Item#transform() for now.
|
2011-06-20 17:03:43 +01:00 |
|
Jürg Lehni
|
266c78f4eb
|
Add a bit more documentation to the Color owner stuff.
|
2011-06-20 17:00:11 +01:00 |
|
Jürg Lehni
|
4e3aa3e5c5
|
Move all Style classes into their own folder.
|
2011-06-20 16:38:01 +01:00 |
|
Jürg Lehni
|
995c5b4081
|
Fix error in miter calculation in Path#getStrokeBounds(), recently introduced by a fix in Curve#getNormal().
|
2011-06-20 15:56:08 +01:00 |
|
Jürg Lehni
|
9b9810faf3
|
Define Base.merge() and use it to merge _defaults in CharacterStyle.
|
2011-06-20 15:28:50 +01:00 |
|
Jürg Lehni
|
456bf7f2a9
|
Move more getter / setter injection functionality from PathStyle to Style, to be shared among all Style classes.
|
2011-06-20 15:21:42 +01:00 |
|
Jürg Lehni
|
a7e57ada88
|
Big refactoring of the way Style objects are linked to their owning classes, implemented in a way that works across all sub classes.
|
2011-06-20 14:58:48 +01:00 |
|
Jürg Lehni
|
a45340d20f
|
Revert previous change since arguments.length is wrong when parameters are undefined when using Function#call.
|
2011-06-20 14:37:09 +01:00 |
|
Jürg Lehni
|
c1fcd6f3bb
|
Documentation: Convert more Array return types to Type[].
|
2011-06-20 14:27:54 +01:00 |
|
Jürg Lehni
|
5ce49e6f8f
|
Merge remote-tracking branch 'origin/master'
|
2011-06-20 14:26:05 +01:00 |
|
Jürg Lehni
|
2c68e7e58f
|
Use faster Function#call() when arguments are clear.
|
2011-06-20 14:25:27 +01:00 |
|
Jonathan Puckey
|
e23282fe05
|
Documentation: convert Array return types to Type[].
|
2011-06-20 15:19:08 +02:00 |
|
Jürg Lehni
|
d60b739ae2
|
Remove comas.
|
2011-06-20 14:14:08 +01:00 |
|
Jürg Lehni
|
55724b0e29
|
Move defaults handling fully to Style base class.
|
2011-06-20 14:10:37 +01:00 |
|
Jürg Lehni
|
f064886c67
|
Introduce Style as a base class for all Style classes, and move the definition of create() there.
|
2011-06-20 13:56:49 +01:00 |
|
Jürg Lehni
|
b9ebd12d22
|
Improve documentation of added Base methods.
|
2011-06-20 13:56:08 +01:00 |
|
Jürg Lehni
|
08571fd399
|
Add comments.
|
2011-06-20 00:03:15 +01:00 |
|
Jürg Lehni
|
3a232b305e
|
Implement _changed() mechanism in Color, by having Colors know which items they are defining styles for, through an internal _owners list.
|
2011-06-20 00:00:02 +01:00 |
|
Jürg Lehni
|
af0e5a07b7
|
Add getter/setter for TextItem#content and use Change.CONTENT to notify of changes.
|
2011-06-19 23:28:41 +01:00 |
|
Jürg Lehni
|
ad04db85aa
|
Move over content handling from PointText to TextItem.
|
2011-06-19 23:23:52 +01:00 |
|
Jürg Lehni
|
c8a1bf4fce
|
Have views redrawn in keyboard handlers if content has changed.
|
2011-06-19 23:17:55 +01:00 |
|
Jürg Lehni
|
6f816e1151
|
Fix _redrawNotified mechanism.
|
2011-06-19 23:14:36 +01:00 |
|
Jürg Lehni
|
bf73369423
|
Pass true for checkRedraw in View#draw() everywhere.
|
2011-06-19 23:05:39 +01:00 |
|
Jürg Lehni
|
596cc8f83b
|
Implement #_needsRedraw() mechanism in PaperScope and Project, to notify Views of redraws required by changes in appearance.
|
2011-06-19 23:03:18 +01:00 |
|
Jürg Lehni
|
25b31b6b7d
|
Remove deprecated Project#redraw().
|
2011-06-19 23:02:25 +01:00 |
|
Jürg Lehni
|
2bf070415d
|
Have Tool#onHandleEvent() report back if a callback was called or not, and use that to decide if View#draw() should be called, passing true as the to be implemented checkRedraw parameter.
|
2011-06-19 23:02:02 +01:00 |
|
Jürg Lehni
|
7a90f9260e
|
Have subclasses of Item call the base version of _changed().
|
2011-06-19 22:40:49 +01:00 |
|
Jürg Lehni
|
a50f6a23ac
|
Add comment.
|
2011-06-19 22:36:41 +01:00 |
|
Jürg Lehni
|
2b63aefc09
|
Add ChangeFlag.CLIPPING and use it for proper clip mask caching in Group.
|
2011-06-19 22:36:04 +01:00 |
|
Jürg Lehni
|
0df909dd71
|
Rename ChangeFlags -> ChangeFlag.
|
2011-06-19 22:21:14 +01:00 |
|
Jürg Lehni
|
f0bc3f115b
|
Have all visual changes include ChangeFlags.APPEARANCE.
|
2011-06-19 22:20:28 +01:00 |
|
Jürg Lehni
|
bfe229ae14
|
Use #addChildren() instead of #setChildren() in Group constructor.
|
2011-06-19 22:05:31 +01:00 |
|
Jürg Lehni
|
2594a41b7d
|
Remove the mention of optional parameters in documentation, as they are marked optional already.
|
2011-06-19 21:52:52 +01:00 |
|
Jürg Lehni
|
1e436b2980
|
Use typed array in documentation.
|
2011-06-19 21:50:10 +01:00 |
|
Jürg Lehni
|
cb61e8d452
|
Implement rest of ChangeFlags.HIERARCHY notifications.
|
2011-06-19 21:49:26 +01:00 |
|
Jürg Lehni
|
fe7c618deb
|
Define Item#addChildren() / #insertChildren() and adjust documentation a bit.
|
2011-06-19 21:48:36 +01:00 |
|
Jürg Lehni
|
bf627d9d9c
|
Remove all beans: true settings.
|
2011-06-19 18:54:41 +01:00 |
|
Jürg Lehni
|
7d2f10f22b
|
Rename private move() -> insert(), to reflect recent name changes.
|
2011-06-19 18:50:23 +01:00 |
|
Jürg Lehni
|
bbcec27031
|
Move support for _bounds caching to Item and start using it in PlacedSymbol.
|
2011-06-19 18:07:53 +01:00 |
|
Jürg Lehni
|
7ca9bcf38a
|
Further shorten #_getBounds() code.
|
2011-06-19 17:47:20 +01:00 |
|
Jürg Lehni
|
82ef06212b
|
Shorten #_getBounds() code.
|
2011-06-19 17:46:39 +01:00 |
|
Jürg Lehni
|
f474bd9085
|
No need to redefine deprecated #moveAbove()/Below(), since they're redirecting to #insertAbove()/Below().
|
2011-06-19 17:33:28 +01:00 |
|
Jürg Lehni
|
812d3fb366
|
Rename #_removeFromParent() -> #_remove().
|
2011-06-19 17:32:43 +01:00 |
|
Jürg Lehni
|
4eb6d78f1f
|
Have #_removeFromParent() handle deselection and change notification.
|
2011-06-19 17:30:47 +01:00 |
|
Jürg Lehni
|
9d2f8c5035
|
Only call _changed() if selection actually changes.
|
2011-06-19 16:47:24 +01:00 |
|
Jürg Lehni
|
eb73c55736
|
Use Item#remove() instead of calling #setSelected(false) and #_removeFromParent().
|
2011-06-19 16:13:38 +01:00 |
|
Jürg Lehni
|
2fe274741a
|
Assume that _index is always correct and do not check for Base.splice() result in remove functions.
|
2011-06-19 16:08:51 +01:00 |
|
Jonathan Puckey
|
d13e9bbaa1
|
Replace accidental beans access in Item#setBounds with corresponding getters.
|
2011-06-19 03:28:27 +02:00 |
|
Jonathan Puckey
|
7285d6fc85
|
Implement Item#fitBounds(rectangle, fill), which transforms the item so that its bounding rectangle fits within the specified rectangle, without changing its aspect ratio.
|
2011-06-19 03:26:51 +02:00 |
|
Jonathan Puckey
|
c5f3e98abb
|
Item: remove trailing comma.
|
2011-06-19 01:40:34 +02:00 |
|
Jonathan Puckey
|
eecebdb831
|
Item: fix problem with #children docs.
|
2011-06-18 17:40:50 +02:00 |
|
Jonathan Puckey
|
f26a9a2327
|
Item: document #dashArray & #dashOffset.
|
2011-06-17 21:04:32 +02:00 |
|
Jonathan Puckey
|
6f41aaf217
|
PathStyle: document #dashOffset & #dashArray.
|
2011-06-17 20:55:12 +02:00 |
|
Jürg Lehni
|
fe416e294d
|
Fix issue with a path not being selected when one of its segment is selected directly.
|
2011-06-17 19:00:41 +01:00 |
|
Jürg Lehni
|
ca16e43c1f
|
Implement getters / setters for #locked, #visible, #blendMode and #opacity, and call _changed() from setters.
|
2011-06-17 18:53:34 +01:00 |
|
Jürg Lehni
|
3226147e00
|
Use a version of Bootstrap that always produces beans and remove all beans: true instructions.
|
2011-06-17 18:42:29 +01:00 |
|
Jürg Lehni
|
7bd571de17
|
Remove obsolete comment.
|
2011-06-17 18:09:15 +01:00 |
|
Jürg Lehni
|
b4f052a64b
|
Improve Item documentation.
|
2011-06-17 18:04:00 +01:00 |
|
Jürg Lehni
|
5d13d3a40d
|
Add from/to parameters to Item#removeChildren() and improve documentation.
|
2011-06-17 17:55:30 +01:00 |
|
Jürg Lehni
|
5bc4f69856
|
Improve documentation for Path#removeSegments().
|
2011-06-17 17:54:37 +01:00 |
|
Jürg Lehni
|
7dcdb5ca2f
|
Improve documentation for Path#removeSegments().
|
2011-06-17 17:46:42 +01:00 |
|
Jürg Lehni
|
ee0446fa4f
|
Implement #insertAbove/Below using the new #insertChild, allowing the removal of one injection scope, and rearrange function sequence for documentation.
|
2011-06-17 17:35:26 +01:00 |
|
Jürg Lehni
|
85c5e2a7eb
|
Item#insertChild(): Only remove from parent if we're actually inserting the item in the new location.
|
2011-06-17 16:56:04 +01:00 |
|
Jürg Lehni
|
6f4a9d5c7b
|
Merge branch 'master' of github.com:scriptographer/paper.js
Conflicts:
test/tests/Item.js
|
2011-06-17 16:36:58 +01:00 |
|
Jürg Lehni
|
f0664f50e6
|
Start implementing ChangeFlags.ATTRIBUTE and ChangeFlags.APPEARANCE.
|
2011-06-17 16:34:01 +01:00 |
|
Jürg Lehni
|
38de43c612
|
Fix issue with #setName() introduced in recent commit.
|
2011-06-17 16:32:47 +01:00 |
|
Jonathan Puckey
|
ea9c9353e3
|
Merge branch 'master' of https://github.com/scriptographer/paper.js
|
2011-06-17 16:59:42 +02:00 |
|
Jonathan Puckey
|
e6ac8af3aa
|
Improve Item#children documentation.
|
2011-06-17 16:59:24 +02:00 |
|
Jonathan Puckey
|
6fc08c6417
|
Item: implement #addChild(item), #insertChild(index, item), #insertAbove(item) and #insertBelow(item) Deprecate: #moveAbove, #moveBelow, #appendTop, #appendBottom.
|
2011-06-17 16:58:41 +02:00 |
|
Jürg Lehni
|
503a031bdf
|
Allow CompoundPath to have named children.
|
2011-06-17 14:11:37 +01:00 |
|
Jürg Lehni
|
87df7eb1f9
|
Change handling of clipping by always drawing clip-masks first, no matter where they are in the sequence.
|
2011-06-17 14:05:37 +01:00 |
|
Jürg Lehni
|
f4d15200ee
|
Remove Group#_clipped and solely use Item#_clipMask to handle clipping internally.
|
2011-06-17 13:56:02 +01:00 |
|
Jürg Lehni
|
30087d046a
|
Fix a bug where after renaming items, old name references where still laying around.
|
2011-06-17 13:29:47 +01:00 |
|
Jürg Lehni
|
1615b50b68
|
Fix thrown Error messages.
|
2011-06-17 11:26:35 +01:00 |
|
Jürg Lehni
|
6e16ab81f4
|
Fix a bug in Path#arcTo() where sometimes the arc was drawn on the wrong side when the extent was 180 degrees, thus the center point was lying on the line (from, to).
|
2011-06-16 23:50:14 +01:00 |
|
Jürg Lehni
|
169b58e550
|
Fix argument reading for PathItem#arcTo(to, clockwise).
|
2011-06-16 23:48:46 +01:00 |
|
Jürg Lehni
|
8d49d2377b
|
Fix documentation for PathItem#smooth().
|
2011-06-16 23:37:45 +01:00 |
|
Jürg Lehni
|
c2d425c916
|
Improve Error message thrown when no arc can be drawn.
|
2011-06-16 22:50:59 +01:00 |
|
Jürg Lehni
|
6e7d23faa4
|
Improve #arcTo() documentation.
|
2011-06-16 22:38:58 +01:00 |
|
Jürg Lehni
|
2c83eeb7de
|
Improve handling of Path#arcTo() when the arguments demand an infinitely big circle, by either drawing a line or bailing out.
|
2011-06-16 22:38:43 +01:00 |
|
Jürg Lehni
|
aa825302e4
|
Clean up documentation for PathItem, Path & CompoundPath, by moving shared documentation to PathItem, for methods that are supposed to be abstract in PathItem and shared between the two classes.
|
2011-06-16 22:07:00 +01:00 |
|
Jürg Lehni
|
cb463b74f5
|
Fix @extends tags in documentation: Only the immediately following class is required.
|
2011-06-16 21:43:31 +01:00 |
|
Jürg Lehni
|
bcff3932b6
|
Have ToolEvent extend Event and move #modifiers documentation there.
|
2011-06-16 21:20:30 +01:00 |
|
Jürg Lehni
|
38003b6818
|
Clean up documentation: Always use @function / @name when there is more than one version of a method.
|
2011-06-16 19:26:50 +01:00 |
|
Jürg Lehni
|
f3f49a34c6
|
Fix documentation so PaperScope#version shows up too in global scope.
|
2011-06-15 11:09:35 +01:00 |
|
Jürg Lehni
|
08bbff790d
|
Improve PaperScope documentation.
|
2011-06-14 23:05:12 +01:00 |
|
Jürg Lehni
|
d90e0ec07e
|
Define paper.version.
|
2011-06-14 23:04:59 +01:00 |
|
Jürg Lehni
|
9deabbee8d
|
Start adding documentation to PathItem.
|
2011-06-14 23:04:32 +01:00 |
|
Jürg Lehni
|
2ec34512d1
|
Ignore all documentation that caused warnings about leakage.
|
2011-06-14 23:02:34 +01:00 |
|
Jürg Lehni
|
401c4d5dc4
|
Rearrange @constructor documentation sequence.
|
2011-06-14 23:01:35 +01:00 |
|
Jürg Lehni
|
ffa79f4fd1
|
Clean up white spaces in comments.
|
2011-06-14 22:59:45 +01:00 |
|
Jürg Lehni
|
a7d22b2165
|
Add comment about porting back Path#arcTo().
|
2011-06-14 21:32:14 +01:00 |
|
Jürg Lehni
|
8213dce4a9
|
Have newly added segments selected if path was fully selected before.
|
2011-06-14 15:40:03 +01:00 |
|
Jürg Lehni
|
a32b687bfd
|
Bigger refactoring of handling of segment selection: Have Path#_selectedSegmentState be the summed up value of all Segment's states, and compare it to segments.length * SelectionState.POINT in #fullySelected.
|
2011-06-14 15:37:25 +01:00 |
|
Jürg Lehni
|
e670c262c3
|
Simplify code.
|
2011-06-14 15:36:01 +01:00 |
|
Jürg Lehni
|
c4b3d1c82a
|
Define default value for Item#_selected and copy it over when item is cloned.
|
2011-06-14 15:35:39 +01:00 |
|
Jürg Lehni
|
2679d6eb9e
|
Clean up Item#selected code.
|
2011-06-14 13:31:03 +01:00 |
|
Jürg Lehni
|
ad78474ae4
|
Remove obsolete TODO.
|
2011-06-14 12:46:15 +01:00 |
|
Jürg Lehni
|
50bc64779f
|
Handle special case of infinitely big circle in Path#arcTo(), by cheating using an approximation of a really big circle.
|
2011-06-14 12:45:37 +01:00 |
|
Jürg Lehni
|
c85ddf2abe
|
Fix a porting error in Line#getSide().
|
2011-06-14 12:27:37 +01:00 |
|
Jürg Lehni
|
44670ebdd9
|
Merge remote-tracking branch 'origin/master'
|
2011-06-14 12:19:25 +01:00 |
|
Jürg Lehni
|
2be18b8013
|
Completely rewrite Path#arcTo() using Point class and vector geometry methods.
|
2011-06-14 12:19:14 +01:00 |
|
Jonathan Puckey
|
b55bb1b942
|
Merge branch 'master' of github.com:scriptographer/paper.js
|
2011-06-14 12:24:34 +02:00 |
|
Jonathan Puckey
|
41feaebb4e
|
Fix Group clipping and ignore Item#clipMask in the documentation for now.
|
2011-06-14 12:15:46 +02:00 |
|
Jürg Lehni
|
0cda1aa9dd
|
Fix Point#getDirectedAngle, which was measured the wrong way round, and could be optimised using Math.atan2().
|
2011-06-14 11:14:26 +01:00 |
|
Jürg Lehni
|
8d0bb3d2ae
|
Path#arcTo(): Fix wrong constant names.
|
2011-06-14 09:32:53 +01:00 |
|
Jürg Lehni
|
b4a210e113
|
Path#arcTo(): Fix the case where through point lies on a line between from and to point.
|
2011-06-14 09:12:18 +01:00 |
|
Jürg Lehni
|
f0c22bc1dc
|
Shorten pre-calculations in Path#arcTo().
|
2011-06-14 09:00:55 +01:00 |
|
Jürg Lehni
|
f6b2672f08
|
Simplify Path#arcTo() arguments check.
|
2011-06-14 09:00:25 +01:00 |
|
Jürg Lehni
|
bac579d85b
|
Use a different strategy to determine canvas size for invisible canvases.
|
2011-06-14 00:20:58 +01:00 |
|
Jürg Lehni
|
eec7209a5c
|
Define DomElement.isInvisible(), to check if the given element is not displaying.
|
2011-06-14 00:20:27 +01:00 |
|
Jürg Lehni
|
a3d1875971
|
More clean ups.
|
2011-06-13 19:09:10 +01:00 |
|
Jürg Lehni
|
de739b42a8
|
Clean up white spaces.
|
2011-06-13 19:05:17 +01:00 |
|
Jürg Lehni
|
064f17eaec
|
Fix default value for end in Path#removeSegments(), so the last segment gets removed too.
|
2011-06-13 19:00:39 +01:00 |
|
Jonathan Puckey
|
e23ac6809b
|
Color docs: add class introduction and examples.
|
2011-06-13 17:13:23 +02:00 |
|
Jonathan Puckey
|
2e6101a9b3
|
Rectangle: add code examples.
|
2011-06-13 17:13:07 +02:00 |
|
Jonathan Puckey
|
10de921a83
|
Docs: Use classexample tags in Point, Size and Rectangle.
|
2011-06-13 17:12:23 +02:00 |
|
Jürg Lehni
|
4a23e35eee
|
Merge remote-tracking branch 'origin/master'
|
2011-06-12 18:42:24 +01:00 |
|
Jürg Lehni
|
c341ec220a
|
Fix white space.
|
2011-06-12 18:40:30 +01:00 |
|
Jürg Lehni
|
065777291e
|
Fix filtering of duplace points in path fitting code.
|
2011-06-12 18:40:24 +01:00 |
|
Jonathan Puckey
|
d2c031aa4e
|
Documentation: improve View#onFrame example.
|
2011-06-10 14:21:27 +02:00 |
|
Jonathan Puckey
|
9b1812f7d8
|
Documentation: fix type of View#bounds.
|
2011-06-10 14:13:55 +02:00 |
|
Jonathan Puckey
|
68193d8a98
|
Documentation: Add examples to RGBColor / GrayColor / HSBColor constructors.
|
2011-06-10 14:12:33 +02:00 |
|
Jonathan Puckey
|
a48a8d7a8d
|
Document TextItem#content.
|
2011-06-10 14:05:58 +02:00 |
|
Jonathan Puckey
|
7591ccf285
|
Improve Project#currentStyle documentation.
|
2011-06-10 13:44:30 +02:00 |
|
Jonathan Puckey
|
94fa73bf2f
|
Documentation: improve wording in Item#clone() example.
|
2011-06-10 13:34:58 +02:00 |
|
Jonathan Puckey
|
344034cb62
|
Documentation: clean up Item#blendMode types.
|
2011-06-10 13:34:20 +02:00 |
|
Jonathan Puckey
|
20fc389020
|
Documentation: add see tag to Path#closePath().
|
2011-06-10 13:33:14 +02:00 |
|
Jonathan Puckey
|
87c1b564d2
|
Document Path#lineBy(vector).
|
2011-06-10 13:32:37 +02:00 |
|
Jonathan Puckey
|
ac703f1baa
|
Path: add example of pointToCurves().
|
2011-06-10 00:07:25 +02:00 |
|
Jonathan Puckey
|
1bca7f4795
|
Adjust GradientColor example.
|
2011-06-09 23:27:11 +02:00 |
|
Jonathan Puckey
|
d688faf805
|
Merge remote branch 'origin/master'
|
2011-06-09 23:21:21 +02:00 |
|
Jonathan Puckey
|
a880396d26
|
Add example code to GradientColor & GradientStop.
|
2011-06-09 23:21:06 +02:00 |
|
Jürg Lehni
|
0567d0a5f9
|
Documentation: Fix typo.
|
2011-06-08 18:47:34 +01:00 |
|
Jürg Lehni
|
928b7df01e
|
Fix typo introduced in previous refactoring.
|
2011-06-06 17:18:22 +01:00 |
|
Jürg Lehni
|
d5e7ca9f5e
|
Improve explanatory comments.
|
2011-06-06 11:44:15 +01:00 |
|
Jürg Lehni
|
046f9cef6e
|
Add comments.
|
2011-06-05 23:14:36 +01:00 |
|
Jürg Lehni
|
2fe21586df
|
Further simplifications of path fitter code.
|
2011-06-05 23:14:28 +01:00 |
|
Jürg Lehni
|
3a4af3f854
|
Rename variables forgotten in previous refactoring.
|
2011-06-05 23:13:45 +01:00 |
|
Jürg Lehni
|
b035077d31
|
Simplify code.
|
2011-06-05 23:00:33 +01:00 |
|
Jürg Lehni
|
9e25047b91
|
Further clean ups.
|
2011-06-05 22:09:19 +01:00 |
|
Jürg Lehni
|
68eb14c00d
|
Clean up code.
|
2011-06-05 22:06:24 +01:00 |
|
Jürg Lehni
|
10e1417dc2
|
Check for denominator == 0 with tolerance.
|
2011-06-05 21:59:42 +01:00 |
|
Jürg Lehni
|
0366752a6f
|
Merge remote-tracking branch 'origin/master'
|
2011-06-05 21:56:17 +01:00 |
|
Jürg Lehni
|
73a188742e
|
Fix bug in singularity check.
|
2011-06-05 21:56:04 +01:00 |
|
Jürg Lehni
|
ee7147d58e
|
Rename forgotten variables in previous refactoring.
|
2011-06-05 21:51:01 +01:00 |
|
Jonathan Puckey
|
b385b859f9
|
Merge remote branch 'origin/master'
|
2011-06-05 22:46:22 +02:00 |
|
Jürg Lehni
|
6ea63fde43
|
Handle case of nearly singular matrix separately.
|
2011-06-05 21:45:29 +01:00 |
|
Jürg Lehni
|
27c7248a2d
|
Clean up and shorten code.
|
2011-06-05 21:44:34 +01:00 |
|
Jonathan Puckey
|
d2759c2371
|
Improve Segment constructor example.
|
2011-06-05 22:44:32 +02:00 |
|
Jonathan Puckey
|
9d4afcfe9c
|
Add another Path#add example.
|
2011-06-05 22:44:01 +02:00 |
|
Jonathan Puckey
|
5513687daa
|
Add Path#smooth examples.
|
2011-06-05 22:43:36 +02:00 |
|
Jürg Lehni
|
12e770c032
|
Merge remote-tracking branch 'origin/master'
|
2011-06-05 21:32:10 +01:00 |
|
Jürg Lehni
|
bcb5df9f04
|
Clean up.
|
2011-06-05 21:31:58 +01:00 |
|
Jürg Lehni
|
ca18b20785
|
Remove Douglas–Peucker algorithm again since it produced ackward results.
|
2011-06-05 21:29:19 +01:00 |
|
Jürg Lehni
|
42f5b5e26e
|
Implement Douglas–Peucker algorithm for point reduction before the curve fitting.
|
2011-06-05 21:28:49 +01:00 |
|
Jürg Lehni
|
aef8dcf2d3
|
Check for determinant singularity and handle separately.
|
2011-06-05 21:27:24 +01:00 |
|
Jürg Lehni
|
7d2742cd94
|
Rename PathFitter#process() -> #fit().
|
2011-06-05 21:26:01 +01:00 |
|
Jürg Lehni
|
4854e56e1d
|
Filter out adjacent duplicate points.
|
2011-06-05 21:25:38 +01:00 |
|
Jürg Lehni
|
df29ef2d2c
|
Define Line#getDistance(point).
|
2011-06-05 21:24:38 +01:00 |
|
Jonathan Puckey
|
fe901fa96b
|
Add to and improve Path documentation.
|
2011-06-05 22:02:30 +02:00 |
|
Jürg Lehni
|
28c680ac94
|
Implement PathFitter and Path#pointsToCurves().
|
2011-06-05 19:27:18 +01:00 |
|
Jürg Lehni
|
caec7599be
|
Fix a bug with Segment constructor where two passed points with the first one having an x-coordinate of 0 would accidentaly be considered the two coordinate values for the point property.
|
2011-06-05 18:41:58 +01:00 |
|
Jonathan Puckey
|
e4eb463204
|
Path: document arcTo and curveTo.
|
2011-06-05 18:40:33 +02:00 |
|
Jonathan Puckey
|
14e2a61d25
|
Add examples to Path#arcTo docs.
|
2011-06-05 17:22:35 +02:00 |
|
Jonathan Puckey
|
ab09a44dc6
|
Add examples to Path#join documentation.
|
2011-06-05 16:12:31 +02:00 |
|
Jonathan Puckey
|
c10aa01de0
|
Fix a bug in Path#join.
|
2011-06-05 15:56:37 +02:00 |
|
Jonathan Puckey
|
5770ebc9ff
|
Merge remote branch 'origin/master'
|
2011-06-05 15:04:43 +02:00 |
|
Jonathan Puckey
|
deec7512cc
|
Path: fix return type in #getLocationAt documentation.
|
2011-06-05 15:04:34 +02:00 |
|
Jonathan Puckey
|
34b510bf1c
|
Path: add examples to #getPointAt, #getNormalAt and #getTangentAt.
|
2011-06-05 15:00:43 +02:00 |
|
Jonathan Puckey
|
bb956c890f
|
Add documentation stub for Path#arcTo(through, to)
|
2011-06-05 14:52:01 +02:00 |
|
Jonathan Puckey
|
4e0a857ee7
|
Fix a problem in Path#arcTo where it wasn't defaulting to a clockwise arc.
|
2011-06-05 14:51:37 +02:00 |
|
Jürg Lehni
|
b3d771a870
|
Remove Curve#transform() which is currently broken anyhow.
|
2011-06-05 13:27:39 +01:00 |
|
Jürg Lehni
|
e76c4e0de1
|
Implement Path#curvesToPoints() using the new PathFlattener class.
|
2011-06-05 13:21:00 +01:00 |
|
Jürg Lehni
|
74b9da9882
|
Define PathFlattener#evaluate() for curve evaluation at given offsets.
|
2011-06-05 13:20:20 +01:00 |
|
Jürg Lehni
|
c296eb0883
|
Fix wrong direction of tangent evaluation at t = 1.
|
2011-06-05 13:09:53 +01:00 |
|
Jürg Lehni
|
c2c5955717
|
Rename Curve#getCurvesValues() -> #getValues().
|
2011-06-05 12:40:07 +01:00 |
|
Jürg Lehni
|
cb3834f41c
|
Expose the previously private evalutate() function through Curve.evaluate(), make it work with curve value arrays, and use it the for various evaluation methods (#getPoint/Tangent/Normal).
|
2011-06-05 12:37:43 +01:00 |
|
Jürg Lehni
|
14816a872e
|
Define Curve constructor for 8 parameters and implement Curve#getPart() that returns a new sub curve.
|
2011-06-05 12:36:26 +01:00 |
|
Jürg Lehni
|
3a0f43050e
|
Rename length to offset.
|
2011-06-05 11:34:40 +01:00 |
|
Jürg Lehni
|
ef10c2797c
|
Add Curve#getPart but hide for now as more work is required.
|
2011-06-05 11:34:24 +01:00 |
|
Jürg Lehni
|
b5a0979f58
|
Access internal Curve coordinate properties directly rather than through beans.
|
2011-06-05 11:33:55 +01:00 |
|
Jürg Lehni
|
47085e44ca
|
Fix drawing of closed paths that was broken in recent commit.
|
2011-06-05 11:20:28 +01:00 |
|
Jürg Lehni
|
6095723e70
|
Fix single equal compare.
|
2011-06-04 21:46:48 +01:00 |
|
Jürg Lehni
|
90be683113
|
Clean up and add more comments.
|
2011-06-04 19:25:50 +01:00 |
|
Jürg Lehni
|
263fa8cbd9
|
Add comments.
|
2011-06-04 18:35:00 +01:00 |
|
Jürg Lehni
|
fafb6d1d76
|
Convert CurveFlattener to PathFlattener, which can handle drawing of parts accross curve boundaries.
|
2011-06-04 18:25:41 +01:00 |
|
Jürg Lehni
|
e097ff1303
|
Include copyright notice and clean up.
|
2011-06-04 16:12:55 +01:00 |
|
Jürg Lehni
|
72ac909713
|
Include CurveFlattener.js in build.
|
2011-06-04 16:12:40 +01:00 |
|
Jürg Lehni
|
5fa43efb79
|
Merge remote-tracking branch 'origin/master'
|
2011-06-04 16:08:52 +01:00 |
|
Jürg Lehni
|
6c74ace1ed
|
Implement dashed stroke support. Work in progress.
|
2011-06-04 16:08:40 +01:00 |
|
Jürg Lehni
|
e5290c3f47
|
More work on Path#draw().
|
2011-06-04 15:28:06 +01:00 |
|
Jürg Lehni
|
45a04891ee
|
Clean up.
|
2011-06-04 15:16:30 +01:00 |
|
Jürg Lehni
|
91886211b5
|
Simplify Path#draw() by defining a private drawSegment() that's used to close paths too.
|
2011-06-04 15:16:21 +01:00 |
|
Jürg Lehni
|
4cc3ef87cd
|
Add View#canvas.
|
2011-06-04 15:15:35 +01:00 |
|
Jonathan Puckey
|
a96b272f7a
|
Documentation edits.
|
2011-06-04 15:50:29 +02:00 |
|
Jürg Lehni
|
ce01d2cc59
|
Start implementing CurveFlattener, as required for dashing.
|
2011-06-04 12:40:58 +01:00 |
|
Jürg Lehni
|
bff3e14155
|
Implement a first crude version of Curve.isSufficientlyFlat()
|
2011-06-04 12:40:36 +01:00 |
|
Jürg Lehni
|
5581eefd0c
|
Define default value of t = 0.5 in Curve.subdivide().
|
2011-06-04 12:40:07 +01:00 |
|
Jonathan Puckey
|
5e05f38df0
|
Path docs: add return tag for #getLocationAt.
|
2011-06-03 23:06:05 +02:00 |
|
Jonathan Puckey
|
d77e9cfb4f
|
Path docs: add Positions on Paths and Curves group title and temporary Path Smoothing group title.
|
2011-06-03 23:05:22 +02:00 |
|
Jonathan Puckey
|
083099a919
|
Add Path#closed example.
|
2011-06-03 23:04:18 +02:00 |
|
Jonathan Puckey
|
8bb8baa199
|
Merge remote branch 'origin/master'
|
2011-06-03 22:30:23 +02:00 |
|
Jonathan Puckey
|
9f6e4f0491
|
Point docs: rename Vectorial Math Functions grouptitle to Vector Math Functions.
|
2011-06-03 22:30:06 +02:00 |
|
Jonathan Puckey
|
7abdce4f9c
|
Implement Symbol#place(position)
|
2011-06-03 22:25:37 +02:00 |
|
Jürg Lehni
|
7c57324b3a
|
Switch to Bootstrap.js version that is produced by compiling it with CORE_ONLY flag, and adapt Base.js so Base still gets exported.
|
2011-06-03 21:20:36 +01:00 |
|
Jürg Lehni
|
aade3391e5
|
Merge remote-tracking branch 'origin/master'
|
2011-06-03 17:46:48 +01:00 |
|
Jonathan Puckey
|
96ac41e5c5
|
Item & PathStyle: implement paperscript examples.
|
2011-06-03 18:45:01 +02:00 |
|
Jonathan Puckey
|
e273a048cd
|
Group docs: change the height of the constructor example.
|
2011-06-03 18:44:22 +02:00 |
|
Jonathan Puckey
|
730572b118
|
Improve Item examples.
|
2011-06-03 15:34:10 +02:00 |
|
Jürg Lehni
|
702269675a
|
Start adding support for rhino-canvas on server.
|
2011-06-03 14:05:55 +01:00 |
|
Jonathan Puckey
|
e9260562f2
|
Improve Group example code.
|
2011-06-03 14:25:25 +02:00 |
|
Jürg Lehni
|
931e5374b9
|
Merge remote-tracking branch 'origin/master'
|
2011-06-03 10:59:29 +01:00 |
|
Jürg Lehni
|
3ef55b2b4e
|
No need for variable chaining here.
|
2011-06-03 10:59:20 +01:00 |
|
Jonathan Puckey
|
298c304660
|
Merge remote branch 'origin/master'
|
2011-06-03 11:34:34 +02:00 |
|
Jonathan Puckey
|
7d1297fcf4
|
Path#draw: Fix drawing of selected path handles.
|
2011-06-03 11:33:34 +02:00 |
|
Jürg Lehni
|
4e5e3c9bfd
|
Instead of cloning each value that is set on PathStyle, just clone values in #initialize() / #setStyle().
|
2011-06-03 08:27:49 +01:00 |
|
Jürg Lehni
|
02b6db1c7e
|
Do not cache the value returned by Item#position directly, but the bounds' center that is used to create it.
|
2011-06-03 00:04:02 +01:00 |
|
Jürg Lehni
|
1b197741fa
|
Add support for calculation of cumulative positioned offsets and use it to correctly determine visibility and event positions within canvases nested in relative divs.
|
2011-06-02 20:43:54 +01:00 |
|
Jonathan Puckey
|
5c88bdfac9
|
PlacedSymbol docs: use splitpane for constructor example.
|
2011-06-02 20:56:08 +02:00 |
|
Jürg Lehni
|
99e4cc7645
|
Add TODO comment about mousedown events not having delta set the first time.
|
2011-06-02 15:38:12 +01:00 |
|
Jürg Lehni
|
2ab7568d5d
|
Fix typo.
|
2011-06-02 15:36:44 +01:00 |
|
Jürg Lehni
|
a1cbd53e23
|
Use modulo again in hsb conversion.
|
2011-06-02 15:33:46 +01:00 |
|
Jürg Lehni
|
016476d1dc
|
Make sure mousemove events have lastPoint set even for the first move so event.delta is always defined for them.
|
2011-06-02 15:33:30 +01:00 |
|
Jürg Lehni
|
8b7eea4663
|
Merge remote-tracking branch 'origin/master'
|
2011-06-02 14:40:40 +01:00 |
|
Jürg Lehni
|
4a51ff4215
|
Remove unneeded blend mode.
|
2011-06-02 14:33:42 +01:00 |
|
Jonathan Puckey
|
5cede5f6ed
|
Update Item#blendMode documentation.
|
2011-06-02 15:00:16 +02:00 |
|
Jonathan Puckey
|
4455b1c33c
|
Documentation: fix Key.isDown example.
|
2011-06-02 14:48:21 +02:00 |
|
Jonathan Puckey
|
018ac46e87
|
Small improvement to Item#strokeCap docs.
|
2011-06-02 14:17:47 +02:00 |
|
Jonathan Puckey
|
5e9c64d9c8
|
View#onFrame docs: use code tags in description.
|
2011-06-02 14:17:02 +02:00 |
|
Jonathan Puckey
|
4d0db25e51
|
Item & PathStyle: improve documentation.
|
2011-06-02 13:58:56 +02:00 |
|
Jonathan Puckey
|
0e6811f022
|
Item: document and add examples to the different removeOn functions.
|
2011-06-02 13:32:00 +02:00 |
|
Jonathan Puckey
|
371428b9ee
|
Item docs: improve #scale examples.
|
2011-06-02 12:59:30 +02:00 |
|
Jürg Lehni
|
c07fee0e6b
|
Shorten variable names.
|
2011-06-02 09:38:13 +01:00 |
|
Jürg Lehni
|
bb11b74fa3
|
Clean up comments: No need for reference to Context Blender, since code has completely changed.
|
2011-06-02 09:36:49 +01:00 |
|
Jürg Lehni
|
9be8c154b7
|
Clean up code.
|
2011-06-02 09:34:10 +01:00 |
|
Jürg Lehni
|
1c886c125c
|
Make HSB converters private again in Color, and shorten code.
|
2011-06-02 09:34:02 +01:00 |
|
Jürg Lehni
|
b02b4bf7a3
|
Implement HSL blend modes according to PDF specs.
|
2011-06-02 09:33:41 +01:00 |
|
Jürg Lehni
|
0e3ed65206
|
Go back to old luminescence values since the new ones produces to large values occasionally.
|
2011-06-02 09:05:23 +01:00 |
|
Jürg Lehni
|
a1d3b1a167
|
Rename and shorten RGB/HSB converters.
|
2011-06-02 00:19:00 +01:00 |
|
Jürg Lehni
|
3a310f19cc
|
Directly access inner property.
|
2011-06-02 00:16:28 +01:00 |
|
Jürg Lehni
|
7dbda50431
|
Use more precise values for luminescence calculation.
|
2011-06-02 00:15:32 +01:00 |
|
Jürg Lehni
|
5e7998d803
|
Rename parameter.
|
2011-06-01 20:34:35 +01:00 |
|
Jürg Lehni
|
09e3010ed5
|
Merge remote-tracking branch 'origin/master'
|
2011-06-01 20:32:54 +01:00 |
|
Jürg Lehni
|
f7bdfc5019
|
Clean up comments.
|
2011-06-01 20:32:37 +01:00 |
|
Jürg Lehni
|
6558574980
|
Clean up code.
|
2011-06-01 20:23:20 +01:00 |
|
Jürg Lehni
|
7de0859a85
|
Clean up comments.
|
2011-06-01 20:21:41 +01:00 |
|
Jürg Lehni
|
d5952ba043
|
Implement HSB blend modes.
|
2011-06-01 20:21:25 +01:00 |
|
Jürg Lehni
|
ad8f046880
|
Expose HSB converters since they are required in BlendMode
|
2011-06-01 20:21:08 +01:00 |
|
Jürg Lehni
|
05a01604ca
|
Shorten css code.
|
2011-06-01 20:20:50 +01:00 |
|
Jürg Lehni
|
09e9298bf4
|
Fix blend modes to work correctly with alpha channels.
|
2011-06-01 19:25:43 +01:00 |
|
Jonathan Puckey
|
884446f606
|
Merge remote branch 'origin/master'
|
2011-06-01 19:49:57 +02:00 |
|
Jürg Lehni
|
0d1fcfbb81
|
Remove unused blend mode 'normal'.
|
2011-06-01 17:21:14 +01:00 |
|
Jürg Lehni
|
f58aa2a23b
|
Add comment about overlay mode being the reverse of hard-light.
|
2011-06-01 17:11:06 +01:00 |
|
Jürg Lehni
|
3850e4a53b
|
Optimise code for normal and multiply blend modes by precalculating values.
|
2011-06-01 17:10:40 +01:00 |
|
Jürg Lehni
|
8bbb3744fe
|
Use min() / max() in darken / lighten for shorter code.
|
2011-06-01 17:09:32 +01:00 |
|
Jürg Lehni
|
b08abcdd69
|
Remove 'unsupported' blend mode.
|
2011-06-01 16:50:14 +01:00 |
|
Jürg Lehni
|
9142c974c3
|
Revert to longer version of blend mode code as it is faster.
|
2011-06-01 16:49:48 +01:00 |
|
Jürg Lehni
|
62f5204810
|
Shorten variable names.
|
2011-06-01 16:45:42 +01:00 |
|
Jürg Lehni
|
44605433d1
|
Further shorten and simplify BlendMode cide by having process() only process one pixel value at a time.
|
2011-06-01 16:34:57 +01:00 |
|
Jürg Lehni
|
9fa193d26f
|
Move opacity precalculation out of variable definition.
|
2011-06-01 15:31:02 +01:00 |
|
Jürg Lehni
|
117a828b2b
|
Don't set dst[i + 3] directly, set dA2 instead.
|
2011-06-01 14:01:46 +01:00 |
|
Jürg Lehni
|
acecb1a2c1
|
Clean up variable names.
|
2011-06-01 14:01:22 +01:00 |
|
Jürg Lehni
|
b9739aa26a
|
Optimise blend mode loop by pre-calculating divisions.
|
2011-06-01 14:00:50 +01:00 |
|
Jürg Lehni
|
4a9f0d726f
|
Pre-calculate opacity value.
|
2011-06-01 14:00:02 +01:00 |
|
Jürg Lehni
|
a1d996df05
|
Clean up formating.
|
2011-06-01 13:42:34 +01:00 |
|
Jürg Lehni
|
69e989f834
|
No need to set dst[i + 3] again after changing dA2, since we are now only setting it after calling process() from the main loop.
|
2011-06-01 13:42:22 +01:00 |
|
Jürg Lehni
|
c47d281308
|
Speed up blend-modes by using a lookup table for process functions rather than a switch() statement for each pixel.
|
2011-06-01 13:37:36 +01:00 |
|
Jonathan Puckey
|
c1d4161782
|
Merge remote branch 'origin/master'
|
2011-06-01 12:19:30 +02:00 |
|
Jürg Lehni
|
29967153c3
|
Clean up TODO comments...
|
2011-06-01 10:49:43 +01:00 |
|
Jürg Lehni
|
2a5f885f50
|
"for var in" is good practise in such a case, as we don't need additional functionality of Base.each().
|
2011-06-01 09:57:18 +01:00 |
|
Jonathan Puckey
|
5dd5694e3b
|
Merge branch 'master' of github.com:scriptographer/paper.js
|
2011-06-01 10:56:16 +02:00 |
|
Jürg Lehni
|
ad335374cd
|
Copyrights are included correctly in the paper.js file.
|
2011-05-31 22:22:07 +01:00 |
|
Jürg Lehni
|
90631b9dd0
|
Merge remote-tracking branch 'origin/master'
|
2011-05-31 22:16:27 +01:00 |
|
Jonathan Puckey
|
932527ee5c
|
Improve Item's path style documentation.
|
2011-05-31 16:48:48 +02:00 |
|
Jonathan Puckey
|
7087b5476d
|
Clean up Matrix#setToRotation.
|
2011-05-31 16:19:43 +02:00 |
|
Jonathan Puckey
|
d2827e35c6
|
Documentation: clean up Size example code.
|
2011-05-31 16:18:59 +02:00 |
|
Jonathan Puckey
|
c39d092ee4
|
Documentation: Clean up Point example code.
|
2011-05-31 16:16:15 +02:00 |
|
Jonathan Puckey
|
97c8a7cb83
|
Clean up Line#getSide.
|
2011-05-31 16:13:42 +02:00 |
|
Jonathan Puckey
|
7a4c44ec7b
|
Matrix documentation.
|
2011-05-31 16:08:25 +02:00 |
|
Jonathan Puckey
|
434268fbd1
|
Document the properties of PaperScope to be global.
|
2011-05-31 15:18:37 +02:00 |
|
Jonathan Puckey
|
2b8f1b71ec
|
Documentation: use inline code tags for boolean and number values,
|
2011-05-31 14:28:42 +02:00 |
|
Jonathan Puckey
|
31bf3ffa70
|
Matrix: add param tags to #applyToContext documentation.
|
2011-05-31 14:25:24 +02:00 |
|
Jonathan Puckey
|
8b7d7b68e1
|
Size: fix typo in documentation.
|
2011-05-31 14:24:30 +02:00 |
|
Jonathan Puckey
|
33cc1b47b8
|
View: Move onResize below onFrame and document both of them.
|
2011-05-31 14:24:13 +02:00 |
|
Jonathan Puckey
|
7eb35bf6fb
|
Point documentation: add examples to Point.min, Point.max and Point.random.
|
2011-05-31 01:19:33 +02:00 |
|
Jonathan Puckey
|
2e2b7cad24
|
PlacedSymbol docs: make constructor argument optional.
|
2011-05-30 20:09:46 +02:00 |
|
Jonathan Puckey
|
6892608ecd
|
Documentation: rename 'Sample Code:' to 'Example:'
|
2011-05-30 19:55:40 +02:00 |
|
Jonathan Puckey
|
17fcb923ff
|
Documentation: rearrange @example tags, improve examples, rename boolean -> Boolean and misc smaller edits.
|
2011-05-30 19:42:17 +02:00 |
|
Jürg Lehni
|
6effdcd450
|
Move comment.
|
2011-05-30 17:04:15 +01:00 |
|
Jonathan Puckey
|
16f521b8a2
|
Path.Constructors docs: move @example tags to the end of the comments and shorten the lines of the examples.
|
2011-05-30 17:13:19 +02:00 |
|
Jürg Lehni
|
1e9f2dc057
|
Fix typos.
|
2011-05-30 15:17:44 +01:00 |
|
Jürg Lehni
|
78f43b52b9
|
Set default styles for Project#currentStyle.
|
2011-05-29 21:35:46 +01:00 |
|
Jürg Lehni
|
15da2fe257
|
Implement Item#isAbove / #isBelow and define tests for it.
|
2011-05-29 19:54:43 +01:00 |
|
Jürg Lehni
|
ba42295942
|
Change variable name in #isEditable() to reflect what's being checked more correctly.
|
2011-05-29 19:22:59 +01:00 |
|
Jürg Lehni
|
9d00541987
|
Clean up PORT comments.
|
2011-05-29 19:20:10 +01:00 |
|
Jonathan Puckey
|
f9eca3efbf
|
Docs: improve the description of the Size class.
|
2011-05-29 17:40:23 +02:00 |
|
Jonathan Puckey
|
9012bed504
|
Matrix: add some docs todos and make center optional in Matrix#shear.
|
2011-05-29 17:34:51 +02:00 |
|
Jonathan Puckey
|
005f505959
|
Matrix: add documentation for Matrix#scale(scale[, center]).
|
2011-05-29 17:31:13 +02:00 |
|
Jonathan Puckey
|
742d7f809d
|
Segment: document #toString and #selected.
|
2011-05-29 16:57:48 +02:00 |
|
Jonathan Puckey
|
6b63bb8a36
|
Documention: add postscript methods to CompoundPath
|
2011-05-29 16:49:52 +02:00 |
|
Jonathan Puckey
|
41bf1f4543
|
CompoundPath: document #moveTo and #moveBy.
|
2011-05-29 16:13:30 +02:00 |
|
Jonathan Puckey
|
0b9c034e0d
|
Path: document #addSegments and #insertSegments
|
2011-05-29 16:06:23 +02:00 |
|
Jonathan Puckey
|
78ab493709
|
Documentation: add todo to Path#add
|
2011-05-29 16:05:47 +02:00 |
|
Jonathan Puckey
|
b37604cbac
|
Tool: document onkeyDown and onKeyUp.
|
2011-05-29 15:28:46 +02:00 |
|
Jonathan Puckey
|
b3eca3895d
|
Documentation: remove dashArray / dashOffset from Item & PathStyle, since they are not implemented yet.
|
2011-05-29 14:51:07 +02:00 |
|
Jonathan Puckey
|
418aee0792
|
Document options of strokeCap / strokeJoin for Item and PathStyle.
|
2011-05-29 14:49:51 +02:00 |
|
Jonathan Puckey
|
556c927448
|
Improve docs of Point#equals and Rectangle#equals.
|
2011-05-29 14:20:48 +02:00 |
|
Jonathan Puckey
|
f75570078a
|
Merge remote branch 'origin/master'
|
2011-05-29 14:06:21 +02:00 |
|
Jonathan Puckey
|
4fcd26a914
|
Docs: remove todo.
|
2011-05-29 14:05:32 +02:00 |
|
Jonathan Puckey
|
ea192e3817
|
Document Point#normalize and Point#quadrant.
|
2011-05-29 13:54:53 +02:00 |
|
Jürg Lehni
|
3c2977287a
|
Simplify Item#isAncestor() by formulating it as the reverse of Item#isDescendant().
|
2011-05-28 21:09:03 +01:00 |
|
Jürg Lehni
|
6aac2b3e67
|
Fix Item#isChild(item).
|
2011-05-28 21:06:30 +01:00 |
|
Jonathan Puckey
|
9cc3b03f83
|
Document different constructors of Point, Rectangle & Size.
|
2011-05-28 02:38:33 +02:00 |
|
Jonathan Puckey
|
d644bbaa09
|
Documentation: Add optional alpha parameter to the different color constructors.
|
2011-05-28 02:29:08 +02:00 |
|
Jonathan Puckey
|
cd76c8c0e1
|
Documentation: remove ^n from method names, since this isn't necessary anymore.
|
2011-05-28 02:18:10 +02:00 |
|
Jonathan Puckey
|
1520cad144
|
Documentation: capitalize basic types in @ tags.
|
2011-05-27 21:21:49 +02:00 |
|
Jonathan Puckey
|
2d5007dcd9
|
Implement Color documentation.
|
2011-05-27 21:13:39 +02:00 |
|
Jonathan Puckey
|
8e84c79aa6
|
Documentation: capitalize 'string' and 'number' types.
|
2011-05-27 20:15:15 +02:00 |
|
Jonathan Puckey
|
82bc6fc796
|
Documentation: change return type of PathStyle#dashOffset & Item#dashOffset to number.
|
2011-05-27 20:08:06 +02:00 |
|
Jonathan Puckey
|
25c3534dc1
|
Documentation: remove part of the constructor explanation of CurveLocation until the mentioned functions have been added.
|
2011-05-27 20:06:57 +02:00 |
|
Jonathan Puckey
|
b3617cdab6
|
Documentation: add PathStyle properties to Item.
|
2011-05-27 20:05:51 +02:00 |
|
Jonathan Puckey
|
cf73f55c78
|
Documentation: use @link in Rectangle#include explanation.
|
2011-05-27 20:05:31 +02:00 |
|
Jonathan Puckey
|
4015b022ad
|
Docs: use @true tag in boolean return descriptions and add Key.isDown param options.
|
2011-05-27 18:43:27 +02:00 |
|
Jonathan Puckey
|
373e14dd76
|
Improve CompoundPath documentation.
|
2011-05-27 13:54:34 +02:00 |
|
Jonathan Puckey
|
bf19d8944c
|
Improve CharacterStyle documentation.
|
2011-05-27 13:54:27 +02:00 |
|
Jonathan Puckey
|
10763edc68
|
Add Line documentation.
|
2011-05-27 13:53:59 +02:00 |
|
Jonathan Puckey
|
ca3230c1ad
|
Documentation: reorder functions, add group titles and todos.
|
2011-05-27 13:28:13 +02:00 |
|
Jürg Lehni
|
397d3676ed
|
Merge remote-tracking branch 'origin/master'
|
2011-05-26 21:00:05 +01:00 |
|
Jonathan Puckey
|
6b611add37
|
More documentation edits and function reordering.
|
2011-05-26 20:09:25 +02:00 |
|
Jonathan Puckey
|
fb36a275ac
|
Edits to KeyEvent documentation
|
2011-05-26 16:56:03 +02:00 |
|
Jonathan Puckey
|
65fa7fb01d
|
Path documentation: use Type[] for 'typed' arrays.
|
2011-05-26 16:50:13 +02:00 |
|
Jonathan Puckey
|
0388917d90
|
Add @return to Point#directedAngle.
|
2011-05-26 16:49:51 +02:00 |
|
Jonathan Puckey
|
b52421c282
|
Project documentation: use Type[] for 'typed' arrays.
|
2011-05-26 16:49:19 +02:00 |
|
Jürg Lehni
|
ddf3670952
|
Fix / remove some comments.
|
2011-05-26 12:04:47 +01:00 |
|
Jürg Lehni
|
baf519a841
|
Remove unsupported style properties for now.
|
2011-05-26 12:04:30 +01:00 |
|
Jürg Lehni
|
8130ee458f
|
Rename #_countSelectedSegment() to #_updateSelection().
|
2011-05-26 11:52:28 +01:00 |
|
Jürg Lehni
|
3e7806ae50
|
Move #_countSelectedSegment().
|
2011-05-26 11:38:26 +01:00 |
|
Jürg Lehni
|
e31081f2fc
|
Use Path#_countSelectedSegment() in #removeSegments() as well.
|
2011-05-26 11:38:08 +01:00 |
|
Jürg Lehni
|
c67209f889
|
Optimize Curve#initialize for minifying.
|
2011-05-26 11:09:02 +01:00 |
|
Jürg Lehni
|
362eca7061
|
Further optimize Segment#initialize for minifying.
|
2011-05-26 11:08:07 +01:00 |
|
Jürg Lehni
|
d8fbca0d68
|
Shorten Segment#_changed().
|
2011-05-26 11:04:57 +01:00 |
|
Jürg Lehni
|
5b6bc1263c
|
Allow selection state of Segments to be changed before they are added to a Path (Part two of fixing selection cloning).
|
2011-05-26 10:59:22 +01:00 |
|
Jürg Lehni
|
2d218dbb19
|
Change and optimise the way SegmentPoints are created, so that selected state is actually copied over properly (Part one of fixing selection cloning).
|
2011-05-26 10:58:16 +01:00 |
|
Jürg Lehni
|
d2263b26db
|
No need to check argument for _colorType since Color.read already performs an instanceof check for us.
|
2011-05-26 09:20:58 +01:00 |
|
Jürg Lehni
|
4fbc462a96
|
Shorten local 'colorType' variable to 'type'.
|
2011-05-26 08:40:07 +01:00 |
|
Jürg Lehni
|
300ea72261
|
Simplify Color#initialize() by relying on #convert() for performing _colorType check and delegate to #clone() instead of #convert() if it is the same.
|
2011-05-26 08:39:21 +01:00 |
|
Jürg Lehni
|
bfcfb23a9e
|
Shorten Color#clone() further.
|
2011-05-26 08:36:56 +01:00 |
|
Jonathan Puckey
|
8ab56a7ebd
|
Some edits to Project documentation.
|
2011-05-26 00:57:58 +02:00 |
|
Jonathan Puckey
|
020cbbcef5
|
Implement Gradient / GradientColor / GradientStop docs.
|
2011-05-26 00:55:44 +02:00 |
|
Jonathan Puckey
|
00eea86d25
|
Some documentation edits in Point.
|
2011-05-26 00:54:59 +02:00 |
|
Jonathan Puckey
|
7910d134a7
|
Documentation: add Project Hierarchy properties.
|
2011-05-26 00:54:25 +02:00 |
|
Jonathan Puckey
|
b39d1c0695
|
Add View documentation.
|
2011-05-23 20:10:25 +02:00 |
|
Jonathan Puckey
|
eb2694467d
|
ToolEvent documentation: fix whitespace.
|
2011-05-23 20:10:02 +02:00 |
|
Jonathan Puckey
|
0a27879a23
|
Add KeyEvent documentation.
|
2011-05-23 19:56:18 +02:00 |
|
Jonathan Puckey
|
93b06f3acb
|
Add PlacedSymbol documentation.
|
2011-05-23 19:48:48 +02:00 |
|
Jonathan Puckey
|
de7926990b
|
Add CharacterStyle documentation.
|
2011-05-23 19:28:55 +02:00 |
|
Jonathan Puckey
|
de76b063b9
|
Add ParagraphStyle documentation.
|
2011-05-23 19:24:33 +02:00 |
|
Jonathan Puckey
|
50e996aa43
|
Add PointText documentation.
|
2011-05-23 19:13:51 +02:00 |
|
Jonathan Puckey
|
24689300c3
|
Add TextItem documentation.
|
2011-05-23 18:56:13 +02:00 |
|
Jonathan Puckey
|
5bd935be75
|
Symbol documentation & move Symbol#clone below Symbol#setDefinition.
|
2011-05-23 18:29:44 +02:00 |
|
Jonathan Puckey
|
14c693aa7c
|
Add Project documentation.
|
2011-05-23 18:13:03 +02:00 |
|
Jonathan Puckey
|
e66e8e330b
|
Point: whitespace.
|
2011-05-23 18:04:08 +02:00 |
|
Jonathan Puckey
|
65ee63546d
|
Add Key documentation.
|
2011-05-23 18:02:46 +02:00 |
|
Jonathan Puckey
|
26aa3c00d7
|
Add CurveLocation documentation.
|
2011-05-23 17:39:26 +02:00 |
|
Jonathan Puckey
|
0e63f11b72
|
Add Curve documentation.
|
2011-05-23 17:24:57 +02:00 |
|
Jonathan Puckey
|
08f6f94fb6
|
Clean up whitespace in Item documentation.
|
2011-05-23 17:10:12 +02:00 |
|
Jonathan Puckey
|
dc66049312
|
Documentation: small adjustment to Item#clone
|
2011-05-23 17:07:35 +02:00 |
|
Jonathan Puckey
|
d0ecd6a4ad
|
Layer: small edit to constructor docs.
|
2011-05-23 17:02:22 +02:00 |
|
Jonathan Puckey
|
59af5343b5
|
Add Layer documentation.
|
2011-05-23 17:00:37 +02:00 |
|
Jonathan Puckey
|
ca35b3fe60
|
Add Tool documentation.
|
2011-05-23 16:54:51 +02:00 |
|
Jonathan Puckey
|
8c688bf83d
|
Merge ToolHandler with Tool and remove ToolHandler.
|
2011-05-23 16:30:18 +02:00 |
|
Jonathan Puckey
|
872fbe1574
|
Document some more Raster functions.
|
2011-05-23 16:19:37 +02:00 |
|
Jonathan Puckey
|
04e34128ae
|
Fix Raster#visible default value.
|
2011-05-23 16:18:59 +02:00 |
|
Jonathan Puckey
|
53d7a1e914
|
Add Raster documentation.
|
2011-05-23 16:09:04 +02:00 |
|
Jonathan Puckey
|
a389be30cf
|
Add Path.Constructors documentation.
|
2011-05-23 14:33:22 +02:00 |
|
Jonathan Puckey
|
3d1317cece
|
Item docs: change order of removeOn documentation.
|
2011-05-23 13:47:21 +02:00 |
|
Jonathan Puckey
|
2a4f5b93f0
|
Path documentation: whitespace.
|
2011-05-23 13:37:40 +02:00 |
|
Jonathan Puckey
|
a988f1b7a2
|
Matrix documentation: whitespace.
|
2011-05-23 13:37:26 +02:00 |
|
Jonathan Puckey
|
c4f53cf297
|
Group documentation.
|
2011-05-23 13:37:13 +02:00 |
|
Jonathan Puckey
|
3247527c8d
|
Documentation: Add @lends to ToolHandler to stop it bleeding into the ToolEvent documentation.
|
2011-05-23 04:38:30 +02:00 |
|
Jonathan Puckey
|
a5bf23e33e
|
Add ToolEvent documentation.
|
2011-05-23 04:37:50 +02:00 |
|
Jonathan Puckey
|
211635f206
|
Cleanup last commit.
|
2011-05-23 04:20:11 +02:00 |
|
Jonathan Puckey
|
6db1f6c54c
|
Documentation: ignore various classes.
|
2011-05-23 04:18:21 +02:00 |
|
Jonathan Puckey
|
66c521602d
|
Size: make @lends point to Size.
|
2011-05-23 04:12:39 +02:00 |
|
Jonathan Puckey
|
987ac5b8f7
|
Adjust PathStyle constructor documentation.
|
2011-05-23 03:47:39 +02:00 |
|
Jonathan Puckey
|
c3246a969c
|
PathStyle documentation: rename Document to Project.
|
2011-05-23 03:43:49 +02:00 |
|
Jonathan Puckey
|
548a2983fb
|
Add PathStyle documentation.
|
2011-05-23 03:41:20 +02:00 |
|
Jonathan Puckey
|
08ea1391b5
|
Add Size documentation.
|
2011-05-23 03:13:17 +02:00 |
|
Jonathan Puckey
|
539c80b028
|
Documentation: Point math functions.
|
2011-05-23 03:12:14 +02:00 |
|
Jonathan Puckey
|
f3e118ac9a
|
Documentation: Point#equals
|
2011-05-23 03:11:53 +02:00 |
|
Jonathan Puckey
|
460101c55e
|
More Point documentation.
|
2011-05-23 02:33:01 +02:00 |
|
Jonathan Puckey
|
349e4023f3
|
CompoundPath documentation: adjust constructor docs.
|
2011-05-23 01:53:57 +02:00 |
|
Jonathan Puckey
|
ae6606e11c
|
Add CompoundPath docs.
|
2011-05-23 01:49:01 +02:00 |
|
Jonathan Puckey
|
7ffd8445b7
|
Add Rectangle documentation.
|
2011-05-23 01:36:16 +02:00 |
|
Jonathan Puckey
|
021c23a84c
|
Move Point#x and Point#y docs outside of the constructor.
|
2011-05-23 01:34:30 +02:00 |
|
Jonathan Puckey
|
41c47449c1
|
Make Matrix docs jsdoc compatible.
|
2011-05-23 00:54:27 +02:00 |
|
Jonathan Puckey
|
b366829cef
|
Improve Point docs.
|
2011-05-23 00:50:56 +02:00 |
|
Jonathan Puckey
|
06a6d5cc70
|
Add documentation to Segment.
|
2011-05-23 00:42:22 +02:00 |
|
Jonathan Puckey
|
5cea863ccb
|
Add documentation to Path.
|
2011-05-23 00:26:08 +02:00 |
|
Jonathan Puckey
|
8522a4485e
|
Add documentation for Item.
|
2011-05-22 23:39:54 +02:00 |
|
Jonathan Puckey
|
85d4af5154
|
Point documentation: add types to bean properties.
|
2011-05-22 22:55:34 +02:00 |
|
Jonathan Puckey
|
ef184db13a
|
Point: {Boolean} -> {boolean} and {Number} -> {number}
|
2011-05-22 18:57:10 +02:00 |
|
Jonathan Puckey
|
6a9124dd9a
|
Make Point documentation jsdoc compatible.
|
2011-05-22 18:47:20 +02:00 |
|
Jonathan Puckey
|
1a8e81bc22
|
Project#selectAll: remove todo.
|
2011-05-21 21:41:10 +02:00 |
|
Jonathan Puckey
|
469f72d36f
|
Remove todo.
|
2011-05-21 21:39:27 +02:00 |
|
Jonathan Puckey
|
08f3ac197b
|
Symbol#setDefinition: fix accidental beans access and add comment.
|
2011-05-21 21:33:43 +02:00 |
|
Jonathan Puckey
|
2f7a98f7d6
|
Have Symbol#setDefinition deselect the passed item.
|
2011-05-21 21:32:26 +02:00 |
|
Jonathan Puckey
|
7cdacc5536
|
Optimize Segment#initialize for minification.
|
2011-05-21 19:21:13 +02:00 |
|
Jonathan Puckey
|
572b62590e
|
Fix Raster#clone.
|
2011-05-21 18:02:09 +02:00 |
|
Jonathan Puckey
|
f2e01a8837
|
Color: Rename variable name due to conflict.
|
2011-05-21 17:56:54 +02:00 |
|
Jonathan Puckey
|
81558cb54f
|
Avoid double lookup of component key.
|
2011-05-21 17:49:54 +02:00 |
|
Jonathan Puckey
|
f3deed81cd
|
Optimize Color#initialize for minifying.
|
2011-05-21 17:40:29 +02:00 |
|
Jonathan Puckey
|
f83d16906c
|
Clone the color when calling Color#convert with the same color type.
|
2011-05-21 17:37:36 +02:00 |
|
Jonathan Puckey
|
e5034a5a76
|
Color#clone: don't initialize when calling 'new this.constructor'.
|
2011-05-21 17:35:37 +02:00 |
|
Jonathan Puckey
|
024e8eb19b
|
Fix Color cloning by adding clone function and using it in Color#initialize.
|
2011-05-21 17:13:25 +02:00 |
|
Jürg Lehni
|
816424a9c5
|
Merge remote-tracking branch 'origin/master'
Conflicts:
test/lib/helpers.js
|
2011-05-21 14:41:08 +01:00 |
|
Jürg Lehni
|
b3281806a3
|
No need to check if _style is defined now since even Layer (ineriting from Group) now has a style.
|
2011-05-21 14:29:00 +01:00 |
|
Jürg Lehni
|
a51957bf64
|
Change PathStyle to clone values in setters if they provide a clone function. This requires also using equals() wherevere they are checked to be the same or different.
|
2011-05-21 14:28:08 +01:00 |
|
Jürg Lehni
|
2b5d648e96
|
Change SegmentPoint.create() to copy over selected state from a provided other point or object.
|
2011-05-21 14:27:29 +01:00 |
|
Jonathan Puckey
|
73a2f0f256
|
Implement Raster#clone.
|
2011-05-21 12:50:02 +02:00 |
|
Jonathan Puckey
|
46b1311260
|
Gradient#equals: also check gradient type.
|
2011-05-21 12:06:37 +02:00 |
|
Jonathan Puckey
|
d8b73f3671
|
Fix GradientColor#clone().
|
2011-05-21 12:06:01 +02:00 |
|
Jürg Lehni
|
b461368b18
|
Found a clean way for Layer#initialize() to call this.base() too, without implicitely calling paper.project.activeLayer.appendTop.
|
2011-05-21 01:05:22 +01:00 |
|
Jürg Lehni
|
9f1172f24a
|
Merge remote-tracking branch 'origin/master'
|
2011-05-21 00:59:19 +01:00 |
|
Jürg Lehni
|
f6e827cfd1
|
Allow Color#alpha to be set to null.
|
2011-05-21 00:41:04 +01:00 |
|
Jürg Lehni
|
7e7944e6f4
|
Fix recently introduced error in Color, by setting internal properties directly.
|
2011-05-21 00:40:20 +01:00 |
|
Jonathan Puckey
|
8a1b1041cd
|
Make PointText#matrix 'private' by renaming to _matrix.
|
2011-05-20 22:03:16 +02:00 |
|
Jonathan Puckey
|
f676cc026f
|
Add TextItem#_clone to copy over characterStyle and paragraphStyle.
|
2011-05-20 21:33:25 +02:00 |
|
Jonathan Puckey
|
2c94b4270a
|
Fix ParagraphStyle.create(item).
|
2011-05-20 21:29:47 +02:00 |
|
Jonathan Puckey
|
fc3833f150
|
Fix PlacedSymbol#clone().
|
2011-05-20 19:41:53 +02:00 |
|
Jonathan Puckey
|
64a142436b
|
Tests: add item cloning tests.
|
2011-05-20 19:40:07 +02:00 |
|
Jonathan Puckey
|
013fe56ea4
|
Item#_clone: check if the item has a _pathStyle property before copying it.
|
2011-05-20 19:35:26 +02:00 |
|
Jürg Lehni
|
84b1d865c1
|
Remove unused variable.
|
2011-05-20 14:08:04 +01:00 |
|
Jürg Lehni
|
be63d2cf07
|
Remove empty line.
|
2011-05-20 14:04:35 +01:00 |
|
Jürg Lehni
|
631923669a
|
Eliminate some of the TODOs.
|
2011-05-20 14:00:27 +01:00 |
|
Jürg Lehni
|
0a87eef244
|
Add comment about PointText#matrix and #point being exposed.
|
2011-05-20 08:56:14 +01:00 |
|
Jürg Lehni
|
ec0484e798
|
Define Symbol#clone(), needs testing.
|
2011-05-20 08:55:44 +01:00 |
|
Jürg Lehni
|
5713bc07f2
|
Define PlacedSymbol#clone(), needs testing.
|
2011-05-20 08:55:35 +01:00 |
|
Jürg Lehni
|
b15eecc34d
|
Use new internal Item#_clone() to improve Path#clone() and PointText#clone().
|
2011-05-20 08:54:44 +01:00 |
|
Jürg Lehni
|
87d340e525
|
Introduce private Item#_clone(copy), so subclasses can override the way the copy is actually produced, e.g. providing parameters to the constructor.
|
2011-05-20 08:50:09 +01:00 |
|
Jürg Lehni
|
fd8ceb9641
|
Implement PointText#clone(), untested.
|
2011-05-20 08:47:13 +01:00 |
|
Jürg Lehni
|
4ceaca00f4
|
Initialise content to empty string, so content += 'something' would not produce odd results.
|
2011-05-20 08:46:58 +01:00 |
|
Jürg Lehni
|
e7cad9b134
|
Use local point in translate, as it is not a LinkedPoint and won't require beans access.
|
2011-05-20 08:46:17 +01:00 |
|
Jürg Lehni
|
01f26c4be0
|
Restructure line break.
|
2011-05-20 08:40:35 +01:00 |
|
Jürg Lehni
|
131425a12f
|
Rely on #_transform() in #setPoint() as it already handles updating of #_point for us and all.
|
2011-05-20 08:33:19 +01:00 |
|
Jürg Lehni
|
2e82ac97d8
|
Convert PointText#point to a LinkedPoint so direct changes to it get noticed too.
|
2011-05-20 08:32:36 +01:00 |
|
Jürg Lehni
|
d6a49e2eb4
|
No need to check result of Point.read(), as it will always be a Point (_readNull is only defined for Color).
|
2011-05-20 08:28:49 +01:00 |
|
Jürg Lehni
|
4153bc0fbf
|
Fix bug in PointText#_transform(), where wrong version of matrix._transformPoint() was applied to _point, resulting in no transformation.
|
2011-05-20 08:27:11 +01:00 |
|
Jürg Lehni
|
10dadb80f2
|
Move isHue check outside of setter.
|
2011-05-20 08:08:26 +01:00 |
|
Jürg Lehni
|
1c479f315e
|
Add some comments to Item#clone().
|
2011-05-19 22:09:51 +01:00 |
|
Jürg Lehni
|
8a8c68b3d6
|
Define #clone() for various Gradient classes. Needs testing.
|
2011-05-19 22:02:26 +01:00 |
|
Jürg Lehni
|
38ddd34589
|
Replace beans access with internal property.
|
2011-05-19 22:00:03 +01:00 |
|
Jürg Lehni
|
276eb3301e
|
Define scafold #clone() function for the classes that still required a proper definition.
|
2011-05-19 21:56:49 +01:00 |
|
Jürg Lehni
|
7401e42316
|
Implement #clone() for Item, Group and Path. Needs testing.
|
2011-05-19 21:56:23 +01:00 |
|
Jürg Lehni
|
b52abbfbc1
|
Replace removed 'hidden' property with 'visible'.
|
2011-05-19 21:55:51 +01:00 |
|
Jürg Lehni
|
2dcb09a662
|
Define Path#clone().
|
2011-05-19 21:34:19 +01:00 |
|
Jürg Lehni
|
6348f94362
|
Optimise Gradient constructor.
|
2011-05-19 20:54:52 +01:00 |
|
Jürg Lehni
|
8eea7e15d4
|
Give GradientStop a proper #initialize() function and use GradientStop.readAll() in Gradient#setStops() with some added magic to automatically assign rampPoints if they were not specified.
|
2011-05-19 20:51:09 +01:00 |
|
Jürg Lehni
|
fcb8242da8
|
Restructure #initialize() in basic types to use direct arguments checking more than arguments.length.
|
2011-05-19 20:37:04 +01:00 |
|