Skip to content

Commit bbf9d10

Browse files
committed
fix: prevent error while adding shapes to canvas now that it is a GridLayout
1 parent bec0d79 commit bbf9d10

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ui-canvas/index.common.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,18 +134,18 @@ export abstract class CanvasBase extends GridLayout {
134134
}
135135
// we ignore any other kind of view.
136136
}
137-
public _removeView(view: any) {
137+
public removeChild(view: any) {
138138
if (view instanceof Shape) {
139139
this.removeShape(view);
140140
} else {
141-
super._removeView(view);
141+
super.removeChild(view);
142142
}
143143
}
144-
public _addView(view: any) {
144+
public addChild(view: any) {
145145
if (view instanceof Shape) {
146146
this.addShape(view);
147147
} else {
148-
super._addView(view);
148+
super.addChild(view);
149149
}
150150
}
151151

0 commit comments

Comments
 (0)