@mlightcad/data-model 1.3.0 → 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 -25305
- 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 -872
- 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 -83
- 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/index.d.ts +0 -4
- package/lib/converter/index.d.ts.map +0 -1
- package/lib/converter/index.js +0 -4
- 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 -575
- package/lib/database/AcDbDatabase.d.ts.map +0 -1
- package/lib/database/AcDbDatabase.js +0 -833
- 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 -447
- 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 -55
- package/lib/misc/AcDbObjectIterator.d.ts.map +0 -1
- package/lib/misc/AcDbObjectIterator.js +0 -67
- 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
package/lib/entity/AcDbTable.js
DELETED
|
@@ -1,452 +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 __assign = (this && this.__assign) || function () {
|
|
17
|
-
__assign = Object.assign || function(t) {
|
|
18
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
19
|
-
s = arguments[i];
|
|
20
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
21
|
-
t[p] = s[p];
|
|
22
|
-
}
|
|
23
|
-
return t;
|
|
24
|
-
};
|
|
25
|
-
return __assign.apply(this, arguments);
|
|
26
|
-
};
|
|
27
|
-
import { AcGeBox3d, AcGeMatrix3d, AcGeQuaternion, AcGeVector3d } from '@mlightcad/geometry-engine';
|
|
28
|
-
import { AcGiMTextAttachmentPoint } from '@mlightcad/graphic-interface';
|
|
29
|
-
import { AcDbBlockReference } from './AcDbBlockReference';
|
|
30
|
-
var tempVector = /*@__PURE__*/ new AcGeVector3d();
|
|
31
|
-
/**
|
|
32
|
-
* Represents a table entity in AutoCAD.
|
|
33
|
-
*
|
|
34
|
-
* A table is generally thought of as an n x m rectangular array of cells whose contents
|
|
35
|
-
* consist of annotation objects, primarily text. Tables often contain a title row, a
|
|
36
|
-
* header row, and multiple data rows.
|
|
37
|
-
*
|
|
38
|
-
* After creating a new table object using the constructor, applications usually need to
|
|
39
|
-
* set the table style, number of rows and columns, column width, row height, insert
|
|
40
|
-
* position, width direction, and normal vector. Applications can also enter text or
|
|
41
|
-
* block contents into each cell using methods of this class.
|
|
42
|
-
*
|
|
43
|
-
* Tables are commonly used for bills of materials, schedules, data sheets, and other
|
|
44
|
-
* tabular information in technical drawings and documentation.
|
|
45
|
-
*/
|
|
46
|
-
var AcDbTable = /** @class */ (function (_super) {
|
|
47
|
-
__extends(AcDbTable, _super);
|
|
48
|
-
/**
|
|
49
|
-
* Creates a new table entity.
|
|
50
|
-
*
|
|
51
|
-
* @param name - The name of the table block reference
|
|
52
|
-
* @param numRows - The number of rows in the table
|
|
53
|
-
* @param numColumns - The number of columns in the table
|
|
54
|
-
*/
|
|
55
|
-
function AcDbTable(name, numRows, numColumns) {
|
|
56
|
-
var _this = _super.call(this, name) || this;
|
|
57
|
-
_this._attachmentPoint = AcGiMTextAttachmentPoint.TopLeft;
|
|
58
|
-
_this._numColumns = numColumns;
|
|
59
|
-
_this._numRows = numRows;
|
|
60
|
-
_this._columnWidth = new Array(numColumns);
|
|
61
|
-
_this._rowHeight = new Array(numRows);
|
|
62
|
-
_this._cells = new Array(numRows * numColumns);
|
|
63
|
-
return _this;
|
|
64
|
-
}
|
|
65
|
-
Object.defineProperty(AcDbTable.prototype, "attachmentPoint", {
|
|
66
|
-
/**
|
|
67
|
-
* Gets or sets the cell alignment value for this table.
|
|
68
|
-
*
|
|
69
|
-
* This property controls how text is positioned within table cells by default.
|
|
70
|
-
* Individual cells can override this setting with their own attachment point.
|
|
71
|
-
*
|
|
72
|
-
* @returns The default attachment point for table cells
|
|
73
|
-
*/
|
|
74
|
-
get: function () {
|
|
75
|
-
return this._attachmentPoint;
|
|
76
|
-
},
|
|
77
|
-
set: function (value) {
|
|
78
|
-
this._attachmentPoint = value;
|
|
79
|
-
},
|
|
80
|
-
enumerable: false,
|
|
81
|
-
configurable: true
|
|
82
|
-
});
|
|
83
|
-
Object.defineProperty(AcDbTable.prototype, "numRows", {
|
|
84
|
-
/**
|
|
85
|
-
* Gets or sets the number of rows in the table.
|
|
86
|
-
*
|
|
87
|
-
* Changing this value will resize the table and may affect existing cell data.
|
|
88
|
-
*
|
|
89
|
-
* @returns The current number of rows in the table
|
|
90
|
-
*/
|
|
91
|
-
get: function () {
|
|
92
|
-
return this._numRows;
|
|
93
|
-
},
|
|
94
|
-
set: function (value) {
|
|
95
|
-
this._numRows = value;
|
|
96
|
-
},
|
|
97
|
-
enumerable: false,
|
|
98
|
-
configurable: true
|
|
99
|
-
});
|
|
100
|
-
Object.defineProperty(AcDbTable.prototype, "numColumns", {
|
|
101
|
-
/**
|
|
102
|
-
* Gets or sets the number of columns in the table.
|
|
103
|
-
*
|
|
104
|
-
* Changing this value will resize the table and may affect existing cell data.
|
|
105
|
-
*
|
|
106
|
-
* @returns The current number of columns in the table
|
|
107
|
-
*/
|
|
108
|
-
get: function () {
|
|
109
|
-
return this._numColumns;
|
|
110
|
-
},
|
|
111
|
-
set: function (value) {
|
|
112
|
-
this._numColumns = value;
|
|
113
|
-
},
|
|
114
|
-
enumerable: false,
|
|
115
|
-
configurable: true
|
|
116
|
-
});
|
|
117
|
-
/**
|
|
118
|
-
* Gets the number of contents in the specified cell.
|
|
119
|
-
*
|
|
120
|
-
* @param row - Row index. Must be greater than or equal to 0 and less than the number of rows
|
|
121
|
-
* @param col - Column index. Must be greater than or equal to 0 and less than the number of columns
|
|
122
|
-
* @returns The number of contents in the specified cell
|
|
123
|
-
*/
|
|
124
|
-
// @ts-expect-error not use '_' prefix so that typedoc can the correct parameter to generate doc
|
|
125
|
-
AcDbTable.prototype.numContents = function (row, col) {
|
|
126
|
-
// TODO: Implement it
|
|
127
|
-
return 1;
|
|
128
|
-
};
|
|
129
|
-
/**
|
|
130
|
-
* Gets the row height of the specified row in the table.
|
|
131
|
-
*
|
|
132
|
-
* @param index - Zero-based row index
|
|
133
|
-
* @returns The row height of the specified row in the table
|
|
134
|
-
*/
|
|
135
|
-
AcDbTable.prototype.rowHeight = function (index) {
|
|
136
|
-
return this._rowHeight[index];
|
|
137
|
-
};
|
|
138
|
-
/**
|
|
139
|
-
* Sets the row height for the specified row index in the table.
|
|
140
|
-
*
|
|
141
|
-
* @param index - Zero-based row index
|
|
142
|
-
* @param height - Height to be used for the specified row
|
|
143
|
-
*/
|
|
144
|
-
AcDbTable.prototype.setRowHeight = function (index, height) {
|
|
145
|
-
this._rowHeight[index] = height;
|
|
146
|
-
};
|
|
147
|
-
/**
|
|
148
|
-
* Sets a uniform row height for all the rows in the table.
|
|
149
|
-
*
|
|
150
|
-
* @param height - Height to be used for all the rows in the table
|
|
151
|
-
*/
|
|
152
|
-
AcDbTable.prototype.setUniformRowHeight = function (height) {
|
|
153
|
-
this._rowHeight.fill(height);
|
|
154
|
-
};
|
|
155
|
-
/**
|
|
156
|
-
* Gets the column width at the specified column index in the table.
|
|
157
|
-
*
|
|
158
|
-
* @param index - Zero-based column index
|
|
159
|
-
* @returns The width of the specified column
|
|
160
|
-
*/
|
|
161
|
-
AcDbTable.prototype.columnWidth = function (index) {
|
|
162
|
-
return this._columnWidth[index];
|
|
163
|
-
};
|
|
164
|
-
/**
|
|
165
|
-
* Sets a uniform column width for all the columns in the table.
|
|
166
|
-
*
|
|
167
|
-
* @param width - Uniform width to be used for all the columns in the table
|
|
168
|
-
*/
|
|
169
|
-
AcDbTable.prototype.setUniformColumnWidth = function (width) {
|
|
170
|
-
this._columnWidth.fill(width);
|
|
171
|
-
};
|
|
172
|
-
/**
|
|
173
|
-
* Sets the column width at the specified column index in the table.
|
|
174
|
-
*
|
|
175
|
-
* @param index - Zero-based column index
|
|
176
|
-
* @param width - Width to be used for the specified column
|
|
177
|
-
*/
|
|
178
|
-
AcDbTable.prototype.setColumnWidth = function (index, width) {
|
|
179
|
-
this._columnWidth[index] = width;
|
|
180
|
-
};
|
|
181
|
-
/**
|
|
182
|
-
* Gets the cell at the specified index.
|
|
183
|
-
*
|
|
184
|
-
* @param index - Cell index (calculated as row * numColumns + column)
|
|
185
|
-
* @returns The specified cell by index, or undefined if index is out of range
|
|
186
|
-
*/
|
|
187
|
-
AcDbTable.prototype.cell = function (index) {
|
|
188
|
-
if (index < 0 || index >= this._cells.length)
|
|
189
|
-
return undefined;
|
|
190
|
-
return this._cells[index];
|
|
191
|
-
};
|
|
192
|
-
/**
|
|
193
|
-
* Sets the cell at the specified index.
|
|
194
|
-
*
|
|
195
|
-
* @param index - Cell index (calculated as row * numColumns + column)
|
|
196
|
-
* @param cell - The cell data to set
|
|
197
|
-
*/
|
|
198
|
-
AcDbTable.prototype.setCell = function (index, cell) {
|
|
199
|
-
this._cells[index] = cell;
|
|
200
|
-
};
|
|
201
|
-
/**
|
|
202
|
-
* Gets the text string in the specified cell.
|
|
203
|
-
*
|
|
204
|
-
* @param row - Integer specifying the zero-based row index for the cell
|
|
205
|
-
* @param col - Integer specifying the zero-based column index for the cell
|
|
206
|
-
* @param content - Content index. Should be greater than or equal to 0 and less than the number of contents
|
|
207
|
-
* @returns The text string in the specified cell
|
|
208
|
-
*/
|
|
209
|
-
// @ts-expect-error not use '_' prefix so that typedoc can the correct parameter to generate doc
|
|
210
|
-
AcDbTable.prototype.textString = function (row, col, content) {
|
|
211
|
-
return this._cells[row * col].text;
|
|
212
|
-
};
|
|
213
|
-
/**
|
|
214
|
-
* Sets the text for the first content at the specified content index.
|
|
215
|
-
*
|
|
216
|
-
* @param row - Integer specifying the zero-based row index for the cell
|
|
217
|
-
* @param col - Integer specifying the zero-based column index for the cell
|
|
218
|
-
* @param text - Text string to set
|
|
219
|
-
*/
|
|
220
|
-
AcDbTable.prototype.setTextString = function (row, col, text) {
|
|
221
|
-
this._cells[row * col].text = text;
|
|
222
|
-
};
|
|
223
|
-
/**
|
|
224
|
-
* Checks if the content of the specified cell is empty.
|
|
225
|
-
*
|
|
226
|
-
* @param row - Integer specifying the zero-based row index for the cell
|
|
227
|
-
* @param col - Integer specifying the zero-based column index for the cell
|
|
228
|
-
* @returns True if the content of the specified cell is empty, false otherwise
|
|
229
|
-
*/
|
|
230
|
-
AcDbTable.prototype.isEmpty = function (row, col) {
|
|
231
|
-
return !this._cells[row * col].text;
|
|
232
|
-
};
|
|
233
|
-
Object.defineProperty(AcDbTable.prototype, "geometricExtents", {
|
|
234
|
-
/**
|
|
235
|
-
* Gets the geometric extents (bounding box) of this table entity.
|
|
236
|
-
*
|
|
237
|
-
* The geometric extents define the minimum bounding box that completely contains
|
|
238
|
-
* the table entity, including all its cells, borders, and content.
|
|
239
|
-
*
|
|
240
|
-
* @returns A 3D bounding box containing the table entity
|
|
241
|
-
* @inheritdoc
|
|
242
|
-
*/
|
|
243
|
-
get: function () {
|
|
244
|
-
// TODO: Implement it
|
|
245
|
-
return new AcGeBox3d();
|
|
246
|
-
},
|
|
247
|
-
enumerable: false,
|
|
248
|
-
configurable: true
|
|
249
|
-
});
|
|
250
|
-
/**
|
|
251
|
-
* Renders the table entity using the specified graphics renderer.
|
|
252
|
-
*
|
|
253
|
-
* This method draws the table structure including borders, cell content, and text.
|
|
254
|
-
* It handles the rendering of individual cells, merged cells, and applies the
|
|
255
|
-
* appropriate transformations and styling.
|
|
256
|
-
*
|
|
257
|
-
* @param renderer - The graphics renderer used to draw the table
|
|
258
|
-
* @returns The rendered graphics entity representing the table
|
|
259
|
-
* @inheritdoc
|
|
260
|
-
*/
|
|
261
|
-
AcDbTable.prototype.draw = function (renderer) {
|
|
262
|
-
var _a, _b;
|
|
263
|
-
var allRowHeights = 0, allColumnWidths = 0;
|
|
264
|
-
var indices = new Uint16Array(this.numColumns * this.numRows * 8);
|
|
265
|
-
var points = new Float32Array((this.numColumns + 1) * (this.numRows + 1) * 3);
|
|
266
|
-
var index = 0;
|
|
267
|
-
for (var i = 0; i <= this.numRows; i++) {
|
|
268
|
-
allRowHeights -= i > 0 ? this.rowHeight(i - 1) : 0;
|
|
269
|
-
allColumnWidths = 0;
|
|
270
|
-
for (var j = 0; j <= this.numColumns; j++) {
|
|
271
|
-
allColumnWidths += j > 0 ? this.columnWidth(j - 1) : 0;
|
|
272
|
-
points[index++] = allColumnWidths;
|
|
273
|
-
points[index++] = allRowHeights;
|
|
274
|
-
points[index++] = 0;
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
var results = [];
|
|
278
|
-
var visited = new Array(this.numRows * this.numColumns).fill(false);
|
|
279
|
-
allColumnWidths = 0;
|
|
280
|
-
index = 0;
|
|
281
|
-
var cellIndex = 0;
|
|
282
|
-
for (var i = 0; i < this.numColumns; i++) {
|
|
283
|
-
allColumnWidths += i > 0 ? this.columnWidth(i - 1) : 0;
|
|
284
|
-
allRowHeights = 0;
|
|
285
|
-
for (var j = 0; j < this.numRows; j++) {
|
|
286
|
-
allRowHeights += j > 0 ? this.rowHeight(j - 1) : 0;
|
|
287
|
-
var cell = this.cell(j * this.numColumns + i);
|
|
288
|
-
cellIndex = j * this.numColumns + i;
|
|
289
|
-
if (cell && !visited[cellIndex]) {
|
|
290
|
-
var columnSpan = (_a = cell.borderWidth) !== null && _a !== void 0 ? _a : 1;
|
|
291
|
-
var rowSpan = (_b = cell.borderHeight) !== null && _b !== void 0 ? _b : 1;
|
|
292
|
-
this.fillVisited(visited, cellIndex, this.numColumns, columnSpan, rowSpan);
|
|
293
|
-
// Draw top border line of the current cell by considering merged cell
|
|
294
|
-
indices[index++] = i + j * (this.numColumns + 1);
|
|
295
|
-
indices[index++] = i + j * (this.numColumns + 1) + columnSpan;
|
|
296
|
-
// Calcuate width of the cell by considering merged cell
|
|
297
|
-
var width = points[indices[index - 1] * 3] - allColumnWidths;
|
|
298
|
-
// Draw right border line of the current cell by considering merged cell
|
|
299
|
-
var tmp = i + (j + rowSpan) * (this.numColumns + 1) + columnSpan;
|
|
300
|
-
if (i + columnSpan == this.numColumns) {
|
|
301
|
-
indices[index++] = i + j * (this.numColumns + 1) + columnSpan;
|
|
302
|
-
indices[index++] = tmp;
|
|
303
|
-
}
|
|
304
|
-
// Calcuate height of the cell by considering merged cell
|
|
305
|
-
var height = -points[tmp * 3 + 1] - allRowHeights;
|
|
306
|
-
// Draw bottom border line of the current cell by considering merged cell
|
|
307
|
-
if (j + rowSpan == this.numRows) {
|
|
308
|
-
indices[index++] =
|
|
309
|
-
i + (j + rowSpan) * (this.numColumns + 1) + rowSpan;
|
|
310
|
-
indices[index++] = i + (j + rowSpan) * (this.numColumns + 1);
|
|
311
|
-
}
|
|
312
|
-
// Draw left border line of the current cell by considering merged cell
|
|
313
|
-
indices[index++] = i + (j + rowSpan) * (this.numColumns + 1);
|
|
314
|
-
indices[index++] = i + j * (this.numColumns + 1);
|
|
315
|
-
// Draw text
|
|
316
|
-
if (cell.text) {
|
|
317
|
-
var attachmentPoint = cell.attachmentPoint ||
|
|
318
|
-
this.attachmentPoint ||
|
|
319
|
-
AcGiMTextAttachmentPoint.MiddleCenter;
|
|
320
|
-
var offset = this.getTableTextOffset(attachmentPoint, width, height);
|
|
321
|
-
var mtextData = {
|
|
322
|
-
text: cell.text,
|
|
323
|
-
height: cell.textHeight,
|
|
324
|
-
width: width,
|
|
325
|
-
position: tempVector
|
|
326
|
-
.set(allColumnWidths, -allRowHeights, 0)
|
|
327
|
-
.clone()
|
|
328
|
-
.add(offset),
|
|
329
|
-
rotation: this.rotation,
|
|
330
|
-
attachmentPoint: attachmentPoint
|
|
331
|
-
};
|
|
332
|
-
var textStyle = __assign(__assign({}, this.getTextStyle(cell)), { color: this.color.color });
|
|
333
|
-
results.push(renderer.mtext(mtextData, textStyle));
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
results.push(renderer.lineSegments(points, 3, indices, this.lineStyle));
|
|
339
|
-
var group = renderer.group(results);
|
|
340
|
-
var quaternion = new AcGeQuaternion();
|
|
341
|
-
quaternion.setFromAxisAngle(AcGeVector3d.Z_AXIS, this.rotation);
|
|
342
|
-
_tmpMatrix.compose(this.position, quaternion, this.scaleFactors);
|
|
343
|
-
group.applyMatrix(_tmpMatrix);
|
|
344
|
-
this.attachEntityInfo(group);
|
|
345
|
-
return group;
|
|
346
|
-
};
|
|
347
|
-
/**
|
|
348
|
-
* Marks cells as visited to handle merged cell rendering.
|
|
349
|
-
*
|
|
350
|
-
* This method prevents duplicate rendering of merged cells by marking all
|
|
351
|
-
* constituent cells as visited.
|
|
352
|
-
*
|
|
353
|
-
* @param visited - Array tracking which cells have been processed
|
|
354
|
-
* @param currentIndex - Index of the current cell being processed
|
|
355
|
-
* @param columnCount - Total number of columns in the table
|
|
356
|
-
* @param columnSpan - Number of columns this cell spans
|
|
357
|
-
* @param rowSpan - Number of rows this cell spans
|
|
358
|
-
* @private
|
|
359
|
-
*/
|
|
360
|
-
AcDbTable.prototype.fillVisited = function (visited, currentIndex, columnCount, columnSpan, rowSpan) {
|
|
361
|
-
if (rowSpan == 1 && columnSpan == 1) {
|
|
362
|
-
visited[currentIndex] = true;
|
|
363
|
-
}
|
|
364
|
-
else {
|
|
365
|
-
for (var i = 0; i < columnSpan; ++i) {
|
|
366
|
-
for (var j = 0; j < rowSpan; ++j) {
|
|
367
|
-
visited[currentIndex + i + j * columnCount] = true;
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
};
|
|
372
|
-
/**
|
|
373
|
-
* Gets the text style for a specific cell.
|
|
374
|
-
*
|
|
375
|
-
* This method retrieves the appropriate text style for the cell, falling back
|
|
376
|
-
* to the standard style if no specific style is specified.
|
|
377
|
-
*
|
|
378
|
-
* @param cell - The cell for which to get the text style
|
|
379
|
-
* @returns The text style configuration for the cell
|
|
380
|
-
* @private
|
|
381
|
-
*/
|
|
382
|
-
AcDbTable.prototype.getTextStyle = function (cell) {
|
|
383
|
-
var textStyleTable = this.database.tables.textStyleTable;
|
|
384
|
-
var style;
|
|
385
|
-
if (cell.textStyle) {
|
|
386
|
-
style = textStyleTable.getAt(cell.textStyle);
|
|
387
|
-
}
|
|
388
|
-
if (!style) {
|
|
389
|
-
style = (textStyleTable.getAt('STANDARD') ||
|
|
390
|
-
textStyleTable.getAt('Standard'));
|
|
391
|
-
}
|
|
392
|
-
return style.textStyle;
|
|
393
|
-
};
|
|
394
|
-
/**
|
|
395
|
-
* Calculates the text offset within a table cell based on attachment point.
|
|
396
|
-
*
|
|
397
|
-
* This method determines the appropriate positioning offset for text within
|
|
398
|
-
* a cell based on the specified attachment point and cell dimensions.
|
|
399
|
-
*
|
|
400
|
-
* @param textAlign - The text alignment/attachment point value
|
|
401
|
-
* @param width - The width of the cell
|
|
402
|
-
* @param height - The height of the cell
|
|
403
|
-
* @returns A vector representing the text offset from the cell corner
|
|
404
|
-
* @private
|
|
405
|
-
*/
|
|
406
|
-
AcDbTable.prototype.getTableTextOffset = function (textAlign, width, height) {
|
|
407
|
-
var offset = new AcGeVector3d();
|
|
408
|
-
switch (textAlign) {
|
|
409
|
-
case 1:
|
|
410
|
-
break;
|
|
411
|
-
case 2:
|
|
412
|
-
// Top Center
|
|
413
|
-
offset.setX(width / 2);
|
|
414
|
-
break;
|
|
415
|
-
case 3:
|
|
416
|
-
// Top Right
|
|
417
|
-
offset.setX(width);
|
|
418
|
-
break;
|
|
419
|
-
case 4:
|
|
420
|
-
// Middle Left
|
|
421
|
-
offset.setY(-height / 2);
|
|
422
|
-
break;
|
|
423
|
-
case 5:
|
|
424
|
-
// Middle Center
|
|
425
|
-
offset.set(width / 2, -height / 2, 0);
|
|
426
|
-
break;
|
|
427
|
-
case 6:
|
|
428
|
-
// Middle Right
|
|
429
|
-
offset.set(width, -height / 2, 0);
|
|
430
|
-
break;
|
|
431
|
-
case 7:
|
|
432
|
-
// Bottom Left
|
|
433
|
-
offset.setY(-height);
|
|
434
|
-
break;
|
|
435
|
-
case 8:
|
|
436
|
-
// Bottom Center
|
|
437
|
-
offset.set(width / 2, -height, 0);
|
|
438
|
-
break;
|
|
439
|
-
case 9:
|
|
440
|
-
// Bottom Right
|
|
441
|
-
offset.set(width, -height, 0);
|
|
442
|
-
break;
|
|
443
|
-
}
|
|
444
|
-
return offset;
|
|
445
|
-
};
|
|
446
|
-
/** The entity type name */
|
|
447
|
-
AcDbTable.typeName = 'Table';
|
|
448
|
-
return AcDbTable;
|
|
449
|
-
}(AcDbBlockReference));
|
|
450
|
-
export { AcDbTable };
|
|
451
|
-
var _tmpMatrix = /*@__PURE__*/ new AcGeMatrix3d();
|
|
452
|
-
//# sourceMappingURL=AcDbTable.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AcDbTable.js","sourceRoot":"","sources":["../../src/entity/AcDbTable.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EACL,SAAS,EACT,YAAY,EACZ,cAAc,EACd,YAAY,EACb,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAGL,wBAAwB,EAIzB,MAAM,8BAA8B,CAAA;AAGrC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAmDzD,IAAM,UAAU,GAAG,aAAa,CAAC,IAAI,YAAY,EAAE,CAAA;AAEnD;;;;;;;;;;;;;;GAcG;AACH;IAA+B,6BAAkB;IAW/C;;;;;;OAMG;IACH,mBAAY,IAAY,EAAE,OAAe,EAAE,UAAkB;QAC3D,YAAA,MAAK,YAAC,IAAI,CAAC,SAAA;QACX,KAAI,CAAC,gBAAgB,GAAG,wBAAwB,CAAC,OAAO,CAAA;QACxD,KAAI,CAAC,WAAW,GAAG,UAAU,CAAA;QAC7B,KAAI,CAAC,QAAQ,GAAG,OAAO,CAAA;QACvB,KAAI,CAAC,YAAY,GAAG,IAAI,KAAK,CAAS,UAAU,CAAC,CAAA;QACjD,KAAI,CAAC,UAAU,GAAG,IAAI,KAAK,CAAS,OAAO,CAAC,CAAA;QAC5C,KAAI,CAAC,MAAM,GAAG,IAAI,KAAK,CAAgB,OAAO,GAAG,UAAU,CAAC,CAAA;;IAC9D,CAAC;IAUD,sBAAI,sCAAe;QARnB;;;;;;;WAOG;aACH;YACE,OAAO,IAAI,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