@2112-lab/central-plant 0.3.7 → 0.3.9
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/bundle/index.js
CHANGED
|
@@ -37761,6 +37761,14 @@ var CentralPlantInternals = /*#__PURE__*/function () {
|
|
|
37761
37761
|
});
|
|
37762
37762
|
console.log("\uD83D\uDCE1 Emitted 'component-removed' event for ".concat(componentId));
|
|
37763
37763
|
}
|
|
37764
|
+
|
|
37765
|
+
// Auto-update paths if enabled (mirrors behaviour of transformOperationsManager)
|
|
37766
|
+
if (this.centralPlant.sceneViewer.shouldUpdatePaths) {
|
|
37767
|
+
if (typeof this.centralPlant.sceneViewer.updatePaths === 'function') {
|
|
37768
|
+
console.log('🔄 deleteComponent(): Auto-updating paths after delete...');
|
|
37769
|
+
this.centralPlant.sceneViewer.updatePaths();
|
|
37770
|
+
}
|
|
37771
|
+
}
|
|
37764
37772
|
console.log("\u2705 deleteComponent(): Component ".concat(componentId, " deleted successfully"));
|
|
37765
37773
|
return true;
|
|
37766
37774
|
} else {
|
|
@@ -37821,7 +37829,7 @@ var CentralPlant = /*#__PURE__*/function (_BaseDisposable) {
|
|
|
37821
37829
|
* Initialize the CentralPlant manager
|
|
37822
37830
|
*
|
|
37823
37831
|
* @constructor
|
|
37824
|
-
* @version 0.3.
|
|
37832
|
+
* @version 0.3.9
|
|
37825
37833
|
* @updated 2025-10-22
|
|
37826
37834
|
*
|
|
37827
37835
|
* @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.
|
|
38
|
+
* @version 0.3.9
|
|
39
39
|
* @updated 2025-10-22
|
|
40
40
|
*
|
|
41
41
|
* @description Creates a new CentralPlant instance and initializes internal managers and utilities.
|
|
@@ -1268,6 +1268,14 @@ var CentralPlantInternals = /*#__PURE__*/function () {
|
|
|
1268
1268
|
});
|
|
1269
1269
|
console.log("\uD83D\uDCE1 Emitted 'component-removed' event for ".concat(componentId));
|
|
1270
1270
|
}
|
|
1271
|
+
|
|
1272
|
+
// Auto-update paths if enabled (mirrors behaviour of transformOperationsManager)
|
|
1273
|
+
if (this.centralPlant.sceneViewer.shouldUpdatePaths) {
|
|
1274
|
+
if (typeof this.centralPlant.sceneViewer.updatePaths === 'function') {
|
|
1275
|
+
console.log('🔄 deleteComponent(): Auto-updating paths after delete...');
|
|
1276
|
+
this.centralPlant.sceneViewer.updatePaths();
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1271
1279
|
console.log("\u2705 deleteComponent(): Component ".concat(componentId, " deleted successfully"));
|
|
1272
1280
|
return true;
|
|
1273
1281
|
} else {
|
|
@@ -31,7 +31,7 @@ var CentralPlant = /*#__PURE__*/function (_BaseDisposable) {
|
|
|
31
31
|
* Initialize the CentralPlant manager
|
|
32
32
|
*
|
|
33
33
|
* @constructor
|
|
34
|
-
* @version 0.3.
|
|
34
|
+
* @version 0.3.9
|
|
35
35
|
* @updated 2025-10-22
|
|
36
36
|
*
|
|
37
37
|
* @description Creates a new CentralPlant instance and initializes internal managers and utilities.
|
|
@@ -1244,6 +1244,14 @@ var CentralPlantInternals = /*#__PURE__*/function () {
|
|
|
1244
1244
|
});
|
|
1245
1245
|
console.log("\uD83D\uDCE1 Emitted 'component-removed' event for ".concat(componentId));
|
|
1246
1246
|
}
|
|
1247
|
+
|
|
1248
|
+
// Auto-update paths if enabled (mirrors behaviour of transformOperationsManager)
|
|
1249
|
+
if (this.centralPlant.sceneViewer.shouldUpdatePaths) {
|
|
1250
|
+
if (typeof this.centralPlant.sceneViewer.updatePaths === 'function') {
|
|
1251
|
+
console.log('🔄 deleteComponent(): Auto-updating paths after delete...');
|
|
1252
|
+
this.centralPlant.sceneViewer.updatePaths();
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1247
1255
|
console.log("\u2705 deleteComponent(): Component ".concat(componentId, " deleted successfully"));
|
|
1248
1256
|
return true;
|
|
1249
1257
|
} else {
|