@deck.gl/aggregation-layers
Advanced tools
Comparing version 9.0.0-beta.2 to 9.0.0-beta.3
@@ -5,3 +5,4 @@ { | ||
"license": "MIT", | ||
"version": "9.0.0-beta.2", | ||
"type": "module", | ||
"version": "9.0.0-beta.3", | ||
"publishConfig": { | ||
@@ -20,9 +21,15 @@ "access": "public" | ||
}, | ||
"main": "dist/es5/index.js", | ||
"module": "dist/esm/index.js", | ||
"types": "typed/index.d.ts", | ||
"types": "dist/index.d.ts", | ||
"main": "dist/index.cjs", | ||
"module": "dist/index.js", | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.js", | ||
"require": "./dist/index.cjs" | ||
} | ||
}, | ||
"files": [ | ||
"dist", | ||
"src", | ||
"typed", | ||
"dist.min.js" | ||
@@ -37,5 +44,5 @@ ], | ||
"@babel/runtime": "^7.0.0", | ||
"@luma.gl/constants": "9.0.0-beta.1", | ||
"@luma.gl/core": "9.0.0-beta.1", | ||
"@luma.gl/shadertools": "9.0.0-beta.1", | ||
"@luma.gl/constants": "9.0.0-beta.4", | ||
"@luma.gl/core": "9.0.0-beta.4", | ||
"@luma.gl/shadertools": "9.0.0-beta.4", | ||
"@math.gl/web-mercator": "^4.0.0", | ||
@@ -47,6 +54,6 @@ "d3-hexbin": "^0.2.1" | ||
"@deck.gl/layers": "^9.0.0-alpha", | ||
"@luma.gl/core": "9.0.0-beta.1", | ||
"@luma.gl/engine": "9.0.0-beta.1" | ||
"@luma.gl/core": "9.0.0-beta.4", | ||
"@luma.gl/engine": "9.0.0-beta.4" | ||
}, | ||
"gitHead": "ed132efaf84a75ea71c89dd8555b6ffc1fe839d5" | ||
"gitHead": "643d1009268bbf92b5bc0941d00aa59d5e3a582b" | ||
} |
@@ -24,3 +24,2 @@ // Copyright (c) 2015 - 2018 Uber Technologies, Inc. | ||
import {fp64arithmetic} from '@luma.gl/shadertools'; | ||
import {readPixelsToBuffer, withGLParameters, clear} from '@luma.gl/webgl'; | ||
import {GL} from '@luma.gl/constants'; | ||
@@ -306,3 +305,3 @@ import {log, project32, _mergeShaders as mergeShaders, getShaderAssembler} from '@deck.gl/core'; | ||
results[id].aggregationTexture = textures[id]; | ||
results[id].aggregationBuffer = readPixelsToBuffer(framebuffers[id], { | ||
results[id].aggregationBuffer = this.device.readPixelsToBufferWebGL(framebuffers[id], { | ||
target: weights[id].aggregationBuffer, // update if a buffer is provided | ||
@@ -312,3 +311,3 @@ sourceType: GL.FLOAT | ||
if (needMin && needMax && combineMaxMin) { | ||
results[id].maxMinBuffer = readPixelsToBuffer(maxMinFramebuffers[id], { | ||
results[id].maxMinBuffer = this.device.readPixelsToBufferWebGL(maxMinFramebuffers[id], { | ||
target: weights[id].maxMinBuffer, // update if a buffer is provided | ||
@@ -320,3 +319,3 @@ sourceType: GL.FLOAT | ||
if (needMin) { | ||
results[id].minBuffer = readPixelsToBuffer(minFramebuffers[id], { | ||
results[id].minBuffer = this.device.readPixelsToBufferWebGL(minFramebuffers[id], { | ||
target: weights[id].minBuffer, // update if a buffer is provided | ||
@@ -328,3 +327,3 @@ sourceType: GL.FLOAT | ||
if (needMax) { | ||
results[id].maxBuffer = readPixelsToBuffer(maxFramebuffers[id], { | ||
results[id].maxBuffer = this.device.readPixelsToBufferWebGL(maxFramebuffers[id], { | ||
target: weights[id].maxBuffer, // update if a buffer is provided | ||
@@ -421,4 +420,3 @@ sourceType: GL.FLOAT | ||
withGLParameters( | ||
this.device, | ||
this.device.withParametersWebGL( | ||
{ | ||
@@ -430,3 +428,3 @@ ...clearParams, | ||
() => { | ||
clear(this.device, {color: true}); | ||
this.device.clearWebGL({color: true}); | ||
@@ -454,4 +452,3 @@ // allAggregationModel.setParameters(parameters); | ||
: [0, 0, 0, 0]; | ||
withGLParameters( | ||
this.device, | ||
this.device.withParametersWebGL( | ||
{ | ||
@@ -463,3 +460,3 @@ framebuffer: framebuffers[id], | ||
() => { | ||
clear(this.device, {color: true}); | ||
this.device.clearWebGL({color: true}); | ||
@@ -495,3 +492,3 @@ const attributes = {weights: weightAttributes[id]}; | ||
// update framebuffer with mean results so readPixelsToBuffer returns mean values | ||
// update framebuffer with mean results so device.readPixelsToBufferWebGL returns mean values | ||
framebuffers[id].attach({[GL.COLOR_ATTACHMENT0]: textures[id]}); | ||
@@ -620,3 +617,3 @@ } | ||
if (results[id][bufferName] && weights[id][bufferName] !== results[id][bufferName]) { | ||
// No result buffer is provided in weights object, `readPixelsToBuffer` has created a new Buffer object | ||
// No result buffer is provided in weights object, `device.readPixelsToBufferWebGL` has created a new Buffer object | ||
// collect the new buffer for garabge collection | ||
@@ -623,0 +620,0 @@ const name = `gpu-result-${id}-${bufferName}`; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Yes
1409221
191
24567
1
+ Added@luma.gl/constants@9.0.0-beta.4(transitive)
+ Added@luma.gl/core@9.0.0-beta.4(transitive)
+ Added@luma.gl/engine@9.0.0-beta.4(transitive)
+ Added@luma.gl/shadertools@9.0.0-beta.4(transitive)
- Removed@luma.gl/constants@9.0.0-beta.1(transitive)
- Removed@luma.gl/core@9.0.0-beta.1(transitive)
- Removed@luma.gl/engine@9.0.0-beta.1(transitive)
- Removed@luma.gl/shadertools@9.0.0-beta.1(transitive)
Updated@luma.gl/core@9.0.0-beta.4