钥匙组件数据重新调整
This commit is contained in:
parent
26472da421
commit
d6ab9b00e2
File diff suppressed because one or more lines are too long
@ -26,7 +26,7 @@ export default class key extends Group {
|
||||
|
||||
this.keyImage = new Image({
|
||||
zlevel: this.zlevel,
|
||||
z: model.z,
|
||||
z: model.z+1,
|
||||
style: {
|
||||
image: this.getRotateColor(),
|
||||
x: 0,
|
||||
@ -38,7 +38,7 @@ export default class key extends Group {
|
||||
|
||||
this.rotatingButton = new Image({
|
||||
zlevel: this.zlevel,
|
||||
z: this.z-1,
|
||||
z: model.z,
|
||||
style: {
|
||||
image: Keyhole,
|
||||
x: 0,
|
||||
@ -49,7 +49,7 @@ export default class key extends Group {
|
||||
});
|
||||
this.ibpLine1 = new Line({
|
||||
zlevel: model.zlevel,
|
||||
z: model.z-1,
|
||||
z: model.z,
|
||||
shape: {
|
||||
x1: model.width+2,
|
||||
y1: 10,
|
||||
@ -63,7 +63,7 @@ export default class key extends Group {
|
||||
});
|
||||
this.ibpLine2 = new Line({
|
||||
zlevel: model.zlevel,
|
||||
z: model.z-1,
|
||||
z: model.z,
|
||||
draggable: false,
|
||||
shape: {
|
||||
y1: model.width/361*336+2,
|
||||
@ -77,16 +77,16 @@ export default class key extends Group {
|
||||
}
|
||||
});
|
||||
|
||||
this.topText = new Text({
|
||||
this.bottomText = new Text({
|
||||
zlevel: model.zlevel,
|
||||
z: model.z-1,
|
||||
z: model.z,
|
||||
style: {
|
||||
x: 10,
|
||||
y: model.width/361*336+12,
|
||||
fontWeight: 600,
|
||||
fontSize: 10,
|
||||
fontFamily: model.fontFamily,
|
||||
text: model.topText,
|
||||
text: model.bottomText,
|
||||
textStrokeWidth: 0,
|
||||
textFill: '#000',
|
||||
textAlign: 'center',
|
||||
@ -95,16 +95,16 @@ export default class key extends Group {
|
||||
}
|
||||
});
|
||||
|
||||
this.bottomText = new Text({
|
||||
this.topText= new Text({
|
||||
zlevel: model.zlevel,
|
||||
z: model.z-1,
|
||||
z: model.z,
|
||||
style: {
|
||||
x: model.width+14,
|
||||
y: 5,
|
||||
fontWeight: 600,
|
||||
fontSize: 10,
|
||||
fontFamily: model.fontFamily,
|
||||
text: model.bottomText,
|
||||
text: model.topText,
|
||||
textStrokeWidth: 0,
|
||||
textFill: '#000',
|
||||
textAlign: 'left',
|
||||
|
Loading…
Reference in New Issue
Block a user