1) I'm using JointJS diagramming lib. I want to change the css of a particular inPort
when using joint.shapes.devs
.
For linking sourcePort to the target I'm using
source: { id: source.id, selector: source.getPortSelector(sourcePort)}
It's giving me accurate source port, but how to apply css on this particular port after knowing it as my source connector? Is there a way?
2) Can we fit/wrap the label automatically inside the element if its width is longer than the element-width? I'm using joint.shapes.devs.Atomic
element(s).
I came across foreignobject
but don't know how to use it?
Can anyone throw some light on it?
joint.shapes.devs
? Didn't even find an example to useforeignObject
to wrap text. Can you please help me on that. – Tanney