-
- Downloads
fix: Enhanced camera capture and metric components
Summary of changes - Refactored imports in `camera-capture.mjs` and aligned formatting for consistency. - Added `setupLazyCameraInit` for a more efficient camera control initialization. - Updated the `initCameraControl` function to initialize the camera after the component is visible. - Adjusted default values and element references in `metric.mjs` and `metric-graph.mjs` for improved clarity. - Maintained consistent naming and alignment across several CSS and JavaScript files to enhance readability. The reason for these changes is primarily to improve code readability and maintainability while refactoring to ensure better initialization flows and alignment with modern JavaScript practices. This should make the components easier to work with and manage in future development efforts.
Showing
- source/components/content/camera-capture.mjs 397 additions, 366 deletionssource/components/content/camera-capture.mjs
- source/components/content/stylesheet/camera-capture.mjs 13 additions, 6 deletionssource/components/content/stylesheet/camera-capture.mjs
- source/components/data/metric-graph.mjs 354 additions, 356 deletionssource/components/data/metric-graph.mjs
- source/components/data/metric.mjs 92 additions, 94 deletionssource/components/data/metric.mjs
- source/components/data/stylesheet/metric-graph.mjs 13 additions, 6 deletionssource/components/data/stylesheet/metric-graph.mjs
- source/components/data/stylesheet/metric.mjs 13 additions, 6 deletionssource/components/data/stylesheet/metric.mjs
- source/components/layout/split-panel.mjs 15 additions, 8 deletionssource/components/layout/split-panel.mjs
- source/monster.mjs 3 additions, 0 deletionssource/monster.mjs
- source/types/version.mjs 1 addition, 1 deletionsource/types/version.mjs
Loading
Please register or sign in to comment