# Interface IViewPort

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;
}

#####
Index

### Properties

ambientColor
backClippingPlane
center
defaultLightingOn
defaultLightingType
frontClippingPlane
gridSpacing
lensLength
lowerLeftCorner
name
orthographicType
ownerHandle
renderMode
snapBasePoint
snapRotationAngle
snapSpacing
ucsOrigin
ucsXAxis
ucsYAxis
upperRightCorner
viewDirectionFromTarget
viewHeight
viewTarget
viewTwistAngle

##
Properties

### ambientColor

ambientColor: number

Ambient light color index.

### backClippingPlane

backClippingPlane: string | number | boolean

Back clipping plane setting.

### center

center: DxfPoint

Center point of the viewport.

### defaultLightingOn

defaultLightingOn: string

Indicates if default lighting is enabled.

### defaultLightingType

defaultLightingType: string

Default lighting type.

### frontClippingPlane

frontClippingPlane: string | number | boolean

Front clipping plane setting.

### gridSpacing

gridSpacing: DxfPoint

Grid spacing setting.

### lensLength

lensLength: number

Lens length for the viewport camera.

### lowerLeftCorner

lowerLeftCorner: DxfPoint

Lower-left corner of the viewport.

### name

name: string

Name of the viewport.

### orthographicType

orthographicType: string

Orthographic projection type.

### ownerHandle

ownerHandle: string

Owner handle reference.

### renderMode

renderMode: string

Render mode for the viewport.

### snapBasePoint

snapBasePoint: DxfPoint

Snap base point for the viewport.

### snapRotationAngle

snapRotationAngle: number

Snap rotation angle in radians.

### snapSpacing

snapSpacing: DxfPoint

Snap spacing setting.

### ucsOrigin

ucsOrigin: DxfPoint

UCS origin point.

### ucsXAxis

ucsXAxis: DxfPoint

UCS X-axis vector.

### ucsYAxis

ucsYAxis: DxfPoint

UCS Y-axis vector.

### upperRightCorner

upperRightCorner: DxfPoint

Upper-right corner of the viewport.

### viewDirectionFromTarget

viewDirectionFromTarget: DxfPoint

Viewing direction vector from the target.

### viewHeight

viewHeight: number

View height of the viewport.

### viewTarget

viewTarget: DxfPoint

Viewing target coordinates.

### viewTwistAngle

viewTwistAngle: number

View twist angle in radians.