修改代码
This commit is contained in:
parent
f37f441d33
commit
6b5c1790c6
@ -193,53 +193,19 @@ export default class Section extends Group {
|
|||||||
this.speedLimitNameLeft = new ELimitName({
|
this.speedLimitNameLeft = new ELimitName({
|
||||||
zlevel: this.zlevel,
|
zlevel: this.zlevel,
|
||||||
z: this.z + 10,
|
z: this.z + 10,
|
||||||
// shape: {
|
|
||||||
drict: -1,
|
drict: -1,
|
||||||
// points: {
|
|
||||||
x: model.points[0].x,
|
x: model.points[0].x,
|
||||||
y: model.points[0].y - 15,
|
y: model.points[0].y - 15,
|
||||||
// },
|
|
||||||
style: style
|
style: style
|
||||||
// },
|
|
||||||
// style: {
|
|
||||||
// lineWidth: 0,
|
|
||||||
// fill: style.Section.speedLimit.nameBackground,
|
|
||||||
// fontWeight: 'normal',
|
|
||||||
// fontSize: style.Section.speedLimit.nameNumberFontSize,
|
|
||||||
// fontFamily: style.fontFamily,
|
|
||||||
// text: '15',
|
|
||||||
// textFill: style.Section.speedLimit.nameNumberColor,
|
|
||||||
// textAlign: style.Section.text.textAlign,
|
|
||||||
// textPosition: style.Section.text.textPosition || 'inside',
|
|
||||||
// textVerticalAlign: style.Section.text.textVerticalAlign || null
|
|
||||||
// }
|
|
||||||
});
|
});
|
||||||
// 终点位置
|
// 终点位置
|
||||||
this.speedLimitNameRight = new ELimitName({
|
this.speedLimitNameRight = new ELimitName({
|
||||||
zlevel: this.zlevel,
|
zlevel: this.zlevel,
|
||||||
z: this.z + 10,
|
z: this.z + 10,
|
||||||
// shape: {
|
|
||||||
drict: 1,
|
drict: 1,
|
||||||
// points: {
|
|
||||||
x: model.points[model.points.length - 1].x,
|
x: model.points[model.points.length - 1].x,
|
||||||
y: model.points[model.points.length - 1].y - 15,
|
y: model.points[model.points.length - 1].y - 15,
|
||||||
// },
|
|
||||||
style: style
|
style: style
|
||||||
// },
|
|
||||||
// style: {
|
|
||||||
// lineWidth: 0,
|
|
||||||
// fill: style.Section.speedLimit.nameBackground,
|
|
||||||
// x: model.points[model.points.length - 1].x,
|
|
||||||
// y: model.points[model.points.length - 1].y,
|
|
||||||
// fontWeight: 'normal',
|
|
||||||
// fontSize: style.Section.speedLimit.nameNumberFontSize,
|
|
||||||
// fontFamily: style.fontFamily,
|
|
||||||
// text: '15',
|
|
||||||
// textFill: style.Section.speedLimit.nameNumberColor,
|
|
||||||
// textAlign: style.Section.text.textAlign,
|
|
||||||
// textPosition: style.Section.text.textPosition || 'inside',
|
|
||||||
// textVerticalAlign: style.Section.text.textVerticalAlign || null
|
|
||||||
// }
|
|
||||||
});
|
});
|
||||||
this.add(this.speedLimitNameLeft);
|
this.add(this.speedLimitNameLeft);
|
||||||
this.add(this.speedLimitNameRight);
|
this.add(this.speedLimitNameRight);
|
||||||
|
Loading…
Reference in New Issue
Block a user