Open GoogleCodeExporter opened 9 years ago
Original comment by codedr...@gmail.com
on 17 Mar 2011 at 6:17
Original comment by codedr...@gmail.com
on 17 Mar 2011 at 6:20
[deleted comment]
This patch solves the dragging issue, but since svg edit doesn't support tspans
or multiline text, if you edit the text it will remove them (flattening
multiline text).
Original comment by duopi...@gmail.com
on 23 Mar 2012 at 11:25
Attachments:
Hmmm just tested a bit more and it breaks undo. Any pointers appreciated.
You also can't change the font because it's overridden by the tspan, but this
is a different bug.
Original comment by duopi...@gmail.com
on 23 Mar 2012 at 11:42
If undo is your main issue you can always manipulate the undo buffer manually.
Check out history.js. You can get the buffer with svgCanvas.undoMgr object.
Original comment by asyazwan
on 23 Mar 2012 at 11:59
This patch may not work if x or y are not defined (for instance, if editor did
use dy or dx or if tspan are just set up without x/y attributes)
I propose the following modification :
var tspan = selected.querySelectorAll('tspan');
var i = tspan.length
while(i--) {
var selX = convertToNum("x", selected.getAttribute('x'));
var tx = convertToNum("x", tspan[i].getAttribute('x'));
var selY = convertToNum("y", selected.getAttribute('y'));
var ty = convertToNum("y", tspan[i].getAttribute('y'));
var offset = new Object();
if (!isNaN(selX) && !isNaN(tx) && selX!=0 && tx!=0 && changes.x)
offset.x = changes.x - (selX - tx);
if (!isNaN(selY) && !isNaN(ty) && selY!=0 && ty!=0 && changes.y)
offset.y = changes.y - (selY - ty);
if (offset.x || offset.y)
assignAttributes(tspan[i], offset, 1000, true);
}
Original comment by pierre.s...@gmail.com
on 23 Mar 2012 at 5:07
Original comment by asyazwan
on 4 Dec 2012 at 6:19
Original comment by asyazwan
on 4 Dec 2012 at 6:25
Original comment by bret...@gmail.com
on 7 Apr 2014 at 3:38
Original comment by bret...@gmail.com
on 7 Apr 2014 at 3:45
Original issue reported on code.google.com by
codedr...@gmail.com
on 17 Mar 2011 at 6:17