UNPKG

@mlightcad/data-model

Version:

The data-model package provides the core classes for interacting with AutoCAD's database and entities. This package mimics AutoCAD ObjectARX's AcDb (Database) classes and implements the drawing database structure that AutoCAD developers are familiar with.

42 lines 1.34 kB
import { AcDbEntity } from './AcDbEntity'; /** * Abstract base class for all curve entities. * * This class provides the fundamental functionality for all curve entities, * including the ability to determine if a curve is closed. A curve is * considered closed if its start point is identical to its end point. * * @example * ```typescript * class MyCurve extends AcDbCurve { * get closed(): boolean { * // Implementation to determine if curve is closed * return this.startPoint.equals(this.endPoint); * } * } * ``` */ export declare abstract class AcDbCurve extends AcDbEntity { /** The entity type name */ static typeName: string; /** * Returns true if the curve is closed. * * A curve is considered closed if its start point is identical to its end point. * This property is used by various operations that need to know if a curve * forms a complete loop. * * @returns True if the curve is closed, false otherwise * * @example * ```typescript * const curve = new AcDbCircle(); * console.log('Is circle closed?', curve.closed); // true * * const line = new AcDbLine(); * console.log('Is line closed?', line.closed); // false * ``` */ abstract get closed(): boolean; } //# sourceMappingURL=AcDbCurve.d.ts.map