@mlightcad/data-model 1.3.1 → 1.3.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/package.json +4 -4
- package/dist/data-model.cjs +0 -5
- package/dist/data-model.js +0 -25475
- package/dist/dxf-parser-worker.js +0 -1669
- package/lib/base/AcDbHostApplicationServices.d.ts +0 -96
- package/lib/base/AcDbHostApplicationServices.d.ts.map +0 -1
- package/lib/base/AcDbHostApplicationServices.js +0 -118
- package/lib/base/AcDbHostApplicationServices.js.map +0 -1
- package/lib/base/AcDbObject.d.ts +0 -205
- package/lib/base/AcDbObject.d.ts.map +0 -1
- package/lib/base/AcDbObject.js +0 -236
- package/lib/base/AcDbObject.js.map +0 -1
- package/lib/base/index.d.ts +0 -3
- package/lib/base/index.d.ts.map +0 -1
- package/lib/base/index.js +0 -3
- package/lib/base/index.js.map +0 -1
- package/lib/converter/AcDbBatchProcessing.d.ts +0 -146
- package/lib/converter/AcDbBatchProcessing.d.ts.map +0 -1
- package/lib/converter/AcDbBatchProcessing.js +0 -272
- package/lib/converter/AcDbBatchProcessing.js.map +0 -1
- package/lib/converter/AcDbDxfConverter.d.ts +0 -272
- package/lib/converter/AcDbDxfConverter.d.ts.map +0 -1
- package/lib/converter/AcDbDxfConverter.js +0 -867
- package/lib/converter/AcDbDxfConverter.js.map +0 -1
- package/lib/converter/AcDbDxfParser.d.ts +0 -23
- package/lib/converter/AcDbDxfParser.d.ts.map +0 -1
- package/lib/converter/AcDbDxfParser.js +0 -85
- package/lib/converter/AcDbDxfParser.js.map +0 -1
- package/lib/converter/AcDbEntitiyConverter.d.ts +0 -159
- package/lib/converter/AcDbEntitiyConverter.d.ts.map +0 -1
- package/lib/converter/AcDbEntitiyConverter.js +0 -659
- package/lib/converter/AcDbEntitiyConverter.js.map +0 -1
- package/lib/converter/AcDbObjectConverter.d.ts +0 -61
- package/lib/converter/AcDbObjectConverter.d.ts.map +0 -1
- package/lib/converter/AcDbObjectConverter.js +0 -91
- package/lib/converter/AcDbObjectConverter.js.map +0 -1
- package/lib/converter/AcDbRegenerator.d.ts +0 -101
- package/lib/converter/AcDbRegenerator.d.ts.map +0 -1
- package/lib/converter/AcDbRegenerator.js +0 -334
- package/lib/converter/AcDbRegenerator.js.map +0 -1
- package/lib/converter/index.d.ts +0 -5
- package/lib/converter/index.d.ts.map +0 -1
- package/lib/converter/index.js +0 -5
- package/lib/converter/index.js.map +0 -1
- package/lib/converter/worker/AcDbBaseWorker.d.ts +0 -36
- package/lib/converter/worker/AcDbBaseWorker.d.ts.map +0 -1
- package/lib/converter/worker/AcDbBaseWorker.js +0 -93
- package/lib/converter/worker/AcDbBaseWorker.js.map +0 -1
- package/lib/converter/worker/AcDbDxfParserWorker.d.ts +0 -11
- package/lib/converter/worker/AcDbDxfParserWorker.d.ts.map +0 -1
- package/lib/converter/worker/AcDbDxfParserWorker.js +0 -75
- package/lib/converter/worker/AcDbDxfParserWorker.js.map +0 -1
- package/lib/converter/worker/AcDbWorkerManager.d.ts +0 -107
- package/lib/converter/worker/AcDbWorkerManager.d.ts.map +0 -1
- package/lib/converter/worker/AcDbWorkerManager.js +0 -360
- package/lib/converter/worker/AcDbWorkerManager.js.map +0 -1
- package/lib/converter/worker/index.d.ts +0 -3
- package/lib/converter/worker/index.d.ts.map +0 -1
- package/lib/converter/worker/index.js +0 -3
- package/lib/converter/worker/index.js.map +0 -1
- package/lib/database/AcDbBlockTable.d.ts +0 -56
- package/lib/database/AcDbBlockTable.d.ts.map +0 -1
- package/lib/database/AcDbBlockTable.js +0 -98
- package/lib/database/AcDbBlockTable.js.map +0 -1
- package/lib/database/AcDbBlockTableRecord.d.ts +0 -185
- package/lib/database/AcDbBlockTableRecord.d.ts.map +0 -1
- package/lib/database/AcDbBlockTableRecord.js +0 -261
- package/lib/database/AcDbBlockTableRecord.js.map +0 -1
- package/lib/database/AcDbDatabase.d.ts +0 -563
- package/lib/database/AcDbDatabase.d.ts.map +0 -1
- package/lib/database/AcDbDatabase.js +0 -842
- package/lib/database/AcDbDatabase.js.map +0 -1
- package/lib/database/AcDbDatabaseConverter.d.ts +0 -292
- package/lib/database/AcDbDatabaseConverter.d.ts.map +0 -1
- package/lib/database/AcDbDatabaseConverter.js +0 -446
- package/lib/database/AcDbDatabaseConverter.js.map +0 -1
- package/lib/database/AcDbDatabaseConverterManager.d.ts +0 -141
- package/lib/database/AcDbDatabaseConverterManager.d.ts.map +0 -1
- package/lib/database/AcDbDatabaseConverterManager.js +0 -173
- package/lib/database/AcDbDatabaseConverterManager.js.map +0 -1
- package/lib/database/AcDbDimStyleTable.d.ts +0 -31
- package/lib/database/AcDbDimStyleTable.d.ts.map +0 -1
- package/lib/database/AcDbDimStyleTable.js +0 -49
- package/lib/database/AcDbDimStyleTable.js.map +0 -1
- package/lib/database/AcDbDimStyleTableRecord.d.ts +0 -797
- package/lib/database/AcDbDimStyleTableRecord.d.ts.map +0 -1
- package/lib/database/AcDbDimStyleTableRecord.js +0 -1294
- package/lib/database/AcDbDimStyleTableRecord.js.map +0 -1
- package/lib/database/AcDbDwgVersion.d.ts +0 -32
- package/lib/database/AcDbDwgVersion.d.ts.map +0 -1
- package/lib/database/AcDbDwgVersion.js +0 -76
- package/lib/database/AcDbDwgVersion.js.map +0 -1
- package/lib/database/AcDbLayerTable.d.ts +0 -51
- package/lib/database/AcDbLayerTable.d.ts.map +0 -1
- package/lib/database/AcDbLayerTable.js +0 -92
- package/lib/database/AcDbLayerTable.js.map +0 -1
- package/lib/database/AcDbLayerTableRecord.d.ts +0 -278
- package/lib/database/AcDbLayerTableRecord.d.ts.map +0 -1
- package/lib/database/AcDbLayerTableRecord.js +0 -397
- package/lib/database/AcDbLayerTableRecord.js.map +0 -1
- package/lib/database/AcDbLinetypeTable.d.ts +0 -30
- package/lib/database/AcDbLinetypeTable.d.ts.map +0 -1
- package/lib/database/AcDbLinetypeTable.js +0 -48
- package/lib/database/AcDbLinetypeTable.js.map +0 -1
- package/lib/database/AcDbLinetypeTableRecord.d.ts +0 -79
- package/lib/database/AcDbLinetypeTableRecord.d.ts.map +0 -1
- package/lib/database/AcDbLinetypeTableRecord.js +0 -129
- package/lib/database/AcDbLinetypeTableRecord.js.map +0 -1
- package/lib/database/AcDbSymbolTable.d.ts +0 -199
- package/lib/database/AcDbSymbolTable.d.ts.map +0 -1
- package/lib/database/AcDbSymbolTable.js +0 -264
- package/lib/database/AcDbSymbolTable.js.map +0 -1
- package/lib/database/AcDbSymbolTableRecord.d.ts +0 -61
- package/lib/database/AcDbSymbolTableRecord.d.ts.map +0 -1
- package/lib/database/AcDbSymbolTableRecord.js +0 -82
- package/lib/database/AcDbSymbolTableRecord.js.map +0 -1
- package/lib/database/AcDbTextStyleTable.d.ts +0 -48
- package/lib/database/AcDbTextStyleTable.d.ts.map +0 -1
- package/lib/database/AcDbTextStyleTable.js +0 -112
- package/lib/database/AcDbTextStyleTable.js.map +0 -1
- package/lib/database/AcDbTextStyleTableRecord.d.ts +0 -179
- package/lib/database/AcDbTextStyleTableRecord.d.ts.map +0 -1
- package/lib/database/AcDbTextStyleTableRecord.js +0 -276
- package/lib/database/AcDbTextStyleTableRecord.js.map +0 -1
- package/lib/database/AcDbViewportTable.d.ts +0 -31
- package/lib/database/AcDbViewportTable.d.ts.map +0 -1
- package/lib/database/AcDbViewportTable.js +0 -49
- package/lib/database/AcDbViewportTable.js.map +0 -1
- package/lib/database/AcDbViewportTableRecord.d.ts +0 -154
- package/lib/database/AcDbViewportTableRecord.d.ts.map +0 -1
- package/lib/database/AcDbViewportTableRecord.js +0 -318
- package/lib/database/AcDbViewportTableRecord.js.map +0 -1
- package/lib/database/index.d.ts +0 -19
- package/lib/database/index.d.ts.map +0 -1
- package/lib/database/index.js +0 -19
- package/lib/database/index.js.map +0 -1
- package/lib/entity/AcDbArc.d.ts +0 -254
- package/lib/entity/AcDbArc.d.ts.map +0 -1
- package/lib/entity/AcDbArc.js +0 -340
- package/lib/entity/AcDbArc.js.map +0 -1
- package/lib/entity/AcDbBlockReference.d.ts +0 -190
- package/lib/entity/AcDbBlockReference.d.ts.map +0 -1
- package/lib/entity/AcDbBlockReference.js +0 -302
- package/lib/entity/AcDbBlockReference.js.map +0 -1
- package/lib/entity/AcDbCircle.d.ts +0 -186
- package/lib/entity/AcDbCircle.d.ts.map +0 -1
- package/lib/entity/AcDbCircle.js +0 -249
- package/lib/entity/AcDbCircle.js.map +0 -1
- package/lib/entity/AcDbCurve.d.ts +0 -42
- package/lib/entity/AcDbCurve.d.ts.map +0 -1
- package/lib/entity/AcDbCurve.js +0 -44
- package/lib/entity/AcDbCurve.js.map +0 -1
- package/lib/entity/AcDbEllipse.d.ts +0 -207
- package/lib/entity/AcDbEllipse.d.ts.map +0 -1
- package/lib/entity/AcDbEllipse.js +0 -272
- package/lib/entity/AcDbEllipse.js.map +0 -1
- package/lib/entity/AcDbEntity.d.ts +0 -385
- package/lib/entity/AcDbEntity.d.ts.map +0 -1
- package/lib/entity/AcDbEntity.js +0 -561
- package/lib/entity/AcDbEntity.js.map +0 -1
- package/lib/entity/AcDbFace.d.ts +0 -151
- package/lib/entity/AcDbFace.d.ts.map +0 -1
- package/lib/entity/AcDbFace.js +0 -224
- package/lib/entity/AcDbFace.js.map +0 -1
- package/lib/entity/AcDbHatch.d.ts +0 -174
- package/lib/entity/AcDbHatch.d.ts.map +0 -1
- package/lib/entity/AcDbHatch.js +0 -250
- package/lib/entity/AcDbHatch.js.map +0 -1
- package/lib/entity/AcDbLeader.d.ts +0 -243
- package/lib/entity/AcDbLeader.d.ts.map +0 -1
- package/lib/entity/AcDbLeader.js +0 -358
- package/lib/entity/AcDbLeader.js.map +0 -1
- package/lib/entity/AcDbLine.d.ts +0 -198
- package/lib/entity/AcDbLine.d.ts.map +0 -1
- package/lib/entity/AcDbLine.js +0 -300
- package/lib/entity/AcDbLine.js.map +0 -1
- package/lib/entity/AcDbMText.d.ts +0 -248
- package/lib/entity/AcDbMText.d.ts.map +0 -1
- package/lib/entity/AcDbMText.js +0 -414
- package/lib/entity/AcDbMText.js.map +0 -1
- package/lib/entity/AcDbPoint.d.ts +0 -113
- package/lib/entity/AcDbPoint.d.ts.map +0 -1
- package/lib/entity/AcDbPoint.js +0 -155
- package/lib/entity/AcDbPoint.js.map +0 -1
- package/lib/entity/AcDbPolyline.d.ts +0 -221
- package/lib/entity/AcDbPolyline.d.ts.map +0 -1
- package/lib/entity/AcDbPolyline.js +0 -301
- package/lib/entity/AcDbPolyline.js.map +0 -1
- package/lib/entity/AcDbRasterImage.d.ts +0 -216
- package/lib/entity/AcDbRasterImage.d.ts.map +0 -1
- package/lib/entity/AcDbRasterImage.js +0 -451
- package/lib/entity/AcDbRasterImage.js.map +0 -1
- package/lib/entity/AcDbRay.d.ts +0 -150
- package/lib/entity/AcDbRay.d.ts.map +0 -1
- package/lib/entity/AcDbRay.js +0 -208
- package/lib/entity/AcDbRay.js.map +0 -1
- package/lib/entity/AcDbSpline.d.ts +0 -135
- package/lib/entity/AcDbSpline.d.ts.map +0 -1
- package/lib/entity/AcDbSpline.js +0 -142
- package/lib/entity/AcDbSpline.js.map +0 -1
- package/lib/entity/AcDbTable.d.ts +0 -260
- package/lib/entity/AcDbTable.d.ts.map +0 -1
- package/lib/entity/AcDbTable.js +0 -452
- package/lib/entity/AcDbTable.js.map +0 -1
- package/lib/entity/AcDbText.d.ts +0 -388
- package/lib/entity/AcDbText.d.ts.map +0 -1
- package/lib/entity/AcDbText.js +0 -523
- package/lib/entity/AcDbText.js.map +0 -1
- package/lib/entity/AcDbTrace.d.ts +0 -193
- package/lib/entity/AcDbTrace.d.ts.map +0 -1
- package/lib/entity/AcDbTrace.js +0 -271
- package/lib/entity/AcDbTrace.js.map +0 -1
- package/lib/entity/AcDbViewport.d.ts +0 -173
- package/lib/entity/AcDbViewport.d.ts.map +0 -1
- package/lib/entity/AcDbViewport.js +0 -295
- package/lib/entity/AcDbViewport.js.map +0 -1
- package/lib/entity/AcDbWipeout.d.ts +0 -39
- package/lib/entity/AcDbWipeout.d.ts.map +0 -1
- package/lib/entity/AcDbWipeout.js +0 -70
- package/lib/entity/AcDbWipeout.js.map +0 -1
- package/lib/entity/AcDbXline.d.ts +0 -151
- package/lib/entity/AcDbXline.d.ts.map +0 -1
- package/lib/entity/AcDbXline.js +0 -209
- package/lib/entity/AcDbXline.js.map +0 -1
- package/lib/entity/dimension/AcDb3PointAngularDimension.d.ts +0 -92
- package/lib/entity/dimension/AcDb3PointAngularDimension.d.ts.map +0 -1
- package/lib/entity/dimension/AcDb3PointAngularDimension.js +0 -157
- package/lib/entity/dimension/AcDb3PointAngularDimension.js.map +0 -1
- package/lib/entity/dimension/AcDbAlignedDimension.d.ts +0 -220
- package/lib/entity/dimension/AcDbAlignedDimension.d.ts.map +0 -1
- package/lib/entity/dimension/AcDbAlignedDimension.js +0 -341
- package/lib/entity/dimension/AcDbAlignedDimension.js.map +0 -1
- package/lib/entity/dimension/AcDbArcDimension.d.ts +0 -94
- package/lib/entity/dimension/AcDbArcDimension.d.ts.map +0 -1
- package/lib/entity/dimension/AcDbArcDimension.js +0 -159
- package/lib/entity/dimension/AcDbArcDimension.js.map +0 -1
- package/lib/entity/dimension/AcDbDiametricDimension.d.ts +0 -145
- package/lib/entity/dimension/AcDbDiametricDimension.d.ts.map +0 -1
- package/lib/entity/dimension/AcDbDiametricDimension.js +0 -275
- package/lib/entity/dimension/AcDbDiametricDimension.js.map +0 -1
- package/lib/entity/dimension/AcDbDimension.d.ts +0 -257
- package/lib/entity/dimension/AcDbDimension.d.ts.map +0 -1
- package/lib/entity/dimension/AcDbDimension.js +0 -466
- package/lib/entity/dimension/AcDbDimension.js.map +0 -1
- package/lib/entity/dimension/AcDbOrdinateDimension.d.ts +0 -78
- package/lib/entity/dimension/AcDbOrdinateDimension.d.ts.map +0 -1
- package/lib/entity/dimension/AcDbOrdinateDimension.js +0 -133
- package/lib/entity/dimension/AcDbOrdinateDimension.js.map +0 -1
- package/lib/entity/dimension/AcDbRadialDimension.d.ts +0 -214
- package/lib/entity/dimension/AcDbRadialDimension.d.ts.map +0 -1
- package/lib/entity/dimension/AcDbRadialDimension.js +0 -288
- package/lib/entity/dimension/AcDbRadialDimension.js.map +0 -1
- package/lib/entity/dimension/index.d.ts +0 -8
- package/lib/entity/dimension/index.d.ts.map +0 -1
- package/lib/entity/dimension/index.js +0 -8
- package/lib/entity/dimension/index.js.map +0 -1
- package/lib/entity/index.d.ts +0 -24
- package/lib/entity/index.d.ts.map +0 -1
- package/lib/entity/index.js +0 -24
- package/lib/entity/index.js.map +0 -1
- package/lib/index.d.ts +0 -10
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js +0 -10
- package/lib/index.js.map +0 -1
- package/lib/misc/AcDbAngleUnits.d.ts +0 -20
- package/lib/misc/AcDbAngleUnits.d.ts.map +0 -1
- package/lib/misc/AcDbAngleUnits.js +0 -21
- package/lib/misc/AcDbAngleUnits.js.map +0 -1
- package/lib/misc/AcDbCodePage.d.ts +0 -50
- package/lib/misc/AcDbCodePage.d.ts.map +0 -1
- package/lib/misc/AcDbCodePage.js +0 -100
- package/lib/misc/AcDbCodePage.js.map +0 -1
- package/lib/misc/AcDbConstants.d.ts +0 -24
- package/lib/misc/AcDbConstants.d.ts.map +0 -1
- package/lib/misc/AcDbConstants.js +0 -24
- package/lib/misc/AcDbConstants.js.map +0 -1
- package/lib/misc/AcDbDimArrowType.d.ts +0 -89
- package/lib/misc/AcDbDimArrowType.d.ts.map +0 -1
- package/lib/misc/AcDbDimArrowType.js +0 -90
- package/lib/misc/AcDbDimArrowType.js.map +0 -1
- package/lib/misc/AcDbObjectIterator.d.ts +0 -64
- package/lib/misc/AcDbObjectIterator.d.ts.map +0 -1
- package/lib/misc/AcDbObjectIterator.js +0 -84
- package/lib/misc/AcDbObjectIterator.js.map +0 -1
- package/lib/misc/AcDbOsnapMode.d.ts +0 -51
- package/lib/misc/AcDbOsnapMode.d.ts.map +0 -1
- package/lib/misc/AcDbOsnapMode.js +0 -52
- package/lib/misc/AcDbOsnapMode.js.map +0 -1
- package/lib/misc/AcDbRenderingCache.d.ts +0 -141
- package/lib/misc/AcDbRenderingCache.d.ts.map +0 -1
- package/lib/misc/AcDbRenderingCache.js +0 -239
- package/lib/misc/AcDbRenderingCache.js.map +0 -1
- package/lib/misc/AcDbUnitsValue.d.ts +0 -101
- package/lib/misc/AcDbUnitsValue.d.ts.map +0 -1
- package/lib/misc/AcDbUnitsValue.js +0 -121
- package/lib/misc/AcDbUnitsValue.js.map +0 -1
- package/lib/misc/index.d.ts +0 -9
- package/lib/misc/index.d.ts.map +0 -1
- package/lib/misc/index.js +0 -9
- package/lib/misc/index.js.map +0 -1
- package/lib/object/AcDbDictionary.d.ts +0 -178
- package/lib/object/AcDbDictionary.d.ts.map +0 -1
- package/lib/object/AcDbDictionary.js +0 -264
- package/lib/object/AcDbDictionary.js.map +0 -1
- package/lib/object/AcDbRasterImageDef.d.ts +0 -54
- package/lib/object/AcDbRasterImageDef.d.ts.map +0 -1
- package/lib/object/AcDbRasterImageDef.js +0 -82
- package/lib/object/AcDbRasterImageDef.js.map +0 -1
- package/lib/object/index.d.ts +0 -4
- package/lib/object/index.d.ts.map +0 -1
- package/lib/object/index.js +0 -4
- package/lib/object/index.js.map +0 -1
- package/lib/object/layout/AcDbLayout.d.ts +0 -190
- package/lib/object/layout/AcDbLayout.d.ts.map +0 -1
- package/lib/object/layout/AcDbLayout.js +0 -253
- package/lib/object/layout/AcDbLayout.js.map +0 -1
- package/lib/object/layout/AcDbLayoutDictionary.d.ts +0 -47
- package/lib/object/layout/AcDbLayoutDictionary.d.ts.map +0 -1
- package/lib/object/layout/AcDbLayoutDictionary.js +0 -122
- package/lib/object/layout/AcDbLayoutDictionary.js.map +0 -1
- package/lib/object/layout/AcDbLayoutManager.d.ts +0 -188
- package/lib/object/layout/AcDbLayoutManager.d.ts.map +0 -1
- package/lib/object/layout/AcDbLayoutManager.js +0 -245
- package/lib/object/layout/AcDbLayoutManager.js.map +0 -1
- package/lib/object/layout/index.d.ts +0 -4
- package/lib/object/layout/index.d.ts.map +0 -1
- package/lib/object/layout/index.js +0 -4
- package/lib/object/layout/index.js.map +0 -1
|
@@ -1,302 +0,0 @@
|
|
|
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
|
-
var __values = (this && this.__values) || function(o) {
|
|
17
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
18
|
-
if (m) return m.call(o);
|
|
19
|
-
if (o && typeof o.length === "number") return {
|
|
20
|
-
next: function () {
|
|
21
|
-
if (o && i >= o.length) o = void 0;
|
|
22
|
-
return { value: o && o[i++], done: !o };
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
26
|
-
};
|
|
27
|
-
import { AcGeBox3d, AcGeEuler, AcGeMatrix3d, AcGePoint3d, AcGeQuaternion, AcGeVector3d } from '@mlightcad/geometry-engine';
|
|
28
|
-
import { AcDbRenderingCache } from '../misc';
|
|
29
|
-
import { AcDbEntity } from './AcDbEntity';
|
|
30
|
-
/**
|
|
31
|
-
* Represents a block reference entity in AutoCAD.
|
|
32
|
-
*
|
|
33
|
-
* A block reference is used to place, size, and display an instance of the collection
|
|
34
|
-
* of entities within the block table record that it references. Block references allow
|
|
35
|
-
* you to reuse complex geometry by referencing a block definition multiple times with
|
|
36
|
-
* different positions, rotations, and scales.
|
|
37
|
-
*
|
|
38
|
-
* @example
|
|
39
|
-
* ```typescript
|
|
40
|
-
* // Create a block reference
|
|
41
|
-
* const blockRef = new AcDbBlockReference("MyBlock");
|
|
42
|
-
* blockRef.position = new AcGePoint3d(10, 20, 0);
|
|
43
|
-
* blockRef.rotation = Math.PI / 4; // 45 degrees
|
|
44
|
-
* blockRef.scaleFactors = new AcGePoint3d(2, 2, 1); // 2x scale
|
|
45
|
-
*
|
|
46
|
-
* // Access block reference properties
|
|
47
|
-
* console.log(`Block name: ${blockRef.blockTableRecord?.name}`);
|
|
48
|
-
* console.log(`Position: ${blockRef.position}`);
|
|
49
|
-
* console.log(`Rotation: ${blockRef.rotation}`);
|
|
50
|
-
* ```
|
|
51
|
-
*/
|
|
52
|
-
var AcDbBlockReference = /** @class */ (function (_super) {
|
|
53
|
-
__extends(AcDbBlockReference, _super);
|
|
54
|
-
/**
|
|
55
|
-
* Creates a new block reference entity.
|
|
56
|
-
*
|
|
57
|
-
* This constructor initializes a block reference with the specified block name.
|
|
58
|
-
* The position is set to the origin, rotation to 0, normal to Z-axis, and scale factors to 1.
|
|
59
|
-
*
|
|
60
|
-
* @param blockName - The name of the block table record to reference
|
|
61
|
-
*
|
|
62
|
-
* @example
|
|
63
|
-
* ```typescript
|
|
64
|
-
* const blockRef = new AcDbBlockReference("MyBlock");
|
|
65
|
-
* blockRef.position = new AcGePoint3d(5, 10, 0);
|
|
66
|
-
* blockRef.rotation = Math.PI / 6; // 30 degrees
|
|
67
|
-
* ```
|
|
68
|
-
*/
|
|
69
|
-
function AcDbBlockReference(blockName) {
|
|
70
|
-
var _this = _super.call(this) || this;
|
|
71
|
-
_this._blockName = blockName;
|
|
72
|
-
_this._position = new AcGePoint3d();
|
|
73
|
-
_this._rotation = 0.0;
|
|
74
|
-
_this._normal = new AcGeVector3d(0, 0, 1);
|
|
75
|
-
_this._scaleFactors = new AcGePoint3d(1, 1, 1);
|
|
76
|
-
return _this;
|
|
77
|
-
}
|
|
78
|
-
Object.defineProperty(AcDbBlockReference.prototype, "position", {
|
|
79
|
-
/**
|
|
80
|
-
* Gets the WCS position point (insertion point) of the block reference.
|
|
81
|
-
*
|
|
82
|
-
* @returns The position point in WCS coordinates
|
|
83
|
-
*
|
|
84
|
-
* @example
|
|
85
|
-
* ```typescript
|
|
86
|
-
* const position = blockRef.position;
|
|
87
|
-
* console.log(`Block position: ${position.x}, ${position.y}, ${position.z}`);
|
|
88
|
-
* ```
|
|
89
|
-
*/
|
|
90
|
-
get: function () {
|
|
91
|
-
return this._position;
|
|
92
|
-
},
|
|
93
|
-
/**
|
|
94
|
-
* Sets the WCS position point (insertion point) of the block reference.
|
|
95
|
-
*
|
|
96
|
-
* @param value - The new position point
|
|
97
|
-
*
|
|
98
|
-
* @example
|
|
99
|
-
* ```typescript
|
|
100
|
-
* blockRef.position = new AcGePoint3d(15, 25, 0);
|
|
101
|
-
* ```
|
|
102
|
-
*/
|
|
103
|
-
set: function (value) {
|
|
104
|
-
this._position.copy(value);
|
|
105
|
-
},
|
|
106
|
-
enumerable: false,
|
|
107
|
-
configurable: true
|
|
108
|
-
});
|
|
109
|
-
Object.defineProperty(AcDbBlockReference.prototype, "rotation", {
|
|
110
|
-
/**
|
|
111
|
-
* Gets the rotation value of the block reference.
|
|
112
|
-
*
|
|
113
|
-
* The rotation value is relative to the X axis of a coordinate system that is parallel
|
|
114
|
-
* to the OCS of the block reference, but has its origin at the position point of the
|
|
115
|
-
* block reference. The rotation axis is the Z axis of this coordinate system with
|
|
116
|
-
* positive rotations going counterclockwise when looking down the Z axis towards the origin.
|
|
117
|
-
*
|
|
118
|
-
* @returns The rotation value in radians
|
|
119
|
-
*
|
|
120
|
-
* @example
|
|
121
|
-
* ```typescript
|
|
122
|
-
* const rotation = blockRef.rotation;
|
|
123
|
-
* console.log(`Rotation: ${rotation} radians (${rotation * 180 / Math.PI} degrees)`);
|
|
124
|
-
* ```
|
|
125
|
-
*/
|
|
126
|
-
get: function () {
|
|
127
|
-
return this._rotation;
|
|
128
|
-
},
|
|
129
|
-
/**
|
|
130
|
-
* Sets the rotation value of the block reference.
|
|
131
|
-
*
|
|
132
|
-
* @param value - The new rotation value in radians
|
|
133
|
-
*
|
|
134
|
-
* @example
|
|
135
|
-
* ```typescript
|
|
136
|
-
* blockRef.rotation = Math.PI / 4; // 45 degrees
|
|
137
|
-
* ```
|
|
138
|
-
*/
|
|
139
|
-
set: function (value) {
|
|
140
|
-
this._rotation = value;
|
|
141
|
-
},
|
|
142
|
-
enumerable: false,
|
|
143
|
-
configurable: true
|
|
144
|
-
});
|
|
145
|
-
Object.defineProperty(AcDbBlockReference.prototype, "scaleFactors", {
|
|
146
|
-
/**
|
|
147
|
-
* Gets the X, Y, and Z scale factors for the block reference.
|
|
148
|
-
*
|
|
149
|
-
* @returns The scale factors as a 3D point
|
|
150
|
-
*
|
|
151
|
-
* @example
|
|
152
|
-
* ```typescript
|
|
153
|
-
* const scaleFactors = blockRef.scaleFactors;
|
|
154
|
-
* console.log(`Scale factors: ${scaleFactors.x}, ${scaleFactors.y}, ${scaleFactors.z}`);
|
|
155
|
-
* ```
|
|
156
|
-
*/
|
|
157
|
-
get: function () {
|
|
158
|
-
return this._scaleFactors;
|
|
159
|
-
},
|
|
160
|
-
/**
|
|
161
|
-
* Sets the X, Y, and Z scale factors for the block reference.
|
|
162
|
-
*
|
|
163
|
-
* @param value - The new scale factors
|
|
164
|
-
*
|
|
165
|
-
* @example
|
|
166
|
-
* ```typescript
|
|
167
|
-
* blockRef.scaleFactors = new AcGePoint3d(2, 1.5, 1); // 2x X scale, 1.5x Y scale
|
|
168
|
-
* ```
|
|
169
|
-
*/
|
|
170
|
-
set: function (value) {
|
|
171
|
-
this._scaleFactors.copy(value);
|
|
172
|
-
},
|
|
173
|
-
enumerable: false,
|
|
174
|
-
configurable: true
|
|
175
|
-
});
|
|
176
|
-
Object.defineProperty(AcDbBlockReference.prototype, "normal", {
|
|
177
|
-
/**
|
|
178
|
-
* Gets the normal vector of the plane containing the block reference.
|
|
179
|
-
*
|
|
180
|
-
* @returns The normal vector
|
|
181
|
-
*
|
|
182
|
-
* @example
|
|
183
|
-
* ```typescript
|
|
184
|
-
* const normal = blockRef.normal;
|
|
185
|
-
* console.log(`Normal: ${normal.x}, ${normal.y}, ${normal.z}`);
|
|
186
|
-
* ```
|
|
187
|
-
*/
|
|
188
|
-
get: function () {
|
|
189
|
-
return this._normal;
|
|
190
|
-
},
|
|
191
|
-
/**
|
|
192
|
-
* Sets the normal vector of the plane containing the block reference.
|
|
193
|
-
*
|
|
194
|
-
* @param value - The new normal vector
|
|
195
|
-
*
|
|
196
|
-
* @example
|
|
197
|
-
* ```typescript
|
|
198
|
-
* blockRef.normal = new AcGeVector3d(0, 0, 1);
|
|
199
|
-
* ```
|
|
200
|
-
*/
|
|
201
|
-
set: function (value) {
|
|
202
|
-
this._normal.copy(value).normalize();
|
|
203
|
-
},
|
|
204
|
-
enumerable: false,
|
|
205
|
-
configurable: true
|
|
206
|
-
});
|
|
207
|
-
Object.defineProperty(AcDbBlockReference.prototype, "blockTableRecord", {
|
|
208
|
-
/**
|
|
209
|
-
* Gets the block table record referenced by this block reference.
|
|
210
|
-
*
|
|
211
|
-
* The referenced block table record contains the entities that the block reference will display.
|
|
212
|
-
*
|
|
213
|
-
* @returns The block table record, or undefined if not found
|
|
214
|
-
*
|
|
215
|
-
* @example
|
|
216
|
-
* ```typescript
|
|
217
|
-
* const blockRecord = blockRef.blockTableRecord;
|
|
218
|
-
* if (blockRecord) {
|
|
219
|
-
* console.log(`Block name: ${blockRecord.name}`);
|
|
220
|
-
* }
|
|
221
|
-
* ```
|
|
222
|
-
*/
|
|
223
|
-
get: function () {
|
|
224
|
-
return this.database.tables.blockTable.getAt(this._blockName);
|
|
225
|
-
},
|
|
226
|
-
enumerable: false,
|
|
227
|
-
configurable: true
|
|
228
|
-
});
|
|
229
|
-
Object.defineProperty(AcDbBlockReference.prototype, "geometricExtents", {
|
|
230
|
-
/**
|
|
231
|
-
* Gets the geometric extents (bounding box) of this block reference.
|
|
232
|
-
*
|
|
233
|
-
* This method calculates the bounding box by transforming the geometric extents
|
|
234
|
-
* of all entities in the referenced block according to the block reference's
|
|
235
|
-
* position, rotation, and scale factors.
|
|
236
|
-
*
|
|
237
|
-
* @returns The bounding box that encompasses the entire block reference
|
|
238
|
-
*
|
|
239
|
-
* @example
|
|
240
|
-
* ```typescript
|
|
241
|
-
* const extents = blockRef.geometricExtents;
|
|
242
|
-
* console.log(`Block bounds: ${extents.minPoint} to ${extents.maxPoint}`);
|
|
243
|
-
* ```
|
|
244
|
-
*/
|
|
245
|
-
get: function () {
|
|
246
|
-
var e_1, _a;
|
|
247
|
-
var box = new AcGeBox3d();
|
|
248
|
-
var blockTableRecord = this.blockTableRecord;
|
|
249
|
-
if (blockTableRecord != null) {
|
|
250
|
-
var entities = blockTableRecord.newIterator();
|
|
251
|
-
try {
|
|
252
|
-
for (var entities_1 = __values(entities), entities_1_1 = entities_1.next(); !entities_1_1.done; entities_1_1 = entities_1.next()) {
|
|
253
|
-
var entity = entities_1_1.value;
|
|
254
|
-
box.union(entity.geometricExtents);
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
258
|
-
finally {
|
|
259
|
-
try {
|
|
260
|
-
if (entities_1_1 && !entities_1_1.done && (_a = entities_1.return)) _a.call(entities_1);
|
|
261
|
-
}
|
|
262
|
-
finally { if (e_1) throw e_1.error; }
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
var quaternion = new AcGeQuaternion().setFromEuler(new AcGeEuler(this.rotation, 0, 0));
|
|
266
|
-
var matrix = new AcGeMatrix3d();
|
|
267
|
-
matrix.compose(this.position, quaternion, this.scaleFactors);
|
|
268
|
-
box.applyMatrix4(matrix);
|
|
269
|
-
return box;
|
|
270
|
-
},
|
|
271
|
-
enumerable: false,
|
|
272
|
-
configurable: true
|
|
273
|
-
});
|
|
274
|
-
/**
|
|
275
|
-
* @inheritdoc
|
|
276
|
-
*/
|
|
277
|
-
AcDbBlockReference.prototype.draw = function (renderer) {
|
|
278
|
-
var results = [];
|
|
279
|
-
var blockTableRecord = this.blockTableRecord;
|
|
280
|
-
if (blockTableRecord != null) {
|
|
281
|
-
var matrix = this.computeTransformMatrix();
|
|
282
|
-
var block = AcDbRenderingCache.instance.draw(renderer, blockTableRecord, this.rgbColor, true, matrix, this.normal);
|
|
283
|
-
this.attachEntityInfo(block);
|
|
284
|
-
return block;
|
|
285
|
-
}
|
|
286
|
-
else {
|
|
287
|
-
var block = renderer.group(results);
|
|
288
|
-
this.attachEntityInfo(block);
|
|
289
|
-
return block;
|
|
290
|
-
}
|
|
291
|
-
};
|
|
292
|
-
AcDbBlockReference.prototype.computeTransformMatrix = function () {
|
|
293
|
-
var quaternion = new AcGeQuaternion();
|
|
294
|
-
quaternion.setFromAxisAngle(AcGeVector3d.Z_AXIS, this.rotation);
|
|
295
|
-
return new AcGeMatrix3d().compose(this._position, quaternion, this._scaleFactors);
|
|
296
|
-
};
|
|
297
|
-
/** The entity type name */
|
|
298
|
-
AcDbBlockReference.typeName = 'BlockReference';
|
|
299
|
-
return AcDbBlockReference;
|
|
300
|
-
}(AcDbEntity));
|
|
301
|
-
export { AcDbBlockReference };
|
|
302
|
-
//# sourceMappingURL=AcDbBlockReference.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AcDbBlockReference.js","sourceRoot":"","sources":["../../src/entity/AcDbBlockReference.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
import { AcGeMatrix3d, AcGePoint3d, AcGePoint3dLike, AcGePointLike, AcGeVector3d } from '@mlightcad/geometry-engine';
|
|
2
|
-
import { AcGiRenderer } from '@mlightcad/graphic-interface';
|
|
3
|
-
import { AcDbCurve } from './AcDbCurve';
|
|
4
|
-
/**
|
|
5
|
-
* Represents a circle entity in AutoCAD.
|
|
6
|
-
*
|
|
7
|
-
* A circle is a 2D geometric object defined by its center point and radius.
|
|
8
|
-
* Circles are closed curves that can be used to create circular shapes
|
|
9
|
-
* in drawings. The circle is always drawn in the plane defined by its normal vector.
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```typescript
|
|
13
|
-
* // Create a circle with center at (0,0,0) and radius 5
|
|
14
|
-
* const circle = new AcDbCircle(
|
|
15
|
-
* new AcGePoint3d(0, 0, 0),
|
|
16
|
-
* 5
|
|
17
|
-
* );
|
|
18
|
-
*
|
|
19
|
-
* // Access circle properties
|
|
20
|
-
* console.log(`Center: ${circle.center}`);
|
|
21
|
-
* console.log(`Radius: ${circle.radius}`);
|
|
22
|
-
* console.log(`Normal: ${circle.normal}`);
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
export declare class AcDbCircle extends AcDbCurve {
|
|
26
|
-
/** The entity type name */
|
|
27
|
-
static typeName: string;
|
|
28
|
-
/** The underlying geometric circular arc object */
|
|
29
|
-
private _geo;
|
|
30
|
-
/**
|
|
31
|
-
* Creates a new circle entity.
|
|
32
|
-
*
|
|
33
|
-
* This constructor creates a circle using the specified center point and radius.
|
|
34
|
-
* The center point must be in World Coordinate System (WCS) coordinates.
|
|
35
|
-
* The circle is created as a full circle (0 to 2π radians).
|
|
36
|
-
*
|
|
37
|
-
* @param center - The center point of the circle in WCS coordinates
|
|
38
|
-
* @param radius - The radius of the circle (must be positive)
|
|
39
|
-
* @param normal - The normal vector defining the plane of the circle (defaults to Z-axis)
|
|
40
|
-
*
|
|
41
|
-
* @example
|
|
42
|
-
* ```typescript
|
|
43
|
-
* // Create a circle in the XY plane
|
|
44
|
-
* const circle = new AcDbCircle(
|
|
45
|
-
* new AcGePoint3d(10, 20, 0),
|
|
46
|
-
* 15
|
|
47
|
-
* );
|
|
48
|
-
*
|
|
49
|
-
* // Create a circle in a different plane
|
|
50
|
-
* const circleInYZ = new AcDbCircle(
|
|
51
|
-
* new AcGePoint3d(0, 0, 0),
|
|
52
|
-
* 10,
|
|
53
|
-
* AcGeVector3d.X_AXIS
|
|
54
|
-
* );
|
|
55
|
-
* ```
|
|
56
|
-
*/
|
|
57
|
-
constructor(center: AcGePointLike, radius: number, normal?: AcGeVector3d);
|
|
58
|
-
/**
|
|
59
|
-
* Gets the center point of this circle.
|
|
60
|
-
*
|
|
61
|
-
* @returns The center point as a 3D point
|
|
62
|
-
*
|
|
63
|
-
* @example
|
|
64
|
-
* ```typescript
|
|
65
|
-
* const centerPoint = circle.center;
|
|
66
|
-
* console.log(`Circle center: ${centerPoint.x}, ${centerPoint.y}, ${centerPoint.z}`);
|
|
67
|
-
* ```
|
|
68
|
-
*/
|
|
69
|
-
get center(): AcGePoint3d;
|
|
70
|
-
/**
|
|
71
|
-
* Sets the center point of this circle.
|
|
72
|
-
*
|
|
73
|
-
* @param value - The new center point
|
|
74
|
-
*
|
|
75
|
-
* @example
|
|
76
|
-
* ```typescript
|
|
77
|
-
* circle.center = new AcGePoint3d(5, 5, 0);
|
|
78
|
-
* ```
|
|
79
|
-
*/
|
|
80
|
-
set center(value: AcGePoint3dLike);
|
|
81
|
-
/**
|
|
82
|
-
* Gets the radius of this circle.
|
|
83
|
-
*
|
|
84
|
-
* @returns The radius value
|
|
85
|
-
*
|
|
86
|
-
* @example
|
|
87
|
-
* ```typescript
|
|
88
|
-
* const radius = circle.radius;
|
|
89
|
-
* console.log(`Circle radius: ${radius}`);
|
|
90
|
-
* ```
|
|
91
|
-
*/
|
|
92
|
-
get radius(): number;
|
|
93
|
-
/**
|
|
94
|
-
* Sets the radius of this circle.
|
|
95
|
-
*
|
|
96
|
-
* @param value - The new radius value (must be positive)
|
|
97
|
-
*
|
|
98
|
-
* @example
|
|
99
|
-
* ```typescript
|
|
100
|
-
* circle.radius = 25;
|
|
101
|
-
* ```
|
|
102
|
-
*/
|
|
103
|
-
set radius(value: number);
|
|
104
|
-
/**
|
|
105
|
-
* Gets the normal vector of this circle.
|
|
106
|
-
*
|
|
107
|
-
* The normal vector defines the plane in which the circle lies.
|
|
108
|
-
*
|
|
109
|
-
* @returns The unit normal vector in WCS coordinates
|
|
110
|
-
*
|
|
111
|
-
* @example
|
|
112
|
-
* ```typescript
|
|
113
|
-
* const normal = circle.normal;
|
|
114
|
-
* console.log(`Circle normal: ${normal.x}, ${normal.y}, ${normal.z}`);
|
|
115
|
-
* ```
|
|
116
|
-
*/
|
|
117
|
-
get normal(): AcGeVector3d;
|
|
118
|
-
/**
|
|
119
|
-
* Gets the geometric extents (bounding box) of this circle.
|
|
120
|
-
*
|
|
121
|
-
* @returns The bounding box that encompasses the entire circle
|
|
122
|
-
*
|
|
123
|
-
* @example
|
|
124
|
-
* ```typescript
|
|
125
|
-
* const extents = circle.geometricExtents;
|
|
126
|
-
* console.log(`Circle bounds: ${extents.minPoint} to ${extents.maxPoint}`);
|
|
127
|
-
* ```
|
|
128
|
-
*/
|
|
129
|
-
get geometricExtents(): import("@mlightcad/geometry-engine").AcGeBox3d;
|
|
130
|
-
/**
|
|
131
|
-
* Gets whether this circle is closed.
|
|
132
|
-
*
|
|
133
|
-
* Circles are always closed entities, so this always returns true.
|
|
134
|
-
*
|
|
135
|
-
* @returns Always true for circles
|
|
136
|
-
*/
|
|
137
|
-
get closed(): boolean;
|
|
138
|
-
/**
|
|
139
|
-
* Gets the grip points for this circle.
|
|
140
|
-
*
|
|
141
|
-
* Grip points are control points that can be used to modify the circle.
|
|
142
|
-
* For a circle, the grip point is the center point.
|
|
143
|
-
*
|
|
144
|
-
* @returns Array of grip points (center point)
|
|
145
|
-
*
|
|
146
|
-
* @example
|
|
147
|
-
* ```typescript
|
|
148
|
-
* const gripPoints = circle.subGetGripPoints();
|
|
149
|
-
* // gripPoints contains: [center]
|
|
150
|
-
* ```
|
|
151
|
-
*/
|
|
152
|
-
subGetGripPoints(): AcGePoint3d[];
|
|
153
|
-
/**
|
|
154
|
-
* Transforms this circle by the specified matrix.
|
|
155
|
-
*
|
|
156
|
-
* This method applies a geometric transformation to the circle, updating
|
|
157
|
-
* the center point, radius, and normal vector according to the transformation matrix.
|
|
158
|
-
*
|
|
159
|
-
* @param matrix - The transformation matrix to apply
|
|
160
|
-
* @returns This circle after transformation
|
|
161
|
-
*
|
|
162
|
-
* @example
|
|
163
|
-
* ```typescript
|
|
164
|
-
* const translationMatrix = AcGeMatrix3d.translation(10, 0, 0);
|
|
165
|
-
* circle.transformBy(translationMatrix);
|
|
166
|
-
* // Circle is now translated 10 units in the X direction
|
|
167
|
-
* ```
|
|
168
|
-
*/
|
|
169
|
-
transformBy(matrix: AcGeMatrix3d): this;
|
|
170
|
-
/**
|
|
171
|
-
* Draws this circle using the specified renderer.
|
|
172
|
-
*
|
|
173
|
-
* This method renders the circle as a circular arc using the circle's
|
|
174
|
-
* current style properties.
|
|
175
|
-
*
|
|
176
|
-
* @param renderer - The renderer to use for drawing
|
|
177
|
-
* @returns The rendered circle entity, or undefined if drawing failed
|
|
178
|
-
*
|
|
179
|
-
* @example
|
|
180
|
-
* ```typescript
|
|
181
|
-
* const renderedCircle = circle.draw(renderer);
|
|
182
|
-
* ```
|
|
183
|
-
*/
|
|
184
|
-
draw(renderer: AcGiRenderer): import("@mlightcad/graphic-interface").AcGiEntity;
|
|
185
|
-
}
|
|
186
|
-
//# sourceMappingURL=AcDbCircle.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AcDbCircle.d.ts","sourceRoot":"","sources":["../../src/entity/AcDbCircle.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,YAAY,EACZ,WAAW,EACX,eAAe,EACf,aAAa,EACb,YAAY,EAEb,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAE3D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAAa,UAAW,SAAQ,SAAS;IACvC,2BAA2B;IAC3B,OAAgB,QAAQ,EAAE,MAAM,CAAW;IAE3C,mDAAmD;IACnD,OAAO,CAAC,IAAI,CAAe;IAE3B;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;gBAED,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,MAAM,EACd,MAAM,GAAE,YAAkC;IAa5C;;;;;;;;;;OAUG;IACH,IAAI,MAAM,IAAI,WAAW,CAExB;IAED;;;;;;;;;OASG;IACH,IAAI,MAAM,CAAC,KAAK,EAAE,eAAe,EAEhC;IAED;;;;;;;;;;OAUG;IACH,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED;;;;;;;;;OASG;IACH,IAAI,MAAM,CAAC,KAAK,EAAE,MAAM,EAEvB;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,MAAM,iBAET;IAED;;;;;;;;;;OAUG;IACH,IAAI,gBAAgB,mDAEnB;IAED;;;;;;OAMG;IACH,IAAI,MAAM,IAAI,OAAO,CAEpB;IAED;;;;;;;;;;;;;OAaG;IACH,gBAAgB;IAMhB;;;;;;;;;;;;;;;OAeG;IACH,WAAW,CAAC,MAAM,EAAE,YAAY;IAKhC;;;;;;;;;;;;;OAaG;IACH,IAAI,CAAC,QAAQ,EAAE,YAAY;CAG5B"}
|