V.prototype.text creates text nodes with <tspan x="0" /> after upgrade to joint 1.10
See original GitHub issueThe problematic line in V.prototype.text
is:
var x = this.attr('x') || 0;
In my case that causes all custom elements to reset the x coordinate in all text elements. <text>
now contains <tspan>
elements that have the attribute x="0"
. That overrides the x values of the parent text node and appears to render all my text left-aligned.
This can be fixed by simply replacing that line with:
var x = this.attr('x');
Tested on Windows 10, Chrome 57
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:13 (5 by maintainers)
Top Results From Across the Web
Node.textContent - Web APIs | MDN
The textContent property of the Node interface represents the text content of the node and its descendants.
Read more >Converse.js API Documentation Source: headless/dist ...
IPv6; function bestPresentation(address) { // based on: // Javascript to test an IPv6 address for proper format, and to // present the "best...
Read more >toggle-switch - UNPKG
n\t\t// Make sure that DOM nodes and window objects don't pass through, ... Utility function for retrieving the text value of an array...
Read more >Writing R Extensions - The Comprehensive R Archive Network
This is a guide to extending R, describing the process of creating R add-on packages, writing R documentation, R's system and foreign language...
Read more >Proper way to change a SVG <text> without changing its ...
As I see it you have two options. 1) Building on your last example where you look for the text node. You know...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed in #625.
I will, but cannot do until Monday.