Commit graph

48 commits

Author SHA1 Message Date
Jürg Lehni
db82f41151 Update year, author email addresses and links 2020-05-23 22:24:42 +02:00
sapics
be4199b6eb Update copyright year to 2019 2018-12-27 16:13:01 +09:00
sapics
cfc5a912da Replace url to avoid redirection
Replace http://jonathanpuckey.com to https://puckey.studio
2018-11-14 11:24:32 +01:00
Jürg Lehni
083a09604d Hit-Tests: Fix issue with non-invertible matrices.
Closes #1271
2017-03-09 12:42:11 +01:00
Jürg Lehni
f9d06d8ae4 Hit Tests: Implement options.position.
Closes #1249
2017-03-08 23:01:12 +01:00
Jürg Lehni
e7b53c8a22 Implement Curve#classify() based on Loop and Blinn.
And use it to simplify curve self-intersection handling.

Relates to #773, #1074, Closes #1235
2017-01-11 15:01:10 +01:00
Jürg Lehni
0ae2ded9cc Fix handling of hit-test tolerance on scaled items with #applyMatrix = false
Closes #1195
2017-01-08 14:34:58 +01:00
Jürg Lehni
97abd80bab Replace all occurences of Math.sqrt(2) with Math.SQRT2 2016-12-29 10:56:06 +01:00
Jürg Lehni
41f7e58ca9 Include issue number forgotten in previous commit. 2016-12-23 23:13:18 +01:00
Jürg Lehni
b59baeb9aa Fix stroke hit-testing for rounded shape items.
Closes #1207
2016-12-23 23:11:17 +01:00
Jürg Lehni
a0417040f8 Improve handling of sub-path orientation in CompoundPath.
Remove automatic orientation on insertion, as it caused more troubles than solved problems, in favor of the new PathItem#reorient() method, or the even-odd fill-rule.

Closes #590, #1029
2016-07-21 15:21:45 +02:00
Jürg Lehni
6df4602b2b Fix #977: Implement unit-tests. 2016-02-16 20:52:07 +01:00
Jürg Lehni
4a947317fb Implement #hitTestAll() on Item and Project
Along with unit tests and documentation.
Closes #536
2016-02-14 12:39:35 +01:00
Jürg Lehni
0ae232e4ab Implement support for clip-masks in hit-testing.
Closes #671
2016-02-09 17:02:03 +01:00
Jürg Lehni
bc2729683c Core: Renamed Symbol and PlacedSymbol classes and properties.
- Symbol -> SymbolDefinition
- PlacedSymbol -> SymbolItem
- Symbol#definition -> SymbolDefinition#item
- PlacedSymbol#symbol -> SymbolItem#definition
- Deprecate Project#symbols

Closes #770
2016-01-31 16:52:51 +01:00
Jürg Lehni
4c84c3dad5 Tests: Start getting QUnit tests to work on Node.js
Work in progress…
2016-01-31 12:43:20 +01:00
Jürg Lehni
0e427c16a2 Fix some white-spaces in comments and HTML. 2015-12-30 21:55:20 +01:00
Jürg Lehni
9d4066da1c Implement unit tests for getWinding() and zero-winding curves.
Closes #819
2015-12-30 21:55:20 +01: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
593590d707 Start implementing unit tests for hit-testing options. 2015-04-12 15:14:03 +02:00
Jürg Lehni
99ef521af4 Switch from inline @option tags to real doc tags. 2014-10-20 23:33:28 +02:00
Jürg Lehni
48cb05a181 Replace tabs with 4 white-spaces. 2014-08-16 19:24:54 +02:00
Jürg Lehni
93a97c7446 Reflect recent change in Item#hitTest() options. 2014-04-13 18:12:40 +02:00
Jürg Lehni
1bede6f7ec Implement tests for hit-testing compound-paths. 2014-04-10 22:27:29 +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
a1c74b8fd3 Explicitly state raster resolution in unit tests.
Since #rasterize() uses the HiDPI resolution if present now.
2014-03-18 11:20:50 +01:00
Jürg Lehni
cf8a668383 Fix HitResult test for new handling of tolerance. 2014-03-04 09:56:46 +01:00
Jürg Lehni
e22fa3a664 Update copyright notice. 2014-01-04 01:47:16 +01:00
Jürg Lehni
48c8946f9e Implement correct hit-testing tolerance using transformed 2D stroke padding rather than unscaled numerical tolerance.
But we still need to factor in the View zoom as well...
2013-12-10 12:52:42 +01:00
Jürg Lehni
2896f14e43 Define test for hit-testing fill with tolerance. 2013-12-08 12:26:11 +01:00
Jürg Lehni
8c9ac92a59 Define failing test for hit-testing bounds on raster items.
Linked to issue #247.
2013-06-23 19:48:46 -07:00
Jürg Lehni
e59ae78285 Improve hit-testing tests for guides. 2013-06-23 19:00:57 -07:00
Jürg Lehni
dca049c6ab Implement failing test for hit-testing guides. 2013-06-23 18:18:49 -07:00
Jürg Lehni
f45fa853e7 Improve new hit-testing test. 2013-06-23 17:54:24 -07:00
Jürg Lehni
3b782f6338 Implement failing test for #243. 2013-06-23 17:52:31 -07:00
Jürg Lehni
5d48513f8a Define failing test for hit-testing miter strokes. 2013-06-13 11:07:43 -07:00
Jürg Lehni
6c9c16ad3d Update copyright information comments, and year. 2013-01-28 18:03:27 -08:00
Jonathan Puckey
90e475b5f9 Support hit-testing of placed-symbols and add test. Closes #131. 2012-11-23 20:29:36 +01:00
Jonathan Puckey
51d6e5e52d Add hitTest tests of which one fails. 2012-11-23 19:47:43 +01:00
Jonathan Puckey
cbf2b8b641 Add failing tests. 2012-04-25 19:48:09 +02:00
Jürg Lehni
6713d6aaa8 Clean up test code. 2011-11-11 14:47:25 +01:00
Jonathan Puckey
d61f70f443 Add failing Path#hitTest(point) test. 2011-07-28 16:55:14 +02:00
Jonathan Puckey
f7711fab57 Add failing HitResult test. 2011-07-15 15:07:12 +02:00
Jonathan Puckey
d90be80fbe More work on HitResult tests. 2011-07-15 14:53:54 +02:00
Jonathan Puckey
db620e62be Fix mistake in HitResult test. 2011-07-15 11:31:12 +02:00
Jonathan Puckey
cb65399063 Add 2 more HitResult tests, which test hitting selected paths and guides. 2011-07-14 14:24:32 +02:00
Jonathan Puckey
738573e224 Add more HitResult tests. 2011-07-13 18:19:00 +02:00
Jonathan Puckey
1ffb8debc3 Add HitResult tests (work in progress). 2011-07-13 17:35:54 +02:00