eagor
eagor

Reputation: 10035

how to create transition from selection (importing d3-selection module)

The new selection module doesn't seem to depend on transition module.

How do I properly create transition from existing selection? Doing the old way selection.transition() doesn't work, as new Selection doesn't have .transition() method.

Upvotes: 0

Views: 396

Answers (1)

eagor
eagor

Reputation: 10035

Trying to edit the question to give more details I've found an answer. Digging into the source made the solution obvious:

import { } from "d3-transition/src/selection";

it simply adds transition method to the selection.prototype.

Upvotes: 2

Related Questions