Update index.js

This commit is contained in:
JudeHu 2018-04-15 17:27:48 +08:00 committed by GitHub
parent 16881e7880
commit 79e2d2e169
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"];