@mlightcad/cad-simple-viewer 1.0.21 → 1.0.22
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/dist/index.js +440 -629
- package/dist/index.umd.cjs +9 -9
- package/lib/app/AcApDocManager.d.ts +7 -17
- package/lib/app/AcApDocManager.d.ts.map +1 -1
- package/lib/app/AcApDocManager.js +12 -33
- package/lib/app/AcApDocManager.js.map +1 -1
- package/package.json +3 -3
- package/lib/app/AcApDocCreator.d.ts +0 -83
- package/lib/app/AcApDocCreator.d.ts.map +0 -1
- package/lib/app/AcApDocCreator.js +0 -205
- package/lib/app/AcApDocCreator.js.map +0 -1
|
@@ -154,14 +154,6 @@ export declare class AcApDocManager {
|
|
|
154
154
|
* @see {@link createExampleDoc} - Method that uses this for example document creation
|
|
155
155
|
*/
|
|
156
156
|
loadDefaultFonts(fonts?: string[]): Promise<void>;
|
|
157
|
-
/**
|
|
158
|
-
* Creates an example CAD document with sample content.
|
|
159
|
-
*
|
|
160
|
-
* This method asynchronously loads default fonts, creates example drawing content,
|
|
161
|
-
* sets up layout information, and zooms the view to fit the content.
|
|
162
|
-
* The creation is performed after a short delay to ensure proper initialization.
|
|
163
|
-
*/
|
|
164
|
-
createExampleDoc(): void;
|
|
165
157
|
/**
|
|
166
158
|
* Opens a CAD document from a URL.
|
|
167
159
|
*
|
|
@@ -230,6 +222,13 @@ export declare class AcApDocManager {
|
|
|
230
222
|
* ```
|
|
231
223
|
*/
|
|
232
224
|
sendStringToExecute(cmdStr: string): void;
|
|
225
|
+
/**
|
|
226
|
+
* Configures layout information for the current view.
|
|
227
|
+
*
|
|
228
|
+
* Sets up the active layout block table record ID and model space block table
|
|
229
|
+
* record ID based on the current document's space configuration.
|
|
230
|
+
*/
|
|
231
|
+
setActiveLayout(): void;
|
|
233
232
|
/**
|
|
234
233
|
* Performs cleanup operations before opening a new document.
|
|
235
234
|
*
|
|
@@ -262,14 +261,5 @@ export declare class AcApDocManager {
|
|
|
262
261
|
* @private
|
|
263
262
|
*/
|
|
264
263
|
private setOptions;
|
|
265
|
-
/**
|
|
266
|
-
* Configures layout information for the current view.
|
|
267
|
-
*
|
|
268
|
-
* This private method sets up the active layout block table record ID and
|
|
269
|
-
* model space block table record ID based on the current document's space configuration.
|
|
270
|
-
*
|
|
271
|
-
* @private
|
|
272
|
-
*/
|
|
273
|
-
private setLayoutInfo;
|
|
274
264
|
}
|
|
275
265
|
//# sourceMappingURL=AcApDocManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcApDocManager.d.ts","sourceRoot":"","sources":["../../src/app/AcApDocManager.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAEhB,uBAAuB,EAExB,MAAM,uBAAuB,CAAA;AAa9B,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"AcApDocManager.d.ts","sourceRoot":"","sources":["../../src/app/AcApDocManager.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAEhB,uBAAuB,EAExB,MAAM,uBAAuB,CAAA;AAa9B,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAG7C;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,yCAAyC;IACzC,GAAG,EAAE,YAAY,CAAA;CAClB;AAED;;;;;;;;;;;GAWG;AACH,qBAAa,cAAc;IACzB,gEAAgE;IAChE,OAAO,CAAC,QAAQ,CAAa;IAC7B,8CAA8C;IAC9C,OAAO,CAAC,WAAW,CAAgB;IACnC,yBAAyB;IACzB,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAAgB;IAEzC,6CAA6C;IAC7C,SAAgB,MAAM;QACpB,2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cApSelectCm
|
|
|
39
39
|
import { eventBus } from '../editor';
|
|
40
40
|
import { AcTrView2d } from '../view';
|
|
41
41
|
import { AcApContext } from './AcApContext';
|
|
42
|
-
import { AcApDocCreator } from './AcApDocCreator';
|
|
43
42
|
import { AcApDocument } from './AcApDocument';
|
|
44
43
|
import { AcApFontLoader } from './AcApFontLoader';
|
|
45
44
|
/**
|
|
@@ -283,24 +282,6 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
283
282
|
});
|
|
284
283
|
});
|
|
285
284
|
};
|
|
286
|
-
/**
|
|
287
|
-
* Creates an example CAD document with sample content.
|
|
288
|
-
*
|
|
289
|
-
* This method asynchronously loads default fonts, creates example drawing content,
|
|
290
|
-
* sets up layout information, and zooms the view to fit the content.
|
|
291
|
-
* The creation is performed after a short delay to ensure proper initialization.
|
|
292
|
-
*/
|
|
293
|
-
AcApDocManager.prototype.createExampleDoc = function () {
|
|
294
|
-
var _this = this;
|
|
295
|
-
setTimeout(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
296
|
-
return __generator(this, function (_a) {
|
|
297
|
-
AcApDocCreator.instance.createExampleDoc2(this.curDocument.database);
|
|
298
|
-
this.setLayoutInfo();
|
|
299
|
-
this.curView.zoomToFit();
|
|
300
|
-
return [2 /*return*/];
|
|
301
|
-
});
|
|
302
|
-
}); });
|
|
303
|
-
};
|
|
304
285
|
/**
|
|
305
286
|
* Opens a CAD document from a URL.
|
|
306
287
|
*
|
|
@@ -414,6 +395,17 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
414
395
|
var cmd = register.lookupGlobalCmd(cmdStr);
|
|
415
396
|
cmd === null || cmd === void 0 ? void 0 : cmd.execute(this.context);
|
|
416
397
|
};
|
|
398
|
+
/**
|
|
399
|
+
* Configures layout information for the current view.
|
|
400
|
+
*
|
|
401
|
+
* Sets up the active layout block table record ID and model space block table
|
|
402
|
+
* record ID based on the current document's space configuration.
|
|
403
|
+
*/
|
|
404
|
+
AcApDocManager.prototype.setActiveLayout = function () {
|
|
405
|
+
var currentView = this.curView;
|
|
406
|
+
currentView.activeLayoutBtrId = this.curDocument.database.currentSpaceId;
|
|
407
|
+
currentView.modelSpaceBtrId = this.curDocument.database.currentSpaceId;
|
|
408
|
+
};
|
|
417
409
|
/**
|
|
418
410
|
* Performs cleanup operations before opening a new document.
|
|
419
411
|
*
|
|
@@ -439,7 +431,7 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
439
431
|
if (isSuccess) {
|
|
440
432
|
var doc = this.context.doc;
|
|
441
433
|
this.events.documentActivated.dispatch({ doc: doc });
|
|
442
|
-
this.
|
|
434
|
+
this.setActiveLayout();
|
|
443
435
|
var db = doc.database;
|
|
444
436
|
this.curView.zoomTo(new AcGeBox2d(db.extmin, db.extmax));
|
|
445
437
|
}
|
|
@@ -464,19 +456,6 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
464
456
|
}
|
|
465
457
|
return options;
|
|
466
458
|
};
|
|
467
|
-
/**
|
|
468
|
-
* Configures layout information for the current view.
|
|
469
|
-
*
|
|
470
|
-
* This private method sets up the active layout block table record ID and
|
|
471
|
-
* model space block table record ID based on the current document's space configuration.
|
|
472
|
-
*
|
|
473
|
-
* @private
|
|
474
|
-
*/
|
|
475
|
-
AcApDocManager.prototype.setLayoutInfo = function () {
|
|
476
|
-
var currentView = this.curView;
|
|
477
|
-
currentView.activeLayoutBtrId = this.curDocument.database.currentSpaceId;
|
|
478
|
-
currentView.modelSpaceBtrId = this.curDocument.database.currentSpaceId;
|
|
479
|
-
};
|
|
480
459
|
return AcApDocManager;
|
|
481
460
|
}());
|
|
482
461
|
export { AcApDocManager };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcApDocManager.js","sourceRoot":"","sources":["../../src/app/AcApDocManager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EACL,gBAAgB,EAChB,2BAA2B,EAE3B,SAAS,EACV,MAAM,uBAAuB,CAA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,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAA;YAC5B,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,QAAQ,CAAC,EAAE,GAAG,KAAA,EAAE,CAAC,CAAA;YAC/C,IAAI,CAAC,eAAe,EAAE,CAAA;YACtB,IAAM,EAAE,GAAG,GAAG,CAAC,QAAQ,CAAA;YACvB,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAA;QAC1D,CAAC;IACH,CAAC;IAED;;;;;;;;;;OAUG;IACK,mCAAU,GAAlB,UAAmB,OAAiC;QAClD,IAAI,OAAO,IAAI,IAAI,EAAE,CAAC;YACpB,OAAO,GAAG,EAAE,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE,CAAA;QAC5C,CAAC;aAAM,IAAI,OAAO,CAAC,UAAU,IAAI,IAAI,EAAE,CAAC;YACtC,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC,WAAW,CAAA;QACvC,CAAC;QACD,OAAO,OAAO,CAAA;IAChB,CAAC;IACH,qBAAC;AAAD,CAAC,AApZD,IAoZC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mlightcad/cad-simple-viewer",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.22",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"@types/lodash-es": "^4.17.12",
|
|
38
38
|
"@types/rbush": "^3.0.4",
|
|
39
39
|
"@types/three": "^0.172.0",
|
|
40
|
-
"@mlightcad/
|
|
41
|
-
"@mlightcad/
|
|
40
|
+
"@mlightcad/svg-renderer": "0.0.16",
|
|
41
|
+
"@mlightcad/three-renderer": "1.0.17"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@mlightcad/libredwg-converter": "3.0.9",
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { AcDbDatabase } from '@mlightcad/data-model';
|
|
2
|
-
/**
|
|
3
|
-
* Factory class for creating example CAD documents with predefined content.
|
|
4
|
-
*
|
|
5
|
-
* This utility class provides methods to generate sample CAD drawings for
|
|
6
|
-
* testing, demonstration, or initial document templates. It creates various
|
|
7
|
-
* types of CAD entities including:
|
|
8
|
-
* - Geometric shapes (arcs, lines, hatches)
|
|
9
|
-
* - Text elements (MText with formatting)
|
|
10
|
-
* - Text styles and formatting
|
|
11
|
-
*
|
|
12
|
-
* The class follows a singleton pattern to ensure consistent example
|
|
13
|
-
* data generation across the application.
|
|
14
|
-
*
|
|
15
|
-
* @internal This class is for internal use by the framework
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```typescript
|
|
19
|
-
* const creator = AcApDocCreator.instance;
|
|
20
|
-
* const database = new AcDbDatabase();
|
|
21
|
-
*
|
|
22
|
-
* // Create example document with various entities
|
|
23
|
-
* creator.createExampleDoc2(database);
|
|
24
|
-
*
|
|
25
|
-
* // The database now contains sample lines, arcs, hatches, and text
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
export declare class AcApDocCreator {
|
|
29
|
-
/** Singleton instance */
|
|
30
|
-
private static _instance?;
|
|
31
|
-
/**
|
|
32
|
-
* Gets the singleton instance of the document creator.
|
|
33
|
-
*
|
|
34
|
-
* @returns The singleton AcApDocCreator instance
|
|
35
|
-
*/
|
|
36
|
-
static get instance(): AcApDocCreator;
|
|
37
|
-
/**
|
|
38
|
-
* Creates a simple example document with circular hatches.
|
|
39
|
-
*
|
|
40
|
-
* This method generates a 2x2 grid of circular hatched areas,
|
|
41
|
-
* useful for testing hatch rendering and basic geometry display.
|
|
42
|
-
*
|
|
43
|
-
* @param db - The database to add the example entities to
|
|
44
|
-
*
|
|
45
|
-
* @example
|
|
46
|
-
* ```typescript
|
|
47
|
-
* const creator = AcApDocCreator.instance;
|
|
48
|
-
* const database = new AcDbDatabase();
|
|
49
|
-
* creator.createExampleDoc1(database);
|
|
50
|
-
* // Database now contains 4 circular hatches in a grid
|
|
51
|
-
* ```
|
|
52
|
-
*/
|
|
53
|
-
createExampleDoc1(db: AcDbDatabase): void;
|
|
54
|
-
/**
|
|
55
|
-
* Creates a comprehensive example document with various CAD entities.
|
|
56
|
-
*
|
|
57
|
-
* This method generates a more complex document containing:
|
|
58
|
-
* - Arcs and lines forming geometric shapes
|
|
59
|
-
* - Complex hatches with boundary loops
|
|
60
|
-
* - Formatted text (MText) with Chinese characters
|
|
61
|
-
* - Custom text styles
|
|
62
|
-
*
|
|
63
|
-
* This example is useful for testing complex rendering scenarios,
|
|
64
|
-
* text handling, and international character support.
|
|
65
|
-
*
|
|
66
|
-
* @param db - The database to add the example entities to
|
|
67
|
-
*
|
|
68
|
-
* @example
|
|
69
|
-
* ```typescript
|
|
70
|
-
* const creator = AcApDocCreator.instance;
|
|
71
|
-
* const database = new AcDbDatabase();
|
|
72
|
-
* creator.createExampleDoc2(database);
|
|
73
|
-
* // Database now contains arcs, lines, hatches, and formatted text
|
|
74
|
-
* ```
|
|
75
|
-
*/
|
|
76
|
-
createExampleDoc2(db: AcDbDatabase): void;
|
|
77
|
-
private createTextStyle;
|
|
78
|
-
private createMText;
|
|
79
|
-
private createHatch;
|
|
80
|
-
private createArc;
|
|
81
|
-
private createLines;
|
|
82
|
-
}
|
|
83
|
-
//# sourceMappingURL=AcApDocCreator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AcApDocCreator.d.ts","sourceRoot":"","sources":["../../src/app/AcApDocCreator.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAcb,MAAM,uBAAuB,CAAA;AAI9B;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,qBAAa,cAAc;IACzB,yBAAyB;IACzB,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAAgB;IAEzC;;;;OAIG;IACH,MAAM,KAAK,QAAQ,mBAKlB;IAED;;;;;;;;;;;;;;;OAeG;IACH,iBAAiB,CAAC,EAAE,EAAE,YAAY;IAgBlC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,iBAAiB,CAAC,EAAE,EAAE,YAAY;IAelC,OAAO,CAAC,eAAe;IAiBvB,OAAO,CAAC,WAAW;IAanB,OAAO,CAAC,WAAW;IAoBnB,OAAO,CAAC,SAAS;IASjB,OAAO,CAAC,WAAW;CA0EpB"}
|
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
import { AcCmColor, AcDbArc, AcDbHatch, AcDbLine, AcDbMText, AcDbTextStyleTableRecord, AcGeCircArc2d, AcGeLine2d, AcGeLine3d, AcGeLoop2d, AcGeMathUtil, AcGePoint3d, AcGePolyline2d, AcGiMTextAttachmentPoint } from '@mlightcad/data-model';
|
|
2
|
-
var DEFAULT_FONT = 'simsun';
|
|
3
|
-
/**
|
|
4
|
-
* Factory class for creating example CAD documents with predefined content.
|
|
5
|
-
*
|
|
6
|
-
* This utility class provides methods to generate sample CAD drawings for
|
|
7
|
-
* testing, demonstration, or initial document templates. It creates various
|
|
8
|
-
* types of CAD entities including:
|
|
9
|
-
* - Geometric shapes (arcs, lines, hatches)
|
|
10
|
-
* - Text elements (MText with formatting)
|
|
11
|
-
* - Text styles and formatting
|
|
12
|
-
*
|
|
13
|
-
* The class follows a singleton pattern to ensure consistent example
|
|
14
|
-
* data generation across the application.
|
|
15
|
-
*
|
|
16
|
-
* @internal This class is for internal use by the framework
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```typescript
|
|
20
|
-
* const creator = AcApDocCreator.instance;
|
|
21
|
-
* const database = new AcDbDatabase();
|
|
22
|
-
*
|
|
23
|
-
* // Create example document with various entities
|
|
24
|
-
* creator.createExampleDoc2(database);
|
|
25
|
-
*
|
|
26
|
-
* // The database now contains sample lines, arcs, hatches, and text
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
var AcApDocCreator = /** @class */ (function () {
|
|
30
|
-
function AcApDocCreator() {
|
|
31
|
-
}
|
|
32
|
-
Object.defineProperty(AcApDocCreator, "instance", {
|
|
33
|
-
/**
|
|
34
|
-
* Gets the singleton instance of the document creator.
|
|
35
|
-
*
|
|
36
|
-
* @returns The singleton AcApDocCreator instance
|
|
37
|
-
*/
|
|
38
|
-
get: function () {
|
|
39
|
-
if (!AcApDocCreator._instance) {
|
|
40
|
-
AcApDocCreator._instance = new AcApDocCreator();
|
|
41
|
-
}
|
|
42
|
-
return AcApDocCreator._instance;
|
|
43
|
-
},
|
|
44
|
-
enumerable: false,
|
|
45
|
-
configurable: true
|
|
46
|
-
});
|
|
47
|
-
/**
|
|
48
|
-
* Creates a simple example document with circular hatches.
|
|
49
|
-
*
|
|
50
|
-
* This method generates a 2x2 grid of circular hatched areas,
|
|
51
|
-
* useful for testing hatch rendering and basic geometry display.
|
|
52
|
-
*
|
|
53
|
-
* @param db - The database to add the example entities to
|
|
54
|
-
*
|
|
55
|
-
* @example
|
|
56
|
-
* ```typescript
|
|
57
|
-
* const creator = AcApDocCreator.instance;
|
|
58
|
-
* const database = new AcDbDatabase();
|
|
59
|
-
* creator.createExampleDoc1(database);
|
|
60
|
-
* // Database now contains 4 circular hatches in a grid
|
|
61
|
-
* ```
|
|
62
|
-
*/
|
|
63
|
-
AcApDocCreator.prototype.createExampleDoc1 = function (db) {
|
|
64
|
-
var rowCount = 2;
|
|
65
|
-
var colCount = 2;
|
|
66
|
-
for (var i = 0; i < rowCount; ++i) {
|
|
67
|
-
for (var j = 0; j < colCount; ++j) {
|
|
68
|
-
var hatch = new AcDbHatch();
|
|
69
|
-
var circle = new AcGePolyline2d();
|
|
70
|
-
circle.addVertexAt(0, { x: j * 100, y: i * 100, bulge: 1 });
|
|
71
|
-
circle.addVertexAt(1, { x: j * 100 + 100, y: i * 100, bulge: 1 });
|
|
72
|
-
circle.closed = true;
|
|
73
|
-
hatch.add(circle);
|
|
74
|
-
db.tables.blockTable.modelSpace.appendEntity(hatch);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
/**
|
|
79
|
-
* Creates a comprehensive example document with various CAD entities.
|
|
80
|
-
*
|
|
81
|
-
* This method generates a more complex document containing:
|
|
82
|
-
* - Arcs and lines forming geometric shapes
|
|
83
|
-
* - Complex hatches with boundary loops
|
|
84
|
-
* - Formatted text (MText) with Chinese characters
|
|
85
|
-
* - Custom text styles
|
|
86
|
-
*
|
|
87
|
-
* This example is useful for testing complex rendering scenarios,
|
|
88
|
-
* text handling, and international character support.
|
|
89
|
-
*
|
|
90
|
-
* @param db - The database to add the example entities to
|
|
91
|
-
*
|
|
92
|
-
* @example
|
|
93
|
-
* ```typescript
|
|
94
|
-
* const creator = AcApDocCreator.instance;
|
|
95
|
-
* const database = new AcDbDatabase();
|
|
96
|
-
* creator.createExampleDoc2(database);
|
|
97
|
-
* // Database now contains arcs, lines, hatches, and formatted text
|
|
98
|
-
* ```
|
|
99
|
-
*/
|
|
100
|
-
AcApDocCreator.prototype.createExampleDoc2 = function (db) {
|
|
101
|
-
var modelSpace = db.tables.blockTable.modelSpace;
|
|
102
|
-
modelSpace.appendEntity(this.createArc());
|
|
103
|
-
var lines = this.createLines();
|
|
104
|
-
lines.forEach(function (line) {
|
|
105
|
-
db.tables.blockTable.modelSpace.appendEntity(new AcDbLine(line.startPoint, line.endPoint));
|
|
106
|
-
});
|
|
107
|
-
modelSpace.appendEntity(this.createHatch());
|
|
108
|
-
db.tables.textStyleTable.add(this.createTextStyle());
|
|
109
|
-
modelSpace.appendEntity(this.createMText());
|
|
110
|
-
};
|
|
111
|
-
AcApDocCreator.prototype.createTextStyle = function () {
|
|
112
|
-
var textStyle = {
|
|
113
|
-
bigFont: '',
|
|
114
|
-
color: 0xffffff,
|
|
115
|
-
extendedFont: DEFAULT_FONT,
|
|
116
|
-
fixedTextHeight: 0,
|
|
117
|
-
font: DEFAULT_FONT,
|
|
118
|
-
lastHeight: 0.2,
|
|
119
|
-
name: 'Standard',
|
|
120
|
-
obliqueAngle: 0,
|
|
121
|
-
standardFlag: 0,
|
|
122
|
-
textGenerationFlag: 0,
|
|
123
|
-
widthFactor: 0.667
|
|
124
|
-
};
|
|
125
|
-
return new AcDbTextStyleTableRecord(textStyle);
|
|
126
|
-
};
|
|
127
|
-
AcApDocCreator.prototype.createMText = function () {
|
|
128
|
-
var mtext = new AcDbMText();
|
|
129
|
-
mtext.attachmentPoint = AcGiMTextAttachmentPoint.MiddleLeft;
|
|
130
|
-
mtext.color = new AcCmColor().setColorName('red');
|
|
131
|
-
mtext.layer = '0';
|
|
132
|
-
mtext.location = new AcGePoint3d(9850, 86773, 0);
|
|
133
|
-
mtext.contents = '{\\W0.667;\\T1.1;智慧8081}';
|
|
134
|
-
mtext.height = 200;
|
|
135
|
-
mtext.width = 1000;
|
|
136
|
-
mtext.styleName = 'Standard';
|
|
137
|
-
return mtext;
|
|
138
|
-
};
|
|
139
|
-
AcApDocCreator.prototype.createHatch = function () {
|
|
140
|
-
var lines = this.createLines();
|
|
141
|
-
var hatch = new AcDbHatch();
|
|
142
|
-
var loops = new AcGeLoop2d();
|
|
143
|
-
loops.add(new AcGeCircArc2d({ x: 20241.23355899991, y: 174118.6312674369 }, 89258.30757455899, AcGeMathUtil.degToRad(262.2471115358437), AcGeMathUtil.degToRad(264.444541053754), false));
|
|
144
|
-
lines.forEach(function (line) {
|
|
145
|
-
loops.add(new AcGeLine2d(line.startPoint, line.endPoint));
|
|
146
|
-
});
|
|
147
|
-
hatch.add(loops);
|
|
148
|
-
return hatch;
|
|
149
|
-
};
|
|
150
|
-
AcApDocCreator.prototype.createArc = function () {
|
|
151
|
-
return new AcDbArc({ x: 20241.23355899991, y: 174118.6312674369, z: 0 }, 89258.30757455899, AcGeMathUtil.degToRad(262.2471115358437), AcGeMathUtil.degToRad(264.444541053754));
|
|
152
|
-
};
|
|
153
|
-
AcApDocCreator.prototype.createLines = function () {
|
|
154
|
-
var lines = [];
|
|
155
|
-
lines.push(new AcGeLine3d({
|
|
156
|
-
x: 11600.20888122753,
|
|
157
|
-
y: 85279.57362051727,
|
|
158
|
-
z: 0
|
|
159
|
-
}, {
|
|
160
|
-
x: 11600.20890652924,
|
|
161
|
-
y: 86546.03982284805,
|
|
162
|
-
z: 0
|
|
163
|
-
}));
|
|
164
|
-
lines.push(new AcGeLine3d({
|
|
165
|
-
x: 11600.20890652924,
|
|
166
|
-
y: 86546.03982284805,
|
|
167
|
-
z: 0
|
|
168
|
-
}, {
|
|
169
|
-
x: 10850.20885583921,
|
|
170
|
-
y: 86546.03980174381,
|
|
171
|
-
z: 0
|
|
172
|
-
}));
|
|
173
|
-
lines.push(new AcGeLine3d({
|
|
174
|
-
x: 10850.2088602169,
|
|
175
|
-
y: 86546.03967292747,
|
|
176
|
-
z: 0
|
|
177
|
-
}, {
|
|
178
|
-
x: 9050.208860216895,
|
|
179
|
-
y: 86546.039672927,
|
|
180
|
-
z: 0
|
|
181
|
-
}));
|
|
182
|
-
lines.push(new AcGeLine3d({
|
|
183
|
-
x: 9050.208855839213,
|
|
184
|
-
y: 86546.0397510943,
|
|
185
|
-
z: 0
|
|
186
|
-
}, {
|
|
187
|
-
x: 8200.209067034302,
|
|
188
|
-
y: 86546.039727177,
|
|
189
|
-
z: 0
|
|
190
|
-
}));
|
|
191
|
-
lines.push(new AcGeLine3d({
|
|
192
|
-
x: 8200.209067034302,
|
|
193
|
-
y: 86546.039727177,
|
|
194
|
-
z: 0
|
|
195
|
-
}, {
|
|
196
|
-
x: 8200.209067033837,
|
|
197
|
-
y: 85676.22514764359,
|
|
198
|
-
z: 0
|
|
199
|
-
}));
|
|
200
|
-
return lines;
|
|
201
|
-
};
|
|
202
|
-
return AcApDocCreator;
|
|
203
|
-
}());
|
|
204
|
-
export { AcApDocCreator };
|
|
205
|
-
//# sourceMappingURL=AcApDocCreator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-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