Branch: refs/heads/unstable Home: https://github.com/cytoscape/cytoscape.js Commit: 62db296843e513164bec45e69a0eaa5be3106024 https://github.com/cytoscape/cytoscape.js/commit/62db296843e513164bec45e69a0eaa5be3106024 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: A label may be cut off if it contains two or more whitespace characters in a row #2596 Commit: 9efdaf20e0125ab0c349440031d707e96278c48d https://github.com/cytoscape/cytoscape.js/commit/9efdaf20e0125ab0c349440031d707e96278c48d 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: Outside-to-line-or-label intersects towards the centre of label rather than the centre of the node #2597 Compare: https://github.com/cytoscape/cytoscape.js/compare/be2f31b48027...9efdaf20e012 -- 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/be2f31-9efdaf%40github.com.