Skip to content

Can't set native svgdotjs stroke width #23

@gsusg

Description

@gsusg

Stroke width is hard-coded.

width: 2,

Next should resolve the problem.

var length = this.length(),
    width = this.attr('stroke-width');

this.stroke({
    width:         width ? width : 2,
    dasharray:     length + ' ' + length,
    dashoffset:    length
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions