MCPcopy
hub / github.com/markmap/markmap / transition

Method transition

packages/markmap-view/src/view.ts:608–613  ·  view source on GitHub ↗
(
    sel: d3.Selection<T, U, P, Q>,
  )

Source from the content-addressed store, hash-verified

606 }
607
608 transition<T extends d3.BaseType, U, P extends d3.BaseType, Q>(
609 sel: d3.Selection<T, U, P, Q>,
610 ): d3.Transition<T, U, P, Q> {
611 const { duration } = this.options;
612 return sel.transition().duration(duration);
613 }
614
615 /**
616 * Fit the content to the viewport.

Callers 5

renderDataMethod · 0.95
fitMethod · 0.95
ensureVisibleMethod · 0.95
centerNodeMethod · 0.95
rescaleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected