Foundry Virtual Tabletop - API Documentation - Version 14
    Preparing search index...

    A specialized Map class that manages all edges used to restrict perception in a Scene. Integrates with a Quadtree for efficient spatial queries.

    Hierarchy

    • Map
      • CanvasEdges
    Index

    Accessors

    Methods

    Accessors

    • get level(): Level

      The Level these edges belong to.

      Returns Level

    Methods

    • Parameters

      • id: any

      Returns boolean

    • Retrieves edges that overlap with a given rectangle. Utilizes the Quadtree for efficient spatial querying. This function computes edge intersections if necessary.

      Parameters

      • rect: Rectangle

        The rectangle to query against.

      • options: {
            collisionTest?: (edge: Edge) => boolean;
            collisionTestBounds?: boolean;
            includeInnerBounds?: boolean;
            includeOuterBounds?: boolean;
        } = {}
        • OptionalcollisionTest?: (edge: Edge) => boolean

          Collision function to test edge inclusion.

        • OptionalcollisionTestBounds?: boolean

          Apply collision test to bounds?

        • OptionalincludeInnerBounds?: boolean

          Should inner bounds be added?

        • OptionalincludeOuterBounds?: boolean

          Should outer bounds be added?

      Returns Set<Edge>

      A set of Edge instances that intersect with the provided rectangle.