Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@deck.gl/extensions
Advanced tools
@deck.gl/extensions is a collection of extensions for the deck.gl library, which is used for creating high-performance, WebGL-powered visualizations. These extensions provide additional functionalities such as data filtering, 3D terrain, and advanced rendering techniques.
Data Filtering
The DataFilterExtension allows you to filter data points based on a specified range. This is useful for visualizing subsets of data dynamically.
const { DataFilterExtension } = require('@deck.gl/extensions');
const layer = new ScatterplotLayer({
data: myData,
getPosition: d => d.coordinates,
getRadius: d => d.radius,
getColor: d => d.color,
extensions: [new DataFilterExtension({filterSize: 1})],
filterRange: [0, 100]
});
3D Terrain
The TerrainExtension allows you to overlay 2D tiles on 3D terrain, providing a more realistic visualization of geographical data.
const { TerrainExtension } = require('@deck.gl/extensions');
const layer = new TileLayer({
data: 'https://tile-server.com/tiles/{z}/{x}/{y}.png',
minZoom: 0,
maxZoom: 23,
tileSize: 256,
renderSubLayers: props => new BitmapLayer(props),
extensions: [new TerrainExtension({terrainImage: 'https://terrain-server.com/terrain.png',
terrainBounds: [west, south, east, north]})]
});
Advanced Rendering
The BrushingExtension allows for interactive data brushing, where users can highlight and filter data points within a specified radius.
const { BrushingExtension } = require('@deck.gl/extensions');
const layer = new ScatterplotLayer({
data: myData,
getPosition: d => d.coordinates,
getRadius: d => d.radius,
getColor: d => d.color,
extensions: [new BrushingExtension()],
brushingRadius: 1000,
brushingTarget: [longitude, latitude]
});
Three.js is a popular JavaScript library for creating 3D graphics in the browser. While it provides a lower-level API compared to deck.gl, it offers extensive functionalities for 3D rendering, including support for various geometries, materials, and lighting effects.
Leaflet is a widely-used open-source JavaScript library for interactive maps. It is more focused on 2D map visualizations and offers a variety of plugins for additional functionalities, such as heatmaps and marker clustering. Unlike deck.gl, it does not natively support WebGL-based 3D visualizations.
D3.js is a powerful JavaScript library for producing dynamic, interactive data visualizations in web browsers. It uses SVG, HTML, and CSS to bring data to life. While it is not specifically designed for 3D or map visualizations, it is highly flexible and can be extended to create complex visualizations.
deck.gl [9.0.0-beta.11] - Apr 24 2024
FAQs
Plug-and-play functionalities for deck.gl layers
We found that @deck.gl/extensions demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.