@nebula.gl/layers
Version:
A suite of 3D-enabled data editing layers, suitable for deck.gl
16 lines (14 loc) • 423 B
text/typescript
/**
* A multiplier for screen-space width/scale for Arc, Line, Icon and Text layers.
* Required in order to maintain the same appearance after upgrading to deck.gl v8.5.
* https://github.com/visgl/deck.gl/blob/master/docs/upgrade-guide.md
*/
export const PROJECTED_PIXEL_SIZE_MULTIPLIER = 2 / 3;
/**
* Unit literal to shader unit number conversion.
*/
export const UNIT = {
common: 0,
meters: 1,
pixels: 2,
};