visualizer-components 0.1.0
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.
- package/LICENSE +21 -0
- package/README.md +90 -0
- package/dist/assets/RudderIcon.d.ts +23 -0
- package/dist/assets/RudderIcon.d.ts.map +1 -0
- package/dist/assets/RudderIcon.js +23 -0
- package/dist/assets/RudderIcon.js.map +1 -0
- package/dist/assets/svgSources.d.ts +18 -0
- package/dist/assets/svgSources.d.ts.map +1 -0
- package/dist/assets/svgSources.js +18 -0
- package/dist/assets/svgSources.js.map +1 -0
- package/dist/components/Joystick.d.ts +23 -0
- package/dist/components/Joystick.d.ts.map +1 -0
- package/dist/components/Joystick.js +114 -0
- package/dist/components/Joystick.js.map +1 -0
- package/dist/components/TelemetryDashboard.d.ts +31 -0
- package/dist/components/TelemetryDashboard.d.ts.map +1 -0
- package/dist/components/TelemetryDashboard.js +127 -0
- package/dist/components/TelemetryDashboard.js.map +1 -0
- package/dist/components/controls/ControlOverlay.d.ts +64 -0
- package/dist/components/controls/ControlOverlay.d.ts.map +1 -0
- package/dist/components/controls/ControlOverlay.js +88 -0
- package/dist/components/controls/ControlOverlay.js.map +1 -0
- package/dist/components/controls/ControlsDrawer.d.ts +37 -0
- package/dist/components/controls/ControlsDrawer.d.ts.map +1 -0
- package/dist/components/controls/ControlsDrawer.js +93 -0
- package/dist/components/controls/ControlsDrawer.js.map +1 -0
- package/dist/components/controls/ForceVectorsPanel.d.ts +37 -0
- package/dist/components/controls/ForceVectorsPanel.d.ts.map +1 -0
- package/dist/components/controls/ForceVectorsPanel.js +76 -0
- package/dist/components/controls/ForceVectorsPanel.js.map +1 -0
- package/dist/components/controls/InfoPopover.d.ts +34 -0
- package/dist/components/controls/InfoPopover.d.ts.map +1 -0
- package/dist/components/controls/InfoPopover.js +41 -0
- package/dist/components/controls/InfoPopover.js.map +1 -0
- package/dist/components/controls/Legend.d.ts +29 -0
- package/dist/components/controls/Legend.d.ts.map +1 -0
- package/dist/components/controls/Legend.js +74 -0
- package/dist/components/controls/Legend.js.map +1 -0
- package/dist/components/controls/MobileBottomNav.d.ts +17 -0
- package/dist/components/controls/MobileBottomNav.d.ts.map +1 -0
- package/dist/components/controls/MobileBottomNav.js +46 -0
- package/dist/components/controls/MobileBottomNav.js.map +1 -0
- package/dist/components/hud/SceneHUD.d.ts +100 -0
- package/dist/components/hud/SceneHUD.d.ts.map +1 -0
- package/dist/components/hud/SceneHUD.js +216 -0
- package/dist/components/hud/SceneHUD.js.map +1 -0
- package/dist/components/hud/telemetry/Batteries.d.ts +40 -0
- package/dist/components/hud/telemetry/Batteries.d.ts.map +1 -0
- package/dist/components/hud/telemetry/Batteries.js +137 -0
- package/dist/components/hud/telemetry/Batteries.js.map +1 -0
- package/dist/components/hud/telemetry/Compass.d.ts +2 -0
- package/dist/components/hud/telemetry/Compass.d.ts.map +1 -0
- package/dist/components/hud/telemetry/Compass.js +147 -0
- package/dist/components/hud/telemetry/Compass.js.map +1 -0
- package/dist/components/hud/telemetry/Log.d.ts +2 -0
- package/dist/components/hud/telemetry/Log.d.ts.map +1 -0
- package/dist/components/hud/telemetry/Log.js +65 -0
- package/dist/components/hud/telemetry/Log.js.map +1 -0
- package/dist/components/hud/telemetry/Map.d.ts +4 -0
- package/dist/components/hud/telemetry/Map.d.ts.map +1 -0
- package/dist/components/hud/telemetry/Map.js +293 -0
- package/dist/components/hud/telemetry/Map.js.map +1 -0
- package/dist/components/hud/telemetry/PowerRudderPanel.d.ts +2 -0
- package/dist/components/hud/telemetry/PowerRudderPanel.d.ts.map +1 -0
- package/dist/components/hud/telemetry/PowerRudderPanel.js +115 -0
- package/dist/components/hud/telemetry/PowerRudderPanel.js.map +1 -0
- package/dist/components/hud/telemetry/RadiusVisualizer.d.ts +63 -0
- package/dist/components/hud/telemetry/RadiusVisualizer.d.ts.map +1 -0
- package/dist/components/hud/telemetry/RadiusVisualizer.js +139 -0
- package/dist/components/hud/telemetry/RadiusVisualizer.js.map +1 -0
- package/dist/components/hud/telemetry/RadiusVisualizerPanel.d.ts +31 -0
- package/dist/components/hud/telemetry/RadiusVisualizerPanel.d.ts.map +1 -0
- package/dist/components/hud/telemetry/RadiusVisualizerPanel.js +37 -0
- package/dist/components/hud/telemetry/RadiusVisualizerPanel.js.map +1 -0
- package/dist/components/hud/telemetry/ShipRudderVisualizer.d.ts +43 -0
- package/dist/components/hud/telemetry/ShipRudderVisualizer.d.ts.map +1 -0
- package/dist/components/hud/telemetry/ShipRudderVisualizer.js +121 -0
- package/dist/components/hud/telemetry/ShipRudderVisualizer.js.map +1 -0
- package/dist/components/hud/telemetry/ShipRudderVisualizerPanel.d.ts +26 -0
- package/dist/components/hud/telemetry/ShipRudderVisualizerPanel.d.ts.map +1 -0
- package/dist/components/hud/telemetry/ShipRudderVisualizerPanel.js +29 -0
- package/dist/components/hud/telemetry/ShipRudderVisualizerPanel.js.map +1 -0
- package/dist/components/hud/telemetry/SignalLog.d.ts +7 -0
- package/dist/components/hud/telemetry/SignalLog.d.ts.map +1 -0
- package/dist/components/hud/telemetry/SignalLog.js +28 -0
- package/dist/components/hud/telemetry/SignalLog.js.map +1 -0
- package/dist/components/hud/telemetry/SignalStrength.d.ts +9 -0
- package/dist/components/hud/telemetry/SignalStrength.d.ts.map +1 -0
- package/dist/components/hud/telemetry/SignalStrength.js +53 -0
- package/dist/components/hud/telemetry/SignalStrength.js.map +1 -0
- package/dist/components/hud/telemetry/Speedometer.d.ts +2 -0
- package/dist/components/hud/telemetry/Speedometer.d.ts.map +1 -0
- package/dist/components/hud/telemetry/Speedometer.js +70 -0
- package/dist/components/hud/telemetry/Speedometer.js.map +1 -0
- package/dist/components/hud/telemetry/Task.d.ts +2 -0
- package/dist/components/hud/telemetry/Task.d.ts.map +1 -0
- package/dist/components/hud/telemetry/Task.js +61 -0
- package/dist/components/hud/telemetry/Task.js.map +1 -0
- package/dist/components/hud/telemetry/TaskData.d.ts +2 -0
- package/dist/components/hud/telemetry/TaskData.d.ts.map +1 -0
- package/dist/components/hud/telemetry/TaskData.js +62 -0
- package/dist/components/hud/telemetry/TaskData.js.map +1 -0
- package/dist/components/hud/telemetry/index.d.ts +40 -0
- package/dist/components/hud/telemetry/index.d.ts.map +1 -0
- package/dist/components/hud/telemetry/index.js +40 -0
- package/dist/components/hud/telemetry/index.js.map +1 -0
- package/dist/components/hud/telemetry/powerColor.d.ts +16 -0
- package/dist/components/hud/telemetry/powerColor.d.ts.map +1 -0
- package/dist/components/hud/telemetry/powerColor.js +15 -0
- package/dist/components/hud/telemetry/powerColor.js.map +1 -0
- package/dist/components/scenes/MappingScene.d.ts +19 -0
- package/dist/components/scenes/MappingScene.d.ts.map +1 -0
- package/dist/components/scenes/MappingScene.js +353 -0
- package/dist/components/scenes/MappingScene.js.map +1 -0
- package/dist/components/scenes/SceneCanvas.d.ts +96 -0
- package/dist/components/scenes/SceneCanvas.d.ts.map +1 -0
- package/dist/components/scenes/SceneCanvas.js +151 -0
- package/dist/components/scenes/SceneCanvas.js.map +1 -0
- package/dist/components/scenes/SceneRenderer.d.ts +16 -0
- package/dist/components/scenes/SceneRenderer.d.ts.map +1 -0
- package/dist/components/scenes/SceneRenderer.js +60 -0
- package/dist/components/scenes/SceneRenderer.js.map +1 -0
- package/dist/components/scenes/TelemetryScene.d.ts +6 -0
- package/dist/components/scenes/TelemetryScene.d.ts.map +1 -0
- package/dist/components/scenes/TelemetryScene.js +6 -0
- package/dist/components/scenes/TelemetryScene.js.map +1 -0
- package/dist/components/svg/CompassRose.d.ts +129 -0
- package/dist/components/svg/CompassRose.d.ts.map +1 -0
- package/dist/components/svg/CompassRose.js +221 -0
- package/dist/components/svg/CompassRose.js.map +1 -0
- package/dist/connection/config.d.ts +41 -0
- package/dist/connection/config.d.ts.map +1 -0
- package/dist/connection/config.js +44 -0
- package/dist/connection/config.js.map +1 -0
- package/dist/contexts/SceneContext.d.ts +35 -0
- package/dist/contexts/SceneContext.d.ts.map +1 -0
- package/dist/contexts/SceneContext.js +24 -0
- package/dist/contexts/SceneContext.js.map +1 -0
- package/dist/hooks/useAutoPathAnimation.d.ts +22 -0
- package/dist/hooks/useAutoPathAnimation.d.ts.map +1 -0
- package/dist/hooks/useAutoPathAnimation.js +102 -0
- package/dist/hooks/useAutoPathAnimation.js.map +1 -0
- package/dist/hooks/useLayoutConfig.d.ts +29 -0
- package/dist/hooks/useLayoutConfig.d.ts.map +1 -0
- package/dist/hooks/useLayoutConfig.js +30 -0
- package/dist/hooks/useLayoutConfig.js.map +1 -0
- package/dist/hooks/useSceneContext.d.ts +64 -0
- package/dist/hooks/useSceneContext.d.ts.map +1 -0
- package/dist/hooks/useSceneContext.js +37 -0
- package/dist/hooks/useSceneContext.js.map +1 -0
- package/dist/index.d.ts +44 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +57 -0
- package/dist/index.js.map +1 -0
- package/dist/providers/TelemetryProvider.d.ts +27 -0
- package/dist/providers/TelemetryProvider.d.ts.map +1 -0
- package/dist/providers/TelemetryProvider.js +50 -0
- package/dist/providers/TelemetryProvider.js.map +1 -0
- package/dist/providers/TelemetryThemeProvider.d.ts +25 -0
- package/dist/providers/TelemetryThemeProvider.d.ts.map +1 -0
- package/dist/providers/TelemetryThemeProvider.js +54 -0
- package/dist/providers/TelemetryThemeProvider.js.map +1 -0
- package/dist/store/actions/connectionActions.d.ts +39 -0
- package/dist/store/actions/connectionActions.d.ts.map +1 -0
- package/dist/store/actions/connectionActions.js +162 -0
- package/dist/store/actions/connectionActions.js.map +1 -0
- package/dist/store/actions/fetchTelemetry.d.ts +51 -0
- package/dist/store/actions/fetchTelemetry.d.ts.map +1 -0
- package/dist/store/actions/fetchTelemetry.js +135 -0
- package/dist/store/actions/fetchTelemetry.js.map +1 -0
- package/dist/store/index.d.ts +23 -0
- package/dist/store/index.d.ts.map +1 -0
- package/dist/store/index.js +22 -0
- package/dist/store/index.js.map +1 -0
- package/dist/store/slices/connectionSlice.d.ts +15 -0
- package/dist/store/slices/connectionSlice.d.ts.map +1 -0
- package/dist/store/slices/connectionSlice.js +39 -0
- package/dist/store/slices/connectionSlice.js.map +1 -0
- package/dist/store/slices/discoveredGridSlice.d.ts +168 -0
- package/dist/store/slices/discoveredGridSlice.d.ts.map +1 -0
- package/dist/store/slices/discoveredGridSlice.js +146 -0
- package/dist/store/slices/discoveredGridSlice.js.map +1 -0
- package/dist/store/slices/sceneSlice.d.ts +185 -0
- package/dist/store/slices/sceneSlice.d.ts.map +1 -0
- package/dist/store/slices/sceneSlice.js +95 -0
- package/dist/store/slices/sceneSlice.js.map +1 -0
- package/dist/store/slices/simulationSlice.d.ts +87 -0
- package/dist/store/slices/simulationSlice.d.ts.map +1 -0
- package/dist/store/slices/simulationSlice.js +55 -0
- package/dist/store/slices/simulationSlice.js.map +1 -0
- package/dist/store/slices/telemetrySlice.d.ts +10 -0
- package/dist/store/slices/telemetrySlice.d.ts.map +1 -0
- package/dist/store/slices/telemetrySlice.js +88 -0
- package/dist/store/slices/telemetrySlice.js.map +1 -0
- package/dist/store/slices/videoSlice.d.ts +12 -0
- package/dist/store/slices/videoSlice.d.ts.map +1 -0
- package/dist/store/slices/videoSlice.js +27 -0
- package/dist/store/slices/videoSlice.js.map +1 -0
- package/dist/store/slices/visualizationSlice.d.ts +152 -0
- package/dist/store/slices/visualizationSlice.d.ts.map +1 -0
- package/dist/store/slices/visualizationSlice.js +58 -0
- package/dist/store/slices/visualizationSlice.js.map +1 -0
- package/dist/store/store.d.ts +61 -0
- package/dist/store/store.d.ts.map +1 -0
- package/dist/store/store.js +78 -0
- package/dist/store/store.js.map +1 -0
- package/dist/theme/index.d.ts +14 -0
- package/dist/theme/index.d.ts.map +1 -0
- package/dist/theme/index.js +14 -0
- package/dist/theme/index.js.map +1 -0
- package/dist/theme/lightTheme.d.ts +151 -0
- package/dist/theme/lightTheme.d.ts.map +1 -0
- package/dist/theme/lightTheme.js +194 -0
- package/dist/theme/lightTheme.js.map +1 -0
- package/dist/theme/telemetryTheme.d.ts +90 -0
- package/dist/theme/telemetryTheme.d.ts.map +1 -0
- package/dist/theme/telemetryTheme.js +157 -0
- package/dist/theme/telemetryTheme.js.map +1 -0
- package/dist/types/detectedObjectsTypes.d.ts +18 -0
- package/dist/types/detectedObjectsTypes.d.ts.map +1 -0
- package/dist/types/detectedObjectsTypes.js +8 -0
- package/dist/types/detectedObjectsTypes.js.map +1 -0
- package/dist/types/index.d.ts +16 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +16 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/ros.d.ts +87 -0
- package/dist/types/ros.d.ts.map +1 -0
- package/dist/types/ros.js +17 -0
- package/dist/types/ros.js.map +1 -0
- package/dist/types/statusTypes.d.ts +81 -0
- package/dist/types/statusTypes.d.ts.map +1 -0
- package/dist/types/statusTypes.js +52 -0
- package/dist/types/statusTypes.js.map +1 -0
- package/dist/types/taskTypes.d.ts +65 -0
- package/dist/types/taskTypes.d.ts.map +1 -0
- package/dist/types/taskTypes.js +18 -0
- package/dist/types/taskTypes.js.map +1 -0
- package/dist/types/telemetryInterfaces.d.ts +81 -0
- package/dist/types/telemetryInterfaces.d.ts.map +1 -0
- package/dist/types/telemetryInterfaces.js +30 -0
- package/dist/types/telemetryInterfaces.js.map +1 -0
- package/dist/utils/basestation.d.ts +7 -0
- package/dist/utils/basestation.d.ts.map +1 -0
- package/dist/utils/basestation.js +49 -0
- package/dist/utils/basestation.js.map +1 -0
- package/dist/utils/batteryUtil.d.ts +8 -0
- package/dist/utils/batteryUtil.d.ts.map +1 -0
- package/dist/utils/batteryUtil.js +32 -0
- package/dist/utils/batteryUtil.js.map +1 -0
- package/dist/utils/telemetry/index.d.ts +13 -0
- package/dist/utils/telemetry/index.d.ts.map +1 -0
- package/dist/utils/telemetry/index.js +13 -0
- package/dist/utils/telemetry/index.js.map +1 -0
- package/dist/utils/telemetry/telemetryFactory.d.ts +48 -0
- package/dist/utils/telemetry/telemetryFactory.d.ts.map +1 -0
- package/dist/utils/telemetry/telemetryFactory.js +390 -0
- package/dist/utils/telemetry/telemetryFactory.js.map +1 -0
- package/package.json +91 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file src/utils/store/index.ts\
|
|
3
|
+
* @description
|
|
4
|
+
* This file sets up the Redux store for the ASV telemetry application.
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* @author Carson Fujita
|
|
8
|
+
* @license MIT
|
|
9
|
+
*
|
|
10
|
+
* @remarks
|
|
11
|
+
* - It configures the store with the state reducer and exports the necessary types for use throughout the application.
|
|
12
|
+
*/
|
|
13
|
+
/*
|
|
14
|
+
MIT License
|
|
15
|
+
|
|
16
|
+
Copyright (c) 2026 HumberASV
|
|
17
|
+
Copyright (c) 2026 Carson Fujita
|
|
18
|
+
|
|
19
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
20
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
21
|
+
in the Software without restriction, including without limitation the rights
|
|
22
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
23
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
24
|
+
furnished to do so, subject to the following conditions:
|
|
25
|
+
|
|
26
|
+
The above copyright notice and this permission notice shall be included in all
|
|
27
|
+
copies or substantial portions of the Software.
|
|
28
|
+
|
|
29
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
30
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
31
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
32
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
33
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
34
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
35
|
+
SOFTWARE.
|
|
36
|
+
*/
|
|
37
|
+
import { useSelector, useDispatch } from 'react-redux';
|
|
38
|
+
import { configureStore } from "@reduxjs/toolkit";
|
|
39
|
+
import telemetryReducer from "./slices/telemetrySlice";
|
|
40
|
+
import connectionReducer from "./slices/connectionSlice";
|
|
41
|
+
import videoReducer from "./slices/videoSlice";
|
|
42
|
+
import visualizationReducer from "./slices/visualizationSlice";
|
|
43
|
+
import simulationReducer from "./slices/simulationSlice";
|
|
44
|
+
import discoveredGridReducer from "./slices/discoveredGridSlice";
|
|
45
|
+
import sceneReducer from "./slices/sceneSlice";
|
|
46
|
+
/**
|
|
47
|
+
* Configures the Redux store for the ASV telemetry application.
|
|
48
|
+
* @remarks
|
|
49
|
+
* - The store is configured with the state reducer,
|
|
50
|
+
* which manages the state related to telemetry data.
|
|
51
|
+
* - Middleware is set up to disable serializable checks,
|
|
52
|
+
* allowing for more flexible action payloads if needed.
|
|
53
|
+
* - The store is exported for use in the application,
|
|
54
|
+
* along with types for RootState and AppDispatch to ensure type safety
|
|
55
|
+
* when using the store in components and actions.
|
|
56
|
+
*
|
|
57
|
+
* @see {@link statusSlice} for the reducer managing the telemetry state.
|
|
58
|
+
*/
|
|
59
|
+
const store = configureStore({
|
|
60
|
+
reducer: {
|
|
61
|
+
telemetry: telemetryReducer,
|
|
62
|
+
visualization: visualizationReducer,
|
|
63
|
+
simulation: simulationReducer,
|
|
64
|
+
discoveredGrid: discoveredGridReducer,
|
|
65
|
+
scene: sceneReducer,
|
|
66
|
+
connection: connectionReducer,
|
|
67
|
+
video: videoReducer,
|
|
68
|
+
},
|
|
69
|
+
middleware: (getDefaultMiddleware) => getDefaultMiddleware({
|
|
70
|
+
serializableCheck: false,
|
|
71
|
+
}),
|
|
72
|
+
});
|
|
73
|
+
// Use throughout your app instead of plain `useDispatch` and `useSelector`
|
|
74
|
+
const useAppDispatch = () => useDispatch();
|
|
75
|
+
const useAppSelector = useSelector;
|
|
76
|
+
export { useAppDispatch, useAppSelector };
|
|
77
|
+
export default store;
|
|
78
|
+
//# sourceMappingURL=store.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../src/store/store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,OAAO,EAAE,WAAW,EAAE,WAAW,EAA6B,MAAM,aAAa,CAAC;AAClF,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,gBAAgB,MAAM,yBAAyB,CAAC;AACvD,OAAO,iBAAiB,MAAM,0BAA0B,CAAC;AACzD,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAC/C,OAAO,oBAAoB,MAAM,6BAA6B,CAAC;AAC/D,OAAO,iBAAiB,MAAM,0BAA0B,CAAC;AACzD,OAAO,qBAAqB,MAAM,8BAA8B,CAAC;AACjE,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAC/C;;;;;;;;;;;;GAYG;AACH,MAAM,KAAK,GAAG,cAAc,CAAC;IACzB,OAAO,EAAE;QACL,SAAS,EAAE,gBAAgB;QAC3B,aAAa,EAAE,oBAAoB;QACnC,UAAU,EAAE,iBAAiB;QAC7B,cAAc,EAAE,qBAAqB;QACrC,KAAK,EAAE,YAAY;QACnB,UAAU,EAAE,iBAAiB;QAC7B,KAAK,EAAE,YAAY;KACtB;IACD,UAAU,EAAE,CAAC,oBAAoB,EAAE,EAAE,CAAC,oBAAoB,CAAC;QACvD,iBAAiB,EAAE,KAAK;KAC3B,CAAC;CACL,CAAC,CAAC;AAOH,2EAA2E;AAC3E,MAAM,cAAc,GAAG,GAAG,EAAE,CAAC,WAAW,EAAe,CAAC;AACxD,MAAM,cAAc,GAAoC,WAAW,CAAC;AAEpE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,CAAC;AAC1C,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file theme/index.ts
|
|
3
|
+
* @description Barrel for the visualizer's MUI themes. Importing this module
|
|
4
|
+
* (or anything from `@humber-asv/visualizer/theme`) also activates the MUI
|
|
5
|
+
* palette module augmentations (`accent`, `status`, `gui`, `sim`, `map`,
|
|
6
|
+
* `compass`, `water`, `scene`, `telemetry`, `occupancyMap`) in the consumer's
|
|
7
|
+
* TypeScript program.
|
|
8
|
+
*
|
|
9
|
+
* @author Carson Fujita
|
|
10
|
+
* @license MIT
|
|
11
|
+
*/
|
|
12
|
+
export { lightTheme, theme, statusColors, setColors } from './lightTheme';
|
|
13
|
+
export { telemetryTheme } from './telemetryTheme';
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file theme/index.ts
|
|
3
|
+
* @description Barrel for the visualizer's MUI themes. Importing this module
|
|
4
|
+
* (or anything from `@humber-asv/visualizer/theme`) also activates the MUI
|
|
5
|
+
* palette module augmentations (`accent`, `status`, `gui`, `sim`, `map`,
|
|
6
|
+
* `compass`, `water`, `scene`, `telemetry`, `occupancyMap`) in the consumer's
|
|
7
|
+
* TypeScript program.
|
|
8
|
+
*
|
|
9
|
+
* @author Carson Fujita
|
|
10
|
+
* @license MIT
|
|
11
|
+
*/
|
|
12
|
+
export { lightTheme, theme, statusColors, setColors } from './lightTheme';
|
|
13
|
+
export { telemetryTheme } from './telemetryTheme';
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import type { TaskStatus } from "../types/taskTypes";
|
|
2
|
+
export declare const statusColors: Record<TaskStatus, string>;
|
|
3
|
+
/**
|
|
4
|
+
* Sets the secondary status colors by
|
|
5
|
+
* converting the hex color codes to RGBA
|
|
6
|
+
* format with the specified opacity.
|
|
7
|
+
* This function iterates through the
|
|
8
|
+
* defined status colors, converts each hex
|
|
9
|
+
* color to its RGB components, and then constructs
|
|
10
|
+
* an RGBA color string using the OPACITY constant
|
|
11
|
+
* for the alpha channel.
|
|
12
|
+
* The resulting RGBA colors are stored in a
|
|
13
|
+
* new object that is returned at the end of
|
|
14
|
+
* the function.
|
|
15
|
+
* @returns the secondary status colors in RGBA format, which can be used for styling UI elements such as backgrounds or accents while maintaining visual consistency with the primary status colors.
|
|
16
|
+
*/
|
|
17
|
+
export declare const setColors: () => Record<TaskStatus, string>;
|
|
18
|
+
declare module "@mui/material/styles" {
|
|
19
|
+
interface Palette {
|
|
20
|
+
accent: Palette["primary"];
|
|
21
|
+
tertiary: Palette["primary"];
|
|
22
|
+
status: {
|
|
23
|
+
primary: Record<TaskStatus, string>;
|
|
24
|
+
secondary: Record<TaskStatus, string>;
|
|
25
|
+
};
|
|
26
|
+
gui: {
|
|
27
|
+
primary: string;
|
|
28
|
+
secondary: string;
|
|
29
|
+
light: string;
|
|
30
|
+
muted: string;
|
|
31
|
+
subtle: string;
|
|
32
|
+
faint: string;
|
|
33
|
+
};
|
|
34
|
+
sim: {
|
|
35
|
+
auto: string;
|
|
36
|
+
manual: string;
|
|
37
|
+
connecting: string;
|
|
38
|
+
};
|
|
39
|
+
map: {
|
|
40
|
+
grid: string;
|
|
41
|
+
weight: string;
|
|
42
|
+
buoyancy: string;
|
|
43
|
+
current: string;
|
|
44
|
+
drag: string;
|
|
45
|
+
xAxis: string;
|
|
46
|
+
yAxis: string;
|
|
47
|
+
localXY: string;
|
|
48
|
+
localXZ: string;
|
|
49
|
+
localOrigin: string;
|
|
50
|
+
globalOrigin: string;
|
|
51
|
+
heading: string;
|
|
52
|
+
courseTrail: string;
|
|
53
|
+
};
|
|
54
|
+
compass: {
|
|
55
|
+
intercardinal: string;
|
|
56
|
+
north: string;
|
|
57
|
+
northEast: string;
|
|
58
|
+
east: string;
|
|
59
|
+
southEast: string;
|
|
60
|
+
south: string;
|
|
61
|
+
southWest: string;
|
|
62
|
+
west: string;
|
|
63
|
+
northWest: string;
|
|
64
|
+
};
|
|
65
|
+
water: {
|
|
66
|
+
surface: string;
|
|
67
|
+
mid: string;
|
|
68
|
+
deep: string;
|
|
69
|
+
deeper: string;
|
|
70
|
+
abyss: string;
|
|
71
|
+
highlight: string;
|
|
72
|
+
};
|
|
73
|
+
scene: {
|
|
74
|
+
skyLight: string;
|
|
75
|
+
skyDark: string;
|
|
76
|
+
skyMid: string;
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
interface PaletteOptions {
|
|
80
|
+
accent?: PaletteOptions["primary"];
|
|
81
|
+
tertiary?: PaletteOptions["primary"];
|
|
82
|
+
status?: {
|
|
83
|
+
primary?: Record<TaskStatus, string>;
|
|
84
|
+
secondary?: Record<TaskStatus, string>;
|
|
85
|
+
};
|
|
86
|
+
gui?: {
|
|
87
|
+
primary?: string;
|
|
88
|
+
secondary?: string;
|
|
89
|
+
light?: string;
|
|
90
|
+
muted?: string;
|
|
91
|
+
subtle?: string;
|
|
92
|
+
faint?: string;
|
|
93
|
+
};
|
|
94
|
+
sim?: {
|
|
95
|
+
auto?: string;
|
|
96
|
+
manual?: string;
|
|
97
|
+
connecting?: string;
|
|
98
|
+
};
|
|
99
|
+
map?: {
|
|
100
|
+
grid?: string;
|
|
101
|
+
weight?: string;
|
|
102
|
+
buoyancy?: string;
|
|
103
|
+
current?: string;
|
|
104
|
+
drag?: string;
|
|
105
|
+
xAxis?: string;
|
|
106
|
+
yAxis?: string;
|
|
107
|
+
localXY?: string;
|
|
108
|
+
localXZ?: string;
|
|
109
|
+
localOrigin?: string;
|
|
110
|
+
globalOrigin?: string;
|
|
111
|
+
heading?: string;
|
|
112
|
+
courseTrail?: string;
|
|
113
|
+
};
|
|
114
|
+
compass?: {
|
|
115
|
+
intercardinal?: string;
|
|
116
|
+
north?: string;
|
|
117
|
+
northEast?: string;
|
|
118
|
+
east?: string;
|
|
119
|
+
southEast?: string;
|
|
120
|
+
south?: string;
|
|
121
|
+
southWest?: string;
|
|
122
|
+
west?: string;
|
|
123
|
+
northWest?: string;
|
|
124
|
+
};
|
|
125
|
+
water?: {
|
|
126
|
+
surface?: string;
|
|
127
|
+
mid?: string;
|
|
128
|
+
deep?: string;
|
|
129
|
+
deeper?: string;
|
|
130
|
+
abyss?: string;
|
|
131
|
+
highlight?: string;
|
|
132
|
+
};
|
|
133
|
+
scene?: {
|
|
134
|
+
skyLight?: string;
|
|
135
|
+
skyDark?: string;
|
|
136
|
+
skyMid?: string;
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
declare module "@mui/material/Button" {
|
|
141
|
+
interface ButtonPropsColorOverrides {
|
|
142
|
+
accent: true;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
export declare const lightTheme: import("@mui/material").Theme;
|
|
146
|
+
/**
|
|
147
|
+
* Backwards-compatible alias — the HumberASV website historically imported this
|
|
148
|
+
* theme as `theme` from `src/theme.ts`.
|
|
149
|
+
*/
|
|
150
|
+
export declare const theme: import("@mui/material").Theme;
|
|
151
|
+
//# sourceMappingURL=lightTheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lightTheme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E,MAAM,CAAC;SACpB,CAAC;QACF,KAAK,CAAC,EAAE;YACN,QAAQ,CAAC,EAAE,MAAM,CAAC;YAClB,OAAO,CAAC,EAAE,MAAM,CAAC;YACjB,MAAM,CAAC,EAAE,MAAM,CAAC;SACjB,CAAC;KACH;CACF;AAGD,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,yBAAyB;QACjC,MAAM,EAAE,IAAI,CAAC;KACd;CACF;AAED,eAAO,MAAM,UAAU,+BAqJrB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,KAAK,+BAAa,CAAC"}
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { alpha, createTheme } from "@mui/material/styles";
|
|
2
|
+
// Opacity value for status colors,
|
|
3
|
+
// used to create lighter versions of the colors
|
|
4
|
+
// for backgrounds or accents in the UI
|
|
5
|
+
const OPACITY = 0.2;
|
|
6
|
+
export const statusColors = {
|
|
7
|
+
"autonomous": "#10b981",
|
|
8
|
+
"remote": "#3b82f6",
|
|
9
|
+
"standby": "#eab308",
|
|
10
|
+
"out of control": "#ef4444",
|
|
11
|
+
"lost connection": "#9ca3af",
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Sets the secondary status colors by
|
|
15
|
+
* converting the hex color codes to RGBA
|
|
16
|
+
* format with the specified opacity.
|
|
17
|
+
* This function iterates through the
|
|
18
|
+
* defined status colors, converts each hex
|
|
19
|
+
* color to its RGB components, and then constructs
|
|
20
|
+
* an RGBA color string using the OPACITY constant
|
|
21
|
+
* for the alpha channel.
|
|
22
|
+
* The resulting RGBA colors are stored in a
|
|
23
|
+
* new object that is returned at the end of
|
|
24
|
+
* the function.
|
|
25
|
+
* @returns the secondary status colors in RGBA format, which can be used for styling UI elements such as backgrounds or accents while maintaining visual consistency with the primary status colors.
|
|
26
|
+
*/
|
|
27
|
+
export const setColors = () => {
|
|
28
|
+
const colors = {};
|
|
29
|
+
for (const status in statusColors) {
|
|
30
|
+
const key = status;
|
|
31
|
+
const color = statusColors[key];
|
|
32
|
+
const num = parseInt(color.slice(1), 16);
|
|
33
|
+
const r = (num >> 16) & 255;
|
|
34
|
+
const g = (num >> 8) & 255;
|
|
35
|
+
const b = num & 255;
|
|
36
|
+
colors[key] = `rgba(${r}, ${g}, ${b}, ${OPACITY})`;
|
|
37
|
+
}
|
|
38
|
+
return colors;
|
|
39
|
+
};
|
|
40
|
+
export const lightTheme = createTheme({
|
|
41
|
+
palette: {
|
|
42
|
+
mode: "light",
|
|
43
|
+
text: {
|
|
44
|
+
primary: "#000000",
|
|
45
|
+
secondary: "#4D5259",
|
|
46
|
+
},
|
|
47
|
+
background: {
|
|
48
|
+
default: "#F2F2F2",
|
|
49
|
+
},
|
|
50
|
+
primary: {
|
|
51
|
+
main: "#A06CD3",
|
|
52
|
+
light: "#B980F1",
|
|
53
|
+
dark: "#76529A",
|
|
54
|
+
},
|
|
55
|
+
secondary: {
|
|
56
|
+
main: "#D9D9D9",
|
|
57
|
+
},
|
|
58
|
+
accent: {
|
|
59
|
+
main: "#D9FA05",
|
|
60
|
+
light: "#E6FB4C",
|
|
61
|
+
dark: "#C2E006",
|
|
62
|
+
contrastText: "#00435C",
|
|
63
|
+
},
|
|
64
|
+
tertiary: {
|
|
65
|
+
main: "#070373",
|
|
66
|
+
light: "#070373",
|
|
67
|
+
dark: "#080721",
|
|
68
|
+
contrastText: "#FFFFFF",
|
|
69
|
+
},
|
|
70
|
+
status: {
|
|
71
|
+
primary: statusColors,
|
|
72
|
+
secondary: setColors(),
|
|
73
|
+
},
|
|
74
|
+
map: {
|
|
75
|
+
grid: "#cbd5e1",
|
|
76
|
+
weight: "#ef4444",
|
|
77
|
+
buoyancy: "#22c55e",
|
|
78
|
+
current: "#3b82f6",
|
|
79
|
+
drag: "#f59e0b",
|
|
80
|
+
xAxis: "#eab308",
|
|
81
|
+
yAxis: "#10b981",
|
|
82
|
+
localXY: "#3b82f6",
|
|
83
|
+
localXZ: "#f59e0b",
|
|
84
|
+
localOrigin: "#10b981",
|
|
85
|
+
globalOrigin: "#cbd5e1",
|
|
86
|
+
heading: "#ef4444",
|
|
87
|
+
courseTrail: "#b45309",
|
|
88
|
+
},
|
|
89
|
+
gui: {
|
|
90
|
+
primary: "rgba(30, 41, 59, 0.7)",
|
|
91
|
+
secondary: "rgba(51, 65, 85, 0.9)",
|
|
92
|
+
light: "rgba(255, 255, 255, 0.8)",
|
|
93
|
+
muted: "#94a3b8",
|
|
94
|
+
subtle: "#64748b",
|
|
95
|
+
faint: "#475569",
|
|
96
|
+
},
|
|
97
|
+
sim: {
|
|
98
|
+
auto: "#a78bfa",
|
|
99
|
+
manual: "#fbbf24",
|
|
100
|
+
connecting: "#60a5fa",
|
|
101
|
+
},
|
|
102
|
+
compass: {
|
|
103
|
+
intercardinal: "rgba(255,255,255,0.55)",
|
|
104
|
+
north: "#ff9999",
|
|
105
|
+
northEast: "#ffb380",
|
|
106
|
+
east: "#ffe066",
|
|
107
|
+
southEast: "#99ddaa",
|
|
108
|
+
south: "#77cc88",
|
|
109
|
+
southWest: "#88ccee",
|
|
110
|
+
west: "#8899ee",
|
|
111
|
+
northWest: "#cc99dd",
|
|
112
|
+
},
|
|
113
|
+
water: {
|
|
114
|
+
surface: "#0ea5e9",
|
|
115
|
+
mid: "#0284c7",
|
|
116
|
+
deep: "#0369a1",
|
|
117
|
+
deeper: "#075985",
|
|
118
|
+
abyss: "#0c4a6e",
|
|
119
|
+
highlight: "#38bdf8",
|
|
120
|
+
},
|
|
121
|
+
scene: {
|
|
122
|
+
skyLight: "#1e3a5f",
|
|
123
|
+
skyDark: "#0f172a",
|
|
124
|
+
skyMid: "#1e293b",
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
typography: {
|
|
128
|
+
fontFamily: `'Roboto', 'Arial', sans-serif`,
|
|
129
|
+
h1: {
|
|
130
|
+
fontFamily: `'Montserrat', 'Roboto', sans-serif`,
|
|
131
|
+
fontWeight: 600,
|
|
132
|
+
},
|
|
133
|
+
h2: {
|
|
134
|
+
fontFamily: `'Montserrat', 'Roboto', sans-serif`,
|
|
135
|
+
fontWeight: 600,
|
|
136
|
+
},
|
|
137
|
+
h3: {
|
|
138
|
+
fontFamily: `'Montserrat', 'Roboto', sans-serif`,
|
|
139
|
+
fontWeight: 600,
|
|
140
|
+
},
|
|
141
|
+
h4: {
|
|
142
|
+
fontFamily: `'Montserrat', 'Roboto', sans-serif`,
|
|
143
|
+
fontWeight: 600,
|
|
144
|
+
},
|
|
145
|
+
h5: {
|
|
146
|
+
fontFamily: `'Montserrat', 'Roboto', sans-serif`,
|
|
147
|
+
fontWeight: 600,
|
|
148
|
+
},
|
|
149
|
+
h6: {
|
|
150
|
+
fontFamily: `'Montserrat', 'Roboto', sans-serif`,
|
|
151
|
+
fontWeight: 600,
|
|
152
|
+
},
|
|
153
|
+
button: {
|
|
154
|
+
fontFamily: `'Montserrat', 'Roboto', sans-serif`,
|
|
155
|
+
fontWeight: 600,
|
|
156
|
+
textTransform: "none",
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
components: {
|
|
160
|
+
MuiButton: {
|
|
161
|
+
styleOverrides: {
|
|
162
|
+
root: {
|
|
163
|
+
borderRadius: 8,
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
MuiListItemButton: {
|
|
168
|
+
styleOverrides: {
|
|
169
|
+
// Change `root` to an arrow function that destructures { theme }
|
|
170
|
+
root: ({ theme }) => ({
|
|
171
|
+
borderRadius: 4,
|
|
172
|
+
"&.Mui-selected": {
|
|
173
|
+
// Now you can pass the raw string directly into alpha
|
|
174
|
+
backgroundColor: alpha(theme.palette.primary.main, 0.1),
|
|
175
|
+
color: theme.palette.primary.main,
|
|
176
|
+
"&:hover": {
|
|
177
|
+
backgroundColor: alpha(theme.palette.primary.main, 0.2),
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
"&:hover": {
|
|
181
|
+
backgroundColor: alpha(theme.palette.primary.main, 0.15),
|
|
182
|
+
color: theme.palette.primary.main,
|
|
183
|
+
},
|
|
184
|
+
}),
|
|
185
|
+
},
|
|
186
|
+
},
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
/**
|
|
190
|
+
* Backwards-compatible alias — the HumberASV website historically imported this
|
|
191
|
+
* theme as `theme` from `src/theme.ts`.
|
|
192
|
+
*/
|
|
193
|
+
export const theme = lightTheme;
|
|
194
|
+
//# sourceMappingURL=lightTheme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lightTheme.js","sourceRoot":"","sources":["../../src/theme/lightTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAG1D,oCAAoC;AACpC,iDAAiD;AACjD,uCAAuC;AACvC,MAAM,OAAO,GAAG,GAAG,CAAC;AAEpB,MAAM,CAAC,MAAM,YAAY,GAA+B;IACtD,YAAY,EAAE,SAAS;IACvB,QAAQ,EAAE,SAAS;IACnB,SAAS,EAAE,SAAS;IACpB,gBAAgB,EAAE,SAAS;IAC3B,iBAAiB,EAAE,SAAS;CAC7B,CAAA;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,GAA+B,EAAE;IACxD,MAAM,MAAM,GAAG,EAAgC,CAAC;IAChD,KAAK,MAAM,MAAM,IAAI,YAAY,EAAE,CAAC;QAClC,MAAM,GAAG,GAAG,MAAoB,CAAC;QACjC,MAAM,KAAK,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC;QAChC,MAAM,GAAG,GAAG,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACzC,MAAM,CAAC,GAAG,CAAC,GAAG,IAAI,EAAE,CAAC,GAAG,GAAG,CAAC;QAC5B,MAAM,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC;QAC3B,MAAM,CAAC,GAAG,GAAG,GA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ACf,aAAa,EAAE,MAAM;SACtB;KACF;IACD,UAAU,EAAE;QACV,SAAS,EAAE;YACT,cAAc,EAAE;gBACd,IAAI,EAAE;oBACJ,YAAY,EAAE,CAAC;iBAChB;aACF;SACF;QACD,iBAAiB,EAAE;YACjB,cAAc,EAAE;gBACd,iEAAiE;gBACjE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;oBACpB,YAAY,EAAE,CAAC;oBACf,gBAAgB,EAAE;wBAChB,sDAAsD;wBACtD,eAAe,EAAE,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC;wBACvD,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI;wBACjC,SAAS,EAAE;4BACT,eAAe,EAAE,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC;yBACxD;qBACF;oBACD,SAAS,EAAE;wBACT,eAAe,EAAE,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC;wBACxD,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI;qBAClC;iBACF,CAAC;aACH;SAEF;KACF;CACF,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,UAAU,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
declare module "@mui/material/styles" {
|
|
2
|
+
interface Palette {
|
|
3
|
+
telemetry: {
|
|
4
|
+
status: {
|
|
5
|
+
online: string;
|
|
6
|
+
warning: string;
|
|
7
|
+
error: string;
|
|
8
|
+
offline: string;
|
|
9
|
+
};
|
|
10
|
+
background: {
|
|
11
|
+
primary: string;
|
|
12
|
+
secondary: string;
|
|
13
|
+
tertiary: string;
|
|
14
|
+
header: string;
|
|
15
|
+
overlay: string;
|
|
16
|
+
headerAlt: string;
|
|
17
|
+
empty: string;
|
|
18
|
+
};
|
|
19
|
+
border: {
|
|
20
|
+
light: string;
|
|
21
|
+
lighter: string;
|
|
22
|
+
lightest: string;
|
|
23
|
+
};
|
|
24
|
+
text: {
|
|
25
|
+
primary: string;
|
|
26
|
+
secondary: string;
|
|
27
|
+
};
|
|
28
|
+
accent: string;
|
|
29
|
+
};
|
|
30
|
+
occupancyMap: {
|
|
31
|
+
empty: string;
|
|
32
|
+
occupied: string;
|
|
33
|
+
path: string;
|
|
34
|
+
current: string;
|
|
35
|
+
objective: string;
|
|
36
|
+
error: string;
|
|
37
|
+
currentIcon: string;
|
|
38
|
+
objectiveIcon: string;
|
|
39
|
+
errorIcon: string;
|
|
40
|
+
courseIcon: string;
|
|
41
|
+
course: string;
|
|
42
|
+
plan: string;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
interface PaletteOptions {
|
|
46
|
+
telemetry?: {
|
|
47
|
+
status?: {
|
|
48
|
+
online?: string;
|
|
49
|
+
warning?: string;
|
|
50
|
+
error?: string;
|
|
51
|
+
offline?: string;
|
|
52
|
+
};
|
|
53
|
+
background?: {
|
|
54
|
+
primary?: string;
|
|
55
|
+
secondary?: string;
|
|
56
|
+
tertiary?: string;
|
|
57
|
+
header?: string;
|
|
58
|
+
overlay?: string;
|
|
59
|
+
headerAlt?: string;
|
|
60
|
+
empty?: string;
|
|
61
|
+
};
|
|
62
|
+
border?: {
|
|
63
|
+
light?: string;
|
|
64
|
+
lighter?: string;
|
|
65
|
+
lightest?: string;
|
|
66
|
+
};
|
|
67
|
+
text?: {
|
|
68
|
+
primary?: string;
|
|
69
|
+
secondary?: string;
|
|
70
|
+
};
|
|
71
|
+
accent?: string;
|
|
72
|
+
};
|
|
73
|
+
occupancyMap?: {
|
|
74
|
+
empty?: string;
|
|
75
|
+
occupied?: string;
|
|
76
|
+
path?: string;
|
|
77
|
+
current?: string;
|
|
78
|
+
objective?: string;
|
|
79
|
+
error?: string;
|
|
80
|
+
currentIcon?: string;
|
|
81
|
+
objectiveIcon?: string;
|
|
82
|
+
errorIcon?: string;
|
|
83
|
+
courseIcon?: string;
|
|
84
|
+
course?: string;
|
|
85
|
+
plan?: string;
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
export declare const telemetryTheme: import("@mui/material").Theme;
|
|
90
|
+
//# sourceMappingURL=telemetryTheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"telemetryTheme.d.ts","sourceRoot":"","sources":["../../src/theme/telemetryTheme.ts"],"names":[],"mappings":"AAGA,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,OAAO;QACf,SAAS,EAAE;YACT,MAAM,EAAE;gBACN,MAAM,EAAE,MAAM,CAAC;gBACf,OAAO,EAAE,MAAM,CAAC;gBAChB,KAAK,EAAE,MAAM,CAAC;gBACd,OAAO,EAAE,MAAM,CAAC;aACjB,CAAC;YACF,UAAU,EAAE;gBACV,OAAO,EAAE,MAAM,CAAC;gBAChB,SAAS,EAAE,MAAM,CAAC;gBAClB,QAAQ,EAAE,MAAM,CAAC;gBACjB,MAAM,EAAE,MAAM,CAAC;gBACf,OAAO,EAAE,MAAM,CAAC;gBAChB,SAAS,EAAE,MAAM,CAAC;gBAClB,KAAK,EAAE,MAAM,CAAC;aACf,CAAC;YACF,MAAM,EAAE;gBACN,KAAK,EAAE,MAAM,CAAC;gBACd,OAAO,EAAE,MAAM,CAAC;gBAChB,QAAQ,EAAE,MAAM,CAAC;aAClB,CAAC;YACF,IAAI,EAAE;gBACJ,OAAO,EAAE,MAAM,CAAC;gBAChB,SAAS,EAAE,MAAM,CAAC;aACnB,CAAC;YACF,MAAM,EAAE,MAAM,CAAC;SAChB,CAAC;QACF,YAAY,EAAE;YACZ,KAAK,EAAE,MAAM,CAAC;YACd,QAAQ,EAAE,MAAM,CAAC;YACjB,IAAI,EAAE,MAAM,CAAC;YACb,OAAO,EAAE,MAAM,CAAC;YAChB,SAAS,EAAE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