Commit graph

1231 commits

Author SHA1 Message Date
Jürg Lehni
3b9369fafb Handle special setter for hue in Color.extend() as well, and move defintion of various Color classes to Color file since they are one-liners now. 2011-05-19 19:00:36 +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
Jürg Lehni
b37ba3d858 Add a generic clone() method to all classes through Base which creates a new item using the constructor and passing 'this'. 2011-05-19 18:34:22 +01:00
Jürg Lehni
6854f7d026 Update comments in bootstrap.js. 2011-05-19 18:33:34 +01:00
Jonathan Puckey
a7fc55c998 Small update to Phyllotaxis Raster. 2011-05-19 18:42:03 +02:00
Jonathan Puckey
9c9b498e4a Simplify Extruded example. 2011-05-19 17:16:19 +02:00
Jonathan Puckey
958c19c572 Update Chain example. 2011-05-19 17:15:42 +02:00
Jonathan Puckey
1e18c38d35 Optimize the PhyllotaxisRaster example and use an image of a sunflower. 2011-05-19 17:00:08 +02:00
Jonathan Puckey
f965e53a06 Optimize Path#getAverageColor 2011-05-19 15:43:23 +02:00
Jonathan Puckey
df15cf6970 Merge branch 'master' of github.com:scriptographer/paper.js 2011-05-19 15:41:34 +02:00
Jürg Lehni
e49b02b8c1 Just use layer.position to (re-)position all stars. 2011-05-18 21:32:34 +01:00
Jürg Lehni
ac213e94b4 Fix bug introduced in recent change to #getStrokeBounds(): We need to pass matrix as optional argument to #getBounds(). 2011-05-18 21:32:00 +01:00
Jürg Lehni
106719597b Further simplify Color code by moving components definitions to one object. 2011-05-18 21:21:28 +01:00
Jürg Lehni
a17f7865a3 Simplify Color subclass construction by moving beans producing code into an extended Color.extend() function that handles it for us. 2011-05-18 21:11:59 +01:00
Jürg Lehni
dfc6a05969 Shorten some converters a bit. 2011-05-18 20:40:52 +01:00
Jürg Lehni
9b95ba095c Don't capitalize twice. 2011-05-18 20:37:09 +01:00
Jürg Lehni
d643ac7626 Less cryptic code without Base.each() side-car makes more sense here. 2011-05-18 20:36:24 +01:00
Jürg Lehni
2367cfa6f2 Simplify Color code by merging all injection scopes to one. 2011-05-18 20:35:18 +01:00
Jonathan Puckey
e8cf29fd6c Size#min and Size#max: fix capitalization. 2011-05-18 21:31:02 +02:00
Jonathan Puckey
0a385d56a7 Replace accidental beans access with direct access of internal property. 2011-05-18 20:22:57 +02:00
Jonathan Puckey
72a3dfa572 Path_Bounds.js test: remove unnecessary code. 2011-05-18 20:11:59 +02:00
Jonathan Puckey
6afba408c5 Fix test. 2011-05-18 20:08:52 +02:00
Jonathan Puckey
b4807b9b7c Fix Path#getStrokeBounds: use Path#getBounds when no strokeColor or strokeWidth are set. 2011-05-18 20:08:10 +02:00
Jonathan Puckey
0ab9e38068 Merge remote branch 'origin/master' 2011-05-18 19:48:40 +02:00
Jonathan Puckey
e0f6d62597 Add failing test where getting Path#strokeBounds on a path without a stroke returns the wrong bounds. 2011-05-18 19:48:29 +02:00
Jürg Lehni
cca4a44d03 Merge remote-tracking branch 'origin/master' 2011-05-18 15:44:33 +01:00
Jürg Lehni
86ca1ed1e7 Add comment explaining color conversion code. 2011-05-18 15:37:01 +01:00
Jonathan Puckey
7e85c06b13 Add Phyllotaxis Raster example to Scripts. 2011-05-18 16:03:25 +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
93d3214a35 Fix porting error in GradientStop. 2011-05-18 10:04:46 +01:00
Jürg Lehni
db1a25933a Replace accidental beans access with direct access of internal property. 2011-05-18 09:43:32 +01:00
Jürg Lehni
88332d763d Simplify GradientColor#equals(). 2011-05-18 09:42:09 +01:00
Jürg Lehni
57eabed874 Simplify GradientStop#equals(). 2011-05-18 09:40:03 +01:00
Jürg Lehni
8b2709f5d8 Replace accidental beans access with direct access of internal property. 2011-05-18 09:38:45 +01:00
Jürg Lehni
eb6b838cf4 Simplify GradientStop#setRampPoint(). 2011-05-18 09:38:20 +01:00
Jürg Lehni
fc52944ee8 Change method sequence a bit. 2011-05-17 13:43:45 +01:00
Jürg Lehni
160f3d55c7 Make View#transform() private. 2011-05-17 13:43:10 +01:00
Jürg Lehni
f3f5515763 Add comment about potential renaming of artworkToView -> projectToView? 2011-05-17 13:42:45 +01:00
Jürg Lehni
ac364014da Actually use matrix when drawing view. 2011-05-17 13:42:20 +01:00
Jürg Lehni
2f63127b02 Simplify and fix View#setZoom(). 2011-05-17 13:41:42 +01:00
Jürg Lehni
26269d394a Rename project/ProjectView -> ui/View. 2011-05-17 13:29:07 +01:00
Jürg Lehni
7b4dd222ac Completely decouple ProjectView from Project. 2011-05-17 13:25:46 +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
c07f9b438e Use same modification in static create() method of ParagraphStyle and CharacterStyle as was used in PathStyle. 2011-05-17 13:14:04 +01:00
Jürg Lehni
2c03cb1ccb Use Base.initialize() in both ParagraphStyle and CharacterStyle's #initialize(). 2011-05-17 13:13:24 +01:00
Jürg Lehni
6427bca46e No beans required in ParagraphStyle yet. 2011-05-17 13:12:44 +01:00