HomeWeb Components API Reference - v0.10.1
    Preparing search index...

    Class SkyElement

    The SkyElement interface provides properties and methods for manipulating <pc-sky> elements. The SkyElement interface also inherits the properties and methods of the HTMLElement interface.

    Hierarchy (View Summary)

    Index
    • get asset(): string

      Gets the id of the pc-asset to use for the skybox.

      Returns string

      The asset ID.

    • set asset(value: string): void

      Sets the id of the pc-asset to use for the skybox.

      Parameters

      • value: string

        The asset ID.

      Returns void

    • get center(): Vec3

      Gets the center of the skybox.

      Returns Vec3

      The center.

    • set center(value: Vec3): void

      Sets the center of the skybox.

      Parameters

      • value: Vec3

        The center.

      Returns void

    • get closestApp(): AppElement | null

      The nearest ancestor <pc-app> element, or null if this element has no <pc-app> ancestor. The search starts at the parent, so an element never resolves to itself.

      Returns AppElement | null

      The closest app element, or null.

    • get closestEntity(): EntityElement | null

      The nearest ancestor <pc-entity> element, or null if this element has no <pc-entity> ancestor. The search starts at the parent, so an element never resolves to itself.

      Returns EntityElement | null

      The closest entity element, or null.

    • get intensity(): number

      Gets the intensity of the skybox.

      Returns number

      The intensity.

    • set intensity(value: number): void

      Sets the intensity of the skybox.

      Parameters

      • value: number

        The intensity.

      Returns void

    • get level(): number

      Gets the mip level of the skybox.

      Returns number

      The mip level.

    • set level(value: number): void

      Sets the mip level of the skybox.

      Parameters

      • value: number

        The mip level.

      Returns void

    • get lighting(): boolean

      Gets whether the skybox is used as a light source.

      Returns boolean

      Whether to use lighting.

    • set lighting(value: boolean): void

      Sets whether the skybox is used as a light source.

      Parameters

      • value: boolean

        Whether to use lighting.

      Returns void

    • get rotation(): Vec3

      Gets the Euler rotation of the skybox.

      Returns Vec3

      The rotation.

    • set rotation(value: Vec3): void

      Sets the Euler rotation of the skybox.

      Parameters

      • value: Vec3

        The rotation.

      Returns void

    • get scale(): Vec3

      Gets the scale of the skybox.

      Returns Vec3

      The scale.

    • set scale(value: Vec3): void

      Sets the scale of the skybox.

      Parameters

      • value: Vec3

        The scale.

      Returns void

    • get type(): "box" | "dome" | "infinite" | "none"

      Gets the type of the skybox.

      Returns "box" | "dome" | "infinite" | "none"

      The type.

    • set type(value: "box" | "dome" | "infinite" | "none"): void

      Sets the type of the skybox.

      Parameters

      • value: "box" | "dome" | "infinite" | "none"

        The type.

      Returns void

    • Called when the element is fully initialized and ready. Subclasses should call this when they're ready. Resolves the ready promise and dispatches a bubbling, composed ready event.

      Returns void