squiggle with signature-pad and smoother lines + blossom #258

Merged
enes merged 12 commits from feat/signature-pad into staging 2024-11-26 09:35:44 +00:00
2 changed files with 10 additions and 2 deletions
Showing only changes of commit a1c308727f - Show all commits

View File

@ -85,7 +85,11 @@ export const MarkInputSignature = ({
></canvas> ></canvas>
{typeof userMark?.mark !== 'undefined' && ( {typeof userMark?.mark !== 'undefined' && (
<div className={styles.absolute}> <div className={styles.absolute}>
<MarkRenderSignature value={value} mark={userMark.mark} /> <MarkRenderSignature
key={userMark.mark.value}
value={userMark.mark.value}
mark={userMark.mark}
/>
</div> </div>
)} )}
<div className={styles.reset}> <div className={styles.reset}>

View File

@ -51,7 +51,11 @@ const PdfMarkItem = forwardRef<HTMLDivElement, PdfMarkItemProps>(
}} }}
> >
{typeof MarkRenderComponent !== 'undefined' && ( {typeof MarkRenderComponent !== 'undefined' && (
<MarkRenderComponent value={getMarkValue()} mark={userMark.mark} /> <MarkRenderComponent
key={getMarkValue()}
value={getMarkValue()}
mark={userMark.mark}
/>
)} )}
</div> </div>
) )