This is an automated email from the ASF dual-hosted git repository.
deqingli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git
The following commit(s) were added to refs/heads/master by this push:
new 7426858 refactor(map): add segment ignore threshold in map draw
new 7d28bc7 Merge pull request #10183 from deqingli/master
7426858 is described below
commit 7426858e795d9e804d94afbf025ce30c6189c36e
Author: deqingli <[email protected]>
AuthorDate: Fri Mar 29 15:24:20 2019 +0800
refactor(map): add segment ignore threshold in map draw
---
src/component/helper/MapDraw.js | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/component/helper/MapDraw.js b/src/component/helper/MapDraw.js
index 4dc7c3e..5f4d5d7 100644
--- a/src/component/helper/MapDraw.js
+++ b/src/component/helper/MapDraw.js
@@ -214,6 +214,7 @@ MapDraw.prototype = {
|| nameMap.set(region.name, new graphic.Group());
var compoundPath = new graphic.CompoundPath({
+ segmentIgnoreThreshold: 1,
shape: {
paths: []
}
@@ -249,6 +250,7 @@ MapDraw.prototype = {
return;
}
compoundPath.shape.paths.push(new graphic.Polygon({
+ segmentIgnoreThreshold: 1,
shape: {
points: geometry.exterior
}
@@ -256,6 +258,7 @@ MapDraw.prototype = {
for (var i = 0; i < (geometry.interiors ?
geometry.interiors.length : 0); i++) {
compoundPath.shape.paths.push(new graphic.Polygon({
+ segmentIgnoreThreshold: 1,
shape: {
points: geometry.interiors[i]
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]