Skip to content

SVG not rendering correctly (xlink) #5034

Description

@ziaukhan

The textPath is not showing correctly in Alpha 45:

@Component({
 selector: 'vbutton',
 template: `<div><svg xmlns="http://www.w3.org/2000/svg"   
 xmlns:xlink="http://www.w3.org/1999/xlink" 
                version="1.1" height="1000" width="1000">
                <defs>
                    <path id="myTextPath" d="M 50,100 Q 150,50 250,100" />
                </defs>

                <circle cx="100" cy="100" r="40" stroke="white" stroke-width="1" fill-opacity="0" />
                <text fill="steelblue" font-size="20">
                    <textPath xlink:href="#myTextPath">This is not showing in Alpha 45!</textPath>
                 </text>
                </svg>
           </div>
            `
})
export class VButton{}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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