Branch: refs/heads/master
Home: https://github.com/cytoscape/cytoscape.js
Commit: 6709444b1a0c7426837531b995fbeec48428cc85
https://github.com/cytoscape/cytoscape.js/commit/6709444b1a0c7426837531b995fbeec48428cc85
Author: Max Franz <[email protected]>
Date: 2019-07-17 (Wed, 17 Jul 2019)
Changed paths:
M src/collection/dimensions/bounds.js
Log Message:
-----------
Use `ele.takesUpSpace()` for determining bounds accuracy level. Use the same
method for compound bounds, for consistency.
Ref :
- Bounds calculation is inconsistent re. zero-area (or hidden) elements #2472
- Commit 47360cae7ae8371d49e6d94824bd8f2f4379e563
Commit: 374c196a685e1427aac40271be992cbd4851dea3
https://github.com/cytoscape/cytoscape.js/commit/374c196a685e1427aac40271be992cbd4851dea3
Author: Max Franz <[email protected]>
Date: 2019-07-17 (Wed, 17 Jul 2019)
Changed paths:
M src/collection/layout.js
Log Message:
-----------
Ensure that a zero-area element is reported as such by
`ele.layoutDimensions()`. Sanitise the end-result of the function so that an
approximation of a point (1x1) is returned for a zero-area element.
A smaller value than 1x1 could be used, but a value of 1 model pixel is
probably small enough to be visually considered a point while large enough that
it wouldn't result in zero values from floating point operations. For example,
`A * ele.layoutDimensions().w` could result in a value of `0` for very small
values of `A` and `w`.
Ref : Handling of zero-area elements in layouts should be more robust #2473
Compare:
https://github.com/cytoscape/cytoscape.js/compare/d7a6d3cb667b...374c196a685e
--
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/master/d7a6d3-374c19%40github.com.
For more options, visit https://groups.google.com/d/optout.