SerenityJS
    Preparing search index...

    Class BlockStructureTrait

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    block: Block

    The block that this trait is attached to.

    component: null | typeof BlockTypeComponent = ...

    The block component that this trait is attached to.

    dimension: Dimension

    The dimension that the block is in.

    identifier: string = ...

    The identifier of the trait.

    state: null | string = ...

    The block state key that this trait is attached to.

    tag: null | string = ...

    The block tag that this trait is attached to.

    component: null | typeof BlockTypeComponent = null

    The block component that this trait is compatible with by default. If null, the trait will not attach to any block by default.

    identifier: "structure_block"

    The identifier of the trait.

    state: null | string = null

    The block state key that this trait is compatible with by default. If null, the trait will not be initialized by any block state.

    tag: null | string = null

    The block tag that this trait is compatible with by default. If null, the trait will not attach to any block by default.

    types: BlockIdentifier[] = ...

    The block type identifiers that this trait is compatible with by default.

    Methods

    • Sets whether the bounding box of the structure is visible.

      Parameters

      • visible: boolean

        True to make the bounding box visible, false to hide it.

      Returns void