@mlightcad/graphic-interface
Version:
The graphic-interface package provides the graphics interface for controlling how AutoCAD entities are displayed on screen. This package offers a simplified API compared to AutoCAD ObjectARX's AcGi classes, making it more developer-friendly while maintain
52 lines • 1.28 kB
TypeScript
import { AcGePoint3dLike, AcGeVector3dLike } from '@mlightcad/geometry-engine';
export declare enum AcGiMTextFlowDirection {
LEFT_TO_RIGHT = 1,
RIGHT_TO_LEFT = 2,
TOP_TO_BOTTOM = 3,
BOTTOM_TO_TOP = 4,
BY_STYLE = 5
}
export declare enum AcGiMTextAttachmentPoint {
TopLeft = 1,
TopCenter = 2,
TopRight = 3,
MiddleLeft = 4,
MiddleCenter = 5,
MiddleRight = 6,
BottomLeft = 7,
BottomCenter = 8,
BottomRight = 9
}
export interface AcGiMTextData {
text: string;
height: number;
width: number;
position: AcGePoint3dLike;
rotation?: number;
directionVector?: AcGeVector3dLike;
attachmentPoint?: AcGiMTextAttachmentPoint;
drawingDirection?: AcGiMTextFlowDirection;
lineSpaceFactor?: number;
widthFactor?: number;
}
export interface AcGiBaseTextStyle {
name: string;
standardFlag: number;
fixedTextHeight: number;
widthFactor: number;
obliqueAngle: number;
textGenerationFlag: number;
lastHeight: number;
font: string;
bigFont: string;
extendedFont?: string;
}
/**
* Text style
*/
export interface AcGiTextStyle extends AcGiBaseTextStyle {
color: number;
byLayerColor?: number;
byBlockColor?: number;
}
//# sourceMappingURL=AcGiTextStyle.d.ts.map