@deck.gl/aggregation-layers 8.8.0-beta.1 → 8.8.0-beta.2
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/dist/dist.dev.js +8 -12
- package/dist/es5/contour-layer/contour-layer.js.map +1 -1
- package/dist/es5/cpu-grid-layer/cpu-grid-layer.js.map +1 -1
- package/dist/es5/gpu-grid-layer/gpu-grid-cell-layer.js +0 -4
- package/dist/es5/gpu-grid-layer/gpu-grid-cell-layer.js.map +1 -1
- package/dist/es5/gpu-grid-layer/gpu-grid-layer.js.map +1 -1
- package/dist/es5/grid-layer/grid-layer.js.map +1 -1
- package/dist/es5/heatmap-layer/heatmap-layer.js.map +1 -1
- package/dist/es5/hexagon-layer/hexagon-layer.js.map +1 -1
- package/dist/es5/screen-grid-layer/screen-grid-cell-layer.js.map +1 -1
- package/dist/es5/screen-grid-layer/screen-grid-layer.js.map +1 -1
- package/dist/es5/utils/color-utils.js.map +1 -1
- package/dist/esm/contour-layer/contour-layer.js.map +1 -1
- package/dist/esm/cpu-grid-layer/cpu-grid-layer.js.map +1 -1
- package/dist/esm/gpu-grid-layer/gpu-grid-cell-layer.js +0 -4
- package/dist/esm/gpu-grid-layer/gpu-grid-cell-layer.js.map +1 -1
- package/dist/esm/gpu-grid-layer/gpu-grid-layer.js.map +1 -1
- package/dist/esm/grid-layer/grid-layer.js.map +1 -1
- package/dist/esm/heatmap-layer/heatmap-layer.js.map +1 -1
- package/dist/esm/hexagon-layer/hexagon-layer.js.map +1 -1
- package/dist/esm/screen-grid-layer/screen-grid-cell-layer.js.map +1 -1
- package/dist/esm/screen-grid-layer/screen-grid-layer.js.map +1 -1
- package/dist/esm/utils/color-utils.js.map +1 -1
- package/dist.min.js +1 -1
- package/package.json +4 -4
- package/src/contour-layer/contour-layer.ts +3 -2
- package/src/cpu-grid-layer/cpu-grid-layer.ts +20 -6
- package/src/gpu-grid-layer/gpu-grid-cell-layer.ts +15 -6
- package/src/gpu-grid-layer/gpu-grid-layer.ts +8 -6
- package/src/grid-layer/grid-layer.ts +9 -3
- package/src/heatmap-layer/heatmap-layer.ts +6 -4
- package/src/hexagon-layer/hexagon-layer.ts +30 -10
- package/src/screen-grid-layer/screen-grid-cell-layer.ts +4 -3
- package/src/screen-grid-layer/screen-grid-layer.ts +5 -4
- package/src/utils/{color-utils.js → color-utils.ts} +1 -1
- package/typed/contour-layer/contour-layer.d.ts +2 -23
- package/typed/contour-layer/contour-layer.d.ts.map +1 -1
- package/typed/cpu-grid-layer/cpu-grid-layer.d.ts +15 -89
- package/typed/cpu-grid-layer/cpu-grid-layer.d.ts.map +1 -1
- package/typed/gpu-grid-layer/gpu-grid-cell-layer.d.ts +9 -46
- package/typed/gpu-grid-layer/gpu-grid-cell-layer.d.ts.map +1 -1
- package/typed/gpu-grid-layer/gpu-grid-layer.d.ts +6 -44
- package/typed/gpu-grid-layer/gpu-grid-layer.d.ts.map +1 -1
- package/typed/grid-layer/grid-layer.d.ts +3 -84
- package/typed/grid-layer/grid-layer.d.ts.map +1 -1
- package/typed/heatmap-layer/heatmap-layer.d.ts +4 -49
- package/typed/heatmap-layer/heatmap-layer.d.ts.map +1 -1
- package/typed/hexagon-layer/hexagon-layer.d.ts +19 -91
- package/typed/hexagon-layer/hexagon-layer.d.ts.map +1 -1
- package/typed/screen-grid-layer/screen-grid-cell-layer.d.ts +2 -14
- package/typed/screen-grid-layer/screen-grid-cell-layer.d.ts.map +1 -1
- package/typed/screen-grid-layer/screen-grid-layer.d.ts +4 -26
- package/typed/screen-grid-layer/screen-grid-layer.d.ts.map +1 -1
- package/typed/utils/bin-sorter.d.ts +1 -1
- package/typed/utils/color-utils.d.ts +2 -2
- package/typed/utils/color-utils.d.ts.map +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Layer, LayerContext } from '@deck.gl/core/typed';
|
|
1
|
+
import { Layer, LayerContext, LayerProps, DefaultProps } from '@deck.gl/core/typed';
|
|
2
2
|
import { Model, Buffer } from '@luma.gl/core';
|
|
3
3
|
import type { _GPUGridLayerProps } from './gpu-grid-layer';
|
|
4
4
|
declare type _GPUGridCellLayerProps = _GPUGridLayerProps<any> & {
|
|
@@ -11,51 +11,14 @@ declare type _GPUGridCellLayerProps = _GPUGridLayerProps<any> & {
|
|
|
11
11
|
};
|
|
12
12
|
export default class GPUGridCellLayer extends Layer<_GPUGridCellLayerProps> {
|
|
13
13
|
static layerName: string;
|
|
14
|
-
static defaultProps: {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
value: number;
|
|
23
|
-
};
|
|
24
|
-
gridSize: {
|
|
25
|
-
type: string;
|
|
26
|
-
min: number;
|
|
27
|
-
value: number[];
|
|
28
|
-
};
|
|
29
|
-
gridOrigin: {
|
|
30
|
-
type: string;
|
|
31
|
-
min: number;
|
|
32
|
-
value: number[];
|
|
33
|
-
};
|
|
34
|
-
gridOffset: {
|
|
35
|
-
type: string;
|
|
36
|
-
min: number;
|
|
37
|
-
value: number[];
|
|
38
|
-
};
|
|
39
|
-
cellSize: {
|
|
40
|
-
type: string;
|
|
41
|
-
min: number;
|
|
42
|
-
max: number;
|
|
43
|
-
value: number;
|
|
44
|
-
};
|
|
45
|
-
offset: {
|
|
46
|
-
type: string;
|
|
47
|
-
min: number;
|
|
48
|
-
value: number[];
|
|
49
|
-
};
|
|
50
|
-
coverage: {
|
|
51
|
-
type: string;
|
|
52
|
-
min: number;
|
|
53
|
-
max: number;
|
|
54
|
-
value: number;
|
|
55
|
-
};
|
|
56
|
-
extruded: boolean;
|
|
57
|
-
material: boolean;
|
|
58
|
-
};
|
|
14
|
+
static defaultProps: DefaultProps<_GPUGridLayerProps<any> & {
|
|
15
|
+
offset: number[];
|
|
16
|
+
gridSize: number[];
|
|
17
|
+
gridOrigin: number[];
|
|
18
|
+
gridOffset: number[];
|
|
19
|
+
colorMaxMinBuffer: any;
|
|
20
|
+
elevationMaxMinBuffer: any;
|
|
21
|
+
} & LayerProps<any>>;
|
|
59
22
|
getShaders(): any;
|
|
60
23
|
initializeState({ gl }: LayerContext): void;
|
|
61
24
|
_getModel(gl: WebGLRenderingContext): Model;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gpu-grid-cell-layer.d.ts","sourceRoot":"","sources":["../../src/gpu-grid-layer/gpu-grid-cell-layer.ts"],"names":[],"mappings":"AAoBA,OAAO,
|
|
1
|
+
{"version":3,"file":"gpu-grid-cell-layer.d.ts","sourceRoot":"","sources":["../../src/gpu-grid-layer/gpu-grid-cell-layer.ts"],"names":[],"mappings":"AAoBA,OAAO,EACL,KAAK,EAKL,YAAY,EACZ,UAAU,EACV,YAAY,EACb,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAC,KAAK,EAAgB,MAAM,EAAC,MAAM,eAAe,CAAC;AAG1D,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,kBAAkB,CAAC;AA8BzD,aAAK,sBAAsB,GAAG,kBAAkB,CAAC,GAAG,CAAC,GAAG;IACtD,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,qBAAqB,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,KAAK,CAAC,sBAAsB,CAAC;IACzE,MAAM,CAAC,SAAS,SAAsB;IACtC,MAAM,CAAC,YAAY;;;;;;;yBAAgB;IAEnC,UAAU;IAQV,eAAe,CAAC,EAAC,EAAE,EAAC,EAAE,YAAY;IAiBlC,SAAS,CAAC,EAAE,EAAE,qBAAqB,GAAG,KAAK;IAS3C,IAAI,CAAC,EAAC,QAAQ,EAAC;;KAAA;IAyCf,kBAAkB,CAAC,iBAAiB,KAAA,EAAE,qBAAqB,KAAA;IAK3D,oBAAoB,CAAC,iBAAiB,KAAA,EAAE,qBAAqB,KAAA;IAK7D,iBAAiB;IAkBjB,OAAO,CAAC,mBAAmB;CAS5B"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Accessor, AccessorFunction, Color, GetPickingInfoParams, LayerContext, PickingInfo, Position } from '@deck.gl/core/typed';
|
|
2
|
-
import { _MaterialProps as MaterialProps } from '@deck.gl/layers/typed';
|
|
1
|
+
import { Accessor, AccessorFunction, Color, Material, GetPickingInfoParams, LayerContext, PickingInfo, Position, DefaultProps } from '@deck.gl/core/typed';
|
|
3
2
|
import GPUGridCellLayer from './gpu-grid-cell-layer';
|
|
4
3
|
import GridAggregationLayer, { GridAggregationLayerProps } from '../grid-aggregation-layer';
|
|
5
4
|
/** All properties supported by GPUGridLayer. */
|
|
@@ -46,11 +45,12 @@ export declare type _GPUGridLayerProps<DataT> = {
|
|
|
46
45
|
*/
|
|
47
46
|
extruded?: boolean;
|
|
48
47
|
/**
|
|
49
|
-
*
|
|
50
|
-
*
|
|
48
|
+
* Material settings for lighting effect. Applies if `extruded: true`.
|
|
49
|
+
*
|
|
51
50
|
* @default true
|
|
51
|
+
* @see https://deck.gl/docs/developer-guide/using-lighting
|
|
52
52
|
*/
|
|
53
|
-
material?:
|
|
53
|
+
material?: Material;
|
|
54
54
|
/**
|
|
55
55
|
* Defines the operation used to aggregate all data object weights to calculate a cell's color value.
|
|
56
56
|
* @default 'SUM'
|
|
@@ -82,45 +82,7 @@ export declare type _GPUGridLayerProps<DataT> = {
|
|
|
82
82
|
*/
|
|
83
83
|
export default class GPUGridLayer<DataT = any, ExtraPropsT = {}> extends GridAggregationLayer<ExtraPropsT & Required<_GPUGridLayerProps<DataT>>> {
|
|
84
84
|
static layerName: string;
|
|
85
|
-
static defaultProps:
|
|
86
|
-
colorDomain: null;
|
|
87
|
-
colorRange: number[][];
|
|
88
|
-
getColorWeight: {
|
|
89
|
-
type: string;
|
|
90
|
-
value: number;
|
|
91
|
-
};
|
|
92
|
-
colorAggregation: string;
|
|
93
|
-
elevationDomain: null;
|
|
94
|
-
elevationRange: number[];
|
|
95
|
-
getElevationWeight: {
|
|
96
|
-
type: string;
|
|
97
|
-
value: number;
|
|
98
|
-
};
|
|
99
|
-
elevationAggregation: string;
|
|
100
|
-
elevationScale: {
|
|
101
|
-
type: string;
|
|
102
|
-
min: number;
|
|
103
|
-
value: number;
|
|
104
|
-
};
|
|
105
|
-
cellSize: {
|
|
106
|
-
type: string;
|
|
107
|
-
min: number;
|
|
108
|
-
max: number;
|
|
109
|
-
value: number;
|
|
110
|
-
};
|
|
111
|
-
coverage: {
|
|
112
|
-
type: string;
|
|
113
|
-
min: number;
|
|
114
|
-
max: number;
|
|
115
|
-
value: number;
|
|
116
|
-
};
|
|
117
|
-
getPosition: {
|
|
118
|
-
type: string;
|
|
119
|
-
value: (x: any) => any;
|
|
120
|
-
};
|
|
121
|
-
extruded: boolean;
|
|
122
|
-
material: boolean;
|
|
123
|
-
};
|
|
85
|
+
static defaultProps: DefaultProps<GPUGridLayerProps<any>>;
|
|
124
86
|
initializeState({ gl }: LayerContext): void;
|
|
125
87
|
updateState(opts: any): void;
|
|
126
88
|
getHashKeyForIndex(index: number): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gpu-grid-layer.d.ts","sourceRoot":"","sources":["../../src/gpu-grid-layer/gpu-grid-layer.ts"],"names":[],"mappings":"AAsBA,OAAO,EACL,QAAQ,EACR,gBAAgB,EAChB,KAAK,EACL,oBAAoB,EACpB,YAAY,EAEZ,WAAW,EACX,QAAQ,
|
|
1
|
+
{"version":3,"file":"gpu-grid-layer.d.ts","sourceRoot":"","sources":["../../src/gpu-grid-layer/gpu-grid-layer.ts"],"names":[],"mappings":"AAsBA,OAAO,EACL,QAAQ,EACR,gBAAgB,EAChB,KAAK,EACL,QAAQ,EACR,oBAAoB,EACpB,YAAY,EAEZ,WAAW,EACX,QAAQ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;IAEzC;;;OAGG;IACH,kBAAkB,CAAC,EAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;CAC9C,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,YAAY,CAAC,KAAK,GAAG,GAAG,EAAE,WAAW,GAAG,EAAE,CAAE,SAAQ,oBAAoB,CAC3F,WAAW,GAAG,QAAQ,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAClD;IACC,MAAM,CAAC,SAAS,SAAkB;IAClC,MAAM,CAAC,YAAY,uCAAgB;IAEnC,eAAe,CAAC,EAAC,EAAE,EAAC,EAAE,YAAY,GAAG,IAAI;IA+CzC,WAAW,CAAC,IAAI,KAAA;IAehB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAkBzC,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,QAAQ;IAa5C,cAAc,CAAC,EAAC,IAAI,EAAE,IAAI,EAAC,EAAE,oBAAoB,GAAG,WAAW;IAqD/D,YAAY;IAsDZ,aAAa,CAAC,OAAO,EAAE,YAAY;IAYnC,sBAAsB,CAAC,IAAI,KAAA;IAoD3B,gBAAgB,CAAC,IAAI,KAAA;CAMtB"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { CompositeLayer, CompositeLayerProps, Layer, UpdateParameters } from '@deck.gl/core/typed';
|
|
1
|
+
import { CompositeLayer, CompositeLayerProps, Layer, UpdateParameters, DefaultProps } from '@deck.gl/core/typed';
|
|
2
2
|
import { _GPUGridLayerProps } from '../gpu-grid-layer/gpu-grid-layer';
|
|
3
3
|
import { _CPUGridLayerProps } from '../cpu-grid-layer/cpu-grid-layer';
|
|
4
4
|
/** All properties supported by GridLayer. */
|
|
5
5
|
export declare type GridLayerProps<DataT = any> = _GridLayerProps<DataT> & CompositeLayerProps<DataT>;
|
|
6
6
|
/** Properties added by GridLayer. */
|
|
7
|
-
declare type _GridLayerProps<DataT
|
|
7
|
+
declare type _GridLayerProps<DataT> = _CPUGridLayerProps<DataT> & _GPUGridLayerProps<DataT> & {
|
|
8
8
|
/**
|
|
9
9
|
* Whether the aggregation should be performed in high-precision 64-bit mode.
|
|
10
10
|
* @default false
|
|
@@ -18,88 +18,7 @@ declare type _GridLayerProps<DataT = any> = _CPUGridLayerProps<DataT> & _GPUGrid
|
|
|
18
18
|
};
|
|
19
19
|
export default class GridLayer<DataT = any, ExtraPropsT = {}> extends CompositeLayer<ExtraPropsT & Required<_GridLayerProps<DataT>>> {
|
|
20
20
|
static layerName: string;
|
|
21
|
-
static defaultProps:
|
|
22
|
-
gpuAggregation: boolean;
|
|
23
|
-
colorDomain: null;
|
|
24
|
-
colorRange: number[][];
|
|
25
|
-
getColorValue: {
|
|
26
|
-
type: string;
|
|
27
|
-
value: null;
|
|
28
|
-
};
|
|
29
|
-
getColorWeight: {
|
|
30
|
-
type: string;
|
|
31
|
-
value: number;
|
|
32
|
-
};
|
|
33
|
-
colorAggregation: string;
|
|
34
|
-
lowerPercentile: {
|
|
35
|
-
type: string;
|
|
36
|
-
min: number;
|
|
37
|
-
max: number;
|
|
38
|
-
value: number;
|
|
39
|
-
};
|
|
40
|
-
upperPercentile: {
|
|
41
|
-
type: string;
|
|
42
|
-
min: number;
|
|
43
|
-
max: number;
|
|
44
|
-
value: number;
|
|
45
|
-
};
|
|
46
|
-
colorScaleType: string;
|
|
47
|
-
onSetColorDomain: () => void;
|
|
48
|
-
elevationDomain: null;
|
|
49
|
-
elevationRange: number[];
|
|
50
|
-
getElevationValue: {
|
|
51
|
-
type: string;
|
|
52
|
-
value: null;
|
|
53
|
-
};
|
|
54
|
-
getElevationWeight: {
|
|
55
|
-
type: string;
|
|
56
|
-
value: number;
|
|
57
|
-
};
|
|
58
|
-
elevationAggregation: string;
|
|
59
|
-
elevationLowerPercentile: {
|
|
60
|
-
type: string;
|
|
61
|
-
min: number;
|
|
62
|
-
max: number;
|
|
63
|
-
value: number;
|
|
64
|
-
};
|
|
65
|
-
elevationUpperPercentile: {
|
|
66
|
-
type: string;
|
|
67
|
-
min: number;
|
|
68
|
-
max: number;
|
|
69
|
-
value: number;
|
|
70
|
-
};
|
|
71
|
-
elevationScale: {
|
|
72
|
-
type: string;
|
|
73
|
-
min: number;
|
|
74
|
-
value: number;
|
|
75
|
-
};
|
|
76
|
-
elevationScaleType: string;
|
|
77
|
-
onSetElevationDomain: () => void;
|
|
78
|
-
gridAggregator: typeof import("../cpu-grid-layer/grid-aggregator").pointToDensityGridDataCPU;
|
|
79
|
-
cellSize: {
|
|
80
|
-
type: string;
|
|
81
|
-
min: number;
|
|
82
|
-
max: number;
|
|
83
|
-
value: number;
|
|
84
|
-
};
|
|
85
|
-
coverage: {
|
|
86
|
-
type: string;
|
|
87
|
-
min: number;
|
|
88
|
-
max: number;
|
|
89
|
-
value: number;
|
|
90
|
-
};
|
|
91
|
-
getPosition: {
|
|
92
|
-
type: string;
|
|
93
|
-
value: (x: any) => any;
|
|
94
|
-
};
|
|
95
|
-
extruded: boolean;
|
|
96
|
-
material: boolean;
|
|
97
|
-
_filterData: {
|
|
98
|
-
type: string;
|
|
99
|
-
value: null;
|
|
100
|
-
optional: boolean;
|
|
101
|
-
};
|
|
102
|
-
};
|
|
21
|
+
static defaultProps: DefaultProps<GridLayerProps<any>>;
|
|
103
22
|
state: CompositeLayer['state'] & {
|
|
104
23
|
useGPUAggregation: boolean;
|
|
105
24
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-layer.d.ts","sourceRoot":"","sources":["../../src/grid-layer/grid-layer.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"grid-layer.d.ts","sourceRoot":"","sources":["../../src/grid-layer/grid-layer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,KAAK,EACL,gBAAgB,EAChB,YAAY,EACb,MAAM,eAAe,CAAC;AAEvB,OAAqB,EAAC,kBAAkB,EAAC,MAAM,kCAAkC,CAAC;AAClF,OAAqB,EAAC,kBAAkB,EAAC,MAAM,kCAAkC,CAAC;AAQlF,6CAA6C;AAC7C,oBAAY,cAAc,CAAC,KAAK,GAAG,GAAG,IAAI,eAAe,CAAC,KAAK,CAAC,GAAG,mBAAmB,CAAC,KAAK,CAAC,CAAC;AAE9F,qCAAqC;AACrC,aAAK,eAAe,CAAC,KAAK,IAAI,kBAAkB,CAAC,KAAK,CAAC,GACrD,kBAAkB,CAAC,KAAK,CAAC,GAAG;IAC1B;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEJ,MAAM,CAAC,OAAO,OAAO,SAAS,CAAC,KAAK,GAAG,GAAG,EAAE,WAAW,GAAG,EAAE,CAAE,SAAQ,cAAc,CAClF,WAAW,GAAG,QAAQ,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAC/C;IACC,MAAM,CAAC,SAAS,SAAe;IAC/B,MAAM,CAAC,YAAY,oCAAgB;IAEnC,KAAK,EAAG,cAAc,CAAC,OAAO,CAAC,GAAG;QAChC,iBAAiB,EAAE,OAAO,CAAC;KAC5B,CAAC;IAEF,eAAe;IAMf,WAAW,CAAC,EAAC,KAAK,EAAC,EAAE,gBAAgB,CAAC,IAAI,CAAC;IAM3C,YAAY,IAAI,KAAK;IAoBrB,oBAAoB,CAAC,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC;CA8B/C"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Buffer, Texture2D } from '@luma.gl/core';
|
|
2
|
-
import { Accessor, AccessorFunction, AttributeManager, ChangeFlags, Color, Layer, LayerContext, LayersList, Position, UpdateParameters } from '@deck.gl/core/typed';
|
|
2
|
+
import { Accessor, AccessorFunction, AttributeManager, ChangeFlags, Color, Layer, LayerContext, LayersList, Position, UpdateParameters, DefaultProps } from '@deck.gl/core/typed';
|
|
3
3
|
import AggregationLayer, { AggregationLayerProps } from '../aggregation-layer';
|
|
4
|
-
export declare type HeatmapLayerProps<DataT> = _HeatmapLayerProps<DataT> & AggregationLayerProps<DataT>;
|
|
5
|
-
declare type _HeatmapLayerProps<DataT
|
|
4
|
+
export declare type HeatmapLayerProps<DataT = any> = _HeatmapLayerProps<DataT> & AggregationLayerProps<DataT>;
|
|
5
|
+
declare type _HeatmapLayerProps<DataT> = {
|
|
6
6
|
/**
|
|
7
7
|
* Radius of the circle in pixels, to which the weight of an object is distributed.
|
|
8
8
|
*
|
|
@@ -70,52 +70,7 @@ declare type _HeatmapLayerProps<DataT = any> = {
|
|
|
70
70
|
};
|
|
71
71
|
export default class HeatmapLayer<DataT = any, ExtraPropsT = {}> extends AggregationLayer<ExtraPropsT & Required<_HeatmapLayerProps<DataT>>> {
|
|
72
72
|
static layerName: string;
|
|
73
|
-
static defaultProps:
|
|
74
|
-
getPosition: {
|
|
75
|
-
type: string;
|
|
76
|
-
value: (x: any) => any;
|
|
77
|
-
};
|
|
78
|
-
getWeight: {
|
|
79
|
-
type: string;
|
|
80
|
-
value: number;
|
|
81
|
-
};
|
|
82
|
-
intensity: {
|
|
83
|
-
type: string;
|
|
84
|
-
min: number;
|
|
85
|
-
value: number;
|
|
86
|
-
};
|
|
87
|
-
radiusPixels: {
|
|
88
|
-
type: string;
|
|
89
|
-
min: number;
|
|
90
|
-
max: number;
|
|
91
|
-
value: number;
|
|
92
|
-
};
|
|
93
|
-
colorRange: number[][];
|
|
94
|
-
threshold: {
|
|
95
|
-
type: string;
|
|
96
|
-
min: number;
|
|
97
|
-
max: number;
|
|
98
|
-
value: number;
|
|
99
|
-
};
|
|
100
|
-
colorDomain: {
|
|
101
|
-
type: string;
|
|
102
|
-
value: null;
|
|
103
|
-
optional: boolean;
|
|
104
|
-
};
|
|
105
|
-
aggregation: string;
|
|
106
|
-
weightsTextureSize: {
|
|
107
|
-
type: string;
|
|
108
|
-
min: number;
|
|
109
|
-
max: number;
|
|
110
|
-
value: number;
|
|
111
|
-
};
|
|
112
|
-
debounceTimeout: {
|
|
113
|
-
type: string;
|
|
114
|
-
min: number;
|
|
115
|
-
max: number;
|
|
116
|
-
value: number;
|
|
117
|
-
};
|
|
118
|
-
};
|
|
73
|
+
static defaultProps: DefaultProps<HeatmapLayerProps<any>>;
|
|
119
74
|
state: AggregationLayer['state'] & {
|
|
120
75
|
supported: boolean;
|
|
121
76
|
colorDomain?: number[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"heatmap-layer.d.ts","sourceRoot":"","sources":["../../src/heatmap-layer/heatmap-layer.ts"],"names":[],"mappings":"AA8BA,OAAO,EAAC,MAAM,EAAE,SAAS,EAAkD,MAAM,eAAe,CAAC;AACjG,OAAO,EACL,QAAQ,EACR,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACX,KAAK,EAEL,KAAK,EACL,YAAY,EACZ,UAAU,EAEV,QAAQ,EACR,gBAAgB,
|
|
1
|
+
{"version":3,"file":"heatmap-layer.d.ts","sourceRoot":"","sources":["../../src/heatmap-layer/heatmap-layer.ts"],"names":[],"mappings":"AA8BA,OAAO,EAAC,MAAM,EAAE,SAAS,EAAkD,MAAM,eAAe,CAAC;AACjG,OAAO,EACL,QAAQ,EACR,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACX,KAAK,EAEL,KAAK,EACL,YAAY,EACZ,UAAU,EAEV,QAAQ,EACR,gBAAgB,EAChB,YAAY,EACb,MAAM,eAAe,CAAC;AAEvB,OAAO,gBAAgB,EAAE,EAAC,qBAAqB,EAAC,MAAM,sBAAsB,CAAC;AAsD7E,oBAAY,iBAAiB,CAAC,KAAK,GAAG,GAAG,IAAI,kBAAkB,CAAC,KAAK,CAAC,GACpE,qBAAqB,CAAC,KAAK,CAAC,CAAC;AAE/B,aAAK,kBAAkB,CAAC,KAAK,IAAI;IAC/B;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;IACH,UAAU,CAAC,EAAE,KAAK,EA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C5B,CAAC;IAEF,eAAe;IAcf,iBAAiB,CAAC,EAAC,WAAW,EAAC,EAAE,gBAAgB,CAAC,IAAI,CAAC;IAMvD,WAAW,CAAC,IAAI,EAAE,gBAAgB,CAAC,IAAI,CAAC;IAQxC,mBAAmB,CAAC,IAAI,EAAE,gBAAgB,CAAC,IAAI,CAAC;IA8BhD,YAAY,IAAI,UAAU,GAAG,KAAK;IA2ClC,aAAa,CAAC,OAAO,EAAE,YAAY;IA2BnC,oBAAoB;IAOpB,eAAe,CAAC,IAAI,EAAE,gBAAgB,CAAC,IAAI,CAAC;;;;IAsB5C,eAAe;IAgBf,gBAAgB;IAShB,mBAAmB;IAgBnB,UAAU,CAAC,IAAI,KAAA;IAcf,uBAAuB,CAAC,OAAO,KAAK;IAgBpC,eAAe;IAqCf,aAAa,CAAC,aAAa,KAAA;IAK3B,qBAAqB;IAarB,aAAa,CAAC,WAAW,GAAE,GAAW,GAAG,OAAO;IAkDhD,6BAA6B;IAe7B,mBAAmB,CAAC,IAAI,KAAA;IAqBxB,gBAAgB;IAqDhB,yBAAyB,CAAC,SAAS,UAAQ;IAsB3C,oBAAoB,CAAC,WAAW,KAAA,EAAE,IAAI,GAAE;QAAC,wBAAwB,CAAC,EAAE,OAAO,CAAA;KAAM;IA0CjF,oBAAoB,CAAC,YAAY,KAAA;CAQlC"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { Accessor, AccessorFunction, Color, Position, UpdateParameters } from '@deck.gl/core/typed';
|
|
2
|
-
import { ColumnLayer
|
|
3
|
-
import { pointToHexbin } from './hexagon-aggregator';
|
|
1
|
+
import { Accessor, AccessorFunction, Color, Position, Material, UpdateParameters, DefaultProps } from '@deck.gl/core/typed';
|
|
2
|
+
import { ColumnLayer } from '@deck.gl/layers/typed';
|
|
4
3
|
import CPUAggregator from '../utils/cpu-aggregator';
|
|
5
4
|
import AggregationLayer, { AggregationLayerProps } from '../aggregation-layer';
|
|
6
5
|
import { AggregateAccessor } from '../types';
|
|
7
|
-
declare function nop(): void;
|
|
8
6
|
/** All properties supported by by HexagonLayer. */
|
|
9
7
|
export declare type HexagonLayerProps<DataT = any> = _HexagonLayerProps<DataT> & AggregationLayerProps<DataT>;
|
|
10
8
|
/** Properties added by HexagonLayer. */
|
|
@@ -18,12 +16,12 @@ declare type _HexagonLayerProps<DataT = any> = {
|
|
|
18
16
|
* Function to aggregate data into hexagonal bins.
|
|
19
17
|
* @default d3-hexbin
|
|
20
18
|
*/
|
|
21
|
-
hexagonAggregator?: () => any;
|
|
19
|
+
hexagonAggregator?: (props: any, params: any) => any;
|
|
22
20
|
/**
|
|
23
21
|
* Color scale input domain.
|
|
24
22
|
* @default [min(colorWeight), max(colorWeight)]
|
|
25
23
|
*/
|
|
26
|
-
colorDomain?: number
|
|
24
|
+
colorDomain?: [number, number] | null;
|
|
27
25
|
/**
|
|
28
26
|
* Specified as an array of colors [color1, color2, ...].
|
|
29
27
|
* @default `6-class YlOrRd` - [colorbrewer](http://colorbrewer2.org/#type=sequential&scheme=YlOrRd&n=6)
|
|
@@ -38,12 +36,12 @@ declare type _HexagonLayerProps<DataT = any> = {
|
|
|
38
36
|
* Elevation scale input domain. The elevation scale is a linear scale that maps number of counts to elevation.
|
|
39
37
|
* @default [0, max(elevationWeight)]
|
|
40
38
|
*/
|
|
41
|
-
elevationDomain?: number
|
|
39
|
+
elevationDomain?: [number, number] | null;
|
|
42
40
|
/**
|
|
43
41
|
* Elevation scale output range.
|
|
44
42
|
* @default [0, 1000]
|
|
45
43
|
*/
|
|
46
|
-
elevationRange?: number
|
|
44
|
+
elevationRange?: [number, number];
|
|
47
45
|
/**
|
|
48
46
|
* Hexagon elevation multiplier.
|
|
49
47
|
* @default 1
|
|
@@ -85,11 +83,16 @@ declare type _HexagonLayerProps<DataT = any> = {
|
|
|
85
83
|
*/
|
|
86
84
|
colorScaleType?: 'quantize' | 'quantile' | 'ordinal';
|
|
87
85
|
/**
|
|
88
|
-
*
|
|
89
|
-
|
|
86
|
+
* Scaling function used to determine the elevation of the grid cell, only supports 'linear'.
|
|
87
|
+
*/
|
|
88
|
+
elevationScaleType?: 'linear';
|
|
89
|
+
/**
|
|
90
|
+
* Material settings for lighting effect. Applies if `extruded: true`.
|
|
91
|
+
*
|
|
90
92
|
* @default true
|
|
93
|
+
* @see https://deck.gl/docs/developer-guide/using-lighting
|
|
91
94
|
*/
|
|
92
|
-
material?:
|
|
95
|
+
material?: Material;
|
|
93
96
|
/**
|
|
94
97
|
* Defines the operation used to aggregate all data object weights to calculate a cell's color value.
|
|
95
98
|
* @default 'SUM'
|
|
@@ -135,89 +138,14 @@ declare type _HexagonLayerProps<DataT = any> = {
|
|
|
135
138
|
* @default () => {}
|
|
136
139
|
*/
|
|
137
140
|
onSetElevationDomain?: (minMax: [number, number]) => void;
|
|
141
|
+
/**
|
|
142
|
+
* (Experimental) Filter data objects
|
|
143
|
+
*/
|
|
144
|
+
_filterData: null | ((d: DataT) => boolean);
|
|
138
145
|
};
|
|
139
146
|
export default class HexagonLayer<ExtraPropsT = {}> extends AggregationLayer<ExtraPropsT & Required<_HexagonLayerProps>> {
|
|
140
147
|
static layerName: string;
|
|
141
|
-
static defaultProps:
|
|
142
|
-
colorDomain: null;
|
|
143
|
-
colorRange: number[][];
|
|
144
|
-
getColorValue: {
|
|
145
|
-
type: string;
|
|
146
|
-
value: null;
|
|
147
|
-
};
|
|
148
|
-
getColorWeight: {
|
|
149
|
-
type: string;
|
|
150
|
-
value: number;
|
|
151
|
-
};
|
|
152
|
-
colorAggregation: string;
|
|
153
|
-
lowerPercentile: {
|
|
154
|
-
type: string;
|
|
155
|
-
value: number;
|
|
156
|
-
min: number;
|
|
157
|
-
max: number;
|
|
158
|
-
};
|
|
159
|
-
upperPercentile: {
|
|
160
|
-
type: string;
|
|
161
|
-
value: number;
|
|
162
|
-
min: number;
|
|
163
|
-
max: number;
|
|
164
|
-
};
|
|
165
|
-
colorScaleType: string;
|
|
166
|
-
onSetColorDomain: typeof nop;
|
|
167
|
-
elevationDomain: null;
|
|
168
|
-
elevationRange: number[];
|
|
169
|
-
getElevationValue: {
|
|
170
|
-
type: string;
|
|
171
|
-
value: null;
|
|
172
|
-
};
|
|
173
|
-
getElevationWeight: {
|
|
174
|
-
type: string;
|
|
175
|
-
value: number;
|
|
176
|
-
};
|
|
177
|
-
elevationAggregation: string;
|
|
178
|
-
elevationLowerPercentile: {
|
|
179
|
-
type: string;
|
|
180
|
-
value: number;
|
|
181
|
-
min: number;
|
|
182
|
-
max: number;
|
|
183
|
-
};
|
|
184
|
-
elevationUpperPercentile: {
|
|
185
|
-
type: string;
|
|
186
|
-
value: number;
|
|
187
|
-
min: number;
|
|
188
|
-
max: number;
|
|
189
|
-
};
|
|
190
|
-
elevationScale: {
|
|
191
|
-
type: string;
|
|
192
|
-
min: number;
|
|
193
|
-
value: number;
|
|
194
|
-
};
|
|
195
|
-
elevationScaleType: string;
|
|
196
|
-
onSetElevationDomain: typeof nop;
|
|
197
|
-
radius: {
|
|
198
|
-
type: string;
|
|
199
|
-
value: number;
|
|
200
|
-
min: number;
|
|
201
|
-
};
|
|
202
|
-
coverage: {
|
|
203
|
-
type: string;
|
|
204
|
-
min: number;
|
|
205
|
-
max: number;
|
|
206
|
-
value: number;
|
|
207
|
-
};
|
|
208
|
-
extruded: boolean;
|
|
209
|
-
hexagonAggregator: typeof pointToHexbin;
|
|
210
|
-
getPosition: {
|
|
211
|
-
type: string;
|
|
212
|
-
value: (x: any) => any;
|
|
213
|
-
};
|
|
214
|
-
material: boolean;
|
|
215
|
-
_filterData: {
|
|
216
|
-
type: string;
|
|
217
|
-
value: null;
|
|
218
|
-
optional: boolean;
|
|
219
|
-
};
|
|
220
|
-
};
|
|
148
|
+
static defaultProps: DefaultProps<HexagonLayerProps<any>>;
|
|
221
149
|
state: AggregationLayer['state'] & {
|
|
222
150
|
cpuAggregator: CPUAggregator;
|
|
223
151
|
aggregatorState: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hexagon-layer.d.ts","sourceRoot":"","sources":["../../src/hexagon-layer/hexagon-layer.ts"],"names":[],"mappings":"AAoBA,OAAO,
|
|
1
|
+
{"version":3,"file":"hexagon-layer.d.ts","sourceRoot":"","sources":["../../src/hexagon-layer/hexagon-layer.ts"],"names":[],"mappings":"AAoBA,OAAO,EACL,QAAQ,EACR,gBAAgB,EAChB,KAAK,EAEL,QAAQ,EACR,QAAQ,EACR,gBAAgB,EAChB,YAAY,EACb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,WAAW,EAAC,MAAM,iBAAiB,CAAC;AAK5C,OAAO,aAAa,MAAM,yBAAyB,CAAC;AACpD,OAAO,gBAAgB,EAAE,EAAC,qBAAqB,EAAC,MAAM,sBAAsB,CAAC;AAG7E,OAAO,EAAC,iBAAiB,EAAC,MAAM,UAAU,CAAC;AAyC3C,mDAAmD;AACnD,oBAAY,iBAAiB,CAAC,KAAK,GAAG,GAAG,IAAI,kBAAkB,CAAC,KAAK,CAAC,GACpE,qBAAqB,CAAC,KAAK,CAAC,CAAC;AAE/B,wCAAwC;AACxC,aAAK,kBAAkB,CAAC,KAAK,GAAG,GAAG,IAAI;IACrC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,KAAK,GAAG,CAAC;IAErD;;;OAGG;IACH,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;IAEtC;;;OAGG;IACH,UAAU,CAAC,EAAE,KAAK,EAAE,CAAC;IAErB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;IAE1C;;;OAGG;IACH,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAElC;;;O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MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;IAE1D;;OAEG;IACH,WAAW,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,KAAK,OAAO,CAAC,CAAC;CAC7C,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,YAAY,CAAC,WAAW,GAAG,EAAE,CAAE,SAAQ,gBAAgB,CAC1E,WAAW,GAAG,QAAQ,CAAC,kBAAkB,CAAC,CAC3C;IACC,MAAM,CAAC,SAAS,SAAkB;IAClC,MAAM,CAAC,YAAY,uCAAgB;IAEnC,KAAK,EAAG,gBAAgB,CAAC,OAAO,CAAC,GAAG;QAClC,aAAa,EAAE,aAAa,CAAC;QAC7B,eAAe,EAAE,GAAG,CAAC;KACtB,CAAC;IACF,eAAe;IAmBf,WAAW,CAAC,IAAI,EAAE,gBAAgB,CAAC,IAAI,CAAC;IAwBxC,0BAA0B,CAAC,eAAe,KAAA;IA6B1C,cAAc,CAAC,EAAC,IAAI,EAAC;;KAAA;IAKrB,mBAAmB,CAAC,IAAI,KAAA;IAKxB,uBAAuB,CAAC,IAAI,KAAA;IAI5B,0BAA0B;IAI1B,YAAY;CAwCb"}
|
|
@@ -2,26 +2,14 @@ import { Model, Texture2D } from '@luma.gl/core';
|
|
|
2
2
|
import { Layer, LayerProps, UpdateParameters } from '@deck.gl/core/typed';
|
|
3
3
|
import type { _ScreenGridLayerProps } from './screen-grid-layer';
|
|
4
4
|
/** All properties supported by ScreenGridCellLayer. */
|
|
5
|
-
export declare type ScreenGridCellLayerProps<DataT> = _ScreenGridCellLayerProps<DataT> & LayerProps<DataT>;
|
|
5
|
+
export declare type ScreenGridCellLayerProps<DataT = any> = _ScreenGridCellLayerProps<DataT> & LayerProps<DataT>;
|
|
6
6
|
/** Proprties added by ScreenGridCellLayer. */
|
|
7
7
|
export declare type _ScreenGridCellLayerProps<DataT> = _ScreenGridLayerProps<DataT> & {
|
|
8
8
|
maxTexture: Texture2D;
|
|
9
9
|
};
|
|
10
10
|
export default class ScreenGridCellLayer<DataT = any, ExtraPropsT = {}> extends Layer<ExtraPropsT & Required<_ScreenGridCellLayerProps<DataT>>> {
|
|
11
11
|
static layerName: string;
|
|
12
|
-
static defaultProps:
|
|
13
|
-
cellSizePixels: {
|
|
14
|
-
value: number;
|
|
15
|
-
min: number;
|
|
16
|
-
};
|
|
17
|
-
cellMarginPixels: {
|
|
18
|
-
value: number;
|
|
19
|
-
min: number;
|
|
20
|
-
max: number;
|
|
21
|
-
};
|
|
22
|
-
colorDomain: null;
|
|
23
|
-
colorRange: number[][];
|
|
24
|
-
};
|
|
12
|
+
static defaultProps: any;
|
|
25
13
|
static isSupported(gl: any): any;
|
|
26
14
|
state: Layer['state'] & {
|
|
27
15
|
model: Model;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"screen-grid-cell-layer.d.ts","sourceRoot":"","sources":["../../src/screen-grid-layer/screen-grid-cell-layer.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAC,KAAK,EAAmC,SAAS,
|
|
1
|
+
{"version":3,"file":"screen-grid-cell-layer.d.ts","sourceRoot":"","sources":["../../src/screen-grid-layer/screen-grid-cell-layer.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAC,KAAK,EAAmC,SAAS,EAAe,MAAM,eAAe,CAAC;AAC9F,OAAO,EAAC,KAAK,EAAE,UAAU,EAAgB,gBAAgB,EAAC,MAAM,eAAe,CAAC;AAIhF,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,qBAAqB,CAAC;AAc/D,uDAAuD;AACvD,oBAAY,wBAAwB,CAAC,KAAK,GAAG,GAAG,IAAI,yBAAyB,CAAC,KAAK,CAAC,GAClF,UAAU,CAAC,KAAK,CAAC,CAAC;AAEpB,8CAA8C;AAC9C,oBAAY,yBAAyB,CAAC,KAAK,IAAI,qBAAqB,CAAC,KAAK,CAAC,GAAG;IAC5E,UAAU,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,mBAAmB,CAAC,KAAK,GAAG,GAAG,EAAE,WAAW,GAAG,EAAE,CAAE,SAAQ,KAAK,CACnF,WAAW,GAAG,QAAQ,CAAC,yBAAyB,CAAC,KAAK,CAAC,CAAC,CACzD;IACC,MAAM,CAAC,SAAS,SAAyB;IACzC,MAAM,CAAC,YAAY,MAAgB;IAEnC,MAAM,CAAC,WAAW,CAAC,EAAE,KAAA;IAIrB,KAAK,EAAG,KAAK,CAAC,OAAO,CAAC,GAAG;QACvB,KAAK,EAAE,KAAK,CAAC;KACd,CAAC;IACF,UAAU;;;;;;;;;;IAIV,eAAe;IAaf,iBAAiB,CAAC,EAAC,WAAW,EAAC;;KAAA;IAK/B,WAAW,CAAC,MAAM,EAAE,gBAAgB,CAAC,IAAI,CAAC;IAe1C,IAAI,CAAC,EAAC,QAAQ,EAAC;;KAAA;IA0Bf,0BAA0B,CAAC,SAAS,KAAA,EAAE,EAAC,YAAY,EAAC;;KAAA;IAkBpD,SAAS,CAAC,EAAE,EAAE,qBAAqB,GAAG,KAAK;IAc3C,gBAAgB,IAAI,OAAO;IAe3B,eAAe,CAAC,QAAQ,KAAA,EAAE,KAAK,KAAA,EAAE,WAAW,KAAA,GAAG,IAAI;CA2BpD"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Accessor, Color, GetPickingInfoParams, Layer, LayerContext, LayersList, PickingInfo, Position, UpdateParameters } from '@deck.gl/core/typed';
|
|
1
|
+
import { Accessor, Color, GetPickingInfoParams, Layer, LayerContext, LayersList, PickingInfo, Position, UpdateParameters, DefaultProps } from '@deck.gl/core/typed';
|
|
2
2
|
import type { Texture2D } from '@luma.gl/core';
|
|
3
3
|
import GridAggregationLayer, { GridAggregationLayerProps } from '../grid-aggregation-layer';
|
|
4
4
|
/** All properties supported by ScreenGridLayer. */
|
|
5
|
-
export declare type ScreenGridLayerProps<DataT> = _ScreenGridLayerProps<DataT> & GridAggregationLayerProps<DataT>;
|
|
5
|
+
export declare type ScreenGridLayerProps<DataT = any> = _ScreenGridLayerProps<DataT> & GridAggregationLayerProps<DataT>;
|
|
6
6
|
/** Properties added by ScreenGridLayer. */
|
|
7
|
-
export declare type _ScreenGridLayerProps<DataT
|
|
7
|
+
export declare type _ScreenGridLayerProps<DataT> = {
|
|
8
8
|
/**
|
|
9
9
|
* Unit width/height of the bins.
|
|
10
10
|
* @default 100
|
|
@@ -70,29 +70,7 @@ export declare type _ScreenGridLayerProps<DataT = any> = {
|
|
|
70
70
|
};
|
|
71
71
|
export default class ScreenGridLayer<DataT = any, ExtraProps = {}> extends GridAggregationLayer<ExtraProps & Required<_ScreenGridLayerProps<DataT>>> {
|
|
72
72
|
static layerName: string;
|
|
73
|
-
static defaultProps:
|
|
74
|
-
getPosition: {
|
|
75
|
-
type: string;
|
|
76
|
-
value: (d: any) => any;
|
|
77
|
-
};
|
|
78
|
-
getWeight: {
|
|
79
|
-
type: string;
|
|
80
|
-
value: number;
|
|
81
|
-
};
|
|
82
|
-
gpuAggregation: boolean;
|
|
83
|
-
aggregation: string;
|
|
84
|
-
cellSizePixels: {
|
|
85
|
-
value: number;
|
|
86
|
-
min: number;
|
|
87
|
-
};
|
|
88
|
-
cellMarginPixels: {
|
|
89
|
-
value: number;
|
|
90
|
-
min: number;
|
|
91
|
-
max: number;
|
|
92
|
-
};
|
|
93
|
-
colorDomain: null;
|
|
94
|
-
colorRange: number[][];
|
|
95
|
-
};
|
|
73
|
+
static defaultProps: DefaultProps<ScreenGridLayerProps<any>>;
|
|
96
74
|
state: GridAggregationLayer['state'] & {
|
|
97
75
|
supported: boolean;
|
|
98
76
|
gpuGridAggregator?: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"screen-grid-layer.d.ts","sourceRoot":"","sources":["../../src/screen-grid-layer/screen-grid-layer.ts"],"names":[],"mappings":"AAoBA,OAAO,EACL,QAAQ,EACR,KAAK,EACL,oBAAoB,EACpB,KAAK,EACL,YAAY,EACZ,UAA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AAW,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC;CAC9C,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,eAAe,CAAC,KAAK,GAAG,GAAG,EAAE,UAAU,GAAG,EAAE,CAAE,SAAQ,oBAAoB,CAC7F,UAAU,GAAG,QAAQ,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC,CACpD;IACC,MAAM,CAAC,SAAS,SAAqB;IACrC,MAAM,CAAC,YAAY,0CAAgB;IAEnC,KAAK,EAAG,oBAAoB,CAAC,OAAO,CAAC,GAAG;QACtC,SAAS,EAAE,OAAO,CAAC;QACnB,iBAAiB,CAAC,EAAE,GAAG,CAAC;QACxB,cAAc,CAAC,EAAE,GAAG,CAAC;QACrB,OAAO,CAAC,EAAE,GAAG,CAAC;QACd,UAAU,CAAC,EAAE,SAAS,CAAC;KACxB,CAAC;IAEF,eAAe;IA4Cf,iBAAiB,CAAC,EAAC,WAAW,EAAC,EAAE,gBAAgB,CAAC,IAAI,CAAC;IAIvD,WAAW,CAAC,IAAI,EAAE,gBAAgB,CAAC,IAAI,CAAC;IAIxC,YAAY,IAAI,UAAU,GAAG,KAAK;IAuBlC,aAAa,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI;IAU1C,cAAc,CAAC,EAAC,IAAI,EAAC,EAAE,oBAAoB,GAAG,WAAW;IAsBzD,aAAa,CAAC,EAAC,eAAe,EAAE,OAAO,EAAC;;;KAAA;IASxC,sBAAsB,CAAC,IAAI,KAAA;IAiE3B,gBAAgB,CAAC,IAAI,KAAA;IAUrB,aAAa;CAMd"}
|
|
@@ -45,7 +45,7 @@ export default class BinSorter {
|
|
|
45
45
|
* @return {Array} array of new value range
|
|
46
46
|
*/
|
|
47
47
|
getValueRange(percentileRange: [number, number]): [number, number];
|
|
48
|
-
getValueDomainByScale(scale: string, [lower, upper]?: [(number | undefined)?, (number | undefined)?]): [
|
|
48
|
+
getValueDomainByScale(scale: string, [lower, upper]?: [(number | undefined)?, (number | undefined)?]): never[] | [number, number];
|
|
49
49
|
_getScaleDomain(scaleType: string, [lowerIdx, upperIdx]: [number, number]): [number, number];
|
|
50
50
|
}
|
|
51
51
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export declare const defaultColorRange: [number, number, number][];
|
|
2
|
+
export declare function colorRangeToFlatArray(colorRange: any, normalize?: boolean, ArrayType?: Float32ArrayConstructor): any;
|
|
3
3
|
//# sourceMappingURL=color-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color-utils.d.ts","sourceRoot":"","sources":["../../src/utils/color-utils.
|
|
1
|
+
{"version":3,"file":"color-utils.d.ts","sourceRoot":"","sources":["../../src/utils/color-utils.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,iBAAiB,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAOvD,CAAC;AAGF,wBAAgB,qBAAqB,CAAC,UAAU,KAAA,EAAE,SAAS,UAAQ,EAAE,SAAS,0BAAe,OA0B5F"}
|