joint icon indicating copy to clipboard operation
joint copied to clipboard

Error: Invalid value for <text> attribute transform=" "

Open delfu opened this issue 12 years ago • 1 comments

on line 20349 inside function positionRelative, you forgot a .trim()

vel.attr('transform', (vel.attr('transform').replace(/translate\([^)]*\)/g, '') || '').trim());

instead of

vel.attr('transform', vel.attr('transform').replace(/translate\([^)]*\)/g, '') || '');

this omission causes some translate commands to be stripped away to just " " which is not a valid transform command

delfu avatar Jul 18 '14 18:07 delfu

Fixed in v0.9.1 (it can be downloaded from https://github.com/DavidDurman/joint/tree/master/dist)

kumilingus avatar Aug 07 '14 12:08 kumilingus