sesaparcours
    Preparing search index...

    Fake class which should be extended to avoid inheriting static properties

    Hierarchy (View Summary)

    Index

    Constructors

    • Class for UI bubble.

      Parameters

      • workspace: WorkspaceSvg

        The workspace on which to draw the bubble.

      • content: Element

        SVG content for the bubble.

      • shape: Element

        SVG element to avoid eclipsing.

      • anchorXY: Blockly.utils.Coordinate

        Absolute position of bubble's anchor point.

      • bubbleWidth: number

        Width of bubble, or null if not resizable.

      • bubbleHeight: number

        Height of bubble, or null if not resizable.

      Returns Blockly.Bubble

    Properties

    disposed: boolean

    Describes whether this bubble has been disposed of (nodes and event listeners removed from the page) or not.

    Methods

    • Dispose of this bubble.

      Returns void

    • Return the root node of the bubble's SVG group.

      Returns SVGElement

      The root SVG node of the bubble's group.

    • Get whether this bubble is deletable or not.

      Returns boolean

      True if deletable.

    • Move this bubble during a drag, taking into account whether or not there is a drag surface.

      Parameters

      • dragSurface: BlockDragSurfaceSvg

        The surface that carries rendered items during a drag, or null if no drag surface is in use.

      • newLoc: Blockly.utils.Coordinate

        The location to translate to, in workspace coordinates.

      Returns void

    • Move the bubble group to the specified location in workspace coordinates.

      Parameters

      • x: number

        The x position to move to.

      • y: number

        The y position to move to.

      Returns void

    • Move this bubble to the top of the stack.

      Returns boolean

      Whether or not the bubble has been moved.

    • Register a function as a callback event for when the bubble is moved.

      Parameters

      • callback: Function

        The function to call on move.

      Returns void

    • Register a function as a callback event for when the bubble is resized.

      Parameters

      • callback: Function

        The function to call on resize.

      Returns void

    • Set whether auto-layout of this bubble is enabled. The first time a bubble is shown it positions itself to not cover any blocks. Once a user has dragged it to reposition, it renders where the user put it.

      Parameters

      • enable: boolean

        True if auto-layout should be enabled, false otherwise.

      Returns void

    • Size this bubble.

      Parameters

      • width: number

        Width of the bubble.

      • height: number

        Height of the bubble.

      Returns void

    • Change the colour of a bubble.

      Parameters

      • hexColour: string

        Hex code of colour.

      Returns void

    • Update the style of this bubble when it is dragged over a delete area.

      Parameters

      • _enable: boolean

        True if the bubble is about to be deleted, false otherwise.

      Returns void

    • Triggers a move callback if one exists at the end of a drag.

      Parameters

      • adding: boolean

        True if adding, false if removing.

      Returns void

    • Expose the block's ID on the bubble's top-level SVG group.

      Parameters

      • id: string

        ID of block.

      Returns void

    • Show the context menu for this bubble.

      Parameters

      Returns void