Merge branch 'feature/phase1'

This commit is contained in:
xudan 2025-09-26 09:55:08 +08:00
commit f5071c57c7
6 changed files with 12 additions and 1679 deletions

View File

@ -19,7 +19,7 @@ export enum MapPointType {
/** 库区点 - 仓储作业区域 */
,
/** 不可避让点 - 机器人不可避让的点位 */
,
= 7,
/** 密集库区点 - 密集库区点位 */
// 密集库区点,

View File

@ -8,7 +8,8 @@
"fill-2": "#69C6F5",
"fill-3": "#E48B1D",
"fill-4": "#E48B1D",
"fill-5": "#a72b69"
"fill-5": "#a72b69",
"fill-6": "#E63A3A"
},
"point-l": {
"stroke": "#595959",

View File

@ -8,7 +8,8 @@
"fill-2": "#69C6F5",
"fill-3": "#E48B1D",
"fill-4": "#E48B1D",
"fill-5": "#a72b69"
"fill-5": "#a72b69",
"fill-6": "#E63A3A"
},
"point-l": {
"stroke": "#595959",

View File

@ -129,9 +129,11 @@ const monitorScene = async () => {
const robotState: any = {};
// 2.1 robotState
if (points?.length) {
const cx = x || 37;
const cy = y || 37;
// refreshRobot
if (points?.length && !isMonitorMode.value) {
//
const cx = x || 37; // X37
const cy = y || 37; // Y37
robotState.path = points.map((p) => ({ x: p.x - cx, y: p.y - cy }));
}

View File

@ -2103,7 +2103,8 @@ function drawPoint(ctx: CanvasRenderingContext2D, pen: MapPen): void {
case MapPointType.:
case MapPointType.:
case MapPointType.:
case MapPointType.: {
case MapPointType.:
case MapPointType.: {
ctx.beginPath();
ctx.moveTo(x + w / 2 - r, y + r);
ctx.arcTo(x + w / 2, y, x + w - r, y + h / 2 - r, r);

File diff suppressed because it is too large Load Diff