Branch: refs/heads/event-target-type
Home: https://github.com/cytoscape/cytoscape.js
Commit: 40c3ad5e3ab2babd414a6b08397cc9c80a1f0dbb
https://github.com/cytoscape/cytoscape.js/commit/40c3ad5e3ab2babd414a6b08397cc9c80a1f0dbb
Author: Max Franz <[email protected]>
Date: 2019-06-26 (Wed, 26 Jun 2019)
Changed paths:
M src/event.js
Log Message:
-----------
Add `targetType` to the set of properties of an event
Commit: 938ea3043348c4abb76b22d86e2364622c52678b
https://github.com/cytoscape/cytoscape.js/commit/938ea3043348c4abb76b22d86e2364622c52678b
Author: Max Franz <[email protected]>
Date: 2019-06-26 (Wed, 26 Jun 2019)
Changed paths:
M src/extensions/renderer/base/coord-ele-math/coords.js
Log Message:
-----------
In the hit detection function, add initial support for differentiating
between hits on a label and hits on an element body.
TODO:
- We need to check labels before element bodies. Otherwise, the body will take
precedence.
- We probably need more granularity for the `targetType` for labels. Just
using `'label'` isn't enough if you want to differentiate a target label from
the main label of an edge, for example.
- The `targetTypes` are not returned by the hit test function. It's currently
unused.
Compare:
https://github.com/cytoscape/cytoscape.js/compare/40c3ad5e3ab2%5E...938ea3043348
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/cytoscape-cvs.
To view this discussion on the web visit
https://groups.google.com/d/msgid/cytoscape-cvs/cytoscape/cytoscape.js/push/refs/heads/event-target-type/000000-938ea3%40github.com.
For more options, visit https://groups.google.com/d/optout.