Package Exports
- d3-transition-stroke
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (d3-transition-stroke) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
d3-transition-stroke
Interpolate a path using
stroke-dasharray. Based on https://bl.ocks.org/mbostock/5649592
Install
npm install d3-transition-strokeUsage
var transitionStroke = require('d3-transition-stroke')
// ...
var sel = svg.selectAll('path')
    .data(data)
  // ENTER
  sel.enter().append('path')
    .attr('d', d => line(d))
  // ENTER + UPDATE
  sel.transition('stroke')
      .call(transitionStroke)API
transitionStroke(selection)
selection
D3 Transition Selection
TODO
This module implicitly depends on D3 3.x, but should be updated to depend on the modules of D3 4.x.