# Interface DxfEntity

Represents a single DXF entity. Entities can include points, lines, circles, arcs, text, or polylines.

interface DxfEntity {
blockName?: string;
blocks?: Record<string, DxfBlock>;
center?: DxfPoint;
closed?: boolean;
color?: number;
endAngle?: number;
height?: number;
isFromSpecialBlock?: boolean;
layer?: string;
name?: string;
position?: DxfPoint;
radius?: number;
rotation?: number;
scale?: DxfScale;
shape?: boolean;
startAngle?: number;
text?: string;
type: string;
vertices?: DxfPoint[];
}

#####
Index

### Properties

blockName?
blocks?
center?
closed?
color?
endAngle?
height?
isFromSpecialBlock?
layer?
name?
position?
radius?
rotation?
scale?
shape?
startAngle?
text?
type
vertices?

##
Properties

### `Optional` blockName

blockName?: string

Name of the block this entity references (if any).

### `Optional` blocks

blocks?: Record<string, DxfBlock>

Optional dictionary of nested blocks referenced by this entity.

### `Optional` center

center?: DxfPoint

The geometric center point (for circles or arcs).

### `Optional` closed

closed?: boolean

Whether the polyline is closed (end connects to start).

### `Optional` color

color?: number

Color index or code for the entity.

### `Optional` endAngle

endAngle?: number

The end angle of an arc (in degrees).

### `Optional` height

height?: number

Height of text (for TEXT or MTEXT entities).

### `Optional` isFromSpecialBlock

isFromSpecialBlock?: boolean

Flag indicating whether this entity originated from a special block reference.

### `Optional` layer

layer?: string

The layer on which this entity resides.

### `Optional` name

name?: string

Optional name (for block references or named entities).

### `Optional` position

position?: DxfPoint

Position of the entity (for TEXT, INSERT, etc.).

### `Optional` radius

radius?: number

The radius (for circles and arcs).

### `Optional` rotation

rotation?: number

Rotation angle of the entity (in degrees).

### `Optional` scale

scale?: DxfScale

Optional scale factors applied to the entity or block reference.

### `Optional` shape

shape?: boolean

Whether the shape entity represents a closed loop (for polylines).

### `Optional` startAngle

startAngle?: number

The start angle of an arc (in degrees).

### `Optional` text

text?: string

The text string value (for TEXT or MTEXT entities).

### type

type: string

Type of the DXF entity (e.g., LINE, CIRCLE, TEXT).

### `Optional` vertices

vertices?: DxfPoint[]

List of vertex coordinates defining geometry for polylines or shapes.