-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Text Alignment made easy and convenient. #1804
Conversation
@harshkhandeparkar ,@jywarren could you please review this. |
if Gif is hazzy then you can look at this clip - Screen.Recording.2021-02-05.at.2.04.28.PM.mov |
@harshkhandeparkar Could you please check this out |
src/modules/TextOverlay/info.json
Outdated
}, | ||
"custom": { | ||
"type": "select", | ||
"desc": "Fill Coordinates On Click.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is very cool! Could we change this to a button with a crosshairs icon, maybe? What do you think...
https://fontawesome.com/v4.7.0/icon/crosshairs
<i class="fa fa-crosshairs"></i>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure ,that will be a better choice
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jywarren please have a look at these new changes
4519183
to
891abf7
Compare
This is the working clip with new changes - Screen.Recording.2021-02-07.at.5.22.52.PM.movis this ok now |
059499c
to
cc6160c
Compare
This is awesome. There's this wierd bug I am facing tho. I need to make some changes in parameters other than the coordinates to make it apply everytime. |
Hmm, even if you change the coordinates manually instead of by clicking? @vivek-30 this looks great. Could you put the button leftmost on the line and use non-bold text that says |
03e02e2
to
900e7eb
Compare
@jywarren , @daemon1024 sir plz have a look now 😊 |
image-sequencer/examples/lib/mapHtmltypes.js Lines 7 to 28 in eb81b7d
|
ok you mean we can add type to be |
Yes. What do you think we should do? |
79443ae
to
16d2365
Compare
sure that will be a better way to handle it 😄 .Thanks for suggesting this. |
Nope Screencast-from-02-11-2021-12_06_28-AM.mp4As you can see it was not letting me apply changes unless I manually typed in coordinates again or change some other parameter. |
@vivek-30 It would be great if you commit each of your changes separately instead of amending the original commit would be easy to understand what changes exactly you made after a review/suggestion. Thank You. |
src/modules/TextOverlay/info.json
Outdated
@@ -8,6 +8,10 @@ | |||
"desc": "Enter the text to overlay.", | |||
"default": "Lorem ipsum" | |||
}, | |||
"Custom coordinates": { | |||
"type": "coordinate-input", | |||
"id": "coordinates-input" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
id
is no longer required :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, please add a description desc
if possible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i have added that but @jywarren wants non-bold text instead.
should i add desc
back now?
examples/lib/defaultHtmlStepUi.js
Outdated
@@ -118,7 +118,14 @@ function DefaultHtmlStepUi(_sequencer, options) { | |||
paramVal + '">' + '<span class="input-group-addon"><i></i></span>' + | |||
'</div>'; | |||
} | |||
else { // Non color-picker input types | |||
else if(inputDesc.id === 'coordinates-input'){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use inputDesc.type
instead of id
here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok i will remove that.
@daemon1024 i thought it will help the maintainers to merge as they themself don't have to do squashing. apologies,😅 now i will take care of this by not amending my commits. |
|
ok i will take care of it ,actually i did not knew about it. |
1bc7ecd
to
6b5ac73
Compare
sorry for re-pushing this i have accidentally staged and committed some untracked files. |
No problem @vivek-30 -- all good, and we really appreciate your work on this! Is it ready for a final review? Thanks! |
@harshkhandeparkar is there anything else i have to change? |
@harshkhandeparkar , @jywarren is this PR ready to be merged😅. |
Great work, thank you!!! |
@jywarren welcome sir 😊 |
Fixes #1767 .
After this fix we can now align text easily at any position on image by just clicking on that point on the image.