simulation #48

Merged
Vishnu merged 2 commits from simulation into main 2025-04-07 06:00:38 +00:00
3 changed files with 5 additions and 4 deletions
Showing only changes of commit c44629f07d - Show all commits

View File

@@ -12,7 +12,7 @@ const Outline: React.FC = () => {
const dropdownItems = [ const dropdownItems = [
{ id: "1", name: "Ground Floor" }, { id: "1", name: "Ground Floor" },
{ id: "2", name: "Floor 1" }, // { id: "2", name: "Floor 1" },
]; // Example dropdown items ]; // Example dropdown items
return ( return (

View File

@@ -44,11 +44,13 @@ const BoundingBox = ({ boundingBoxRef }: any) => {
}; };
}, [selectedAssets]); }, [selectedAssets]);
const savedTheme: string | null = localStorage.getItem("theme") || "light";
return ( return (
<> <>
{points.length > 0 && ( {points.length > 0 && (
<> <>
<Line points={points} color="yellow" lineWidth={2.5} segments /> <Line points={points} color={savedTheme === "dark" ? "#c4abf1" : "#6f42c1"} lineWidth={2.7} segments />
<mesh ref={boundingBoxRef} visible={false} position={boxProps.position}> <mesh ref={boundingBoxRef} visible={false} position={boxProps.position}>
<boxGeometry args={boxProps.args} /> <boxGeometry args={boxProps.args} />
<meshBasicMaterial /> <meshBasicMaterial />

View File

@@ -1,8 +1,7 @@
let BackEnd_url = `http://${process.env.REACT_APP_SERVER_MARKETPLACE_URL}`; let BackEnd_url = `http://${process.env.REACT_APP_SERVER_MARKETPLACE_URL}`;
export const getCategoryAsset = async (categoryName: any) => { export const getCategoryAsset = async (categoryName: any) => {
try { try {
const response = await fetch( const response = await fetch(`${BackEnd_url}/api/v2/getCategoryAssets/${categoryName}`,
`${BackEnd_url}/api/v2/getCategoryAssets/${categoryName}`,
{ {
method: "GET", method: "GET",
headers: { headers: {