sesaparcours
    Preparing search index...

    Fake class which should be extended to avoid inheriting static properties

    Hierarchy (View Summary)

    Index

    Constructors

    • An object containing information about what elements are in the top row of a block as well as sizing information for the top row. Elements in a top row can consist of corners, hats, spacers, and previous connections. After this constructor is called, the row will contain all non-spacer elements it needs.

      Parameters

      Returns TopRow

    Properties

    align: number

    Alignment of the row.

    ascenderHeight: number

    How much the row extends up above its capline.

    capline: number

    The starting point for drawing the row, in the y direction. This allows us to draw hats and similar shapes that don't start at the origin. Must be non-negative (see #2820).

    connection: PreviousConnection

    The previous connection on the block, if any.

    elements: Measurable[]

    An array of elements contained in this row.

    hasDummyInput: boolean

    Whether the row has any dummy inputs.

    hasExternalInput: boolean

    Whether the row has any external inputs.

    hasInlineInput: boolean

    Whether the row has any inline inputs.

    hasJaggedEdge: boolean

    Whether the row has a jagged edge.

    hasPreviousConnection: boolean

    Whether the block has a previous connection.

    hasStatement: boolean

    Whether the row has any statement inputs.

    height: number

    The height of the row.

    minHeight: number

    The minimum height of the row.

    minWidth: number

    The minimum width of the row, from the left edge of the block to the right. Does not include child blocks unless they are inline.

    type: number

    The type of this rendering object.

    width: number

    The width of the row, from the left edge of the block to the right. Does not include child blocks unless they are inline.

    widthWithConnectedBlocks: number

    The width of the row, from the left edge of the block to the edge of the block or any connected child blocks.

    xPos: number

    The X position of the row relative to the origin of the block's svg group.

    yPos: number

    The Y position of the row relative to the origin of the block's svg group.

    Methods

    • Determines whether this row should end with an element spacer.

      Returns boolean

      Whether the row should end with a spacer.

    • Convenience method to get the first spacer element on this row.

      Returns InRowSpacer

      The first spacer element on this row.

    • Get the last input on this row, if it has one.

      Returns InputConnection

      The last input on the row, or null.

    • Convenience method to get the last spacer element on this row.

      Returns InRowSpacer

      The last spacer element on this row.

    • Returns whether or not the top row has a left square corner.

      Parameters

      Returns boolean

      Whether or not the top row has a left square corner.

    • Returns whether or not the top row has a right square corner.

      Parameters

      Returns boolean

      Whether or not the top row has a right square corner.

    • Inspect all subcomponents and populate all size properties on the row.

      Returns void

    • Determines whether this row should start with an element spacer.

      Returns boolean

      Whether the row should start with a spacer.