Type Alias TGeometryState

TGeometryState: {
    altitude: number;
    borderColor?: string;
    borderVisible: boolean;
    borderWidth?: number;
    color: string;
    enableImageCollisions: boolean;
    flipImageToFaceCamera: boolean;
    height: number;
    hoverColor?: string;
    interactive: boolean;
    opacity: number;
    texture?: { url: string };
    topColor?: string;
    topTexture?: { url: string };
    type: "geometry";
    visible: boolean;
}

Defines the state for geometry elements like Space when updated.

Type declaration

  • altitude: number

    The altitude of the geometry element in meters.

    0
    
  • OptionalborderColor?: string

    The color of the border. borderVisible must be true for this to take effect.

  • borderVisible: boolean

    Whether the geometry has a border

  • OptionalborderWidth?: number

    The width of the border. borderVisible must be true for this to take effect.

  • color: string

    Color of the geometry element. Color can be set using CSS colors names DarkGoldenRod, as Hex strings #0000FF or the rgb values rgb(255,0,0).

    #ffffff
    
  • enableImageCollisions: boolean

    Whether the anchored image should collide with other images.

    false
    
  • flipImageToFaceCamera: boolean

    Whether the image should be flipped to face the camera.

    false
    
  • height: number

    Height of the geometry element in meters.

    0
    
  • OptionalhoverColor?: string

    Color of the geometry element when hovered over. Color can be set using CSS colors names DarkGoldenRod, as Hex strings #0000FF or the rgb values rgb(255,0,0).

  • interactive: boolean

    Indicates if the geometry element is interactive. Color can be set using CSS colors names DarkGoldenRod, as Hex strings #0000FF or the rgb values rgb(255,0,0).

    false
    
  • opacity: number

    Opacity of the geometry element.

    1
    
  • Optionaltexture?: { url: string }

    Texture to apply to the geometry element.

  • OptionaltopColor?: string

    Color of the geometry element's top. Color can be set using CSS colors names DarkGoldenRod, as Hex strings #0000FF or the rgb values rgb(255,0,0).

  • OptionaltopTexture?: { url: string }

    Top texture to apply to the geometry element.

  • type: "geometry"
  • visible: boolean

    Whether the geometry is visible.

    true