123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- const Road = {
- strokeStyle: "#939393",
- lineWidth: 8,
- realLineWidth: 2
- };
- const RoadEdge = {
- ...Road,
- lineWidth: 1,
- strokeStyle: "#000",
- };
- const Lane = {
- ...RoadEdge,
- lineWidth: 1,
- strokeStyle: "#000",
- dash: [8, 8],
- };
- const CurveRoad = {
- ...Road,
- lineWidth: 1,
- };
- const CurveRoadEdge = {
- ...CurveRoad,
- ...RoadEdge,
- };
- const CurveLan = {
- ...CurveRoad,
- ...Lane,
- };
- const Text = {
- strokeStyle: "rgb(0,0,0,1)",
- fillStyle: "rgb(0,0,0,1)",
- strokeStyle_adding: "rgba(243, 255, 0, 0.8)",
- fillStyle_adding: "rgba(243, 255, 0, 0.8)",
- lineWidth: 1,
- };
- const CanvasFont = {
- font: "14px Microsoft YaHei",
- fillStyle: "#000000",
- strokeStyle: "#000000",
- textAlign: "center",
- textBaseline: "middle",
- miterLimit: 10,
- direction: "ltr",
- };
- const Point = {
- strokeStyle: "#3290FF",
- fillStyle: "#fff",
- radius: 4,
- lineWidth: 4,
- };
- const RoadPoint = {
- ...Point,
- };
- const CurveRoadPoint = {
- ...Point,
- };
- const ControlPoint = {
- ...Point,
- strokeStyle: "#3290FF",
- radius: 8,
- };
- const Measure = {
- txt: "rgba(255,255,255,1)", //画墙/选墙的时候 测量值的颜色
- strokeStyle: "rgba(255,255,255,1)",
- lineWidth: 1,
- };
- const SimpleLine = {
- strokeStyle: "#CED806",
- lineWidth: 2,
- dash: [3, 2, 2],
- }
- const GuideLine = {
- strokeStyle: "#CED806",
- lineWidth: 2,
- dash: [3, 2, 2],
- }
- const MeasureLine = {
- strokeStyle: "#CED806",
- lineWidth: 2,
- }
- const BaseLine = {
- strokeStyle: "#3290FF",
- lineWidth: 2,
- }
- const Element = {
- AddingPoint: {
- radius: 4,
- fillStyle: "yellow",
- strokeStyle: "green",
- },
- NewRoad: {
- lineWidth: 4,
- strokeStyle: "rgba(100,100,100,0.3)",
- errorStrokeStyle: "rgb(250,63,72,0.3)",
- },
- CheckLinesX: {
- lineWidth: 2,
- strokeStyle: "#CED806",
- },
- CheckLinesY: {
- lineWidth: 2,
- strokeStyle: "#CED806",
- },
- VCheckLinesX: {
- lineWidth: 2,
- strokeStyle: "#CED806",
- //strokeStyle: 'rgba(100,149,237,0.5)',
- },
- VCheckLinesY: {
- lineWidth: 2,
- strokeStyle: "#CED806",
- //strokeStyle: 'rgba(100,149,237,0.5)',
- },
- };
- export default {
- SimpleLine,
- Road,
- CurveRoad,
- RoadEdge,
- CurveRoadEdge,
- Lane,
- CurveLan,
- Point,
- BaseLine,
- Text,
- ControlPoint,
- CurveRoadPoint,
- GuideLine,
- Font: CanvasFont,
- MeasureLine,
- Measure,
- Element,
- RoadPoint,
- bgColor: "#fff",
- };
|