From 982c92cf26041bf1ff850186e7a107299f73e2eb Mon Sep 17 00:00:00 2001 From: Jerald-Golden-B Date: Wed, 25 Jun 2025 12:20:53 +0530 Subject: [PATCH] Add WallAsset, Floor, and Zone interfaces to builderTypes --- app/src/types/builderTypes.d.ts | 46 +++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/app/src/types/builderTypes.d.ts b/app/src/types/builderTypes.d.ts index 26dcf65..decde1d 100644 --- a/app/src/types/builderTypes.d.ts +++ b/app/src/types/builderTypes.d.ts @@ -10,6 +10,7 @@ interface Version { type VersionHistory = Version[]; + // Asset interface Asset { @@ -45,6 +46,22 @@ interface Asset { type Assets = Asset[]; +// Wall-Asset + +interface WallAsset { + modelUuid: string; + modelName: string; + assetId: string; + wallUuid: string; + position: [number, number, number]; + isLocked: boolean; + isVisible: boolean; + opacity: number; +} + +type WallAssets = WallAsset[]; + + // Point type PointTypes = 'Aisle' | 'Wall' | 'Floor' | 'Zone'; @@ -81,6 +98,35 @@ interface Wall { type Walls = Wall[]; +// Floor + +interface Floor { + floorUuid: string; + points: Point[]; + sideMaterial: string; + topMaterial: string; + floorDepth: number; + isBeveled: boolean; + bevelStrength: number; +} + +type Floors = Floor[]; + + +// Zone + +interface Zone { + zoneUuid: string; + zoneName: string; + zoneColor: string; + points: Point[]; + viewPortTarget: [number, number, number]; + viewPortPosition: [number, number, number]; +} + +type Zones = Zone[]; + + // Aisle type AisleTypes = 'solid-aisle' | 'dashed-aisle' | 'stripped-aisle' | 'dotted-aisle' | 'arrow-aisle' | 'arrows-aisle' | 'arc-aisle' | 'circle-aisle' | 'junction-aisle';