Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
vega-projection
Advanced tools
Projections for cartographic mapping.
This package provides a projection method for managing registered cartographic projections. By default, the projection registry includes all projection types provided by the d3-geo module.
# vega.projection(type[, projection]) <>
Registry function for adding and accessing projection constructor functions. The type argument is a String indicating the name of the projection type. If the projection argument is not specified, this method returns the matching projection constructor in the registry, or null
if not found. If the projection argument is provided, it must be a projection constructor function to add to the registry under the given type name.
By default, the projection registry includes entries for all projection types provided by the d3-geo module. Projections created using the constructor returned by this method are augmented with the following additional properties:
type
: A string value indicating the projection type.path
: A D3 geoPath instance configured to use the projection. When using this path instance, be sure to set the path context as needed.copy
: A zero-argument function the produces a copy of the projection.// mercator projection
var mercator = vega.projection('mercator');
var proj = mercator().translate([400, 200]);
scale.type; // 'mercator'
scale([0, 0]); // [400, 200] center point
FAQs
Projections for cartographic mapping.
The npm package vega-projection receives a total of 110,746 weekly downloads. As such, vega-projection popularity was classified as popular.
We found that vega-projection demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.