Skip to content

moving a group of centered use() elements from defs() **as one** does not work in 3.2 (but worked in 2.7) #1332

@tdindorf

Description

@tdindorf

Bug report

Moving a group containing

a. use() elements
b. that were centered

does not work in 3.2, though it worked in 2.7: see this fiddle

Explanation

  • group b should look like group a when moved, which it did in 2.7 - now the elements lose alignment
  • add(element.clone()) solves the problem (see group c), but that messes up code written for 2.7

P.S. why does SVG('x') (2.7) not work in (3.2), requiring SVG().addTo('x') instead? This also breaks old code.

Otherwise svg.js is a great tool!
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions