phaser - v4.0.0-rc.4
    Preparing search index...

    A RenderNode which computes the geometry of a line segment.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    The manager that owns this RenderNode.

    name: string

    The name of the RenderNode.

    Methods

    • By default this is an empty method hook that you can override and use in your own custom render nodes.

      This method is called at the start of the run method. Don't forget to call it in your custom method.

      Parameters

      Returns void

    • By default this is an empty method hook that you can override and use in your own custom render nodes.

      This method is called at the end of the run method. Don't forget to call it in your custom method.

      Parameters

      Returns void

    • Get the transformed vertices of a line segment as a quad. The values are pushed to a vertices list in the order TL, BL, BR, TR.

      Parameters

      • drawingContext: DrawingContext

        The context currently in use.

      • currentMatrix: TransformMatrix

        A transform matrix to apply to the vertices. If not defined, the vertices are not transformed.

      • ax: number

        The x coordinate of the start of the line.

      • ay: number

        The y coordinate of the start of the line.

      • bx: number

        The x coordinate of the end of the line.

      • by: number

        The y coordinate of the end of the line.

      • aLineWidth: number

        The width of the line at the start.

      • bLineWidth: number

        The width of the line at the end.

      • vertices: number[]

        The list to which the vertices are assigned.

      Returns void

    • Set whether the node should report debug information. It wraps the run method with additional debug information.

      Parameters

      • debug: boolean

        Whether to report debug information.

      Returns void