sesaparcours
    Preparing search index...

    Fake class which should be extended to avoid inheriting static properties

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    name: string

    The renderer name.

    overrides: Object

    Rendering constant overrides, passed in through options.

    Methods

    • Create any DOM elements that this renderer needs.

      Parameters

      Returns void

    • Dispose of this renderer. Delete all DOM elements that this renderer and its constants created.

      Returns void

    • Gets the class name that identifies this renderer.

      Returns string

      The CSS class name.

    • Get the current renderer's constant provider. We assume that when this is called, the renderer has already been initialized.

      Returns ConstantProvider

      The constant provider.

    • Initialize the renderer.

      Parameters

      • theme: Blockly.Theme

        The workspace theme object.

      • Optionalopt_rendererOverrides: Object

        Rendering constant overrides.

      Returns void

    • Checks if an orphaned block can connect to the "end" of the topBlock's block-clump. If the clump is a row the end is the last input. If the clump is a stack, the end is the last next connection. If the clump is neither, then this returns false.

      Parameters

      • topBlock: Blockly.BlockSvg

        The top block of the block clump we want to try and connect to.

      • orphanBlock: Blockly.BlockSvg

        The orphan block that wants to find a home.

      • localType: number

        The type of the connection being dragged.

      Returns boolean

      Whether there is a home for the orphan or not.

    • Refresh the renderer after a theme change.

      Parameters

      Returns void

    • Render the block.

      Parameters

      Returns void

    • Determine whether or not to highlight a connection.

      Parameters

      Returns boolean

      True if we should highlight the connection.