fix(plugins): fix error when destroy snapline plugin (#6212)

Co-authored-by: antv <antv@antfin.com>
This commit is contained in:
Aaron 2024-08-22 11:32:07 +08:00 committed by GitHub
parent cdc6d1a3c9
commit 489f27b5c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -365,8 +365,8 @@ export class Snapline extends BasePlugin<SnaplineOptions> {
}
private destroyElements() {
this.horizontalLine.destroy();
this.verticalLine.destroy();
this.horizontalLine?.destroy();
this.verticalLine?.destroy();
}
public destroy() {