Type Alias TFloorState

TFloorState: {
    altitude: number;
    areas: { type: "floor.areas"; visible: boolean };
    footprint: {
        altitude: number;
        basementMaskEnabled: boolean;
        ceilingThickness: number;
        ceilingVisible: boolean;
        color: string;
        height: number;
        opacity: number;
        outline: boolean;
        type: "floor.footprint";
        visible: boolean;
    };
    geometry: {
        darkenAmount: number;
        darkenUseDepth: boolean;
        desaturateAmount: number;
        desaturateUseDepth: boolean;
        effectDistance: number;
        effectStart: number;
        maskEffect: "hide"
        | "reveal";
        maskEnabled: boolean;
        maskId: null | number;
        maskMode: "mask" | "masked-object";
        opacity: number;
        type: "floor.geometry";
        visible: boolean;
        washOutAmount: number;
        washOutUseDepth: boolean;
    };
    images: {
        collisionsEnabled: boolean;
        type: "floor.images";
        visible: boolean;
    };
    labels: { enabled: boolean; type: "floor.labels" };
    markers: { enabled: boolean; type: "floor.markers" };
    models: { type: "floor.models"; visible: boolean };
    occlusion: { type: "floor.occlusion" };
    paths: { type: "floor.paths"; visible: boolean };
    text3d: { visible: boolean };
    type: "floor";
    visible: boolean;
}

Type declaration

  • altitude: number

    The altitude of the floor.

    0
    
  • areas: { type: "floor.areas"; visible: boolean }
    • type: "floor.areas"
    • visible: boolean

      Visibility of the areas on the floor.

      true
      
  • footprint: {
        altitude: number;
        basementMaskEnabled: boolean;
        ceilingThickness: number;
        ceilingVisible: boolean;
        color: string;
        height: number;
        opacity: number;
        outline: boolean;
        type: "floor.footprint";
        visible: boolean;
    }
    • altitude: number

      Altitude of the footprint relative to the floor.

      0
      
    • basementMaskEnabled: boolean
    • ceilingThickness: number

      Thickness of the footprint ceiling.

      0.2
      
    • ceilingVisible: boolean

      Visibility of the ceiling.

      false
      
    • color: string

      Color of the footprint.

      #ffffff
      
    • height: number

      Height of the footprint relative to altitude.

      0
      
    • opacity: number

      Opacity of the footprint.

      1
      
    • outline: boolean

      Whether to show outlines on the footprint walls and ceiling.

      true
      
    • type: "floor.footprint"
    • visible: boolean

      Whether the footprint is visible.

      false
      
  • geometry: {
        darkenAmount: number;
        darkenUseDepth: boolean;
        desaturateAmount: number;
        desaturateUseDepth: boolean;
        effectDistance: number;
        effectStart: number;
        maskEffect: "hide" | "reveal";
        maskEnabled: boolean;
        maskId: null | number;
        maskMode: "mask" | "masked-object";
        opacity: number;
        type: "floor.geometry";
        visible: boolean;
        washOutAmount: number;
        washOutUseDepth: boolean;
    }
    • darkenAmount: number

      Darkening amount for floors below voids (0 = none, 1 = fully darkened towards #333).

      0
      
    • darkenUseDepth: boolean

      Whether darkening varies by depth.

      true
      
    • desaturateAmount: number

      Desaturation amount for floors below voids (0 = full color, 1 = fully grayscale).

      0
      
    • desaturateUseDepth: boolean

      Whether desaturation varies by depth.

      true
      
    • effectDistance: number

      Distance in meters below effectStart at which depth-based effects reach full strength. 0 = effects disabled.

      0
      
    • effectStart: number

      World-space Z altitude where depth-based effects begin.

      0
      
    • maskEffect: "hide" | "reveal"

      Whether to invert the mask.

    • maskEnabled: boolean

      Whether the mask is enabled.

    • maskId: null | number

      Mask ID of the floor geometry.

      null
      
    • maskMode: "mask" | "masked-object"

      Whether the mask is enabled.

    • opacity: number

      Opacity of the floor geometry.

      1
      
    • type: "floor.geometry"
    • visible: boolean

      Visibility of floor geometry.

      true
      
    • washOutAmount: number

      Wash out amount for floors below voids (0 = no wash out, 1 = fully white).

      0
      
    • washOutUseDepth: boolean

      Whether wash out varies by depth.

      false
      
  • images: { collisionsEnabled: boolean; type: "floor.images"; visible: boolean }
    • collisionsEnabled: boolean

      Whether images on this floor should participate in collision detection. When true, images may be hidden if they collide with other elements.

      false
      
    • type: "floor.images"
    • visible: boolean

      Visibility of the images on the floor.

      true
      
  • labels: { enabled: boolean; type: "floor.labels" }
    • enabled: boolean

      Whether the labels are enabled to be shown when the floor is visible.

      true
      
    • type: "floor.labels"
  • markers: { enabled: boolean; type: "floor.markers" }
    • enabled: boolean

      Whether the markers are enabled to be shown when the floor is visible.

      true
      
    • type: "floor.markers"
  • models: { type: "floor.models"; visible: boolean }
    • type: "floor.models"
    • visible: boolean

      Visibility of the 3D models on the floor.

      true
      
  • occlusion: { type: "floor.occlusion" }
  • paths: { type: "floor.paths"; visible: boolean }
    • type: "floor.paths"
    • visible: boolean

      Visibility of the paths on the floor.

      true
      
  • text3d: { visible: boolean }
    • visible: boolean

      Visibility of the 3D text labels on the floor.

      true
      
  • type: "floor"
  • visible: boolean

    The visibility of the floor, including the geometry, labels, and markers.

    false