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.
Files changed (33) hide show
  1. package/IMPLEMENTATION_GUIDE.md +502 -0
  2. package/INTEGRATION-GUIDE.md +377 -0
  3. package/MODULES_PHASES_6_7.md +780 -0
  4. package/app/index.html +106 -2
  5. package/app/js/brep-kernel.js +1353 -455
  6. package/app/js/help-module.js +1437 -0
  7. package/app/js/kernel.js +364 -40
  8. package/app/js/modules/animation-module.js +967 -0
  9. package/app/js/modules/assembly-module.js +47 -3
  10. package/app/js/modules/cam-module.js +1067 -0
  11. package/app/js/modules/collaboration-module.js +1102 -0
  12. package/app/js/modules/data-module.js +1656 -0
  13. package/app/js/modules/drawing-module.js +54 -8
  14. package/app/js/modules/formats-module.js +1173 -0
  15. package/app/js/modules/inspection-module.js +937 -0
  16. package/app/js/modules/mesh-module.js +968 -0
  17. package/app/js/modules/operations-module.js +40 -7
  18. package/app/js/modules/plugin-module.js +957 -0
  19. package/app/js/modules/rendering-module.js +1306 -0
  20. package/app/js/modules/scripting-module.js +955 -0
  21. package/app/js/modules/simulation-module.js +60 -3
  22. package/app/js/modules/sketch-module.js +1032 -90
  23. package/app/js/modules/step-module.js +47 -6
  24. package/app/js/modules/surface-module.js +728 -0
  25. package/app/js/modules/version-module.js +1410 -0
  26. package/app/js/modules/viewport-module.js +95 -8
  27. package/app/test-agent-v2.html +881 -1316
  28. package/docs/ARCHITECTURE.html +838 -1408
  29. package/docs/DEVELOPER-GUIDE.md +1504 -0
  30. package/docs/TUTORIAL.md +740 -0
  31. package/package.json +1 -1
  32. package/.github/scripts/cad-diff.js +0 -590
  33. package/.github/workflows/cad-diff.yml +0 -117
@@ -1,14 +1,60 @@
1
1
  /**
2
- * DrawingModule — 2D Engineering Drawing / Documentation Workspace
3
- * LEGO block for cycleCAD microkernel architecture
4
- * Fusion 360 Drawing parity the #1 most-requested missing feature
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
- * Creates orthographic, section, detail, isometric, and auxiliary views
7
- * with associative dimensions, GD&T annotations, and manufacturing documentation
9
+ * @version 1.0.0
10
+ * @author cycleCAD Team
11
+ * @license MIT
12
+ * @see {@link https://github.com/vvlars-cmd/cyclecad}
8
13
  *
9
- * Version: 1.0.0
10
- * Author: cycleCAD Team
11
- * License: MIT
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 = {