sesaparcours
    Preparing search index...
    interface IPathObject {
        constants: ConstantProvider;
        cursorSvg: SVGElement;
        flipRTL: any;
        markerSvg: SVGElement;
        style: BlockStyle;
        svgPath: SVGElement;
        applyColour(block: Blockly.Block): void;
        setCursorSvg(cursorSvg: SVGElement): void;
        setMarkerSvg(markerSvg: SVGElement): void;
        setPath(pathString: string): void;
        setStyle(blockStyle: BlockStyle): void;
        updateDraggingDelete(enable: boolean): void;
        updateHighlighted(highlighted: boolean): void;
        updateInsertionMarker(enable: boolean): void;
        updateMovable(enable: boolean): void;
        updateReplacementFade(enable: boolean): void;
        updateSelected(enable: boolean): void;
    }

    Implemented by

    Index

    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.

    flipRTL: any

    Flip the SVG paths in RTL.

    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 primary path of the block.

    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

    • 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

    • Update 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

      • highlighted: 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