New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@deck.gl/extensions

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
d

@deck.gl/extensions

Plug-and-play functionalities for deck.gl layers

8.9.4
99

Supply Chain Security

100

Vulnerability

75

Quality

99

Maintenance

100

License

Version published
Weekly downloads
201K
3.66%
Maintainers
6
Weekly downloads
 
Created
Issues
417

What is @deck.gl/extensions?

@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.

What are @deck.gl/extensions's main functionalities?

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]
});

Other packages similar to @deck.gl/extensions

FAQs

Package last updated on 22 Mar 2023

Did you know?

Socket

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.

Install

Related posts