How to use the d3-geo-projection.geoAiry function in d3-geo-projection

To help you get started, we’ve selected a few d3-geo-projection examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github antvis / data-set / test / unit / api / geo-spec.ts View on Github external
it('geoProjectByName(name, projection)', () => {
    expect(dv.geoProjectByName(name0, 'geoAiry')).to.eql(
      d3GeoProjection.geoProject(feature0, d3GeoProjection.geoAiry())
    );
  });
  it('geoProjectPosition(position, projection)', () => {
github antvis / data-set / test / unit / api / geo-spec.ts View on Github external
it('geoProjectInvert(point, projection)', () => {
    expect(dv.geoProjectInvert([300, 300], 'geoAiry')).to.eql(d3GeoProjection.geoAiry().invert([300, 300]));
  });
});