|
@@ -174,12 +174,15 @@ export const createBoard = (
|
|
});
|
|
});
|
|
},
|
|
},
|
|
showPois() {
|
|
showPois() {
|
|
|
|
+ if (!board.tree.entrys) return;
|
|
const pois = board.tree.entrys.pois as Entity[];
|
|
const pois = board.tree.entrys.pois as Entity[];
|
|
pois.forEach((poi) => {
|
|
pois.forEach((poi) => {
|
|
poi.shape.show();
|
|
poi.shape.show();
|
|
});
|
|
});
|
|
},
|
|
},
|
|
addPoi(type: string) {
|
|
addPoi(type: string) {
|
|
|
|
+ if (!board.tree.entrys) return;
|
|
|
|
+
|
|
board.tree.bus.emit("dataChangeBefore");
|
|
board.tree.bus.emit("dataChangeBefore");
|
|
const { promise, interrupt } = addEntityAttrib(board.tree, (pos) => {
|
|
const { promise, interrupt } = addEntityAttrib(board.tree, (pos) => {
|
|
const attrib = {
|
|
const attrib = {
|