@mlightcad/data-model 1.10.2 → 1.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/data-model.cjs +10 -8
- package/lib/converter/AcDbFontNameCollector.d.ts +6 -0
- package/lib/converter/AcDbFontNameCollector.d.ts.map +1 -1
- package/lib/converter/AcDbFontNameCollector.js +101 -37
- package/lib/converter/AcDbFontNameCollector.js.map +1 -1
- package/lib/entity/AcDb3dSolid.d.ts +77 -0
- package/lib/entity/AcDb3dSolid.d.ts.map +1 -0
- package/lib/entity/AcDb3dSolid.js +232 -0
- package/lib/entity/AcDb3dSolid.js.map +1 -0
- package/lib/entity/AcDbFcf.d.ts +144 -0
- package/lib/entity/AcDbFcf.d.ts.map +1 -0
- package/lib/entity/AcDbFcf.js +718 -0
- package/lib/entity/AcDbFcf.js.map +1 -0
- package/lib/entity/index.d.ts +2 -0
- package/lib/entity/index.d.ts.map +1 -1
- package/lib/entity/index.js +2 -0
- package/lib/entity/index.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { AcGeBox3d, AcGeMatrix3d, AcGePoint3d, AcGePoint3dLike, AcGeVector3d, AcGeVector3dLike } from '@mlightcad/geometry-engine';
|
|
2
|
+
import { AcGiEntity, AcGiRenderer } from '@mlightcad/graphic-interface';
|
|
3
|
+
import { AcDbDxfFiler } from '../base/AcDbDxfFiler';
|
|
4
|
+
import { AcDbOsnapMode } from '../misc/AcDbOsnapMode';
|
|
5
|
+
import { AcDbEntity } from './AcDbEntity';
|
|
6
|
+
import { AcDbEntityProperties } from './AcDbEntityProperties';
|
|
7
|
+
/**
|
|
8
|
+
* Represents a feature control frame (FCF) entity in AutoCAD.
|
|
9
|
+
*
|
|
10
|
+
* Feature control frames are used for geometric dimensioning and tolerancing
|
|
11
|
+
* (GD&T). They are created by the TOLERANCE command and controlled by dimension
|
|
12
|
+
* styles, mirroring {@link https://help.autodesk.com/view/OARX/2023/ENU/?guid=OARX-RefGuide-AcDbFcf AcDbFcf}
|
|
13
|
+
* in ObjectARX.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```typescript
|
|
17
|
+
* const fcf = new AcDbFcf();
|
|
18
|
+
* fcf.location = new AcGePoint3d(10, 20, 0);
|
|
19
|
+
* fcf.text = '{\\Fgdt.shx|b0|i0|c134|p6;j}|0.05|A|';
|
|
20
|
+
* fcf.dimensionStyle = 'Standard';
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare class AcDbFcf extends AcDbEntity {
|
|
24
|
+
/** The entity type name */
|
|
25
|
+
static typeName: string;
|
|
26
|
+
get dxfTypeName(): string;
|
|
27
|
+
/**
|
|
28
|
+
* The insertion point of the feature control frame in WCS coordinates.
|
|
29
|
+
*
|
|
30
|
+
* This is the center of the left edge for the first row in the entity-local
|
|
31
|
+
* frame. Geometry uses +localX along {@link direction}; when direction points
|
|
32
|
+
* left (e.g. leader on the right), this insertion point coincides with the
|
|
33
|
+
* right-edge center in WCS.
|
|
34
|
+
*/
|
|
35
|
+
private _location;
|
|
36
|
+
/** The encoded tolerance text string (symbol and format codes). */
|
|
37
|
+
private _text;
|
|
38
|
+
/** The dimension style name applied to this feature control frame. */
|
|
39
|
+
private _dimensionStyle;
|
|
40
|
+
/** The plane normal vector in WCS coordinates. */
|
|
41
|
+
private _normal;
|
|
42
|
+
/** The X-axis direction vector for the feature control frame in WCS coordinates. */
|
|
43
|
+
private _direction;
|
|
44
|
+
/**
|
|
45
|
+
* Creates a new feature control frame entity at the origin with default orientation.
|
|
46
|
+
*/
|
|
47
|
+
constructor();
|
|
48
|
+
/**
|
|
49
|
+
* Gets the insertion point of this feature control frame.
|
|
50
|
+
*
|
|
51
|
+
* Mirrors `AcDbFcf::location()` in ObjectARX.
|
|
52
|
+
*/
|
|
53
|
+
get location(): AcGePoint3d;
|
|
54
|
+
/**
|
|
55
|
+
* Sets the insertion point of this feature control frame.
|
|
56
|
+
*
|
|
57
|
+
* Mirrors `AcDbFcf::setLocation()` in ObjectARX.
|
|
58
|
+
*/
|
|
59
|
+
set location(value: AcGePoint3dLike);
|
|
60
|
+
/**
|
|
61
|
+
* Gets the encoded tolerance text string.
|
|
62
|
+
*
|
|
63
|
+
* Mirrors `AcDbFcf::text()` in ObjectARX.
|
|
64
|
+
*/
|
|
65
|
+
get text(): string;
|
|
66
|
+
/**
|
|
67
|
+
* Sets the encoded tolerance text string.
|
|
68
|
+
*
|
|
69
|
+
* Mirrors `AcDbFcf::setText()` in ObjectARX.
|
|
70
|
+
*/
|
|
71
|
+
set text(value: string);
|
|
72
|
+
/**
|
|
73
|
+
* Gets the dimension style name applied to this feature control frame.
|
|
74
|
+
*/
|
|
75
|
+
get dimensionStyle(): string;
|
|
76
|
+
/**
|
|
77
|
+
* Sets the dimension style name applied to this feature control frame.
|
|
78
|
+
*/
|
|
79
|
+
set dimensionStyle(value: string);
|
|
80
|
+
/**
|
|
81
|
+
* Gets the plane normal vector in WCS coordinates.
|
|
82
|
+
*
|
|
83
|
+
* Mirrors `AcDbFcf::normal()` in ObjectARX.
|
|
84
|
+
*/
|
|
85
|
+
get normal(): AcGeVector3d;
|
|
86
|
+
/**
|
|
87
|
+
* Sets the plane normal vector in WCS coordinates.
|
|
88
|
+
*/
|
|
89
|
+
set normal(value: AcGeVector3dLike);
|
|
90
|
+
/**
|
|
91
|
+
* Gets the X-axis direction vector in WCS coordinates.
|
|
92
|
+
*
|
|
93
|
+
* Mirrors `AcDbFcf::direction()` in ObjectARX.
|
|
94
|
+
*/
|
|
95
|
+
get direction(): AcGeVector3d;
|
|
96
|
+
/**
|
|
97
|
+
* Sets the X-axis direction vector in WCS coordinates.
|
|
98
|
+
*/
|
|
99
|
+
set direction(value: AcGeVector3dLike);
|
|
100
|
+
/**
|
|
101
|
+
* Sets the plane normal and X-axis direction for this feature control frame.
|
|
102
|
+
*
|
|
103
|
+
* Mirrors `AcDbFcf::setOrientation()` in ObjectARX.
|
|
104
|
+
*/
|
|
105
|
+
setOrientation(normal: AcGeVector3dLike, direction: AcGeVector3dLike): this;
|
|
106
|
+
/**
|
|
107
|
+
* Returns the consecutive distinct corner points of the feature control frame.
|
|
108
|
+
*
|
|
109
|
+
* Mirrors `AcDbFcf::getBoundingPoints()` in ObjectARX.
|
|
110
|
+
*/
|
|
111
|
+
getBoundingPoints(): AcGePoint3d[];
|
|
112
|
+
/**
|
|
113
|
+
* Returns the closed bounding polyline of the feature control frame.
|
|
114
|
+
*
|
|
115
|
+
* Mirrors `AcDbFcf::getBoundingPolyline()` in ObjectARX.
|
|
116
|
+
*/
|
|
117
|
+
getBoundingPolyline(): AcGePoint3d[];
|
|
118
|
+
get geometricExtents(): AcGeBox3d;
|
|
119
|
+
subGetGripPoints(): AcGePoint3d[];
|
|
120
|
+
/** @inheritdoc */
|
|
121
|
+
subMoveGripPointsAt(indices: number[], offset: AcGeVector3dLike): this;
|
|
122
|
+
subGetOsnapPoints(osnapMode: AcDbOsnapMode, _pickPoint: AcGePoint3dLike, _lastPoint: AcGePoint3dLike, snapPoints: AcGePoint3dLike[]): void;
|
|
123
|
+
transformBy(matrix: AcGeMatrix3d): this;
|
|
124
|
+
get properties(): AcDbEntityProperties;
|
|
125
|
+
subWorldDraw(renderer: AcGiRenderer, delay?: boolean): AcGiEntity | undefined;
|
|
126
|
+
dxfOutFields(filer: AcDbDxfFiler): this;
|
|
127
|
+
/**
|
|
128
|
+
* Gets the rendered text height derived from the associated dimension style.
|
|
129
|
+
*/
|
|
130
|
+
get textHeight(): number;
|
|
131
|
+
private drawToleranceText;
|
|
132
|
+
private collectFrameLineSegments;
|
|
133
|
+
private toFrameWcs;
|
|
134
|
+
private resolveFrameLayout;
|
|
135
|
+
private parseToleranceFrame;
|
|
136
|
+
private splitToleranceRows;
|
|
137
|
+
private splitToleranceTokens;
|
|
138
|
+
private parsePipeSeparatedCells;
|
|
139
|
+
private resolveLocalBasis;
|
|
140
|
+
private resolveDimensionStyle;
|
|
141
|
+
private tryGetDatabase;
|
|
142
|
+
private getTextStyle;
|
|
143
|
+
}
|
|
144
|
+
//# sourceMappingURL=AcDbFcf.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcDbFcf.d.ts","sourceRoot":"","sources":["../../src/entity/AcDbFcf.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,YAAY,EACZ,WAAW,EACX,eAAe,EACf,YAAY,EACZ,gBAAgB,EACjB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EACL,UAAU,EAIV,YAAY,EAEb,MAAM,8BAA8B,CAAA;AAErC,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAEnD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAwB7D;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,OAAQ,SAAQ,UAAU;IACrC,2BAA2B;IAC3B,OAAgB,QAAQ,EAAE,MAAM,CAAQ;IAExC,IAAa,WAAW,WAEvB;IAED;;;;;;;OAOG;IACH,OAAO,CAAC,SAAS,CAAa;IAC9B,mEAAmE;IACnE,OAAO,CAAC,KAAK,CAAQ;IACrB,sEAAsE;IACtE,OAAO,CAAC,eAAe,CAAQ;IAC/B,kDAAkD;IAClD,OAAO,CAAC,OAAO,CAAc;IAC7B,oFAAoF;IACpF,OAAO,CAAC,UAAU,CAAc;IAEhC;;OAEG;;IAUH;;;;OAIG;IACH,IAAI,QAAQ,IAAI,WAAW,CAE1B;IAED;;;;OAIG;IACH,IAAI,QAAQ,CAAC,KAAK,EAAE,eAAe,EAElC;IAED;;;;OAIG;IACH,IAAI,IAAI,IAAI,MAAM,CAEjB;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