更新路牌
This commit is contained in:
@@ -11,9 +11,9 @@ import addFunction from "./addEvent";
|
|||||||
import { editTunnelInit } from "./editTunnelInit";
|
import { editTunnelInit } from "./editTunnelInit";
|
||||||
import { addEquipment, removeEquipment } from "./editEquipment";
|
import { addEquipment, removeEquipment } from "./editEquipment";
|
||||||
import previewtunnelModeInit from "./previewTunnelInit"
|
import previewtunnelModeInit from "./previewTunnelInit"
|
||||||
import { StreetSignTag } from "./utils/StreetSignTag.js";
|
import { StreetSignTag } from "./utils/StreetSignTag/StreetSignTag.js";
|
||||||
export default class Demo {
|
export default class Demo {
|
||||||
// 摄像机看向位置
|
// 摄像机看向位置s
|
||||||
origin = null;
|
origin = null;
|
||||||
//附着点的模型122
|
//附着点的模型122
|
||||||
points = [];
|
points = [];
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ export function StreetSignTag(text = "", param = "", width = 250, height = 150)
|
|||||||
ctx.fillStyle = "#003BA8";
|
ctx.fillStyle = "#003BA8";
|
||||||
ctx.fillRect(0, 0, width, height);
|
ctx.fillRect(0, 0, width, height);
|
||||||
ctx.fillStyle = "white";
|
ctx.fillStyle = "white";
|
||||||
ctx.font = "15px serif";
|
ctx.font = "20px serif";
|
||||||
ctx.fillText('隧道简称:' + text, (100 - text.length * 1) / 50, 40);
|
ctx.fillText('隧道简称:' + text, (100 - text.length * 1) / 50, 40);
|
||||||
ctx.fillText('隧道长度:' + param + 'm', (100 - param.length * 1) / 50, 115);
|
ctx.fillText('隧道长度:' + param + 'm', (100 - param.length * 1) / 50, 115);
|
||||||
ctx.strokeStyle = "white";
|
ctx.strokeStyle = "white";
|
||||||
Reference in New Issue
Block a user