Commit graph

3696 commits

Author SHA1 Message Date
hkrish
143448c054 delete tags 2013-04-22 16:20:18 +02:00
hkrish
282b19b6bc Readme, Licence etc. 2013-04-22 16:18:44 +02:00
hkrish
eec2638146 more tests 2013-04-22 11:55:44 +02:00
hkrish
f3e278f13b Fixes in finding the "base-contour" 2013-04-22 11:55:34 +02:00
hkrish
af48103417 Added more tests 2013-04-21 22:28:02 +02:00
hkrish
e74c2894e9 Reorient CompoundPaths so that holes and islands are handled correctly 2013-04-21 22:25:35 +02:00
hkrish
0fb83df73f Resolve self intersections in a single path 2013-04-21 21:19:22 +02:00
hkrish
1f428cbddc Update header comment 2013-04-21 19:16:50 +02:00
hkrish
cca42872ed Throw more errors 2013-04-21 18:11:58 +02:00
Jürg Lehni
1cbb303941 Add SpaceUsingShapes.html, as an example for Shape.Circle() 2013-04-21 09:00:53 -07:00
hkrish
43d3243179 Throw errors when the graph cannot be traversed 2013-04-21 17:45:58 +02:00
Jürg Lehni
e428074f46 Define some failing tests for Rectangle(object) constructors. 2013-04-21 08:45:07 -07:00
Jürg Lehni
dc9a9c42d2 Cleanup solveCubic() further. 2013-04-21 08:44:41 -07:00
Jürg Lehni
2fc4ff10ee Implement Item#_contains() with local coordinates, and have Item#contains() take Item#matrix into account. 2013-04-21 08:43:05 -07:00
Jürg Lehni
13276b7134 Define more unit tests for Shape#contains(). 2013-04-21 07:44:50 -07:00
Jonathan Puckey
b8085c330f Rename properties to object in Rectangle constructor docs. 2013-04-21 16:07:54 +02:00
Jonathan Puckey
3136480e5e Clean up Segment object constructor example. 2013-04-21 16:02:26 +02:00
Jonathan Puckey
3517493f76 Improve PointText constructor examples. 2013-04-21 15:59:51 +02:00
Jonathan Puckey
52e7c39567 Improve Curve documentation. 2013-04-21 15:43:57 +02:00
Jonathan Puckey
e4203c2e36 Improve Color documentation. 2013-04-21 15:36:20 +02:00
Jonathan Puckey
d4d1a0fdae Improve Style example code. 2013-04-21 15:36:03 +02:00
Jonathan Puckey
191213f362 Improve GradientStop example code. 2013-04-21 15:35:45 +02:00
Jonathan Puckey
fbc3985bbf Add Gradient class examples. 2013-04-21 15:35:31 +02:00
hkrish
0108f004f1 Don't create handles if curves are linear 2013-04-21 14:57:29 +02:00
hkrish
c5984bb9f4 Avoid cloning the segments whil making a graph 2013-04-21 14:38:57 +02:00
Jonathan Puckey
fdd367e1c2 Add titles to Path.Constructors documentation examples. 2013-04-21 13:58:22 +02:00
Jonathan Puckey
a5997dcc24 Add example to Item#contains(point) docs. 2013-04-21 13:56:29 +02:00
Jonathan Puckey
daf8d0f881 Rename 'properties' constructor parameter to 'object' in docs. 2013-04-21 13:54:31 +02:00
Jonathan Puckey
0369f5aea9 Fix mistake in example code. 2013-04-21 13:53:13 +02:00
hkrish
07aeadac6c Using CurveLocation objects now 2013-04-21 13:51:51 +02:00
Jürg Lehni
4b24690207 Implement Shape#contains() and define unit tests for it. 2013-04-20 20:54:06 -07:00
Jürg Lehni
2793709935 Fix wrong Shape.Circle size. 2013-04-20 20:53:40 -07:00
Jürg Lehni
db7eb65bd7 Implement Item#contains() and use it for hit-testing Rasters. 2013-04-20 20:41:52 -07:00
Jürg Lehni
bb03c72ce8 Implement Item#hasFill(). 2013-04-20 20:40:20 -07:00
Jürg Lehni
acd3236989 Optimize Shape constructors by passing along point. 2013-04-20 20:24:16 -07:00
Jürg Lehni
e8695dee9b Replace solveCubic() code with version that does not use cbrt() calls. 2013-04-20 20:04:23 -07:00
Jürg Lehni
6fc2d50939 Remove cbrt() since we don't use it anymore. 2013-04-20 20:00:11 -07:00
Jürg Lehni
c45ad26b67 Remove tolerance parameter from solveCubic() / solveQuadratic() since we should always use EPSILON. 2013-04-20 19:58:42 -07:00
Jürg Lehni
14aa8e5dea Improve precision of Numerical.solveCubic() and fix issues in Curve.getCrossings().
Closes #202.
2013-04-20 19:14:19 -07:00
Jürg Lehni
461def5383 Fix issue with imprecise tangents / normals to curves at t = 0, 1. 2013-04-20 17:40:19 -07:00
Jürg Lehni
1952e3dc7d Implement Curve#getCurvatureAt(). 2013-04-20 17:26:51 -07:00
Jürg Lehni
163036ec72 Define unit tests for Path#contains, some are currently failing. 2013-04-20 17:25:37 -07:00
Jürg Lehni
bcb10a222f Add SvgImport example for Inkscape and fix issue with multiple SVG path commands.
Closes #203.
2013-04-20 14:54:21 -07:00
hkrish
9f844eb69a Changed the URL on the header 2013-04-20 19:54:45 +02:00
Jürg Lehni
3025c63179 Simplify Style creation. 2013-04-19 20:00:30 -07:00
Jürg Lehni
41a58acb8c Document new approach to styles. 2013-04-19 19:51:04 -07:00
Jürg Lehni
f51dc65cca Use Color object for default. 2013-04-19 19:39:05 -07:00
Jürg Lehni
53dac53ca0 Restructure code organization by separating canvas related utility classes into separate canvas folder, and move inclusion of utilities classes to beginning.
Was needed because Numerical.KAPPA is accessed at compile time.
2013-04-19 19:38:48 -07:00
Jürg Lehni
e1807214f4 Large refactoring of Style handling for notable speed improvements. 2013-04-19 19:31:29 -07:00
Jürg Lehni
98f7c020bd Use Item#type instead of instanceof checks for better performance. 2013-04-19 19:27:02 -07:00