cyclecad 2.0.1 → 2.1.0
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/IMPLEMENTATION_GUIDE.md +502 -0
- package/INTEGRATION-GUIDE.md +377 -0
- package/MODULES_PHASES_6_7.md +780 -0
- package/app/index.html +106 -2
- package/app/js/brep-kernel.js +1353 -455
- package/app/js/help-module.js +1437 -0
- package/app/js/kernel.js +364 -40
- package/app/js/modules/animation-module.js +967 -0
- package/app/js/modules/assembly-module.js +47 -3
- package/app/js/modules/cam-module.js +1067 -0
- package/app/js/modules/collaboration-module.js +1102 -0
- package/app/js/modules/data-module.js +1656 -0
- package/app/js/modules/drawing-module.js +54 -8
- package/app/js/modules/formats-module.js +1173 -0
- package/app/js/modules/inspection-module.js +937 -0
- package/app/js/modules/mesh-module.js +968 -0
- package/app/js/modules/operations-module.js +40 -7
- package/app/js/modules/plugin-module.js +957 -0
- package/app/js/modules/rendering-module.js +1306 -0
- package/app/js/modules/scripting-module.js +955 -0
- package/app/js/modules/simulation-module.js +60 -3
- package/app/js/modules/sketch-module.js +1032 -90
- package/app/js/modules/step-module.js +47 -6
- package/app/js/modules/surface-module.js +728 -0
- package/app/js/modules/version-module.js +1410 -0
- package/app/js/modules/viewport-module.js +95 -8
- package/app/test-agent-v2.html +881 -1316
- package/docs/ARCHITECTURE.html +838 -1408
- package/docs/DEVELOPER-GUIDE.md +1504 -0
- package/docs/TUTORIAL.md +740 -0
- package/package.json +1 -1
- package/.github/scripts/cad-diff.js +0 -590
- package/.github/workflows/cad-diff.yml +0 -117
|
@@ -1,14 +1,60 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
* @file drawing-module.js
|
|
3
|
+
* @description DrawingModule — 2D Engineering Drawing & Documentation Workspace
|
|
4
|
+
* LEGO block for cycleCAD microkernel, providing complete engineering drawing
|
|
5
|
+
* capabilities with Fusion 360 parity. Creates sheet-based orthographic, section,
|
|
6
|
+
* detail, and isometric views with associative dimensions, GD&T annotations,
|
|
7
|
+
* and manufacturing documentation.
|
|
5
8
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
9
|
+
* @version 1.0.0
|
|
10
|
+
* @author cycleCAD Team
|
|
11
|
+
* @license MIT
|
|
12
|
+
* @see {@link https://github.com/vvlars-cmd/cyclecad}
|
|
8
13
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
14
|
+
* @module drawing-module
|
|
15
|
+
* @requires viewport (3D geometry data)
|
|
16
|
+
* @requires operations (geometry operations)
|
|
17
|
+
*
|
|
18
|
+
* Features:
|
|
19
|
+
* - Paper sizes: ISO (A0-A4), ANSI (A-E)
|
|
20
|
+
* - Scalable: 1:1, 1:2, 1:5, 1:10, 1:20, 1:50, custom
|
|
21
|
+
* - View types: Orthographic, Section, Detail, Isometric, Auxiliary
|
|
22
|
+
* - Dimensions: Linear, Angular, Radial, Diameter, Ordinate
|
|
23
|
+
* - Annotations: GD&T symbols (10 types), Surface finish, Weld symbols
|
|
24
|
+
* - Associative: Dimensions update when model changes
|
|
25
|
+
* - Assembly drawings: Balloon numbering, parts lists
|
|
26
|
+
* - Center marks and centerlines
|
|
27
|
+
* - Leaders with notes
|
|
28
|
+
* - Title blocks: ISO 7200, ANSI Y14.1, custom templates
|
|
29
|
+
* - Bill of Materials (BOM) table
|
|
30
|
+
* - Export: PDF (vector), DXF (CAD), SVG (web), PNG (raster @ 300 DPI)
|
|
31
|
+
* - Multi-sheet support
|
|
32
|
+
*
|
|
33
|
+
* Projection Systems:
|
|
34
|
+
* - Orthographic: True orthographic projection (no perspective)
|
|
35
|
+
* - Section: Cut through model with hatch pattern
|
|
36
|
+
* - Detail: Zoomed view with callout
|
|
37
|
+
* - Isometric: Pseudo-3D isometric projection
|
|
38
|
+
* - Auxiliary: Rotated view on non-standard plane
|
|
39
|
+
*
|
|
40
|
+
* GD&T Symbols (10):
|
|
41
|
+
* - Flatness, Straightness, Circularity, Cylindricity
|
|
42
|
+
* - Perpendicularity, Parallelism, Position, Concentricity
|
|
43
|
+
* - Runout, Profile of surface
|
|
44
|
+
*
|
|
45
|
+
* Workflow:
|
|
46
|
+
* 1. Create drawing (select paper size and scale)
|
|
47
|
+
* 2. Add views (orthographic, section, detail, etc.)
|
|
48
|
+
* 3. Annotate views (dimensions, GD&T, leaders)
|
|
49
|
+
* 4. Add assembly annotations (balloons, BOM)
|
|
50
|
+
* 5. Configure title block (company, date, rev, etc.)
|
|
51
|
+
* 6. Export to desired format
|
|
52
|
+
*
|
|
53
|
+
* Drawing Sheet Structure:
|
|
54
|
+
* Sheet = {
|
|
55
|
+
* id, paperSize, scale, views[], dimensions[], annotations[],
|
|
56
|
+
* balloons[], centerMarks[], centerlines[], titleBlock, bom
|
|
57
|
+
* }
|
|
12
58
|
*/
|
|
13
59
|
|
|
14
60
|
const DrawingModule = {
|