You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
264 B
15 lines
264 B
import { fabric } from "fabric";
|
|
|
|
export default class Room {
|
|
constructor() {
|
|
this.group = new fabric.Group();
|
|
}
|
|
|
|
addLayer(layer) {
|
|
this.group.addWithUpdate(layer.group);
|
|
}
|
|
|
|
removeLayer(layer) {
|
|
this.group.removeWithUpdate(layer.group);
|
|
}
|
|
}
|