Jürg Lehni
08e51b5ca4
Fix failing SVG unit test.
2016-02-15 08:42:59 +01:00
Jürg Lehni
3ee46ffc5c
Matrix: Switch to a better implementation of #decompose()
...
This now also correctly handles skewing in SVG export.
2016-02-14 10:59:57 +01:00
Jürg Lehni
e35a55fe66
Flip Matrix properties #b and#c
...
Their definition was reversed from almost all other Matrix implementations I've encountered.
2016-02-14 10:53:10 +01:00
Jürg Lehni
a38834b81d
Further refined code from 095cd47c1c
2016-01-26 16:59:27 +01:00
sapics
095cd47c1c
Minifier matrix._transformCoordinates function
2016-01-26 12:07:34 +09:00
Jürg Lehni
e4b03a7915
More code cleanup and simplifications in Matrix.
...
Relates to #915
2016-01-19 10:14:20 +01:00
sapics
627a63cc5b
Fix matrix invert calculation
2016-01-19 16:08:39 +09:00
Jürg Lehni
40551fcacf
Make Matrix#orNullIfIdentity() private too, and fix error introduced by previous commit.
2016-01-17 19:34:54 +01:00
Jürg Lehni
d292e08ed2
Various renaming and introduction of additional methods in Matrix
...
- Rename Matrix#concatenate() to #append() and #preConcatenate() to #prepend().
- Over #invert() as alternative to #inverted(), directly modifying the matrix.
- Make Matrix#_shiftless() and internal function.
- Introduce versions that return copies instead, named #appended(). (previously #chain()) and #prepended().
- Rename internal Path#_getPenPadding() to #_getStrokePadding().
2016-01-17 19:30:47 +01:00
Jürg Lehni
36cb88de4d
Write documentation for Project#addLayer() and #insertLayer()
...
Closes #903
2016-01-16 16:51:47 +01:00
Jürg Lehni
3a3d46692b
Give view proper Matrix transformation functions, just like on Item.
...
Relates to #832
2016-01-16 15:10:28 +01:00
Jürg Lehni
16e42c68fd
Various minor documentation fixes (mainly capitalization).
2016-01-15 23:22:08 +01:00
Jürg Lehni
31297c359a
Update JSDoc.
...
Now with proper Markdown support!
2016-01-15 17:21:49 +01:00
Jürg Lehni
d5f2ff479d
Further overhaul and streamline handling of view and tool mouse-events.
2016-01-14 02:08:33 +01:00
Jürg Lehni
4830562e4f
Tweak documentation added to Point / Size #min() / #max() a bit.
2016-01-10 18:13:11 +01:00
Jürg Lehni
7b29bb177d
Merge remote-tracking branch 'megawac/526-reduce' into megawac-526-reduce
2016-01-10 18:06:11 +01:00
Jürg Lehni
e8390a76d8
Define Path#toShape() and Shape#toPath() as aliases to #clone().
2016-01-09 12:08:47 +01:00
Jürg Lehni
f2ae7840cf
A lot of work on documentation.
...
- @values lists
- Improve event documentation
- Compound path
- etc.
2016-01-08 20:45:54 +01:00
Jürg Lehni
56869baaad
Only transform canvas if matrix is not the identity.
2016-01-07 22:07:26 +01:00
Jürg Lehni
b9c76f44e8
Convert "Note: " comments to "NOTE: " and do some cleanup.
2016-01-06 14:23:19 +01:00
Jürg Lehni
7152942719
Replace links to issues with short references.
2016-01-06 14:13:02 +01:00
Jürg Lehni
df580425f4
Remove sameDir parameter from isCollinear() agian.
...
It's not in use anywhere now.
2016-01-06 11:08:17 +01:00
Jürg Lehni
cb6afda083
Add sameDir parameter it #isCollinear() functions and use it in Path#reduce().
2016-01-05 14:51:55 +01:00
sapics
3f50aadf3b
Fix comment of rectangle.expand
2015-12-31 13:04:00 +09:00
Jürg Lehni
a7a07fb6d5
Update JSDoc and do some documentation spring-cleaning.
...
- Convert from {@code ...} to shorter `...`
- Reformat some documentation comment blocks
- Update copyright notices
2015-12-30 21:55:19 +01:00
Jürg Lehni
a79212b920
Make handling of points on infinite lines in Line.getSide() more clear.
2015-10-21 10:00:11 +02:00
Jürg Lehni
0cb792de93
Reverse sign of Line.getSignedDistance()
...
Closes #789
2015-10-21 09:35:40 +02:00
Jürg Lehni
1f476c2107
Improve CurveLocation#isTouching() to better handle straight lines.
2015-10-21 01:10:24 +02:00
Jürg Lehni
140fba56cc
Fix Line#isCollinear() and #isOrthogonal()
2015-10-20 23:37:37 +02:00
Jürg Lehni
e92a71e8c7
Switch to improved version of Line. getSignedDistance()
...
Based on the error analysis by @iconexperience outlined in #799
2015-10-08 22:56:05 +02:00
Jürg Lehni
be2f98d91a
Optimize various isCollinear() and isOrthogonal() methods.
2015-10-03 17:42:52 -04:00
Jürg Lehni
5d7a596026
Fix wrong upper bounds check in Line.intersect()
...
1 as a solution was accidentally excluded.
2015-10-03 11:44:43 -05:00
Jürg Lehni
9b883e5fb6
Introduce new TRIGONOMETRIC_EPSILON with higher precision than GEOMETRIC_EPSILON.
2015-10-01 20:44:27 -05:00
Jürg Lehni
0ca5a106de
Improve Line.intersect() comments.
2015-10-01 04:50:41 -05:00
Jürg Lehni
75a004187e
Improve Line.intersect() to more reliably find interesctions at the beginnings / ends.
...
Relates to #784
2015-10-01 04:38:48 -05:00
Jürg Lehni
4e9bac1ca5
Fix code brokean in commit a869add90d
2015-09-30 12:39:59 -05:00
Jürg Lehni
a869add90d
Rename variables in Line.intersect()
2015-09-26 12:09:44 -05:00
Jürg Lehni
515d4ff93d
Make Line.isCollinear() / Point#isCollinear() more reliable.
2015-09-23 13:26:29 -04:00
Jürg Lehni
84bcc537e1
Simplify addCurveLineIntersections() and exclude end points.
2015-09-21 12:13:53 -04:00
Jürg Lehni
f47af12b0d
Shorten code statement.
2015-09-20 23:22:41 +02:00
Jürg Lehni
fb5f8c0115
Introduce GEOMETRIC_EPSILON, for isOrthogonal(), isCollinear() and overlap checks.
...
Relates to #777
2015-09-12 10:35:47 +02:00
Jürg Lehni
b52d343527
Use same notation for all injection scopes.
2015-09-06 16:48:23 +02:00
Jürg Lehni
cf813faa75
Remove all mention of points and square points as units.
...
And some other doc clean-ups.
2015-09-06 16:37:10 +02:00
Jürg Lehni
f91373efd8
Simplify Point#project()
2015-09-06 14:01:04 +02:00
Jürg Lehni
d656c96191
Adjust #isCollinear() tolerance.
2015-08-26 17:09:40 +02:00
Jürg Lehni
2c4dcb96c2
Streamline addOverlap() code a bit.
2015-08-26 11:26:55 +02:00
Jürg Lehni
157a60dee6
Fix spelling mistake.
2015-08-22 23:22:01 +02:00
sapics
687eca9677
fix
2015-08-21 15:35:30 +09:00
sapics
e15b23f8af
code minifier
2015-06-23 13:09:48 +09:00
Jürg Lehni
26cdbb6805
Fix typo: #isColinear() -> #isCollinear()
...
Keeping misspelled version around for a while.
2015-06-16 18:39:52 +02:00