updated text label position on connections. added nullcheck for modify event.
This commit is contained in:
parent
e2d251e8b7
commit
b459f75d24
@ -108,7 +108,9 @@ export class DiagramConnection {
|
|||||||
text.forEach((node) => {
|
text.forEach((node) => {
|
||||||
const t: AbstractMesh = node as AbstractMesh;
|
const t: AbstractMesh = node as AbstractMesh;
|
||||||
t.scaling.y = 1 / this._mesh.scaling.y;
|
t.scaling.y = 1 / this._mesh.scaling.y;
|
||||||
|
t.position.x = .05;
|
||||||
|
t.position.z = .05;
|
||||||
|
t.position.y = 0;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (this.fromAnchor && (this.fromAnchor as AbstractMesh).material) {
|
if (this.fromAnchor && (this.fromAnchor as AbstractMesh).material) {
|
||||||
|
|||||||
@ -66,10 +66,9 @@ export function diagramEventHandler(event: DiagramEvent,
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case DiagramEventType.MODIFY:
|
case DiagramEventType.MODIFY:
|
||||||
if (physicsEnabled) {
|
if (mesh && physicsEnabled) {
|
||||||
applyPhysics(sounds, mesh, scene);
|
applyPhysics(sounds, mesh, scene);
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case DiagramEventType.REMOVE:
|
case DiagramEventType.REMOVE:
|
||||||
if (mesh) {
|
if (mesh) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user