电梯组件调整

This commit is contained in:
joylink_cuiweidong 2019-08-30 10:14:49 +08:00
parent 45e626d53b
commit 1a479b0ed7
2 changed files with 23 additions and 18 deletions

View File

@ -33,8 +33,8 @@ export default class elevator extends Group {
}, },
width: model.width, width: model.width,
height: model.height, height: model.height,
fillColor: model.fillColor ||'#adadad', fillColor: model.fillColor ||'#313131',
stroke: model.fillColor ||'#adadad', stroke: model.fillColor ||'#313131',
lineWidth: 0 lineWidth: 0
} }
}); });

View File

@ -21,12 +21,14 @@ export default class elevatorBack extends Group {
draggable: false, draggable: false,
// model.draggable || // model.draggable ||
shape: { shape: {
cx: model.point.x + model.width/6*5, cx: (model.point.x + model.width/6*5).toFixed(2),
cy: model.point.y + model.height/8, cy: (model.point.y + model.height/8).toFixed(2),
r: model.width/6 r: (model.width/6).toFixed(2)
}, },
style: { style: {
fill: this.model.fillColor || '#adadad' brushType: 'fill',
fill: this.model.fillColor || '#313131',
lineWidth: 0
} }
}); });
@ -35,17 +37,18 @@ export default class elevatorBack extends Group {
z: model.z, z: model.z,
draggable: false, draggable: false,
shape: { shape: {
points: [[model.point.x+model.width/6, model.point.y + model.height], [model.point.x+model.width/6*2, model.point.y + model.height], points: [[(model.point.x+model.width/6).toFixed(2), (model.point.y + model.height).toFixed(2)], [(model.point.x+model.width/6*2).toFixed(2), model.point.y + model.height],
[model.point.x+model.width/6*5, model.point.y + model.height/8*2], [(model.point.x+model.width/6*5).toFixed(2), (model.point.y + model.height/8*2).toFixed(2)],
[model.point.x+model.width/6*5, model.point.y], [(model.point.x+model.width/6*5).toFixed(2), model.point.y],
[model.point.x+model.width/6*4, model.point.y], [(model.point.x+model.width/6*4).toFixed(2), model.point.y],
[model.point.x+model.width/6, model.point.y + model.height/8*6] [(model.point.x+model.width/6).toFixed(2), (model.point.y + model.height/8*6).toFixed(2)]
] ]
}, },
style: { style: {
stroke: model.stroke || '#adadad', brushType: 'fill',
lineWidth: model.lineWidth, stroke: model.stroke || '#313131',
fill: model.fillColor || '#adadad' lineWidth: 0,
fill: model.fillColor || '#313131'
} }
}); });
@ -55,12 +58,14 @@ export default class elevatorBack extends Group {
// path: 'M 0 0 Q -70 -50 0 -100 0 -100 L 150 -400 L 200 -400 Q 270 -350 200 -300 200 -300 L 50 0', // path: 'M 0 0 Q -70 -50 0 -100 0 -100 L 150 -400 L 200 -400 Q 270 -350 200 -300 200 -300 L 50 0',
draggable: false, draggable: false,
shape: { shape: {
cx: model.point.x + model.width/6, cx: (model.point.x + model.width/6).toFixed(2),
cy: model.point.y + model.height/8*7, cy: (model.point.y + model.height/8*7).toFixed(2),
r: model.width/6 r: (model.width/6).toFixed(2)
}, },
style: { style: {
fill: this.model.fillColor || '#adadad' fill: this.model.fillColor || '#313131',
lineWidth: 0,
brushType: 'fill'
} }
}); });