Select multiple points on an image

More
2 years 5 months ago #176590 by tpartner
My thinking on the single-line input is that we could use a multiple-short-text question for the good/bad values, the coordinates and the comments. That way we could roll it into a custom question theme containing all necessary scripts and styles.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com
The topic has been locked.
More
2 years 5 months ago #176634 by Joffm
Hi, Tony,

sounds good.

Are you able to do it? Unfortunately I am not.
I am good at many things, but neither familiar with JS nor with the custom question themes (which I hope to learn some day).

Kind regards
Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
More
2 years 5 months ago #176667 by tpartner
Yes, I can probably do that but it will take some time.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com
The topic has been locked.
More
2 years 4 months ago - 2 years 4 months ago #176976 by tpartner
@Joffm, have a look at this custom question theme and let me know if you want any other features - github.com/tpartner/LimeSurvey-Image-Interest-Points-3.x

(it is mobile capable)

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com
Last edit: 2 years 4 months ago by tpartner.
The following user(s) said Thank You: DenisChenu, holch, Joffm
The topic has been locked.
More
2 years 4 months ago #176994 by Joffm
Hi, Tony,
this is absolutely breathtaking.

I do not know what to say.

Many thanks.

Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
More
2 years 4 months ago #176995 by holch

this is absolutely breathtaking.


There, you said it... ;-)

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.
More
2 years 4 months ago #177013 by Joffm
Hi,

testing this I found two not really important things.
Here the maximum number of markers is 5.

1. After I dragged 5 positive markers, there are no more (obvious because only 5 are created and parked.)
And the negative marker is disabled, but not visible; there is still the active color (but my glasses get worse).

But after removing one positive marker the negative stays disabled.


2. After placing 5 markers (pos. and neg.) the still parked markers are disabled (as you would expect)

But after removing one marker only the parked marker of this "value" (pos. resp. neg.) is enabled again. The other stays disabled.


As I said: Minor issues.

I am so happy that we have somebody here who fulfills nearly every wish.

Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
The topic has been locked.
More
2 years 4 months ago #177021 by tpartner
Thanks for testing.

Regarding the parked markers not being re-enabled, here is a fix - github.com/tpartner/LimeSurvey-Image-Int...bfc0b33eb9f2bd67444d

Regarding the appearance of disabled markers, in interestPoints.css (line 74), you could change this:
.interest-points-outer-wrapper .disabled-marker {
	opacity:0.20;
	filter:alpha(opacity=20);
	cursor: default;
}

To this:
.interest-points-outer-wrapper .disabled-marker {
	opacity:0.20;
	filter:alpha(opacity=20);
	cursor: default;
	background-color: #999999 !important;
}


Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com
Attachments:
The topic has been locked.
More
2 years 4 days ago #183154 by pixelT
Hey, sorry to open this topic again, but I thought it would make more sense to continue here than to create a new topic.

First of all, thank you for making this project it really helped me creating mine!!

I have just come to one problem/question: I don't know how the vectores are saved.
I tried to understand the code but I couldn't figure it out.

To explain it bit deeper:
In my project I would need to know the order of the placed markers- like which was the first one placed, the second one,...the last one.

I tried many examples to figure out the algorithm behind it but I didn't succeed.
with 2 markers placed, the order is right. but When you place more than 2 markers the order of them completely changes.

Maybe somebody could help me understand how they are saved?

Thank you in advance and have a nice day :)
The topic has been locked.
More
2 years 4 days ago #183156 by tpartner
The data is simply recorded in the order that the markers are found in the DOM.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com
The topic has been locked.
More
2 years 4 days ago #183157 by Joffm
They are stored in reverse order:
I set
1st: upper left corner: coords: 1,1 stored in SQ010-SQ012
2nd: upper right corner: coords: 99,1 stored in SQ007-SQ009
3rd: lower left corner: coords: 1,99 stored in SQ004-SQ006
4th: lower right corner: coords: 99,99 stored in SQ001-SQ003

So, to know the order you may do some restructuring in a spreadsheet.

Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
More
2 years 4 days ago #183161 by pixelT
Thank you both for your answers!

If it was reverse order it would not be a problem for me as you can easily reorder it. But the problem is, it isn't just stored backwards. I made a few examples and tested them:
I will attach a picture.
on the left side is the order I placed the markers- on the right i marked the displayed stored coordinates after completing the survey.
Attachments:
The topic has been locked.
More
2 years 4 days ago #183164 by Joffm
As far as I know,
if there is an algorhythm, it works always identical.

And looking at your pictures:
Seems to be in reverse order, but maybe you are confused about the coords.
0,0 upper left
100,100 lower right.

All your examples show it correctly, if we do just a symmetrical mirroring
Your last example:
1st: top middle -> 4 bottom middle
2nd: bottom middle -> 3 top middle
3rd: middle right -> 2 middle left
4th: middle left -> 1 middle right

As long as I use this, and in a dashboard show the results afterwards, it never worked differently

Joffm

Write the position into the comment and compare in database.


Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
More
2 years 4 days ago #183170 by pixelT
Oh god!! I really messed up with reading the coordinates!!
I assumed a normal x and y axis- x the bottom horizontal line and y the left vertical line- but it is different here.

Thank you sooo much this made me think for hours!!





Im attaching my pictures with the corrected coordinates- for future readers.
Attachments:
The topic has been locked.
More
1 year 4 months ago #191528 by gremlin
Hi!

Sorry to ask amateurish questions
1) Where should I upload the ZIP file to? In the plug-in folder?
2) How do I effect these changes to the ZIP folder?
The topic has been locked.

Start now!

Just create your account and start using Limesurvey today.

Register now