Visual that is displayed at the Cursors position. Has customizable fill and border.

Hierarchy

Implemented by

Properties

getFillStyle: (() => FillStyle)

Type declaration

getOrigin: (() => Point)

Type declaration

    • (): Point
    • Get origin position of PointMarker

      Returns

      (-1 to 1 which specifies position of origin, 0 is center of the object)

      Returns Point

getSize: (() => Point)

Type declaration

    • (): Point
    • Get size of PointMarker

      Returns

      Size of PointMarker in pixels

      Returns Point

getStrokeStyle: (() => LineStyle)

Type declaration

setFillStyle: ((fillStyle: FillStyle | ImmutableMutator<FillStyle, FillStyle>) => PointMarker)

Type declaration

setOrigin: ((origin: Point) => PointMarker)

Type declaration

    • (origin: Point): PointMarker
    • Set origin position of PointMarker

      Returns

      Object itself for fluent interface

      Parameters

      • origin: Point

        (-1 to 1 which specifies position of origin, 0 is center of the object)

      Returns PointMarker

setSize: ((size: Point) => PointMarker)

Type declaration

setStrokeStyle: ((value: LineStyle | ImmutableMutator<LineStyle, LineStyle>) => PointMarker)

Type declaration

Methods

  • Set margin around object in pixels.

    Returns

    Object itself

    Parameters

    • margin: number | Partial<MMargin>

      Number with pixel margins for all sides or datastructure with individual pixel margins for each side. Any side can be omitted, only passed values will be overridden.

    Returns PointMarker