title: d3._3d() is not a function
body: <p>I am trying to create cuboid using d3-3d for which I have installed d3-3d using <code>npm</code>.</p>
  <p>I have imported both the libraries as below:</p>
  <pre class="lang-js prettyprint-override"><code>import { _3d } from 'd3-3d';
  import * as d3 from 'd3';
  </code></pre>
  <p>And I'm trying to use <code>_3d</code> function as below.</p>
  <pre><code>var origin  = [480, 250], startAngle = Math.PI/8, beta = startAngle;
    // var svg    = d3.select(&quot;#networkdesign&quot;).selectAll('svg').call(d3.drag().on('drag', dragged).on('start', dragStart).on('end', dragEnd)).append('g');
  
    var svg   = d3.select(&quot;#networkdesign&quot;).selectAll('svg');
    var data  = [[{'x':1,'y':1,'z':-1},{'x':-1,'y':1,'z':-1}],[{'x':-1,'y':-1,'z':-1},{'x':1,'y':-1,'z':-1}],[{'x':1,'y':1,'z':-1},{'x':1,'y':-1,'z':-1}],[{'x':-1,'y':1,'z':-1},{'x':-1,'y':-1,'z':-1}],[{'x':1,'y':1,'z':1},{'x':-1,'y':1,'z':1}],[{'x':-1,'y':-1,'z':1},{'x':1,'y':-1,'z':1}],[{'x':1,'y':1,'z':1},{'x':1,'y':-1,'z':1}],[{'x':-1,'y':1,'z':1},{'x':-1,'y':-1,'z':1}],[{'x':-1,'y':1,'z':1},{'x':-1,'y':1,'z':-1},],[{'x':1,'y':1,'z':1},{'x':1,'y':1,'z':-1},],[{'x':-1,'y':-1,'z':1},{'x':-1,'y':-1,'z':-1},],[{'x':1,'y':-1,'z':1},{'x':1,'y':-1,'z':-1},]];
      var mx, mouseX;
      var _3d = d3._3d()
          .scale(50)
          .origin(origin)
          .rotateX(startAngle)
          .rotateY(startAngle)
          .primitiveType('LINES');
  </code></pre>
  <p>Getting above error when <code>d3._3d()</code> gets called.</p>