object move blocks

debug floaters
This commit is contained in:
azykov@mail.ru
2026-06-12 21:11:35 +03:00
parent 20a4edad5a
commit 209ff3f710
31 changed files with 527 additions and 53 deletions
@@ -0,0 +1,25 @@
import { useEffect } from "react";
import { observer } from "mobx-react-lite";
import { debugLabelsStore } from "../state/debugLabelsStore";
import { DebugLabel } from "./DebugLabel";
import type { RuntimeScene } from "../types";
export const DebugLabelsView = observer(function ({ scene }: { scene: RuntimeScene }) {
useEffect(
() => {
return () => { debugLabelsStore.clear(); };
},
[],
);
return <>
{
Object.entries(scene.objects)
.map(([objectId, obj]) => {
return <DebugLabel key={objectId} obj={obj} />;
})
}
</>;
});