Branch: refs/heads/unstable
Home: https://github.com/cytoscape/cytoscape.js
Commit: d0cd2f0fd51719845ca905d682484754c328d36b
https://github.com/cytoscape/cytoscape.js/commit/d0cd2f0fd51719845ca905d682484754c328d36b
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: 92ec079277a40e26a50a4ad30c68612acaff551c
https://github.com/cytoscape/cytoscape.js/commit/92ec079277a40e26a50a4ad30c68612acaff551c
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/e98146e5296d...92ec079277a4
--
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/unstable/e98146-92ec07%40github.com.
For more options, visit https://groups.google.com/d/optout.