| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265 |
- 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};
|