Type Alias DucIssueAnchor

DucIssueAnchor:
    | { scope?: Scope; type: "canvas"; x: number; y: number }
    | {
        anchorX?: number;
        anchorY?: number;
        elementId: string;
        type: "element";
    }
    | {
        elementId: string;
        normal?: [number, number, number];
        point: [number, number, number];
        topologyId?: string;
        type: "model";
        viewerState?: Viewer3DState;
    }

Type declaration

  • { scope?: Scope; type: "canvas"; x: number; y: number }
    • Optionalscope?: Scope
    • type: "canvas"
    • x: number

      Canvas location in drawing units.

    • y: number
  • { anchorX?: number; anchorY?: number; elementId: string; type: "element" }
    • OptionalanchorX?: number

      Anchor point on the attached element, in element-local units in case of referencing a specific region of the element.

    • OptionalanchorY?: number
    • elementId: string
    • type: "element"
  • {
        elementId: string;
        normal?: [number, number, number];
        point: [number, number, number];
        topologyId?: string;
        type: "model";
        viewerState?: Viewer3DState;
    }
    • elementId: string

      Must reference a DucModelElement.

    • Optionalnormal?: [number, number, number]

      Surface normal in model-local coordinates. Used to orient and offset the marker away from the surface.

    • point: [number, number, number]

      Anchor point in model-local coordinates, in the model's native units. This is the primary position used to keep the issue pinned to the model.

    • OptionaltopologyId?: string

      Stable CAD/BREP/IFC topology identifier, only when provided by the model pipeline. Do not derive this from renderer face indices.

    • type: "model"
    • OptionalviewerState?: Viewer3DState

      Viewer state at the time this issue was created. Stored separately from the element's viewerState so the inspection angle is preserved even if the model's current viewer state changes.