@mlightcad/data-model 1.7.6 → 1.7.8
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 -21
- package/README.md +224 -224
- package/dist/data-model.cjs +7 -5
- package/dist/data-model.js +24662 -23343
- package/lib/base/AcDbDxfFiler.d.ts +62 -0
- package/lib/base/AcDbDxfFiler.d.ts.map +1 -0
- package/lib/base/AcDbDxfFiler.js +244 -0
- package/lib/base/AcDbDxfFiler.js.map +1 -0
- package/lib/base/AcDbHostApplicationServices.d.ts +3 -3
- package/lib/base/AcDbHostApplicationServices.d.ts.map +1 -1
- package/lib/base/AcDbHostApplicationServices.js +12 -3
- package/lib/base/AcDbHostApplicationServices.js.map +1 -1
- package/lib/base/AcDbObject.d.ts +17 -1
- package/lib/base/AcDbObject.d.ts.map +1 -1
- package/lib/base/AcDbObject.js +70 -4
- package/lib/base/AcDbObject.js.map +1 -1
- package/lib/base/index.d.ts +1 -0
- package/lib/base/index.d.ts.map +1 -1
- package/lib/base/index.js +1 -0
- package/lib/base/index.js.map +1 -1
- package/lib/converter/AcDbDxfConverter.d.ts.map +1 -1
- package/lib/converter/AcDbDxfConverter.js +4 -0
- package/lib/converter/AcDbDxfConverter.js.map +1 -1
- package/lib/converter/AcDbObjectConverter.d.ts.map +1 -1
- package/lib/converter/AcDbObjectConverter.js +98 -9
- package/lib/converter/AcDbObjectConverter.js.map +1 -1
- package/lib/database/AcDbBlockTableRecord.d.ts +5 -0
- package/lib/database/AcDbBlockTableRecord.d.ts.map +1 -1
- package/lib/database/AcDbBlockTableRecord.js +36 -2
- package/lib/database/AcDbBlockTableRecord.js.map +1 -1
- package/lib/database/AcDbDatabase.d.ts +21 -2
- package/lib/database/AcDbDatabase.d.ts.map +1 -1
- package/lib/database/AcDbDatabase.js +421 -2
- package/lib/database/AcDbDatabase.js.map +1 -1
- package/lib/database/AcDbDimStyleTableRecord.d.ts +2 -0
- package/lib/database/AcDbDimStyleTableRecord.d.ts.map +1 -1
- package/lib/database/AcDbDimStyleTableRecord.js +33 -0
- package/lib/database/AcDbDimStyleTableRecord.js.map +1 -1
- package/lib/database/AcDbLayerTableRecord.d.ts +2 -0
- package/lib/database/AcDbLayerTableRecord.d.ts.map +1 -1
- package/lib/database/AcDbLayerTableRecord.js +15 -0
- package/lib/database/AcDbLayerTableRecord.js.map +1 -1
- package/lib/database/AcDbLinetypeTableRecord.d.ts +2 -0
- package/lib/database/AcDbLinetypeTableRecord.d.ts.map +1 -1
- package/lib/database/AcDbLinetypeTableRecord.js +38 -0
- package/lib/database/AcDbLinetypeTableRecord.js.map +1 -1
- package/lib/database/AcDbRegAppTableRecord.d.ts +2 -0
- package/lib/database/AcDbRegAppTableRecord.d.ts.map +1 -1
- package/lib/database/AcDbRegAppTableRecord.js +7 -0
- package/lib/database/AcDbRegAppTableRecord.js.map +1 -1
- package/lib/database/AcDbSymbolTable.d.ts.map +1 -1
- package/lib/database/AcDbSymbolTable.js +1 -0
- package/lib/database/AcDbSymbolTable.js.map +1 -1
- package/lib/database/AcDbSymbolTableRecord.d.ts +2 -0
- package/lib/database/AcDbSymbolTableRecord.d.ts.map +1 -1
- package/lib/database/AcDbSymbolTableRecord.js +5 -0
- package/lib/database/AcDbSymbolTableRecord.js.map +1 -1
- package/lib/database/AcDbTextStyleTableRecord.d.ts +2 -0
- package/lib/database/AcDbTextStyleTableRecord.d.ts.map +1 -1
- package/lib/database/AcDbTextStyleTableRecord.js +14 -0
- package/lib/database/AcDbTextStyleTableRecord.js.map +1 -1
- package/lib/database/AcDbViewportTableRecord.d.ts +2 -0
- package/lib/database/AcDbViewportTableRecord.d.ts.map +1 -1
- package/lib/database/AcDbViewportTableRecord.js +23 -0
- package/lib/database/AcDbViewportTableRecord.js.map +1 -1
- package/lib/entity/AcDb2dPolyline.d.ts +4 -0
- package/lib/entity/AcDb2dPolyline.d.ts.map +1 -1
- package/lib/entity/AcDb2dPolyline.js +25 -0
- package/lib/entity/AcDb2dPolyline.js.map +1 -1
- package/lib/entity/AcDb2dVertex.d.ts +2 -0
- package/lib/entity/AcDb2dVertex.d.ts.map +1 -1
- package/lib/entity/AcDb2dVertex.js +11 -0
- package/lib/entity/AcDb2dVertex.js.map +1 -1
- package/lib/entity/AcDb3dPolyline.d.ts +4 -0
- package/lib/entity/AcDb3dPolyline.d.ts.map +1 -1
- package/lib/entity/AcDb3dPolyline.js +23 -0
- package/lib/entity/AcDb3dPolyline.js.map +1 -1
- package/lib/entity/AcDb3dVertex.d.ts +2 -0
- package/lib/entity/AcDb3dVertex.d.ts.map +1 -1
- package/lib/entity/AcDb3dVertex.js +8 -0
- package/lib/entity/AcDb3dVertex.js.map +1 -1
- package/lib/entity/AcDbArc.d.ts +2 -0
- package/lib/entity/AcDbArc.d.ts.map +1 -1
- package/lib/entity/AcDbArc.js +10 -0
- package/lib/entity/AcDbArc.js.map +1 -1
- package/lib/entity/AcDbAttribute.d.ts +2 -0
- package/lib/entity/AcDbAttribute.d.ts.map +1 -1
- package/lib/entity/AcDbAttribute.js +12 -0
- package/lib/entity/AcDbAttribute.js.map +1 -1
- package/lib/entity/AcDbAttributeDefinition.d.ts +2 -0
- package/lib/entity/AcDbAttributeDefinition.d.ts.map +1 -1
- package/lib/entity/AcDbAttributeDefinition.js +10 -0
- package/lib/entity/AcDbAttributeDefinition.js.map +1 -1
- package/lib/entity/AcDbBlockReference.d.ts +3 -1
- package/lib/entity/AcDbBlockReference.d.ts.map +1 -1
- package/lib/entity/AcDbBlockReference.js +19 -0
- package/lib/entity/AcDbBlockReference.js.map +1 -1
- package/lib/entity/AcDbCircle.d.ts +2 -0
- package/lib/entity/AcDbCircle.d.ts.map +1 -1
- package/lib/entity/AcDbCircle.js +8 -0
- package/lib/entity/AcDbCircle.js.map +1 -1
- package/lib/entity/AcDbEllipse.d.ts +2 -0
- package/lib/entity/AcDbEllipse.d.ts.map +1 -1
- package/lib/entity/AcDbEllipse.js +15 -0
- package/lib/entity/AcDbEllipse.js.map +1 -1
- package/lib/entity/AcDbEntity.d.ts +6 -0
- package/lib/entity/AcDbEntity.d.ts.map +1 -1
- package/lib/entity/AcDbEntity.js +53 -0
- package/lib/entity/AcDbEntity.js.map +1 -1
- package/lib/entity/AcDbFace.d.ts +2 -0
- package/lib/entity/AcDbFace.d.ts.map +1 -1
- package/lib/entity/AcDbFace.js +20 -0
- package/lib/entity/AcDbFace.js.map +1 -1
- package/lib/entity/AcDbHatch.d.ts +2 -0
- package/lib/entity/AcDbHatch.d.ts.map +1 -1
- package/lib/entity/AcDbHatch.js +144 -1
- package/lib/entity/AcDbHatch.js.map +1 -1
- package/lib/entity/AcDbLeader.d.ts +3 -0
- package/lib/entity/AcDbLeader.d.ts.map +1 -1
- package/lib/entity/AcDbLeader.js +43 -0
- package/lib/entity/AcDbLeader.js.map +1 -1
- package/lib/entity/AcDbLine.d.ts +2 -0
- package/lib/entity/AcDbLine.d.ts.map +1 -1
- package/lib/entity/AcDbLine.js +7 -0
- package/lib/entity/AcDbLine.js.map +1 -1
- package/lib/entity/AcDbMText.d.ts +2 -0
- package/lib/entity/AcDbMText.d.ts.map +1 -1
- package/lib/entity/AcDbMText.js +22 -0
- package/lib/entity/AcDbMText.js.map +1 -1
- package/lib/entity/AcDbPoint.d.ts +2 -0
- package/lib/entity/AcDbPoint.d.ts.map +1 -1
- package/lib/entity/AcDbPoint.js +6 -0
- package/lib/entity/AcDbPoint.js.map +1 -1
- package/lib/entity/AcDbPolyline.d.ts +2 -0
- package/lib/entity/AcDbPolyline.d.ts.map +1 -1
- package/lib/entity/AcDbPolyline.js +11 -0
- package/lib/entity/AcDbPolyline.js.map +1 -1
- package/lib/entity/AcDbRasterImage.d.ts +2 -1
- package/lib/entity/AcDbRasterImage.d.ts.map +1 -1
- package/lib/entity/AcDbRasterImage.js +44 -0
- package/lib/entity/AcDbRasterImage.js.map +1 -1
- package/lib/entity/AcDbRay.d.ts +2 -0
- package/lib/entity/AcDbRay.d.ts.map +1 -1
- package/lib/entity/AcDbRay.js +7 -0
- package/lib/entity/AcDbRay.js.map +1 -1
- package/lib/entity/AcDbSpline.d.ts +2 -0
- package/lib/entity/AcDbSpline.d.ts.map +1 -1
- package/lib/entity/AcDbSpline.js +76 -0
- package/lib/entity/AcDbSpline.js.map +1 -1
- package/lib/entity/AcDbTable.d.ts +2 -0
- package/lib/entity/AcDbTable.d.ts.map +1 -1
- package/lib/entity/AcDbTable.js +14 -0
- package/lib/entity/AcDbTable.js.map +1 -1
- package/lib/entity/AcDbText.d.ts +2 -0
- package/lib/entity/AcDbText.d.ts.map +1 -1
- package/lib/entity/AcDbText.js +16 -0
- package/lib/entity/AcDbText.js.map +1 -1
- package/lib/entity/AcDbTrace.d.ts +2 -0
- package/lib/entity/AcDbTrace.d.ts.map +1 -1
- package/lib/entity/AcDbTrace.js +11 -0
- package/lib/entity/AcDbTrace.js.map +1 -1
- package/lib/entity/AcDbViewport.d.ts +2 -0
- package/lib/entity/AcDbViewport.d.ts.map +1 -1
- package/lib/entity/AcDbViewport.js +11 -0
- package/lib/entity/AcDbViewport.js.map +1 -1
- package/lib/entity/AcDbWipeout.d.ts +2 -0
- package/lib/entity/AcDbWipeout.d.ts.map +1 -1
- package/lib/entity/AcDbWipeout.js +5 -0
- package/lib/entity/AcDbWipeout.js.map +1 -1
- package/lib/entity/AcDbXline.d.ts +2 -0
- package/lib/entity/AcDbXline.d.ts.map +1 -1
- package/lib/entity/AcDbXline.js +7 -0
- package/lib/entity/AcDbXline.js.map +1 -1
- package/lib/entity/dimension/AcDb3PointAngularDimension.d.ts +2 -0
- package/lib/entity/dimension/AcDb3PointAngularDimension.d.ts.map +1 -1
- package/lib/entity/dimension/AcDb3PointAngularDimension.js +9 -0
- package/lib/entity/dimension/AcDb3PointAngularDimension.js.map +1 -1
- package/lib/entity/dimension/AcDbAlignedDimension.d.ts +2 -0
- package/lib/entity/dimension/AcDbAlignedDimension.d.ts.map +1 -1
- package/lib/entity/dimension/AcDbAlignedDimension.js +10 -0
- package/lib/entity/dimension/AcDbAlignedDimension.js.map +1 -1
- package/lib/entity/dimension/AcDbArcDimension.d.ts +2 -0
- package/lib/entity/dimension/AcDbArcDimension.d.ts.map +1 -1
- package/lib/entity/dimension/AcDbArcDimension.js +9 -0
- package/lib/entity/dimension/AcDbArcDimension.js.map +1 -1
- package/lib/entity/dimension/AcDbDiametricDimension.d.ts +2 -0
- package/lib/entity/dimension/AcDbDiametricDimension.d.ts.map +1 -1
- package/lib/entity/dimension/AcDbDiametricDimension.js +10 -0
- package/lib/entity/dimension/AcDbDiametricDimension.js.map +1 -1
- package/lib/entity/dimension/AcDbDimension.d.ts +2 -0
- package/lib/entity/dimension/AcDbDimension.d.ts.map +1 -1
- package/lib/entity/dimension/AcDbDimension.js +17 -0
- package/lib/entity/dimension/AcDbDimension.js.map +1 -1
- package/lib/entity/dimension/AcDbOrdinateDimension.d.ts +2 -0
- package/lib/entity/dimension/AcDbOrdinateDimension.d.ts.map +1 -1
- package/lib/entity/dimension/AcDbOrdinateDimension.js +7 -0
- package/lib/entity/dimension/AcDbOrdinateDimension.js.map +1 -1
- package/lib/entity/dimension/AcDbRadialDimension.d.ts +2 -0
- package/lib/entity/dimension/AcDbRadialDimension.d.ts.map +1 -1
- package/lib/entity/dimension/AcDbRadialDimension.js +10 -0
- package/lib/entity/dimension/AcDbRadialDimension.js.map +1 -1
- package/lib/misc/AcDbRenderingCache.d.ts.map +1 -1
- package/lib/misc/AcDbRenderingCache.js.map +1 -1
- package/lib/object/AcDbDictionary.d.ts +9 -3
- package/lib/object/AcDbDictionary.d.ts.map +1 -1
- package/lib/object/AcDbDictionary.js +57 -2
- package/lib/object/AcDbDictionary.js.map +1 -1
- package/lib/object/AcDbRasterImageDef.d.ts +3 -1
- package/lib/object/AcDbRasterImageDef.d.ts.map +1 -1
- package/lib/object/AcDbRasterImageDef.js +9 -1
- package/lib/object/AcDbRasterImageDef.js.map +1 -1
- package/lib/object/AcDbXrecord.d.ts +4 -2
- package/lib/object/AcDbXrecord.d.ts.map +1 -1
- package/lib/object/AcDbXrecord.js +8 -1
- package/lib/object/AcDbXrecord.js.map +1 -1
- package/lib/object/layout/AcDbLayout.d.ts +4 -2
- package/lib/object/layout/AcDbLayout.d.ts.map +1 -1
- package/lib/object/layout/AcDbLayout.js +15 -2
- package/lib/object/layout/AcDbLayout.js.map +1 -1
- package/lib/object/layout/AcDbLayoutDictionary.d.ts +1 -1
- package/lib/object/layout/AcDbLayoutDictionary.d.ts.map +1 -1
- package/lib/object/layout/AcDbLayoutManager.d.ts +3 -2
- package/lib/object/layout/AcDbLayoutManager.d.ts.map +1 -1
- package/lib/object/layout/AcDbLayoutManager.js +3 -2
- package/lib/object/layout/AcDbLayoutManager.js.map +1 -1
- package/lib/object/layout/AcDbPlotSettings.d.ts +600 -0
- package/lib/object/layout/AcDbPlotSettings.d.ts.map +1 -0
- package/lib/object/layout/AcDbPlotSettings.js +957 -0
- package/lib/object/layout/AcDbPlotSettings.js.map +1 -0
- package/lib/object/layout/index.d.ts +1 -0
- package/lib/object/layout/index.d.ts.map +1 -1
- package/lib/object/layout/index.js +1 -0
- package/lib/object/layout/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,957 @@
|
|
|
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 _a;
|
|
17
|
+
import { AcGeBox2d, AcGePoint2d } from '@mlightcad/geometry-engine';
|
|
18
|
+
import { AcDbObject } from '../../base/AcDbObject';
|
|
19
|
+
/**
|
|
20
|
+
* Enumeration of plot paper units used by the plot settings.
|
|
21
|
+
*/
|
|
22
|
+
export var AcDbPlotPaperUnits;
|
|
23
|
+
(function (AcDbPlotPaperUnits) {
|
|
24
|
+
/** Paper units are inches. */
|
|
25
|
+
AcDbPlotPaperUnits[AcDbPlotPaperUnits["kInches"] = 0] = "kInches";
|
|
26
|
+
/** Paper units are millimeters. */
|
|
27
|
+
AcDbPlotPaperUnits[AcDbPlotPaperUnits["kMillimeters"] = 1] = "kMillimeters";
|
|
28
|
+
/** Paper units are pixels (device units). */
|
|
29
|
+
AcDbPlotPaperUnits[AcDbPlotPaperUnits["kPixels"] = 2] = "kPixels";
|
|
30
|
+
})(AcDbPlotPaperUnits || (AcDbPlotPaperUnits = {}));
|
|
31
|
+
/**
|
|
32
|
+
* Enumeration of plot rotations.
|
|
33
|
+
*/
|
|
34
|
+
export var AcDbPlotRotation;
|
|
35
|
+
(function (AcDbPlotRotation) {
|
|
36
|
+
/** 0 degrees rotation. */
|
|
37
|
+
AcDbPlotRotation[AcDbPlotRotation["k0degrees"] = 0] = "k0degrees";
|
|
38
|
+
/** 90 degrees rotation. */
|
|
39
|
+
AcDbPlotRotation[AcDbPlotRotation["k90degrees"] = 1] = "k90degrees";
|
|
40
|
+
/** 180 degrees rotation. */
|
|
41
|
+
AcDbPlotRotation[AcDbPlotRotation["k180degrees"] = 2] = "k180degrees";
|
|
42
|
+
/** 270 degrees rotation. */
|
|
43
|
+
AcDbPlotRotation[AcDbPlotRotation["k270degrees"] = 3] = "k270degrees";
|
|
44
|
+
})(AcDbPlotRotation || (AcDbPlotRotation = {}));
|
|
45
|
+
/**
|
|
46
|
+
* Enumeration of plot types that define which area to plot.
|
|
47
|
+
*/
|
|
48
|
+
export var AcDbPlotType;
|
|
49
|
+
(function (AcDbPlotType) {
|
|
50
|
+
/** Plot the current display. */
|
|
51
|
+
AcDbPlotType[AcDbPlotType["kDisplay"] = 0] = "kDisplay";
|
|
52
|
+
/** Plot the drawing extents. */
|
|
53
|
+
AcDbPlotType[AcDbPlotType["kExtents"] = 1] = "kExtents";
|
|
54
|
+
/** Plot the drawing limits. */
|
|
55
|
+
AcDbPlotType[AcDbPlotType["kLimits"] = 2] = "kLimits";
|
|
56
|
+
/** Plot a named view. */
|
|
57
|
+
AcDbPlotType[AcDbPlotType["kView"] = 3] = "kView";
|
|
58
|
+
/** Plot a window area. */
|
|
59
|
+
AcDbPlotType[AcDbPlotType["kWindow"] = 4] = "kWindow";
|
|
60
|
+
/** Plot the entire layout. */
|
|
61
|
+
AcDbPlotType[AcDbPlotType["kLayout"] = 5] = "kLayout";
|
|
62
|
+
})(AcDbPlotType || (AcDbPlotType = {}));
|
|
63
|
+
/**
|
|
64
|
+
* Enumeration of shade plot resolution levels.
|
|
65
|
+
*/
|
|
66
|
+
export var AcDbPlotShadePlotResLevel;
|
|
67
|
+
(function (AcDbPlotShadePlotResLevel) {
|
|
68
|
+
/** Draft resolution (legacy wireframe behavior). */
|
|
69
|
+
AcDbPlotShadePlotResLevel[AcDbPlotShadePlotResLevel["kDraft"] = 0] = "kDraft";
|
|
70
|
+
/** Preview resolution. */
|
|
71
|
+
AcDbPlotShadePlotResLevel[AcDbPlotShadePlotResLevel["kPreview"] = 1] = "kPreview";
|
|
72
|
+
/** Normal resolution. */
|
|
73
|
+
AcDbPlotShadePlotResLevel[AcDbPlotShadePlotResLevel["kNormal"] = 2] = "kNormal";
|
|
74
|
+
/** Presentation resolution. */
|
|
75
|
+
AcDbPlotShadePlotResLevel[AcDbPlotShadePlotResLevel["kPresentation"] = 3] = "kPresentation";
|
|
76
|
+
/** Maximum resolution. */
|
|
77
|
+
AcDbPlotShadePlotResLevel[AcDbPlotShadePlotResLevel["kMaximum"] = 4] = "kMaximum";
|
|
78
|
+
/** Custom resolution using shade plot custom DPI. */
|
|
79
|
+
AcDbPlotShadePlotResLevel[AcDbPlotShadePlotResLevel["kCustom"] = 5] = "kCustom";
|
|
80
|
+
})(AcDbPlotShadePlotResLevel || (AcDbPlotShadePlotResLevel = {}));
|
|
81
|
+
/**
|
|
82
|
+
* Enumeration of shade plot types that control how viewports plot.
|
|
83
|
+
*/
|
|
84
|
+
export var AcDbPlotShadePlotType;
|
|
85
|
+
(function (AcDbPlotShadePlotType) {
|
|
86
|
+
/** Plot the same way it is displayed. */
|
|
87
|
+
AcDbPlotShadePlotType[AcDbPlotShadePlotType["kAsDisplayed"] = 0] = "kAsDisplayed";
|
|
88
|
+
/** Plot wireframe regardless of display. */
|
|
89
|
+
AcDbPlotShadePlotType[AcDbPlotShadePlotType["kWireframe"] = 1] = "kWireframe";
|
|
90
|
+
/** Plot hidden regardless of display. */
|
|
91
|
+
AcDbPlotShadePlotType[AcDbPlotShadePlotType["kHidden"] = 2] = "kHidden";
|
|
92
|
+
/** Plot rendered regardless of display. */
|
|
93
|
+
AcDbPlotShadePlotType[AcDbPlotShadePlotType["kRendered"] = 3] = "kRendered";
|
|
94
|
+
/** Plot using the referenced visual style. */
|
|
95
|
+
AcDbPlotShadePlotType[AcDbPlotShadePlotType["kVisualStyle"] = 4] = "kVisualStyle";
|
|
96
|
+
/** Plot using the referenced render preset. */
|
|
97
|
+
AcDbPlotShadePlotType[AcDbPlotShadePlotType["kRenderPreset"] = 5] = "kRenderPreset";
|
|
98
|
+
})(AcDbPlotShadePlotType || (AcDbPlotShadePlotType = {}));
|
|
99
|
+
/**
|
|
100
|
+
* Enumeration of standard plot scales.
|
|
101
|
+
*/
|
|
102
|
+
export var AcDbPlotStdScaleType;
|
|
103
|
+
(function (AcDbPlotStdScaleType) {
|
|
104
|
+
/** Scale to fit the printable area. */
|
|
105
|
+
AcDbPlotStdScaleType[AcDbPlotStdScaleType["kScaleToFit"] = 0] = "kScaleToFit";
|
|
106
|
+
/** 1/128" = 1'-0" */
|
|
107
|
+
AcDbPlotStdScaleType[AcDbPlotStdScaleType["k1_128in_1ft"] = 1] = "k1_128in_1ft";
|
|
108
|
+
/** 1/64" = 1'-0" */
|
|
109
|
+
AcDbPlotStdScaleType[AcDbPlotStdScaleType["k1_64in_1ft"] = 2] = "k1_64in_1ft";
|
|
110
|
+
/** 1/32" = 1'-0" */
|
|
111
|
+
AcDbPlotStdScaleType[AcDbPlotStdScaleType["k1_32in_1ft"] = 3] = "k1_32in_1ft";
|
|
112
|
+
/** 1/16" = 1'-0" */
|
|
113
|
+
AcDbPlotStdScaleType[AcDbPlotStdScaleType["k1_16in_1ft"] = 4] = "k1_16in_1ft";
|
|
114
|
+
/** 3/32" = 1'-0" */
|
|
115
|
+
AcDbPlotStdScaleType[AcDbPlotStdScaleType["k3_32in_1ft"] = 5] = "k3_32in_1ft";
|
|
116
|
+
/** 1/8" = 1'-0" */
|
|
117
|
+
AcDbPlotStdScaleType[AcDbPlotStdScaleType["k1_8in_1ft"] = 6] = "k1_8in_1ft";
|
|
118
|
+
/** 3/16" = 1'-0" */
|
|
119
|
+
AcDbPlotStdScaleType[AcDbPlotStdScaleType["k3_16in_1ft"] = 7] = "k3_16in_1ft";
|
|
120
|
+
/** 1/4" = 1'-0" */
|
|
121
|
+
AcDbPlotStdScaleType[AcDbPlotStdScaleType["k1_4in_1ft"] = 8] = "k1_4in_1ft";
|
|
122
|
+
/** 3/8" = 1'-0" */
|
|
123
|
+
AcDbPlotStdScaleType[AcDbPlotStdScaleType["k3_8in_1ft"] = 9] = "k3_8in_1ft";
|
|
124
|
+
/** 1/2" = 1'-0" */
|
|
125
|
+
AcDbPlotStdScaleType[AcDbPlotStdScaleType["k1_2in_1ft"] = 10] = "k1_2in_1ft";
|
|
126
|
+
/** 3/4" = 1'-0" */
|
|
127
|
+
AcDbPlotStdScaleType[AcDbPlotStdScaleType["k3_4in_1ft"] = 11] = "k3_4in_1ft";
|
|
128
|
+
/** 1" = 1'-0" */
|
|
129
|
+
AcDbPlotStdScaleType[AcDbPlotStdScaleType["k1in_1ft"] = 12] = "k1in_1ft";
|
|
130
|
+
/** 3" = 1'-0" */
|
|
131
|
+
AcDbPlotStdScaleType[AcDbPlotStdScaleType["k3in_1ft"] = 13] = "k3in_1ft";
|
|
132
|
+
/** 6" = 1'-0" */
|
|
133
|
+
AcDbPlotStdScaleType[AcDbPlotStdScaleType["k6in_1ft"] = 14] = "k6in_1ft";
|
|
134
|
+
/** 1'-0" = 1'-0" */
|
|
135
|
+
AcDbPlotStdScaleType[AcDbPlotStdScaleType["k1ft_1ft"] = 15] = "k1ft_1ft";
|
|
136
|
+
/** 1:1 */
|
|
137
|
+
AcDbPlotStdScaleType[AcDbPlotStdScaleType["k1_1"] = 16] = "k1_1";
|
|
138
|
+
/** 1:2 */
|
|
139
|
+
AcDbPlotStdScaleType[AcDbPlotStdScaleType["k1_2"] = 17] = "k1_2";
|
|
140
|
+
/** 1:4 */
|
|
141
|
+
AcDbPlotStdScaleType[AcDbPlotStdScaleType["k1_4"] = 18] = "k1_4";
|
|
142
|
+
/** 1:5 */
|
|
143
|
+
AcDbPlotStdScaleType[AcDbPlotStdScaleType["k1_5"] = 19] = "k1_5";
|
|
144
|
+
/** 1:8 */
|
|
145
|
+
AcDbPlotStdScaleType[AcDbPlotStdScaleType["k1_8"] = 20] = "k1_8";
|
|
146
|
+
/** 1:10 */
|
|
147
|
+
AcDbPlotStdScaleType[AcDbPlotStdScaleType["k1_10"] = 21] = "k1_10";
|
|
148
|
+
/** 1:16 */
|
|
149
|
+
AcDbPlotStdScaleType[AcDbPlotStdScaleType["k1_16"] = 22] = "k1_16";
|
|
150
|
+
/** 1:20 */
|
|
151
|
+
AcDbPlotStdScaleType[AcDbPlotStdScaleType["k1_20"] = 23] = "k1_20";
|
|
152
|
+
/** 1:30 */
|
|
153
|
+
AcDbPlotStdScaleType[AcDbPlotStdScaleType["k1_30"] = 24] = "k1_30";
|
|
154
|
+
/** 1:40 */
|
|
155
|
+
AcDbPlotStdScaleType[AcDbPlotStdScaleType["k1_40"] = 25] = "k1_40";
|
|
156
|
+
/** 1:50 */
|
|
157
|
+
AcDbPlotStdScaleType[AcDbPlotStdScaleType["k1_50"] = 26] = "k1_50";
|
|
158
|
+
/** 1:100 */
|
|
159
|
+
AcDbPlotStdScaleType[AcDbPlotStdScaleType["k1_100"] = 27] = "k1_100";
|
|
160
|
+
/** 2:1 */
|
|
161
|
+
AcDbPlotStdScaleType[AcDbPlotStdScaleType["k2_1"] = 28] = "k2_1";
|
|
162
|
+
/** 4:1 */
|
|
163
|
+
AcDbPlotStdScaleType[AcDbPlotStdScaleType["k4_1"] = 29] = "k4_1";
|
|
164
|
+
/** 8:1 */
|
|
165
|
+
AcDbPlotStdScaleType[AcDbPlotStdScaleType["k8_1"] = 30] = "k8_1";
|
|
166
|
+
/** 10:1 */
|
|
167
|
+
AcDbPlotStdScaleType[AcDbPlotStdScaleType["k10_1"] = 31] = "k10_1";
|
|
168
|
+
/** 100:1 */
|
|
169
|
+
AcDbPlotStdScaleType[AcDbPlotStdScaleType["k100_1"] = 32] = "k100_1";
|
|
170
|
+
/** 1000:1 */
|
|
171
|
+
AcDbPlotStdScaleType[AcDbPlotStdScaleType["k1000_1"] = 33] = "k1000_1";
|
|
172
|
+
/** 1 1/2" = 1'-0" */
|
|
173
|
+
AcDbPlotStdScaleType[AcDbPlotStdScaleType["k1and1_2in_1ft"] = 34] = "k1and1_2in_1ft";
|
|
174
|
+
})(AcDbPlotStdScaleType || (AcDbPlotStdScaleType = {}));
|
|
175
|
+
var STD_SCALE_VALUES = (_a = {},
|
|
176
|
+
_a[AcDbPlotStdScaleType.kScaleToFit] = 0,
|
|
177
|
+
_a[AcDbPlotStdScaleType.k1_128in_1ft] = 1 / 1536,
|
|
178
|
+
_a[AcDbPlotStdScaleType.k1_64in_1ft] = 1 / 768,
|
|
179
|
+
_a[AcDbPlotStdScaleType.k1_32in_1ft] = 1 / 384,
|
|
180
|
+
_a[AcDbPlotStdScaleType.k1_16in_1ft] = 1 / 192,
|
|
181
|
+
_a[AcDbPlotStdScaleType.k3_32in_1ft] = 1 / 128,
|
|
182
|
+
_a[AcDbPlotStdScaleType.k1_8in_1ft] = 1 / 96,
|
|
183
|
+
_a[AcDbPlotStdScaleType.k3_16in_1ft] = 1 / 64,
|
|
184
|
+
_a[AcDbPlotStdScaleType.k1_4in_1ft] = 1 / 48,
|
|
185
|
+
_a[AcDbPlotStdScaleType.k3_8in_1ft] = 1 / 32,
|
|
186
|
+
_a[AcDbPlotStdScaleType.k1_2in_1ft] = 1 / 24,
|
|
187
|
+
_a[AcDbPlotStdScaleType.k3_4in_1ft] = 1 / 16,
|
|
188
|
+
_a[AcDbPlotStdScaleType.k1in_1ft] = 1 / 12,
|
|
189
|
+
_a[AcDbPlotStdScaleType.k3in_1ft] = 1 / 4,
|
|
190
|
+
_a[AcDbPlotStdScaleType.k6in_1ft] = 1 / 2,
|
|
191
|
+
_a[AcDbPlotStdScaleType.k1ft_1ft] = 1,
|
|
192
|
+
_a[AcDbPlotStdScaleType.k1_1] = 1,
|
|
193
|
+
_a[AcDbPlotStdScaleType.k1_2] = 1 / 2,
|
|
194
|
+
_a[AcDbPlotStdScaleType.k1_4] = 1 / 4,
|
|
195
|
+
_a[AcDbPlotStdScaleType.k1_5] = 1 / 5,
|
|
196
|
+
_a[AcDbPlotStdScaleType.k1_8] = 1 / 8,
|
|
197
|
+
_a[AcDbPlotStdScaleType.k1_10] = 1 / 10,
|
|
198
|
+
_a[AcDbPlotStdScaleType.k1_16] = 1 / 16,
|
|
199
|
+
_a[AcDbPlotStdScaleType.k1_20] = 1 / 20,
|
|
200
|
+
_a[AcDbPlotStdScaleType.k1_30] = 1 / 30,
|
|
201
|
+
_a[AcDbPlotStdScaleType.k1_40] = 1 / 40,
|
|
202
|
+
_a[AcDbPlotStdScaleType.k1_50] = 1 / 50,
|
|
203
|
+
_a[AcDbPlotStdScaleType.k1_100] = 1 / 100,
|
|
204
|
+
_a[AcDbPlotStdScaleType.k2_1] = 2,
|
|
205
|
+
_a[AcDbPlotStdScaleType.k4_1] = 4,
|
|
206
|
+
_a[AcDbPlotStdScaleType.k8_1] = 8,
|
|
207
|
+
_a[AcDbPlotStdScaleType.k10_1] = 10,
|
|
208
|
+
_a[AcDbPlotStdScaleType.k100_1] = 100,
|
|
209
|
+
_a[AcDbPlotStdScaleType.k1000_1] = 1000,
|
|
210
|
+
_a[AcDbPlotStdScaleType.k1and1_2in_1ft] = 1 / 8,
|
|
211
|
+
_a);
|
|
212
|
+
/**
|
|
213
|
+
* Represents plot settings for a layout or named plot setup.
|
|
214
|
+
*
|
|
215
|
+
* This class mirrors the core responsibilities of ObjectARX `AcDbPlotSettings`,
|
|
216
|
+
* encapsulating plot configuration, media selection, scale, and view settings.
|
|
217
|
+
*/
|
|
218
|
+
var AcDbPlotSettings = /** @class */ (function (_super) {
|
|
219
|
+
__extends(AcDbPlotSettings, _super);
|
|
220
|
+
/**
|
|
221
|
+
* Creates a new AcDbPlotSettings instance.
|
|
222
|
+
*
|
|
223
|
+
* @param modelType - True for model space plot settings; false for layout.
|
|
224
|
+
*
|
|
225
|
+
* @example
|
|
226
|
+
* ```typescript
|
|
227
|
+
* const plotSettings = new AcDbPlotSettings(false);
|
|
228
|
+
* plotSettings.plotCfgName = 'DWG To PDF.pc3';
|
|
229
|
+
* plotSettings.canonicalMediaName = 'ISO_A4_(210.00_x_297.00_MM)';
|
|
230
|
+
* ```
|
|
231
|
+
*/
|
|
232
|
+
function AcDbPlotSettings(modelType) {
|
|
233
|
+
if (modelType === void 0) { modelType = false; }
|
|
234
|
+
var _this = _super.call(this) || this;
|
|
235
|
+
_this._plotSettingsName = '';
|
|
236
|
+
_this._plotCfgName = '';
|
|
237
|
+
_this._canonicalMediaName = '';
|
|
238
|
+
_this._currentStyleSheet = '';
|
|
239
|
+
_this._plotOrigin = new AcGePoint2d();
|
|
240
|
+
_this._customPrintScale = { numerator: 1, denominator: 1 };
|
|
241
|
+
_this._plotPaperSize = new AcGePoint2d();
|
|
242
|
+
_this._plotPaperMargins = { left: 0, right: 0, top: 0, bottom: 0 };
|
|
243
|
+
_this._plotViewName = '';
|
|
244
|
+
_this._plotWindowArea = new AcGeBox2d();
|
|
245
|
+
_this._modelType = modelType;
|
|
246
|
+
_this._plotCentered = false;
|
|
247
|
+
_this._plotHidden = false;
|
|
248
|
+
_this._plotPaperUnits = AcDbPlotPaperUnits.kMillimeters;
|
|
249
|
+
_this._plotPlotStyles = true;
|
|
250
|
+
_this._plotRotation = AcDbPlotRotation.k0degrees;
|
|
251
|
+
_this._plotType = AcDbPlotType.kLayout;
|
|
252
|
+
_this._plotViewportBorders = false;
|
|
253
|
+
_this._printLineweights = true;
|
|
254
|
+
_this._scaleLineweights = false;
|
|
255
|
+
_this._drawViewportsFirst = false;
|
|
256
|
+
_this._showPlotStyles = true;
|
|
257
|
+
_this._shadePlotType = AcDbPlotShadePlotType.kAsDisplayed;
|
|
258
|
+
_this._shadePlotResLevel = AcDbPlotShadePlotResLevel.kNormal;
|
|
259
|
+
_this._shadePlotCustomDpi = 300;
|
|
260
|
+
_this._shadePlotId = undefined;
|
|
261
|
+
_this._stdScaleType = AcDbPlotStdScaleType.kScaleToFit;
|
|
262
|
+
_this._useStandardScale = true;
|
|
263
|
+
return _this;
|
|
264
|
+
}
|
|
265
|
+
Object.defineProperty(AcDbPlotSettings.prototype, "plotSettingsName", {
|
|
266
|
+
/**
|
|
267
|
+
* Gets the plot settings name (page setup name).
|
|
268
|
+
*/
|
|
269
|
+
get: function () {
|
|
270
|
+
return this._plotSettingsName;
|
|
271
|
+
},
|
|
272
|
+
/**
|
|
273
|
+
* Sets the plot settings name (page setup name).
|
|
274
|
+
*/
|
|
275
|
+
set: function (value) {
|
|
276
|
+
this._plotSettingsName = value;
|
|
277
|
+
},
|
|
278
|
+
enumerable: false,
|
|
279
|
+
configurable: true
|
|
280
|
+
});
|
|
281
|
+
/**
|
|
282
|
+
* ObjectARX-style getter for the plot settings name.
|
|
283
|
+
*/
|
|
284
|
+
AcDbPlotSettings.prototype.getPlotSettingsName = function () {
|
|
285
|
+
return this._plotSettingsName;
|
|
286
|
+
};
|
|
287
|
+
/**
|
|
288
|
+
* ObjectARX-style setter for the plot settings name.
|
|
289
|
+
*/
|
|
290
|
+
AcDbPlotSettings.prototype.setPlotSettingsName = function (value) {
|
|
291
|
+
this._plotSettingsName = value;
|
|
292
|
+
};
|
|
293
|
+
Object.defineProperty(AcDbPlotSettings.prototype, "plotCfgName", {
|
|
294
|
+
/**
|
|
295
|
+
* Gets the plot configuration (PC3) name.
|
|
296
|
+
*/
|
|
297
|
+
get: function () {
|
|
298
|
+
return this._plotCfgName;
|
|
299
|
+
},
|
|
300
|
+
/**
|
|
301
|
+
* Sets the plot configuration (PC3) name.
|
|
302
|
+
*/
|
|
303
|
+
set: function (value) {
|
|
304
|
+
this._plotCfgName = value;
|
|
305
|
+
},
|
|
306
|
+
enumerable: false,
|
|
307
|
+
configurable: true
|
|
308
|
+
});
|
|
309
|
+
/**
|
|
310
|
+
* ObjectARX-style getter for the plot configuration name.
|
|
311
|
+
*/
|
|
312
|
+
AcDbPlotSettings.prototype.getPlotCfgName = function () {
|
|
313
|
+
return this._plotCfgName;
|
|
314
|
+
};
|
|
315
|
+
Object.defineProperty(AcDbPlotSettings.prototype, "canonicalMediaName", {
|
|
316
|
+
/**
|
|
317
|
+
* Gets the canonical media name (locale-independent paper name).
|
|
318
|
+
*/
|
|
319
|
+
get: function () {
|
|
320
|
+
return this._canonicalMediaName;
|
|
321
|
+
},
|
|
322
|
+
/**
|
|
323
|
+
* Sets the canonical media name (locale-independent paper name).
|
|
324
|
+
*/
|
|
325
|
+
set: function (value) {
|
|
326
|
+
this._canonicalMediaName = value;
|
|
327
|
+
},
|
|
328
|
+
enumerable: false,
|
|
329
|
+
configurable: true
|
|
330
|
+
});
|
|
331
|
+
/**
|
|
332
|
+
* ObjectARX-style getter for the canonical media name.
|
|
333
|
+
*/
|
|
334
|
+
AcDbPlotSettings.prototype.getCanonicalMediaName = function () {
|
|
335
|
+
return this._canonicalMediaName;
|
|
336
|
+
};
|
|
337
|
+
Object.defineProperty(AcDbPlotSettings.prototype, "currentStyleSheet", {
|
|
338
|
+
/**
|
|
339
|
+
* Gets the plot style table name (CTB/STB).
|
|
340
|
+
*/
|
|
341
|
+
get: function () {
|
|
342
|
+
return this._currentStyleSheet;
|
|
343
|
+
},
|
|
344
|
+
/**
|
|
345
|
+
* Sets the plot style table name (CTB/STB).
|
|
346
|
+
*/
|
|
347
|
+
set: function (value) {
|
|
348
|
+
this._currentStyleSheet = value;
|
|
349
|
+
},
|
|
350
|
+
enumerable: false,
|
|
351
|
+
configurable: true
|
|
352
|
+
});
|
|
353
|
+
/**
|
|
354
|
+
* ObjectARX-style getter for the current style sheet.
|
|
355
|
+
*/
|
|
356
|
+
AcDbPlotSettings.prototype.getCurrentStyleSheet = function () {
|
|
357
|
+
return this._currentStyleSheet;
|
|
358
|
+
};
|
|
359
|
+
Object.defineProperty(AcDbPlotSettings.prototype, "plotOrigin", {
|
|
360
|
+
/**
|
|
361
|
+
* Gets the plot origin (paper offset).
|
|
362
|
+
*/
|
|
363
|
+
get: function () {
|
|
364
|
+
return this._plotOrigin;
|
|
365
|
+
},
|
|
366
|
+
/**
|
|
367
|
+
* Sets the plot origin (paper offset).
|
|
368
|
+
*/
|
|
369
|
+
set: function (value) {
|
|
370
|
+
this._plotOrigin = value;
|
|
371
|
+
},
|
|
372
|
+
enumerable: false,
|
|
373
|
+
configurable: true
|
|
374
|
+
});
|
|
375
|
+
/**
|
|
376
|
+
* ObjectARX-style getter for the plot origin.
|
|
377
|
+
*/
|
|
378
|
+
AcDbPlotSettings.prototype.getPlotOrigin = function () {
|
|
379
|
+
return this._plotOrigin;
|
|
380
|
+
};
|
|
381
|
+
Object.defineProperty(AcDbPlotSettings.prototype, "customPrintScale", {
|
|
382
|
+
/**
|
|
383
|
+
* Gets the custom print scale ratio.
|
|
384
|
+
*/
|
|
385
|
+
get: function () {
|
|
386
|
+
return this._customPrintScale;
|
|
387
|
+
},
|
|
388
|
+
/**
|
|
389
|
+
* Sets the custom print scale ratio.
|
|
390
|
+
*/
|
|
391
|
+
set: function (value) {
|
|
392
|
+
this._customPrintScale = value;
|
|
393
|
+
},
|
|
394
|
+
enumerable: false,
|
|
395
|
+
configurable: true
|
|
396
|
+
});
|
|
397
|
+
/**
|
|
398
|
+
* ObjectARX-style getter for the custom print scale.
|
|
399
|
+
*/
|
|
400
|
+
AcDbPlotSettings.prototype.getCustomPrintScale = function () {
|
|
401
|
+
return this._customPrintScale;
|
|
402
|
+
};
|
|
403
|
+
Object.defineProperty(AcDbPlotSettings.prototype, "plotPaperSize", {
|
|
404
|
+
/**
|
|
405
|
+
* Gets the plot paper size (physical size in millimeters).
|
|
406
|
+
*/
|
|
407
|
+
get: function () {
|
|
408
|
+
return this._plotPaperSize;
|
|
409
|
+
},
|
|
410
|
+
/**
|
|
411
|
+
* Sets the plot paper size (physical size in millimeters).
|
|
412
|
+
*/
|
|
413
|
+
set: function (value) {
|
|
414
|
+
this._plotPaperSize = value;
|
|
415
|
+
},
|
|
416
|
+
enumerable: false,
|
|
417
|
+
configurable: true
|
|
418
|
+
});
|
|
419
|
+
/**
|
|
420
|
+
* ObjectARX-style getter for the plot paper size.
|
|
421
|
+
*/
|
|
422
|
+
AcDbPlotSettings.prototype.getPlotPaperSize = function () {
|
|
423
|
+
return this._plotPaperSize;
|
|
424
|
+
};
|
|
425
|
+
Object.defineProperty(AcDbPlotSettings.prototype, "plotPaperMargins", {
|
|
426
|
+
/**
|
|
427
|
+
* Gets the plot paper margins (unprintable area in millimeters).
|
|
428
|
+
*/
|
|
429
|
+
get: function () {
|
|
430
|
+
return this._plotPaperMargins;
|
|
431
|
+
},
|
|
432
|
+
/**
|
|
433
|
+
* Sets the plot paper margins (unprintable area in millimeters).
|
|
434
|
+
*/
|
|
435
|
+
set: function (value) {
|
|
436
|
+
this._plotPaperMargins = value;
|
|
437
|
+
},
|
|
438
|
+
enumerable: false,
|
|
439
|
+
configurable: true
|
|
440
|
+
});
|
|
441
|
+
/**
|
|
442
|
+
* ObjectARX-style getter for the plot paper margins.
|
|
443
|
+
*/
|
|
444
|
+
AcDbPlotSettings.prototype.getPlotPaperMargins = function () {
|
|
445
|
+
return this._plotPaperMargins;
|
|
446
|
+
};
|
|
447
|
+
Object.defineProperty(AcDbPlotSettings.prototype, "plotViewName", {
|
|
448
|
+
/**
|
|
449
|
+
* Gets the plot view name used when plot type is kView.
|
|
450
|
+
*/
|
|
451
|
+
get: function () {
|
|
452
|
+
return this._plotViewName;
|
|
453
|
+
},
|
|
454
|
+
/**
|
|
455
|
+
* Sets the plot view name used when plot type is kView.
|
|
456
|
+
*/
|
|
457
|
+
set: function (value) {
|
|
458
|
+
this._plotViewName = value;
|
|
459
|
+
},
|
|
460
|
+
enumerable: false,
|
|
461
|
+
configurable: true
|
|
462
|
+
});
|
|
463
|
+
/**
|
|
464
|
+
* ObjectARX-style getter for the plot view name.
|
|
465
|
+
*/
|
|
466
|
+
AcDbPlotSettings.prototype.getPlotViewName = function () {
|
|
467
|
+
return this._plotViewName;
|
|
468
|
+
};
|
|
469
|
+
Object.defineProperty(AcDbPlotSettings.prototype, "plotWindowArea", {
|
|
470
|
+
/**
|
|
471
|
+
* Gets the plot window area used when plot type is kWindow.
|
|
472
|
+
*/
|
|
473
|
+
get: function () {
|
|
474
|
+
return this._plotWindowArea;
|
|
475
|
+
},
|
|
476
|
+
/**
|
|
477
|
+
* Sets the plot window area used when plot type is kWindow.
|
|
478
|
+
*/
|
|
479
|
+
set: function (value) {
|
|
480
|
+
this._plotWindowArea = value;
|
|
481
|
+
},
|
|
482
|
+
enumerable: false,
|
|
483
|
+
configurable: true
|
|
484
|
+
});
|
|
485
|
+
/**
|
|
486
|
+
* ObjectARX-style getter for the plot window area.
|
|
487
|
+
*/
|
|
488
|
+
AcDbPlotSettings.prototype.getPlotWindowArea = function () {
|
|
489
|
+
return this._plotWindowArea;
|
|
490
|
+
};
|
|
491
|
+
Object.defineProperty(AcDbPlotSettings.prototype, "modelType", {
|
|
492
|
+
/**
|
|
493
|
+
* Gets whether this plot settings object is for model space.
|
|
494
|
+
*/
|
|
495
|
+
get: function () {
|
|
496
|
+
return this._modelType;
|
|
497
|
+
},
|
|
498
|
+
/**
|
|
499
|
+
* Sets whether this plot settings object is for model space.
|
|
500
|
+
*/
|
|
501
|
+
set: function (value) {
|
|
502
|
+
this._modelType = value;
|
|
503
|
+
},
|
|
504
|
+
enumerable: false,
|
|
505
|
+
configurable: true
|
|
506
|
+
});
|
|
507
|
+
/**
|
|
508
|
+
* ObjectARX-style getter for model type.
|
|
509
|
+
*/
|
|
510
|
+
AcDbPlotSettings.prototype.getModelType = function () {
|
|
511
|
+
return this._modelType;
|
|
512
|
+
};
|
|
513
|
+
/**
|
|
514
|
+
* ObjectARX-style setter for model type.
|
|
515
|
+
*/
|
|
516
|
+
AcDbPlotSettings.prototype.setModelType = function (value) {
|
|
517
|
+
this._modelType = value;
|
|
518
|
+
};
|
|
519
|
+
Object.defineProperty(AcDbPlotSettings.prototype, "drawViewportsFirst", {
|
|
520
|
+
/**
|
|
521
|
+
* Gets whether viewports are plotted after paperspace objects.
|
|
522
|
+
*/
|
|
523
|
+
get: function () {
|
|
524
|
+
return this._drawViewportsFirst;
|
|
525
|
+
},
|
|
526
|
+
/**
|
|
527
|
+
* Sets whether viewports are plotted after paperspace objects.
|
|
528
|
+
*/
|
|
529
|
+
set: function (value) {
|
|
530
|
+
this._drawViewportsFirst = value;
|
|
531
|
+
},
|
|
532
|
+
enumerable: false,
|
|
533
|
+
configurable: true
|
|
534
|
+
});
|
|
535
|
+
/**
|
|
536
|
+
* ObjectARX-style setter for drawing viewports first.
|
|
537
|
+
*/
|
|
538
|
+
AcDbPlotSettings.prototype.setDrawViewportsFirst = function (value) {
|
|
539
|
+
this._drawViewportsFirst = value;
|
|
540
|
+
};
|
|
541
|
+
Object.defineProperty(AcDbPlotSettings.prototype, "plotCentered", {
|
|
542
|
+
/**
|
|
543
|
+
* Gets whether the plot is centered on the paper.
|
|
544
|
+
*/
|
|
545
|
+
get: function () {
|
|
546
|
+
return this._plotCentered;
|
|
547
|
+
},
|
|
548
|
+
/**
|
|
549
|
+
* Sets whether the plot is centered on the paper.
|
|
550
|
+
*/
|
|
551
|
+
set: function (value) {
|
|
552
|
+
this._plotCentered = value;
|
|
553
|
+
},
|
|
554
|
+
enumerable: false,
|
|
555
|
+
configurable: true
|
|
556
|
+
});
|
|
557
|
+
/**
|
|
558
|
+
* ObjectARX-style setter for plot centered.
|
|
559
|
+
*/
|
|
560
|
+
AcDbPlotSettings.prototype.setPlotCentered = function (value) {
|
|
561
|
+
this._plotCentered = value;
|
|
562
|
+
};
|
|
563
|
+
Object.defineProperty(AcDbPlotSettings.prototype, "plotHidden", {
|
|
564
|
+
/**
|
|
565
|
+
* Gets whether hidden line removal is applied to paperspace objects.
|
|
566
|
+
*/
|
|
567
|
+
get: function () {
|
|
568
|
+
return this._plotHidden;
|
|
569
|
+
},
|
|
570
|
+
/**
|
|
571
|
+
* Sets whether hidden line removal is applied to paperspace objects.
|
|
572
|
+
*/
|
|
573
|
+
set: function (value) {
|
|
574
|
+
this._plotHidden = value;
|
|
575
|
+
},
|
|
576
|
+
enumerable: false,
|
|
577
|
+
configurable: true
|
|
578
|
+
});
|
|
579
|
+
/**
|
|
580
|
+
* ObjectARX-style setter for plot hidden.
|
|
581
|
+
*/
|
|
582
|
+
AcDbPlotSettings.prototype.setPlotHidden = function (value) {
|
|
583
|
+
this._plotHidden = value;
|
|
584
|
+
};
|
|
585
|
+
Object.defineProperty(AcDbPlotSettings.prototype, "plotPaperUnits", {
|
|
586
|
+
/**
|
|
587
|
+
* Gets the plot paper units.
|
|
588
|
+
*/
|
|
589
|
+
get: function () {
|
|
590
|
+
return this._plotPaperUnits;
|
|
591
|
+
},
|
|
592
|
+
/**
|
|
593
|
+
* Sets the plot paper units.
|
|
594
|
+
*/
|
|
595
|
+
set: function (value) {
|
|
596
|
+
this._plotPaperUnits = value;
|
|
597
|
+
},
|
|
598
|
+
enumerable: false,
|
|
599
|
+
configurable: true
|
|
600
|
+
});
|
|
601
|
+
Object.defineProperty(AcDbPlotSettings.prototype, "plotPlotStyles", {
|
|
602
|
+
/**
|
|
603
|
+
* Gets whether plot styles are applied during plotting.
|
|
604
|
+
*/
|
|
605
|
+
get: function () {
|
|
606
|
+
return this._plotPlotStyles;
|
|
607
|
+
},
|
|
608
|
+
/**
|
|
609
|
+
* Sets whether plot styles are applied during plotting.
|
|
610
|
+
*/
|
|
611
|
+
set: function (value) {
|
|
612
|
+
this._plotPlotStyles = value;
|
|
613
|
+
},
|
|
614
|
+
enumerable: false,
|
|
615
|
+
configurable: true
|
|
616
|
+
});
|
|
617
|
+
/**
|
|
618
|
+
* ObjectARX-style setter for plot plot styles.
|
|
619
|
+
*/
|
|
620
|
+
AcDbPlotSettings.prototype.setPlotPlotStyles = function (value) {
|
|
621
|
+
this._plotPlotStyles = value;
|
|
622
|
+
};
|
|
623
|
+
Object.defineProperty(AcDbPlotSettings.prototype, "plotRotation", {
|
|
624
|
+
/**
|
|
625
|
+
* Gets the plot rotation.
|
|
626
|
+
*/
|
|
627
|
+
get: function () {
|
|
628
|
+
return this._plotRotation;
|
|
629
|
+
},
|
|
630
|
+
/**
|
|
631
|
+
* Sets the plot rotation.
|
|
632
|
+
*/
|
|
633
|
+
set: function (value) {
|
|
634
|
+
this._plotRotation = value;
|
|
635
|
+
},
|
|
636
|
+
enumerable: false,
|
|
637
|
+
configurable: true
|
|
638
|
+
});
|
|
639
|
+
Object.defineProperty(AcDbPlotSettings.prototype, "plotType", {
|
|
640
|
+
/**
|
|
641
|
+
* Gets the plot type (display, extents, view, etc.).
|
|
642
|
+
*/
|
|
643
|
+
get: function () {
|
|
644
|
+
return this._plotType;
|
|
645
|
+
},
|
|
646
|
+
/**
|
|
647
|
+
* Sets the plot type (display, extents, view, etc.).
|
|
648
|
+
*/
|
|
649
|
+
set: function (value) {
|
|
650
|
+
this._plotType = value;
|
|
651
|
+
},
|
|
652
|
+
enumerable: false,
|
|
653
|
+
configurable: true
|
|
654
|
+
});
|
|
655
|
+
Object.defineProperty(AcDbPlotSettings.prototype, "plotViewportBorders", {
|
|
656
|
+
/**
|
|
657
|
+
* Gets whether viewport borders are plotted.
|
|
658
|
+
*/
|
|
659
|
+
get: function () {
|
|
660
|
+
return this._plotViewportBorders;
|
|
661
|
+
},
|
|
662
|
+
/**
|
|
663
|
+
* Sets whether viewport borders are plotted.
|
|
664
|
+
*/
|
|
665
|
+
set: function (value) {
|
|
666
|
+
this._plotViewportBorders = value;
|
|
667
|
+
},
|
|
668
|
+
enumerable: false,
|
|
669
|
+
configurable: true
|
|
670
|
+
});
|
|
671
|
+
/**
|
|
672
|
+
* ObjectARX-style setter for plot viewport borders.
|
|
673
|
+
*/
|
|
674
|
+
AcDbPlotSettings.prototype.setPlotViewportBorders = function (value) {
|
|
675
|
+
this._plotViewportBorders = value;
|
|
676
|
+
};
|
|
677
|
+
Object.defineProperty(AcDbPlotSettings.prototype, "printLineweights", {
|
|
678
|
+
/**
|
|
679
|
+
* Gets whether lineweights are printed.
|
|
680
|
+
*/
|
|
681
|
+
get: function () {
|
|
682
|
+
return this._printLineweights;
|
|
683
|
+
},
|
|
684
|
+
/**
|
|
685
|
+
* Sets whether lineweights are printed.
|
|
686
|
+
*/
|
|
687
|
+
set: function (value) {
|
|
688
|
+
this._printLineweights = value;
|
|
689
|
+
},
|
|
690
|
+
enumerable: false,
|
|
691
|
+
configurable: true
|
|
692
|
+
});
|
|
693
|
+
/**
|
|
694
|
+
* ObjectARX-style setter for print lineweights.
|
|
695
|
+
*/
|
|
696
|
+
AcDbPlotSettings.prototype.setPrintLineweights = function (value) {
|
|
697
|
+
this._printLineweights = value;
|
|
698
|
+
};
|
|
699
|
+
Object.defineProperty(AcDbPlotSettings.prototype, "scaleLineweights", {
|
|
700
|
+
/**
|
|
701
|
+
* Gets whether lineweights are scaled by the plot scale.
|
|
702
|
+
*/
|
|
703
|
+
get: function () {
|
|
704
|
+
return this._scaleLineweights;
|
|
705
|
+
},
|
|
706
|
+
/**
|
|
707
|
+
* Sets whether lineweights are scaled by the plot scale.
|
|
708
|
+
*/
|
|
709
|
+
set: function (value) {
|
|
710
|
+
this._scaleLineweights = value;
|
|
711
|
+
},
|
|
712
|
+
enumerable: false,
|
|
713
|
+
configurable: true
|
|
714
|
+
});
|
|
715
|
+
/**
|
|
716
|
+
* ObjectARX-style setter for scale lineweights.
|
|
717
|
+
*/
|
|
718
|
+
AcDbPlotSettings.prototype.setScaleLineweights = function (value) {
|
|
719
|
+
this._scaleLineweights = value;
|
|
720
|
+
};
|
|
721
|
+
Object.defineProperty(AcDbPlotSettings.prototype, "showPlotStyles", {
|
|
722
|
+
/**
|
|
723
|
+
* Gets whether plot styles are shown in layout mode.
|
|
724
|
+
*/
|
|
725
|
+
get: function () {
|
|
726
|
+
return this._showPlotStyles;
|
|
727
|
+
},
|
|
728
|
+
/**
|
|
729
|
+
* Sets whether plot styles are shown in layout mode.
|
|
730
|
+
*/
|
|
731
|
+
set: function (value) {
|
|
732
|
+
this._showPlotStyles = value;
|
|
733
|
+
},
|
|
734
|
+
enumerable: false,
|
|
735
|
+
configurable: true
|
|
736
|
+
});
|
|
737
|
+
/**
|
|
738
|
+
* ObjectARX-style setter for show plot styles.
|
|
739
|
+
*/
|
|
740
|
+
AcDbPlotSettings.prototype.setShowPlotStyles = function (value) {
|
|
741
|
+
this._showPlotStyles = value;
|
|
742
|
+
};
|
|
743
|
+
Object.defineProperty(AcDbPlotSettings.prototype, "shadePlot", {
|
|
744
|
+
/**
|
|
745
|
+
* Gets the shade plot type for viewports.
|
|
746
|
+
*/
|
|
747
|
+
get: function () {
|
|
748
|
+
return this._shadePlotType;
|
|
749
|
+
},
|
|
750
|
+
/**
|
|
751
|
+
* Sets the shade plot type for viewports.
|
|
752
|
+
*/
|
|
753
|
+
set: function (value) {
|
|
754
|
+
this._shadePlotType = value;
|
|
755
|
+
},
|
|
756
|
+
enumerable: false,
|
|
757
|
+
configurable: true
|
|
758
|
+
});
|
|
759
|
+
/**
|
|
760
|
+
* ObjectARX-style setter for shade plot type.
|
|
761
|
+
*/
|
|
762
|
+
AcDbPlotSettings.prototype.setShadePlot = function (value) {
|
|
763
|
+
this._shadePlotType = value;
|
|
764
|
+
};
|
|
765
|
+
Object.defineProperty(AcDbPlotSettings.prototype, "shadePlotResLevel", {
|
|
766
|
+
/**
|
|
767
|
+
* Gets the shade plot resolution level.
|
|
768
|
+
*/
|
|
769
|
+
get: function () {
|
|
770
|
+
return this._shadePlotResLevel;
|
|
771
|
+
},
|
|
772
|
+
/**
|
|
773
|
+
* Sets the shade plot resolution level.
|
|
774
|
+
*/
|
|
775
|
+
set: function (value) {
|
|
776
|
+
this._shadePlotResLevel = value;
|
|
777
|
+
},
|
|
778
|
+
enumerable: false,
|
|
779
|
+
configurable: true
|
|
780
|
+
});
|
|
781
|
+
/**
|
|
782
|
+
* ObjectARX-style setter for shade plot resolution level.
|
|
783
|
+
*/
|
|
784
|
+
AcDbPlotSettings.prototype.setShadePlotResLevel = function (value) {
|
|
785
|
+
this._shadePlotResLevel = value;
|
|
786
|
+
};
|
|
787
|
+
Object.defineProperty(AcDbPlotSettings.prototype, "shadePlotCustomDPI", {
|
|
788
|
+
/**
|
|
789
|
+
* Gets the shade plot custom DPI (used with kCustom).
|
|
790
|
+
*/
|
|
791
|
+
get: function () {
|
|
792
|
+
return this._shadePlotCustomDpi;
|
|
793
|
+
},
|
|
794
|
+
/**
|
|
795
|
+
* Sets the shade plot custom DPI (used with kCustom).
|
|
796
|
+
*/
|
|
797
|
+
set: function (value) {
|
|
798
|
+
this._shadePlotCustomDpi = value;
|
|
799
|
+
},
|
|
800
|
+
enumerable: false,
|
|
801
|
+
configurable: true
|
|
802
|
+
});
|
|
803
|
+
/**
|
|
804
|
+
* ObjectARX-style setter for shade plot custom DPI.
|
|
805
|
+
*/
|
|
806
|
+
AcDbPlotSettings.prototype.setShadePlotCustomDPI = function (value) {
|
|
807
|
+
this._shadePlotCustomDpi = value;
|
|
808
|
+
};
|
|
809
|
+
Object.defineProperty(AcDbPlotSettings.prototype, "shadePlotId", {
|
|
810
|
+
/**
|
|
811
|
+
* Gets the shade plot ID (visual style or render preset object ID).
|
|
812
|
+
*/
|
|
813
|
+
get: function () {
|
|
814
|
+
return this._shadePlotId;
|
|
815
|
+
},
|
|
816
|
+
/**
|
|
817
|
+
* Sets the shade plot ID (visual style or render preset object ID).
|
|
818
|
+
*/
|
|
819
|
+
set: function (value) {
|
|
820
|
+
this._shadePlotId = value;
|
|
821
|
+
},
|
|
822
|
+
enumerable: false,
|
|
823
|
+
configurable: true
|
|
824
|
+
});
|
|
825
|
+
Object.defineProperty(AcDbPlotSettings.prototype, "plotWireframe", {
|
|
826
|
+
/**
|
|
827
|
+
* Gets whether viewports plot as wireframe based on shade plot settings.
|
|
828
|
+
*/
|
|
829
|
+
get: function () {
|
|
830
|
+
return this._shadePlotType === AcDbPlotShadePlotType.kWireframe;
|
|
831
|
+
},
|
|
832
|
+
enumerable: false,
|
|
833
|
+
configurable: true
|
|
834
|
+
});
|
|
835
|
+
Object.defineProperty(AcDbPlotSettings.prototype, "plotAsRaster", {
|
|
836
|
+
/**
|
|
837
|
+
* Gets whether viewports plot as raster based on shade plot settings.
|
|
838
|
+
*/
|
|
839
|
+
get: function () {
|
|
840
|
+
return (this._shadePlotType === AcDbPlotShadePlotType.kRendered ||
|
|
841
|
+
this._shadePlotType === AcDbPlotShadePlotType.kVisualStyle ||
|
|
842
|
+
this._shadePlotType === AcDbPlotShadePlotType.kRenderPreset);
|
|
843
|
+
},
|
|
844
|
+
enumerable: false,
|
|
845
|
+
configurable: true
|
|
846
|
+
});
|
|
847
|
+
Object.defineProperty(AcDbPlotSettings.prototype, "stdScaleType", {
|
|
848
|
+
/**
|
|
849
|
+
* Gets the standard scale selection.
|
|
850
|
+
*/
|
|
851
|
+
get: function () {
|
|
852
|
+
return this._stdScaleType;
|
|
853
|
+
},
|
|
854
|
+
/**
|
|
855
|
+
* Sets the standard scale selection.
|
|
856
|
+
*/
|
|
857
|
+
set: function (value) {
|
|
858
|
+
this._stdScaleType = value;
|
|
859
|
+
},
|
|
860
|
+
enumerable: false,
|
|
861
|
+
configurable: true
|
|
862
|
+
});
|
|
863
|
+
Object.defineProperty(AcDbPlotSettings.prototype, "stdScale", {
|
|
864
|
+
/**
|
|
865
|
+
* ObjectARX-style getter for the standard scale as a numeric ratio.
|
|
866
|
+
*/
|
|
867
|
+
get: function () {
|
|
868
|
+
var _a;
|
|
869
|
+
return (_a = STD_SCALE_VALUES[this._stdScaleType]) !== null && _a !== void 0 ? _a : 1;
|
|
870
|
+
},
|
|
871
|
+
enumerable: false,
|
|
872
|
+
configurable: true
|
|
873
|
+
});
|
|
874
|
+
Object.defineProperty(AcDbPlotSettings.prototype, "useStandardScale", {
|
|
875
|
+
/**
|
|
876
|
+
* Gets whether the standard scale is used to compute the plot scale.
|
|
877
|
+
*/
|
|
878
|
+
get: function () {
|
|
879
|
+
return this._useStandardScale;
|
|
880
|
+
},
|
|
881
|
+
/**
|
|
882
|
+
* Sets whether the standard scale is used to compute the plot scale.
|
|
883
|
+
*/
|
|
884
|
+
set: function (value) {
|
|
885
|
+
this._useStandardScale = value;
|
|
886
|
+
},
|
|
887
|
+
enumerable: false,
|
|
888
|
+
configurable: true
|
|
889
|
+
});
|
|
890
|
+
/**
|
|
891
|
+
* Writes the plot settings DXF payload.
|
|
892
|
+
*
|
|
893
|
+
* This follows the PLOTSETTINGS group code specification and emits the
|
|
894
|
+
* plot configuration, media, scale, and flag data for this settings object.
|
|
895
|
+
*
|
|
896
|
+
* @param filer - DXF filer that receives the group codes
|
|
897
|
+
* @returns This plot settings instance for chaining
|
|
898
|
+
*/
|
|
899
|
+
AcDbPlotSettings.prototype.dxfOutFields = function (filer) {
|
|
900
|
+
_super.prototype.dxfOutFields.call(this, filer);
|
|
901
|
+
filer.writeSubclassMarker('AcDbPlotSettings');
|
|
902
|
+
filer.writeString(1, this.plotSettingsName);
|
|
903
|
+
filer.writeString(2, this.plotCfgName);
|
|
904
|
+
filer.writeString(4, this.canonicalMediaName);
|
|
905
|
+
filer.writeString(6, this.plotViewName);
|
|
906
|
+
filer.writeDouble(40, this.plotPaperMargins.left);
|
|
907
|
+
filer.writeDouble(41, this.plotPaperMargins.bottom);
|
|
908
|
+
filer.writeDouble(42, this.plotPaperMargins.right);
|
|
909
|
+
filer.writeDouble(43, this.plotPaperMargins.top);
|
|
910
|
+
filer.writeDouble(44, this.plotPaperSize.x);
|
|
911
|
+
filer.writeDouble(45, this.plotPaperSize.y);
|
|
912
|
+
filer.writeDouble(46, this.plotOrigin.x);
|
|
913
|
+
filer.writeDouble(47, this.plotOrigin.y);
|
|
914
|
+
filer.writeDouble(48, this.plotWindowArea.min.x);
|
|
915
|
+
filer.writeDouble(49, this.plotWindowArea.min.y);
|
|
916
|
+
filer.writeDouble(140, this.plotWindowArea.max.x);
|
|
917
|
+
filer.writeDouble(141, this.plotWindowArea.max.y);
|
|
918
|
+
filer.writeDouble(142, this.customPrintScale.numerator);
|
|
919
|
+
filer.writeDouble(143, this.customPrintScale.denominator);
|
|
920
|
+
var flags = 0;
|
|
921
|
+
if (this.plotViewportBorders)
|
|
922
|
+
flags |= 1;
|
|
923
|
+
if (this.showPlotStyles)
|
|
924
|
+
flags |= 2;
|
|
925
|
+
if (this.plotCentered)
|
|
926
|
+
flags |= 4;
|
|
927
|
+
if (this.plotHidden)
|
|
928
|
+
flags |= 8;
|
|
929
|
+
if (this.useStandardScale)
|
|
930
|
+
flags |= 16;
|
|
931
|
+
if (this.plotPlotStyles)
|
|
932
|
+
flags |= 32;
|
|
933
|
+
if (this.scaleLineweights)
|
|
934
|
+
flags |= 64;
|
|
935
|
+
if (this.printLineweights)
|
|
936
|
+
flags |= 128;
|
|
937
|
+
if (this.drawViewportsFirst)
|
|
938
|
+
flags |= 512;
|
|
939
|
+
if (this.modelType)
|
|
940
|
+
flags |= 1024;
|
|
941
|
+
filer.writeInt16(70, flags);
|
|
942
|
+
filer.writeInt16(72, this.plotPaperUnits);
|
|
943
|
+
filer.writeInt16(73, this.plotRotation);
|
|
944
|
+
filer.writeInt16(74, this.plotType);
|
|
945
|
+
filer.writeString(7, this.currentStyleSheet);
|
|
946
|
+
filer.writeInt16(75, this.stdScaleType);
|
|
947
|
+
filer.writeInt16(76, this.shadePlot);
|
|
948
|
+
filer.writeInt16(77, this.shadePlotResLevel);
|
|
949
|
+
filer.writeInt16(78, this.shadePlotCustomDPI);
|
|
950
|
+
filer.writeDouble(147, this.stdScale);
|
|
951
|
+
filer.writeObjectId(333, this.shadePlotId);
|
|
952
|
+
return this;
|
|
953
|
+
};
|
|
954
|
+
return AcDbPlotSettings;
|
|
955
|
+
}(AcDbObject));
|
|
956
|
+
export { AcDbPlotSettings };
|
|
957
|
+
//# sourceMappingURL=AcDbPlotSettings.js.map
|