Class Blueprint

Represents an entire blueprint file.

Hierarchy

  • Blueprint

Constructors

Properties

fileBlueprint: FileBlueprint

Methods

  • Adds a joint to the blueprint.

    Returns

    The added joint.

    Type Parameters

    Type Parameters

    Parameters

    • joint: T

      The joint to add.

    Returns T

  • Gets a joint in the blueprint with the given ID if it exists.

    Returns

    The joint, if it exists.

    Parameters

    • id: number

      The ID of the joint.

    Returns undefined | Joint

  • Removes a body from the blueprint, if it is present.

    Parameters

    • body: Body

      The body to remove.

    Returns void

  • Removes a joint from the blueprint, if it is present.

    Parameters

    • joint: Joint

      The joint to remove.

    Returns void

  • Converts the blueprint to a JSON string.

    Returns

    The JSON string.

    Returns string

  • Converts the blueprint to a JSON string and writes it to a file.

    Parameters

    • path: PathOrFileDescriptor

      The file path.

    Returns void

  • Creates a blueprint from a file path.

    Returns

    The created blueprint.

    Parameters

    • path: PathOrFileDescriptor

      The file path.

    Returns Blueprint

Generated using TypeDoc