Represents a DXF viewport table entry.

interface IViewPort {
    ambientColor: number;
    backClippingPlane: string | number | boolean;
    center: DxfPoint;
    defaultLightingOn: string;
    defaultLightingType: string;
    frontClippingPlane: string | number | boolean;
    gridSpacing: DxfPoint;
    lensLength: number;
    lowerLeftCorner: DxfPoint;
    name: string;
    orthographicType: string;
    ownerHandle: string;
    renderMode: string;
    snapBasePoint: DxfPoint;
    snapRotationAngle: number;
    snapSpacing: DxfPoint;
    ucsOrigin: DxfPoint;
    ucsXAxis: DxfPoint;
    ucsYAxis: DxfPoint;
    upperRightCorner: DxfPoint;
    viewDirectionFromTarget: DxfPoint;
    viewHeight: number;
    viewTarget: DxfPoint;
    viewTwistAngle: number;
}

Properties

ambientColor: number

Ambient light color index.

backClippingPlane: string | number | boolean

Back clipping plane setting.

center: DxfPoint

Center point of the viewport.

defaultLightingOn: string

Indicates if default lighting is enabled.

defaultLightingType: string

Default lighting type.

frontClippingPlane: string | number | boolean

Front clipping plane setting.

gridSpacing: DxfPoint

Grid spacing setting.

lensLength: number

Lens length for the viewport camera.

lowerLeftCorner: DxfPoint

Lower-left corner of the viewport.

name: string

Name of the viewport.

orthographicType: string

Orthographic projection type.

ownerHandle: string

Owner handle reference.

renderMode: string

Render mode for the viewport.

snapBasePoint: DxfPoint

Snap base point for the viewport.

snapRotationAngle: number

Snap rotation angle in radians.

snapSpacing: DxfPoint

Snap spacing setting.

ucsOrigin: DxfPoint

UCS origin point.

ucsXAxis: DxfPoint

UCS X-axis vector.

ucsYAxis: DxfPoint

UCS Y-axis vector.

upperRightCorner: DxfPoint

Upper-right corner of the viewport.

viewDirectionFromTarget: DxfPoint

Viewing direction vector from the target.

viewHeight: number

View height of the viewport.

viewTarget: DxfPoint

Viewing target coordinates.

viewTwistAngle: number

View twist angle in radians.