mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-17 01:50:47 -04:00
comments and descriptions
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
// Top-down rover telemetry visual map.
|
||||
// Top Down Map Content
|
||||
// Purpose: Defines the Top Down Map Content module and the local helpers/components used in this file.
|
||||
// Scope: Keeps behavior unchanged while isolating this concern into a clear, single-responsibility unit.
|
||||
import React from 'react';
|
||||
import { buildSegments } from './helpers.js';
|
||||
import {
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// Geometry and color helpers for top-down rover sensor map.
|
||||
// helpers
|
||||
// Purpose: Defines the helpers module and the local helpers/components used in this file.
|
||||
// Scope: Keeps behavior unchanged while isolating this concern into a clear, single-responsibility unit.
|
||||
export function clamp01(value) {
|
||||
return Math.max(0, Math.min(1, value));
|
||||
}
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Top Down Map
|
||||
// Purpose: Defines the Top Down Map module and the local helpers/components used in this file.
|
||||
// Scope: Keeps behavior unchanged while isolating this concern into a clear, single-responsibility unit.
|
||||
import TopDownMapContent from './TopDownMapContent.jsx';
|
||||
|
||||
export default TopDownMapContent;
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// SVG primitives for top-down rover map rendering.
|
||||
// visuals
|
||||
// Purpose: Defines the visuals module and the local helpers/components used in this file.
|
||||
// Scope: Keeps behavior unchanged while isolating this concern into a clear, single-responsibility unit.
|
||||
import React from 'react';
|
||||
import { clamp01, currentColor, describeArc, lightBumpColor, cliffColor, polarToCartesian, toRad } from './helpers.js';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user