As in the added photo i can not see the starting point of arrow. from this you can not guess the direction.
The red circle is the area where connection is connected. If i make connection from the start, the starting of arrow will be visible.
In nutshell it is visible to the left+ top corner that is covered in the red circle.
In the image , i connected it from back, and it connected to the dot that is inside the red circle. how can i fix this, it should connect to the edge of the box.
Update1
I changed the UI of shape (width:270, height:180). Now if you can connect this sdsd
element with connection arrow, the bullet point will only be visible for the red marked border, left and top of selected element.
otherwise if you connect this element, the bullet point of arrow will not be visible.
I inspected the element there is rect
that has djs-hit djs-hit-all
class, the element that is currently selected. I think connection is connected to this element and due to this bullet point is not visible.
it has width attribute set to 100. I provided width/height on .djs-hit, .djs-hit-all
to 270,180.
But did not work.
Now if you understands the problem and can help?
update 2
this is how i am rendering the element
drawCustomeShape(parent) {
const BOX_WIDTH = 270;
const BOX_HEIGHT = 120;
const elementShape = drawRect(BOX_WIDTH, BOX_HEIGHT, 10, '#FFFF');
attr(elementShape, { stroke: "#ddd", "stroke-width": "1px", });
append(parent, elementShape);
// element on hover it will showwn
// need to add this element as we want to add hoverEl
// providing height/width over default djs-hit can work but it does not fit on condition dianmond and start/end el
const hoverEl = drawRect(180, 120, 0, 'white');
attr(hoverEl, {
x: 0,
y: 0,
stroke: 'white',
strokeOpacity: '0',
strokeWidth: 15,
fill: 'none'
});
classes(hoverEl).add('djs-hit');
classes(hoverEl).add('djs-hit-all');
// this class matches the height and width
classes(hoverEl).add('hoverEls');
append(parent.parentNode, hoverEl);
// for hover effect -> show the dotted line over the
const hoverElOutline = drawRect(0, 0, 0, 'none');// update height width in css class accordingly
attr(hoverElOutline, {
x: -6,
y: -6
});
classes(hoverElOutline).add('djs-outline');
classes(hoverElOutline).add('hoverEl');
append(parent.parentNode, hoverElOutline);
return elementShape;
}