@2112-lab/central-plant 0.3.6 → 0.3.7

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.
@@ -30388,6 +30388,11 @@ var SceneClearingUtility = /*#__PURE__*/function () {
30388
30388
  this.sceneViewer.currentSceneData.connections = [];
30389
30389
  }
30390
30390
 
30391
+ // Clear the JSON data mirror so getAvailableConnections() returns nothing
30392
+ if (this.sceneViewer.currentSceneData && this.sceneViewer.currentSceneData.scene) {
30393
+ this.sceneViewer.currentSceneData.scene.children = [];
30394
+ }
30395
+
30391
30396
  // Reset component counter for CentralPlant
30392
30397
  if (this.sceneViewer.centralPlant && this.sceneViewer.centralPlant.componentCounter !== undefined) {
30393
30398
  this.sceneViewer.centralPlant.componentCounter = 0;
@@ -37816,7 +37821,7 @@ var CentralPlant = /*#__PURE__*/function (_BaseDisposable) {
37816
37821
  * Initialize the CentralPlant manager
37817
37822
  *
37818
37823
  * @constructor
37819
- * @version 0.3.6
37824
+ * @version 0.3.7
37820
37825
  * @updated 2025-10-22
37821
37826
  *
37822
37827
  * @description Creates a new CentralPlant instance and initializes internal managers and utilities.
@@ -35,7 +35,7 @@ var CentralPlant = /*#__PURE__*/function (_BaseDisposable) {
35
35
  * Initialize the CentralPlant manager
36
36
  *
37
37
  * @constructor
38
- * @version 0.3.6
38
+ * @version 0.3.7
39
39
  * @updated 2025-10-22
40
40
  *
41
41
  * @description Creates a new CentralPlant instance and initializes internal managers and utilities.
@@ -480,6 +480,11 @@ var SceneClearingUtility = /*#__PURE__*/function () {
480
480
  this.sceneViewer.currentSceneData.connections = [];
481
481
  }
482
482
 
483
+ // Clear the JSON data mirror so getAvailableConnections() returns nothing
484
+ if (this.sceneViewer.currentSceneData && this.sceneViewer.currentSceneData.scene) {
485
+ this.sceneViewer.currentSceneData.scene.children = [];
486
+ }
487
+
483
488
  // Reset component counter for CentralPlant
484
489
  if (this.sceneViewer.centralPlant && this.sceneViewer.centralPlant.componentCounter !== undefined) {
485
490
  this.sceneViewer.centralPlant.componentCounter = 0;
@@ -31,7 +31,7 @@ var CentralPlant = /*#__PURE__*/function (_BaseDisposable) {
31
31
  * Initialize the CentralPlant manager
32
32
  *
33
33
  * @constructor
34
- * @version 0.3.6
34
+ * @version 0.3.7
35
35
  * @updated 2025-10-22
36
36
  *
37
37
  * @description Creates a new CentralPlant instance and initializes internal managers and utilities.
@@ -476,6 +476,11 @@ var SceneClearingUtility = /*#__PURE__*/function () {
476
476
  this.sceneViewer.currentSceneData.connections = [];
477
477
  }
478
478
 
479
+ // Clear the JSON data mirror so getAvailableConnections() returns nothing
480
+ if (this.sceneViewer.currentSceneData && this.sceneViewer.currentSceneData.scene) {
481
+ this.sceneViewer.currentSceneData.scene.children = [];
482
+ }
483
+
479
484
  // Reset component counter for CentralPlant
480
485
  if (this.sceneViewer.centralPlant && this.sceneViewer.centralPlant.componentCounter !== undefined) {
481
486
  this.sceneViewer.centralPlant.componentCounter = 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2112-lab/central-plant",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "description": "Utility modules for the Central Plant Application",
5
5
  "main": "dist/bundle/index.js",
6
6
  "module": "dist/esm/src/index.js",