Comments (4)
signature-widget/src/main/java/de/f0rce/signaturepad/SignaturePad.java
Lines 211 to 215 in 56eba2a
@Koboo as you can see here I forgot to add a "a" after the "rgb". I am currently updating the whole Add-On as there is a whole new version of the frontend code. I already fixed this issue locally and will upload it as soon as I'm done with rebaseing.
Thanks for showing me,
David
from signature-widget.
public void setBackgroundColor(int r, int g, int b, double alpha) {
String rgba = "rgb(" + r + ", " + g + ", " + b + ", " + alpha + ")";
this.getElement().setProperty("backgroundColor", rgba);
}
If anyone is wondering how to set a background with alpha channel anyway, here is a code snippet that should help. I inherited the SignaturePad in a new class SignatureField and wrote this method there. Until an update is available, this will solve the problem centrally.
And a huge thanks to you @F0rce for supporting the Vaadin open source community! I use several of the components you created/maintained and must say, good job, keep it up!
from signature-widget.
@Koboo thank you very much for the kind words. I do my best to actively maintain / update the components I created.
I fixed the RGBA issue and added some good cleanup to the frontend. The Java Backend didnt change, so everything should work when updating to 2.0.1
Will upload the new version now.
Have a great day and thanks for showing me the issue,
David
from signature-widget.
2.0.1 has been published to the directory
https://vaadin.com/directory/component/signature-widget/2.0.1
from signature-widget.
Related Issues (10)
- Library includes/links pro components HOT 6
- Signature not visible HOT 10
- Investigate signature_pad 4.0.2 not working in a webcomponent environment
- Signature is made 3cm next to the mouse HOT 1
- clear() does not remove the imageUri or base64 String HOT 4
- ValueChangeEvent Support HOT 1
- Check if the Signature is empty HOT 4
- Problem running on Vaadin 24 HOT 2
- setImage() does not set the content for the signaturePad HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from signature-widget.