MLightCAD
    Preparing search index...

    Represents a single marker displayed in screen coordinates.

    A marker is a small shape (circle, triangle, or rectangle) rendered using DOM elements. Its appearance is determined by type, size, and color.

    The marker:

    • Is absolutely positioned on the screen.
    • Cannot receive pointer events.
    • Automatically injects required CSS once globally.
    Index

    Constructors

    Accessors

    Methods

    Constructors

    • Creates a new OSNAP marker instance.

      Parameters

      • type: AcEdMarkerType = 'rect'

        Shape type of the marker (circle, triangle, rect)

      • size: number = 12

        Size of the marker (width/height in px; triangle uses font-size)

      • color: string = 'var(--ml-ui-canvas-line, green)'

        Marker color (CSS color string)

      • host: HTMLElement

        Host container where marker DOM is mounted and positioned

      Returns AcEdMarker

    Accessors

    Methods