Jonathan Puckey
|
6f41aaf217
|
PathStyle: document #dashOffset & #dashArray.
|
2011-06-17 20:55:12 +02: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
|
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
|
cb463b74f5
|
Fix @extends tags in documentation: Only the immediately following class is required.
|
2011-06-16 21:43:31 +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
|
ffa79f4fd1
|
Clean up white spaces in comments.
|
2011-06-14 22:59:45 +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 |
|
Jonathan Puckey
|
41feaebb4e
|
Fix Group clipping and ignore Item#clipMask in the documentation for now.
|
2011-06-14 12:15:46 +02:00 |
|
Jonathan Puckey
|
10de921a83
|
Docs: Use classexample tags in Point, Size and Rectangle.
|
2011-06-13 17:12:23 +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 |
|
Jürg Lehni
|
0567d0a5f9
|
Documentation: Fix typo.
|
2011-06-08 18:47:34 +01:00 |
|
Jürg Lehni
|
5fa43efb79
|
Merge remote-tracking branch 'origin/master'
|
2011-06-04 16:08:52 +01:00 |
|
Jürg Lehni
|
e5290c3f47
|
More work on Path#draw().
|
2011-06-04 15:28:06 +01:00 |
|
Jonathan Puckey
|
a96b272f7a
|
Documentation edits.
|
2011-06-04 15:50:29 +02:00 |
|
Jonathan Puckey
|
7abdce4f9c
|
Implement Symbol#place(position)
|
2011-06-03 22:25:37 +02: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 |
|
Jonathan Puckey
|
e9260562f2
|
Improve Group example code.
|
2011-06-03 14:25:25 +02:00 |
|
Jürg Lehni
|
3ef55b2b4e
|
No need for variable chaining here.
|
2011-06-03 10:59:20 +01: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 |
|
Jonathan Puckey
|
5c88bdfac9
|
PlacedSymbol docs: use splitpane for constructor example.
|
2011-06-02 20:56:08 +02:00 |
|
Jonathan Puckey
|
5cede5f6ed
|
Update Item#blendMode documentation.
|
2011-06-02 15:00:16 +02:00 |
|
Jonathan Puckey
|
018ac46e87
|
Small improvement to Item#strokeCap docs.
|
2011-06-02 14:17:47 +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
|
09e3010ed5
|
Merge remote-tracking branch 'origin/master'
|
2011-06-01 20:32:54 +01:00 |
|
Jürg Lehni
|
7de0859a85
|
Clean up comments.
|
2011-06-01 20:21:41 +01:00 |
|
Jonathan Puckey
|
884446f606
|
Merge remote branch 'origin/master'
|
2011-06-01 19:49:57 +02:00 |
|
Jürg Lehni
|
29967153c3
|
Clean up TODO comments...
|
2011-06-01 10:49:43 +01:00 |
|
Jonathan Puckey
|
932527ee5c
|
Improve Item's path style documentation.
|
2011-05-31 16:48:48 +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
|
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
|
1e9f2dc057
|
Fix typos.
|
2011-05-30 15:17:44 +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
|
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 |
|
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
|
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
|
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
|
b3617cdab6
|
Documentation: add PathStyle properties to Item.
|
2011-05-27 20:05:51 +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
|
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 |
|
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 |
|
Jonathan Puckey
|
93b06f3acb
|
Add PlacedSymbol documentation.
|
2011-05-23 19:48:48 +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
|
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
|
3d1317cece
|
Item docs: change order of removeOn documentation.
|
2011-05-23 13:47:21 +02:00 |
|
Jonathan Puckey
|
c4f53cf297
|
Group documentation.
|
2011-05-23 13:37:13 +02:00 |
|
Jonathan Puckey
|
211635f206
|
Cleanup last commit.
|
2011-05-23 04:20:11 +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
|
8522a4485e
|
Add documentation for Item.
|
2011-05-22 23:39:54 +02:00 |
|
Jonathan Puckey
|
572b62590e
|
Fix Raster#clone.
|
2011-05-21 18:02:09 +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 |
|
Jonathan Puckey
|
73a2f0f256
|
Implement Raster#clone.
|
2011-05-21 12:50:02 +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 |
|
Jonathan Puckey
|
fc3833f150
|
Fix PlacedSymbol#clone().
|
2011-05-20 19:41:53 +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
|
be63d2cf07
|
Remove empty line.
|
2011-05-20 14:04:35 +01:00 |
|
Jürg Lehni
|
5713bc07f2
|
Define PlacedSymbol#clone(), needs testing.
|
2011-05-20 08:55:35 +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
|
1c479f315e
|
Add some comments to Item#clone().
|
2011-05-19 22:09:51 +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
|
57b194e047
|
Add explaining comments to Raster#getAverageColor() code.
|
2011-05-19 18:51:13 +01:00 |
|
Jürg Lehni
|
e8d4a16ab2
|
Shorten Raster#getAverageColor().
|
2011-05-19 18:47:49 +01:00 |
|
Jürg Lehni
|
b103af4216
|
Merge remote-tracking branch 'origin/master'
|
2011-05-19 18:35:45 +01:00 |
|
Jürg Lehni
|
09612c4623
|
Remove the versions of #clone() that follow the scheme provided by Base#clone() now.
|
2011-05-19 18:35:38 +01:00 |
|
Jonathan Puckey
|
f965e53a06
|
Optimize Path#getAverageColor
|
2011-05-19 15:43:23 +02:00 |
|
Jonathan Puckey
|
241d98a1cf
|
Merge remote branch 'origin/master'
|
2011-05-18 16:01:36 +02:00 |
|
Jonathan Puckey
|
8810563a8f
|
Improve Raster#getAverageColor.
|
2011-05-18 16:00:55 +02:00 |
|
Jürg Lehni
|
26269d394a
|
Rename project/ProjectView -> ui/View.
|
2011-05-17 13:29:07 +01:00 |
|
Jürg Lehni
|
e5f8ee0464
|
Write comment about calling base() from Layer#initialize().
|
2011-05-17 13:14:23 +01:00 |
|
Jürg Lehni
|
515dbbb151
|
Fix error in Item#removeChildren().
|
2011-05-17 13:09:10 +01:00 |
|
Jürg Lehni
|
889b1687f9
|
Use #setChildren() in Group constructor and allow passing of children both as arguments and inside an array.
|
2011-05-16 20:16:27 +01:00 |
|
Jürg Lehni
|
baf35ea18c
|
Rename parameter.
|
2011-05-16 20:15:16 +01:00 |
|
Jürg Lehni
|
8a449b0e76
|
Remove deprecated Item#appendChild().
|
2011-05-16 20:14:49 +01:00 |
|
Jürg Lehni
|
f12ed7234a
|
Shorten code.
|
2011-05-16 19:44:46 +01:00 |
|
Jürg Lehni
|
97c4435d87
|
Fix typo.
|
2011-05-16 19:35:42 +01:00 |
|
Jürg Lehni
|
d535a1f6fc
|
Clean up method sequence in Item.
|
2011-05-16 19:35:09 +01:00 |
|
Jürg Lehni
|
75b0fa3596
|
Add Item#removeChildren() and #setChildren().
|
2011-05-16 19:34:57 +01:00 |
|
Jürg Lehni
|
c4203fe174
|
Change the way associated PathStyles are created and updated.
|
2011-05-16 19:21:36 +01:00 |
|
Jürg Lehni
|
05c0eb0e51
|
Simplify PathStyle#initialize().
|
2011-05-16 19:20:32 +01:00 |
|
Jürg Lehni
|
da670b4171
|
Improve comments.
|
2011-05-16 18:29:53 +01:00 |
|
Jürg Lehni
|
cfe968d30e
|
Rename Document -> Project, DocumentView -> ProjectView, paper.document -> paper.project and paper.documents -> paper.projects, to avoid name clashing with window.document.
|
2011-05-16 13:33:15 +01:00 |
|
Jürg Lehni
|
f545805786
|
Move Rectangle#transformCornerCoordinates() to Matrix#_transformCorners().
|
2011-05-16 12:29:52 +01:00 |
|
Jürg Lehni
|
fc547793fa
|
Remove redundant Rectangle#transformBounds() and merge its code with less optimised Matrix#transformBounds().
|
2011-05-16 12:25:18 +01:00 |
|
Jürg Lehni
|
fc776f03eb
|
Add Rectangle#transformCornerCoordinates() and use it in Item.drawSelectedBounds().
|
2011-05-16 11:25:39 +01:00 |
|
Jürg Lehni
|
f0b29e0e4d
|
Make Item#position a LinkedPoint and change the way it's transformed in #transform().
|
2011-05-16 11:19:19 +01:00 |
|
Jürg Lehni
|
3a15360efc
|
Rename ChangeFlags.PATH to GEOMETRY.
|
2011-05-16 00:01:06 +01:00 |
|
Jürg Lehni
|
0dc2241a9c
|
No need to set _index to null since Base.splice() handles that for us.
|
2011-05-15 21:42:31 +01:00 |
|
Jürg Lehni
|
ef0347a6bc
|
Fix accidental internal bean access to #segments.
|
2011-05-15 19:58:29 +01:00 |
|
Jürg Lehni
|
d12608c708
|
Minor clean ups.
|
2011-05-15 18:53:09 +01:00 |
|
Jonathan Puckey
|
a9fbc41e15
|
Clean up Item#name code.
|
2011-05-15 19:27:32 +02:00 |
|
Jonathan Puckey
|
d998cd30f3
|
Add support for accessing items by name through their parent's children list.
|
2011-05-15 19:12:27 +02:00 |
|
Jürg Lehni
|
252a3635dc
|
Replace {@true} tags in documentation ({@true ([^}]*)} -> true $1, false otherwise.)
|
2011-05-15 15:06:10 +01:00 |
|
Jürg Lehni
|
ee8b66e19a
|
Remove methods / fields that are hidden on Scriptographer through @jshide.
|
2011-05-15 15:03:33 +01:00 |
|
Jürg Lehni
|
2c078d8b17
|
Remove all code blocks and group titles from documentation since we're relying on Scriptographer code and documentation generation (through javadoc) for docs.
|
2011-05-15 15:01:59 +01:00 |
|
Jonathan Puckey
|
3f8f539aeb
|
Fix bugs in Raster#getAverageColor.
|
2011-05-15 14:13:47 +02:00 |
|
Jürg Lehni
|
3cb78db5f5
|
Fix typo.
|
2011-05-15 11:32:09 +01:00 |
|
Jürg Lehni
|
1dd0ee2533
|
Simplify Item#getId()
|
2011-05-14 22:38:27 +01:00 |
|
Jürg Lehni
|
5593eb94d0
|
Simplify Item#_removeFromParent().
|
2011-05-14 18:11:31 +01:00 |
|
Jürg Lehni
|
4e059af684
|
Reassign Item#_index in #reverseChildren().
|
2011-05-14 18:07:45 +01:00 |
|
Jürg Lehni
|
0bab694a01
|
Rename Item#children to private Item#_children and add #getChildren getter.
|
2011-05-14 18:07:10 +01:00 |
|
Jürg Lehni
|
df51b25fec
|
Add comment about plain properties that need to send _changed() notifications.
|
2011-05-14 17:57:23 +01:00 |
|
Jürg Lehni
|
de34f8c157
|
Clear Item#_index when removing item and simplify #getIndex().
|
2011-05-14 17:56:56 +01:00 |
|
Jürg Lehni
|
25c2d68f37
|
Switch to Item#_parent / #getParent() as property is read-only.
|
2011-05-14 17:56:14 +01:00 |
|
Jürg Lehni
|
a775e66632
|
Do not use #splice() for the initial push to the documents / children list.
|
2011-05-14 12:42:52 +03:00 |
|
Jonathan Puckey
|
34077dc901
|
Item#_getBounds: don't include bounds of hidden items.
|
2011-05-08 17:17:54 +01:00 |
|
Jürg Lehni
|
af8fd22ae2
|
Remove hyphen from event types, to go with the naming of the browser world more.
|
2011-05-08 15:35:10 +01:00 |
|
Jürg Lehni
|
20409f3084
|
Use Base.splice() for Layers too.
|
2011-05-07 17:27:19 +01:00 |
|
Jürg Lehni
|
566f52201c
|
Fix typo.
|
2011-05-07 17:11:12 +01:00 |
|
Jürg Lehni
|
d254d9542d
|
Add ChangeFlags.HIERARCHY, for future change notifications when children get rearranged.
|
2011-05-07 16:52:54 +01:00 |
|
Jürg Lehni
|
8c7b253bc2
|
Add Base.splice() to handle lists of items with _index referneces and use it for paper.documents and Item#children.
|
2011-05-07 16:11:05 +01:00 |
|
Jürg Lehni
|
79f55aa908
|
Fix recently introduce error in append().
|
2011-05-07 15:41:07 +01:00 |
|
Jürg Lehni
|
999fb129cc
|
Some code clean ups.
|
2011-05-07 15:40:02 +01:00 |
|
Jürg Lehni
|
9ef542ff9a
|
Add comment to #_canged().
|
2011-05-07 14:57:20 +01:00 |
|
Jürg Lehni
|
3ff2880ca8
|
Make Item#setDocument() and #removeFromParent() private.
|
2011-05-07 14:50:48 +01:00 |
|
Jürg Lehni
|
2f6fbcba74
|
Check result from removeFromParent().
|
2011-05-07 14:34:57 +01:00 |
|
Jürg Lehni
|
4e6e855461
|
Change '// TODO: Port' comments to '// PORT:'.
|
2011-05-07 14:18:27 +01:00 |
|
Jürg Lehni
|
dabc2b97ed
|
Implement change-notification in a proper way, using ChangeFlags that tell it what exactly has changed, and clearing caches accordingly.
|
2011-05-07 13:39:17 +01:00 |
|
Jürg Lehni
|
53cc1cd908
|
Apply #position optimisation through caching to all items, not just PlacedSymbol.
|
2011-05-07 13:13:19 +01:00 |
|
Jürg Lehni
|
1413094be2
|
Shorten PlacedSymbol#initialize().
|
2011-05-07 13:12:46 +01:00 |
|
Jürg Lehni
|
15b7cfec0b
|
Shorten Item#translate().
|
2011-05-07 13:09:04 +01:00 |
|
Jürg Lehni
|
72976f4191
|
Use internal _position in PlacedItem and transform it along when a matrix is applied.
|
2011-05-07 11:36:16 +01:00 |
|
Jürg Lehni
|
34785534e0
|
Use getPosition() rather than getBounds().getCenter().
|
2011-05-07 11:25:46 +01:00 |
|
Jürg Lehni
|
3a5aa466de
|
Add comments about things to change.
|
2011-05-07 10:07:21 +01:00 |
|
Jürg Lehni
|
6083faaf80
|
Use getter instead of beans property.
|
2011-05-07 09:56:27 +01:00 |
|
Jürg Lehni
|
5e4369d800
|
No need to call setter, we can set internal property directly here.
|
2011-05-07 09:55:56 +01:00 |
|
Jürg Lehni
|
c36db3a55c
|
Introduce private faster Matrix#_transform* methods that lack arguments checks, and use them internally.
|
2011-05-06 13:28:35 +01:00 |
|
Jürg Lehni
|
478002ea1c
|
Add comment about return undefined rather than null for unclear styles, and fix test.
|
2011-05-05 13:11:40 +01:00 |
|
Jürg Lehni
|
32ed418bdf
|
Remove unused parameter.
|
2011-05-05 11:20:37 +01:00 |
|
Jürg Lehni
|
a59fab0409
|
Only change style and notify item of change if it differs from current one.
|
2011-05-05 11:16:26 +01:00 |
|
Jürg Lehni
|
14549a383b
|
Improve Item#_getBounds().
|
2011-05-05 00:16:28 +01:00 |
|
Jürg Lehni
|
7334e824f5
|
Further optimise PathStyle code.
|
2011-05-05 00:08:55 +01:00 |
|
Jürg Lehni
|
23a29ced98
|
Optimise and comment PathStyle code.
|
2011-05-05 00:05:36 +01:00 |
|
Jürg Lehni
|
cc0f4a3f7e
|
Add PathStyle#clone().
|
2011-05-05 00:01:17 +01:00 |
|
Jürg Lehni
|
ab9cce137c
|
Separate PathStyle constructor into internal PathStyle.create(item, style) and public PathStyle(style).
|
2011-05-05 00:00:41 +01:00 |
|
Jürg Lehni
|
bdbbca487f
|
Remove rounding in drawSelectedBounds().
|
2011-05-04 17:44:08 +01:00 |
|
Jürg Lehni
|
49645f8a0d
|
Do not use short-forms and syntax magic in core API.
|
2011-05-03 09:34:07 +01:00 |
|
Jürg Lehni
|
52a73e86ce
|
Clean up code (for() -> for ()).
|
2011-05-03 08:54:13 +01:00 |
|
Jonathan Puckey
|
41120cf4d9
|
Various small code cleanups.
|
2011-05-02 12:23:42 +02:00 |
|
Jürg Lehni
|
cd58351864
|
Add comment about porting chainable calls back to Sg.
|
2011-04-30 22:30:54 +01:00 |
|
Jürg Lehni
|
4d999d57e2
|
Replace all type converting string compares with ===, !==.
|
2011-04-28 13:23:17 +01:00 |
|
Jonathan Puckey
|
ad8dfe91c7
|
Implement Raster#getStrokeBounds().
|
2011-04-28 12:56:08 +02:00 |
|
Jonathan Puckey
|
e1f5d4952d
|
Minor cleanups and fixes in Item.
|
2011-04-28 12:50:53 +02:00 |
|
Jonathan Puckey
|
861812f3ad
|
Fix bug in previous commit.
|
2011-04-28 12:39:55 +02:00 |
|
Jonathan Puckey
|
1666a36210
|
Have Item#_getBounds return a normal rectangle when called with includeStroke flag, since Item#getStrokeBounds is read only.
|
2011-04-28 12:38:57 +02:00 |
|
Jonathan Puckey
|
eed054af17
|
Item: implement getStrokeBounds, move getBounds functionality into _getBounds with an includeStroke flag. Also simplify the _getBounds code.
|
2011-04-28 12:33:03 +02:00 |
|
Jürg Lehni
|
d71450c0b1
|
Make sure selected argument is always a boolean.
|
2011-04-28 10:05:43 +01:00 |
|
Jürg Lehni
|
a9ea10ca7f
|
Move version of #getBounds() that handles children to Item, to eliminate duplicated code.
|
2011-04-28 10:04:36 +01:00 |
|
Jürg Lehni
|
6b6f27cb6e
|
Add TODOs about not returning -1 for undefined.
|
2011-04-27 17:53:59 +01:00 |
|
Jonathan Puckey
|
0700c51a85
|
Simplifications in Item#isDescendant & Item#isAncestor.
|
2011-04-27 16:16:05 +02:00 |
|
Jonathan Puckey
|
55fc2bc99c
|
Some minor changes to Item.
|
2011-04-27 16:10:23 +02:00 |
|
Jürg Lehni
|
bdfe35d93a
|
Consistently name local context variables 'ctx', to save line size and acknowledge the fact that Canvas contexts have a funny API design.
|
2011-04-26 15:39:16 +01:00 |
|
Jonathan Puckey
|
be8ee90f75
|
Document: use a hash for Document#_selectedItems to speed up adding to and removing from it.
|
2011-04-21 20:43:42 +02:00 |
|
Jonathan Puckey
|
cf541901dd
|
Rename getSelected methods to isSelected.
|
2011-04-21 19:51:49 +02:00 |
|
Jonathan Puckey
|
73b97dbfba
|
Implement segment point selection.
|
2011-04-21 18:06:06 +02:00 |
|
Jonathan Puckey
|
732caec7bf
|
Speed up drawing of selected items.
|
2011-04-21 15:48:21 +02:00 |
|