Hareeshchandera / jsplumb

Automatically exported from code.google.com/p/jsplumb
0 stars 0 forks source link

Label Endpoint #178

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Besides the three available endpoints. An additional "label endpoint" which 
adds a text on the endpoint div would be really great

Original issue reported on code.google.com by kaiser.a...@gmail.com on 16 Jan 2012 at 10:56

GoogleCodeExporter commented 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

GoogleCodeExporter commented 8 years ago

Original comment by simon.po...@gmail.com on 16 Jan 2012 at 11:06

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
have you considered putting a Label overlay at location:0 ?

Original comment by simon.po...@gmail.com on 17 Jan 2012 at 7:48

GoogleCodeExporter commented 8 years ago
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:

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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:

GoogleCodeExporter commented 8 years ago
Great job !!!
Thanks a lot for adding this feature 

Original comment by kaiser.a...@gmail.com on 21 Jan 2012 at 9:16

GoogleCodeExporter commented 8 years ago
marking fixed.

Original comment by simon.po...@gmail.com on 22 Jan 2012 at 2:01

GoogleCodeExporter commented 8 years ago
1.3.5 was released today.

Original comment by simon.po...@gmail.com on 1 Feb 2012 at 1:58