|
@@ -12,6 +12,7 @@ import {
|
|
|
watchEffect,
|
|
|
} from "vue";
|
|
|
import { currentView } from "../currentScene";
|
|
|
+import { baseLines } from "@/store/baseLine";
|
|
|
|
|
|
const props = defineProps<{ data: MeasureAtom }>();
|
|
|
const emit = defineEmits<{
|
|
@@ -41,10 +42,12 @@ watchEffect(() => {
|
|
|
emit("changePoints", measure.value.getPoints());
|
|
|
});
|
|
|
|
|
|
- if (currentView.value) {
|
|
|
- measure.value.show();
|
|
|
- } else {
|
|
|
- measure.value.hide();
|
|
|
+ if (baseLines.value.includes(props.data)) {
|
|
|
+ if (currentView.value) {
|
|
|
+ measure.value.show();
|
|
|
+ } else {
|
|
|
+ measure.value.hide();
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
});
|