var gridStyle = { strokeStyle: "#999999", f_fill: false, f_stroke: true, lineWidth: 1, globalAlpha: 0.3 }; var wallStyle = { fillStyle: "white", f_fill: true, f_stroke: true, globalAlpha: 1, globalCompositeOperation: "source-over", lineCap: "butt", lineJoin: "miter" }; var measureStyle = { fillStyle: "#000000", font: "10px Arial", globalAlpha: 1, lineWidth: 1, textAlign: "start", textBaseline: "alphabetic", name: "measure" }; //绿色 //var selectlineStyle = {strokeStyle:"#89b808", f_fill:false,f_stroke:true, globalAlpha:1,lineWidth:5,globalCompositeOperation:"source-over",lineCap:"round"}; var lineStyle = { strokeStyle: "#89b808", strokeStyle: "#89b808", f_fill: false, f_stroke: true, globalAlpha: 1, lineWidth: 5, globalCompositeOperation: "source-over", lineCap: "round" }; //open门和窗户 var openStyle = { strokeStyle: "#999999", f_fill: true, f_stroke: true, globalAlpha: 1, lineWidth: this.wallThickness, globalCompositeOperation: "source-over", lineCap: "butt", name: "open" }; //simple门 var simpleStyle = { strokeStyle: "#000000", fillStyle: "#EEEEEE", f_fill: true, f_stroke: true, globalAlpha: 0.5, lineWidth: 1, openLineWidth: this.wallThickness, globalCompositeOperation: "source-over", lineJoin: "miter", imageSmoothingEnabled: true, lineCap: "butt", name: "simple" }; //BiFoldDoor var biFoldStyle = { strokeStyle: "#000000", fillStyle: "#EEEEEE", f_fill: true, f_stroke: true, globalAlpha: 0.5, lineWidth: 1, openLineWidth: this.wallThickness, globalCompositeOperation: "source-over", lineJoin: "miter", imageSmoothingEnabled: true, lineCap: "butt", name: "biFold" }; //singleCasement窗 var singleStyle = { strokeStyle: "#000000", fillStyle: "#EEEEEE", f_fill: true, f_stroke: true, globalAlpha: 0.5, lineWidth: 1, openLineWidth: this.wallThickness, globalCompositeOperation: "source-over", lineJoin: "miter", imageSmoothingEnabled: true, lineCap: "butt", name: "single" }; //double窗 var doubleStyle = { strokeStyle: "#000000", fillStyle: "#EEEEEE", f_fill: true, f_stroke: true, globalAlpha: 0.5, lineWidth: 1, openLineWidth: this.wallThickness, globalCompositeOperation: "source-over", lineJoin: "miter", imageSmoothingEnabled: true, lineCap: "butt", name: "double" }; //slid门和窗户 var slidingStyle = { strokeStyle: "#000000", fillStyle: "#EEEEEE", f_fill: true, f_stroke: true, globalAlpha: 0.5, lineWidth: 1, openLineWidth: this.wallThickness, globalCompositeOperation: "source-over", lineJoin: "miter", imageSmoothingEnabled: true, lineCap: "butt", name: "sliding" }; //var doorStyle = {strokeStyle:"#89b808", f_fill:false,f_stroke:true, globalAlpha:1,lineWidth:this.wallThickness,globalCompositeOperation:"source-over"}; //winder楼梯 var winderStyle = {}; var spiralStyle = { strokeStyle: "#999999", strokeStyle2: "#000000", fillStyle: "white", f_fill: true, f_stroke: true, lineWidth: 1, globalAlpha: 0.05, globalAlpha2: 1 }; //var selectdwpointStyle={fillColor:"#FAFAFA",strokeStyle:"#89b808", f_fill:true, f_stroke:true,globalAlpha:1,lineWidth:2,r:this.selectCircle_R}; //选择的元素上的点的样式 var selectCircleStyle = { fillStyle: "white", strokeStyle: "#89b808", f_fill: true, f_stroke: true, globalAlpha: 1, lineWidth: 2, r: this.selectCircle_R }; var selectLineStyle = { strokeStyle: "#89b808", strokeStyle: "#89b808", f_fill: false, f_stroke: true, globalAlpha: 1, lineWidth: 5, globalCompositeOperation: "source-over", lineCap: "round" }; //var selectdwlineStyle = {strokeStyle:"#777777", f_fill:false, f_stroke:true,lineWidth:1,globalAlpha:1,globalCompositeOperation:"source-over"}; var circleStyle = { strokeStyle: "#89b808", strokeStyle: "#89b808", f_fill: false, f_stroke: true, fillOpacity: 1, strokeOpacity: 1, lineWidth: 5 }; var meterStyle = { strokeStyle: "black", f_fill: false, f_stroke: true, lineWidth: 1, globalAlpha: 1 }; var defaultStyle = { strokeStyle: "black", f_fill: false, f_stroke: true, lineWidth: 1, globalAlpha: 1, globalCompositeOperation: "source-over" }; var pointStyle = { fillStyle: "#89b808", strokeStyle: "#89b808", f_fill: true, f_stroke: true, fillOpacity: 1, strokeOpacity: 1, linewidth: 1 }; var textStyle = { font: "10px Arial", fillStyle: "#000000", globalAlpha: 1 }; var addcontext = { fillStyle: 0, lineCap: 0, strokeStyle: 0, lineWidth: 0, globalAlpha: 0 }; var doorStyle = { strokeColor: "#89b808", f_fill: false, f_stroke: true, globalAlpha: 0.3, linewidth: this.wallThickness, globalCompositeOperation: "source-over", lineCap: "butt" }; var doorStyle2 = { strokeColor: "#777777", f_fill: false, f_stroke: true, globalAlpha: 1, linewidth: this.wallThickness, globalCompositeOperation: "source-over", lineCap: "butt" }; var slidingdoor = { strokeColor: "#aaaaaa", fillColor: "#770000", globalAlpha: 1, linewidth: this.wallThickness, globalCompositeOperation: "source-over", lineCap: "butt" }; var doorPointStyle = { fillStyle: "#FAFAFA", strokeColor: "#89b808", f_fill: true, f_stroke: true, globalAlpha: 1, linewidth: 2, r: this.selectCircle_R }; var doorlineStyle = { strokeColor: "#777777", f_fill: false, f_stroke: true, linewidth: 1, globalAlpha: 1, globalCompositeOperation: "source-over" }; var sectorStyle = { fillStyle: "rgba(137, 137, 137, 0.5)", strokeStyle: "#89b808", lineWidth: 1, globalAlpha: 1, globalCompositeOperation: "source-over" }; //var selectdwpointStyle={fillStyle:"#FFFFFF",strokeStyle:"#89b808", f_fill:true, f_stroke:true,globalAlpha:1,lineWidth:2,r:this.selectCircle_R};