import VectorType from "../enum/VectorType.js"; import Geometry from "./Geometry.js"; import { mathUtil } from "../Util/MathUtil.js"; import { coordinate } from "../Coordinate.js"; import Constant from "../Constant.js"; import Style from "@/graphic/CanvasStyle/index.js"; //不靠墙 export default class Text extends Geometry { constructor(center, vectorId) { super(); this.center = center; this.value = "固定点"; this.color = Style.Text.fillStyle; this.fontSize = Style.Text.fontSize; this.geoType = VectorType.Text; this.setId(vectorId); } setValue(value) { this.value = value; } setFontSize(value) { this.fontSize = value; } }