Tried to move objects by their center. Seemed to work for some, but not for all. Find out obj.width return a string when value contains the unit. Prevent cy and cx to calculate correctly the center position.
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="none" x="0px" y="0px" width="181px" height="14px" viewBox="0 0 181 14">
Tried to move objects by their center. Seemed to work for some, but not for all. Find out obj.width return a string when value contains the unit. Prevent cy and cx to calculate correctly the center position.
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="none" x="0px" y="0px" width="181px" height="14px" viewBox="0 0 181 14">