@2112-lab/central-plant 0.2.1 → 0.2.3

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.
@@ -6555,26 +6555,7 @@ var ThreeJSResourceManager = /*#__PURE__*/function (_BaseDisposable) {
6555
6555
  }]);
6556
6556
  }(BaseDisposable);
6557
6557
 
6558
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
6559
-
6560
- function getDefaultExportFromCjs (x) {
6561
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
6562
- }
6563
-
6564
- var stats_min = {exports: {}};
6565
-
6566
- stats_min.exports;
6567
-
6568
- (function (module, exports) {
6569
- // stats.js - http://github.com/mrdoob/stats.js
6570
- (function(f,e){module.exports=e();})(commonjsGlobal,function(){var f=function(){function e(a){c.appendChild(a.dom);return a}function u(a){for(var d=0;d<c.children.length;d++)c.children[d].style.display=d===a?"block":"none";l=a;}var l=0,c=document.createElement("div");c.style.cssText="position:fixed;top:0;left:0;cursor:pointer;opacity:0.9;z-index:10000";c.addEventListener("click",function(a){a.preventDefault();
6571
- u(++l%c.children.length);},!1);var k=(performance||Date).now(),g=k,a=0,r=e(new f.Panel("FPS","#0ff","#002")),h=e(new f.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var t=e(new f.Panel("MB","#f08","#201"));u(0);return {REVISION:16,dom:c,addPanel:e,showPanel:u,begin:function(){k=(performance||Date).now();},end:function(){a++;var c=(performance||Date).now();h.update(c-k,200);if(c>g+1E3&&(r.update(1E3*a/(c-g),100),g=c,a=0,t)){var d=performance.memory;t.update(d.usedJSHeapSize/
6572
- 1048576,d.jsHeapSizeLimit/1048576);}return c},update:function(){k=this.end();},domElement:c,setMode:u}};f.Panel=function(e,f,l){var c=Infinity,k=0,g=Math.round,a=g(window.devicePixelRatio||1),r=80*a,h=48*a,t=3*a,v=2*a,d=3*a,m=15*a,n=74*a,p=30*a,q=document.createElement("canvas");q.width=r;q.height=h;q.style.cssText="width:80px;height:48px";var b=q.getContext("2d");b.font="bold "+9*a+"px Helvetica,Arial,sans-serif";b.textBaseline="top";b.fillStyle=l;b.fillRect(0,0,r,h);b.fillStyle=f;b.fillText(e,t,v);
6573
- b.fillRect(d,m,n,p);b.fillStyle=l;b.globalAlpha=.9;b.fillRect(d,m,n,p);return {dom:q,update:function(h,w){c=Math.min(c,h);k=Math.max(k,h);b.fillStyle=l;b.globalAlpha=1;b.fillRect(0,0,r,m);b.fillStyle=f;b.fillText(g(h)+" "+e+" ("+g(c)+"-"+g(k)+")",t,v);b.drawImage(q,d+a,m,n-a,p,d,m,n-a,p);b.fillRect(d+n-a,m,a,p);b.fillStyle=l;b.globalAlpha=.9;b.fillRect(d+n-a,m,a,g((1-h/w)*p));}}};return f});
6574
- } (stats_min, stats_min.exports));
6575
-
6576
- var stats_minExports = stats_min.exports;
6577
- var Stats = /*@__PURE__*/getDefaultExportFromCjs(stats_minExports);
6558
+ // import Stats from 'stats.js'
6578
6559
 
6579
6560
  /**
6580
6561
  * Performance Monitor Manager
@@ -6627,7 +6608,7 @@ var PerformanceMonitorManager = /*#__PURE__*/function (_BaseDisposable) {
6627
6608
  value: function init() {
6628
6609
  try {
6629
6610
  this.createContainer();
6630
- this.initializeStats();
6611
+ // this.initializeStats()
6631
6612
  this.setupCustomMetrics();
6632
6613
  this.setupUpdateLoop();
6633
6614
  this.isEnabled = true;
@@ -6659,12 +6640,12 @@ var PerformanceMonitorManager = /*#__PURE__*/function (_BaseDisposable) {
6659
6640
  key: "initializeStats",
6660
6641
  value: function initializeStats() {
6661
6642
  // FPS Stats
6662
- this.fpsStats = new Stats();
6663
- this.fpsStats.showPanel(0); // FPS panel
6664
- this.fpsStats.dom.style.position = 'relative';
6665
- this.fpsStats.dom.style.pointerEvents = 'auto';
6666
- this.container.appendChild(this.fpsStats.dom);
6667
- this.registerDisposable(this.fpsStats, 'fpsStats');
6643
+ // this.fpsStats = new Stats()
6644
+ // this.fpsStats.showPanel(0) // FPS panel
6645
+ // this.fpsStats.dom.style.position = 'relative'
6646
+ // this.fpsStats.dom.style.pointerEvents = 'auto'
6647
+ // this.container.appendChild(this.fpsStats.dom)
6648
+ // this.registerDisposable(this.fpsStats, 'fpsStats')
6668
6649
  }
6669
6650
 
6670
6651
  /**
@@ -37233,7 +37214,7 @@ var CentralPlant = /*#__PURE__*/function (_BaseDisposable) {
37233
37214
  * Initialize the CentralPlant manager
37234
37215
  *
37235
37216
  * @constructor
37236
- * @version 0.2.1
37217
+ * @version 0.2.3
37237
37218
  * @updated 2025-10-22
37238
37219
  *
37239
37220
  * @description Creates a new CentralPlant instance and initializes internal managers and utilities.
@@ -40280,8 +40261,10 @@ var sceneViewer = /*#__PURE__*/function (_BaseDisposable) {
40280
40261
  // Update renderer size (updateStyle=true to sync canvas CSS)
40281
40262
  this.renderer.setSize(width, height, true);
40282
40263
 
40283
- // Force renderer to clear and re-render to prevent blank screen
40284
- this.renderer.clear();
40264
+ // Immediately re-render so the canvas is never composited blank
40265
+ if (this.scene) {
40266
+ this.renderer.render(this.scene, this.camera);
40267
+ }
40285
40268
 
40286
40269
  // Update tooltips manager if available
40287
40270
  if (this.tooltipsManager) {
@@ -19,7 +19,7 @@ var CentralPlant = /*#__PURE__*/function (_BaseDisposable) {
19
19
  * Initialize the CentralPlant manager
20
20
  *
21
21
  * @constructor
22
- * @version 0.2.1
22
+ * @version 0.2.3
23
23
  * @updated 2025-10-22
24
24
  *
25
25
  * @description Creates a new CentralPlant instance and initializes internal managers and utilities.
@@ -296,8 +296,10 @@ var sceneViewer = /*#__PURE__*/function (_BaseDisposable) {
296
296
  // Update renderer size (updateStyle=true to sync canvas CSS)
297
297
  this.renderer.setSize(width, height, true);
298
298
 
299
- // Force renderer to clear and re-render to prevent blank screen
300
- this.renderer.clear();
299
+ // Immediately re-render so the canvas is never composited blank
300
+ if (this.scene) {
301
+ this.renderer.render(this.scene, this.camera);
302
+ }
301
303
 
302
304
  // Update tooltips manager if available
303
305
  if (this.tooltipsManager) {
@@ -4,7 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
6
6
  var baseDisposable = require('../../core/baseDisposable.js');
7
- var stats_min = require('../../../node_modules/stats.js/build/stats.min.js');
7
+
8
+ // import Stats from 'stats.js'
8
9
 
9
10
  /**
10
11
  * Performance Monitor Manager
@@ -57,7 +58,7 @@ var PerformanceMonitorManager = /*#__PURE__*/function (_BaseDisposable) {
57
58
  value: function init() {
58
59
  try {
59
60
  this.createContainer();
60
- this.initializeStats();
61
+ // this.initializeStats()
61
62
  this.setupCustomMetrics();
62
63
  this.setupUpdateLoop();
63
64
  this.isEnabled = true;
@@ -89,12 +90,12 @@ var PerformanceMonitorManager = /*#__PURE__*/function (_BaseDisposable) {
89
90
  key: "initializeStats",
90
91
  value: function initializeStats() {
91
92
  // FPS Stats
92
- this.fpsStats = new stats_min["default"]();
93
- this.fpsStats.showPanel(0); // FPS panel
94
- this.fpsStats.dom.style.position = 'relative';
95
- this.fpsStats.dom.style.pointerEvents = 'auto';
96
- this.container.appendChild(this.fpsStats.dom);
97
- this.registerDisposable(this.fpsStats, 'fpsStats');
93
+ // this.fpsStats = new Stats()
94
+ // this.fpsStats.showPanel(0) // FPS panel
95
+ // this.fpsStats.dom.style.position = 'relative'
96
+ // this.fpsStats.dom.style.pointerEvents = 'auto'
97
+ // this.container.appendChild(this.fpsStats.dom)
98
+ // this.registerDisposable(this.fpsStats, 'fpsStats')
98
99
  }
99
100
 
100
101
  /**
@@ -15,7 +15,7 @@ var CentralPlant = /*#__PURE__*/function (_BaseDisposable) {
15
15
  * Initialize the CentralPlant manager
16
16
  *
17
17
  * @constructor
18
- * @version 0.2.1
18
+ * @version 0.2.3
19
19
  * @updated 2025-10-22
20
20
  *
21
21
  * @description Creates a new CentralPlant instance and initializes internal managers and utilities.
@@ -292,8 +292,10 @@ var sceneViewer = /*#__PURE__*/function (_BaseDisposable) {
292
292
  // Update renderer size (updateStyle=true to sync canvas CSS)
293
293
  this.renderer.setSize(width, height, true);
294
294
 
295
- // Force renderer to clear and re-render to prevent blank screen
296
- this.renderer.clear();
295
+ // Immediately re-render so the canvas is never composited blank
296
+ if (this.scene) {
297
+ this.renderer.render(this.scene, this.camera);
298
+ }
297
299
 
298
300
  // Update tooltips manager if available
299
301
  if (this.tooltipsManager) {
@@ -1,6 +1,7 @@
1
1
  import { inherits as _inherits, createClass as _createClass, objectSpread2 as _objectSpread2, superPropGet as _superPropGet, classCallCheck as _classCallCheck, callSuper as _callSuper } from '../../../_virtual/_rollupPluginBabelHelpers.js';
2
2
  import { BaseDisposable } from '../../core/baseDisposable.js';
3
- import Stats from '../../../node_modules/stats.js/build/stats.min.js';
3
+
4
+ // import Stats from 'stats.js'
4
5
 
5
6
  /**
6
7
  * Performance Monitor Manager
@@ -53,7 +54,7 @@ var PerformanceMonitorManager = /*#__PURE__*/function (_BaseDisposable) {
53
54
  value: function init() {
54
55
  try {
55
56
  this.createContainer();
56
- this.initializeStats();
57
+ // this.initializeStats()
57
58
  this.setupCustomMetrics();
58
59
  this.setupUpdateLoop();
59
60
  this.isEnabled = true;
@@ -85,12 +86,12 @@ var PerformanceMonitorManager = /*#__PURE__*/function (_BaseDisposable) {
85
86
  key: "initializeStats",
86
87
  value: function initializeStats() {
87
88
  // FPS Stats
88
- this.fpsStats = new Stats();
89
- this.fpsStats.showPanel(0); // FPS panel
90
- this.fpsStats.dom.style.position = 'relative';
91
- this.fpsStats.dom.style.pointerEvents = 'auto';
92
- this.container.appendChild(this.fpsStats.dom);
93
- this.registerDisposable(this.fpsStats, 'fpsStats');
89
+ // this.fpsStats = new Stats()
90
+ // this.fpsStats.showPanel(0) // FPS panel
91
+ // this.fpsStats.dom.style.position = 'relative'
92
+ // this.fpsStats.dom.style.pointerEvents = 'auto'
93
+ // this.container.appendChild(this.fpsStats.dom)
94
+ // this.registerDisposable(this.fpsStats, 'fpsStats')
94
95
  }
95
96
 
96
97
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2112-lab/central-plant",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
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",