How to use the vega-projection.projection function in vega-projection

To help you get started, we’ve selected a few vega-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 vega / vega / packages / vega-projection-extended / index.js View on Github external
].forEach(function(p) {
  projection(p, d3['geo' + p[0].toUpperCase() + p.slice(1)]);
});
github vega / vega / packages / vega-geo / src / Projection.js View on Github external
function create(type) {
  var constructor = projection((type || 'mercator').toLowerCase());
  if (!constructor) error('Unrecognized projection type: ' + type);
  return constructor();
}

vega-projection

Projections for cartographic mapping.

BSD-3-Clause
Latest version published 1 year ago

Package Health Score

80 / 100
Full package analysis