Skip to content

Commit 46cdd24

Browse files
committed
add Tween
1 parent df7f1ae commit 46cdd24

17 files changed

Lines changed: 9885 additions & 4062 deletions

build/mapv.js

Lines changed: 4470 additions & 3872 deletions
Large diffs are not rendered by default.

build/mapv.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/release/mapv.v2.0.3.js

Lines changed: 4475 additions & 0 deletions
Large diffs are not rendered by default.

build/release/mapv.v2.0.3.min.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export var version = "2.0.2";
1+
export var version = "2.0.3";

examples/baidu-map-forceEdgeBundling.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,9 +257,12 @@
257257
size: 1.5,
258258
animation: {
259259
type: 'time',
260-
steps: 100,
260+
stepsRange: {
261+
start: 0,
262+
end: 100
263+
},
261264
trails: 1,
262-
duration: 5
265+
duration: 5,
263266
},
264267
draw: 'simple'
265268
}

examples/baidu-map-point-heatmap-time.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
end: 100
7373
},
7474
trails: 10,
75-
duration: 5,
75+
duration: 4,
7676
},
7777
draw: 'heatmap'
7878
}

examples/baidu-map-polyline-time.html

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,13 @@
184184

185185
rs = rs.split("\n");
186186
console.log(rs.length);
187+
var maxLength = 0;
187188
for (var i = 0; i < rs.length; i++) {
188189
var item = rs[i].split(',');
189190
var coordinates = [];
191+
if (item.length > maxLength) {
192+
maxLength = item.length;
193+
}
190194
for (j = 0; j < item.length; j += 2) {
191195
coordinates.push([item[j], item[j + 1]]);
192196
timeData.push({
@@ -202,8 +206,7 @@
202206
geometry: {
203207
type: 'LineString',
204208
coordinates: coordinates
205-
},
206-
count: 30 * Math.random()
209+
}
207210
});
208211

209212
}
@@ -233,9 +236,9 @@
233236
animation: {
234237
stepsRange: {
235238
start: 0,
236-
end: 100
239+
end: 100
237240
},
238-
trails: 1,
241+
trails: 3,
239242
duration: 5,
240243
},
241244
draw: 'simple'

examples/qianxi.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@
366366
end: 50
367367
},
368368
trails: 10,
369-
duration: 3,
369+
duration: 2,
370370
},
371371
draw: 'simple'
372372
}

nodeCanvasExamples/line.png

-56.6 KB
Loading

0 commit comments

Comments
 (0)