sesaparcours
    Preparing search index...

    Fake class which should be extended to avoid inheriting static properties

    Hierarchy (View Summary)

    Index

    Constructors

    • Class for a workspace comment.

      Parameters

      • workspace: Blockly.Workspace

        The block's workspace.

      • content: string

        The content of this workspace comment.

      • height: number

        Height of the comment.

      • width: number

        Width of the comment.

      • Optionalopt_id: string

        Optional ID. Use this ID if provided, otherwise create a new ID.

      Returns Blockly.WorkspaceComment

    Properties

    id: string
    isComment: boolean
    workspace: Blockly.Workspace

    Methods

    • Dispose of this comment.

      Returns void

    • Returns this comment's text.

      Returns string

      Comment text.

    • Get comment height.

      Returns number

      Comment height.

    • Get comment width.

      Returns number

      Comment width.

    • Get whether this comment is deletable or not.

      Returns boolean

      True if deletable.

    • Get whether this comment is editable or not.

      Returns boolean

      True if editable.

    • Get whether this comment is movable or not.

      Returns boolean

      True if movable.

    • Move a comment by a relative offset.

      Parameters

      • dx: number

        Horizontal offset, in workspace units.

      • dy: number

        Vertical offset, in workspace units.

      Returns void

    • Set this comment's content.

      Parameters

      • content: string

        Comment content.

      Returns void

    • Set whether this comment is deletable or not.

      Parameters

      • deletable: boolean

        True if deletable.

      Returns void

    • Set whether this comment is editable or not.

      Parameters

      • editable: boolean

        True if editable.

      Returns void

    • Set comment height.

      Parameters

      • height: number

        Comment height.

      Returns void

    • Set whether this comment is movable or not.

      Parameters

      • movable: boolean

        True if movable.

      Returns void

    • Set comment width.

      Parameters

      • width: number

        comment width.

      Returns void

    • Encode a comment subtree as XML, but don't serialize the XY coordinates. This method avoids some expensive metrics-related calls that are made in toXmlWithXY().

      Parameters

      • Optionalopt_noId: boolean

        True if the encoder should skip the comment ID.

      Returns Element

      Tree of XML elements.

    • Encode a comment subtree as XML with XY coordinates.

      Parameters

      • Optionalopt_noId: boolean

        True if the encoder should skip the comment ID.

      Returns Element

      Tree of XML elements.