Commit graph

1823 commits

Author SHA1 Message Date
Jürg Lehni
1b0dca0ea4 Use #fullySelected instead of #selected. 2011-06-16 22:51:18 +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
8454709559 Improve Vektor example. 2011-06-16 22:50:27 +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
9c017c431d Update JsDoc. 2011-06-14 23:03:52 +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
658fc4b2ff Fix Path#selected tests. 2011-06-14 15:37:46 +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
d27ff7803c Fix Path#arcTo() tests. 2011-06-14 13:09:06 +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
5a601f39a4 Fix tests for Point#getDirectedAngle(point). 2011-06-14 12:44:56 +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
e69395ced0 Add failing test. 2011-06-14 12:19:54 +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
570fa4fbeb Update JsDoc. 2011-06-13 23:51:26 +01:00
Jürg Lehni
c4d0d80f3b Only build paper.js library for docs, not for server templates. 2011-06-13 23:50:43 +01:00
Jürg Lehni
fbf7016e7c Update JsDoc. 2011-06-13 19:32:20 +01:00
Jürg Lehni
fc6b3cd4d5 Merge remote-tracking branch 'origin/master' 2011-06-13 19:09:47 +01:00
Jürg Lehni
a3d1875971 More clean ups. 2011-06-13 19:09:10 +01:00
Jonathan Puckey
8979537f14 Merge remote branch 'origin/master' 2011-06-13 20:08:30 +02:00
Jonathan Puckey
71c5902112 Path tests: Change expected values in failing test, as the tested behaviour is correct. 2011-06-13 20:08:09 +02: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