@mlightcad/data-model 1.7.27 → 1.7.29

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.
Files changed (87) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +224 -224
  3. package/dist/data-model.cjs +4 -3
  4. package/dist/data-model.js +6601 -3480
  5. package/dist/dxf-parser-worker.js +1023 -740
  6. package/lib/converter/AcDbDxfConverter.d.ts +1 -0
  7. package/lib/converter/AcDbDxfConverter.d.ts.map +1 -1
  8. package/lib/converter/AcDbDxfConverter.js +48 -1
  9. package/lib/converter/AcDbDxfConverter.js.map +1 -1
  10. package/lib/converter/AcDbEntitiyConverter.d.ts +12 -0
  11. package/lib/converter/AcDbEntitiyConverter.d.ts.map +1 -1
  12. package/lib/converter/AcDbEntitiyConverter.js +528 -3
  13. package/lib/converter/AcDbEntitiyConverter.js.map +1 -1
  14. package/lib/converter/AcDbObjectConverter.d.ts +10 -3
  15. package/lib/converter/AcDbObjectConverter.d.ts.map +1 -1
  16. package/lib/converter/AcDbObjectConverter.js +173 -1
  17. package/lib/converter/AcDbObjectConverter.js.map +1 -1
  18. package/lib/converter/AcDbRegenerator.d.ts.map +1 -1
  19. package/lib/converter/AcDbRegenerator.js +22 -4
  20. package/lib/converter/AcDbRegenerator.js.map +1 -1
  21. package/lib/database/AcDbBlockTableRecord.d.ts.map +1 -1
  22. package/lib/database/AcDbBlockTableRecord.js +1 -0
  23. package/lib/database/AcDbBlockTableRecord.js.map +1 -1
  24. package/lib/database/AcDbDatabase.d.ts +42 -0
  25. package/lib/database/AcDbDatabase.d.ts.map +1 -1
  26. package/lib/database/AcDbDatabase.js +250 -32
  27. package/lib/database/AcDbDatabase.js.map +1 -1
  28. package/lib/database/AcDbSysVarManager.d.ts.map +1 -1
  29. package/lib/database/AcDbSysVarManager.js +28 -1
  30. package/lib/database/AcDbSysVarManager.js.map +1 -1
  31. package/lib/database/AcDbSystemVariables.d.ts +7 -1
  32. package/lib/database/AcDbSystemVariables.d.ts.map +1 -1
  33. package/lib/database/AcDbSystemVariables.js +6 -0
  34. package/lib/database/AcDbSystemVariables.js.map +1 -1
  35. package/lib/entity/AcDbLeader.d.ts +32 -3
  36. package/lib/entity/AcDbLeader.d.ts.map +1 -1
  37. package/lib/entity/AcDbLeader.js +140 -10
  38. package/lib/entity/AcDbLeader.js.map +1 -1
  39. package/lib/entity/AcDbMLeader.d.ts +1092 -0
  40. package/lib/entity/AcDbMLeader.d.ts.map +1 -0
  41. package/lib/entity/AcDbMLeader.js +2553 -0
  42. package/lib/entity/AcDbMLeader.js.map +1 -0
  43. package/lib/entity/AcDbMLine.d.ts +670 -0
  44. package/lib/entity/AcDbMLine.d.ts.map +1 -0
  45. package/lib/entity/AcDbMLine.js +1510 -0
  46. package/lib/entity/AcDbMLine.js.map +1 -0
  47. package/lib/entity/dimension/AcDbDiametricDimension.d.ts +0 -33
  48. package/lib/entity/dimension/AcDbDiametricDimension.d.ts.map +1 -1
  49. package/lib/entity/dimension/AcDbDiametricDimension.js +0 -80
  50. package/lib/entity/dimension/AcDbDiametricDimension.js.map +1 -1
  51. package/lib/entity/dimension/AcDbDimension.d.ts +1 -9
  52. package/lib/entity/dimension/AcDbDimension.d.ts.map +1 -1
  53. package/lib/entity/dimension/AcDbDimension.js +0 -10
  54. package/lib/entity/dimension/AcDbDimension.js.map +1 -1
  55. package/lib/entity/dimension/AcDbRadialDimension.d.ts +0 -6
  56. package/lib/entity/dimension/AcDbRadialDimension.d.ts.map +1 -1
  57. package/lib/entity/dimension/AcDbRadialDimension.js +0 -8
  58. package/lib/entity/dimension/AcDbRadialDimension.js.map +1 -1
  59. package/lib/entity/index.d.ts +2 -0
  60. package/lib/entity/index.d.ts.map +1 -1
  61. package/lib/entity/index.js +2 -0
  62. package/lib/entity/index.js.map +1 -1
  63. package/lib/misc/AcDbConstants.d.ts +14 -0
  64. package/lib/misc/AcDbConstants.d.ts.map +1 -1
  65. package/lib/misc/AcDbConstants.js +14 -0
  66. package/lib/misc/AcDbConstants.js.map +1 -1
  67. package/lib/misc/AcDbMLeaderStyleColorCodec.d.ts +59 -0
  68. package/lib/misc/AcDbMLeaderStyleColorCodec.d.ts.map +1 -0
  69. package/lib/misc/AcDbMLeaderStyleColorCodec.js +101 -0
  70. package/lib/misc/AcDbMLeaderStyleColorCodec.js.map +1 -0
  71. package/lib/misc/index.d.ts +1 -0
  72. package/lib/misc/index.d.ts.map +1 -1
  73. package/lib/misc/index.js +1 -0
  74. package/lib/misc/index.js.map +1 -1
  75. package/lib/object/AcDbMLeaderStyle.d.ts +405 -0
  76. package/lib/object/AcDbMLeaderStyle.d.ts.map +1 -0
  77. package/lib/object/AcDbMLeaderStyle.js +1006 -0
  78. package/lib/object/AcDbMLeaderStyle.js.map +1 -0
  79. package/lib/object/AcDbMlineStyle.d.ts +58 -0
  80. package/lib/object/AcDbMlineStyle.d.ts.map +1 -0
  81. package/lib/object/AcDbMlineStyle.js +158 -0
  82. package/lib/object/AcDbMlineStyle.js.map +1 -0
  83. package/lib/object/index.d.ts +2 -0
  84. package/lib/object/index.d.ts.map +1 -1
  85. package/lib/object/index.js +2 -0
  86. package/lib/object/index.js.map +1 -1
  87. package/package.json +5 -5
@@ -0,0 +1,1006 @@
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 { AcCmColor, AcCmColorMethod } from '@mlightcad/common';
17
+ import { AcGeVector3d } from '@mlightcad/geometry-engine';
18
+ import { AcDbObject } from '../base/AcDbObject';
19
+ import { encodeMLeaderStyleRawColor } from '../misc';
20
+ /**
21
+ * Represents the nongraphical MLEADERSTYLE object.
22
+ *
23
+ * This class mirrors the core ObjectARX `AcDbMLeaderStyle` get/set API by
24
+ * exposing equivalent TypeScript properties.
25
+ */
26
+ var AcDbMLeaderStyle = /** @class */ (function (_super) {
27
+ __extends(AcDbMLeaderStyle, _super);
28
+ /**
29
+ * Creates an MLeader style with ObjectARX-compatible default values.
30
+ */
31
+ function AcDbMLeaderStyle() {
32
+ var _this = _super.call(this) || this;
33
+ _this._contentType = 2;
34
+ _this._drawMLeaderOrderType = 1;
35
+ _this._drawLeaderOrderType = 0;
36
+ _this._bitFlags = 0;
37
+ _this._maxLeaderSegmentsPoints = -1;
38
+ _this._firstSegmentAngleConstraint = 0;
39
+ _this._secondSegmentAngleConstraint = 0;
40
+ _this._leaderLineType = 1;
41
+ _this._leaderLineColor = new AcCmColor(AcCmColorMethod.ByLayer);
42
+ _this._leaderLineWeight = -2;
43
+ _this._enableLanding = true;
44
+ _this._landingGap = 2;
45
+ _this._enableDogleg = true;
46
+ _this._doglegLength = 8;
47
+ _this._description = '';
48
+ _this._arrowSize = 4;
49
+ _this._defaultMTextContents = '';
50
+ _this._textLeftAttachmentType = 1;
51
+ _this._textAngleType = 1;
52
+ _this._textAlignmentType = 0;
53
+ _this._textRightAttachmentType = 1;
54
+ _this._textColor = new AcCmColor(AcCmColorMethod.ByLayer);
55
+ _this._textHeight = 4;
56
+ _this._enableFrameText = false;
57
+ _this._textAlignAlwaysLeft = false;
58
+ _this._alignSpace = 0;
59
+ _this._blockColor = new AcCmColor(AcCmColorMethod.ByBlock);
60
+ _this._blockScale = new AcGeVector3d(1, 1, 1);
61
+ _this._enableBlockScale = true;
62
+ _this._blockRotation = 0;
63
+ _this._enableBlockRotation = false;
64
+ _this._blockConnectionType = 0;
65
+ _this._scale = 1;
66
+ _this._overwritePropChanged = false;
67
+ _this._annotative = false;
68
+ _this._breakSize = 0;
69
+ _this._textAttachmentDirection = 0;
70
+ _this._bottomTextAttachmentType = 9;
71
+ _this._topTextAttachmentType = 9;
72
+ _this._extendLeaderToText = false;
73
+ return _this;
74
+ }
75
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "unknown1", {
76
+ /**
77
+ * Gets the first undocumented raw style value.
78
+ */
79
+ get: function () {
80
+ return this._unknown1;
81
+ },
82
+ set: function (value) {
83
+ this._unknown1 = value;
84
+ },
85
+ enumerable: false,
86
+ configurable: true
87
+ });
88
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "contentType", {
89
+ /**
90
+ * Gets the content type.
91
+ */
92
+ get: function () {
93
+ return this._contentType;
94
+ },
95
+ set: function (value) {
96
+ this._contentType = value;
97
+ },
98
+ enumerable: false,
99
+ configurable: true
100
+ });
101
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "drawMLeaderOrderType", {
102
+ /**
103
+ * Gets the draw mleader order type.
104
+ */
105
+ get: function () {
106
+ return this._drawMLeaderOrderType;
107
+ },
108
+ set: function (value) {
109
+ this._drawMLeaderOrderType = value;
110
+ },
111
+ enumerable: false,
112
+ configurable: true
113
+ });
114
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "drawLeaderOrderType", {
115
+ /**
116
+ * Gets the draw leader order type.
117
+ */
118
+ get: function () {
119
+ return this._drawLeaderOrderType;
120
+ },
121
+ set: function (value) {
122
+ this._drawLeaderOrderType = value;
123
+ },
124
+ enumerable: false,
125
+ configurable: true
126
+ });
127
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "bitFlags", {
128
+ /**
129
+ * Gets the bit flags.
130
+ */
131
+ get: function () {
132
+ return this._bitFlags;
133
+ },
134
+ set: function (value) {
135
+ this._bitFlags = value;
136
+ },
137
+ enumerable: false,
138
+ configurable: true
139
+ });
140
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "maxLeaderSegmentsPoints", {
141
+ /**
142
+ * Gets the max leader segments points.
143
+ */
144
+ get: function () {
145
+ return this._maxLeaderSegmentsPoints;
146
+ },
147
+ set: function (value) {
148
+ this._maxLeaderSegmentsPoints = value;
149
+ },
150
+ enumerable: false,
151
+ configurable: true
152
+ });
153
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "maxLeaderSegmentPoints", {
154
+ /**
155
+ * Gets the legacy alias of `maxLeaderSegmentsPoints`.
156
+ */
157
+ get: function () {
158
+ return this.maxLeaderSegmentsPoints;
159
+ },
160
+ set: function (value) {
161
+ this.maxLeaderSegmentsPoints = value;
162
+ },
163
+ enumerable: false,
164
+ configurable: true
165
+ });
166
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "firstSegmentAngleConstraint", {
167
+ /**
168
+ * Gets the first segment angle constraint.
169
+ */
170
+ get: function () {
171
+ return this._firstSegmentAngleConstraint;
172
+ },
173
+ set: function (value) {
174
+ this._firstSegmentAngleConstraint = value;
175
+ },
176
+ enumerable: false,
177
+ configurable: true
178
+ });
179
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "secondSegmentAngleConstraint", {
180
+ /**
181
+ * Gets the second segment angle constraint.
182
+ */
183
+ get: function () {
184
+ return this._secondSegmentAngleConstraint;
185
+ },
186
+ set: function (value) {
187
+ this._secondSegmentAngleConstraint = value;
188
+ },
189
+ enumerable: false,
190
+ configurable: true
191
+ });
192
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "leaderLineType", {
193
+ /**
194
+ * Gets the leader line type.
195
+ */
196
+ get: function () {
197
+ return this._leaderLineType;
198
+ },
199
+ set: function (value) {
200
+ this._leaderLineType = value;
201
+ },
202
+ enumerable: false,
203
+ configurable: true
204
+ });
205
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "leaderLineColor", {
206
+ /**
207
+ * Gets the leader line color.
208
+ */
209
+ get: function () {
210
+ return this._leaderLineColor;
211
+ },
212
+ set: function (value) {
213
+ this._leaderLineColor.copy(value);
214
+ },
215
+ enumerable: false,
216
+ configurable: true
217
+ });
218
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "leaderLineTypeId", {
219
+ /**
220
+ * Gets the leader line type id.
221
+ */
222
+ get: function () {
223
+ return this._leaderLineTypeId;
224
+ },
225
+ set: function (value) {
226
+ this._leaderLineTypeId = value;
227
+ },
228
+ enumerable: false,
229
+ configurable: true
230
+ });
231
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "leaderLineWeight", {
232
+ /**
233
+ * Gets the leader line weight.
234
+ */
235
+ get: function () {
236
+ return this._leaderLineWeight;
237
+ },
238
+ set: function (value) {
239
+ this._leaderLineWeight = value;
240
+ },
241
+ enumerable: false,
242
+ configurable: true
243
+ });
244
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "enableLanding", {
245
+ /**
246
+ * Gets the enable landing.
247
+ */
248
+ get: function () {
249
+ return this._enableLanding;
250
+ },
251
+ set: function (value) {
252
+ this._enableLanding = value;
253
+ },
254
+ enumerable: false,
255
+ configurable: true
256
+ });
257
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "landingEnabled", {
258
+ /**
259
+ * Gets the alias of `enableLanding`.
260
+ */
261
+ get: function () {
262
+ return this.enableLanding;
263
+ },
264
+ set: function (value) {
265
+ this.enableLanding = value;
266
+ },
267
+ enumerable: false,
268
+ configurable: true
269
+ });
270
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "landingGap", {
271
+ /**
272
+ * Gets the landing gap.
273
+ */
274
+ get: function () {
275
+ return this._landingGap;
276
+ },
277
+ set: function (value) {
278
+ this._landingGap = value;
279
+ },
280
+ enumerable: false,
281
+ configurable: true
282
+ });
283
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "enableDogleg", {
284
+ /**
285
+ * Gets the enable dogleg.
286
+ */
287
+ get: function () {
288
+ return this._enableDogleg;
289
+ },
290
+ set: function (value) {
291
+ this._enableDogleg = value;
292
+ },
293
+ enumerable: false,
294
+ configurable: true
295
+ });
296
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "doglegEnabled", {
297
+ /**
298
+ * Gets the alias of `enableDogleg`.
299
+ */
300
+ get: function () {
301
+ return this.enableDogleg;
302
+ },
303
+ set: function (value) {
304
+ this.enableDogleg = value;
305
+ },
306
+ enumerable: false,
307
+ configurable: true
308
+ });
309
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "doglegLength", {
310
+ /**
311
+ * Gets the dogleg length.
312
+ */
313
+ get: function () {
314
+ return this._doglegLength;
315
+ },
316
+ set: function (value) {
317
+ this._doglegLength = value;
318
+ },
319
+ enumerable: false,
320
+ configurable: true
321
+ });
322
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "description", {
323
+ /**
324
+ * Gets the description.
325
+ */
326
+ get: function () {
327
+ return this._description;
328
+ },
329
+ set: function (value) {
330
+ this._description = value;
331
+ },
332
+ enumerable: false,
333
+ configurable: true
334
+ });
335
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "arrowSymbolId", {
336
+ /**
337
+ * Gets the arrow symbol id.
338
+ */
339
+ get: function () {
340
+ return this._arrowSymbolId;
341
+ },
342
+ set: function (value) {
343
+ this._arrowSymbolId = value;
344
+ },
345
+ enumerable: false,
346
+ configurable: true
347
+ });
348
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "arrowheadId", {
349
+ /**
350
+ * Gets the alias of `arrowSymbolId`.
351
+ */
352
+ get: function () {
353
+ return this.arrowSymbolId;
354
+ },
355
+ set: function (value) {
356
+ this.arrowSymbolId = value;
357
+ },
358
+ enumerable: false,
359
+ configurable: true
360
+ });
361
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "arrowSize", {
362
+ /**
363
+ * Gets the arrow size.
364
+ */
365
+ get: function () {
366
+ return this._arrowSize;
367
+ },
368
+ set: function (value) {
369
+ this._arrowSize = value;
370
+ },
371
+ enumerable: false,
372
+ configurable: true
373
+ });
374
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "arrowheadSize", {
375
+ /**
376
+ * Gets the alias of `arrowSize`.
377
+ */
378
+ get: function () {
379
+ return this.arrowSize;
380
+ },
381
+ set: function (value) {
382
+ this.arrowSize = value;
383
+ },
384
+ enumerable: false,
385
+ configurable: true
386
+ });
387
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "defaultMTextContents", {
388
+ /**
389
+ * Gets the default mtext contents.
390
+ */
391
+ get: function () {
392
+ return this._defaultMTextContents;
393
+ },
394
+ set: function (value) {
395
+ this._defaultMTextContents = value;
396
+ },
397
+ enumerable: false,
398
+ configurable: true
399
+ });
400
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "defaultMText", {
401
+ /**
402
+ * Gets the alias of `defaultMTextContents`.
403
+ */
404
+ get: function () {
405
+ return this.defaultMTextContents;
406
+ },
407
+ set: function (value) {
408
+ this.defaultMTextContents = value;
409
+ },
410
+ enumerable: false,
411
+ configurable: true
412
+ });
413
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "textString", {
414
+ /**
415
+ * Gets the alias of `defaultMTextContents`.
416
+ */
417
+ get: function () {
418
+ return this.defaultMTextContents;
419
+ },
420
+ set: function (value) {
421
+ this.defaultMTextContents = value;
422
+ },
423
+ enumerable: false,
424
+ configurable: true
425
+ });
426
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "textStyleId", {
427
+ /**
428
+ * Gets the text style id.
429
+ */
430
+ get: function () {
431
+ return this._textStyleId;
432
+ },
433
+ set: function (value) {
434
+ this._textStyleId = value;
435
+ },
436
+ enumerable: false,
437
+ configurable: true
438
+ });
439
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "textStyle", {
440
+ /**
441
+ * Gets the alias of `textStyleId`.
442
+ */
443
+ get: function () {
444
+ return this.textStyleId;
445
+ },
446
+ set: function (value) {
447
+ this.textStyleId = value;
448
+ },
449
+ enumerable: false,
450
+ configurable: true
451
+ });
452
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "textLeftAttachmentType", {
453
+ /**
454
+ * Gets the text left attachment type.
455
+ */
456
+ get: function () {
457
+ return this._textLeftAttachmentType;
458
+ },
459
+ set: function (value) {
460
+ this._textLeftAttachmentType = value;
461
+ },
462
+ enumerable: false,
463
+ configurable: true
464
+ });
465
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "textAngleType", {
466
+ /**
467
+ * Gets the text angle type.
468
+ */
469
+ get: function () {
470
+ return this._textAngleType;
471
+ },
472
+ set: function (value) {
473
+ this._textAngleType = value;
474
+ },
475
+ enumerable: false,
476
+ configurable: true
477
+ });
478
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "textAlignmentType", {
479
+ /**
480
+ * Gets the text alignment type.
481
+ */
482
+ get: function () {
483
+ return this._textAlignmentType;
484
+ },
485
+ set: function (value) {
486
+ this._textAlignmentType = value;
487
+ },
488
+ enumerable: false,
489
+ configurable: true
490
+ });
491
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "textRightAttachmentType", {
492
+ /**
493
+ * Gets the text right attachment type.
494
+ */
495
+ get: function () {
496
+ return this._textRightAttachmentType;
497
+ },
498
+ set: function (value) {
499
+ this._textRightAttachmentType = value;
500
+ },
501
+ enumerable: false,
502
+ configurable: true
503
+ });
504
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "textColor", {
505
+ /**
506
+ * Gets the text color.
507
+ */
508
+ get: function () {
509
+ return this._textColor;
510
+ },
511
+ set: function (value) {
512
+ this._textColor.copy(value);
513
+ },
514
+ enumerable: false,
515
+ configurable: true
516
+ });
517
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "textHeight", {
518
+ /**
519
+ * Gets the text height.
520
+ */
521
+ get: function () {
522
+ return this._textHeight;
523
+ },
524
+ set: function (value) {
525
+ this._textHeight = value;
526
+ },
527
+ enumerable: false,
528
+ configurable: true
529
+ });
530
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "enableFrameText", {
531
+ /**
532
+ * Gets the enable frame text.
533
+ */
534
+ get: function () {
535
+ return this._enableFrameText;
536
+ },
537
+ set: function (value) {
538
+ this._enableFrameText = value;
539
+ },
540
+ enumerable: false,
541
+ configurable: true
542
+ });
543
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "textFrameEnabled", {
544
+ /**
545
+ * Gets the alias of `enableFrameText`.
546
+ */
547
+ get: function () {
548
+ return this.enableFrameText;
549
+ },
550
+ set: function (value) {
551
+ this.enableFrameText = value;
552
+ },
553
+ enumerable: false,
554
+ configurable: true
555
+ });
556
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "textAlignAlwaysLeft", {
557
+ /**
558
+ * Gets the text align always left.
559
+ */
560
+ get: function () {
561
+ return this._textAlignAlwaysLeft;
562
+ },
563
+ set: function (value) {
564
+ this._textAlignAlwaysLeft = value;
565
+ },
566
+ enumerable: false,
567
+ configurable: true
568
+ });
569
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "alignSpace", {
570
+ /**
571
+ * Gets the align space.
572
+ */
573
+ get: function () {
574
+ return this._alignSpace;
575
+ },
576
+ set: function (value) {
577
+ this._alignSpace = value;
578
+ },
579
+ enumerable: false,
580
+ configurable: true
581
+ });
582
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "blockId", {
583
+ /**
584
+ * Gets the block id.
585
+ */
586
+ get: function () {
587
+ return this._blockId;
588
+ },
589
+ set: function (value) {
590
+ this._blockId = value;
591
+ },
592
+ enumerable: false,
593
+ configurable: true
594
+ });
595
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "blockContentId", {
596
+ /**
597
+ * Gets the alias of `blockId`.
598
+ */
599
+ get: function () {
600
+ return this.blockId;
601
+ },
602
+ set: function (value) {
603
+ this.blockId = value;
604
+ },
605
+ enumerable: false,
606
+ configurable: true
607
+ });
608
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "blockColor", {
609
+ /**
610
+ * Gets the block color.
611
+ */
612
+ get: function () {
613
+ return this._blockColor;
614
+ },
615
+ set: function (value) {
616
+ this._blockColor.copy(value);
617
+ },
618
+ enumerable: false,
619
+ configurable: true
620
+ });
621
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "blockContentColor", {
622
+ /**
623
+ * Gets the alias of `blockColor`.
624
+ */
625
+ get: function () {
626
+ return this.blockColor;
627
+ },
628
+ set: function (value) {
629
+ this.blockColor = value;
630
+ },
631
+ enumerable: false,
632
+ configurable: true
633
+ });
634
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "blockScale", {
635
+ /**
636
+ * Gets the block scale.
637
+ */
638
+ get: function () {
639
+ return this._blockScale.clone();
640
+ },
641
+ set: function (value) {
642
+ this._blockScale.copy(value);
643
+ },
644
+ enumerable: false,
645
+ configurable: true
646
+ });
647
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "blockContentScale", {
648
+ /**
649
+ * Gets the alias of `blockScale`.
650
+ */
651
+ get: function () {
652
+ return this.blockScale;
653
+ },
654
+ set: function (value) {
655
+ this.blockScale = value;
656
+ },
657
+ enumerable: false,
658
+ configurable: true
659
+ });
660
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "enableBlockScale", {
661
+ /**
662
+ * Gets the enable block scale.
663
+ */
664
+ get: function () {
665
+ return this._enableBlockScale;
666
+ },
667
+ set: function (value) {
668
+ this._enableBlockScale = value;
669
+ },
670
+ enumerable: false,
671
+ configurable: true
672
+ });
673
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "blockContentScaleEnabled", {
674
+ /**
675
+ * Gets the alias of `enableBlockScale`.
676
+ */
677
+ get: function () {
678
+ return this.enableBlockScale;
679
+ },
680
+ set: function (value) {
681
+ this.enableBlockScale = value;
682
+ },
683
+ enumerable: false,
684
+ configurable: true
685
+ });
686
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "blockRotation", {
687
+ /**
688
+ * Gets the block rotation.
689
+ */
690
+ get: function () {
691
+ return this._blockRotation;
692
+ },
693
+ set: function (value) {
694
+ this._blockRotation = value;
695
+ },
696
+ enumerable: false,
697
+ configurable: true
698
+ });
699
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "blockContentRotation", {
700
+ /**
701
+ * Gets the alias of `blockRotation`.
702
+ */
703
+ get: function () {
704
+ return this.blockRotation;
705
+ },
706
+ set: function (value) {
707
+ this.blockRotation = value;
708
+ },
709
+ enumerable: false,
710
+ configurable: true
711
+ });
712
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "enableBlockRotation", {
713
+ /**
714
+ * Gets the enable block rotation.
715
+ */
716
+ get: function () {
717
+ return this._enableBlockRotation;
718
+ },
719
+ set: function (value) {
720
+ this._enableBlockRotation = value;
721
+ },
722
+ enumerable: false,
723
+ configurable: true
724
+ });
725
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "blockContentRotationEnabled", {
726
+ /**
727
+ * Gets the alias of `enableBlockRotation`.
728
+ */
729
+ get: function () {
730
+ return this.enableBlockRotation;
731
+ },
732
+ set: function (value) {
733
+ this.enableBlockRotation = value;
734
+ },
735
+ enumerable: false,
736
+ configurable: true
737
+ });
738
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "blockConnectionType", {
739
+ /**
740
+ * Gets the block connection type.
741
+ */
742
+ get: function () {
743
+ return this._blockConnectionType;
744
+ },
745
+ set: function (value) {
746
+ this._blockConnectionType = value;
747
+ },
748
+ enumerable: false,
749
+ configurable: true
750
+ });
751
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "blockContentConnectionType", {
752
+ /**
753
+ * Gets the alias of `blockConnectionType`.
754
+ */
755
+ get: function () {
756
+ return this.blockConnectionType;
757
+ },
758
+ set: function (value) {
759
+ this.blockConnectionType = value;
760
+ },
761
+ enumerable: false,
762
+ configurable: true
763
+ });
764
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "scale", {
765
+ /**
766
+ * Gets the scale.
767
+ */
768
+ get: function () {
769
+ return this._scale;
770
+ },
771
+ set: function (value) {
772
+ this._scale = value;
773
+ },
774
+ enumerable: false,
775
+ configurable: true
776
+ });
777
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "scaleFactor", {
778
+ /**
779
+ * Gets the alias of `scale`.
780
+ */
781
+ get: function () {
782
+ return this.scale;
783
+ },
784
+ set: function (value) {
785
+ this.scale = value;
786
+ },
787
+ enumerable: false,
788
+ configurable: true
789
+ });
790
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "overwritePropChanged", {
791
+ /**
792
+ * Gets the overwrite prop changed.
793
+ */
794
+ get: function () {
795
+ return this._overwritePropChanged;
796
+ },
797
+ set: function (value) {
798
+ this._overwritePropChanged = value;
799
+ },
800
+ enumerable: false,
801
+ configurable: true
802
+ });
803
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "overwritePropertyValue", {
804
+ /**
805
+ * Gets the alias of `overwritePropChanged`.
806
+ */
807
+ get: function () {
808
+ return this.overwritePropChanged;
809
+ },
810
+ set: function (value) {
811
+ this.overwritePropChanged = value;
812
+ },
813
+ enumerable: false,
814
+ configurable: true
815
+ });
816
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "annotative", {
817
+ /**
818
+ * Gets the annotative.
819
+ */
820
+ get: function () {
821
+ return this._annotative;
822
+ },
823
+ set: function (value) {
824
+ this._annotative = value;
825
+ },
826
+ enumerable: false,
827
+ configurable: true
828
+ });
829
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "breakSize", {
830
+ /**
831
+ * Gets the break size.
832
+ */
833
+ get: function () {
834
+ return this._breakSize;
835
+ },
836
+ set: function (value) {
837
+ this._breakSize = value;
838
+ },
839
+ enumerable: false,
840
+ configurable: true
841
+ });
842
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "breakGapSize", {
843
+ /**
844
+ * Gets the alias of `breakSize`.
845
+ */
846
+ get: function () {
847
+ return this.breakSize;
848
+ },
849
+ set: function (value) {
850
+ this.breakSize = value;
851
+ },
852
+ enumerable: false,
853
+ configurable: true
854
+ });
855
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "textAttachmentDirection", {
856
+ /**
857
+ * Gets the text attachment direction.
858
+ */
859
+ get: function () {
860
+ return this._textAttachmentDirection;
861
+ },
862
+ set: function (value) {
863
+ this._textAttachmentDirection = value;
864
+ },
865
+ enumerable: false,
866
+ configurable: true
867
+ });
868
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "bottomTextAttachmentType", {
869
+ /**
870
+ * Gets the bottom text attachment type.
871
+ */
872
+ get: function () {
873
+ return this._bottomTextAttachmentType;
874
+ },
875
+ set: function (value) {
876
+ this._bottomTextAttachmentType = value;
877
+ },
878
+ enumerable: false,
879
+ configurable: true
880
+ });
881
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "bottomTextAttachmentDirection", {
882
+ /**
883
+ * Gets the alias of `bottomTextAttachmentType`.
884
+ */
885
+ get: function () {
886
+ return this.bottomTextAttachmentType;
887
+ },
888
+ set: function (value) {
889
+ this.bottomTextAttachmentType = value;
890
+ },
891
+ enumerable: false,
892
+ configurable: true
893
+ });
894
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "topTextAttachmentType", {
895
+ /**
896
+ * Gets the top text attachment type.
897
+ */
898
+ get: function () {
899
+ return this._topTextAttachmentType;
900
+ },
901
+ set: function (value) {
902
+ this._topTextAttachmentType = value;
903
+ },
904
+ enumerable: false,
905
+ configurable: true
906
+ });
907
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "topTextAttachmentDirection", {
908
+ /**
909
+ * Gets the alias of `topTextAttachmentType`.
910
+ */
911
+ get: function () {
912
+ return this.topTextAttachmentType;
913
+ },
914
+ set: function (value) {
915
+ this.topTextAttachmentType = value;
916
+ },
917
+ enumerable: false,
918
+ configurable: true
919
+ });
920
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "extendLeaderToText", {
921
+ /**
922
+ * Gets the extend leader to text.
923
+ */
924
+ get: function () {
925
+ return this._extendLeaderToText;
926
+ },
927
+ set: function (value) {
928
+ this._extendLeaderToText = value;
929
+ },
930
+ enumerable: false,
931
+ configurable: true
932
+ });
933
+ Object.defineProperty(AcDbMLeaderStyle.prototype, "unknown2", {
934
+ /**
935
+ * Gets the second undocumented raw style value.
936
+ */
937
+ get: function () {
938
+ return this._unknown2;
939
+ },
940
+ set: function (value) {
941
+ this._unknown2 = value;
942
+ },
943
+ enumerable: false,
944
+ configurable: true
945
+ });
946
+ /**
947
+ * Writes this MLeaderStyle object to DXF fields.
948
+ *
949
+ * @param filer DXF filer that receives serialized group codes.
950
+ * @returns The current style instance for chaining.
951
+ */
952
+ AcDbMLeaderStyle.prototype.dxfOutFields = function (filer) {
953
+ _super.prototype.dxfOutFields.call(this, filer);
954
+ filer.writeSubclassMarker('AcDbMLeaderStyle');
955
+ filer.writeInt16(179, this.unknown1);
956
+ filer.writeInt16(170, this.contentType);
957
+ filer.writeInt16(171, this.drawMLeaderOrderType);
958
+ filer.writeInt16(172, this.drawLeaderOrderType);
959
+ filer.writeInt32(90, this.maxLeaderSegmentsPoints);
960
+ filer.writeDouble(40, this.firstSegmentAngleConstraint);
961
+ filer.writeDouble(41, this.secondSegmentAngleConstraint);
962
+ filer.writeInt16(173, this.leaderLineType);
963
+ filer.writeInt32(91, encodeMLeaderStyleRawColor(this.leaderLineColor));
964
+ filer.writeHandle(340, this.leaderLineTypeId);
965
+ filer.writeInt32(92, this.leaderLineWeight);
966
+ filer.writeBoolean(290, this.enableLanding);
967
+ filer.writeDouble(42, this.landingGap);
968
+ filer.writeBoolean(291, this.enableDogleg);
969
+ filer.writeDouble(43, this.doglegLength);
970
+ filer.writeString(3, this.description);
971
+ filer.writeHandle(341, this.arrowSymbolId);
972
+ filer.writeDouble(44, this.arrowSize);
973
+ filer.writeString(300, this.defaultMTextContents);
974
+ filer.writeHandle(342, this.textStyleId);
975
+ filer.writeInt16(174, this.textLeftAttachmentType);
976
+ filer.writeInt16(175, this.textAngleType);
977
+ filer.writeInt16(176, this.textAlignmentType);
978
+ filer.writeInt16(178, this.textRightAttachmentType);
979
+ filer.writeInt32(93, encodeMLeaderStyleRawColor(this.textColor));
980
+ filer.writeDouble(45, this.textHeight);
981
+ filer.writeBoolean(292, this.enableFrameText);
982
+ filer.writeBoolean(297, this.textAlignAlwaysLeft);
983
+ filer.writeDouble(46, this.alignSpace);
984
+ filer.writeHandle(343, this.blockId);
985
+ filer.writeInt32(94, encodeMLeaderStyleRawColor(this.blockColor));
986
+ filer.writeDouble(47, this._blockScale.x);
987
+ filer.writeDouble(49, this._blockScale.y);
988
+ filer.writeDouble(140, this._blockScale.z);
989
+ filer.writeBoolean(293, this.enableBlockScale);
990
+ filer.writeDouble(141, this.blockRotation);
991
+ filer.writeBoolean(294, this.enableBlockRotation);
992
+ filer.writeInt16(177, this.blockConnectionType);
993
+ filer.writeDouble(142, this.scale);
994
+ filer.writeBoolean(295, this.overwritePropChanged);
995
+ filer.writeBoolean(296, this.annotative);
996
+ filer.writeDouble(143, this.breakSize);
997
+ filer.writeInt16(271, this.textAttachmentDirection);
998
+ filer.writeInt16(272, this.bottomTextAttachmentType);
999
+ filer.writeInt16(273, this.topTextAttachmentType);
1000
+ filer.writeBoolean(298, this.unknown2);
1001
+ return this;
1002
+ };
1003
+ return AcDbMLeaderStyle;
1004
+ }(AcDbObject));
1005
+ export { AcDbMLeaderStyle };
1006
+ //# sourceMappingURL=AcDbMLeaderStyle.js.map