From 79e2d2e1695cd2ba9b74658b7b479dd3089cf3d9 Mon Sep 17 00:00:00 2001 From: JudeHu <350251978@qq.com> Date: Sun, 15 Apr 2018 17:27:48 +0800 Subject: [PATCH] Update index.js --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 72d853f..ef43927 100644 --- a/index.js +++ b/index.js @@ -285,7 +285,7 @@ const options = { export class TextPath extends LineString { _paintOn(ctx, points, lineOpacity, fillOpacity, dasharray) { delDuplicatePt(points); // paint smoothline error when adjacent-points duplicate - if (this.options['text']){ + if (this.options['textName']){ let fontSize = this.options["fontSize"]; if(this.options["fontSize"].indexOf("px") != -1){ fontSize = this.options["fontSize"];