Add WallAsset, Floor, and Zone interfaces to builderTypes

This commit is contained in:
2025-06-25 12:20:53 +05:30
parent 3ab5c6ee6a
commit 982c92cf26

View File

@@ -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';