@deck.gl/aggregation-layers 8.10.0-alpha.6 → 9.0.0-alpha.3
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 +9369 -356
- package/dist/es5/aggregation-layer.js +4 -6
- package/dist/es5/aggregation-layer.js.map +1 -1
- package/dist/es5/contour-layer/contour-layer.js +13 -2
- package/dist/es5/contour-layer/contour-layer.js.map +1 -1
- package/dist/es5/cpu-grid-layer/cpu-grid-layer.js +12 -1
- package/dist/es5/cpu-grid-layer/cpu-grid-layer.js.map +1 -1
- package/dist/es5/cpu-grid-layer/grid-aggregator.js +12 -8
- package/dist/es5/cpu-grid-layer/grid-aggregator.js.map +1 -1
- package/dist/es5/gpu-grid-layer/gpu-grid-cell-layer.js +27 -13
- package/dist/es5/gpu-grid-layer/gpu-grid-cell-layer.js.map +1 -1
- package/dist/es5/gpu-grid-layer/gpu-grid-layer.js +19 -10
- package/dist/es5/gpu-grid-layer/gpu-grid-layer.js.map +1 -1
- package/dist/es5/grid-aggregation-layer.js +7 -9
- package/dist/es5/grid-aggregation-layer.js.map +1 -1
- package/dist/es5/grid-layer/grid-layer.js +1 -1
- package/dist/es5/grid-layer/grid-layer.js.map +1 -1
- package/dist/es5/heatmap-layer/heatmap-layer-utils.js +3 -3
- package/dist/es5/heatmap-layer/heatmap-layer-utils.js.map +1 -1
- package/dist/es5/heatmap-layer/heatmap-layer.js +58 -55
- package/dist/es5/heatmap-layer/heatmap-layer.js.map +1 -1
- package/dist/es5/heatmap-layer/triangle-layer.js +22 -12
- package/dist/es5/heatmap-layer/triangle-layer.js.map +1 -1
- package/dist/es5/hexagon-layer/hexagon-aggregator.js.map +1 -1
- package/dist/es5/hexagon-layer/hexagon-layer.js +2 -0
- package/dist/es5/hexagon-layer/hexagon-layer.js.map +1 -1
- package/dist/es5/index.js.map +1 -1
- package/dist/es5/screen-grid-layer/screen-grid-cell-layer.js +23 -20
- package/dist/es5/screen-grid-layer/screen-grid-cell-layer.js.map +1 -1
- package/dist/es5/screen-grid-layer/screen-grid-layer.js +6 -6
- package/dist/es5/screen-grid-layer/screen-grid-layer.js.map +1 -1
- package/dist/es5/utils/aggregation-operation-utils.js.map +1 -1
- package/dist/es5/utils/bin-sorter.js.map +1 -1
- package/dist/es5/utils/cpu-aggregator.js +11 -7
- package/dist/es5/utils/cpu-aggregator.js.map +1 -1
- package/dist/es5/utils/gpu-grid-aggregation/gpu-grid-aggregator-constants.js +7 -2
- package/dist/es5/utils/gpu-grid-aggregation/gpu-grid-aggregator-constants.js.map +1 -1
- package/dist/es5/utils/gpu-grid-aggregation/gpu-grid-aggregator.js +83 -60
- package/dist/es5/utils/gpu-grid-aggregation/gpu-grid-aggregator.js.map +1 -1
- package/dist/es5/utils/gpu-grid-aggregation/gpu-grid-aggregator.md +3 -3
- package/dist/es5/utils/grid-aggregation-utils.js.map +1 -1
- package/dist/es5/utils/prop-utils.js.map +1 -1
- package/dist/es5/utils/resource-utils.js +12 -23
- package/dist/es5/utils/resource-utils.js.map +1 -1
- package/dist/esm/aggregation-layer.js +4 -5
- package/dist/esm/aggregation-layer.js.map +1 -1
- package/dist/esm/contour-layer/contour-layer.js +7 -1
- package/dist/esm/contour-layer/contour-layer.js.map +1 -1
- package/dist/esm/cpu-grid-layer/cpu-grid-layer.js +6 -0
- package/dist/esm/cpu-grid-layer/cpu-grid-layer.js.map +1 -1
- package/dist/esm/cpu-grid-layer/grid-aggregator.js +2 -1
- package/dist/esm/cpu-grid-layer/grid-aggregator.js.map +1 -1
- package/dist/esm/gpu-grid-layer/gpu-grid-cell-layer.js +19 -10
- package/dist/esm/gpu-grid-layer/gpu-grid-cell-layer.js.map +1 -1
- package/dist/esm/gpu-grid-layer/gpu-grid-layer.js +13 -10
- package/dist/esm/gpu-grid-layer/gpu-grid-layer.js.map +1 -1
- package/dist/esm/grid-aggregation-layer.js +4 -8
- package/dist/esm/grid-aggregation-layer.js.map +1 -1
- package/dist/esm/grid-layer/grid-layer.js +1 -1
- package/dist/esm/grid-layer/grid-layer.js.map +1 -1
- package/dist/esm/heatmap-layer/heatmap-layer-utils.js +3 -3
- package/dist/esm/heatmap-layer/heatmap-layer-utils.js.map +1 -1
- package/dist/esm/heatmap-layer/heatmap-layer.js +40 -58
- package/dist/esm/heatmap-layer/heatmap-layer.js.map +1 -1
- package/dist/esm/heatmap-layer/triangle-layer.js +13 -7
- package/dist/esm/heatmap-layer/triangle-layer.js.map +1 -1
- package/dist/esm/hexagon-layer/hexagon-aggregator.js.map +1 -1
- package/dist/esm/hexagon-layer/hexagon-layer.js +1 -0
- package/dist/esm/hexagon-layer/hexagon-layer.js.map +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/screen-grid-layer/screen-grid-cell-layer.js +21 -24
- package/dist/esm/screen-grid-layer/screen-grid-cell-layer.js.map +1 -1
- package/dist/esm/screen-grid-layer/screen-grid-layer.js +5 -8
- package/dist/esm/screen-grid-layer/screen-grid-layer.js.map +1 -1
- package/dist/esm/utils/aggregation-operation-utils.js.map +1 -1
- package/dist/esm/utils/bin-sorter.js.map +1 -1
- package/dist/esm/utils/cpu-aggregator.js +11 -7
- package/dist/esm/utils/cpu-aggregator.js.map +1 -1
- package/dist/esm/utils/gpu-grid-aggregation/aggregate-all-fs.glsl.js.map +1 -1
- package/dist/esm/utils/gpu-grid-aggregation/aggregate-all-vs.glsl.js.map +1 -1
- package/dist/esm/utils/gpu-grid-aggregation/aggregate-to-grid-fs.glsl.js.map +1 -1
- package/dist/esm/utils/gpu-grid-aggregation/aggregate-to-grid-vs.glsl.js.map +1 -1
- package/dist/esm/utils/gpu-grid-aggregation/gpu-grid-aggregator-constants.js +4 -3
- package/dist/esm/utils/gpu-grid-aggregation/gpu-grid-aggregator-constants.js.map +1 -1
- package/dist/esm/utils/gpu-grid-aggregation/gpu-grid-aggregator.js +62 -51
- package/dist/esm/utils/gpu-grid-aggregation/gpu-grid-aggregator.js.map +1 -1
- package/dist/esm/utils/gpu-grid-aggregation/gpu-grid-aggregator.md +3 -3
- package/dist/esm/utils/gpu-grid-aggregation/transform-mean-vs.glsl.js.map +1 -1
- package/dist/esm/utils/grid-aggregation-utils.js.map +1 -1
- package/dist/esm/utils/prop-utils.js.map +1 -1
- package/dist/esm/utils/resource-utils.js +10 -17
- package/dist/esm/utils/resource-utils.js.map +1 -1
- package/dist.min.js +185 -30
- package/package.json +8 -6
- package/src/aggregation-layer.ts +7 -6
- package/src/contour-layer/contour-layer.ts +25 -9
- package/src/cpu-grid-layer/cpu-grid-layer.ts +8 -3
- package/src/cpu-grid-layer/{grid-aggregator.js → grid-aggregator.ts} +28 -4
- package/src/gpu-grid-layer/gpu-grid-cell-layer.ts +38 -27
- package/src/gpu-grid-layer/gpu-grid-layer.ts +18 -12
- package/src/grid-aggregation-layer.ts +39 -13
- package/src/grid-layer/grid-layer.ts +2 -2
- package/src/heatmap-layer/heatmap-layer-utils.ts +10 -4
- package/src/heatmap-layer/heatmap-layer.ts +74 -67
- package/src/heatmap-layer/triangle-layer.ts +26 -22
- package/src/hexagon-layer/{hexagon-aggregator.js → hexagon-aggregator.ts} +5 -1
- package/src/hexagon-layer/hexagon-layer.ts +8 -5
- package/src/index.ts +0 -1
- package/src/screen-grid-layer/screen-grid-cell-layer.ts +36 -33
- package/src/screen-grid-layer/screen-grid-layer.ts +12 -11
- package/src/utils/{aggregation-operation-utils.js → aggregation-operation-utils.ts} +8 -2
- package/src/utils/bin-sorter.ts +1 -1
- package/src/utils/{cpu-aggregator.js → cpu-aggregator.ts} +42 -30
- package/src/utils/gpu-grid-aggregation/{gpu-grid-aggregator-constants.js → gpu-grid-aggregator-constants.ts} +4 -4
- package/src/utils/gpu-grid-aggregation/gpu-grid-aggregator.md +3 -3
- package/src/utils/gpu-grid-aggregation/{gpu-grid-aggregator.js → gpu-grid-aggregator.ts} +123 -94
- package/src/utils/{grid-aggregation-utils.js → grid-aggregation-utils.ts} +1 -1
- package/src/utils/resource-utils.ts +59 -0
- package/typed/aggregation-layer.d.ts +4 -3
- package/typed/aggregation-layer.d.ts.map +1 -1
- package/typed/contour-layer/contour-layer.d.ts +19 -5
- package/typed/contour-layer/contour-layer.d.ts.map +1 -1
- package/typed/cpu-grid-layer/cpu-grid-layer.d.ts +8 -3
- package/typed/cpu-grid-layer/cpu-grid-layer.d.ts.map +1 -1
- package/typed/cpu-grid-layer/grid-aggregator.d.ts +16 -4
- package/typed/cpu-grid-layer/grid-aggregator.d.ts.map +1 -1
- package/typed/gpu-grid-layer/gpu-grid-cell-layer.d.ts +18 -4
- package/typed/gpu-grid-layer/gpu-grid-cell-layer.d.ts.map +1 -1
- package/typed/gpu-grid-layer/gpu-grid-layer.d.ts +8 -3
- package/typed/gpu-grid-layer/gpu-grid-layer.d.ts.map +1 -1
- package/typed/grid-aggregation-layer.d.ts +39 -4
- package/typed/grid-aggregation-layer.d.ts.map +1 -1
- package/typed/grid-layer/grid-layer.d.ts +2 -2
- package/typed/grid-layer/grid-layer.d.ts.map +1 -1
- package/typed/heatmap-layer/heatmap-layer-utils.d.ts +7 -5
- package/typed/heatmap-layer/heatmap-layer-utils.d.ts.map +1 -1
- package/typed/heatmap-layer/heatmap-layer.d.ts +19 -6
- package/typed/heatmap-layer/heatmap-layer.d.ts.map +1 -1
- package/typed/heatmap-layer/triangle-layer.d.ts +10 -6
- package/typed/heatmap-layer/triangle-layer.d.ts.map +1 -1
- package/typed/hexagon-layer/hexagon-aggregator.d.ts +6 -3
- package/typed/hexagon-layer/hexagon-aggregator.d.ts.map +1 -1
- package/typed/hexagon-layer/hexagon-layer.d.ts +5 -4
- package/typed/hexagon-layer/hexagon-layer.d.ts.map +1 -1
- package/typed/index.d.ts.map +1 -1
- package/typed/screen-grid-layer/screen-grid-cell-layer.d.ts +10 -9
- package/typed/screen-grid-layer/screen-grid-cell-layer.d.ts.map +1 -1
- package/typed/screen-grid-layer/screen-grid-layer.d.ts +6 -4
- package/typed/screen-grid-layer/screen-grid-layer.d.ts.map +1 -1
- package/typed/utils/aggregation-operation-utils.d.ts +18 -12
- package/typed/utils/aggregation-operation-utils.d.ts.map +1 -1
- package/typed/utils/bin-sorter.d.ts +1 -1
- package/typed/utils/bin-sorter.d.ts.map +1 -1
- package/typed/utils/cpu-aggregator.d.ts +28 -14
- package/typed/utils/cpu-aggregator.d.ts.map +1 -1
- package/typed/utils/gpu-grid-aggregation/aggregate-all-fs.glsl.d.ts +1 -1
- package/typed/utils/gpu-grid-aggregation/aggregate-all-fs.glsl.d.ts.map +1 -1
- package/typed/utils/gpu-grid-aggregation/aggregate-all-vs.glsl.d.ts +1 -1
- package/typed/utils/gpu-grid-aggregation/aggregate-all-vs.glsl.d.ts.map +1 -1
- package/typed/utils/gpu-grid-aggregation/aggregate-to-grid-fs.glsl.d.ts +1 -1
- package/typed/utils/gpu-grid-aggregation/aggregate-to-grid-fs.glsl.d.ts.map +1 -1
- package/typed/utils/gpu-grid-aggregation/aggregate-to-grid-vs.glsl.d.ts +1 -1
- package/typed/utils/gpu-grid-aggregation/aggregate-to-grid-vs.glsl.d.ts.map +1 -1
- package/typed/utils/gpu-grid-aggregation/gpu-grid-aggregator-constants.d.ts +35 -33
- package/typed/utils/gpu-grid-aggregation/gpu-grid-aggregator-constants.d.ts.map +1 -1
- package/typed/utils/gpu-grid-aggregation/gpu-grid-aggregator-utils.d.ts.map +1 -1
- package/typed/utils/gpu-grid-aggregation/gpu-grid-aggregator.d.ts +29 -19
- package/typed/utils/gpu-grid-aggregation/gpu-grid-aggregator.d.ts.map +1 -1
- package/typed/utils/gpu-grid-aggregation/transform-mean-vs.glsl.d.ts +1 -1
- package/typed/utils/gpu-grid-aggregation/transform-mean-vs.glsl.d.ts.map +1 -1
- package/typed/utils/grid-aggregation-utils.d.ts +11 -5
- package/typed/utils/grid-aggregation-utils.d.ts.map +1 -1
- package/typed/utils/prop-utils.d.ts +1 -1
- package/typed/utils/prop-utils.d.ts.map +1 -1
- package/typed/utils/resource-utils.d.ts +13 -3
- package/typed/utils/resource-utils.d.ts.map +1 -1
- package/src/utils/resource-utils.js +0 -51
- /package/src/utils/gpu-grid-aggregation/{aggregate-all-fs.glsl.js → aggregate-all-fs.glsl.ts} +0 -0
- /package/src/utils/gpu-grid-aggregation/{aggregate-all-vs.glsl.js → aggregate-all-vs.glsl.ts} +0 -0
- /package/src/utils/gpu-grid-aggregation/{aggregate-to-grid-fs.glsl.js → aggregate-to-grid-fs.glsl.ts} +0 -0
- /package/src/utils/gpu-grid-aggregation/{aggregate-to-grid-vs.glsl.js → aggregate-to-grid-vs.glsl.ts} +0 -0
- /package/src/utils/gpu-grid-aggregation/{gpu-grid-aggregator-utils.js → gpu-grid-aggregator-utils.ts} +0 -0
- /package/src/utils/gpu-grid-aggregation/{transform-mean-vs.glsl.js → transform-mean-vs.glsl.ts} +0 -0
- /package/src/utils/{prop-utils.js → prop-utils.ts} +0 -0
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
export default class CPUAggregator {
|
|
2
|
+
state: {
|
|
3
|
+
layerData: {
|
|
4
|
+
data?: any[];
|
|
5
|
+
};
|
|
6
|
+
dimensions: Record<string, any>;
|
|
7
|
+
};
|
|
8
|
+
changeFlags: Record<string, any>;
|
|
9
|
+
dimensionUpdaters: Record<string, any>;
|
|
10
|
+
_getCellSize: any;
|
|
11
|
+
_getAggregator: any;
|
|
12
|
+
constructor(opts: any);
|
|
2
13
|
static defaultDimensions(): ({
|
|
3
14
|
key: string;
|
|
4
15
|
accessor: string;
|
|
@@ -100,27 +111,30 @@ export default class CPUAggregator {
|
|
|
100
111
|
};
|
|
101
112
|
nullValue: number;
|
|
102
113
|
})[];
|
|
103
|
-
constructor(opts: any);
|
|
104
|
-
state: {
|
|
105
|
-
layerData: {};
|
|
106
|
-
dimensions: {};
|
|
107
|
-
};
|
|
108
|
-
changeFlags: {};
|
|
109
|
-
dimensionUpdaters: {};
|
|
110
|
-
_getCellSize: any;
|
|
111
|
-
_getAggregator: any;
|
|
112
114
|
updateState(opts: any, aggregationParams: any): {
|
|
113
|
-
layerData: {
|
|
114
|
-
|
|
115
|
+
layerData: {
|
|
116
|
+
data?: any[] | undefined;
|
|
117
|
+
};
|
|
118
|
+
dimensions: Record<string, any>;
|
|
115
119
|
};
|
|
116
120
|
setState(updateObject: any): void;
|
|
117
121
|
setDimensionState(key: any, updateObject: any): void;
|
|
118
|
-
normalizeResult(result?: {
|
|
122
|
+
normalizeResult(result?: {
|
|
123
|
+
hexagons?: any;
|
|
124
|
+
layerData?: any;
|
|
125
|
+
}): {
|
|
126
|
+
hexagons?: any;
|
|
127
|
+
layerData?: any;
|
|
128
|
+
} | {
|
|
129
|
+
hexagons?: any;
|
|
130
|
+
layerData?: any;
|
|
131
|
+
data: any;
|
|
132
|
+
};
|
|
119
133
|
getAggregatedData(props: any, aggregationParams: any): void;
|
|
120
134
|
updateGetValueFuncs(oldProps: any, props: any, changeFlags: any): void;
|
|
121
135
|
needsReProjectPoints(oldProps: any, props: any, changeFlags: any): any;
|
|
122
136
|
addDimension(dimensions: any): void;
|
|
123
|
-
_addDimension(dimensions?:
|
|
137
|
+
_addDimension(dimensions?: never[]): void;
|
|
124
138
|
getDimensionUpdaters({ key, accessor, pickingInfo, getBins, getDomain, getScaleFunc, nullValue }: {
|
|
125
139
|
key: any;
|
|
126
140
|
accessor: any;
|
|
@@ -139,7 +153,7 @@ export default class CPUAggregator {
|
|
|
139
153
|
attributeAccessor: (cell: any) => any;
|
|
140
154
|
};
|
|
141
155
|
needUpdateDimensionStep(dimensionStep: any, oldProps: any, props: any, changeFlags: any): boolean;
|
|
142
|
-
getDimensionChanges(oldProps: any, props: any, changeFlags: any):
|
|
156
|
+
getDimensionChanges(oldProps: any, props: any, changeFlags: any): Function[] | null;
|
|
143
157
|
getUpdateTriggers(props: any): {};
|
|
144
158
|
getSortedBins(props: any): void;
|
|
145
159
|
getDimensionSortedBins(props: any, dimensionUpdater: any): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cpu-aggregator.d.ts","sourceRoot":"","sources":["../../src/utils/cpu-aggregator.
|
|
1
|
+
{"version":3,"file":"cpu-aggregator.d.ts","sourceRoot":"","sources":["../../src/utils/cpu-aggregator.ts"],"names":[],"mappings":"AA4HA,MAAM,CAAC,OAAO,OAAO,aAAa;IAChC,KAAK,EAAE;QACL,SAAS,EAAE;YACT,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;SACd,CAAC;QACF,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KACjC,CAkBC;IACF,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAM;IACtC,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAM;IAE5C,YAAY,MAAC;IACb,cAAc,MAAC;gBAEH,IAAI,KAAA;IAMhB,MAAM,CAAC,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAIxB,WAAW,CAAC,IAAI,KAAA,EAAE,iBAAiB,KAAA;;;;;;IAqBnC,QAAQ,CAAC,YAAY,KAAA;IAKrB,iBAAiB,CAAC,GAAG,KAAA,EAAE,YAAY,KAAA;IASnC,eAAe,CAAC,MAAM,GAAE;QAAC,QAAQ,CAAC,MAAC;QAAC,SAAS,CAAC,MAAA;KAAM;;;;;;;;IAWpD,iBAAiB,CAAC,KAAK,KAAA,EAAE,iBAAiB,KAAA;IAa1C,mBAAmB,CAAC,QAAQ,KAAA,EAAE,KAAK,KAAA,EAAE,WAAW,KAAA;IA0BhD,oBAAoB,CAAC,QAAQ,KAAA,EAAE,KAAK,KAAA,EAAE,WAAW,KAAA;IAUjD,YAAY,CAAC,UAAU,KAAA;IAIvB,aAAa,CAAC,UAAU,UAAK;IAa7B,oBAAoB,CAAC,EAAC,GAAG,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAC;;;;;;;;KAAA;;;;;;;;;IAY9F,uBAAuB,CAAC,aAAa,KAAA,EAAE,QAAQ,KAAA,EAAE,KAAK,KAAA,EAAE,WAAW,KAAA;IAkCnE,mBAAmB,CAAC,QAAQ,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,GAAG,QAAQ,EAAE,GAAG,IAAI;IA8BnF,iBAAiB,CAAC,KAAK,KAAA;IAmCvB,aAAa,CAAC,KAAK,KAAA;IAMnB,sBAAsB,CAAC,KAAK,KAAA,EAAE,gBAAgB,KAAA;IAY9C,uBAAuB,CAAC,KAAK,KAAA,EAAE,gBAAgB,KAAA;IAc/C,iBAAiB,CAAC,KAAK,KAAA,EAAE,gBAAgB,KAAA;IAiBzC,6BAA6B,CAAC,GAAG,KAAA,EAAE,SAAS,KAAA;IAmB5C,oBAAoB,CAAC,KAAK,KAAA;IAU1B,cAAc,CAAC,EAAC,IAAI,EAAC;;KAAA;IA8BrB,WAAW,CAAC,YAAY,KAAA;CAMzB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare const _default: "#version 300 es\n#define SHADER_NAME gpu-aggregation-all-fs\n\nprecision highp float;\n\nin vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform bool combineMaxMin;\nout vec4 fragColor;\nvoid main(void) {\n vec4 textureColor = texture(uSampler, vec2(vTextureCoord.s, vTextureCoord.t));\n if (textureColor.a == 0.) {\n discard;\n }\n fragColor.rgb = textureColor.rgb;\n // if combineMinMax is true, use Alpha channel for first weights min value.\n fragColor.a = combineMaxMin ? textureColor.r : textureColor.a;\n}\n";
|
|
2
2
|
export default _default;
|
|
3
3
|
//# sourceMappingURL=aggregate-all-fs.glsl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aggregate-all-fs.glsl.d.ts","sourceRoot":"","sources":["../../../src/utils/gpu-grid-aggregation/aggregate-all-fs.glsl.
|
|
1
|
+
{"version":3,"file":"aggregate-all-fs.glsl.d.ts","sourceRoot":"","sources":["../../../src/utils/gpu-grid-aggregation/aggregate-all-fs.glsl.ts"],"names":[],"mappings":";AAoBA,wBAmBE"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare const _default: "#version 300 es\n#define SHADER_NAME gpu-aggregation-all-vs-64\n\nin vec2 position;\nuniform ivec2 gridSize;\nout vec2 vTextureCoord;\n\nvoid main(void) {\n // Map each position to single pixel\n vec2 pos = vec2(-1.0, -1.0);\n\n // Move to pixel center, pixel-size in screen sapce (2/gridSize) * 0.5 => 1/gridSize\n vec2 offset = 1.0 / vec2(gridSize);\n pos = pos + offset;\n\n gl_Position = vec4(pos, 0.0, 1.0);\n\n int yIndex = gl_InstanceID / gridSize[0];\n int xIndex = gl_InstanceID - (yIndex * gridSize[0]);\n\n vec2 yIndexFP64 = vec2(float(yIndex), 0.);\n vec2 xIndexFP64 = vec2(float(xIndex), 0.);\n vec2 gridSizeYFP64 = vec2(gridSize[1], 0.);\n vec2 gridSizeXFP64 = vec2(gridSize[0], 0.);\n\n vec2 texCoordXFP64 = div_fp64(yIndexFP64, gridSizeYFP64);\n vec2 texCoordYFP64 = div_fp64(xIndexFP64, gridSizeXFP64);\n\n vTextureCoord = vec2(texCoordYFP64.x, texCoordXFP64.x);\n // Enforce default value for ANGLE issue (https://bugs.chromium.org/p/angleproject/issues/detail?id=3941)\n gl_PointSize = 1.0;\n}\n";
|
|
2
2
|
export default _default;
|
|
3
3
|
//# sourceMappingURL=aggregate-all-vs.glsl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aggregate-all-vs.glsl.d.ts","sourceRoot":"","sources":["../../../src/utils/gpu-grid-aggregation/aggregate-all-vs.glsl.
|
|
1
|
+
{"version":3,"file":"aggregate-all-vs.glsl.d.ts","sourceRoot":"","sources":["../../../src/utils/gpu-grid-aggregation/aggregate-all-vs.glsl.ts"],"names":[],"mappings":";AAoBA,wBAiCE"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare const _default: "#define SHADER_NAME gpu-aggregation-to-grid-fs\n\nprecision highp float;\n\nvarying vec3 vWeights;\n\nvoid main(void) {\n gl_FragColor = vec4(vWeights, 1.0);\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n";
|
|
2
2
|
export default _default;
|
|
3
3
|
//# sourceMappingURL=aggregate-to-grid-fs.glsl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aggregate-to-grid-fs.glsl.d.ts","sourceRoot":"","sources":["../../../src/utils/gpu-grid-aggregation/aggregate-to-grid-fs.glsl.
|
|
1
|
+
{"version":3,"file":"aggregate-to-grid-fs.glsl.d.ts","sourceRoot":"","sources":["../../../src/utils/gpu-grid-aggregation/aggregate-to-grid-fs.glsl.ts"],"names":[],"mappings":";AAoBA,wBAWE"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare const _default: "#define SHADER_NAME gpu-aggregation-to-grid-vs\n\nattribute vec3 positions;\nattribute vec3 positions64Low;\nattribute vec3 weights;\nuniform vec2 cellSize;\nuniform vec2 gridSize;\nuniform bool projectPoints;\nuniform vec2 translation;\nuniform vec3 scaling;\n\nvarying vec3 vWeights;\n\nvec2 project_to_pixel(vec4 pos) {\n vec4 result;\n pos.xy = pos.xy/pos.w;\n result = pos + vec4(translation, 0., 0.);\n result.xy = scaling.z > 0. ? result.xy * scaling.xy : result.xy;\n return result.xy;\n}\n\nvoid main(void) {\n\n vWeights = weights;\n\n vec4 windowPos = vec4(positions, 1.);\n if (projectPoints) {\n windowPos = project_position_to_clipspace(positions, positions64Low, vec3(0));\n }\n\n vec2 pos = project_to_pixel(windowPos);\n\n vec2 pixelXY64[2];\n pixelXY64[0] = vec2(pos.x, 0.);\n pixelXY64[1] = vec2(pos.y, 0.);\n\n // Transform (0,0):windowSize -> (0, 0): gridSize\n vec2 gridXY64[2];\n gridXY64[0] = div_fp64(pixelXY64[0], vec2(cellSize.x, 0));\n gridXY64[1] = div_fp64(pixelXY64[1], vec2(cellSize.y, 0));\n float x = floor(gridXY64[0].x);\n float y = floor(gridXY64[1].x);\n pos = vec2(x, y);\n\n // Transform (0,0):gridSize -> (-1, -1):(1,1)\n pos = (pos * (2., 2.) / (gridSize)) - (1., 1.);\n\n // Move to pixel center, pixel-size in screen sapce (2/gridSize) * 0.5 => 1/gridSize\n vec2 offset = 1.0 / gridSize;\n pos = pos + offset;\n\n gl_Position = vec4(pos, 0.0, 1.0);\n\n // Enforce default value for ANGLE issue (https://bugs.chromium.org/p/angleproject/issues/detail?id=3941)\n gl_PointSize = 1.0;\n}\n";
|
|
2
2
|
export default _default;
|
|
3
3
|
//# sourceMappingURL=aggregate-to-grid-vs.glsl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aggregate-to-grid-vs.glsl.d.ts","sourceRoot":"","sources":["../../../src/utils/gpu-grid-aggregation/aggregate-to-grid-vs.glsl.
|
|
1
|
+
{"version":3,"file":"aggregate-to-grid-vs.glsl.d.ts","sourceRoot":"","sources":["../../../src/utils/gpu-grid-aggregation/aggregate-to-grid-vs.glsl.ts"],"names":[],"mappings":";AAoBA,wBAyDE"}
|
|
@@ -1,36 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
export const MAX_32_BIT_FLOAT: 3.402823466e+38;
|
|
8
|
-
export const MIN_BLEND_EQUATION: number[];
|
|
9
|
-
export const MAX_BLEND_EQUATION: number[];
|
|
10
|
-
export const MAX_MIN_BLEND_EQUATION: number[];
|
|
11
|
-
export const EQUATION_MAP: {
|
|
12
|
-
[x: number]: number | number[];
|
|
1
|
+
import { GL } from '@luma.gl/constants';
|
|
2
|
+
export declare const DEFAULT_RUN_PARAMS: {
|
|
3
|
+
projectPoints: boolean;
|
|
4
|
+
viewport: null;
|
|
5
|
+
createBufferObjects: boolean;
|
|
6
|
+
moduleSettings: {};
|
|
13
7
|
};
|
|
14
|
-
export const
|
|
15
|
-
export
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
8
|
+
export declare const MAX_32_BIT_FLOAT = 3.402823466e+38;
|
|
9
|
+
export declare const MIN_BLEND_EQUATION: GL[];
|
|
10
|
+
export declare const MAX_BLEND_EQUATION: GL[];
|
|
11
|
+
export declare const MAX_MIN_BLEND_EQUATION: GL[];
|
|
12
|
+
export declare const EQUATION_MAP: {
|
|
13
|
+
[x: number]: GL | GL[];
|
|
14
|
+
};
|
|
15
|
+
export declare const ELEMENTCOUNT = 4;
|
|
16
|
+
export declare const DEFAULT_WEIGHT_PARAMS: {
|
|
17
|
+
size: number;
|
|
18
|
+
operation: number;
|
|
19
|
+
needMin: boolean;
|
|
20
|
+
needMax: boolean;
|
|
21
|
+
combineMaxMin: boolean;
|
|
22
|
+
};
|
|
23
|
+
export declare const PIXEL_SIZE = 4;
|
|
24
|
+
export declare const WEIGHT_SIZE = 3;
|
|
25
|
+
export declare const MAX_MIN_TEXTURE_OPTS: {
|
|
26
|
+
format: GL;
|
|
27
|
+
type: GL;
|
|
28
|
+
border: number;
|
|
29
|
+
mipmaps: boolean;
|
|
30
|
+
sampler: {
|
|
31
|
+
minFilter: string;
|
|
32
|
+
magFilter: string;
|
|
31
33
|
};
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
34
|
+
dataFormat: GL;
|
|
35
|
+
width: number;
|
|
36
|
+
height: number;
|
|
37
|
+
};
|
|
36
38
|
//# sourceMappingURL=gpu-grid-aggregator-constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gpu-grid-aggregator-constants.d.ts","sourceRoot":"","sources":["../../../src/utils/gpu-grid-aggregation/gpu-grid-aggregator-constants.
|
|
1
|
+
{"version":3,"file":"gpu-grid-aggregator-constants.d.ts","sourceRoot":"","sources":["../../../src/utils/gpu-grid-aggregation/gpu-grid-aggregator-constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,EAAE,EAAC,MAAM,oBAAoB,CAAC;AAGtC,eAAO,MAAM,kBAAkB;;;;;CAK9B,CAAC;AAEF,eAAO,MAAM,gBAAgB,kBAAiB,CAAC;AAC/C,eAAO,MAAM,kBAAkB,MAAwB,CAAC;AACxD,eAAO,MAAM,kBAAkB,MAAwB,CAAC;AACxD,eAAO,MAAM,sBAAsB,MAAmB,CAAC;AACvD,eAAO,MAAM,YAAY;;CAKxB,CAAC;AAEF,eAAO,MAAM,YAAY,IAAI,CAAC;AAC9B,eAAO,MAAM,qBAAqB;;;;;;CAMjC,CAAC;AAEF,eAAO,MAAM,UAAU,IAAI,CAAC;AAC5B,eAAO,MAAM,WAAW,IAAI,CAAC;AAE7B,eAAO,MAAM,oBAAoB;;;;;;;;;;;;CAYhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gpu-grid-aggregator-utils.d.ts","sourceRoot":"","sources":["../../../src/utils/gpu-grid-aggregation/gpu-grid-aggregator-utils.
|
|
1
|
+
{"version":3,"file":"gpu-grid-aggregator-utils.d.ts","sourceRoot":"","sources":["../../../src/utils/gpu-grid-aggregation/gpu-grid-aggregator-utils.ts"],"names":[],"mappings":""}
|
|
@@ -1,16 +1,20 @@
|
|
|
1
|
+
import type { Device } from '@luma.gl/core';
|
|
2
|
+
export declare type GPUGridAggregatorProps = {
|
|
3
|
+
id?: string;
|
|
4
|
+
};
|
|
1
5
|
export default class GPUGridAggregator {
|
|
2
6
|
static getAggregationData({ aggregationData, maxData, minData, maxMinData, pixelIndex }: {
|
|
3
|
-
aggregationData
|
|
4
|
-
maxData
|
|
5
|
-
minData
|
|
6
|
-
maxMinData
|
|
7
|
-
pixelIndex:
|
|
7
|
+
aggregationData?: Float32Array;
|
|
8
|
+
maxData?: Float32Array;
|
|
9
|
+
minData?: Float32Array;
|
|
10
|
+
maxMinData?: Float32Array;
|
|
11
|
+
pixelIndex: number;
|
|
8
12
|
}): {
|
|
9
|
-
cellCount
|
|
10
|
-
cellWeight
|
|
11
|
-
maxCellWieght
|
|
12
|
-
minCellWeight
|
|
13
|
-
totalCount
|
|
13
|
+
cellCount?: any;
|
|
14
|
+
cellWeight?: any;
|
|
15
|
+
maxCellWieght?: any;
|
|
16
|
+
minCellWeight?: any;
|
|
17
|
+
totalCount?: any;
|
|
14
18
|
};
|
|
15
19
|
static getCellData({ countsData, size }: {
|
|
16
20
|
countsData: any;
|
|
@@ -19,10 +23,7 @@ export default class GPUGridAggregator {
|
|
|
19
23
|
cellCounts: Uint32Array;
|
|
20
24
|
cellWeights: Float32Array;
|
|
21
25
|
};
|
|
22
|
-
static isSupported(
|
|
23
|
-
constructor(gl: any, opts?: {});
|
|
24
|
-
id: any;
|
|
25
|
-
gl: any;
|
|
26
|
+
static isSupported(device: Device): boolean;
|
|
26
27
|
state: {
|
|
27
28
|
weightAttributes: {};
|
|
28
29
|
textures: {};
|
|
@@ -33,14 +34,25 @@ export default class GPUGridAggregator {
|
|
|
33
34
|
minFramebuffers: {};
|
|
34
35
|
maxFramebuffers: {};
|
|
35
36
|
equations: {};
|
|
37
|
+
shaderOptions: {};
|
|
38
|
+
modelDirty: boolean;
|
|
36
39
|
resources: {};
|
|
37
40
|
results: {};
|
|
38
41
|
};
|
|
39
|
-
|
|
42
|
+
id: string;
|
|
43
|
+
device: Device;
|
|
44
|
+
_hasGPUSupport: boolean;
|
|
45
|
+
gridAggregationModel: any;
|
|
46
|
+
allAggregationModel: any;
|
|
47
|
+
meanTransform: any;
|
|
48
|
+
constructor(device: Device, props?: GPUGridAggregatorProps);
|
|
40
49
|
delete(): void;
|
|
41
50
|
run(opts?: {}): {};
|
|
42
51
|
getData(weightId: any): {
|
|
43
|
-
aggregationData
|
|
52
|
+
aggregationData?: Float32Array | undefined;
|
|
53
|
+
maxData?: Float32Array | undefined;
|
|
54
|
+
minData?: Float32Array | undefined;
|
|
55
|
+
maxMinData?: Float32Array | undefined;
|
|
44
56
|
};
|
|
45
57
|
updateShaders(shaderOptions?: {}): void;
|
|
46
58
|
_normalizeAggregationParams(opts: any): any;
|
|
@@ -49,7 +61,6 @@ export default class GPUGridAggregator {
|
|
|
49
61
|
_renderAggregateData(opts: any): void;
|
|
50
62
|
_renderToMaxMinTexture(opts: any): void;
|
|
51
63
|
_renderToWeightsTexture(opts: any): void;
|
|
52
|
-
meanTransform: any;
|
|
53
64
|
_runAggregation(opts: any): {};
|
|
54
65
|
_setupFramebuffers(opts: any): void;
|
|
55
66
|
_getMinMaxTexture(name: any): any;
|
|
@@ -57,9 +68,8 @@ export default class GPUGridAggregator {
|
|
|
57
68
|
numCol?: number | undefined;
|
|
58
69
|
numRow?: number | undefined;
|
|
59
70
|
}): void;
|
|
60
|
-
gridAggregationModel: any;
|
|
61
|
-
allAggregationModel: any;
|
|
62
71
|
_setupWeightAttributes(opts: any): void;
|
|
72
|
+
/** GPU Aggregation results are provided in Buffers, if new Buffer objects are created track them for later deletion. */
|
|
63
73
|
_trackGPUResultBuffers(results: any, weights: any): void;
|
|
64
74
|
_updateModels(opts: any): void;
|
|
65
75
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gpu-grid-aggregator.d.ts","sourceRoot":"","sources":["../../../src/utils/gpu-grid-aggregation/gpu-grid-aggregator.
|
|
1
|
+
{"version":3,"file":"gpu-grid-aggregator.d.ts","sourceRoot":"","sources":["../../../src/utils/gpu-grid-aggregation/gpu-grid-aggregator.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAC,MAAM,EAAgB,MAAM,eAAe,CAAC;AAyCzD,oBAAY,sBAAsB,GAAG;IACnC,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,iBAAiB;IAEpC,MAAM,CAAC,kBAAkB,CAAC,EACxB,eAAe,EACf,OAAO,EACP,OAAO,EACP,UAAU,EACV,UAAU,EACX,EAAE;QACD,eAAe,CAAC,EAAE,YAAY,CAAC;QAC/B,OAAO,CAAC,EAAE,YAAY,CAAC;QACvB,OAAO,CAAC,EAAE,YAAY,CAAC;QACvB,UAAU,CAAC,EAAE,YAAY,CAAC;QAC1B,UAAU,EAAE,MAAM,CAAC;KACpB;;;;;;;IAwBD,MAAM,CAAC,WAAW,CAAC,EAAC,UAAU,EAAE,IAAQ,EAAC;;;KAAA;;;;IAezC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,MAAM;IA6BjC,KAAK;;;;;;;;;;;;;;MAoBH;IAEF,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,OAAO,CAAC;IAExB,oBAAoB,MAAC;IACrB,mBAAmB,MAAC;IACpB,aAAa,MAAC;gBAEF,MAAM,EAAE,MAAM,EAAE,KAAK,GAAE,sBAA2B;IAoB9D,MAAM;IA4BN,GAAG,CAAC,IAAI,KAAK;IAab,OAAO,CAAC,QAAQ,KAAA;;;;;;IA4BhB,aAAa,CAAC,aAAa,KAAK;IAMhC,2BAA2B,CAAC,IAAI,KAAA;IAUhC,QAAQ,CAAC,YAAY,KAAA;IAMrB,iBAAiB,CAAC,IAAI,KAAA;IA+CtB,oBAAoB,CAAC,IAAI,KAAA;IA2EzB,sBAAsB,CAAC,IAAI,KAAA;IA0B3B,uBAAuB,CAAC,IAAI,KAAA;IAsD5B,eAAe,CAAC,IAAI,KAAA;IAWpB,kBAAkB,CAAC,IAAI,KAAA;IAyEvB,iBAAiB,CAAC,IAAI,KAAA;IAQtB,YAAY,CAAC,EAAC,MAAU,EAAE,MAAU,EAAC;;;KAAK;IAW1C,sBAAsB,CAAC,IAAI,KAAA;IAQ3B,wHAAwH;IAExH,sBAAsB,CAAC,OAAO,KAAA,EAAE,OAAO,KAAA;IAoBvC,aAAa,CAAC,IAAI,KAAA;CAiBnB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare const _default: "#define SHADER_NAME gpu-aggregation-transform-mean-vs\nattribute vec4 aggregationValues;\nvarying vec4 meanValues;\n\nvoid main()\n{\n // TODO: Use 64-bit division ?? not needed given this is aggregation ??\n bool isCellValid = bool(aggregationValues.w > 0.);\n // aggregationValues: XYZ contain aggregated values, W contains count\n meanValues.xyz = isCellValid ? aggregationValues.xyz/aggregationValues.w : vec3(0, 0, 0);\n meanValues.w = aggregationValues.w;\n\n // Enforce default value for ANGLE issue (https://bugs.chromium.org/p/angleproject/issues/detail?id=3941)\n gl_PointSize = 1.0;\n}\n";
|
|
2
2
|
export default _default;
|
|
3
3
|
//# sourceMappingURL=transform-mean-vs.glsl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transform-mean-vs.glsl.d.ts","sourceRoot":"","sources":["../../../src/utils/gpu-grid-aggregation/transform-mean-vs.glsl.
|
|
1
|
+
{"version":3,"file":"transform-mean-vs.glsl.d.ts","sourceRoot":"","sources":["../../../src/utils/gpu-grid-aggregation/transform-mean-vs.glsl.ts"],"names":[],"mappings":";AAoBA,wBAgBE"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export function getBoundingBox(attributes: any, vertexCount: any): {
|
|
1
|
+
export declare function getBoundingBox(attributes: any, vertexCount: any): {
|
|
2
2
|
xMin: any;
|
|
3
3
|
xMax: any;
|
|
4
4
|
yMin: any;
|
|
5
5
|
yMax: any;
|
|
6
6
|
};
|
|
7
|
-
export function alignToCell(inValue: any, cellSize: any): number;
|
|
7
|
+
export declare function alignToCell(inValue: any, cellSize: any): number;
|
|
8
8
|
/**
|
|
9
9
|
* Based on geometric center of sample points, calculate cellSize in lng/lat (degree) space
|
|
10
10
|
* @param {object} boundingBox - {xMin, yMin, xMax, yMax} contains bounding box of data
|
|
@@ -12,9 +12,15 @@ export function alignToCell(inValue: any, cellSize: any): number;
|
|
|
12
12
|
* @param {boolean, optional} converToDegrees - when true offsets are converted from meters to lng/lat (degree) space
|
|
13
13
|
* @returns {xOffset, yOffset} - cellSize size
|
|
14
14
|
*/
|
|
15
|
-
export function getGridOffset(boundingBox:
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
export declare function getGridOffset(boundingBox: any, cellSize: any, convertToMeters?: boolean): {
|
|
16
|
+
xOffset: any;
|
|
17
|
+
yOffset: any;
|
|
18
|
+
};
|
|
19
|
+
export declare function getGridParams(boundingBox: any, cellSize: any, viewport: any, coordinateSystem: any): {
|
|
20
|
+
gridOffset: {
|
|
21
|
+
xOffset: any;
|
|
22
|
+
yOffset: any;
|
|
23
|
+
};
|
|
18
24
|
translation: number[];
|
|
19
25
|
width: any;
|
|
20
26
|
height: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-aggregation-utils.d.ts","sourceRoot":"","sources":["../../src/utils/grid-aggregation-utils.
|
|
1
|
+
{"version":3,"file":"grid-aggregation-utils.d.ts","sourceRoot":"","sources":["../../src/utils/grid-aggregation-utils.ts"],"names":[],"mappings":"AASA,wBAAgB,cAAc,CAAC,UAAU,KAAA,EAAE,WAAW,KAAA;;;;;EA4BrD;AA4BD,wBAAgB,WAAW,CAAC,OAAO,KAAA,EAAE,QAAQ,KAAA,UAQ5C;AAED;;;;;;GAMG;AAEH,wBAAgB,aAAa,CAAC,WAAW,KAAA,EAAE,QAAQ,KAAA,EAAE,eAAe,UAAO;;;EAS1E;AAED,wBAAgB,aAAa,CAAC,WAAW,KAAA,EAAE,QAAQ,KAAA,EAAE,QAAQ,KAAA,EAAE,gBAAgB,KAAA;;;;;;;;;;EAiB9E"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function filterProps(props: any, filterKeys: any): {};
|
|
1
|
+
export declare function filterProps(props: any, filterKeys: any): {};
|
|
2
2
|
//# sourceMappingURL=prop-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prop-utils.d.ts","sourceRoot":"","sources":["../../src/utils/prop-utils.
|
|
1
|
+
{"version":3,"file":"prop-utils.d.ts","sourceRoot":"","sources":["../../src/utils/prop-utils.ts"],"names":[],"mappings":"AAoBA,wBAAgB,WAAW,CAAC,KAAK,KAAA,EAAE,UAAU,KAAA,MAQ5C"}
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { Device, SamplerProps } from '@luma.gl/core';
|
|
2
|
+
declare type FloatTextureOptions = {
|
|
3
|
+
id: string;
|
|
4
|
+
width?: number;
|
|
5
|
+
height?: number;
|
|
6
|
+
data?: any;
|
|
7
|
+
unpackFlipY?: boolean;
|
|
8
|
+
parameters?: SamplerProps;
|
|
9
|
+
};
|
|
10
|
+
export declare function getFloatTexture(device: Device, opts: FloatTextureOptions): import("@luma.gl/core").Texture<import("@luma.gl/core").TextureProps>;
|
|
11
|
+
export declare function getFramebuffer(device: Device, opts: any): import("@luma.gl/core").Framebuffer;
|
|
12
|
+
export declare function getFloatArray(array: any, size: any, fillValue?: number): any;
|
|
13
|
+
export {};
|
|
4
14
|
//# sourceMappingURL=resource-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource-utils.d.ts","sourceRoot":"","sources":["../../src/utils/resource-utils.
|
|
1
|
+
{"version":3,"file":"resource-utils.d.ts","sourceRoot":"","sources":["../../src/utils/resource-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAW,YAAY,EAAC,MAAM,eAAe,CAAC;AAO5D,aAAK,mBAAmB,GAAG;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,YAAY,CAAC;CAC3B,CAAC;AAGF,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,yEAsBxE;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,KAAA,uCAUlD;AAED,wBAAgB,aAAa,CAAC,KAAK,KAAA,EAAE,IAAI,KAAA,EAAE,SAAS,SAAI,OAKvD"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import GL from '@luma.gl/constants';
|
|
2
|
-
import {Framebuffer, Texture2D, isWebGL2} from '@luma.gl/core';
|
|
3
|
-
|
|
4
|
-
const DEFAULT_PARAMETERS = {
|
|
5
|
-
[GL.TEXTURE_MAG_FILTER]: GL.NEAREST,
|
|
6
|
-
[GL.TEXTURE_MIN_FILTER]: GL.NEAREST
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
export function getFloatTexture(gl, opts = {}) {
|
|
10
|
-
const {
|
|
11
|
-
width = 1,
|
|
12
|
-
height = 1,
|
|
13
|
-
data = null,
|
|
14
|
-
unpackFlipY = true,
|
|
15
|
-
parameters = DEFAULT_PARAMETERS
|
|
16
|
-
} = opts;
|
|
17
|
-
const texture = new Texture2D(gl, {
|
|
18
|
-
data,
|
|
19
|
-
format: isWebGL2(gl) ? GL.RGBA32F : GL.RGBA,
|
|
20
|
-
type: GL.FLOAT,
|
|
21
|
-
border: 0,
|
|
22
|
-
mipmaps: false,
|
|
23
|
-
parameters,
|
|
24
|
-
dataFormat: GL.RGBA,
|
|
25
|
-
width,
|
|
26
|
-
height,
|
|
27
|
-
unpackFlipY
|
|
28
|
-
});
|
|
29
|
-
return texture;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export function getFramebuffer(gl, opts) {
|
|
33
|
-
const {id, width = 1, height = 1, texture} = opts;
|
|
34
|
-
const fb = new Framebuffer(gl, {
|
|
35
|
-
id,
|
|
36
|
-
width,
|
|
37
|
-
height,
|
|
38
|
-
attachments: {
|
|
39
|
-
[GL.COLOR_ATTACHMENT0]: texture
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
return fb;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export function getFloatArray(array, size, fillValue = 0) {
|
|
47
|
-
if (!array || array.length < size) {
|
|
48
|
-
return new Float32Array(size).fill(fillValue);
|
|
49
|
-
}
|
|
50
|
-
return array;
|
|
51
|
-
}
|
/package/src/utils/gpu-grid-aggregation/{aggregate-all-fs.glsl.js → aggregate-all-fs.glsl.ts}
RENAMED
|
File without changes
|
/package/src/utils/gpu-grid-aggregation/{aggregate-all-vs.glsl.js → aggregate-all-vs.glsl.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/utils/gpu-grid-aggregation/{transform-mean-vs.glsl.js → transform-mean-vs.glsl.ts}
RENAMED
|
File without changes
|
|
File without changes
|