Closed GoogleCodeExporter closed 8 years ago
do you mean you would like an endpoint type that consists only of some text?
or that you would like the ability to label an existing endpoint type?
Original comment by simon.po...@gmail.com
on 16 Jan 2012 at 11:06
Original comment by simon.po...@gmail.com
on 16 Jan 2012 at 11:06
Both would be great
But in my case a rectangle containing the text would fit my needs
Original comment by kaiser.a...@gmail.com
on 17 Jan 2012 at 7:38
have you considered putting a Label overlay at location:0 ?
Original comment by simon.po...@gmail.com
on 17 Jan 2012 at 7:48
For my point of understanding labels on overlay only appear if a connection
from source to target exists. But i want the label on the endpoint before any
connection exists(see attached image)
Original comment by kaiser.a...@gmail.com
on 17 Jan 2012 at 8:03
Attachments:
yeah good point.
i wouldn't be too keen to add an endpoint that was just some text. but adding
the ability to label an endpoint has been something i intend to do for a while
now.
Original comment by simon.po...@gmail.com
on 17 Jan 2012 at 8:48
really looking forward to this feature. Hope this will not take so long
Original comment by kaiser.a...@gmail.com
on 17 Jan 2012 at 9:46
i probably won't get to this for a few weeks; i've got a long list of things to
do before this. this issue has been raised before and i seem to recall i had
some questions about placement that i never got answers to..let me see if i can
find the issue.
Original comment by simon.po...@gmail.com
on 17 Jan 2012 at 10:00
ok, so the other issue was issue 64.
in comment 11 i ask for some feedback on the proposed label placement API. do
you have any thoughts?
Original comment by simon.po...@gmail.com
on 17 Jan 2012 at 10:02
for the beginning a array with x and y coordinates would be enough. May a third
parameter for rotation (0°-360°) would be nice
Original comment by kaiser.a...@gmail.com
on 17 Jan 2012 at 10:25
i'd be using a DIV, though, so a rotation parameter would have to be
implemented using css3 transforms...which you can do yourself, in conjunction
with the cssClass property you can set on overlays.
Original comment by simon.po...@gmail.com
on 17 Jan 2012 at 10:30
just an idea:
is it possible to add a label with jquery with the current version ?
something like $(".cssClass).text("hello world")
i´m too busy at the moment to write a small test at jsfiddle
but i will try it later
Original comment by kaiser.a...@gmail.com
on 17 Jan 2012 at 8:30
if you want something at the moment you can of course position a div over the
endpoint's "canvas" member; that's all jsPlumb will do. but the positioning
might be a problem - adding elements to that canvas (which is actually a DIV
for endpoints) might mean you push jsPlumb's endpoint stuff out. so you'd be
better off positioning absolute, but then you'd have to move the label around
yourself as the element to which it is attached is dragged.
Original comment by simon.po...@gmail.com
on 17 Jan 2012 at 8:43
this is done in development now and will be in release 1.3.5.
Original comment by simon.po...@gmail.com
on 21 Jan 2012 at 6:05
Attachments:
Great job !!!
Thanks a lot for adding this feature
Original comment by kaiser.a...@gmail.com
on 21 Jan 2012 at 9:16
marking fixed.
Original comment by simon.po...@gmail.com
on 22 Jan 2012 at 2:01
1.3.5 was released today.
Original comment by simon.po...@gmail.com
on 1 Feb 2012 at 1:58
Original issue reported on code.google.com by
kaiser.a...@gmail.com
on 16 Jan 2012 at 10:56