@mlightcad/cad-simple-viewer 1.0.0 → 1.0.2

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 (136) hide show
  1. package/README.md +296 -2
  2. package/dist/index.js +1348 -122
  3. package/dist/index.umd.cjs +2 -2
  4. package/lib/app/AcApContext.d.ts +45 -3
  5. package/lib/app/AcApContext.d.ts.map +1 -1
  6. package/lib/app/AcApContext.js +43 -3
  7. package/lib/app/AcApContext.js.map +1 -1
  8. package/lib/app/AcApDocCreator.d.ts +68 -2
  9. package/lib/app/AcApDocCreator.d.ts.map +1 -1
  10. package/lib/app/AcApDocCreator.js +67 -2
  11. package/lib/app/AcApDocCreator.js.map +1 -1
  12. package/lib/app/AcApDocManager.d.ts +227 -12
  13. package/lib/app/AcApDocManager.d.ts.map +1 -1
  14. package/lib/app/AcApDocManager.js +229 -17
  15. package/lib/app/AcApDocManager.js.map +1 -1
  16. package/lib/app/AcApDocument.d.ts +77 -3
  17. package/lib/app/AcApDocument.d.ts.map +1 -1
  18. package/lib/app/AcApDocument.js +75 -3
  19. package/lib/app/AcApDocument.js.map +1 -1
  20. package/lib/app/AcApFontLoader.d.ts +32 -0
  21. package/lib/app/AcApFontLoader.d.ts.map +1 -1
  22. package/lib/app/AcApFontLoader.js +30 -0
  23. package/lib/app/AcApFontLoader.js.map +1 -1
  24. package/lib/app/AcApSettingManager.d.ts +191 -3
  25. package/lib/app/AcApSettingManager.d.ts.map +1 -1
  26. package/lib/app/AcApSettingManager.js +161 -0
  27. package/lib/app/AcApSettingManager.js.map +1 -1
  28. package/lib/command/AcApConvertToSvgCmd.d.ts +26 -0
  29. package/lib/command/AcApConvertToSvgCmd.d.ts.map +1 -1
  30. package/lib/command/AcApConvertToSvgCmd.js +26 -0
  31. package/lib/command/AcApConvertToSvgCmd.js.map +1 -1
  32. package/lib/command/AcApOpenCmd.d.ts +31 -0
  33. package/lib/command/AcApOpenCmd.d.ts.map +1 -1
  34. package/lib/command/AcApOpenCmd.js +31 -0
  35. package/lib/command/AcApOpenCmd.js.map +1 -1
  36. package/lib/command/AcApPanCmd.d.ts +25 -0
  37. package/lib/command/AcApPanCmd.d.ts.map +1 -1
  38. package/lib/command/AcApPanCmd.js +25 -0
  39. package/lib/command/AcApPanCmd.js.map +1 -1
  40. package/lib/command/AcApQNewCmd.d.ts +26 -0
  41. package/lib/command/AcApQNewCmd.d.ts.map +1 -1
  42. package/lib/command/AcApQNewCmd.js +26 -0
  43. package/lib/command/AcApQNewCmd.js.map +1 -1
  44. package/lib/command/AcApSelectCmd.d.ts +26 -0
  45. package/lib/command/AcApSelectCmd.d.ts.map +1 -1
  46. package/lib/command/AcApSelectCmd.js +26 -0
  47. package/lib/command/AcApSelectCmd.js.map +1 -1
  48. package/lib/command/AcApSvgConvertor.d.ts +48 -0
  49. package/lib/command/AcApSvgConvertor.d.ts.map +1 -1
  50. package/lib/command/AcApSvgConvertor.js +48 -0
  51. package/lib/command/AcApSvgConvertor.js.map +1 -1
  52. package/lib/command/AcApZoomCmd.d.ts +29 -0
  53. package/lib/command/AcApZoomCmd.d.ts.map +1 -1
  54. package/lib/command/AcApZoomCmd.js +29 -0
  55. package/lib/command/AcApZoomCmd.js.map +1 -1
  56. package/lib/command/AcApZoomToBoxCmd.d.ts +57 -0
  57. package/lib/command/AcApZoomToBoxCmd.d.ts.map +1 -1
  58. package/lib/command/AcApZoomToBoxCmd.js +57 -0
  59. package/lib/command/AcApZoomToBoxCmd.js.map +1 -1
  60. package/lib/editor/command/AcEdCommand.d.ts +118 -9
  61. package/lib/editor/command/AcEdCommand.d.ts.map +1 -1
  62. package/lib/editor/command/AcEdCommand.js +113 -9
  63. package/lib/editor/command/AcEdCommand.js.map +1 -1
  64. package/lib/editor/command/AcEdCommandStack.d.ts +59 -5
  65. package/lib/editor/command/AcEdCommandStack.d.ts.map +1 -1
  66. package/lib/editor/command/AcEdCommandStack.js +48 -5
  67. package/lib/editor/command/AcEdCommandStack.js.map +1 -1
  68. package/lib/editor/global/eventBus.d.ts +76 -7
  69. package/lib/editor/global/eventBus.d.ts.map +1 -1
  70. package/lib/editor/global/eventBus.js +38 -0
  71. package/lib/editor/global/eventBus.js.map +1 -1
  72. package/lib/editor/input/AcEdBaseInput.d.ts +65 -1
  73. package/lib/editor/input/AcEdBaseInput.d.ts.map +1 -1
  74. package/lib/editor/input/AcEdBaseInput.js +62 -1
  75. package/lib/editor/input/AcEdBaseInput.js.map +1 -1
  76. package/lib/editor/input/AcEdBoxSelector.d.ts +81 -0
  77. package/lib/editor/input/AcEdBoxSelector.d.ts.map +1 -1
  78. package/lib/editor/input/AcEdBoxSelector.js +80 -0
  79. package/lib/editor/input/AcEdBoxSelector.js.map +1 -1
  80. package/lib/editor/input/AcEdCursorManager.d.ts +95 -8
  81. package/lib/editor/input/AcEdCursorManager.d.ts.map +1 -1
  82. package/lib/editor/input/AcEdCursorManager.js +95 -11
  83. package/lib/editor/input/AcEdCursorManager.js.map +1 -1
  84. package/lib/editor/input/AcEdInputPoint.d.ts +38 -1
  85. package/lib/editor/input/AcEdInputPoint.d.ts.map +1 -1
  86. package/lib/editor/input/AcEdInputPoint.js +38 -1
  87. package/lib/editor/input/AcEdInputPoint.js.map +1 -1
  88. package/lib/editor/input/AcEdJig.d.ts +166 -0
  89. package/lib/editor/input/AcEdJig.d.ts.map +1 -1
  90. package/lib/editor/input/AcEdJig.js +164 -0
  91. package/lib/editor/input/AcEdJig.js.map +1 -1
  92. package/lib/editor/input/AcEdJigLoop.d.ts +49 -0
  93. package/lib/editor/input/AcEdJigLoop.d.ts.map +1 -1
  94. package/lib/editor/input/AcEdJigLoop.js +48 -0
  95. package/lib/editor/input/AcEdJigLoop.js.map +1 -1
  96. package/lib/editor/input/AcEdSelectionSet.d.ts +122 -2
  97. package/lib/editor/input/AcEdSelectionSet.d.ts.map +1 -1
  98. package/lib/editor/input/AcEdSelectionSet.js +117 -1
  99. package/lib/editor/input/AcEdSelectionSet.js.map +1 -1
  100. package/lib/editor/input/AcEditor.d.ts +90 -6
  101. package/lib/editor/input/AcEditor.d.ts.map +1 -1
  102. package/lib/editor/input/AcEditor.js +86 -6
  103. package/lib/editor/input/AcEditor.js.map +1 -1
  104. package/lib/editor/view/AcEdBaseView.d.ts +163 -16
  105. package/lib/editor/view/AcEdBaseView.d.ts.map +1 -1
  106. package/lib/editor/view/AcEdBaseView.js +94 -5
  107. package/lib/editor/view/AcEdBaseView.js.map +1 -1
  108. package/lib/util/AcTrGeometryUtil.d.ts +65 -0
  109. package/lib/util/AcTrGeometryUtil.d.ts.map +1 -1
  110. package/lib/util/AcTrGeometryUtil.js +65 -0
  111. package/lib/util/AcTrGeometryUtil.js.map +1 -1
  112. package/lib/view/AcTrLayer.d.ts +40 -5
  113. package/lib/view/AcTrLayer.d.ts.map +1 -1
  114. package/lib/view/AcTrLayer.js +34 -5
  115. package/lib/view/AcTrLayer.js.map +1 -1
  116. package/lib/view/AcTrLayout.d.ts +122 -23
  117. package/lib/view/AcTrLayout.d.ts.map +1 -1
  118. package/lib/view/AcTrLayout.js +103 -23
  119. package/lib/view/AcTrLayout.js.map +1 -1
  120. package/lib/view/AcTrLayoutView.d.ts +74 -16
  121. package/lib/view/AcTrLayoutView.d.ts.map +1 -1
  122. package/lib/view/AcTrLayoutView.js +65 -16
  123. package/lib/view/AcTrLayoutView.js.map +1 -1
  124. package/lib/view/AcTrLayoutViewManager.d.ts +58 -12
  125. package/lib/view/AcTrLayoutViewManager.d.ts.map +1 -1
  126. package/lib/view/AcTrLayoutViewManager.js +56 -12
  127. package/lib/view/AcTrLayoutViewManager.js.map +1 -1
  128. package/lib/view/AcTrScene.d.ts +48 -4
  129. package/lib/view/AcTrScene.d.ts.map +1 -1
  130. package/lib/view/AcTrScene.js +44 -4
  131. package/lib/view/AcTrScene.js.map +1 -1
  132. package/lib/view/AcTrView2d.d.ts +71 -0
  133. package/lib/view/AcTrView2d.d.ts.map +1 -1
  134. package/lib/view/AcTrView2d.js +65 -0
  135. package/lib/view/AcTrView2d.js.map +1 -1
  136. package/package.json +8 -4
@@ -1 +1 @@
1
- {"version":3,"file":"AcTrLayout.js","sourceRoot":"","sources":["../../src/view/AcTrLayout.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,EAAE,SAAS,EAAkB,MAAM,aAAa,CAAA;AAgBvD;;GAEG;AACH;IAQE;QACE,IAAI,CAAC,MAAM,GAAG,IAAI,KAAK,CAAC,KAAK,EAAE,CAAA;QAC/B,IAAI,CAAC,UAAU,GAAG,IAAI,KAAK,EAAE,CAAA;QAC7B,IAAI,CAAC,IAAI,GAAG,IAAI,KAAK,CAAC,IAAI,EAAE,CAAA;QAC5B,IAAI,CAAC,OAAO,GAAG,IAAI,GAAG,EAAE,CAAA;IAC1B,CAAC;IAMD,sBAAI,sCAAc;QAJlB;;;WAGG;aACH;YACE,OAAO,IAAI,CAAC,MAAM,CAAA;QACpB,CAAC;;;OAAA;IAED,sBAAI,8BAAM;aAAV;YACE,OAAO,IAAI,CAAC,OAAO,CAAA;QACrB,CAAC;;;OAAA;IAED,sBAAI,2BAAG;aAAP;YACE,OAAO,IAAI,CAAC,IAAI,CAAA;QAClB,CAAC;;;OAAA;IAKD,sBAAI,+BAAO;QAHX;;WAEG;aACH;YACE,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAA;QAC5B,CAAC;aACD,UAAY,KAAc;YACxB,IAAI,CAAC,MAAM,CAAC,OAAO,GAAG,KAAK,CAAA;QAC7B,CAAC;;;OAHA;IAQD,sBAAI,mCAAW;QAHf;;WAEG;aACH;YACE,IAAI,KAAK,GAAG,CAAC,CAAA;YACb,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,UAAA,KAAK,IAAI,OAAA,CAAC,KAAK,IAAI,KAAK,CAAC,WAAW,CAAC,EAA5B,CAA4B,CAAC,CA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A;QAClC,IAAI,KAAK,KAAK,SAAS,IAAI,gBAAgB,EAAE,CAAC;YAC5C,KAAK,GAAG,IAAI,SAAS,CAAC,IAAI,CAAC,CAAA;YAC3B,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;YAC7B,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,cAAc,CAAC,CAAA;QACvC,CAAC;QACD,OAAO,KAAK,CAAA;IACd,CAAC;IACH,iBAAC;AAAD,CAAC,AA7UD,IA6UC"}
@@ -1,56 +1,114 @@
1
1
  import { AcTrBaseView, AcTrRenderer, AcTrViewportView } from '@mlightcad/three-renderer';
2
2
  import { AcEdViewMode } from '../editor/view/AcEdBaseView';
3
3
  import { AcTrScene } from './AcTrScene';
4
+ /**
5
+ * Interface for database entity event arguments.
6
+ * Provides context information for entity-related events.
7
+ */
4
8
  export interface AcDbEntityEventArgs {
9
+ /** The layout view associated with the event */
5
10
  view: AcTrLayoutView;
6
11
  }
7
12
  /**
8
13
  * Each layout has its own camera and camera control. This class represents view associated with one layout.
14
+ *
15
+ * A layout view manages the visual representation and interaction for a specific AutoCAD layout.
16
+ * It provides:
17
+ * - Camera and view controls specific to the layout
18
+ * - Viewport management for paper space layouts
19
+ * - View mode switching (selection, pan, etc.)
20
+ * - Axes gizmo for orientation feedback
21
+ * - Rendering coordination with viewports
22
+ *
23
+ * The layout view coordinates between the layout's data (entities, layers) and the visual
24
+ * presentation, handling camera positioning, user interaction modes, and multi-viewport
25
+ * rendering for paper space layouts.
26
+ *
27
+ * @example
28
+ * ```typescript
29
+ * const layoutView = new AcTrLayoutView(renderer, layoutId, 800, 600);
30
+ * layoutView.mode = AcEdViewMode.PAN;
31
+ * layoutView.render(scene);
32
+ * ```
9
33
  */
10
34
  export declare class AcTrLayoutView extends AcTrBaseView {
35
+ /** The block table record ID associated with this layout */
11
36
  private _layoutBtrId;
37
+ /** The axes gizmo for showing coordinate system orientation */
12
38
  private _axesGizmo;
39
+ /** The current view mode (selection, pan, etc.) */
13
40
  private _mode;
41
+ /** Map of viewport views indexed by viewport ID */
14
42
  private _viewportViews;
15
43
  /**
16
- * Construct one instance of this class
17
- * @param layoutBtrId Input the id of the block table record associated the layout
18
- * @param renderer Input renderer
19
- * @param width Input width of this view
20
- * @param height Input height of this view
44
+ * Construct one instance of this class.
45
+ *
46
+ * @param renderer - Input renderer for this view
47
+ * @param layoutBtrId - Input the id of the block table record associated the layout
48
+ * @param width - Input width of this view in pixels
49
+ * @param height - Input height of this view in pixels
21
50
  */
22
51
  constructor(renderer: AcTrRenderer, layoutBtrId: string, width: number, height: number);
52
+ /**
53
+ * Gets the block table record ID associated with this layout.
54
+ *
55
+ * @returns The layout's block table record ID
56
+ */
23
57
  get layoutBtrId(): string;
24
58
  /**
25
- * The view mode of the current layout view
59
+ * The view mode of the current layout view.
60
+ * Controls how mouse interactions are interpreted (selection vs pan mode).
26
61
  */
27
62
  get mode(): AcEdViewMode;
28
63
  set mode(value: AcEdViewMode);
29
64
  /**
30
- * The number of viewports in this layout view
65
+ * The number of viewports in this layout view.
66
+ * Paper space layouts can contain multiple viewports showing different views of model space.
31
67
  */
32
68
  get viewportCount(): number;
33
69
  /**
34
- * Add one viewport view instance to this layout view
35
- * @param viewportView Input one viewport instance
70
+ * Add one viewport view instance to this layout view.
71
+ * Viewports are used in paper space layouts to show different views of the model.
72
+ *
73
+ * @param viewportView - Input one viewport instance to add
36
74
  */
37
75
  addViewport(viewportView: AcTrViewportView): void;
38
76
  /**
39
- * Remove the specified viewport view by its id from this layout view
40
- * @param id Input the id of one viewport instance
77
+ * Remove the specified viewport view by its id from this layout view.
78
+ *
79
+ * @param id - Input the id of one viewport instance to remove
41
80
  */
42
81
  removeViewport(id: string): void;
43
82
  /**
44
- * Resize this layout view
45
- * @param width Input new width of the layout view
46
- * @param height Input new height of the layout view
83
+ * Resize this layout view.
84
+ * Updates the view dimensions and notifies all viewports of the size change.
85
+ *
86
+ * @param width - Input new width of the layout view in pixels
87
+ * @param height - Input new height of the layout view in pixels
47
88
  */
48
89
  resize(width: number, height: number): void;
90
+ /**
91
+ * Renders the scene in this layout view.
92
+ * Performs the main rendering pass and then renders any viewports if present.
93
+ * Updates the axes gizmo to reflect the current camera orientation.
94
+ *
95
+ * @param scene - The scene containing the layout data to render
96
+ */
49
97
  render(scene: AcTrScene): void;
98
+ /**
99
+ * Creates and configures the axes gizmo for this view.
100
+ * The gizmo shows the current coordinate system orientation and is positioned
101
+ * at the bottom-left of the view without a Z-axis (2D view).
102
+ *
103
+ * @returns The configured axes gizmo instance
104
+ */
50
105
  private createAxesGizmo;
51
106
  /**
52
- * Draw viewports
53
- * @param scene Input the scene to draw
107
+ * Draw viewports into the current rendering context.
108
+ * Handles the complex rendering process for paper space layouts that contain
109
+ * multiple viewports, each with their own view of model space.
110
+ *
111
+ * @param scene - Input the scene object to draw in each viewport
54
112
  */
55
113
  private drawViewports;
56
114
  }
@@ -1 +1 @@
1
- {"version":3,"file":"AcTrLayoutView.d.ts","sourceRoot":"","sources":["../../src/view/AcTrLayoutView.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,gBAAgB,EACjB,MAAM,2BAA2B,CAAA;AAIlC,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,cAAc,CAAA;CACrB;AAED;;GAEG;AACH,qBAAa,cAAe,SAAQ,YAAY;IAC9C,OAAO,CAAC,YAAY,CAAQ;IAC5B,OAAO,CAAC,UAAU,CAAW;IAC7B,OAAO,CAAC,KAAK,CAAc;IAC3B,OAAO,CAAC,cAAc,CAA+B;IAErD;;;;;;OAMG;gBAED,QAAQ,EAAE,YAAY,EACtB,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM;IAShB,IAAI,W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,YAAY,CAD3B;IACD,IAAI,IAAI,CAAC,KAAK,EAAE,YAAY,EAY3B;IAED;;;OAGG;IACH,IAAI,aAAa,WAEhB;IAED;;;;;OAKG;IACH,WAAW,CAAC,YAAY,EAAE,gBAAgB;IAI1C;;;;OAIG;IACH,cAAc,CAAC,EAAE,EAAE,MAAM;IAIzB;;;;;;OAMG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IASpC;;;;;;OAMG;IACH,MAAM,CAAC,KAAK,EAAE,SAAS;IAUvB;;;;;;OAMG;IACH,OAAO,CAAC,eAAe;IAYvB;;;;;;OAMG;IACH,OAAO,CAAC,aAAa;CA4BtB"}
@@ -19,15 +19,35 @@ import * as THREE from 'three';
19
19
  import { AcEdViewMode } from '../editor/view/AcEdBaseView';
20
20
  /**
21
21
  * Each layout has its own camera and camera control. This class represents view associated with one layout.
22
+ *
23
+ * A layout view manages the visual representation and interaction for a specific AutoCAD layout.
24
+ * It provides:
25
+ * - Camera and view controls specific to the layout
26
+ * - Viewport management for paper space layouts
27
+ * - View mode switching (selection, pan, etc.)
28
+ * - Axes gizmo for orientation feedback
29
+ * - Rendering coordination with viewports
30
+ *
31
+ * The layout view coordinates between the layout's data (entities, layers) and the visual
32
+ * presentation, handling camera positioning, user interaction modes, and multi-viewport
33
+ * rendering for paper space layouts.
34
+ *
35
+ * @example
36
+ * ```typescript
37
+ * const layoutView = new AcTrLayoutView(renderer, layoutId, 800, 600);
38
+ * layoutView.mode = AcEdViewMode.PAN;
39
+ * layoutView.render(scene);
40
+ * ```
22
41
  */
23
42
  var AcTrLayoutView = /** @class */ (function (_super) {
24
43
  __extends(AcTrLayoutView, _super);
25
44
  /**
26
- * Construct one instance of this class
27
- * @param layoutBtrId Input the id of the block table record associated the layout
28
- * @param renderer Input renderer
29
- * @param width Input width of this view
30
- * @param height Input height of this view
45
+ * Construct one instance of this class.
46
+ *
47
+ * @param renderer - Input renderer for this view
48
+ * @param layoutBtrId - Input the id of the block table record associated the layout
49
+ * @param width - Input width of this view in pixels
50
+ * @param height - Input height of this view in pixels
31
51
  */
32
52
  function AcTrLayoutView(renderer, layoutBtrId, width, height) {
33
53
  var _this = _super.call(this, renderer, width, height) || this;
@@ -38,6 +58,11 @@ var AcTrLayoutView = /** @class */ (function (_super) {
38
58
  return _this;
39
59
  }
40
60
  Object.defineProperty(AcTrLayoutView.prototype, "layoutBtrId", {
61
+ /**
62
+ * Gets the block table record ID associated with this layout.
63
+ *
64
+ * @returns The layout's block table record ID
65
+ */
41
66
  get: function () {
42
67
  return this._layoutBtrId;
43
68
  },
@@ -46,7 +71,8 @@ var AcTrLayoutView = /** @class */ (function (_super) {
46
71
  });
47
72
  Object.defineProperty(AcTrLayoutView.prototype, "mode", {
48
73
  /**
49
- * The view mode of the current layout view
74
+ * The view mode of the current layout view.
75
+ * Controls how mouse interactions are interpreted (selection vs pan mode).
50
76
  */
51
77
  get: function () {
52
78
  return this._mode;
@@ -70,7 +96,8 @@ var AcTrLayoutView = /** @class */ (function (_super) {
70
96
  });
71
97
  Object.defineProperty(AcTrLayoutView.prototype, "viewportCount", {
72
98
  /**
73
- * The number of viewports in this layout view
99
+ * The number of viewports in this layout view.
100
+ * Paper space layouts can contain multiple viewports showing different views of model space.
74
101
  */
75
102
  get: function () {
76
103
  return this._viewportViews.size;
@@ -79,23 +106,28 @@ var AcTrLayoutView = /** @class */ (function (_super) {
79
106
  configurable: true
80
107
  });
81
108
  /**
82
- * Add one viewport view instance to this layout view
83
- * @param viewportView Input one viewport instance
109
+ * Add one viewport view instance to this layout view.
110
+ * Viewports are used in paper space layouts to show different views of the model.
111
+ *
112
+ * @param viewportView - Input one viewport instance to add
84
113
  */
85
114
  AcTrLayoutView.prototype.addViewport = function (viewportView) {
86
115
  this._viewportViews.set(viewportView.viewport.id, viewportView);
87
116
  };
88
117
  /**
89
- * Remove the specified viewport view by its id from this layout view
90
- * @param id Input the id of one viewport instance
118
+ * Remove the specified viewport view by its id from this layout view.
119
+ *
120
+ * @param id - Input the id of one viewport instance to remove
91
121
  */
92
122
  AcTrLayoutView.prototype.removeViewport = function (id) {
93
123
  this._viewportViews.delete(id);
94
124
  };
95
125
  /**
96
- * Resize this layout view
97
- * @param width Input new width of the layout view
98
- * @param height Input new height of the layout view
126
+ * Resize this layout view.
127
+ * Updates the view dimensions and notifies all viewports of the size change.
128
+ *
129
+ * @param width - Input new width of the layout view in pixels
130
+ * @param height - Input new height of the layout view in pixels
99
131
  */
100
132
  AcTrLayoutView.prototype.resize = function (width, height) {
101
133
  this._height = height;
@@ -105,6 +137,13 @@ var AcTrLayoutView = /** @class */ (function (_super) {
105
137
  viewportView.update();
106
138
  });
107
139
  };
140
+ /**
141
+ * Renders the scene in this layout view.
142
+ * Performs the main rendering pass and then renders any viewports if present.
143
+ * Updates the axes gizmo to reflect the current camera orientation.
144
+ *
145
+ * @param scene - The scene containing the layout data to render
146
+ */
108
147
  AcTrLayoutView.prototype.render = function (scene) {
109
148
  var _a;
110
149
  this._renderer.clear();
@@ -115,6 +154,13 @@ var AcTrLayoutView = /** @class */ (function (_super) {
115
154
  }
116
155
  (_a = this._axesGizmo) === null || _a === void 0 ? void 0 : _a.update();
117
156
  };
157
+ /**
158
+ * Creates and configures the axes gizmo for this view.
159
+ * The gizmo shows the current coordinate system orientation and is positioned
160
+ * at the bottom-left of the view without a Z-axis (2D view).
161
+ *
162
+ * @returns The configured axes gizmo instance
163
+ */
118
164
  AcTrLayoutView.prototype.createAxesGizmo = function () {
119
165
  var axesGizmo = new AxesGizmo(this._camera.internalCamera, this._renderer.internalRenderer, {
120
166
  hasZAxis: false,
@@ -123,8 +169,11 @@ var AcTrLayoutView = /** @class */ (function (_super) {
123
169
  return axesGizmo;
124
170
  };
125
171
  /**
126
- * Draw viewports
127
- * @param scene Input the scene to draw
172
+ * Draw viewports into the current rendering context.
173
+ * Handles the complex rendering process for paper space layouts that contain
174
+ * multiple viewports, each with their own view of model space.
175
+ *
176
+ * @param scene - Input the scene object to draw in each viewport
128
177
  */
129
178
  AcTrLayoutView.prototype.drawViewports = function (scene) {
130
179
  if (this._viewportViews.size > 0) {
@@ -1 +1 @@
1
- {"version":3,"file":"AcTrLayoutView.js","sourceRoot":"","sources":["../../src/view/AcTrLayoutView.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EACL,YAAY,EAGb,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AACrE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAO1D;;GAEG;AACH;IAAoC,kCAAY;IAM9C;;;;;;OAMG;IACH,wBACE,QAAsB,EACtB,WAAmB,EACnB,KAAa,EACb,MAAc;QAEd,YAAA,MAAK,YAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,CAAC,SAAA;QAC9B,KAAI,CAAC,YAAY,GAAG,WAAW,CAAA;QAC/B,KAAI,CAAC,KAAK,GAAG,YAAY,CAAC,SAAS,CAAA;QACnC,KAAI,CAAC,UAAU,GAAG,KAAI,CAAC,eAAe,EAAE,CAAA;QACxC,KAAI,CAAC,cAAc,GAAG,IAAI,GAAG,EAAE,CAAA;;IACjC,CAAC;IAED,sBAAI,uCAAW;aAAf;YACE,OAAO,IAAI,CAAC,YAAY,CAAA;QAC1B,CAAC;;;OAAA;IAKD,sBAAI,gCAAI;QAHR;;WAEG;aACH;YACE,OAAO,IAAI,CAAC,KAAK,CAAA;QACnB,CAAC;aACD,UAAS,KAAmB;YAC1B,IAAI,KAAK,IAAI,YAAY,CAAC,SAAS,EAAE,CAAC;gBACpC,IAAI,CAAC,eAAe,CAAC,YAAY,GAAG;oBAClC,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,GAAG;iBACxB,CAAA;YACH,CAAC;iBAAM,IAAI,KAAK,IAAI,YAAY,CAAC,GAAG,EAAE,CAAC;gBACrC,IAAI,C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AS,CAAA;QACtC,CAAC;IACH,CAAC;IACH,qBAAC;AAAD,CAAC,AA/KD,CAAoC,YAAY,GA+K/C"}
@@ -1,42 +1,88 @@
1
1
  import { AcTrLayoutView } from './AcTrLayoutView';
2
2
  import { AcTrScene } from './AcTrScene';
3
+ /**
4
+ * Manages multiple layout views and coordinates active layout switching.
5
+ *
6
+ * This class serves as a central coordinator for all layout views in the CAD viewer.
7
+ * It handles:
8
+ * - Managing a collection of layout views indexed by their block table record IDs
9
+ * - Tracking and switching the active layout
10
+ * - Coordinating rendering operations across layout views
11
+ * - Managing view lifecycle (resize, enable/disable)
12
+ *
13
+ * The layout view manager ensures that only one layout is active at a time while
14
+ * maintaining the state of all layouts for quick switching. It provides a unified
15
+ * interface for layout operations regardless of which specific layout is active.
16
+ *
17
+ * @example
18
+ * ```typescript
19
+ * const manager = new AcTrLayoutViewManager();
20
+ * manager.add(layoutView);
21
+ * manager.activeLayoutBtrId = 'layout1';
22
+ * manager.render(scene);
23
+ * ```
24
+ */
3
25
  export declare class AcTrLayoutViewManager {
26
+ /** The block table record ID of the currently active layout */
4
27
  private _activeLayoutBtrId;
28
+ /** Map of layout views indexed by their block table record IDs */
5
29
  private _layoutViews;
30
+ /**
31
+ * Creates a new layout view manager instance.
32
+ * Initializes with no active layout and an empty collection of views.
33
+ */
6
34
  constructor();
7
35
  /**
8
- * The block table record id associated with the active layout
36
+ * The block table record id associated with the active layout.
37
+ * Setting this property switches the active layout and enables/disables
38
+ * the appropriate layout views.
9
39
  */
10
40
  get activeLayoutBtrId(): string;
11
41
  set activeLayoutBtrId(value: string);
12
42
  /**
13
43
  * The active layout view.
44
+ * Returns the layout view corresponding to the currently active layout,
45
+ * or undefined if no layout is active or the active layout doesn't exist.
14
46
  */
15
47
  get activeLayoutView(): AcTrLayoutView | undefined;
16
48
  /**
17
- * Return true if the layout view manager contains one layout view associated with the sepcified block
49
+ * Return true if the layout view manager contains one layout view associated with the specified block
18
50
  * table record id. Otherwise it returns false.
19
- * @param name Input the block table record id associated with the layout view
20
- * @returns Return true if the layout view manager contains one layout view associated with the sepcified
51
+ *
52
+ * @param layoutBtrId - Input the block table record id associated with the layout view
53
+ * @returns Return true if the layout view manager contains one layout view associated with the specified
21
54
  * block table record id. Otherwise it returns false.
22
55
  */
23
56
  has(layoutBtrId: string): boolean;
24
57
  /**
25
- * Get the layout view by the block table record id associated with the layout
26
- * @param layoutBtrId Input the id of the block table record associated the layout
27
- * @returns Return the layout view by the block table record id associated with the layout
58
+ * Get the layout view by the block table record id associated with the layout.
59
+ *
60
+ * @param layoutBtrId - Input the id of the block table record associated the layout
61
+ * @returns Return the layout view by the block table record id associated with the layout,
62
+ * or undefined if not found
28
63
  */
29
64
  getAt(layoutBtrId: string): AcTrLayoutView | undefined;
30
65
  /**
31
- * Resize all of layout views managed by layout view manager
32
- * @param width Input new width of the layout view
33
- * @param height Input new height of the layout view
66
+ * Resize all of layout views managed by layout view manager.
67
+ * This is typically called when the viewport or container size changes
68
+ * and all layouts need to update their dimensions.
69
+ *
70
+ * @param width - Input new width of the layout view in pixels
71
+ * @param height - Input new height of the layout view in pixels
34
72
  */
35
73
  resize(width: number, height: number): void;
74
+ /**
75
+ * Adds a layout view to the manager.
76
+ * The layout view is indexed by its block table record ID for fast lookup.
77
+ *
78
+ * @param layoutView - The layout view to add to the manager
79
+ */
36
80
  add(layoutView: AcTrLayoutView): void;
37
81
  /**
38
- * Render the specified scene in the current layout view
39
- * @param scene Input the scene to render
82
+ * Render the specified scene in the current layout view.
83
+ * Only renders the currently active layout view, if one is set.
84
+ *
85
+ * @param scene - Input the scene to render
40
86
  */
41
87
  render(scene: AcTrScene): void;
42
88
  }
@@ -1 +1 @@
1
- {"version":3,"file":"AcTrLayoutViewManager.d.ts","sourceRoot":"","sources":["../../src/view/AcTrLayoutViewManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,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ACH,GAAG,CAAC,UAAU,EAAE,cAAc;IAI9B;;;;;OAKG;IACH,MAAM,CAAC,KAAK,EAAE,SAAS;CAGxB"}
@@ -1,11 +1,39 @@
1
+ /**
2
+ * Manages multiple layout views and coordinates active layout switching.
3
+ *
4
+ * This class serves as a central coordinator for all layout views in the CAD viewer.
5
+ * It handles:
6
+ * - Managing a collection of layout views indexed by their block table record IDs
7
+ * - Tracking and switching the active layout
8
+ * - Coordinating rendering operations across layout views
9
+ * - Managing view lifecycle (resize, enable/disable)
10
+ *
11
+ * The layout view manager ensures that only one layout is active at a time while
12
+ * maintaining the state of all layouts for quick switching. It provides a unified
13
+ * interface for layout operations regardless of which specific layout is active.
14
+ *
15
+ * @example
16
+ * ```typescript
17
+ * const manager = new AcTrLayoutViewManager();
18
+ * manager.add(layoutView);
19
+ * manager.activeLayoutBtrId = 'layout1';
20
+ * manager.render(scene);
21
+ * ```
22
+ */
1
23
  var AcTrLayoutViewManager = /** @class */ (function () {
24
+ /**
25
+ * Creates a new layout view manager instance.
26
+ * Initializes with no active layout and an empty collection of views.
27
+ */
2
28
  function AcTrLayoutViewManager() {
3
29
  this._activeLayoutBtrId = '';
4
30
  this._layoutViews = new Map();
5
31
  }
6
32
  Object.defineProperty(AcTrLayoutViewManager.prototype, "activeLayoutBtrId", {
7
33
  /**
8
- * The block table record id associated with the active layout
34
+ * The block table record id associated with the active layout.
35
+ * Setting this property switches the active layout and enables/disables
36
+ * the appropriate layout views.
9
37
  */
10
38
  get: function () {
11
39
  return this._activeLayoutBtrId;
@@ -22,6 +50,8 @@ var AcTrLayoutViewManager = /** @class */ (function () {
22
50
  Object.defineProperty(AcTrLayoutViewManager.prototype, "activeLayoutView", {
23
51
  /**
24
52
  * The active layout view.
53
+ * Returns the layout view corresponding to the currently active layout,
54
+ * or undefined if no layout is active or the active layout doesn't exist.
25
55
  */
26
56
  get: function () {
27
57
  return this._layoutViews.get(this._activeLayoutBtrId);
@@ -30,39 +60,53 @@ var AcTrLayoutViewManager = /** @class */ (function () {
30
60
  configurable: true
31
61
  });
32
62
  /**
33
- * Return true if the layout view manager contains one layout view associated with the sepcified block
63
+ * Return true if the layout view manager contains one layout view associated with the specified block
34
64
  * table record id. Otherwise it returns false.
35
- * @param name Input the block table record id associated with the layout view
36
- * @returns Return true if the layout view manager contains one layout view associated with the sepcified
65
+ *
66
+ * @param layoutBtrId - Input the block table record id associated with the layout view
67
+ * @returns Return true if the layout view manager contains one layout view associated with the specified
37
68
  * block table record id. Otherwise it returns false.
38
69
  */
39
70
  AcTrLayoutViewManager.prototype.has = function (layoutBtrId) {
40
71
  return this._layoutViews.has(layoutBtrId);
41
72
  };
42
73
  /**
43
- * Get the layout view by the block table record id associated with the layout
44
- * @param layoutBtrId Input the id of the block table record associated the layout
45
- * @returns Return the layout view by the block table record id associated with the layout
74
+ * Get the layout view by the block table record id associated with the layout.
75
+ *
76
+ * @param layoutBtrId - Input the id of the block table record associated the layout
77
+ * @returns Return the layout view by the block table record id associated with the layout,
78
+ * or undefined if not found
46
79
  */
47
80
  AcTrLayoutViewManager.prototype.getAt = function (layoutBtrId) {
48
81
  return this._layoutViews.get(layoutBtrId);
49
82
  };
50
83
  /**
51
- * Resize all of layout views managed by layout view manager
52
- * @param width Input new width of the layout view
53
- * @param height Input new height of the layout view
84
+ * Resize all of layout views managed by layout view manager.
85
+ * This is typically called when the viewport or container size changes
86
+ * and all layouts need to update their dimensions.
87
+ *
88
+ * @param width - Input new width of the layout view in pixels
89
+ * @param height - Input new height of the layout view in pixels
54
90
  */
55
91
  AcTrLayoutViewManager.prototype.resize = function (width, height) {
56
92
  this._layoutViews.forEach(function (layoutView) {
57
93
  layoutView.resize(width, height);
58
94
  });
59
95
  };
96
+ /**
97
+ * Adds a layout view to the manager.
98
+ * The layout view is indexed by its block table record ID for fast lookup.
99
+ *
100
+ * @param layoutView - The layout view to add to the manager
101
+ */
60
102
  AcTrLayoutViewManager.prototype.add = function (layoutView) {
61
103
  this._layoutViews.set(layoutView.layoutBtrId, layoutView);
62
104
  };
63
105
  /**
64
- * Render the specified scene in the current layout view
65
- * @param scene Input the scene to render
106
+ * Render the specified scene in the current layout view.
107
+ * Only renders the currently active layout view, if one is set.
108
+ *
109
+ * @param scene - Input the scene to render
66
110
  */
67
111
  AcTrLayoutViewManager.prototype.render = function (scene) {
68
112
  var _a;
@@ -1 +1 @@
1
- {"version":3,"file":"AcTrLayoutViewManager.js","sourceRoot":"","sources":["../../src/view/AcTrLayoutViewManager.ts"],"names":[],"mappings":"AAGA;IAIE;QACE,IAAI,CAAC,kBAAkB,GAAG,EAAE,CAAA;QAC5B,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,EAAE,CAAA;IAC/B,CAAC;IAKD,sBAAI,oDAAiB;QAHrB;;WAEG;aACH;YACE,OAAO,IAAI,CAAC,kBAAkB,CAAA;QAChC,CAAC;aACD,UAAsB,KAAa;YACjC,IAAI,CAAC,kBAAkB,GAAG,KAAK,CAAA;YAC/B,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,UAAA,UAAU;gBAClC,UAAU,CAAC,OAAO,GAAG,UAAU,CAAC,WAAW,IAAI,KAAK,CAAA;YACtD,CAAC,CAAC,CAAA;QACJ,CAAC;;;OANA;IAWD,sBAAI,mDAAgB;QAHpB;;WAEG;aACH;YACE,OAAO,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAA;QACvD,CAAC;;;OAAA;IAED;;;;;;OAMG;IACH,mCAAG,GAAH,UAAI,WAAmB;QACrB,OAAO,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,WAAW,CAAC,CAAA;IAC3C,CAAC;IAED;;;;OAIG;IACH,qCAAK,GAAL,UAAM,WAAmB;QACvB,OAAO,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,WAAW,CAAC,CAAA;IAC3C,CAAC;IAED;;;;OAIG;IACH,sCAAM,GAAN,UAAO,KAAa,EAAE,MAAc;QAClC,IAAI,CAAC,YAAY,C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,GAAG,CAAC,WAAW,CAAC,CAAA;IAC3C,CAAC;IAED;;;;;;OAMG;IACH,qCAAK,GAAL,UAAM,WAAmB;QACvB,OAAO,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,WAAW,CAAC,CAAA;IAC3C,CAAC;IAED;;;;;;;OAOG;IACH,sCAAM,GAAN,UAAO,KAAa,EAAE,MAAc;QAClC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,UAAA,UAAU;YAClC,UAAU,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,CAAA;QAClC,CAAC,CAAC,CAAA;IACJ,CAAC;IAED;;;;;OAKG;IACH,mCAAG,GAAH,UAAI,UAA0B;QAC5B,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,CAAA;IAC3D,CAAC;IAED;;;;;OAKG;IACH,sCAAM,GAAN,UAAO,KAAgB;;QACrB,MAAA,IAAI,CAAC,gBAAgB,0CAAE,MAAM,CAAC,KAAK,CAAC,CAAA;IACtC,CAAC;IACH,4BAAC;AAAD,CAAC,AA/FD,IA+FC"}
@@ -3,16 +3,60 @@ import { AcTrEntity, AcTrObject } from '@mlightcad/three-renderer';
3
3
  import * as THREE from 'three';
4
4
  import { AcTrLayout, AcTrLayoutStats } from './AcTrLayout';
5
5
  /**
6
- * The scene is orginaized according to the following hierarchy.
7
- * - layout (AcTrLayout)
8
- * - layer (AcTrLayer)
9
- * - entity (AcTrEntity)
6
+ * Three.js scene manager for CAD drawings with hierarchical organization.
7
+ *
8
+ * The scene manages the complete visual representation of a CAD drawing using
9
+ * a hierarchical structure that mirrors CAD data organization:
10
+ *
11
+ * ```
12
+ * Scene
13
+ * └── Layout (AcTrLayout) - Paper space or model space
14
+ * └── Layer (AcTrLayer) - Drawing layers for organization
15
+ * └── Entity (AcTrEntity) - Individual CAD entities (lines, arcs, etc.)
16
+ * ```
17
+ *
18
+ * ## Key Responsibilities
19
+ * - **Layout Management**: Handles multiple layouts (model space and paper spaces)
20
+ * - **Layer Organization**: Manages layer visibility and entity grouping
21
+ * - **Entity Rendering**: Provides access to all renderable CAD entities
22
+ * - **Spatial Queries**: Calculates bounding boxes and spatial relationships
23
+ * - **Three.js Integration**: Maintains the underlying Three.js scene
24
+ *
25
+ * The scene automatically manages the active layout and provides efficient
26
+ * access to entities for rendering, selection, and spatial operations.
27
+ *
28
+ * @example
29
+ * ```typescript
30
+ * const scene = new AcTrScene();
31
+ *
32
+ * // Set up model space
33
+ * scene.modelSpaceBtrId = modelSpaceId;
34
+ *
35
+ * // Add entities to layers
36
+ * const entity = new AcTrLine(...);
37
+ * scene.addEntity(entity, layerName);
38
+ *
39
+ * // Get all visible entities for rendering
40
+ * const entities = scene.getAllEntities();
41
+ *
42
+ * // Get scene bounds for zoom operations
43
+ * const bounds = scene.box;
44
+ * ```
10
45
  */
11
46
  export declare class AcTrScene {
47
+ /** The underlying Three.js scene object */
12
48
  private _scene;
49
+ /** Map of layout ID to layout object */
13
50
  private _layouts;
51
+ /** ID of the currently active layout */
14
52
  private _activeLayoutBtrId;
53
+ /** ID of the model space layout */
15
54
  private _modelSpaceBtrId;
55
+ /**
56
+ * Creates a new CAD scene instance.
57
+ *
58
+ * Initializes the Three.js scene and layout management structures.
59
+ */
16
60
  constructor();
17
61
  /**
18
62
  * The layouts in this scene
@@ -1 +1 @@
1
- {"version":3,"file":"AcTrScene.d.ts","sourceRoot":"","sources":["../../src/view/AcTrScene.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAC1E,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAClE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAE1D;;;;;GAKG;AACH,qBAAa,SAAS;IACpB,OAAO,CAAC,MAAM,CA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