Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@deck.gl/extensions

Package Overview
Dependencies
Maintainers
5
Versions
365
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@deck.gl/extensions

Plug-and-play functionalities for deck.gl layers

  • 9.0.24
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
175K
increased by9.24%
Maintainers
5
Weekly downloads
 
Created

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

Keywords

FAQs

Package last updated on 22 Jul 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc