Branch: refs/heads/unstable
Home: https://github.com/cytoscape/cytoscape.js
Commit: 91effd564f8082ff7cb35fb9d28200c19030548a
https://github.com/cytoscape/cytoscape.js/commit/91effd564f8082ff7cb35fb9d28200c19030548a
Author: Max Franz <[email protected]>
Date: 2019-02-22 (Fri, 22 Feb 2019)
Changed paths:
M src/extensions/renderer/base/coord-ele-math/edge-control-points.js
Log Message:
-----------
Clean up control point calculation a bit
- Convert control point code to use `let` instead of `var`.
- Use `Map` for edge pair ID lookups. Use pool index with hashing instead of
IDs with string concatenation. This should be cheaper w.r.t. to memory and
execution speed on modern browsers. On old browsers like IE, it will still
work, but with less of a speedup.
- Unbundled edges between two nodes, A and B, should be put in a single A-B
unbundled pairing. Before, each unbundled edge was put in its own pairing.
This avoids redundant intersection calculations. This is useful for graphs
with a large number of unbundled edges (segments, unbundled beziers, etc.)
- Remove control point cache checks. The style hashing should do a better job
of this, and it should do it at no additional cost for the control point
calculations.
Ref #2300
--
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.
For more options, visit https://groups.google.com/d/optout.