@mlightcad/data-model 1.3.4 → 1.3.5

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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcDb3dPolyline.d.ts","sourceRoot":"","sources":["../../src/entity/AcDb3dPolyline.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,WAAW,EACX,eAAe,EAGhB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAE3D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC;;GAEG;AACH,oBAAY,cAAc;IACxB;;OAEG;IACH,UAAU,IAAA;IACV;;OAEG;IACH,cAAc,IAAA;IACd;;OAEG;IACH,eAAe,IAAA;CAChB;AAED;;GAEG;AACH,qBAAa,cAAe,SAAQ,SAAS;IAC3C,2BAA2B;IAC3B,OAAgB,QAAQ,EAAE,MAAM,CAAe;IAE/C,+CAA+C;IAC/C,OAAO,CAAC,SAAS,CAAgB;IACjC,+CAA+C;IAC/C,OAAO,CAAC,IAAI,CAAsC;IAElD;;OAEG;gBAED,IAAI,EAAE,cAAc,EACpB,QAAQ,EAAE,eAAe,EAAE,EAC3B,MAAM,UAAQ;IAOhB;;;;OAIG;IACH,IAAI,QAAQ,IAAI,cAAc,CAE7B;IAED;;;;OAIG;IACH,IAAI,QAAQ,CAAC,KAAK,EAAE,cAAc,EAEjC;IAED;;;;;;;;;;;;;OAaG;IACH,IAAI,MAAM,IAAI,OAAO,CAEpB;IAED;;;;;;;;;OASG;IACH,IAAI,MAAM,CAAC,KAAK,EAAE,OAAO,EAExB;IAED;;;;;;;;;;OAUG;IACH,IAAI,gBAAgB,IAAI,SAAS,CAOhC;IAED;;;;;;;OAOG;IACH,gBAAgB;IAMhB;;;;;OAKG;IACH,IAAI,CAAC,QAAQ,EAAE,YAAY;CAS5B"}
@@ -0,0 +1,158 @@
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
+ extendStatics(d, b);
12
+ function __() { this.constructor = d; }
13
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
+ };
15
+ })();
16
+ import { AcGeBox3d, AcGePoint3d, AcGePolyline2d, } from '@mlightcad/geometry-engine';
17
+ import { AcDbCurve } from './AcDbCurve';
18
+ /**
19
+ * Represents the spline-fit type for this 3D polyline.
20
+ */
21
+ export var AcDbPoly3dType;
22
+ (function (AcDbPoly3dType) {
23
+ /**
24
+ * A standard polyline with no spline fitting.
25
+ */
26
+ AcDbPoly3dType[AcDbPoly3dType["SimplePoly"] = 0] = "SimplePoly";
27
+ /**
28
+ * A spline-fit polyline that has a Quadratic B-spline path.
29
+ */
30
+ AcDbPoly3dType[AcDbPoly3dType["QuadSplinePoly"] = 1] = "QuadSplinePoly";
31
+ /**
32
+ * A spline-fit polyline that has a Cubic B-spline path.
33
+ */
34
+ AcDbPoly3dType[AcDbPoly3dType["CubicSplinePoly"] = 2] = "CubicSplinePoly";
35
+ })(AcDbPoly3dType || (AcDbPoly3dType = {}));
36
+ /**
37
+ * Represents a 3d polyline entity in AutoCAD.
38
+ */
39
+ var AcDb3dPolyline = /** @class */ (function (_super) {
40
+ __extends(AcDb3dPolyline, _super);
41
+ /**
42
+ * Creates a new empty 2d polyline entity.
43
+ */
44
+ function AcDb3dPolyline(type, vertices, closed) {
45
+ if (closed === void 0) { closed = false; }
46
+ var _this = _super.call(this) || this;
47
+ _this._polyType = type;
48
+ _this._geo = new AcGePolyline2d(vertices, closed);
49
+ return _this;
50
+ }
51
+ Object.defineProperty(AcDb3dPolyline.prototype, "polyType", {
52
+ /**
53
+ * Gets the spline-fit type for this 3D polyline.
54
+ *
55
+ * @returns The spline-fit type for this 3D polyline.
56
+ */
57
+ get: function () {
58
+ return this._polyType;
59
+ },
60
+ /**
61
+ * Sets the spline-fit type for this 3D polyline.
62
+ *
63
+ * @param value - The spline-fit type for this 3D polyline.
64
+ */
65
+ set: function (value) {
66
+ this._polyType = value;
67
+ },
68
+ enumerable: false,
69
+ configurable: true
70
+ });
71
+ Object.defineProperty(AcDb3dPolyline.prototype, "closed", {
72
+ /**
73
+ * Gets whether this polyline is closed.
74
+ *
75
+ * A closed polyline has a segment drawn from the last vertex to the first vertex,
76
+ * forming a complete loop.
77
+ *
78
+ * @returns True if the polyline is closed, false otherwise
79
+ *
80
+ * @example
81
+ * ```typescript
82
+ * const isClosed = polyline.closed;
83
+ * console.log(`Polyline is closed: ${isClosed}`);
84
+ * ```
85
+ */
86
+ get: function () {
87
+ return this._geo.closed;
88
+ },
89
+ /**
90
+ * Sets whether this polyline is closed.
91
+ *
92
+ * @param value - True to close the polyline, false to open it
93
+ *
94
+ * @example
95
+ * ```typescript
96
+ * polyline.closed = true; // Close the polyline
97
+ * ```
98
+ */
99
+ set: function (value) {
100
+ this._geo.closed = value;
101
+ },
102
+ enumerable: false,
103
+ configurable: true
104
+ });
105
+ Object.defineProperty(AcDb3dPolyline.prototype, "geometricExtents", {
106
+ /**
107
+ * Gets the geometric extents (bounding box) of this polyline.
108
+ *
109
+ * @returns The bounding box that encompasses the entire polyline
110
+ *
111
+ * @example
112
+ * ```typescript
113
+ * const extents = polyline.geometricExtents;
114
+ * console.log(`Polyline bounds: ${extents.minPoint} to ${extents.maxPoint}`);
115
+ * ```
116
+ */
117
+ get: function () {
118
+ var box = this._geo.box;
119
+ // TODO: Set the correct z value for 3d box
120
+ return new AcGeBox3d({ x: box.min.x, y: box.min.y, z: 0 }, { x: box.max.x, y: box.max.y, z: 0 });
121
+ },
122
+ enumerable: false,
123
+ configurable: true
124
+ });
125
+ /**
126
+ * Gets the grip points for this polyline.
127
+ *
128
+ * Grip points are control points that can be used to modify the polyline.
129
+ * For a polyline, the grip points are all the vertices.
130
+ *
131
+ * @returns Array of grip points (all vertices)
132
+ */
133
+ AcDb3dPolyline.prototype.subGetGripPoints = function () {
134
+ var gripPoints = new Array();
135
+ // TODO: Finish logic to get grip points
136
+ return gripPoints;
137
+ };
138
+ /**
139
+ * Draws this polyline using the specified renderer.
140
+ *
141
+ * @param renderer - The renderer to use for drawing
142
+ * @returns The rendered polyline entity, or undefined if drawing failed
143
+ */
144
+ AcDb3dPolyline.prototype.draw = function (renderer) {
145
+ var points = [];
146
+ var tmp = this._geo.getPoints(100);
147
+ // TODO: Set the correct z value
148
+ tmp.forEach(function (point) {
149
+ return points.push(new AcGePoint3d().set(point.x, point.y, 0));
150
+ });
151
+ return renderer.lines(points, this.lineStyle);
152
+ };
153
+ /** The entity type name */
154
+ AcDb3dPolyline.typeName = '3dPolyline';
155
+ return AcDb3dPolyline;
156
+ }(AcDbCurve));
157
+ export { AcDb3dPolyline };
158
+ //# sourceMappingURL=AcDb3dPolyline.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcDb3dPolyline.js","sourceRoot":"","sources":["../../src/entity/AcDb3dPolyline.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EACL,SAAS,EACT,WAAW,EAEX,cAAc,GAEf,MAAM,4BAA4B,CAAA;AAGnC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC;;GAEG;AACH,MAAM,CAAN,IAAY,cAaX;AAbD,WAAY,cAAc;IACxB;;OAEG;IACH,+DAAU,CAAA;IACV;;OAEG;IACH,uEAAc,CAAA;IACd;;OAEG;IACH,yEAAe,CAAA;AACjB,CAAC,EAbW,cAAc,KAAd,cAAc,QAazB;AAED;;GAEG;AACH;IAAoC,kCAAS;IAS3C;;OAEG;IACH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KG;IACH,6BAAI,GAAJ,UAAK,QAAsB;QACzB,IAAM,MAAM,GAAkB,EAAE,CAAA;QAChC,IAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAA;QACpC,gCAAgC;QAChC,GAAG,CAAC,OAAO,CAAC,UAAA,KAAK;YACf,OAAA,MAAM,CAAC,IAAI,CAAC,IAAI,WAAW,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAAvD,CAAuD,CACxD,CAAA;QACD,OAAO,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,CAAA;IAC/C,CAAC;IAvHD,2BAA2B;IACX,uBAAQ,GAAW,YAAY,CAAA;IAuHjD,qBAAC;CAAA,AAzHD,CAAoC,SAAS,GAyH5C;SAzHY,cAAc"}
@@ -0,0 +1,83 @@
1
+ import { AcGeBox3d, AcGeMatrix3d, AcGePoint3d, AcGePoint3dLike } from '@mlightcad/geometry-engine';
2
+ import { AcGiRenderer } from '@mlightcad/graphic-interface';
3
+ import { AcDbEntity } from './AcDbEntity';
4
+ export declare enum AcDb3dVertexType {
5
+ /**
6
+ * A standard vertex within the polyface mesh.
7
+ */
8
+ SimpleVertex = 0,
9
+ /**
10
+ * A control point for a spline or curve-fit mesh.
11
+ */
12
+ ControlVertex = 1,
13
+ /**
14
+ * A vertex that was automatically generated as the result of a spline or curve-fit operation.
15
+ * This type of vertex can go away or change automatically during subsequent editing operations
16
+ * on the mesh.
17
+ */
18
+ FitVertex = 2
19
+ }
20
+ /**
21
+ * Represents the vertices within 3D polylines in AutoCAD.
22
+ */
23
+ export declare class AcDb3dVertex extends AcDbEntity {
24
+ /** The entity type name */
25
+ static typeName: string;
26
+ /** The WCS point value of this vertex */
27
+ private _position;
28
+ /** The vertex type */
29
+ private _vertexType;
30
+ /**
31
+ * Creates a new 3d vertex entity.
32
+ */
33
+ constructor();
34
+ /**
35
+ * Gets the WCS point value of this vertex.
36
+ *
37
+ * @returns The WCS point value of this vertex.
38
+ */
39
+ get position(): AcGePoint3d;
40
+ /**
41
+ * Sets WCS point value of this vertex.
42
+ *
43
+ * @param value - The WCS point value of this vertex.
44
+ */
45
+ set position(value: AcGePoint3dLike);
46
+ /**
47
+ * Gets the type of this vertex.
48
+ * @returns The type of this vertex
49
+ */
50
+ get vertexType(): AcDb3dVertexType;
51
+ /**
52
+ * Sets the type of this vertex.
53
+ * @param value - The type of this vertex
54
+ */
55
+ set vertexType(value: AcDb3dVertexType);
56
+ /**
57
+ * Gets the geometric extents (bounding box) of this vertex.
58
+ *
59
+ * @returns The bounding box that encompasses the entire vertex
60
+ */
61
+ get geometricExtents(): AcGeBox3d;
62
+ /**
63
+ * Gets the grip points for this vertex.
64
+ *
65
+ * @returns Array of grip points (center, start point, end point)
66
+ */
67
+ subGetGripPoints(): AcGePoint3d[];
68
+ /**
69
+ * Transforms this vertex by the specified matrix.
70
+ *
71
+ * @param matrix - The transformation matrix to apply
72
+ * @returns This vertex after transformation
73
+ */
74
+ transformBy(matrix: AcGeMatrix3d): this;
75
+ /**
76
+ * Draws nothing because it will be drawn by its parent 3d polyline.
77
+ *
78
+ * @param renderer - The renderer to use for drawing
79
+ * @returns undefined
80
+ */
81
+ draw(_renderer: AcGiRenderer): undefined;
82
+ }
83
+ //# sourceMappingURL=AcDb3dVertex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcDb3dVertex.d.ts","sourceRoot":"","sources":["../../src/entity/AcDb3dVertex.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,YAAY,EACZ,WAAW,EACX,eAAe,EAChB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAE3D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAGzC,oBAAY,gBAAgB;IAC1B;;OAEG;IACH,YAAY,IAAA;IACZ;;OAEG;IACH,aAAa,IAAA;IACb;;;;OAIG;IACH,SAAS,IAAA;CACV;AAED;;GAEG;AACH,qBAAa,YAAa,SAAQ,UAAU;IAC1C,2BAA2B;IAC3B,OAAgB,QAAQ,EAAE,MAAM,CAAa;IAE7C,yCAAyC;IACzC,OAAO,CAAC,SAAS,CAAa;IAC9B,sBAAsB;IACtB,OAAO,CAAC,WAAW,CAAkB;IAErC;;OAEG;;IAOH;;;;OAIG;IACH,IAAI,QAAQ,IAAI,WAAW,CAE1B;IAED;;;;OAIG;IACH,IAAI,QAAQ,CAAC,KAAK,EAAE,eAAe,EAElC;IAED;;;OAGG;IACH,IAAI,UAAU,IAAI,gBAAgB,CAEjC;IAED;;;OAGG;IACH,IAAI,UAAU,CAAC,KAAK,EAAE,gBAAgB,EAErC;IAED;;;;OAIG;IACH,IAAI,gBAAgB,cAEnB;IAED;;;;OAIG;IACH,gBAAgB;IAMhB;;;;;OAKG;IACH,WAAW,CAAC,MAAM,EAAE,YAAY;IAKhC;;;;;OAKG;IACH,IAAI,CAAC,SAAS,EAAE,YAAY,GAAG,SAAS;CAGzC"}
@@ -0,0 +1,133 @@
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
+ extendStatics(d, b);
12
+ function __() { this.constructor = d; }
13
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
+ };
15
+ })();
16
+ import { AcGeBox3d, AcGePoint3d, } from '@mlightcad/geometry-engine';
17
+ import { AcDbEntity } from './AcDbEntity';
18
+ export var AcDb3dVertexType;
19
+ (function (AcDb3dVertexType) {
20
+ /**
21
+ * A standard vertex within the polyface mesh.
22
+ */
23
+ AcDb3dVertexType[AcDb3dVertexType["SimpleVertex"] = 0] = "SimpleVertex";
24
+ /**
25
+ * A control point for a spline or curve-fit mesh.
26
+ */
27
+ AcDb3dVertexType[AcDb3dVertexType["ControlVertex"] = 1] = "ControlVertex";
28
+ /**
29
+ * A vertex that was automatically generated as the result of a spline or curve-fit operation.
30
+ * This type of vertex can go away or change automatically during subsequent editing operations
31
+ * on the mesh.
32
+ */
33
+ AcDb3dVertexType[AcDb3dVertexType["FitVertex"] = 2] = "FitVertex";
34
+ })(AcDb3dVertexType || (AcDb3dVertexType = {}));
35
+ /**
36
+ * Represents the vertices within 3D polylines in AutoCAD.
37
+ */
38
+ var AcDb3dVertex = /** @class */ (function (_super) {
39
+ __extends(AcDb3dVertex, _super);
40
+ /**
41
+ * Creates a new 3d vertex entity.
42
+ */
43
+ function AcDb3dVertex() {
44
+ var _this = _super.call(this) || this;
45
+ _this._position = new AcGePoint3d();
46
+ _this._vertexType = AcDb3dVertexType.SimpleVertex;
47
+ return _this;
48
+ }
49
+ Object.defineProperty(AcDb3dVertex.prototype, "position", {
50
+ /**
51
+ * Gets the WCS point value of this vertex.
52
+ *
53
+ * @returns The WCS point value of this vertex.
54
+ */
55
+ get: function () {
56
+ return this._position;
57
+ },
58
+ /**
59
+ * Sets WCS point value of this vertex.
60
+ *
61
+ * @param value - The WCS point value of this vertex.
62
+ */
63
+ set: function (value) {
64
+ this._position.copy(value);
65
+ },
66
+ enumerable: false,
67
+ configurable: true
68
+ });
69
+ Object.defineProperty(AcDb3dVertex.prototype, "vertexType", {
70
+ /**
71
+ * Gets the type of this vertex.
72
+ * @returns The type of this vertex
73
+ */
74
+ get: function () {
75
+ return this._vertexType;
76
+ },
77
+ /**
78
+ * Sets the type of this vertex.
79
+ * @param value - The type of this vertex
80
+ */
81
+ set: function (value) {
82
+ this._vertexType = value;
83
+ },
84
+ enumerable: false,
85
+ configurable: true
86
+ });
87
+ Object.defineProperty(AcDb3dVertex.prototype, "geometricExtents", {
88
+ /**
89
+ * Gets the geometric extents (bounding box) of this vertex.
90
+ *
91
+ * @returns The bounding box that encompasses the entire vertex
92
+ */
93
+ get: function () {
94
+ return new AcGeBox3d().expandByPoint(this._position);
95
+ },
96
+ enumerable: false,
97
+ configurable: true
98
+ });
99
+ /**
100
+ * Gets the grip points for this vertex.
101
+ *
102
+ * @returns Array of grip points (center, start point, end point)
103
+ */
104
+ AcDb3dVertex.prototype.subGetGripPoints = function () {
105
+ var gripPoints = new Array();
106
+ gripPoints.push(this._position);
107
+ return gripPoints;
108
+ };
109
+ /**
110
+ * Transforms this vertex by the specified matrix.
111
+ *
112
+ * @param matrix - The transformation matrix to apply
113
+ * @returns This vertex after transformation
114
+ */
115
+ AcDb3dVertex.prototype.transformBy = function (matrix) {
116
+ this._position.applyMatrix4(matrix);
117
+ return this;
118
+ };
119
+ /**
120
+ * Draws nothing because it will be drawn by its parent 3d polyline.
121
+ *
122
+ * @param renderer - The renderer to use for drawing
123
+ * @returns undefined
124
+ */
125
+ AcDb3dVertex.prototype.draw = function (_renderer) {
126
+ return undefined;
127
+ };
128
+ /** The entity type name */
129
+ AcDb3dVertex.typeName = '3dVertex';
130
+ return AcDb3dVertex;
131
+ }(AcDbEntity));
132
+ export { AcDb3dVertex };
133
+ //# sourceMappingURL=AcDb3dVertex.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcDb3dVertex.js","sourceRoot":"","sources":["../../src/entity/AcDb3dVertex.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EACL,SAAS,EAET,WAAW,GAEZ,MAAM,4BAA4B,CAAA;AAGnC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAGzC,MAAM,CAAN,IAAY,gBAeX;AAfD,WAAY,gBAAgB;IAC1B;;OAEG;IACH,uEAAY,CAAA;IACZ;;OAEG;IACH,yEAAa,CAAA;I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,qBAAQ,GAAW,UAAU,CAAA;IA0F/C,mBAAC;CAAA,AA5FD,CAAkC,UAAU,GA4F3C;SA5FY,YAAY"}
@@ -123,7 +123,7 @@ var AcDbPoint = /** @class */ (function (_super) {
123
123
  * ```
124
124
  */
125
125
  AcDbPoint.prototype.transformBy = function (matrix) {
126
- this._geo.applyMatrix3d(matrix);
126
+ this._geo.applyMatrix4(matrix);
127
127
  return this;
128
128
  };
129
129
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"AcDbPoint.js","sourceRoot":"","sources":["../../src/entity/AcDbPoint.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EACL,SAAS,EAET,WAAW,EAEZ,MAAM,4BAA4B,CAAA;AAGnC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH;IAA+B,6BAAU;IAOvC;;;;;;;;;;;OAWG;IACH;QACE,YAAA,MAAK,WAAE,SAAA;QACP,KAAI,CAAC,IAAI,GAAG,IAAI,WAAW,EAAE,CAAA;;IAC/B,CAAC;IAaD,sBAAI,+BAAQ;QAXZ;;;;;;;;;;WAUG;aACH;YACE,OAAO,IAAI,CAAC,IAAI,CAAA;QAClB,CAAC;QAED;;;;;;;;;WASG;aACH,UAAa,KAAoB;YAC/B,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAA;QAC/C,CAAC;;;OAdA;IA6BD,sBAAI,uCAAgB;QAbpB;;;;;;;;;;;;WAYG;aACH;YACE,OAAO,IAAI,SAAS,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QACjD,CAAC;;;OAAA;IAED;;;;;;;;;;;;;;;OAeG;IACH,+BAAW,GAAX,UAAY,MAAoB;QAC9B,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,MAAM,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AI,CAAC,IAAI,CAAC,CAAA;QACjD,CAAC;;;OAAA;IAED;;;;;;;;;;;;;;;OAeG;IACH,+BAAW,GAAX,UAAY,MAAoB;QAC9B,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAA;QAC9B,OAAO,IAAI,CAAA;IACb,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,wBAAI,GAAJ,UAAK,QAAsB;QACzB,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE;YAC/B,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,MAAM;YACjC,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,MAAM;YACjC,KAAK,EAAE,IAAI,CAAC,QAAQ;SACrB,CAAC,CAAA;IACJ,CAAC;IA9GD,2BAA2B;IACX,kBAAQ,GAAW,OAAO,CAAA;IA8G5C,gBAAC;CAAA,AAhHD,CAA+B,UAAU,GAgHxC;SAhHY,SAAS"}
@@ -1,3 +1,7 @@
1
+ export * from './AcDb2dPolyline';
2
+ export * from './AcDb2dVertex';
3
+ export * from './AcDb3dPolyline';
4
+ export * from './AcDb3dVertex';
1
5
  export * from './AcDbArc';
2
6
  export * from './AcDbBlockReference';
3
7
  export * from './AcDbCircle';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/entity/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,sBAAsB,CAAA;AACpC,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/entity/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,WAAW,CAAA;AACzB,cAAc,sBAAsB,CAAA;AACpC,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA"}
@@ -1,3 +1,7 @@
1
+ export * from './AcDb2dPolyline';
2
+ export * from './AcDb2dVertex';
3
+ export * from './AcDb3dPolyline';
4
+ export * from './AcDb3dVertex';
1
5
  export * from './AcDbArc';
2
6
  export * from './AcDbBlockReference';
3
7
  export * from './AcDbCircle';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entity/index.ts"],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;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mlightcad/data-model",
3
- "version": "1.3.4",
3
+ "version": "1.3.5",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {
@@ -37,9 +37,9 @@
37
37
  "uid": "^2.0.2"
38
38
  },
39
39
  "devDependencies": {
40
- "@mlightcad/common": "1.2.4",
41
- "@mlightcad/geometry-engine": "3.0.5",
42
- "@mlightcad/graphic-interface": "3.0.6"
40
+ "@mlightcad/graphic-interface": "3.0.7",
41
+ "@mlightcad/common": "1.2.5",
42
+ "@mlightcad/geometry-engine": "3.0.6"
43
43
  },
44
44
  "scripts": {
45
45
  "analyze": "pnpm run analyze:lib && pnpm run analyze:worker",