@2112-lab/central-plant 0.1.67 → 0.1.69

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.
@@ -25931,7 +25931,19 @@ var PathRenderingManager = /*#__PURE__*/function (_BaseDisposable) {
25931
25931
  continue;
25932
25932
  }
25933
25933
  var cylinderGeometry = new THREE__namespace.CylinderGeometry(pipeRadius, pipeRadius, length, 16, 1, false);
25934
- var cylinder = new THREE__namespace.Mesh(cylinderGeometry, pipeMaterial);
25934
+
25935
+ // Determine material (debug red if rectified and in dev mode)
25936
+ var materialToUse = pipeMaterial;
25937
+
25938
+ // Check for dev mode
25939
+ var isDev = typeof window !== 'undefined' && (window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1' || !window.location.hostname.includes('production') && !window.location.hostname.includes('prod'));
25940
+ if (isDev && pathData.rectifiedSegments && pathData.rectifiedSegments.includes(j)) {
25941
+ // Create red debug material by cloning the pipe material to match the look
25942
+ materialToUse = pipeMaterial.clone();
25943
+ materialToUse.color.setHex(0xff0000);
25944
+ console.log("\uD83C\uDFA8 Coloring rectified segment ".concat(j, " red"));
25945
+ }
25946
+ var cylinder = new THREE__namespace.Mesh(cylinderGeometry, materialToUse);
25935
25947
  var centerPoint = new THREE__namespace.Vector3().copy(start).add(end).multiplyScalar(0.5);
25936
25948
  cylinder.position.copy(centerPoint);
25937
25949
  var quaternion = new THREE__namespace.Quaternion();
@@ -34605,7 +34617,7 @@ var CentralPlant = /*#__PURE__*/function (_BaseDisposable) {
34605
34617
  * Initialize the CentralPlant manager
34606
34618
  *
34607
34619
  * @constructor
34608
- * @version 0.1.67
34620
+ * @version 0.1.69
34609
34621
  * @updated 2025-10-22
34610
34622
  *
34611
34623
  * @description Creates a new CentralPlant instance and initializes internal managers and utilities.
@@ -19,7 +19,7 @@ var CentralPlant = /*#__PURE__*/function (_BaseDisposable) {
19
19
  * Initialize the CentralPlant manager
20
20
  *
21
21
  * @constructor
22
- * @version 0.1.67
22
+ * @version 0.1.69
23
23
  * @updated 2025-10-22
24
24
  *
25
25
  * @description Creates a new CentralPlant instance and initializes internal managers and utilities.
@@ -245,7 +245,19 @@ var PathRenderingManager = /*#__PURE__*/function (_BaseDisposable) {
245
245
  continue;
246
246
  }
247
247
  var cylinderGeometry = new THREE__namespace.CylinderGeometry(pipeRadius, pipeRadius, length, 16, 1, false);
248
- var cylinder = new THREE__namespace.Mesh(cylinderGeometry, pipeMaterial);
248
+
249
+ // Determine material (debug red if rectified and in dev mode)
250
+ var materialToUse = pipeMaterial;
251
+
252
+ // Check for dev mode
253
+ var isDev = typeof window !== 'undefined' && (window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1' || !window.location.hostname.includes('production') && !window.location.hostname.includes('prod'));
254
+ if (isDev && pathData.rectifiedSegments && pathData.rectifiedSegments.includes(j)) {
255
+ // Create red debug material by cloning the pipe material to match the look
256
+ materialToUse = pipeMaterial.clone();
257
+ materialToUse.color.setHex(0xff0000);
258
+ console.log("\uD83C\uDFA8 Coloring rectified segment ".concat(j, " red"));
259
+ }
260
+ var cylinder = new THREE__namespace.Mesh(cylinderGeometry, materialToUse);
249
261
  var centerPoint = new THREE__namespace.Vector3().copy(start).add(end).multiplyScalar(0.5);
250
262
  cylinder.position.copy(centerPoint);
251
263
  var quaternion = new THREE__namespace.Quaternion();
@@ -15,7 +15,7 @@ var CentralPlant = /*#__PURE__*/function (_BaseDisposable) {
15
15
  * Initialize the CentralPlant manager
16
16
  *
17
17
  * @constructor
18
- * @version 0.1.67
18
+ * @version 0.1.69
19
19
  * @updated 2025-10-22
20
20
  *
21
21
  * @description Creates a new CentralPlant instance and initializes internal managers and utilities.
@@ -221,7 +221,19 @@ var PathRenderingManager = /*#__PURE__*/function (_BaseDisposable) {
221
221
  continue;
222
222
  }
223
223
  var cylinderGeometry = new THREE.CylinderGeometry(pipeRadius, pipeRadius, length, 16, 1, false);
224
- var cylinder = new THREE.Mesh(cylinderGeometry, pipeMaterial);
224
+
225
+ // Determine material (debug red if rectified and in dev mode)
226
+ var materialToUse = pipeMaterial;
227
+
228
+ // Check for dev mode
229
+ var isDev = typeof window !== 'undefined' && (window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1' || !window.location.hostname.includes('production') && !window.location.hostname.includes('prod'));
230
+ if (isDev && pathData.rectifiedSegments && pathData.rectifiedSegments.includes(j)) {
231
+ // Create red debug material by cloning the pipe material to match the look
232
+ materialToUse = pipeMaterial.clone();
233
+ materialToUse.color.setHex(0xff0000);
234
+ console.log("\uD83C\uDFA8 Coloring rectified segment ".concat(j, " red"));
235
+ }
236
+ var cylinder = new THREE.Mesh(cylinderGeometry, materialToUse);
225
237
  var centerPoint = new THREE.Vector3().copy(start).add(end).multiplyScalar(0.5);
226
238
  cylinder.position.copy(centerPoint);
227
239
  var quaternion = new THREE.Quaternion();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2112-lab/central-plant",
3
- "version": "0.1.67",
3
+ "version": "0.1.69",
4
4
  "description": "Utility modules for the Central Plant Application",
5
5
  "main": "dist/bundle/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -31,7 +31,7 @@
31
31
  "author": "CentralPlant Team",
32
32
  "license": "MIT",
33
33
  "dependencies": {
34
- "@2112-lab/pathfinder": "^1.0.34",
34
+ "@2112-lab/pathfinder": "^1.0.38",
35
35
  "stats.js": "^0.17.0",
36
36
  "three": "^0.177.0"
37
37
  },