q5m.js - Quantum Computing Library - v0.1.1
    Preparing search index...

    Interface SVGWire

    Defines the properties of a wire for SVG rendering.

    interface SVGWire {
        x1: number;
        y1: number;
        x2: number;
        y2: number;
        type: "qubit-wire" | "control-line";
        strokeWidth: number;
    }
    Index

    Properties

    Properties

    x1: number

    The starting x-coordinate of the wire.

    y1: number

    The starting y-coordinate of the wire.

    x2: number

    The ending x-coordinate of the wire.

    y2: number

    The ending y-coordinate of the wire.

    type: "qubit-wire" | "control-line"

    The type of wire.

    strokeWidth: number

    The stroke width of the wire.