sesaparcours
    Preparing search index...

    Fake class which should be extended to avoid inheriting static properties

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Dispose of this grid and unlink from the DOM.

      Returns void

    • Get the ID of the pattern element, which should be randomized to avoid conflicts with other Blockly instances on the page.

      Returns string

      The pattern ID.

    • Get the spacing of the grid points (in px).

      Returns number

      The spacing of the grid points.

    • Move the grid to a new x and y position, and make sure that change is visible.

      Parameters

      • x: number

        The new x position of the grid (in px).

      • y: number

        The new y position of the grid (in px).

      Returns void

    • Whether blocks should snap to the grid, based on the initial configuration.

      Returns boolean

      True if blocks should snap, false otherwise.

    • Update the grid with a new scale.

      Parameters

      • scale: number

        The new workspace scale.

      Returns void