diff --git a/index.js b/index.js index 45889a0..72d853f 100644 --- a/index.js +++ b/index.js @@ -298,7 +298,7 @@ export class TextPath extends LineString { } const font = fontSize + " " + this.options["fontFamily"]; - this._paintPolylineTextPath(ctx, points, this.options['text'], font, + this._paintPolylineTextPath(ctx, points, this.options['textName'], font, this.options["symbol"]['lineColor'], this.options["symbol"]['lineWidth'], lineOpacity