mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-22 14:47:56 +01:00
Add text position
This commit is contained in:
parent
d86bce42bf
commit
091a80449d
@ -64,6 +64,11 @@ class MainTopic extends Topic {
|
|||||||
const text = this.getText();
|
const text = this.getText();
|
||||||
textShape.setText(text);
|
textShape.setText(text);
|
||||||
textShape.setOpacity(0.5);
|
textShape.setOpacity(0.5);
|
||||||
|
|
||||||
|
// Copy text position of the topic element ...
|
||||||
|
const textPosition = this.getTextShape().getPosition();
|
||||||
|
textShape.setPosition(textPosition.x, textPosition.y);
|
||||||
|
|
||||||
group.append(textShape);
|
group.append(textShape);
|
||||||
}
|
}
|
||||||
return group;
|
return group;
|
||||||
|
@ -161,6 +161,7 @@ abstract class NodeGraph {
|
|||||||
|
|
||||||
createDragNode(layoutManager: LayoutManager) {
|
createDragNode(layoutManager: LayoutManager) {
|
||||||
const dragShape = this._buildDragShape();
|
const dragShape = this._buildDragShape();
|
||||||
|
|
||||||
return new DragTopic(dragShape, this, layoutManager);
|
return new DragTopic(dragShape, this, layoutManager);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user