@2112-lab/central-plant 0.1.98 → 0.2.2

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;
@@ -6645,7 +6626,7 @@ var PerformanceMonitorManager = /*#__PURE__*/function (_BaseDisposable) {
6645
6626
  value: function createContainer() {
6646
6627
  this.container = document.createElement('div');
6647
6628
  this.container.id = 'performance-monitor';
6648
- this.container.style.cssText = "\n position: fixed;\n bottom: 30px;\n right: 30px;\n z-index: 10000;\n display: flex;\n flex-direction: column;\n gap: 5px;\n pointer-events: none;\n font-family: 'Courier New', monospace;\n font-size: 10px;\n ";
6629
+ this.container.style.cssText = "\n position: fixed;\n bottom: 30px;\n left: 30px;\n z-index: 10000;\n display: flex;\n flex-direction: column;\n gap: 5px;\n pointer-events: none;\n font-family: 'Courier New', monospace;\n font-size: 10px;\n ";
6649
6630
  document.body.appendChild(this.container);
6650
6631
 
6651
6632
  // Register DOM element for cleanup
@@ -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.1.98
37217
+ * @version 0.2.2
37237
37218
  * @updated 2025-10-22
37238
37219
  *
37239
37220
  * @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.98
22
+ * @version 0.2.2
23
23
  * @updated 2025-10-22
24
24
  *
25
25
  * @description Creates a new CentralPlant instance and initializes internal managers and utilities.
@@ -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;
@@ -75,7 +76,7 @@ var PerformanceMonitorManager = /*#__PURE__*/function (_BaseDisposable) {
75
76
  value: function createContainer() {
76
77
  this.container = document.createElement('div');
77
78
  this.container.id = 'performance-monitor';
78
- this.container.style.cssText = "\n position: fixed;\n bottom: 30px;\n right: 30px;\n z-index: 10000;\n display: flex;\n flex-direction: column;\n gap: 5px;\n pointer-events: none;\n font-family: 'Courier New', monospace;\n font-size: 10px;\n ";
79
+ this.container.style.cssText = "\n position: fixed;\n bottom: 30px;\n left: 30px;\n z-index: 10000;\n display: flex;\n flex-direction: column;\n gap: 5px;\n pointer-events: none;\n font-family: 'Courier New', monospace;\n font-size: 10px;\n ";
79
80
  document.body.appendChild(this.container);
80
81
 
81
82
  // Register DOM element for cleanup
@@ -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.1.98
18
+ * @version 0.2.2
19
19
  * @updated 2025-10-22
20
20
  *
21
21
  * @description Creates a new CentralPlant instance and initializes internal managers and utilities.
@@ -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;
@@ -71,7 +72,7 @@ var PerformanceMonitorManager = /*#__PURE__*/function (_BaseDisposable) {
71
72
  value: function createContainer() {
72
73
  this.container = document.createElement('div');
73
74
  this.container.id = 'performance-monitor';
74
- this.container.style.cssText = "\n position: fixed;\n bottom: 30px;\n right: 30px;\n z-index: 10000;\n display: flex;\n flex-direction: column;\n gap: 5px;\n pointer-events: none;\n font-family: 'Courier New', monospace;\n font-size: 10px;\n ";
75
+ this.container.style.cssText = "\n position: fixed;\n bottom: 30px;\n left: 30px;\n z-index: 10000;\n display: flex;\n flex-direction: column;\n gap: 5px;\n pointer-events: none;\n font-family: 'Courier New', monospace;\n font-size: 10px;\n ";
75
76
  document.body.appendChild(this.container);
76
77
 
77
78
  // Register DOM element for cleanup
@@ -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.1.98",
3
+ "version": "0.2.2",
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",