Jürg Lehni
|
ef972949c8
|
Merge branch 'refs/heads/intersect-fix'
Conflicts:
src/path/Curve.js
|
2013-10-29 16:06:02 +01:00 |
|
hkrish
|
ac04029f6e
|
Curve-line intersection fix
|
2013-10-29 15:52:46 +01:00 |
|
Jürg Lehni
|
63e4bd5db2
|
Do not use the point of the rotated curve to evaluate the parameter of the line.
Use the non-rotated curve instead.
|
2013-10-29 15:46:20 +01:00 |
|
Jürg Lehni
|
f20e8240cd
|
Use new range feature of solveCubic()
|
2013-10-29 15:44:42 +01:00 |
|
hkrish
|
bec1a91812
|
Calculate correct parameter for Curve-Line intersections
|
2013-10-29 00:10:20 +01:00 |
|
Jürg Lehni
|
b4850b572a
|
Improve variable naming.
|
2013-10-20 01:57:11 +02:00 |
|
Jürg Lehni
|
ddeacb1763
|
More code clean up.
|
2013-10-20 01:41:31 +02:00 |
|
Jürg Lehni
|
caa50236dd
|
Simplify winding algorithm by reusing orientation check.
|
2013-10-20 01:24:07 +02:00 |
|
Jürg Lehni
|
7c4518e4d0
|
Clean up some variable names.
|
2013-10-20 00:59:12 +02:00 |
|
Jürg Lehni
|
b91c8f93f8
|
Remove Curve. _getEdgeSum() again, and inline code in Path.isClockwise()
|
2013-10-18 19:51:54 +02:00 |
|
Jürg Lehni
|
f8106ae18f
|
Improve code handling special winding cases.
|
2013-10-18 15:20:32 +02:00 |
|
Jürg Lehni
|
75a209c002
|
Handle more special cases in winding algorithm.
|
2013-10-18 15:15:54 +02:00 |
|
Jürg Lehni
|
4f27be8f12
|
Include new, improved point in path algorithm based on winding number.
It's also possible to switch to using the canvas's native isPointInPath() through options.nativeContains
|
2013-10-18 14:22:59 +02:00 |
|
Jürg Lehni
|
a07538b205
|
Use same tolerance in Curve.isLinear() as in Curve#isLinear().
|
2013-10-17 20:19:34 +02:00 |
|
Jürg Lehni
|
24e46bee60
|
Merge branch 'refs/heads/boolean-fix'
|
2013-10-08 20:50:47 +02:00 |
|
Jürg Lehni
|
0860cdd941
|
Clean up code a bit.
|
2013-10-08 20:49:24 +02: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
|
cae4520665
|
Simplify addCurveLineIntersections() code.
|
2013-09-22 18:18:03 -07:00 |
|
hkrish
|
f9b4321a56
|
Boolean -fix: Interpolate to find the parameter of intersection in linear curve segments
|
2013-09-21 17:26:14 +02:00 |
|
hkrish
|
0a22211393
|
Conform to paperjs coding style.
|
2013-09-21 15:26:14 +02:00 |
|
hkrish
|
669fb1638a
|
Boolean -fix: Preserve the order of intersections found (Curve-Line) according to the PathItem they belong to.
|
2013-09-13 02:44:51 +02:00 |
|
Jürg Lehni
|
19c7788617
|
Fix documentation irregularities.
|
2013-08-23 19:45:28 -07:00 |
|
Jürg Lehni
|
6b19f25f4b
|
Fix typos in comments.
|
2013-08-08 15:21:35 -07:00 |
|
Jürg Lehni
|
ef4eee1064
|
Pass true for isParameter in Curve#divide() calls.
Closes #252.
|
2013-07-04 19:39:55 -07:00 |
|
Jürg Lehni
|
6833e9d8e0
|
Fix {@default 0.5} values in documentation.
|
2013-06-27 18:15:10 -07:00 |
|
Jürg Lehni
|
f9925a71ea
|
Improve documentation for Path#split(), Curve#divide() and Curve#split().
Closes #189.
|
2013-06-27 17:18:57 -07:00 |
|
Jürg Lehni
|
9f5b543ab5
|
Fix getCurveAt() signature.
|
2013-06-27 17:13:00 -07:00 |
|
Jürg Lehni
|
38db18c2e1
|
Remove isParameter from Curve.evaluate()
|
2013-06-27 17:12:35 -07:00 |
|
Jürg Lehni
|
52c889428b
|
Remove Curve.create() in favor of direct constructor.
|
2013-06-25 09:54:13 -07:00 |
|
Jürg Lehni
|
1866e4ff15
|
Remove need for all special arguments in minification, and restructure code to avoid warnings.
|
2013-06-24 10:15:54 -07:00 |
|
Jürg Lehni
|
a4535edbb9
|
Bring back _class names, since code minification breaks reliance on constructor.name.
Closes #248.
|
2013-06-23 20:18:32 -07:00 |
|
Jürg Lehni
|
258c404b98
|
Move curvature calculations into Curve.evaluate(), and define unit tests for it.
|
2013-06-18 19:00:05 -07:00 |
|
Jürg Lehni
|
619a8f88f8
|
Clean up code a bit in Curve#getCurvatureAt().
|
2013-06-18 18:29:44 -07:00 |
|
hkrish
|
d4d2075040
|
Fix: Use absolute coordinates from #Curve.getValues() directly while calculating the curvature
|
2013-06-17 22:27:20 +05:30 |
|
Jürg Lehni
|
8a726f22b2
|
Clean up comments.
|
2013-06-17 08:57:30 -07:00 |
|
Jürg Lehni
|
b072df0486
|
Put isEnd value directly into conditional.
|
2013-06-17 08:56:42 -07:00 |
|
Jürg Lehni
|
18ad8a235d
|
Clean up code to follow Paper.js coding conventions.
|
2013-06-17 08:26:51 -07:00 |
|
Jürg Lehni
|
be6bbb802d
|
Move calculations of values to where they are needed.
|
2013-06-17 08:22:28 -07:00 |
|
Jürg Lehni
|
5ff990a84a
|
Fix global variable leakage, and join sequential variable definitions.
|
2013-06-17 08:10:57 -07:00 |
|
hkrish
|
2693516844
|
Implement correct method for calculating curvature on a Path
|
2013-06-17 15:16:11 +05:30 |
|
Jürg Lehni
|
eb32bad57e
|
Fix imprecision in #getNearestLocation()
|
2013-06-15 03:12:29 -07:00 |
|
Jürg Lehni
|
1dee05900f
|
Move getArea code to other statics block.
|
2013-06-13 23:16:44 -07:00 |
|
Jürg Lehni
|
610e396d94
|
Make Curve#_getCrossings() a static method and have it work on curve values directly.
|
2013-06-13 23:16:00 -07:00 |
|
Jürg Lehni
|
01e48b3322
|
Improve and clean up fat-line bug fix.
|
2013-06-13 15:53:28 -07:00 |
|
Jürg Lehni
|
95ecab8a6f
|
Improve handling of merged CompoundPath style through #getStyle().
Only access _style directly in core code if you really know what you're doing!
|
2013-06-12 20:12:08 -07:00 |
|
Jürg Lehni
|
f45a66d2ee
|
Filter out curves with zero length in Path#contains() algorithm.
Fixes #227
|
2013-06-12 00:19:54 -07:00 |
|
Jürg Lehni
|
7faf2a9e70
|
Clean-up @hkrish's changes a bit.
|
2013-06-09 18:37:08 -07:00 |
|
hkrish
|
d8498b6418
|
Remove invalid code and unnecessary comments
|
2013-06-09 22:02:50 +05:30 |
|
hkrish
|
d3405115c1
|
Use parameter on both curves in CurveLocation objects instead of Point in #getIntersection()
|
2013-06-08 21:37:43 +05:30 |
|
Jürg Lehni
|
cd7db56249
|
Remove all create() constructors for basic types since new constructors are now faster.
Woop!
|
2013-05-27 23:57:31 -07:00 |
|