@diamondlightsource/davidia
    Preparing search index...

    Class PolygonalSelection

    Class to select a polygon

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    alpha: number = 0.3

    opacity [0,1]

    asDashed?: boolean

    if true, outline is dashed

    closed: boolean

    if true, polygon is closed by joining last and first point

    colour?: string

    outline colour

    defaultClosedColour: "#ffa07a" = '#ffa07a'
    defaultColour: "#88ccee" = ...

    default colour

    defaultOpenColour: "#88ccee" = '#88ccee'
    fixed: boolean = false

    if true, not moveable

    id: string

    identity

    name: string = ''

    name

    points: [number, number][]

    array of point coordinates

    start: [number, number]

    start (or centre) point coordinate

    vStart: Vector3

    Vector3 copy of start coordinate

    Methods