@2112-lab/central-plant 0.3.35 → 0.3.37

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.
@@ -180,17 +180,14 @@ var ModelPreloader = /*#__PURE__*/function () {
180
180
  _context3.n = 1;
181
181
  break;
182
182
  }
183
- console.log("\uD83C\uDFAF Model ".concat(modelKey, " already cached, skipping"));
184
183
  return _context3.a(2, this.modelCache.get(modelKey));
185
184
  case 1:
186
185
  if (!this.loadingPromises.has(modelKey)) {
187
186
  _context3.n = 2;
188
187
  break;
189
188
  }
190
- console.log("\u23F3 Model ".concat(modelKey, " already loading, waiting for completion"));
191
189
  return _context3.a(2, this.loadingPromises.get(modelKey));
192
190
  case 2:
193
- console.log("\uD83D\uDD04 Starting preload of GLB model: ".concat(modelKey));
194
191
  loadPromise = new Promise(/*#__PURE__*/function () {
195
192
  var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(resolve, reject) {
196
193
  var modelPath, _t;
@@ -206,7 +203,6 @@ var ModelPreloader = /*#__PURE__*/function () {
206
203
  return _this2.urlResolver(modelKey);
207
204
  case 2:
208
205
  modelPath = _context2.v;
209
- console.log("\uD83D\uDD17 Resolved URL for ".concat(modelKey, ":"), modelPath.substring(0, 100) + '...');
210
206
  _context2.n = 4;
211
207
  break;
212
208
  case 3:
@@ -220,11 +216,9 @@ var ModelPreloader = /*#__PURE__*/function () {
220
216
  break;
221
217
  case 5:
222
218
  modelPath = "".concat(_this2.modelsBasePath).concat(modelKey);
223
- console.log("\uD83D\uDCC2 Loading from: ".concat(modelPath));
224
219
  case 6:
225
220
  // Load GLB model
226
221
  _this2.gltfLoader.load(modelPath, function (gltf) {
227
- console.log("\u2705 Successfully preloaded GLB model: ".concat(modelKey));
228
222
  // Cache the scene for future use
229
223
  _this2.modelCache.set(modelKey, gltf.scene);
230
224
 
@@ -243,13 +237,6 @@ var ModelPreloader = /*#__PURE__*/function () {
243
237
  resolve(gltf.scene);
244
238
  }, function (progress) {
245
239
  // Optional: track loading progress
246
- if (progress.lengthComputable) {
247
- var percentage = progress.loaded / progress.total * 100;
248
- if (percentage % 25 === 0) {
249
- // Log every 25%
250
- console.log("\uD83D\uDCCA Loading GLB ".concat(modelKey, ": ").concat(percentage.toFixed(0), "%"));
251
- }
252
- }
253
240
  }, function (error) {
254
241
  console.error("\u274C Failed to preload GLB model ".concat(modelKey, ":"), error);
255
242
  // Remove from loading promises
@@ -287,13 +274,10 @@ var ModelPreloader = /*#__PURE__*/function () {
287
274
  value: function getCachedModel(modelKey) {
288
275
  var useIndexedGeometry = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
289
276
  if (this.modelCache.has(modelKey)) {
290
- console.log("\uD83C\uDFAF Returning cached model: ".concat(modelKey));
291
277
  var cachedData = this.modelCache.get(modelKey);
292
278
 
293
279
  // Handle OBJ models with processed geometry
294
280
  if (cachedData && cachedData.isObjModel && useIndexedGeometry && cachedData.processedGeometry) {
295
- console.log("\uD83D\uDD27 Using indexed BufferGeometry for OBJ: ".concat(modelKey));
296
-
297
281
  // Create a mesh from the processed indexed geometry
298
282
  var mesh = new THREE.Mesh(cachedData.processedGeometry.clone(), cachedData.materials.clone());
299
283
 
@@ -529,7 +513,7 @@ var ModelPreloader = /*#__PURE__*/function () {
529
513
  }
530
514
 
531
515
  // Model not cached, need to load it
532
- console.log("\uD83D\uDD04 Loading model for library ID ".concat(libraryId, ": ").concat(modelKey));
516
+ // Loading model for library ID
533
517
  this.preloadSingleModel(modelKey).then(function (model) {
534
518
  if (model) {
535
519
  var _clonedModel = model.clone();
@@ -57,7 +57,6 @@ function _attachIODevicesToComponent() {
57
57
  _context.n = 10;
58
58
  break;
59
59
  }
60
- console.log("\uD83D\uDD04 IO device model not in cache, preloading: ".concat(deviceData.modelKey));
61
60
  _context.p = 5;
62
61
  if (!((_modelPreloader$loadi = modelPreloader.loadingPromises) !== null && _modelPreloader$loadi !== void 0 && _modelPreloader$loadi.has(deviceData.modelKey))) {
63
62
  _context.n = 7;
@@ -139,10 +138,6 @@ function _attachIODevicesToComponent() {
139
138
 
140
139
  // Add as child of the component
141
140
  componentModel.add(deviceModel);
142
- console.log("\u2705 Attached IO device: ".concat(attachment.attachmentLabel || attachment.deviceId, " at"), {
143
- position: deviceModel.position,
144
- scale: deviceModel.scale
145
- });
146
141
  _context.n = 13;
147
142
  break;
148
143
  case 12:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2112-lab/central-plant",
3
- "version": "0.3.35",
3
+ "version": "0.3.37",
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",