调整鼠标事件

This commit is contained in:
zyy 2020-09-08 15:39:23 +08:00
parent 5ff71d3820
commit 7d826a4d59
2 changed files with 1 additions and 45 deletions

View File

@ -79,6 +79,7 @@ export default class Station extends Group {
fontWeight: model.fontWeight,
fontSize: model.kmPostFont || 18,
fontFamily: style.fontFamily,
silent: !model.visible,
text: model.kmPost,
textAlign: 'middle',
textVerticalAlign: 'top',

View File

@ -24,48 +24,3 @@ export default function ETextName(model) {
});
return TextName;
}
// export default class ETextName extends Group {
// constructor(model) {
// super();
// this.model = model;
// this.zlevel = model.zlevel;
// this.z = model.z;
// this.create();
// }
// create() {
// this.TextName = new Text({
// _subType: this.model._subType,
// zlevel: this.zlevel,
// z: this.z,
// silent: this.model.silent || false,
// style: {
// x: this.model.x,
// y: this.model.y,
// text: this.model.text,
// textFont: this.model.textFont,
// textFill: this.model.textFill,
// textAlign: this.model.textAlign,
// textPosition: this.model.textPosition || 'inside',
// textVerticalAlign: this.model.textVerticalAlign || null
// }
// });
// this.add(this.TextName);
// }
// setStyle(model) {
// this.TextName.setStyle(model);
// }
// setColor(color) {
// this.TextName.setStyle('textFill', color);
// }
// hide() {
// this.TextName.hide();
// }
// show() {
// this.TextName.show();
// }
// }