@2112-lab/central-plant 0.1.0 → 0.1.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.
Files changed (43) hide show
  1. package/dist/bundle/index.js +7782 -6543
  2. package/dist/cjs/_virtual/_rollupPluginBabelHelpers.js +23 -10
  3. package/dist/cjs/node_modules/@2112-lab/pathfinder/dist/index.esm.js +1448 -0
  4. package/dist/cjs/src/animationManager.js +15 -15
  5. package/dist/cjs/src/componentManager.js +8 -8
  6. package/dist/cjs/src/disposalManager.js +12 -12
  7. package/dist/cjs/src/environmentManager.js +392 -99
  8. package/dist/cjs/src/hotReloadManager.js +26 -26
  9. package/dist/cjs/src/index.js +19 -66
  10. package/dist/cjs/src/keyboardControlsManager.js +23 -23
  11. package/dist/cjs/src/nameUtils.js +21 -21
  12. package/dist/cjs/src/pathfindingManager.js +311 -129
  13. package/dist/cjs/src/performanceMonitor.js +52 -52
  14. package/dist/cjs/src/sceneExportManager.js +23 -23
  15. package/dist/cjs/src/sceneInitializationManager.js +18 -18
  16. package/dist/cjs/src/textureConfig.js +469 -40
  17. package/dist/cjs/src/transformControlsManager.js +79 -79
  18. package/dist/esm/_virtual/_rollupPluginBabelHelpers.js +21 -10
  19. package/dist/esm/node_modules/@2112-lab/pathfinder/dist/index.esm.js +1444 -0
  20. package/dist/esm/src/animationManager.js +15 -15
  21. package/dist/esm/src/componentManager.js +8 -8
  22. package/dist/esm/src/disposalManager.js +12 -12
  23. package/dist/esm/src/environmentManager.js +393 -100
  24. package/dist/esm/src/hotReloadManager.js +26 -26
  25. package/dist/esm/src/index.js +19 -66
  26. package/dist/esm/src/keyboardControlsManager.js +23 -23
  27. package/dist/esm/src/nameUtils.js +21 -21
  28. package/dist/esm/src/pathfindingManager.js +313 -129
  29. package/dist/esm/src/performanceMonitor.js +52 -52
  30. package/dist/esm/src/sceneExportManager.js +23 -23
  31. package/dist/esm/src/sceneInitializationManager.js +18 -18
  32. package/dist/esm/src/textureConfig.js +469 -42
  33. package/dist/esm/src/transformControlsManager.js +79 -79
  34. package/dist/index.d.ts +255 -259
  35. package/package.json +52 -53
  36. package/dist/cjs/src/ConnectionManager.js +0 -114
  37. package/dist/cjs/src/Pathfinder.js +0 -88
  38. package/dist/cjs/src/modelPreloader.js +0 -360
  39. package/dist/cjs/src/sceneOperationsManager.js +0 -560
  40. package/dist/esm/src/ConnectionManager.js +0 -110
  41. package/dist/esm/src/Pathfinder.js +0 -84
  42. package/dist/esm/src/modelPreloader.js +0 -337
  43. package/dist/esm/src/sceneOperationsManager.js +0 -536
@@ -4,17 +4,17 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var debugLogger = require('./debugLogger.js');
6
6
 
7
- /**
8
- * Animation Manager
9
- * Handles animation loops and timing
7
+ /**
8
+ * Animation Manager
9
+ * Handles animation loops and timing
10
10
  */
11
11
  var animationFrameId = null;
12
12
  var isAnimating = false;
13
13
  var lastTime = 0;
14
14
  var callbacks = [];
15
15
 
16
- /**
17
- * Start the animation loop
16
+ /**
17
+ * Start the animation loop
18
18
  */
19
19
  function startAnimation(component) {
20
20
  if (isAnimating) return;
@@ -49,8 +49,8 @@ function startAnimation(component) {
49
49
  debugLogger.logger.info('Animation loop started');
50
50
  }
51
51
 
52
- /**
53
- * Stop the animation loop
52
+ /**
53
+ * Stop the animation loop
54
54
  */
55
55
  function stopAnimation() {
56
56
  if (!isAnimating) return;
@@ -62,8 +62,8 @@ function stopAnimation() {
62
62
  debugLogger.logger.info('Animation loop stopped');
63
63
  }
64
64
 
65
- /**
66
- * Register an animation callback
65
+ /**
66
+ * Register an animation callback
67
67
  */
68
68
  function addAnimationCallback(callback) {
69
69
  if (typeof callback !== 'function') {
@@ -74,8 +74,8 @@ function addAnimationCallback(callback) {
74
74
  return callback;
75
75
  }
76
76
 
77
- /**
78
- * Remove an animation callback
77
+ /**
78
+ * Remove an animation callback
79
79
  */
80
80
  function removeAnimationCallback(callback) {
81
81
  var index = callbacks.indexOf(callback);
@@ -86,8 +86,8 @@ function removeAnimationCallback(callback) {
86
86
  return false;
87
87
  }
88
88
 
89
- /**
90
- * Execute all registered animation callbacks
89
+ /**
90
+ * Execute all registered animation callbacks
91
91
  */
92
92
  function executeCallbacks(time, deltaTime) {
93
93
  callbacks.forEach(function (callback) {
@@ -99,8 +99,8 @@ function executeCallbacks(time, deltaTime) {
99
99
  });
100
100
  }
101
101
 
102
- /**
103
- * Check if animation is running
102
+ /**
103
+ * Check if animation is running
104
104
  */
105
105
  function isAnimationRunning() {
106
106
  return isAnimating;
@@ -26,15 +26,15 @@ function _interopNamespace(e) {
26
26
 
27
27
  var THREE__namespace = /*#__PURE__*/_interopNamespace(THREE);
28
28
 
29
- /**
30
- * Load a component from data
29
+ /**
30
+ * Load a component from data
31
31
  */
32
32
  function loadComponent(_x) {
33
33
  return _loadComponent.apply(this, arguments);
34
34
  }
35
35
 
36
- /**
37
- * Place a component in the scene
36
+ /**
37
+ * Place a component in the scene
38
38
  */
39
39
  function _loadComponent() {
40
40
  _loadComponent = _rollupPluginBabelHelpers.asyncToGenerator(/*#__PURE__*/_rollupPluginBabelHelpers.regenerator().m(function _callee(componentData) {
@@ -95,8 +95,8 @@ function placeComponent(component, position, rotation, scene) {
95
95
  return component;
96
96
  }
97
97
 
98
- /**
99
- * Remove a component from the scene
98
+ /**
99
+ * Remove a component from the scene
100
100
  */
101
101
  function removeComponent(componentId, scene) {
102
102
  if (!scene) {
@@ -121,8 +121,8 @@ function removeComponent(componentId, scene) {
121
121
  }
122
122
  }
123
123
 
124
- /**
125
- * Get a component by ID
124
+ /**
125
+ * Get a component by ID
126
126
  */
127
127
  function getComponentById(id, scene) {
128
128
  if (!scene) {
@@ -26,8 +26,8 @@ function _interopNamespace(e) {
26
26
 
27
27
  var THREE__namespace = /*#__PURE__*/_interopNamespace(THREE);
28
28
 
29
- /**
30
- * Dispose a Three.js object including geometry, material, and textures
29
+ /**
30
+ * Dispose a Three.js object including geometry, material, and textures
31
31
  */
32
32
  function disposeObject(object) {
33
33
  if (!object) return;
@@ -58,8 +58,8 @@ function disposeObject(object) {
58
58
  }
59
59
  }
60
60
 
61
- /**
62
- * Dispose a Three.js material and its textures
61
+ /**
62
+ * Dispose a Three.js material and its textures
63
63
  */
64
64
  function disposeMaterial(material) {
65
65
  if (!material) return;
@@ -76,8 +76,8 @@ function disposeMaterial(material) {
76
76
  material.dispose();
77
77
  }
78
78
 
79
- /**
80
- * Clean up a Three.js scene
79
+ /**
80
+ * Clean up a Three.js scene
81
81
  */
82
82
  function cleanupScene(scene) {
83
83
  if (!scene) {
@@ -94,8 +94,8 @@ function cleanupScene(scene) {
94
94
  debugLogger.logger.info('Scene cleared and disposed');
95
95
  }
96
96
 
97
- /**
98
- * Clean up a Three.js renderer
97
+ /**
98
+ * Clean up a Three.js renderer
99
99
  */
100
100
  function cleanupRenderer(renderer) {
101
101
  if (!renderer) {
@@ -112,8 +112,8 @@ function cleanupRenderer(renderer) {
112
112
  debugLogger.logger.info('Renderer disposed');
113
113
  }
114
114
 
115
- /**
116
- * Clean up Nuxt-specific event listeners
115
+ /**
116
+ * Clean up Nuxt-specific event listeners
117
117
  */
118
118
  function cleanupNuxtEventListeners() {
119
119
  if (typeof window === 'undefined' || !window.$nuxt) {
@@ -128,8 +128,8 @@ function cleanupNuxtEventListeners() {
128
128
  }
129
129
  }
130
130
 
131
- /**
132
- * Comprehensive cleanup of Three.js resources
131
+ /**
132
+ * Comprehensive cleanup of Three.js resources
133
133
  */
134
134
  function cleanupThreeJsResources(component) {
135
135
  if (!component) return;