Jürg Lehni
30e6835745
One more test for correctly linked curves after segment insertion.
...
Currently failing.
2015-10-24 17:42:36 +02:00
Jürg Lehni
ae2bed9cf0
Fix issue of faulty curves list after inserting segments at the end of open paths.
2015-10-24 17:00:37 +02:00
Jürg Lehni
5afcca928e
Define failing test for issue with Path#split() and Path#curves array.
2015-10-24 16:38:13 +02:00
Jürg Lehni
8b67d8a1dc
Remove #isStraight() in favor of #hasHandles() and implement #clearHandles()
...
Relates to #652
2015-09-06 12:47:35 +02:00
Jürg Lehni
f8314f927e
Various changes on #isLinear(), #hasHandles() & co
...
Relates to #652
- Implement #hasHandles() on Path, Segment and Curve
- Remove Path#isPolygon()
- Define #isLinear() consistently across Path, Segment and Curve.
- Introduce new Segment#isStraight()
2015-08-17 14:31:23 +02:00
Jürg Lehni
318209e9e9
Replace compareNumbers() with equals() and improve numerical tolerance handling in test helpers.
2014-11-30 11:27:14 -08:00
Jürg Lehni
48cb05a181
Replace tabs with 4 white-spaces.
2014-08-16 19:24:54 +02:00
Jürg Lehni
f002c633a7
Remove trailing white spaces and ensure newlines at the end.
2014-04-06 13:48:03 +02:00
Jürg Lehni
e22fa3a664
Update copyright notice.
2014-01-04 01:47:16 +01:00
Jürg Lehni
1ee6bb7e79
Use isZero() when checking for straight curves in Curve.getLength()
2013-09-23 08:13:32 -07:00
Jürg Lehni
06ffd8089d
Fix issue in Path#removeSegments() where curves are removed wrongly when start index is 0.
...
Closes #200 .
2013-04-26 08:46:57 -07:00
Jürg Lehni
24443c548a
Define failing test for issue #200 .
2013-04-26 08:41:18 -07:00
Jonathan Puckey
2fa9e7cf5c
Add failing test for Path#split, where splitting a straight path should produce linear segments.
2013-03-16 18:08:31 +01:00
Jürg Lehni
6c9c16ad3d
Update copyright information comments, and year.
2013-01-28 18:03:27 -08:00
Jürg Lehni
d2b799f4db
Fix various issues with Path#curves synchronization.
2012-12-31 22:21:50 +01:00
Jürg Lehni
4aa9c83708
Change path.curves tests to include test for inserting first segment too.
2012-12-31 21:56:17 +01:00
Jürg Lehni
4d51173881
Keep Path#curves in sync properly when removing the last segment of an open path.
...
Closes #138 .
2012-11-23 13:58:13 -08:00
Jonathan Puckey
4c2598e78a
Tests: add curve tests, of which one currently fails.
2012-11-23 17:47:42 +01:00
Jonathan Puckey
d20fb61c7c
Cleanup code.
2012-04-25 20:47:53 +02:00
Oliver Beattie
63b576b9a6
Actually ensure the length is cached at first on Curves before testing
2012-03-17 19:54:18 +00:00
Oliver Beattie
3c7563a3bf
When a path is transformed, the _length cache of its Curves should be invalidated
2012-03-17 17:09:54 +00:00
Jürg Lehni
5655981f6d
Clean up white spaces.
2011-07-07 16:09:02 +02:00
Jürg Lehni
79c0ad8cc5
Update copyright notices.
2011-07-01 12:17:45 +02:00
Jonathan Puckey
a2a8939d5d
Path# rename #pointsToCurves to #simplify and #curvesToPoints to #flatten.
2011-06-20 19:17:07 +02:00
Jonathan Puckey
aecee41890
Add failing Path#curveToPoints tests.
2011-06-05 21:26:36 +02:00
Jürg Lehni
2a24ec66ac
Have test() method automatically create and remove a Document for reach test.
2011-05-14 18:59:04 +01:00
Jürg Lehni
fb6955e509
Replace compareSegments() / compareSegmentLists() calls with straight toString() compares.
2011-05-04 19:40:52 +01:00
Jürg Lehni
a5099fd51d
Add support for insertion of multiple segments at once to Path#_add(), #add() and #insert(), and change code that relies on these methods.
2011-05-04 18:42:40 +01:00
Jürg Lehni
a0e211c691
Big refactoring of how curves are kept in sync with segments (direct references rather than indices), along with various tests.
2011-05-03 00:25:23 +01:00