|
@@ -94,7 +94,7 @@ import { computed, ref, watch } from "vue";
|
|
|
import { initRelics, relics } from "@/store/relics";
|
|
|
import { queryMode } from "./install";
|
|
|
import { PoPoint } from "drawing-board";
|
|
|
-import { boardData } from "@/store/scene";
|
|
|
+import { boardData, scenePoints } from "@/store/scene";
|
|
|
import saveAs from "@/util/file-serve";
|
|
|
|
|
|
const menus = [
|
|
@@ -142,10 +142,11 @@ watch(
|
|
|
() => [isCoordPage.value, boardData.value, showPoints.value] as const,
|
|
|
([isCoordPage, _, showPoints]) => {
|
|
|
if (!board.polygon) return;
|
|
|
+ const ids = scenePoints.value.map(({ id }) => id.toString());
|
|
|
board.polygon.children.forEach((entity) => {
|
|
|
if (entity instanceof PoPoint) {
|
|
|
if (isCoordPage) {
|
|
|
- entity.visible(entity.attrib.rtk);
|
|
|
+ entity.visible(entity.attrib.rtk && ids.includes(entity.attrib.id));
|
|
|
} else {
|
|
|
entity.visible(showPoints);
|
|
|
}
|