更新路牌

This commit is contained in:
Hcat
2024-01-21 21:46:58 +08:00
parent afcc63aa17
commit 98b28eccbd
2 changed files with 3 additions and 3 deletions

View File

@@ -11,9 +11,9 @@ import addFunction from "./addEvent";
import { editTunnelInit } from "./editTunnelInit";
import { addEquipment, removeEquipment } from "./editEquipment";
import previewtunnelModeInit from "./previewTunnelInit"
import { StreetSignTag } from "./utils/StreetSignTag.js";
import { StreetSignTag } from "./utils/StreetSignTag/StreetSignTag.js";
export default class Demo {
// 摄像机看向位置
// 摄像机看向位置s
origin = null;
//附着点的模型122
points = [];

View File

@@ -12,7 +12,7 @@ export function StreetSignTag(text = "", param = "", width = 250, height = 150)
ctx.fillStyle = "#003BA8";
ctx.fillRect(0, 0, width, height);
ctx.fillStyle = "white";
ctx.font = "15px serif";
ctx.font = "20px serif";
ctx.fillText('隧道简称:' + text, (100 - text.length * 1) / 50, 40);
ctx.fillText('隧道长度:' + param + 'm', (100 - param.length * 1) / 50, 115);
ctx.strokeStyle = "white";