Branch: refs/heads/3.7.x
  Home:   https://github.com/cytoscape/cytoscape.js
  Commit: bf20422cac201ee3f4b62c5248065fc8afbdf6db
      
https://github.com/cytoscape/cytoscape.js/commit/bf20422cac201ee3f4b62c5248065fc8afbdf6db
  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 :

- Backport 3.7.x : Bounds calculation is inconsistent re. zero-area (or hidden) 
elements #2472 #2475
- Commit 47360cae7ae8371d49e6d94824bd8f2f4379e563


  Commit: c60ca38e3d4e2989e0d53bf227223eedd3ea9b3d
      
https://github.com/cytoscape/cytoscape.js/commit/c60ca38e3d4e2989e0d53bf227223eedd3ea9b3d
  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 : Backport 3.7.x : Handling of zero-area elements in layouts should be more 
robust #2473 #2476


Compare: 
https://github.com/cytoscape/cytoscape.js/compare/65c191786e22...c60ca38e3d4e

-- 
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/3.7.x/65c191-c60ca3%40github.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to