@deck.gl/extensions 9.0.0-alpha.4 → 9.0.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +19 -0
- package/dist/dist.dev.js +1056 -1059
- package/dist.min.js +108 -108
- package/package.json +4 -3
- package/typed/brushing/brushing-extension.d.ts +2 -2
- package/typed/brushing/shader-module.d.ts +1 -1
- package/typed/clip/clip-extension.d.ts +2 -2
- package/typed/collision-filter/collision-filter-effect.d.ts +1 -1
- package/typed/collision-filter/collision-filter-extension.d.ts +1 -1
- package/typed/collision-filter/collision-filter-pass.d.ts +1 -1
- package/typed/collision-filter/shader-module.d.ts +1 -1
- package/typed/data-filter/data-filter-extension.d.ts +2 -2
- package/typed/data-filter/shader-module.d.ts +1 -1
- package/typed/fill-style/fill-style-extension.d.ts +2 -2
- package/typed/fill-style/shaders.glsl.d.ts +1 -1
- package/typed/fp64/fp64-extension.d.ts +2 -2
- package/typed/fp64/project64.d.ts +1 -1
- package/typed/mask/mask-effect.d.ts +1 -1
- package/typed/mask/mask-extension.d.ts +1 -1
- package/typed/mask/mask-pass.d.ts +1 -1
- package/typed/mask/shader-module.d.ts +1 -1
- package/typed/path-style/path-style-extension.d.ts +2 -2
- package/typed/terrain/height-map-builder.d.ts +1 -1
- package/typed/terrain/shader-module.d.ts +1 -1
- package/typed/terrain/terrain-cover.d.ts +1 -1
- package/typed/terrain/terrain-effect.d.ts +1 -1
- package/typed/terrain/terrain-extension.d.ts +2 -2
- package/typed/terrain/terrain-pass.d.ts +1 -1
- package/typed/terrain/terrain-picking-pass.d.ts +1 -1
- package/typed/utils/projection-utils.d.ts +1 -1
- package/typed/package.json +0 -6
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@deck.gl/extensions",
|
|
3
3
|
"description": "Plug-and-play functionalities for deck.gl layers",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "9.0.0-alpha.
|
|
5
|
+
"version": "9.0.0-alpha.6",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
8
8
|
},
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"main": "dist/es5/index.js",
|
|
20
20
|
"module": "dist/esm/index.js",
|
|
21
|
+
"types": "typed/index.d.ts",
|
|
21
22
|
"files": [
|
|
22
23
|
"dist",
|
|
23
24
|
"src",
|
|
@@ -34,7 +35,7 @@
|
|
|
34
35
|
"@luma.gl/shadertools": "9.0.0-alpha.42"
|
|
35
36
|
},
|
|
36
37
|
"peerDependencies": {
|
|
37
|
-
"@deck.gl/core": "^
|
|
38
|
+
"@deck.gl/core": "^9.0.0-alpha",
|
|
38
39
|
"@luma.gl/constants": "9.0.0-alpha.42",
|
|
39
40
|
"@luma.gl/core": "9.0.0-alpha.42",
|
|
40
41
|
"@luma.gl/engine": "9.0.0-alpha.42",
|
|
@@ -43,5 +44,5 @@
|
|
|
43
44
|
"@math.gl/core": "^4.0.0",
|
|
44
45
|
"@math.gl/web-mercator": "^4.0.0"
|
|
45
46
|
},
|
|
46
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "dcb297a8b2b0fcfb3194f16f8df759afcd0e6cac"
|
|
47
48
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LayerExtension } from '@deck.gl/core
|
|
2
|
-
import type { Layer, LayerContext, Accessor } from '@deck.gl/core
|
|
1
|
+
import { LayerExtension } from '@deck.gl/core';
|
|
2
|
+
import type { Layer, LayerContext, Accessor } from '@deck.gl/core';
|
|
3
3
|
export declare type BrushingExtensionProps<DataT = any> = {
|
|
4
4
|
/**
|
|
5
5
|
* Called to retrieve an arbitrary position for each object that it will be filtered by.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Viewport, _ShaderModule as ShaderModule } from '@deck.gl/core
|
|
1
|
+
import type { Viewport, _ShaderModule as ShaderModule } from '@deck.gl/core';
|
|
2
2
|
import type { BrushingExtensionProps } from './brushing-extension';
|
|
3
3
|
declare type BrushingModuleSettings = {
|
|
4
4
|
viewport: Viewport;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LayerExtension, _ShaderModule as ShaderModule } from '@deck.gl/core
|
|
2
|
-
import type { Layer } from '@deck.gl/core
|
|
1
|
+
import { LayerExtension, _ShaderModule as ShaderModule } from '@deck.gl/core';
|
|
2
|
+
import type { Layer } from '@deck.gl/core';
|
|
3
3
|
export declare type ClipExtensionProps = {
|
|
4
4
|
/** Rectangular bounds to be used for clipping the rendered region, in `[left, bottom, right, top]`.
|
|
5
5
|
* @default [0, 0, 1, 1]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Device, Framebuffer, Texture } from '@luma.gl/core';
|
|
2
|
-
import type { Effect, Layer, PreRenderOptions } from '@deck.gl/core
|
|
2
|
+
import type { Effect, Layer, PreRenderOptions } from '@deck.gl/core';
|
|
3
3
|
export default class CollisionFilterEffect implements Effect {
|
|
4
4
|
id: string;
|
|
5
5
|
props: null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Accessor, Layer, LayerContext, LayerExtension } from '@deck.gl/core
|
|
1
|
+
import { Accessor, Layer, LayerContext, LayerExtension } from '@deck.gl/core';
|
|
2
2
|
export declare type CollisionFilterExtensionProps<DataT = any> = {
|
|
3
3
|
/**
|
|
4
4
|
* Accessor for collision priority. Must return a number in the range -1000 -> 1000. Features with higher values are shown preferentially.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Framebuffer } from '@luma.gl/core';
|
|
2
|
-
import { _LayersPass as LayersPass, LayersPassRenderOptions } from '@deck.gl/core
|
|
2
|
+
import { _LayersPass as LayersPass, LayersPassRenderOptions } from '@deck.gl/core';
|
|
3
3
|
declare type CollisionFilterPassRenderOptions = LayersPassRenderOptions & {};
|
|
4
4
|
export default class CollisionFilterPass extends LayersPass {
|
|
5
5
|
renderCollisionMap(target: Framebuffer, options: CollisionFilterPassRenderOptions): any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Framebuffer, Texture } from '@luma.gl/core';
|
|
2
|
-
import type { _ShaderModule as ShaderModule } from '@deck.gl/core
|
|
2
|
+
import type { _ShaderModule as ShaderModule } from '@deck.gl/core';
|
|
3
3
|
declare type CollisionModuleSettings = {
|
|
4
4
|
collisionFBO?: Framebuffer;
|
|
5
5
|
drawToCollisionMap?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Layer, LayerContext, Accessor, UpdateParameters } from '@deck.gl/core
|
|
2
|
-
import { LayerExtension } from '@deck.gl/core
|
|
1
|
+
import type { Layer, LayerContext, Accessor, UpdateParameters } from '@deck.gl/core';
|
|
2
|
+
import { LayerExtension } from '@deck.gl/core';
|
|
3
3
|
export declare type DataFilterExtensionProps<DataT = any> = {
|
|
4
4
|
/**
|
|
5
5
|
* Accessor to retrieve the value for each object that it will be filtered by.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ShaderModule as ShaderModule } from '@deck.gl/core
|
|
1
|
+
import { _ShaderModule as ShaderModule } from '@deck.gl/core';
|
|
2
2
|
import type { DataFilterExtensionProps } from './data-filter-extension';
|
|
3
3
|
declare type DataFilterModuleSettings = {
|
|
4
4
|
extensions: any[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LayerExtension } from '@deck.gl/core
|
|
2
|
-
import type { Layer, LayerContext, Accessor, AccessorFunction, TextureSource, UpdateParameters } from '@deck.gl/core
|
|
1
|
+
import { LayerExtension } from '@deck.gl/core';
|
|
2
|
+
import type { Layer, LayerContext, Accessor, AccessorFunction, TextureSource, UpdateParameters } from '@deck.gl/core';
|
|
3
3
|
export declare type FillStyleExtensionProps<DataT = any> = {
|
|
4
4
|
/** Cheap toggle to enable/disable pattern fill. Requires the `pattern` option to be on.
|
|
5
5
|
* @default true
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Viewport, _ShaderModule as ShaderModule } from '@deck.gl/core
|
|
1
|
+
import type { Viewport, _ShaderModule as ShaderModule } from '@deck.gl/core';
|
|
2
2
|
import type { Texture } from '@luma.gl/core';
|
|
3
3
|
declare type FillStyleModuleSettings = {
|
|
4
4
|
viewport: Viewport;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LayerExtension } from '@deck.gl/core
|
|
2
|
-
import type { Layer } from '@deck.gl/core
|
|
1
|
+
import { LayerExtension } from '@deck.gl/core';
|
|
2
|
+
import type { Layer } from '@deck.gl/core';
|
|
3
3
|
/** @deprecated Adds the legacy 64-bit precision to geospatial layers. */
|
|
4
4
|
export default class Fp64Extension extends LayerExtension {
|
|
5
5
|
static extensionName: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Effect, PreRenderOptions, CoordinateSystem } from '@deck.gl/core
|
|
1
|
+
import { Effect, PreRenderOptions, CoordinateSystem } from '@deck.gl/core';
|
|
2
2
|
import type { Device, Texture } from '@luma.gl/core';
|
|
3
3
|
import { Bounds } from '../utils/projection-utils';
|
|
4
4
|
declare type Mask = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Device, Framebuffer, Texture } from '@luma.gl/core';
|
|
2
|
-
import { _LayersPass as LayersPass, LayersPassRenderOptions } from '@deck.gl/core
|
|
2
|
+
import { _LayersPass as LayersPass, LayersPassRenderOptions } from '@deck.gl/core';
|
|
3
3
|
declare type MaskPassRenderOptions = LayersPassRenderOptions & {
|
|
4
4
|
/** The channel to render into, 0:red, 1:green, 2:blue, 3:alpha */
|
|
5
5
|
channel: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LayerExtension } from '@deck.gl/core
|
|
2
|
-
import type { Layer, LayerContext, Accessor, UpdateParameters } from '@deck.gl/core
|
|
1
|
+
import { LayerExtension } from '@deck.gl/core';
|
|
2
|
+
import type { Layer, LayerContext, Accessor, UpdateParameters } from '@deck.gl/core';
|
|
3
3
|
export declare type PathStyleExtensionProps<DataT = any> = {
|
|
4
4
|
/**
|
|
5
5
|
* Accessor for the dash array to draw each path with: `[dashSize, gapSize]` relative to the width of the path.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Device, Framebuffer } from '@luma.gl/core';
|
|
2
2
|
import { Bounds } from '../utils/projection-utils';
|
|
3
|
-
import type { Viewport, Layer } from '@deck.gl/core
|
|
3
|
+
import type { Viewport, Layer } from '@deck.gl/core';
|
|
4
4
|
/**
|
|
5
5
|
* Manages the lifecycle of the height map (a framebuffer that encodes elevation).
|
|
6
6
|
* One instance of height map is is shared across all layers. It is updated when the viewport changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { _ShaderModule as ShaderModule } from '@deck.gl/core
|
|
1
|
+
import type { _ShaderModule as ShaderModule } from '@deck.gl/core';
|
|
2
2
|
import type { Texture } from '@luma.gl/core';
|
|
3
3
|
import type { Bounds } from '../utils/projection-utils';
|
|
4
4
|
import type { TerrainCover } from './terrain-cover';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Framebuffer } from '@luma.gl/core';
|
|
2
|
-
import type { Layer, Viewport } from '@deck.gl/core
|
|
2
|
+
import type { Layer, Viewport } from '@deck.gl/core';
|
|
3
3
|
import { Bounds } from '../utils/projection-utils';
|
|
4
4
|
/**
|
|
5
5
|
* Manages the lifecycle of the terrain cover (draped textures over a terrain mesh).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Device } from '@luma.gl/core';
|
|
2
2
|
import { TerrainModuleSettings } from './shader-module';
|
|
3
|
-
import type { Effect, PreRenderOptions, Layer } from '@deck.gl/core
|
|
3
|
+
import type { Effect, PreRenderOptions, Layer } from '@deck.gl/core';
|
|
4
4
|
/** Class to manage terrain effect */
|
|
5
5
|
export declare class TerrainEffect implements Effect {
|
|
6
6
|
id: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LayerExtension, UpdateParameters } from '@deck.gl/core
|
|
2
|
-
import type { Layer } from '@deck.gl/core
|
|
1
|
+
import { LayerExtension, UpdateParameters } from '@deck.gl/core';
|
|
2
|
+
import type { Layer } from '@deck.gl/core';
|
|
3
3
|
export declare type TerrainExtensionProps = {
|
|
4
4
|
/**
|
|
5
5
|
* controls whether an object is drawn over the terrain surface by its anchor (usually defined by an accessor called `getPosition`, e.g. icon, scatterplot) or by its geometry (e.g. path, polygon).
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Layer, Viewport, _LayersPass as LayersPass, LayersPassRenderOptions } from '@deck.gl/core
|
|
1
|
+
import { Layer, Viewport, _LayersPass as LayersPass, LayersPassRenderOptions } from '@deck.gl/core';
|
|
2
2
|
import type { HeightMapBuilder } from './height-map-builder';
|
|
3
3
|
import type { TerrainCover } from './terrain-cover';
|
|
4
4
|
export declare type TerrainPassRenderOptions = LayersPassRenderOptions;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Layer, Viewport, LayersPassRenderOptions, _PickLayersPass as PickLayersPass } from '@deck.gl/core
|
|
1
|
+
import { Layer, Viewport, LayersPassRenderOptions, _PickLayersPass as PickLayersPass } from '@deck.gl/core';
|
|
2
2
|
import type { TerrainCover } from './terrain-cover';
|
|
3
3
|
export declare type TerrainPickingPassRenderOptions = LayersPassRenderOptions & {
|
|
4
4
|
pickZ: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Layer, Viewport } from '@deck.gl/core
|
|
1
|
+
import type { Layer, Viewport } from '@deck.gl/core';
|
|
2
2
|
/** Bounds in CARTESIAN coordinates */
|
|
3
3
|
export declare type Bounds = [minX: number, minY: number, maxX: number, maxY: number];
|
|
4
4
|
export declare function joinLayerBounds(
|