[ftp][/ftp]Hi
It regarding my last post
https://mindfusion.eu/Forum/YaBB.pl?num=1500460403. We have to use drag and drop as well handle mouse click event in our diagram.
As you said in reply that if we comment out diagram.setEnabled(false) it will work. It works fine for me too. But my problem is that we cannot afford to comment out that code because we have use that code for enabling dragging and dropping. Please suggest some other way so that we use both functionallity.
Please have look at code over here
onDiagramMouseDown(event) {
const node = this.getNodeUnderCursor(event);
if (node) {
const localPoint = this.getLocalPoint(event);
const manipulator = node.hitTestManipulators(localPoint);
this.nodeClick.emit(node.data);
if (manipulator !== null) {
this.diagram.setEnabled(true);
} else {
this.diagram.setEnabled(false);
}
} else {
this.diagram.setEnabled(true);
}
}
onDiagramMouseUp(event) {
this.diagram.setEnabled(true);
}
please have look at this line in code
this.nodeClick.emit(node.data);. We can hear the event but when ever are redirecting to another page tooltip remain over the next page also.
Can you please give us good solution which support both click as well as drag and drop?
Please have a look at the code.
As i am able to upload whole project because over here maximum size file is 300 KB only.
To run this attached project
1. You need to extract all three zip.
2. Run npm install in Angular2_mindfusion_example folder
3. Copy the files from folder name "extract_it_in_assets_mindfusion" and paste it in "Angular2_Mindfusion_example\src\assets\mindfusion"
4. As i am using attached diagram library please copy and paste it in node_modules
5. Now try run by npm start
6. You can see the result here http://localhost:4200/
Thanks