@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.
52 lines • 1.88 kB
JavaScript
/**
* Enumeration of object snap modes used in AutoCAD.
*
* Object snap modes define the types of geometric points that can be
* snapped to when drawing or editing entities. These modes help ensure
* precise positioning and alignment of objects.
*/
export var AcDbOsnapMode;
(function (AcDbOsnapMode) {
/**
* End point - snaps to the endpoint of a line, arc, or other entity
*/
AcDbOsnapMode[AcDbOsnapMode["EndPoint"] = 1] = "EndPoint";
/**
* Middle point - snaps to the midpoint of a line or arc
*/
AcDbOsnapMode[AcDbOsnapMode["MidPoint"] = 2] = "MidPoint";
/**
* Center - snaps to the center point of a circle, arc, or ellipse
*/
AcDbOsnapMode[AcDbOsnapMode["Center"] = 3] = "Center";
/**
* Node - snaps to a point entity
*/
AcDbOsnapMode[AcDbOsnapMode["Node"] = 4] = "Node";
/**
* Quadrant - snaps to the quadrant points of a circle or ellipse
* (0°, 90°, 180°, 270°)
*/
AcDbOsnapMode[AcDbOsnapMode["Quadrant"] = 5] = "Quadrant";
/**
* Insertion - snaps to the insertion point of text, blocks, or other objects
*/
AcDbOsnapMode[AcDbOsnapMode["Insertion"] = 7] = "Insertion";
/**
* Perpendicular - snaps to a point perpendicular to a line or arc
*/
AcDbOsnapMode[AcDbOsnapMode["Perpendicular"] = 8] = "Perpendicular";
/**
* Tangent - snaps to a point tangent to a circle or arc
*/
AcDbOsnapMode[AcDbOsnapMode["Tangent"] = 9] = "Tangent";
/**
* Nearest - snaps to the nearest point on an entity
*/
AcDbOsnapMode[AcDbOsnapMode["Nearest"] = 10] = "Nearest";
/**
* Center of the object - snaps to the centroid or center of mass of an object
*/
AcDbOsnapMode[AcDbOsnapMode["Centroid"] = 11] = "Centroid";
})(AcDbOsnapMode || (AcDbOsnapMode = {}));
//# sourceMappingURL=AcDbOsnapMode.js.map