feat:新增不可避让点,并且新增对应样式
This commit is contained in:
parent
3ed67542bf
commit
318e69cfaf
@ -18,6 +18,8 @@ export enum MapPointType {
|
||||
临时避让点,
|
||||
/** 库区点 - 仓储作业区域 */
|
||||
库区点,
|
||||
/** 不可避让点 - 机器人不可避让的点位 */
|
||||
不可避让点,
|
||||
/** 密集库区点 - 密集库区点位 */
|
||||
// 密集库区点,
|
||||
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -1493,6 +1493,7 @@ function drawPoint(ctx: CanvasRenderingContext2D, pen: MapPen): void {
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user