sesaparcours
    Preparing search index...

    Fake class which should be extended to avoid inheriting static properties

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Methods

    • Check whether the current connection can connect with the target connection.

      Parameters

      • a: Blockly.Connection

        Connection to check compatibility with.

      • b: Blockly.Connection

        Connection to check compatibility with.

      • isDragging: boolean

        True if the connection is being made by dragging a block.

      • Optionalopt_distance: number

        The max allowable distance between the connections for drag checks.

      Returns boolean

      Whether the connection is legal.

    • Checks whether the current connection can connect with the target connection, and return an error code if there are problems.

      Parameters

      • a: Blockly.Connection

        Connection to check compatibility with.

      • b: Blockly.Connection

        Connection to check compatibility with.

      • isDragging: boolean

        True if the connection is being made by dragging a block.

      • Optionalopt_distance: number

        The max allowable distance between the connections for drag checks.

      Returns number

      Blockly.Connection.CAN_CONNECT if the connection is legal, an error code otherwise.

    • Check that connecting the given connections is safe, meaning that it would not break any of Blockly's basic assumptions (e.g. no self connections).

      Parameters

      Returns number

      An enum with the reason this connection is safe or unsafe.

    • Check whether this connection is compatible with another connection with respect to the value type system. E.g. square_root("Hello") is not compatible.

      Parameters

      Returns boolean

      True if the connections share a type.

    • Helper method that translates a connection error code into a string.

      Parameters

      Returns string

      A developer-readable error string.