Branch: refs/heads/cose-bb-fix
Home: https://github.com/cytoscape/cytoscape.js
Commit: 221502c62dd6cf8fa7a891f7285b1c2995cf3eaf
https://github.com/cytoscape/cytoscape.js/commit/221502c62dd6cf8fa7a891f7285b1c2995cf3eaf
Author: Max Franz <[email protected]>
Date: 2023-05-09 (Tue, 09 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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/cytoscape-cvs/cytoscape/cytoscape.js/push/refs/heads/cose-bb-fix/000000-221502%40github.com.