@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
@@ -1,16 +1,16 @@
1
1
  import { logger } from './debugLogger.js';
2
2
 
3
- /**
4
- * Animation Manager
5
- * Handles animation loops and timing
3
+ /**
4
+ * Animation Manager
5
+ * Handles animation loops and timing
6
6
  */
7
7
  var animationFrameId = null;
8
8
  var isAnimating = false;
9
9
  var lastTime = 0;
10
10
  var callbacks = [];
11
11
 
12
- /**
13
- * Start the animation loop
12
+ /**
13
+ * Start the animation loop
14
14
  */
15
15
  function startAnimation(component) {
16
16
  if (isAnimating) return;
@@ -45,8 +45,8 @@ function startAnimation(component) {
45
45
  logger.info('Animation loop started');
46
46
  }
47
47
 
48
- /**
49
- * Stop the animation loop
48
+ /**
49
+ * Stop the animation loop
50
50
  */
51
51
  function stopAnimation() {
52
52
  if (!isAnimating) return;
@@ -58,8 +58,8 @@ function stopAnimation() {
58
58
  logger.info('Animation loop stopped');
59
59
  }
60
60
 
61
- /**
62
- * Register an animation callback
61
+ /**
62
+ * Register an animation callback
63
63
  */
64
64
  function addAnimationCallback(callback) {
65
65
  if (typeof callback !== 'function') {
@@ -70,8 +70,8 @@ function addAnimationCallback(callback) {
70
70
  return callback;
71
71
  }
72
72
 
73
- /**
74
- * Remove an animation callback
73
+ /**
74
+ * Remove an animation callback
75
75
  */
76
76
  function removeAnimationCallback(callback) {
77
77
  var index = callbacks.indexOf(callback);
@@ -82,8 +82,8 @@ function removeAnimationCallback(callback) {
82
82
  return false;
83
83
  }
84
84
 
85
- /**
86
- * Execute all registered animation callbacks
85
+ /**
86
+ * Execute all registered animation callbacks
87
87
  */
88
88
  function executeCallbacks(time, deltaTime) {
89
89
  callbacks.forEach(function (callback) {
@@ -95,8 +95,8 @@ function executeCallbacks(time, deltaTime) {
95
95
  });
96
96
  }
97
97
 
98
- /**
99
- * Check if animation is running
98
+ /**
99
+ * Check if animation is running
100
100
  */
101
101
  function isAnimationRunning() {
102
102
  return isAnimating;
@@ -2,15 +2,15 @@ import { asyncToGenerator as _asyncToGenerator, regenerator as _regenerator } fr
2
2
  import * as THREE from 'three';
3
3
  import { logger } from './debugLogger.js';
4
4
 
5
- /**
6
- * Load a component from data
5
+ /**
6
+ * Load a component from data
7
7
  */
8
8
  function loadComponent(_x) {
9
9
  return _loadComponent.apply(this, arguments);
10
10
  }
11
11
 
12
- /**
13
- * Place a component in the scene
12
+ /**
13
+ * Place a component in the scene
14
14
  */
15
15
  function _loadComponent() {
16
16
  _loadComponent = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(componentData) {
@@ -71,8 +71,8 @@ function placeComponent(component, position, rotation, scene) {
71
71
  return component;
72
72
  }
73
73
 
74
- /**
75
- * Remove a component from the scene
74
+ /**
75
+ * Remove a component from the scene
76
76
  */
77
77
  function removeComponent(componentId, scene) {
78
78
  if (!scene) {
@@ -97,8 +97,8 @@ function removeComponent(componentId, scene) {
97
97
  }
98
98
  }
99
99
 
100
- /**
101
- * Get a component by ID
100
+ /**
101
+ * Get a component by ID
102
102
  */
103
103
  function getComponentById(id, scene) {
104
104
  if (!scene) {
@@ -2,8 +2,8 @@ import { toConsumableArray as _toConsumableArray } from '../_virtual/_rollupPlug
2
2
  import * as THREE from 'three';
3
3
  import { logger } from './debugLogger.js';
4
4
 
5
- /**
6
- * Dispose a Three.js object including geometry, material, and textures
5
+ /**
6
+ * Dispose a Three.js object including geometry, material, and textures
7
7
  */
8
8
  function disposeObject(object) {
9
9
  if (!object) return;
@@ -34,8 +34,8 @@ function disposeObject(object) {
34
34
  }
35
35
  }
36
36
 
37
- /**
38
- * Dispose a Three.js material and its textures
37
+ /**
38
+ * Dispose a Three.js material and its textures
39
39
  */
40
40
  function disposeMaterial(material) {
41
41
  if (!material) return;
@@ -52,8 +52,8 @@ function disposeMaterial(material) {
52
52
  material.dispose();
53
53
  }
54
54
 
55
- /**
56
- * Clean up a Three.js scene
55
+ /**
56
+ * Clean up a Three.js scene
57
57
  */
58
58
  function cleanupScene(scene) {
59
59
  if (!scene) {
@@ -70,8 +70,8 @@ function cleanupScene(scene) {
70
70
  logger.info('Scene cleared and disposed');
71
71
  }
72
72
 
73
- /**
74
- * Clean up a Three.js renderer
73
+ /**
74
+ * Clean up a Three.js renderer
75
75
  */
76
76
  function cleanupRenderer(renderer) {
77
77
  if (!renderer) {
@@ -88,8 +88,8 @@ function cleanupRenderer(renderer) {
88
88
  logger.info('Renderer disposed');
89
89
  }
90
90
 
91
- /**
92
- * Clean up Nuxt-specific event listeners
91
+ /**
92
+ * Clean up Nuxt-specific event listeners
93
93
  */
94
94
  function cleanupNuxtEventListeners() {
95
95
  if (typeof window === 'undefined' || !window.$nuxt) {
@@ -104,8 +104,8 @@ function cleanupNuxtEventListeners() {
104
104
  }
105
105
  }
106
106
 
107
- /**
108
- * Comprehensive cleanup of Three.js resources
107
+ /**
108
+ * Comprehensive cleanup of Three.js resources
109
109
  */
110
110
  function cleanupThreeJsResources(component) {
111
111
  if (!component) return;