@mlightcad/data-model 1.0.0
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/LICENSE +21 -0
- package/README.md +116 -0
- package/dist/data-model.js +19887 -0
- package/dist/data-model.umd.cjs +5 -0
- package/lib/base/AcDbHostApplicationServices.d.ts +30 -0
- package/lib/base/AcDbHostApplicationServices.d.ts.map +1 -0
- package/lib/base/AcDbHostApplicationServices.js +54 -0
- package/lib/base/AcDbHostApplicationServices.js.map +1 -0
- package/lib/base/AcDbObject.d.ts +70 -0
- package/lib/base/AcDbObject.d.ts.map +1 -0
- package/lib/base/AcDbObject.js +113 -0
- package/lib/base/AcDbObject.js.map +1 -0
- package/lib/base/index.d.ts +3 -0
- package/lib/base/index.d.ts.map +1 -0
- package/lib/base/index.js +3 -0
- package/lib/base/index.js.map +1 -0
- package/lib/converter/AcDbBatchProcessing.d.ts +43 -0
- package/lib/converter/AcDbBatchProcessing.d.ts.map +1 -0
- package/lib/converter/AcDbBatchProcessing.js +165 -0
- package/lib/converter/AcDbBatchProcessing.js.map +1 -0
- package/lib/converter/AcDbDxfConverter.d.ts +39 -0
- package/lib/converter/AcDbDxfConverter.d.ts.map +1 -0
- package/lib/converter/AcDbDxfConverter.js +567 -0
- package/lib/converter/AcDbDxfConverter.js.map +1 -0
- package/lib/converter/AcDbDxfParseWorker.d.ts +2 -0
- package/lib/converter/AcDbDxfParseWorker.d.ts.map +1 -0
- package/lib/converter/AcDbDxfParseWorker.js +6 -0
- package/lib/converter/AcDbDxfParseWorker.js.map +1 -0
- package/lib/converter/AcDbEntitiyConverter.d.ts +36 -0
- package/lib/converter/AcDbEntitiyConverter.d.ts.map +1 -0
- package/lib/converter/AcDbEntitiyConverter.js +491 -0
- package/lib/converter/AcDbEntitiyConverter.js.map +1 -0
- package/lib/converter/AcDbObjectConverter.d.ts +9 -0
- package/lib/converter/AcDbObjectConverter.d.ts.map +1 -0
- package/lib/converter/AcDbObjectConverter.js +30 -0
- package/lib/converter/AcDbObjectConverter.js.map +1 -0
- package/lib/converter/index.d.ts +3 -0
- package/lib/converter/index.d.ts.map +1 -0
- package/lib/converter/index.js +3 -0
- package/lib/converter/index.js.map +1 -0
- package/lib/database/AcDbBlockTable.d.ts +15 -0
- package/lib/database/AcDbBlockTable.d.ts.map +1 -0
- package/lib/database/AcDbBlockTable.js +46 -0
- package/lib/database/AcDbBlockTable.js.map +1 -0
- package/lib/database/AcDbBlockTableRecord.d.ts +49 -0
- package/lib/database/AcDbBlockTableRecord.d.ts.map +1 -0
- package/lib/database/AcDbBlockTableRecord.js +108 -0
- package/lib/database/AcDbBlockTableRecord.js.map +1 -0
- package/lib/database/AcDbDatabase.d.ts +211 -0
- package/lib/database/AcDbDatabase.d.ts.map +1 -0
- package/lib/database/AcDbDatabase.js +395 -0
- package/lib/database/AcDbDatabase.js.map +1 -0
- package/lib/database/AcDbDatabaseConverter.d.ts +120 -0
- package/lib/database/AcDbDatabaseConverter.d.ts.map +1 -0
- package/lib/database/AcDbDatabaseConverter.js +376 -0
- package/lib/database/AcDbDatabaseConverter.js.map +1 -0
- package/lib/database/AcDbDatabaseConverterManager.d.ts +59 -0
- package/lib/database/AcDbDatabaseConverterManager.d.ts.map +1 -0
- package/lib/database/AcDbDatabaseConverterManager.js +98 -0
- package/lib/database/AcDbDatabaseConverterManager.js.map +1 -0
- package/lib/database/AcDbDatabaseConverterRegister.d.ts +54 -0
- package/lib/database/AcDbDatabaseConverterRegister.d.ts.map +1 -0
- package/lib/database/AcDbDatabaseConverterRegister.js +84 -0
- package/lib/database/AcDbDatabaseConverterRegister.js.map +1 -0
- package/lib/database/AcDbDimStyleTable.d.ts +11 -0
- package/lib/database/AcDbDimStyleTable.d.ts.map +1 -0
- package/lib/database/AcDbDimStyleTable.js +29 -0
- package/lib/database/AcDbDimStyleTable.js.map +1 -0
- package/lib/database/AcDbDimStyleTableRecord.d.ts +682 -0
- package/lib/database/AcDbDimStyleTableRecord.d.ts.map +1 -0
- package/lib/database/AcDbDimStyleTableRecord.js +1250 -0
- package/lib/database/AcDbDimStyleTableRecord.js.map +1 -0
- package/lib/database/AcDbLayerTable.d.ts +14 -0
- package/lib/database/AcDbLayerTable.d.ts.map +1 -0
- package/lib/database/AcDbLayerTable.js +55 -0
- package/lib/database/AcDbLayerTable.js.map +1 -0
- package/lib/database/AcDbLayerTableRecord.d.ts +98 -0
- package/lib/database/AcDbLayerTableRecord.d.ts.map +1 -0
- package/lib/database/AcDbLayerTableRecord.js +235 -0
- package/lib/database/AcDbLayerTableRecord.js.map +1 -0
- package/lib/database/AcDbLinetypeTable.d.ts +11 -0
- package/lib/database/AcDbLinetypeTable.d.ts.map +1 -0
- package/lib/database/AcDbLinetypeTable.js +29 -0
- package/lib/database/AcDbLinetypeTable.js.map +1 -0
- package/lib/database/AcDbLinetypeTableRecord.d.ts +47 -0
- package/lib/database/AcDbLinetypeTableRecord.d.ts.map +1 -0
- package/lib/database/AcDbLinetypeTableRecord.js +97 -0
- package/lib/database/AcDbLinetypeTableRecord.js.map +1 -0
- package/lib/database/AcDbSymbolTable.d.ts +74 -0
- package/lib/database/AcDbSymbolTable.d.ts.map +1 -0
- package/lib/database/AcDbSymbolTable.js +136 -0
- package/lib/database/AcDbSymbolTable.js.map +1 -0
- package/lib/database/AcDbSymbolTableRecord.d.ts +16 -0
- package/lib/database/AcDbSymbolTableRecord.d.ts.map +1 -0
- package/lib/database/AcDbSymbolTableRecord.js +44 -0
- package/lib/database/AcDbSymbolTableRecord.js.map +1 -0
- package/lib/database/AcDbTextStyleTable.d.ts +14 -0
- package/lib/database/AcDbTextStyleTable.d.ts.map +1 -0
- package/lib/database/AcDbTextStyleTable.js +78 -0
- package/lib/database/AcDbTextStyleTable.js.map +1 -0
- package/lib/database/AcDbTextStyleTableRecord.d.ts +67 -0
- package/lib/database/AcDbTextStyleTableRecord.d.ts.map +1 -0
- package/lib/database/AcDbTextStyleTableRecord.js +166 -0
- package/lib/database/AcDbTextStyleTableRecord.js.map +1 -0
- package/lib/database/AcDbViewportTable.d.ts +11 -0
- package/lib/database/AcDbViewportTable.d.ts.map +1 -0
- package/lib/database/AcDbViewportTable.js +29 -0
- package/lib/database/AcDbViewportTable.js.map +1 -0
- package/lib/database/AcDbViewportTableRecord.d.ts +89 -0
- package/lib/database/AcDbViewportTableRecord.d.ts.map +1 -0
- package/lib/database/AcDbViewportTableRecord.js +262 -0
- package/lib/database/AcDbViewportTableRecord.js.map +1 -0
- package/lib/database/index.d.ts +18 -0
- package/lib/database/index.d.ts.map +1 -0
- package/lib/database/index.js +18 -0
- package/lib/database/index.js.map +1 -0
- package/lib/entity/AcDbArc.d.ts +67 -0
- package/lib/entity/AcDbArc.d.ts.map +1 -0
- package/lib/entity/AcDbArc.js +154 -0
- package/lib/entity/AcDbArc.js.map +1 -0
- package/lib/entity/AcDbBlockReference.d.ts +54 -0
- package/lib/entity/AcDbBlockReference.d.ts.map +1 -0
- package/lib/entity/AcDbBlockReference.js +168 -0
- package/lib/entity/AcDbBlockReference.js.map +1 -0
- package/lib/entity/AcDbCircle.d.ts +51 -0
- package/lib/entity/AcDbCircle.d.ts.map +1 -0
- package/lib/entity/AcDbCircle.js +115 -0
- package/lib/entity/AcDbCircle.js.map +1 -0
- package/lib/entity/AcDbCurve.d.ts +9 -0
- package/lib/entity/AcDbCurve.d.ts.map +1 -0
- package/lib/entity/AcDbCurve.js +25 -0
- package/lib/entity/AcDbCurve.js.map +1 -0
- package/lib/entity/AcDbEllipse.d.ts +53 -0
- package/lib/entity/AcDbEllipse.d.ts.map +1 -0
- package/lib/entity/AcDbEllipse.js +119 -0
- package/lib/entity/AcDbEllipse.js.map +1 -0
- package/lib/entity/AcDbEntity.d.ts +103 -0
- package/lib/entity/AcDbEntity.d.ts.map +1 -0
- package/lib/entity/AcDbEntity.js +292 -0
- package/lib/entity/AcDbEntity.js.map +1 -0
- package/lib/entity/AcDbHatch.d.ts +116 -0
- package/lib/entity/AcDbHatch.d.ts.map +1 -0
- package/lib/entity/AcDbHatch.js +200 -0
- package/lib/entity/AcDbHatch.js.map +1 -0
- package/lib/entity/AcDbLeader.d.ts +94 -0
- package/lib/entity/AcDbLeader.d.ts.map +1 -0
- package/lib/entity/AcDbLeader.js +217 -0
- package/lib/entity/AcDbLeader.js.map +1 -0
- package/lib/entity/AcDbLine.d.ts +55 -0
- package/lib/entity/AcDbLine.d.ts.map +1 -0
- package/lib/entity/AcDbLine.js +158 -0
- package/lib/entity/AcDbLine.js.map +1 -0
- package/lib/entity/AcDbMText.d.ts +119 -0
- package/lib/entity/AcDbMText.d.ts.map +1 -0
- package/lib/entity/AcDbMText.js +300 -0
- package/lib/entity/AcDbMText.js.map +1 -0
- package/lib/entity/AcDbPoint.d.ts +32 -0
- package/lib/entity/AcDbPoint.d.ts.map +1 -0
- package/lib/entity/AcDbPoint.js +75 -0
- package/lib/entity/AcDbPoint.js.map +1 -0
- package/lib/entity/AcDbPolyline.d.ts +72 -0
- package/lib/entity/AcDbPolyline.d.ts.map +1 -0
- package/lib/entity/AcDbPolyline.js +154 -0
- package/lib/entity/AcDbPolyline.js.map +1 -0
- package/lib/entity/AcDbRasterImage.d.ts +163 -0
- package/lib/entity/AcDbRasterImage.d.ts.map +1 -0
- package/lib/entity/AcDbRasterImage.js +406 -0
- package/lib/entity/AcDbRasterImage.js.map +1 -0
- package/lib/entity/AcDbRay.d.ts +42 -0
- package/lib/entity/AcDbRay.d.ts.map +1 -0
- package/lib/entity/AcDbRay.js +102 -0
- package/lib/entity/AcDbRay.js.map +1 -0
- package/lib/entity/AcDbSpline.d.ts +37 -0
- package/lib/entity/AcDbSpline.d.ts.map +1 -0
- package/lib/entity/AcDbSpline.js +71 -0
- package/lib/entity/AcDbSpline.js.map +1 -0
- package/lib/entity/AcDbTable.d.ts +141 -0
- package/lib/entity/AcDbTable.d.ts.map +1 -0
- package/lib/entity/AcDbTable.js +358 -0
- package/lib/entity/AcDbTable.js.map +1 -0
- package/lib/entity/AcDbText.d.ts +110 -0
- package/lib/entity/AcDbText.d.ts.map +1 -0
- package/lib/entity/AcDbText.js +255 -0
- package/lib/entity/AcDbText.js.map +1 -0
- package/lib/entity/AcDbTrace.d.ts +64 -0
- package/lib/entity/AcDbTrace.d.ts.map +1 -0
- package/lib/entity/AcDbTrace.js +145 -0
- package/lib/entity/AcDbTrace.js.map +1 -0
- package/lib/entity/AcDbViewport.d.ts +58 -0
- package/lib/entity/AcDbViewport.d.ts.map +1 -0
- package/lib/entity/AcDbViewport.js +179 -0
- package/lib/entity/AcDbViewport.js.map +1 -0
- package/lib/entity/AcDbWipeout.d.ts +9 -0
- package/lib/entity/AcDbWipeout.d.ts.map +1 -0
- package/lib/entity/AcDbWipeout.js +40 -0
- package/lib/entity/AcDbWipeout.js.map +1 -0
- package/lib/entity/AcDbXline.d.ts +42 -0
- package/lib/entity/AcDbXline.d.ts.map +1 -0
- package/lib/entity/AcDbXline.js +102 -0
- package/lib/entity/AcDbXline.js.map +1 -0
- package/lib/entity/dimension/AcDb3PointAngularDimension.d.ts +46 -0
- package/lib/entity/dimension/AcDb3PointAngularDimension.d.ts.map +1 -0
- package/lib/entity/dimension/AcDb3PointAngularDimension.js +111 -0
- package/lib/entity/dimension/AcDb3PointAngularDimension.js.map +1 -0
- package/lib/entity/dimension/AcDbAlignedDimension.d.ts +77 -0
- package/lib/entity/dimension/AcDbAlignedDimension.d.ts.map +1 -0
- package/lib/entity/dimension/AcDbAlignedDimension.js +203 -0
- package/lib/entity/dimension/AcDbAlignedDimension.js.map +1 -0
- package/lib/entity/dimension/AcDbArcDimension.d.ts +46 -0
- package/lib/entity/dimension/AcDbArcDimension.d.ts.map +1 -0
- package/lib/entity/dimension/AcDbArcDimension.js +111 -0
- package/lib/entity/dimension/AcDbArcDimension.js.map +1 -0
- package/lib/entity/dimension/AcDbDiametricDimension.d.ts +69 -0
- package/lib/entity/dimension/AcDbDiametricDimension.d.ts.map +1 -0
- package/lib/entity/dimension/AcDbDiametricDimension.js +199 -0
- package/lib/entity/dimension/AcDbDiametricDimension.js.map +1 -0
- package/lib/entity/dimension/AcDbDimension.d.ts +161 -0
- package/lib/entity/dimension/AcDbDimension.d.ts.map +1 -0
- package/lib/entity/dimension/AcDbDimension.js +375 -0
- package/lib/entity/dimension/AcDbDimension.js.map +1 -0
- package/lib/entity/dimension/AcDbOrdinateDimension.d.ts +44 -0
- package/lib/entity/dimension/AcDbOrdinateDimension.d.ts.map +1 -0
- package/lib/entity/dimension/AcDbOrdinateDimension.js +99 -0
- package/lib/entity/dimension/AcDbOrdinateDimension.js.map +1 -0
- package/lib/entity/dimension/AcDbRadialDimension.d.ts +69 -0
- package/lib/entity/dimension/AcDbRadialDimension.d.ts.map +1 -0
- package/lib/entity/dimension/AcDbRadialDimension.js +148 -0
- package/lib/entity/dimension/AcDbRadialDimension.js.map +1 -0
- package/lib/entity/dimension/index.d.ts +8 -0
- package/lib/entity/dimension/index.d.ts.map +1 -0
- package/lib/entity/dimension/index.js +8 -0
- package/lib/entity/dimension/index.js.map +1 -0
- package/lib/entity/index.d.ts +23 -0
- package/lib/entity/index.d.ts.map +1 -0
- package/lib/entity/index.js +23 -0
- package/lib/entity/index.js.map +1 -0
- package/lib/index.d.ts +10 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +10 -0
- package/lib/index.js.map +1 -0
- package/lib/misc/AcDbAngleUnits.d.ts +8 -0
- package/lib/misc/AcDbAngleUnits.d.ts.map +1 -0
- package/lib/misc/AcDbAngleUnits.js +9 -0
- package/lib/misc/AcDbAngleUnits.js.map +1 -0
- package/lib/misc/AcDbConstants.d.ts +4 -0
- package/lib/misc/AcDbConstants.d.ts.map +1 -0
- package/lib/misc/AcDbConstants.js +4 -0
- package/lib/misc/AcDbConstants.js.map +1 -0
- package/lib/misc/AcDbDimArrowType.d.ts +86 -0
- package/lib/misc/AcDbDimArrowType.d.ts.map +1 -0
- package/lib/misc/AcDbDimArrowType.js +87 -0
- package/lib/misc/AcDbDimArrowType.js.map +1 -0
- package/lib/misc/AcDbObjectIterator.d.ts +16 -0
- package/lib/misc/AcDbObjectIterator.d.ts.map +1 -0
- package/lib/misc/AcDbObjectIterator.js +28 -0
- package/lib/misc/AcDbObjectIterator.js.map +1 -0
- package/lib/misc/AcDbOsnapMode.d.ts +43 -0
- package/lib/misc/AcDbOsnapMode.d.ts.map +1 -0
- package/lib/misc/AcDbOsnapMode.js +44 -0
- package/lib/misc/AcDbOsnapMode.js.map +1 -0
- package/lib/misc/AcDbRenderingCache.d.ts +61 -0
- package/lib/misc/AcDbRenderingCache.d.ts.map +1 -0
- package/lib/misc/AcDbRenderingCache.js +154 -0
- package/lib/misc/AcDbRenderingCache.js.map +1 -0
- package/lib/misc/AcDbUnitsValue.d.ts +51 -0
- package/lib/misc/AcDbUnitsValue.d.ts.map +1 -0
- package/lib/misc/AcDbUnitsValue.js +71 -0
- package/lib/misc/AcDbUnitsValue.js.map +1 -0
- package/lib/misc/index.d.ts +8 -0
- package/lib/misc/index.d.ts.map +1 -0
- package/lib/misc/index.js +8 -0
- package/lib/misc/index.js.map +1 -0
- package/lib/object/AcDbDictionary.d.ts +80 -0
- package/lib/object/AcDbDictionary.d.ts.map +1 -0
- package/lib/object/AcDbDictionary.js +144 -0
- package/lib/object/AcDbDictionary.js.map +1 -0
- package/lib/object/AcDbRasterImageDef.d.ts +25 -0
- package/lib/object/AcDbRasterImageDef.d.ts.map +1 -0
- package/lib/object/AcDbRasterImageDef.js +54 -0
- package/lib/object/AcDbRasterImageDef.js.map +1 -0
- package/lib/object/index.d.ts +4 -0
- package/lib/object/index.d.ts.map +1 -0
- package/lib/object/index.js +4 -0
- package/lib/object/index.js.map +1 -0
- package/lib/object/layout/AcDbLayout.d.ts +51 -0
- package/lib/object/layout/AcDbLayout.d.ts.map +1 -0
- package/lib/object/layout/AcDbLayout.js +120 -0
- package/lib/object/layout/AcDbLayout.js.map +1 -0
- package/lib/object/layout/AcDbLayoutDictionary.d.ts +19 -0
- package/lib/object/layout/AcDbLayoutDictionary.d.ts.map +1 -0
- package/lib/object/layout/AcDbLayoutDictionary.js +94 -0
- package/lib/object/layout/AcDbLayoutDictionary.js.map +1 -0
- package/lib/object/layout/AcDbLayoutManager.d.ts +101 -0
- package/lib/object/layout/AcDbLayoutManager.d.ts.map +1 -0
- package/lib/object/layout/AcDbLayoutManager.js +154 -0
- package/lib/object/layout/AcDbLayoutManager.js.map +1 -0
- package/lib/object/layout/index.d.ts +4 -0
- package/lib/object/layout/index.d.ts.map +1 -0
- package/lib/object/layout/index.js +4 -0
- package/lib/object/layout/index.js.map +1 -0
- package/package.json +46 -0
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
+
extendStatics(d, b);
|
|
12
|
+
function __() { this.constructor = d; }
|
|
13
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
import { AcGeBox3d, AcGePoint3d } from '@mlightcad/geometry-engine';
|
|
17
|
+
import { AcDbDimension } from './AcDbDimension';
|
|
18
|
+
/**
|
|
19
|
+
* This class represents the ordinate dimension type within AutoCAD. Ordinate dimensions measure
|
|
20
|
+
* the "horizontal" (X axis) or "vertical" (Y axis) distance from a specified origin point to some
|
|
21
|
+
* other specified point.
|
|
22
|
+
* It measures the distance from the their origin point to their definingPoint along the X or Y
|
|
23
|
+
* axis (as specified by the appropriate member function). They display a leader line from the
|
|
24
|
+
* definingPoint to the leaderEndPoint, with the annotation text located appropriately near the
|
|
25
|
+
* end of the leader.
|
|
26
|
+
*/
|
|
27
|
+
var AcDbOrdinateDimension = /** @class */ (function (_super) {
|
|
28
|
+
__extends(AcDbOrdinateDimension, _super);
|
|
29
|
+
/**
|
|
30
|
+
* Create one instance of this class.
|
|
31
|
+
* @param definingPoint Input point where ordinate leader should start
|
|
32
|
+
* @param leaderEndPoint Input point where ordinate leader should end
|
|
33
|
+
* @param dimText Input dimension text to use instead of calculated value
|
|
34
|
+
* @param dimStyle Input string name of dimension style table record to use
|
|
35
|
+
*/
|
|
36
|
+
function AcDbOrdinateDimension(definingPoint, leaderEndPoint, dimText, dimStyle) {
|
|
37
|
+
if (dimText === void 0) { dimText = null; }
|
|
38
|
+
if (dimStyle === void 0) { dimStyle = null; }
|
|
39
|
+
var _this = _super.call(this) || this;
|
|
40
|
+
_this._definingPoint = new AcGePoint3d().copy(definingPoint);
|
|
41
|
+
_this._leaderEndPoint = new AcGePoint3d().copy(leaderEndPoint);
|
|
42
|
+
_this.dimensionText = dimText;
|
|
43
|
+
// TODO: Set it to the current default dimStyle within the AutoCAD editor if dimStyle is null
|
|
44
|
+
_this.dimensionStyleName = dimStyle;
|
|
45
|
+
return _this;
|
|
46
|
+
}
|
|
47
|
+
Object.defineProperty(AcDbOrdinateDimension.prototype, "definingPoint", {
|
|
48
|
+
/**
|
|
49
|
+
* The ordinate point (in WCS coordinates) to be measured. The dimension measures the X or Y
|
|
50
|
+
* distance between this point and the dimension's origin point.
|
|
51
|
+
*/
|
|
52
|
+
get: function () {
|
|
53
|
+
return this._definingPoint;
|
|
54
|
+
},
|
|
55
|
+
set: function (value) {
|
|
56
|
+
this._definingPoint.copy(value);
|
|
57
|
+
},
|
|
58
|
+
enumerable: false,
|
|
59
|
+
configurable: true
|
|
60
|
+
});
|
|
61
|
+
Object.defineProperty(AcDbOrdinateDimension.prototype, "leaderEndPoint", {
|
|
62
|
+
/**
|
|
63
|
+
* The point that is used as the dimension leader's endpoint and is used in the text position
|
|
64
|
+
* calculations.
|
|
65
|
+
*/
|
|
66
|
+
get: function () {
|
|
67
|
+
return this._leaderEndPoint;
|
|
68
|
+
},
|
|
69
|
+
set: function (value) {
|
|
70
|
+
this._leaderEndPoint.copy(value);
|
|
71
|
+
},
|
|
72
|
+
enumerable: false,
|
|
73
|
+
configurable: true
|
|
74
|
+
});
|
|
75
|
+
Object.defineProperty(AcDbOrdinateDimension.prototype, "geometricExtents", {
|
|
76
|
+
/**
|
|
77
|
+
* @inheritdoc
|
|
78
|
+
*/
|
|
79
|
+
get: function () {
|
|
80
|
+
// TODO: Finish it
|
|
81
|
+
return new AcGeBox3d();
|
|
82
|
+
},
|
|
83
|
+
enumerable: false,
|
|
84
|
+
configurable: true
|
|
85
|
+
});
|
|
86
|
+
Object.defineProperty(AcDbOrdinateDimension.prototype, "arrowLineCount", {
|
|
87
|
+
/**
|
|
88
|
+
* @inheritdoc
|
|
89
|
+
*/
|
|
90
|
+
get: function () {
|
|
91
|
+
return 0;
|
|
92
|
+
},
|
|
93
|
+
enumerable: false,
|
|
94
|
+
configurable: true
|
|
95
|
+
});
|
|
96
|
+
return AcDbOrdinateDimension;
|
|
97
|
+
}(AcDbDimension));
|
|
98
|
+
export { AcDbOrdinateDimension };
|
|
99
|
+
//# sourceMappingURL=AcDbOrdinateDimension.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcDbOrdinateDimension.js","sourceRoot":"","sources":["../../../src/entity/dimension/AcDbOrdinateDimension.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EACL,SAAS,EACT,WAAW,EAEZ,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C;;;;;;;;GAQG;AACH;IAA2C,yCAAa;IAItD;;;;;;OAMG;IACH,+BACE,aAA8B,EAC9B,cAA+B,EAC/B,OAA6B,EAC7B,QAA8B;QAD9B,wBAAA,EAAA,cAA6B;QAC7B,yBAAA,EAAA,eAA8B;QAE9B,YAAA,MAAK,WAAE,SAAA;QACP,KAAI,CAAC,cAAc,GAAG,IAAI,WAAW,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;QAC3D,KAAI,CAAC,eAAe,GAAG,IAAI,WAAW,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,CAAA;QAE7D,KAAI,CAAC,aAAa,GAAG,OAAO,CAAA;QAC5B,6FAA6F;QAC7F,KAAI,CAAC,kBAAkB,GAAG,QAAQ,CAAA;;IACpC,CAAC;IAMD,sBAAI,gDAAa;QAJjB;;;WAGG;aACH;YACE,OAAO,IAAI,CAAC,cAAc,CAAA;QAC5B,CAAC;aACD,UAAkB,KAAkB;YAClC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QACjC,CAAC;;;OAHA;IASD,sBAAI,iDAAc;QAJlB;;;WAGG;aACH;YACE,OAAO,IAAI,CAAC,eAAe,CAAA;QAC7B,CAAC;aACD,UAAmB,KAAkB;YACnC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAClC,CAAC;;;OAHA;IAQD,sBAAI,mDAAgB;QAHpB;;WAEG;aACH;YACE,kBAAkB;YAClB,OAAO,IAAI,SAAS,EAAE,CAAA;QACxB,CAAC;;;OAAA;IAKD,sBAAc,iDAAc;QAH5B;;WAEG;aACH;YACE,OAAO,CAAC,CAAA;QACV,CAAC;;;OAAA;IACH,4BAAC;AAAD,CAAC,AA9DD,CAA2C,aAAa,GA8DvD"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { AcGeBox3d, AcGePoint3d, AcGePoint3dLike } from '@mlightcad/geometry-engine';
|
|
2
|
+
import { AcGiLineArrowStyle } from '@mlightcad/graphic-interface';
|
|
3
|
+
import { AcDbLine } from '../AcDbLine';
|
|
4
|
+
import { AcDbDimension } from './AcDbDimension';
|
|
5
|
+
/**
|
|
6
|
+
* This class represents the radius dimension type in AutoCAD. This dimension type requires a center
|
|
7
|
+
* point and a point on the curve being dimensioned in order to be able to draw the dimension line
|
|
8
|
+
* from the center point through the point on the curve. In addition, it utilizes a "leader length"
|
|
9
|
+
* value to determine how far the dimension line extends out past the curve before doing a horizontal
|
|
10
|
+
* dogleg (if necessary) to the annotation text.
|
|
11
|
+
*/
|
|
12
|
+
export declare class AcDbRadialDimension extends AcDbDimension {
|
|
13
|
+
private _center;
|
|
14
|
+
private _chordPoint;
|
|
15
|
+
private _extArcStartAngle;
|
|
16
|
+
private _extArcEndAngle;
|
|
17
|
+
private _leaderLength;
|
|
18
|
+
/**
|
|
19
|
+
* Create one instance of this class by using the parameters passed in to initialize the dimension.
|
|
20
|
+
* - If the text is inside the curve being dimensioned, then the dimension line is drawn from the
|
|
21
|
+
* center to the chordPoint, with a break for the annotation text.
|
|
22
|
+
* - If the dimension text is outside the curve being dimensioned, then the dimension line is drawn
|
|
23
|
+
* from the center, on through the chordPoint and out the leaderLength distance past the chordPoint
|
|
24
|
+
* where it does a short horizontal dogleg (if appropriate) to the annotation text.
|
|
25
|
+
* @param center Input center point (in WCS coordinates) of curve being dimensioned
|
|
26
|
+
* @param chordPoint Input point (in WCS coordinates) on the curve being dimensioned
|
|
27
|
+
* @param leaderLength Input leader length
|
|
28
|
+
* @param dimText Input text string to use as the dimension annotation
|
|
29
|
+
* @param dimStyle Input object ID of AcDbDimStyleTableRecord to use
|
|
30
|
+
*/
|
|
31
|
+
constructor(center: AcGePoint3dLike, chordPoint: AcGePoint3dLike, leaderLength: number, dimText?: string | null, dimStyle?: string | null);
|
|
32
|
+
/**
|
|
33
|
+
* The center point (in WCS coordinates) of the curve being dimensioned.
|
|
34
|
+
* Note: This point is the primary definition point for this dimension type.
|
|
35
|
+
*/
|
|
36
|
+
get center(): AcGePoint3d;
|
|
37
|
+
set center(value: AcGePoint3d);
|
|
38
|
+
/**
|
|
39
|
+
* The point (in WCS coordinates) where the dimension line intersects the curve being dimensioned.
|
|
40
|
+
*/
|
|
41
|
+
get chordPoint(): AcGePoint3d;
|
|
42
|
+
set chordPoint(value: AcGePoint3d);
|
|
43
|
+
/**
|
|
44
|
+
* The extension arc start angle.
|
|
45
|
+
*/
|
|
46
|
+
get extArcStartAngle(): number;
|
|
47
|
+
set extArcStartAngle(value: number);
|
|
48
|
+
/**
|
|
49
|
+
* The extension arc end angle.
|
|
50
|
+
*/
|
|
51
|
+
get extArcEndAngle(): number;
|
|
52
|
+
set extArcEndAngle(value: number);
|
|
53
|
+
/**
|
|
54
|
+
* The dimension uses length as the distance from the chordPoint dimension definition point out to
|
|
55
|
+
* where the dimension does a horizontal dogleg to the annotation text (or stops if no dogleg is
|
|
56
|
+
* necessary).
|
|
57
|
+
*/
|
|
58
|
+
get leaderLength(): number;
|
|
59
|
+
set leaderLenght(value: number);
|
|
60
|
+
/**
|
|
61
|
+
* @inheritdoc
|
|
62
|
+
*/
|
|
63
|
+
get geometricExtents(): AcGeBox3d;
|
|
64
|
+
/**
|
|
65
|
+
* @inheritdoc
|
|
66
|
+
*/
|
|
67
|
+
protected getLineArrowStyle(_line: AcDbLine): AcGiLineArrowStyle | undefined;
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=AcDbRadialDimension.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcDbRadialDimension.d.ts","sourceRoot":"","sources":["../../../src/entity/dimension/AcDbRadialDimension.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,WAAW,EACX,eAAe,EAChB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAEjE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C;;;;;;GAMG;AACH,qBAAa,mBAAoB,SAAQ,aAAa;IACpD,OAAO,CAAC,OAAO,CAAa;IAC5B,OAAO,CAAC,WAAW,CAAa;IAChC,OAAO,CAAC,iBAAiB,CAAQ;IACjC,OAAO,CAAC,eAAe,CAAQ;IAC/B,OAAO,CAAC,aAAa,CAAQ;IAE7B;;;;;;;;;;;;OAYG;gBAED,MAAM,EAAE,eAAe,EACvB,UAAU,EAAE,eAAe,EAC3B,YAAY,EAAE,MAAM,EACpB,OAAO,GAAE,MAAM,GAAG,IAAW,EAC7B,QAAQ,GAAE,MAAM,GAAG,IAAW;IAchC;;;OAGG;IACH,IAAI,MAAM,IAGQ,WAAW,CAD5B;IACD,IAAI,MAAM,CAAC,KAAK,EAAE,WAAW,EAE5B;IAED;;OAEG;IACH,IAAI,UAAU,IAGQ,WAAW,CADhC;IACD,IAAI,UAAU,CAAC,KAAK,EAAE,WAAW,EAEhC;IAED;;OAEG;IACH,IAAI,gBAAgB,IAGQ,MAAM,CADjC;IACD,IAAI,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAEjC;IAED;;OAEG;IACH,IAAI,cAAc,IAGQ,MAAM,CAD/B;IACD,IAAI,cAAc,CAAC,KAAK,EAAE,MAAM,EAE/B;IAED;;;;OAIG;IACH,IAAI,YAAY,WAEf;IACD,IAAI,YAAY,CAAC,KAAK,EAAE,MAAM,EAE7B;IAED;;OAEG;IACH,IAAI,gBAAgB,cAGnB;IAED;;OAEG;IACH,SAAS,CAAC,iBAAiB,CAAC,KAAK,EAAE,QAAQ,GAAG,kBAAkB,GAAG,SAAS;CAK7E"}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
+
extendStatics(d, b);
|
|
12
|
+
function __() { this.constructor = d; }
|
|
13
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
import { AcGeBox3d, AcGePoint3d } from '@mlightcad/geometry-engine';
|
|
17
|
+
import { AcDbDimension } from './AcDbDimension';
|
|
18
|
+
/**
|
|
19
|
+
* This class represents the radius dimension type in AutoCAD. This dimension type requires a center
|
|
20
|
+
* point and a point on the curve being dimensioned in order to be able to draw the dimension line
|
|
21
|
+
* from the center point through the point on the curve. In addition, it utilizes a "leader length"
|
|
22
|
+
* value to determine how far the dimension line extends out past the curve before doing a horizontal
|
|
23
|
+
* dogleg (if necessary) to the annotation text.
|
|
24
|
+
*/
|
|
25
|
+
var AcDbRadialDimension = /** @class */ (function (_super) {
|
|
26
|
+
__extends(AcDbRadialDimension, _super);
|
|
27
|
+
/**
|
|
28
|
+
* Create one instance of this class by using the parameters passed in to initialize the dimension.
|
|
29
|
+
* - If the text is inside the curve being dimensioned, then the dimension line is drawn from the
|
|
30
|
+
* center to the chordPoint, with a break for the annotation text.
|
|
31
|
+
* - If the dimension text is outside the curve being dimensioned, then the dimension line is drawn
|
|
32
|
+
* from the center, on through the chordPoint and out the leaderLength distance past the chordPoint
|
|
33
|
+
* where it does a short horizontal dogleg (if appropriate) to the annotation text.
|
|
34
|
+
* @param center Input center point (in WCS coordinates) of curve being dimensioned
|
|
35
|
+
* @param chordPoint Input point (in WCS coordinates) on the curve being dimensioned
|
|
36
|
+
* @param leaderLength Input leader length
|
|
37
|
+
* @param dimText Input text string to use as the dimension annotation
|
|
38
|
+
* @param dimStyle Input object ID of AcDbDimStyleTableRecord to use
|
|
39
|
+
*/
|
|
40
|
+
function AcDbRadialDimension(center, chordPoint, leaderLength, dimText, dimStyle) {
|
|
41
|
+
if (dimText === void 0) { dimText = null; }
|
|
42
|
+
if (dimStyle === void 0) { dimStyle = null; }
|
|
43
|
+
var _this = _super.call(this) || this;
|
|
44
|
+
_this._center = new AcGePoint3d().copy(center);
|
|
45
|
+
_this._chordPoint = new AcGePoint3d().copy(chordPoint);
|
|
46
|
+
_this._leaderLength = leaderLength;
|
|
47
|
+
_this._extArcStartAngle = 0;
|
|
48
|
+
_this._extArcEndAngle = 0;
|
|
49
|
+
_this.dimensionText = dimText;
|
|
50
|
+
// TODO: Set it to the current default dimStyle within the AutoCAD editor if dimStyle is null
|
|
51
|
+
_this.dimensionStyleName = dimStyle;
|
|
52
|
+
return _this;
|
|
53
|
+
}
|
|
54
|
+
Object.defineProperty(AcDbRadialDimension.prototype, "center", {
|
|
55
|
+
/**
|
|
56
|
+
* The center point (in WCS coordinates) of the curve being dimensioned.
|
|
57
|
+
* Note: This point is the primary definition point for this dimension type.
|
|
58
|
+
*/
|
|
59
|
+
get: function () {
|
|
60
|
+
return this._center;
|
|
61
|
+
},
|
|
62
|
+
set: function (value) {
|
|
63
|
+
this._center.copy(value);
|
|
64
|
+
},
|
|
65
|
+
enumerable: false,
|
|
66
|
+
configurable: true
|
|
67
|
+
});
|
|
68
|
+
Object.defineProperty(AcDbRadialDimension.prototype, "chordPoint", {
|
|
69
|
+
/**
|
|
70
|
+
* The point (in WCS coordinates) where the dimension line intersects the curve being dimensioned.
|
|
71
|
+
*/
|
|
72
|
+
get: function () {
|
|
73
|
+
return this._chordPoint;
|
|
74
|
+
},
|
|
75
|
+
set: function (value) {
|
|
76
|
+
this._chordPoint.copy(value);
|
|
77
|
+
},
|
|
78
|
+
enumerable: false,
|
|
79
|
+
configurable: true
|
|
80
|
+
});
|
|
81
|
+
Object.defineProperty(AcDbRadialDimension.prototype, "extArcStartAngle", {
|
|
82
|
+
/**
|
|
83
|
+
* The extension arc start angle.
|
|
84
|
+
*/
|
|
85
|
+
get: function () {
|
|
86
|
+
return this._extArcStartAngle;
|
|
87
|
+
},
|
|
88
|
+
set: function (value) {
|
|
89
|
+
this._extArcStartAngle = value;
|
|
90
|
+
},
|
|
91
|
+
enumerable: false,
|
|
92
|
+
configurable: true
|
|
93
|
+
});
|
|
94
|
+
Object.defineProperty(AcDbRadialDimension.prototype, "extArcEndAngle", {
|
|
95
|
+
/**
|
|
96
|
+
* The extension arc end angle.
|
|
97
|
+
*/
|
|
98
|
+
get: function () {
|
|
99
|
+
return this._extArcEndAngle;
|
|
100
|
+
},
|
|
101
|
+
set: function (value) {
|
|
102
|
+
this._extArcEndAngle = value;
|
|
103
|
+
},
|
|
104
|
+
enumerable: false,
|
|
105
|
+
configurable: true
|
|
106
|
+
});
|
|
107
|
+
Object.defineProperty(AcDbRadialDimension.prototype, "leaderLength", {
|
|
108
|
+
/**
|
|
109
|
+
* The dimension uses length as the distance from the chordPoint dimension definition point out to
|
|
110
|
+
* where the dimension does a horizontal dogleg to the annotation text (or stops if no dogleg is
|
|
111
|
+
* necessary).
|
|
112
|
+
*/
|
|
113
|
+
get: function () {
|
|
114
|
+
return this._leaderLength;
|
|
115
|
+
},
|
|
116
|
+
enumerable: false,
|
|
117
|
+
configurable: true
|
|
118
|
+
});
|
|
119
|
+
Object.defineProperty(AcDbRadialDimension.prototype, "leaderLenght", {
|
|
120
|
+
set: function (value) {
|
|
121
|
+
this._leaderLength = value;
|
|
122
|
+
},
|
|
123
|
+
enumerable: false,
|
|
124
|
+
configurable: true
|
|
125
|
+
});
|
|
126
|
+
Object.defineProperty(AcDbRadialDimension.prototype, "geometricExtents", {
|
|
127
|
+
/**
|
|
128
|
+
* @inheritdoc
|
|
129
|
+
*/
|
|
130
|
+
get: function () {
|
|
131
|
+
// TODO: Finish it
|
|
132
|
+
return new AcGeBox3d();
|
|
133
|
+
},
|
|
134
|
+
enumerable: false,
|
|
135
|
+
configurable: true
|
|
136
|
+
});
|
|
137
|
+
/**
|
|
138
|
+
* @inheritdoc
|
|
139
|
+
*/
|
|
140
|
+
AcDbRadialDimension.prototype.getLineArrowStyle = function (_line) {
|
|
141
|
+
return {
|
|
142
|
+
secondArrow: this.secondArrowStyle
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
return AcDbRadialDimension;
|
|
146
|
+
}(AcDbDimension));
|
|
147
|
+
export { AcDbRadialDimension };
|
|
148
|
+
//# sourceMappingURL=AcDbRadialDimension.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcDbRadialDimension.js","sourceRoot":"","sources":["../../../src/entity/dimension/AcDbRadialDimension.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EACL,SAAS,EACT,WAAW,EAEZ,MAAM,4BAA4B,CAAA;AAInC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C;;;;;;GAMG;AACH;IAAyC,uCAAa;IAOpD;;;;;;;;;;;;OAYG;IACH,6BACE,MAAuB,EACvB,UAA2B,EAC3B,YAAoB,EACpB,OAA6B,EAC7B,QAA8B;QAD9B,wBAAA,EAAA,cAA6B;QAC7B,yBAAA,EAAA,eAA8B;QAE9B,YAAA,MAAK,WAAE,SAAA;QACP,KAAI,CAAC,OAAO,GAAG,IAAI,WAAW,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAC7C,KAAI,CAAC,WAAW,GAAG,IAAI,WAAW,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;QACrD,KAAI,CAAC,aAAa,GAAG,YAAY,CAAA;QACjC,KAAI,CAAC,iBAAiB,GAAG,CAAC,CAAA;QAC1B,KAAI,CAAC,eAAe,GAAG,CAAC,CAAA;QAExB,KAAI,CAAC,aAAa,GAAG,OAAO,CAAA;QAC5B,6FAA6F;QAC7F,KAAI,CAAC,kBAAkB,GAAG,QAAQ,CAAA;;IACpC,CAAC;IAMD,sBAAI,uCAAM;QAJV;;;WAGG;aACH;YACE,OAAO,IAAI,CAAC,OAAO,CAAA;QACrB,CAAC;aACD,UAAW,KAAkB;YAC3B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAC1B,CAAC;;;OAHA;IAQD,sBAAI,2CAAU;QAHd;;WAEG;aACH;YACE,OAAO,IAAI,CAAC,WAAW,CAAA;QACzB,CAAC;aACD,UAAe,KAAkB;YAC/B,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAC9B,CAAC;;;OAHA;IAQD,sBAAI,iDAAgB;QAHpB;;WAEG;aACH;YACE,OAAO,IAAI,CAAC,iBAAiB,CAAA;QAC/B,CAAC;aACD,UAAqB,KAAa;YAChC,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAA;QAChC,CAAC;;;OAHA;IAQD,sBAAI,+CAAc;QAHlB;;WAEG;aACH;YACE,OAAO,IAAI,CAAC,eAAe,CAAA;QAC7B,CAAC;aACD,UAAmB,KAAa;YAC9B,IAAI,CAAC,eAAe,GAAG,KAAK,CAAA;QAC9B,CAAC;;;OAHA;IAUD,sBAAI,6CAAY;QALhB;;;;WAIG;aACH;YACE,OAAO,IAAI,CAAC,aAAa,CAAA;QAC3B,CAAC;;;OAAA;IACD,sBAAI,6CAAY;aAAhB,UAAiB,KAAa;YAC5B,IAAI,CAAC,aAAa,GAAG,KAAK,CAAA;QAC5B,CAAC;;;OAAA;IAKD,sBAAI,iDAAgB;QAHpB;;WAEG;aACH;YACE,kBAAkB;YAClB,OAAO,IAAI,SAAS,EAAE,CAAA;QACxB,CAAC;;;OAAA;IAED;;OAEG;IACO,+CAAiB,GAA3B,UAA4B,KAAe;QACzC,OAAO;YACL,WAAW,EAAE,IAAI,CAAC,gBAAgB;SACnC,CAAA;IACH,CAAC;IACH,0BAAC;AAAD,CAAC,AA5GD,CAAyC,aAAa,GA4GrD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './AcDb3PointAngularDimension';
|
|
2
|
+
export * from './AcDbAlignedDimension';
|
|
3
|
+
export * from './AcDbArcDimension';
|
|
4
|
+
export * from './AcDbDiametricDimension';
|
|
5
|
+
export * from './AcDbDimension';
|
|
6
|
+
export * from './AcDbOrdinateDimension';
|
|
7
|
+
export * from './AcDbRadialDimension';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entity/dimension/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA;AAC5C,cAAc,wBAAwB,CAAA;AACtC,cAAc,oBAAoB,CAAA;AAClC,cAAc,0BAA0B,CAAA;AACxC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,yBAAyB,CAAA;AACvC,cAAc,uBAAuB,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './AcDb3PointAngularDimension';
|
|
2
|
+
export * from './AcDbAlignedDimension';
|
|
3
|
+
export * from './AcDbArcDimension';
|
|
4
|
+
export * from './AcDbDiametricDimension';
|
|
5
|
+
export * from './AcDbDimension';
|
|
6
|
+
export * from './AcDbOrdinateDimension';
|
|
7
|
+
export * from './AcDbRadialDimension';
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entity/dimension/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA;AAC5C,cAAc,wBAAwB,CAAA;AACtC,cAAc,oBAAoB,CAAA;AAClC,cAAc,0BAA0B,CAAA;AACxC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,yBAAyB,CAAA;AACvC,cAAc,uBAAuB,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export * from './AcDbBlockReference';
|
|
2
|
+
export * from './AcDbEllipse';
|
|
3
|
+
export * from './AcDbEntity';
|
|
4
|
+
export * from './AcDbArc';
|
|
5
|
+
export * from './AcDbCircle';
|
|
6
|
+
export * from './AcDbHatch';
|
|
7
|
+
export * from './AcDbCurve';
|
|
8
|
+
export * from './AcDbLeader';
|
|
9
|
+
export * from './AcDbLine';
|
|
10
|
+
export * from './AcDbMText';
|
|
11
|
+
export * from './AcDbSpline';
|
|
12
|
+
export * from './AcDbTable';
|
|
13
|
+
export * from './AcDbText';
|
|
14
|
+
export * from './AcDbTrace';
|
|
15
|
+
export * from './AcDbPolyline';
|
|
16
|
+
export * from './AcDbPoint';
|
|
17
|
+
export * from './AcDbRasterImage';
|
|
18
|
+
export * from './AcDbRay';
|
|
19
|
+
export * from './AcDbViewport';
|
|
20
|
+
export * from './AcDbWipeout';
|
|
21
|
+
export * from './AcDbXline';
|
|
22
|
+
export * from './dimension';
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/entity/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export * from './AcDbBlockReference';
|
|
2
|
+
export * from './AcDbEllipse';
|
|
3
|
+
export * from './AcDbEntity';
|
|
4
|
+
export * from './AcDbArc';
|
|
5
|
+
export * from './AcDbCircle';
|
|
6
|
+
export * from './AcDbHatch';
|
|
7
|
+
export * from './AcDbCurve';
|
|
8
|
+
export * from './AcDbLeader';
|
|
9
|
+
export * from './AcDbLine';
|
|
10
|
+
export * from './AcDbMText';
|
|
11
|
+
export * from './AcDbSpline';
|
|
12
|
+
export * from './AcDbTable';
|
|
13
|
+
export * from './AcDbText';
|
|
14
|
+
export * from './AcDbTrace';
|
|
15
|
+
export * from './AcDbPolyline';
|
|
16
|
+
export * from './AcDbPoint';
|
|
17
|
+
export * from './AcDbRasterImage';
|
|
18
|
+
export * from './AcDbRay';
|
|
19
|
+
export * from './AcDbViewport';
|
|
20
|
+
export * from './AcDbWipeout';
|
|
21
|
+
export * from './AcDbXline';
|
|
22
|
+
export * from './dimension';
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entity/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA"}
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './base/';
|
|
2
|
+
export * from './converter';
|
|
3
|
+
export * from './database';
|
|
4
|
+
export * from './entity';
|
|
5
|
+
export * from './misc';
|
|
6
|
+
export * from './object';
|
|
7
|
+
export * from '@mlightcad/common';
|
|
8
|
+
export * from '@mlightcad/geometry-engine';
|
|
9
|
+
export * from '@mlightcad/graphic-interface';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,mBAAmB,CAAA;AACjC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,8BAA8B,CAAA"}
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './base/';
|
|
2
|
+
export * from './converter';
|
|
3
|
+
export * from './database';
|
|
4
|
+
export * from './entity';
|
|
5
|
+
export * from './misc';
|
|
6
|
+
export * from './object';
|
|
7
|
+
export * from '@mlightcad/common';
|
|
8
|
+
export * from '@mlightcad/geometry-engine';
|
|
9
|
+
export * from '@mlightcad/graphic-interface';
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,mBAAmB,CAAA;AACjC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,8BAA8B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcDbAngleUnits.d.ts","sourceRoot":"","sources":["../../src/misc/AcDbAngleUnits.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACxB,cAAc,IAAI;IAClB,qBAAqB,IAAI;IACzB,QAAQ,IAAI;IACZ,OAAO,IAAI;IACX,cAAc,IAAI;CACnB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export var AcDbAngleUnits;
|
|
2
|
+
(function (AcDbAngleUnits) {
|
|
3
|
+
AcDbAngleUnits[AcDbAngleUnits["DecimalDegrees"] = 0] = "DecimalDegrees";
|
|
4
|
+
AcDbAngleUnits[AcDbAngleUnits["DegreesMinutesSeconds"] = 1] = "DegreesMinutesSeconds";
|
|
5
|
+
AcDbAngleUnits[AcDbAngleUnits["Gradians"] = 2] = "Gradians";
|
|
6
|
+
AcDbAngleUnits[AcDbAngleUnits["Radians"] = 3] = "Radians";
|
|
7
|
+
AcDbAngleUnits[AcDbAngleUnits["SurveyorsUnits"] = 4] = "SurveyorsUnits";
|
|
8
|
+
})(AcDbAngleUnits || (AcDbAngleUnits = {}));
|
|
9
|
+
//# sourceMappingURL=AcDbAngleUnits.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcDbAngleUnits.js","sourceRoot":"","sources":["../../src/misc/AcDbAngleUnits.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,cAMX;AAND,WAAY,cAAc;IACxB,uEAAkB,CAAA;IAClB,qFAAyB,CAAA;IACzB,2DAAY,CAAA;IACZ,yDAAW,CAAA;IACX,uEAAkB,CAAA;AACpB,CAAC,EANW,cAAc,KAAd,cAAc,QAMzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcDbConstants.d.ts","sourceRoot":"","sources":["../../src/misc/AcDbConstants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,eAAe,CAAA;AAC7C,eAAO,MAAM,OAAO,YAAY,CAAA;AAChC,eAAO,MAAM,OAAO,YAAY,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcDbConstants.js","sourceRoot":"","sources":["../../src/misc/AcDbConstants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,iBAAiB,GAAG,YAAY,CAAA;AAC7C,MAAM,CAAC,IAAM,OAAO,GAAG,SAAS,CAAA;AAChC,MAAM,CAAC,IAAM,OAAO,GAAG,SAAS,CAAA"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type to define the arrowhead displayed at the ends of dimension lines.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum AcDbDimArrowType {
|
|
5
|
+
/**
|
|
6
|
+
* Closed filled
|
|
7
|
+
*/
|
|
8
|
+
ClosedFilled = "",
|
|
9
|
+
/**
|
|
10
|
+
* Dot
|
|
11
|
+
*/
|
|
12
|
+
Dot = "_DOT",
|
|
13
|
+
/**
|
|
14
|
+
* Dot small
|
|
15
|
+
*/
|
|
16
|
+
DotSmall = "_DOTSMALL",
|
|
17
|
+
/**
|
|
18
|
+
* Dot blank
|
|
19
|
+
*/
|
|
20
|
+
DotBlank = "_DOTBLANK",
|
|
21
|
+
/**
|
|
22
|
+
* Origin indicator
|
|
23
|
+
*/
|
|
24
|
+
Origin = "_ORIGIN",
|
|
25
|
+
/**
|
|
26
|
+
* Origin indicator 2
|
|
27
|
+
*/
|
|
28
|
+
Origin2 = "_ORIGIN2",
|
|
29
|
+
/**
|
|
30
|
+
* Open
|
|
31
|
+
*/
|
|
32
|
+
Open = "_OPEN",
|
|
33
|
+
/**
|
|
34
|
+
* Right angle
|
|
35
|
+
*/
|
|
36
|
+
Open90 = "_OPEN90",
|
|
37
|
+
/**
|
|
38
|
+
* Open 30
|
|
39
|
+
*/
|
|
40
|
+
Open30 = "_OPEN30",
|
|
41
|
+
/**
|
|
42
|
+
* Closed
|
|
43
|
+
*/
|
|
44
|
+
Closed = "_CLOSED",
|
|
45
|
+
/**
|
|
46
|
+
* Dot small blank
|
|
47
|
+
*/
|
|
48
|
+
Small = "_SMALL",
|
|
49
|
+
/**
|
|
50
|
+
* None
|
|
51
|
+
*/
|
|
52
|
+
None = "_NONE",
|
|
53
|
+
/**
|
|
54
|
+
* Oblique
|
|
55
|
+
*/
|
|
56
|
+
Oblique = "_OBLIQUE",
|
|
57
|
+
/**
|
|
58
|
+
* Box filled
|
|
59
|
+
*/
|
|
60
|
+
BoxFilled = "_BOXFILLED",
|
|
61
|
+
/**
|
|
62
|
+
* Box blank
|
|
63
|
+
*/
|
|
64
|
+
Box = "_BOXBLANK",
|
|
65
|
+
/**
|
|
66
|
+
* Closed blank
|
|
67
|
+
*/
|
|
68
|
+
ClosedBlank = "_CLOSEDBLANK",
|
|
69
|
+
/**
|
|
70
|
+
* Datum triangle
|
|
71
|
+
*/
|
|
72
|
+
DatumBlank = "_DATUMBLANK",
|
|
73
|
+
/**
|
|
74
|
+
* Datum triangle filled
|
|
75
|
+
*/
|
|
76
|
+
DatumFilled = "_DATUMFILLED",
|
|
77
|
+
/**
|
|
78
|
+
* Integral
|
|
79
|
+
*/
|
|
80
|
+
Integral = "_INTEGRAL",
|
|
81
|
+
/**
|
|
82
|
+
* Architectural tick
|
|
83
|
+
*/
|
|
84
|
+
ArchTick = "_ARCHTICK"
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=AcDbDimArrowType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcDbDimArrowType.d.ts","sourceRoot":"","sources":["../../src/misc/AcDbDimArrowType.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,gBAAgB;IAC1B;;OAEG;IACH,YAAY,KAAK;IACjB;;OAEG;IACH,GAAG,SAAS;IACZ;;OAEG;IACH,QAAQ,cAAc;IACtB;;OAEG;IACH,QAAQ,cAAc;IACtB;;OAEG;IACH,MAAM,YAAY;IAClB;;OAEG;IACH,OAAO,aAAa;IACpB;;OAEG;IACH,IAAI,UAAU;IACd;;OAEG;IACH,MAAM,YAAY;IAClB;;OAEG;IACH,MAAM,YAAY;IAClB;;OAEG;IACH,MAAM,YAAY;IAClB;;OAEG;IACH,KAAK,WAAW;IAChB;;OAEG;IACH,IAAI,UAAU;IACd;;OAEG;IACH,OAAO,aAAa;IACpB;;OAEG;IACH,SAAS,eAAe;IACxB;;OAEG;IACH,GAAG,cAAc;IACjB;;OAEG;IACH,WAAW,iBAAiB;IAC5B;;OAEG;IACH,UAAU,gBAAgB;IAC1B;;OAEG;IACH,WAAW,iBAAiB;IAC5B;;OAEG;IACH,QAAQ,cAAc;IACtB;;OAEG;IACH,QAAQ,cAAc;CACvB"}
|