Style.js 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. var gridStyle = {strokeStyle:"#999999", f_fill:false, f_stroke:true,lineWidth:1,globalAlpha:0.3};
  2. var wallStyle = {fillStyle:"white",f_fill:true,f_stroke:true,globalAlpha:1,globalCompositeOperation:"source-over",lineCap:"butt",lineJoin:"miter"};
  3. var measureStyle={fillStyle:"#000000",font:"10px Arial",globalAlpha:1,lineWidth:1,textAlign:"start",textBaseline:"alphabetic",name:"measure"};
  4. //绿色
  5. //var selectlineStyle = {strokeStyle:"#89b808", f_fill:false,f_stroke:true, globalAlpha:1,lineWidth:5,globalCompositeOperation:"source-over",lineCap:"round"};
  6. var lineStyle = {strokeStyle:"#89b808", strokeStyle:"#89b808",f_fill:false,f_stroke:true, globalAlpha:1,lineWidth:5,globalCompositeOperation:"source-over",lineCap:"round"};
  7. //open门和窗户
  8. var openStyle = {strokeStyle:"#999999", f_fill:true,f_stroke:true, globalAlpha:1,lineWidth:this.wallThickness,globalCompositeOperation:"source-over",lineCap:"butt",name:"open"};
  9. //simple门
  10. 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"};
  11. //BiFoldDoor
  12. 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"};
  13. //singleCasement窗
  14. 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"};
  15. //double窗
  16. 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"};
  17. //slid门和窗户
  18. 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"};
  19. //var doorStyle = {strokeStyle:"#89b808", f_fill:false,f_stroke:true, globalAlpha:1,lineWidth:this.wallThickness,globalCompositeOperation:"source-over"};
  20. //winder楼梯
  21. var winderStyle = {};
  22. var spiralStyle = {strokeStyle:"#999999",strokeStyle2:"#000000", fillStyle:"white",f_fill:true, f_stroke:true,lineWidth:1,globalAlpha:0.05,globalAlpha2:1};
  23. //var selectdwpointStyle={fillColor:"#FAFAFA",strokeStyle:"#89b808", f_fill:true, f_stroke:true,globalAlpha:1,lineWidth:2,r:this.selectCircle_R};
  24. //选择的元素上的点的样式
  25. var selectCircleStyle={fillStyle:"white",strokeStyle:"#89b808", f_fill:true, f_stroke:true,globalAlpha:1,lineWidth:2,r:this.selectCircle_R};
  26. var selectLineStyle={strokeStyle:"#89b808", strokeStyle:"#89b808",f_fill:false,f_stroke:true, globalAlpha:1,lineWidth:5,globalCompositeOperation:"source-over",lineCap:"round"};
  27. //var selectdwlineStyle = {strokeStyle:"#777777", f_fill:false, f_stroke:true,lineWidth:1,globalAlpha:1,globalCompositeOperation:"source-over"};
  28. var circleStyle = {strokeStyle:"#89b808",strokeStyle:"#89b808", f_fill:false, f_stroke:true, fillOpacity:1, strokeOpacity:1,lineWidth:5};
  29. var meterStyle = {strokeStyle:"black", f_fill:false, f_stroke:true,lineWidth:1,globalAlpha:1};
  30. var defaultStyle={strokeStyle:"black", f_fill:false, f_stroke:true,lineWidth:1,globalAlpha:1,globalCompositeOperation:"source-over"};
  31. var pointStyle = {fillStyle:"#89b808", strokeStyle:"#89b808",f_fill:true, f_stroke:true, fillOpacity:1, strokeOpacity:1,linewidth:1};
  32. var textStyle={ font:"10px Arial",fillStyle:"#000000",globalAlpha:1};
  33. var addcontext={fillStyle:0,lineCap:0,strokeStyle:0,lineWidth:0,globalAlpha:0};
  34. var doorStyle = {strokeColor:"#89b808", f_fill:false,f_stroke:true, globalAlpha:0.3,linewidth:this.wallThickness,globalCompositeOperation:"source-over",lineCap:"butt"};
  35. var doorStyle2 = {strokeColor:"#777777", f_fill:false,f_stroke:true, globalAlpha:1,linewidth:this.wallThickness,globalCompositeOperation:"source-over",lineCap:"butt"};
  36. var slidingdoor = {strokeColor:"#aaaaaa", fillColor:"#770000", globalAlpha:1,linewidth:this.wallThickness,globalCompositeOperation:"source-over",lineCap:"butt"};
  37. var doorPointStyle={fillStyle:"#FAFAFA",strokeColor:"#89b808", f_fill:true, f_stroke:true,globalAlpha:1,linewidth:2,r:this.selectCircle_R};
  38. var doorlineStyle = {strokeColor:"#777777", f_fill:false, f_stroke:true,linewidth:1,globalAlpha:1,globalCompositeOperation:"source-over"};
  39. var sectorStyle={fillStyle:"rgba(137, 137, 137, 0.5)",strokeStyle:"#89b808",lineWidth:1,globalAlpha:1,globalCompositeOperation:"source-over"};
  40. //var selectdwpointStyle={fillStyle:"#FFFFFF",strokeStyle:"#89b808", f_fill:true, f_stroke:true,globalAlpha:1,lineWidth:2,r:this.selectCircle_R};