Branch: refs/heads/3.23.x Home: https://github.com/cytoscape/cytoscape.js Commit: eda7cc210303878070c7afc1f791f6a0da80cf28 https://github.com/cytoscape/cytoscape.js/commit/eda7cc210303878070c7afc1f791f6a0da80cf28 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/3.23.x/28829f-eda7cc%40github.com.