Branch: refs/heads/3.11.x Home: https://github.com/cytoscape/cytoscape.js Commit: 4f869f82936ba0a9890c772cf5a1d7712079921a https://github.com/cytoscape/cytoscape.js/commit/4f869f82936ba0a9890c772cf5a1d7712079921a Author: Max Franz <maxkfr...@gmail.com> Date: 2020-01-08 (Wed, 08 Jan 2020)
Changed paths: M src/extensions/renderer/base/coord-ele-math/labels.js Log Message: ----------- In the text dimension calculations, `white-space: pre` must always be used. In order to get accurate text dimensions, the DOM must be used. Previously, `white-space: pre` was applied to the DOM element only for wrapped labels in order to take into account newlines. Because Cytoscape labels do not collapse spaces like text elements in the DOM do, we must use `white-space: pre` to take into account labels with multiple spaces in a row. Ref: Backport 3.11.x: A label may be cut off if it contains two or more whitespace characters in a row #2601 #2596 Commit: bf57dbde95182fb06e1bd09fd70448d1986c1190 https://github.com/cytoscape/cytoscape.js/commit/bf57dbde95182fb06e1bd09fd70448d1986c1190 Author: Max Franz <maxkfr...@gmail.com> Date: 2020-01-08 (Wed, 08 Jan 2020) Changed paths: M src/extensions/renderer/base/coord-ele-math/edge-endpoints.js Log Message: ----------- The edge endpoint calculation should consider label intersections towards the centre of the node rather than the centre of the label. The calculation erroneously uses the node shape intersection function -- this function is specious for this purpose. The generic polygon intersection function under `math` should be used instead. As before, the closest intersection point is used. Ref: Backport 3.11.x : Outside-to-line-or-label intersects towards the centre of label rather than the centre of the node #2602 #2597 Compare: https://github.com/cytoscape/cytoscape.js/compare/b48217a84645...bf57dbde9518 -- 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.11.x/b48217-bf57db%40github.com.