sesaparcours
    Preparing search index...

    Fake class which should be extended to avoid inheriting static properties

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    constants: ConstantProvider

    The renderer's constant provider.

    cursorSvg: SVGElement

    Holds the cursors svg element when the cursor is attached to the block. This is null if there is no cursor on the block.

    markerSvg: SVGElement

    Holds the markers svg element when the marker is attached to the block. This is null if there is no marker on the block.

    style: BlockStyle

    The style object to use when colouring block paths.

    svgPath: SVGElement

    The primary path of the block.

    Methods

    • Apply the stored colours to the block's path, taking into account whether the paths belong to a shadow block.

      Parameters

      Returns void

    • Flip the SVG paths in RTL.

      Returns void

    • Add the cursor SVG to this block's SVG group.

      Parameters

      • cursorSvg: SVGElement

        The SVG root of the cursor to be added to the block SVG group.

      Returns void

    • Add the marker SVG to this block's SVG group.

      Parameters

      • markerSvg: SVGElement

        The SVG root of the marker to be added to the block SVG group.

      Returns void

    • Set the path generated by the renderer onto the respective SVG element.

      Parameters

      • pathString: string

        The path.

      Returns void

    • Set the style.

      Parameters

      Returns void

    • Add or remove styling showing that a block is dragged over a delete area.

      Parameters

      • enable: boolean

        True if the block is being dragged over a delete area, false otherwise.

      Returns void

    • Set whether the block shows a highlight or not. Block highlighting is often used to visually mark blocks currently being executed.

      Parameters

      • enable: boolean

        True if highlighted.

      Returns void

    • Add or remove styling showing that a block is an insertion marker.

      Parameters

      • enable: boolean

        True if the block is an insertion marker, false otherwise.

      Returns void

    • Add or remove styling showing that a block is movable.

      Parameters

      • enable: boolean

        True if the block is movable, false otherwise.

      Returns void

    • Add or remove styling that shows that if the dragging block is dropped, this block will be replaced. If a shadow block, it will disappear. Otherwise it will bump.

      Parameters

      • enable: boolean

        True if styling should be added.

      Returns void

    • Add or remove styling showing that a block is selected.

      Parameters

      • enable: boolean

        True if selection is enabled, false otherwise.

      Returns void

    • Add or remove styling that shows that if the dragging block is dropped, this block will be connected to the input.

      Parameters

      • _conn: Blockly.Connection

        The connection on the input to highlight.

      • _enable: boolean

        True if styling should be added.

      Returns void