Skip to content

Commit 76fa5c7

Browse files
authored
0.30.0 (#522)
* update bloom demo * 0.30.0
1 parent 04df878 commit 76fa5c7

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

demo/bloom.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,11 @@
198198
});
199199

200200
lines = lineStrings.slice(0, 1000).map(d => {
201-
var line = threeLayer.toExtrudeLine(d.lineString, { altitude: 0, width: 4, height: 1, bloom: true, interactive: false }, material);
201+
var line = threeLayer.toExtrudeLine(d.lineString, { altitude: 0, width: 4, height: 1, bloom: true, interactive: false, asynchronous: true }, material);
202202
return line;
203203
});
204204
lineTrails = lineStrings.slice(0, 300).map(function (d) {
205-
var line = threeLayer.toExtrudeLineTrail(d.lineString, { altitude: 0, width: 5, height: 2, chunkLength: d.len / 40, speed: 1, trail: 6, bloom: true, interactive: false }, highlightmaterial);
205+
var line = threeLayer.toExtrudeLineTrail(d.lineString, { altitude: 0, width: 5, height: 2, chunkLength: d.len / 40, speed: 1, trail: 6, bloom: true, interactive: false, asynchronous: true }, highlightmaterial);
206206
return line;
207207
});
208208

@@ -218,7 +218,7 @@
218218
function animation() {
219219
// layer animation support Skipping frames
220220
threeLayer._needsUpdate = !threeLayer._needsUpdate;
221-
if (threeLayer._needsUpdate) {
221+
if (threeLayer._needsUpdate && !threeLayer.isRendering()) {
222222
threeLayer.redraw();
223223
}
224224
stats.update();

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "maptalks.three",
3-
"version": "0.29.4",
3+
"version": "0.30.0",
44
"description": "A maptalks Layer to render with THREE.js.",
55
"license": "MIT",
66
"repository": {

0 commit comments

Comments
 (0)