MarvinKlein1508 / SignaturePad

A simple to use blazor component to draw custom signatures.
MIT License
72 stars 12 forks source link

SignaturePad rotate vertical #28

Closed Dsalazar09 closed 2 months ago

Dsalazar09 commented 2 months ago

Hello @MarvinKlein1508 .

Can this component be rotated so that it is vertical? It is to be implemented in a MAUI BLAZOR application, and if it will remain on the screen it would be great.

I did something with CSS and it does rotate but at the time of writing it doesn't line where it is.

Do you have any idea how it can be solved?

MarvinKlein1508 commented 2 months ago

You should be able to overrite the CSS values for width and height. They are documented in the README file.

Basically the component renders into the size of the canvas.

Dsalazar09 commented 2 months ago

Very good Marvin. It can be done by modifying the height with CSS and when saving you just have to rotate the signature.

Another question: by chance can the button: Clear signature be given a color?

Is it possible to change the color of the clear signature button? f1

MarvinKlein1508 commented 2 months ago

You can provide a custom class for the button by setting the ClearButtonClass parameter.

Dsalazar09 commented 2 months ago

@MarvinKlein1508 thank you so much