Branch: refs/heads/unstable
  Home:   https://github.com/cytoscape/cytoscape.js
  Commit: 7d83f6acb7bfc54e090249d092952a1c089a2446
      
https://github.com/cytoscape/cytoscape.js/commit/7d83f6acb7bfc54e090249d092952a1c089a2446
  Author: Max Franz <maxkfr...@gmail.com>
  Date:   2023-05-17 (Wed, 17 May 2023)

  Changed paths:
    M src/extensions/layout/cose.js

  Log Message:
  -----------
  Make built-in COSE make better use of the specified bounding box

The COSE layout internally uses two variables in addition to the bounding box, 
`clientWidth` and `clientHeight`.  They are set by default to the viewport 
extent.  COSE uses these variables in some places in lieu of the `boundingBox`. 
 Here, we set the `clientWidth` and `clientHeight` to be whatever is specified 
as the `boundingBox` so there is no inconsistency.

This makes the demo at https://jsbin.com/tuculav behave as expected, with a 
consistent result each time.

Ref: Built-in COSE layout does not fully respect the specified bounding box 
when it differs from the vis. extent #3121


-- 
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 cytoscape-cvs+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/cytoscape-cvs/cytoscape/cytoscape.js/push/refs/heads/unstable/4d29dc-7d83f6%40github.com.

Reply via email to