d3plus / d3plus-shape

Fancy SVG shapes for visualizations
MIT License
20 stars 2 forks source link

adds hoverStyle method to Shape #75

Closed nbond211 closed 6 years ago

nbond211 commented 6 years ago

(closes #73 )

Description

Adds the .hoverStyle( ) method to shape and sets the default hover styles to:

"stroke": "#444444",
"stroke-width": (d, i) => {
    const s = this._strokeWidth(d, i) || 1;
    return s * 3;
}

Types of changes

Checklist