|
Query |
Response |
|
Once I connect connector with two nodes, after that if i click on center of connector and try to drag it then it is disconnected from both nodes. Any solution? |
Please remove drag connectorConstraints from default to achieve your requirement. please refer to the code example,help documentation and playground link below.
Code example:
var connectors = [
{ name: "connector1", sourceNode: "NewIdea", targetNode: "Meeting",constraints:ej.datavisualization.Diagram.ConnectorConstraints.Default &~ej.datavisualization.Diagram.ConnectorConstraints.Drag, },
];
Help documentation: https://help.syncfusion.com/api/js/ejdiagram#members:connectors-constraints
|
|
I want remove aspectratio attribute of image type node. Any solution for that? |
Please set node’s scale property as stretch to achieve your requirement. please refer to the code example,help documentation and playground link below.
Code example:
var nodes=[
{ name: "image", width: 150, height: 60, offsetX: 500, offsetY: 155, scale:"stretch", type: "image",source:"https://static.pexels.com/photos/56866/garden-rose-red-pink-56866.jpeg" },
]
Help documentation: https://help.syncfusion.com/js/diagram/shapes#image-alignment
|
|
I want restrict user to resize node only in diagonal direction, not in horizontal or vertical direction.. Any Possibility? |
Please remove ResizeNorthEast, ResizeSouthEast, ResizeNorthWest and ResizeSouthWest NodeConstraints from default to disable node resizer in diagonal direction. Please refer to the code example,help documentation and help documentation.
Code example:
Var nodes=[
{ name: "NewIdea",
constraints:ej.datavisualization.Diagram.NodeConstraints.Default &~(ej.datavisualization.Diagram.NodeConstraints.ResizeNorthEast | ej.datavisualization.Diagram.NodeConstraints.ResizeSouthEast |ej.datavisualization.Diagram.NodeConstraints.ResizeNorthWest |ej.datavisualization.Diagram.NodeConstraints.ResizeSouthWest),
}
]
Help documentation: https://help.syncfusion.com/api/js/ejdiagram#members:nodes-constraints
|
|
Query |
Response |
|
Please remove ResizeNorthEast, ResizeSouthEast, ResizeNorthWest and ResizeSouthWest NodeConstraints from default to disable node resizer in diagonal direction. Please refer to the code example,help documentation and help documentation. "
For me its like reverse thing ;) I want enable diagnoal resizers. i have changed your logic as below
constraints: ej.datavisualization.Diagram.NodeConstraints.Default & ~(ej.datavisualization.Diagram.NodeConstraints.ResizeEast | ej.datavisualization.Diagram.NodeConstraints.ResizeSouth | ej.datavisualization.Diagram.NodeConstraints.ResizeWest | ej.datavisualization.Diagram.NodeConstraints.ResizeNorth)
and these are activated but i've little problem. I want allow user to resize item only in diagonal direction, not in East, West, South OR North Directions. with these diagonal resizers I'm able to resize in single direction. |
Sorry for the inconvenience.
Code example:
Var nodes=[
{ name: "NewIdea",
constraints:ej.datavisualization.Diagram.NodeConstraints.Default &~(ej.datavisualization.Diagram.NodeConstraints.ResizeEast | ej.datavisualization.Diagram.NodeConstraints.ResizeSouth |ej.datavisualization.Diagram.NodeConstraints.ResizeNorth |ej.datavisualization.Diagram.NodeConstraints.ResizeWest),
}
]
Please refer to the playground link below in which we have enabled diagonal resizer alone.
Also could you please confirm us whether you need to hide the disabled resizer?
if we misunderstood your requirement, please share us more details such as explain clearly how you would like to resize the node with screenshot or video.
|
|
I've few more couple of questions :) can I post multiple questions in a forum or single? or other way to get all answers? |
If you have any doubts in query asked in this forum, you can ask it in this forum itself and if you wish to ask new query, you can create a new forum and post your query. Also you can post Multiple questions in a single forum. |
| No, i want allow user to resize node |
| I've attached screenshot, please look into that, there are 3 images. 1 image is in original position. I want image in that accurate result if user drag image in any direction, it should not get disturbed |
| Not necessary |
|
|