Skip to content

Commit f5e7c47

Browse files
author
Yan Heng
committed
update: 重构polyline代码
1 parent 09288cb commit f5e7c47

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/core/src/customs/polyline.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
import { fabric } from 'fabric';
22

33
export class Polyline extends fabric.Polyline {
4+
public onSelect(options: { e?: Event | undefined }): boolean {
5+
return super.onSelect(options);
6+
}
7+
8+
public onDeselect(options: { e?: Event | undefined; object?: fabric.Object | undefined }): boolean {
9+
return super.onDeselect(options);
10+
}
11+
412
public render(ctx: CanvasRenderingContext2D): void {
513
super.render(ctx);
614
}

0 commit comments

Comments
 (0)