Skip to content

Releases: uiwjs/react-signature

v1.3.1

17 Jan 17:10
Compare
Choose a tag to compare

v1.3.0

02 Dec 04:04
Compare
Choose a tag to compare

Buy me a coffee

Documentation v1.3.0: https://raw.githack.com/uiwjs/react-signature/bab8ae4/index.html
Comparing Changes: v1.2.3...v1.3.0

Canvas

Experimental components

import Signature from '@uiw/react-signature/canvas';
import React, { useRef } from "react";
import Signature from '@uiw/react-signature/canvas';

export default function App() {
  const $canvas = useRef(null);
  const handle = (evn) => $canvas.current?.clear();
  return (
      <Signature ref={$canvas} width="450" height="230"  />
  );
}

Enhance the renderPath props

export interface SignatureProps extends React.SVGProps<SVGSVGElement> {
    prefixCls?: string;
    options?: StrokeOptions;
    readonly?: boolean;
    defaultPoints?: Record<string, number[][]>;
-    renderPath?: (d: string, keyName: string, point: number[][], index: number) => JSX.Element;
+    renderPath?: (d: string, keyName: string, point: number[][], index: number, container: SVGSVGElement) => JSX.Element;
    onPointer?: (points: number[][]) => void;
}

v1.2.3

30 Nov 02:37
Compare
Choose a tag to compare

Buy me a coffee

Documentation v1.2.3: https://raw.githack.com/uiwjs/react-signature/0c9d693/index.html
Comparing Changes: v1.2.2...v1.2.3

export interface SignatureProps extends React.SVGProps<SVGSVGElement> {
    prefixCls?: string;
    options?: StrokeOptions;
    readonly?: boolean;
    defaultPoints?: Record<string, number[][]>;
-    renderPath?: (d: string, keyName: string, point: number[][]) => JSX.Element;
+    renderPath?: (d: string, keyName: string, point: number[][], index: number) => JSX.Element;
    onPointer?: (points: number[][]) => void;
}

v1.2.2

27 Nov 09:36
Compare
Choose a tag to compare

Buy me a coffee

Documentation v1.2.2: https://raw.githack.com/uiwjs/react-signature/1f5e9bd/index.html
Comparing Changes: v1.2.1...v1.2.2

v1.2.1

27 Nov 05:07
Compare
Choose a tag to compare

Buy me a coffee

Documentation v1.2.1: https://raw.githack.com/uiwjs/react-signature/be0508e/index.html
Comparing Changes: v1.2.0...v1.2.1

v1.2.0

25 Nov 10:37
Compare
Choose a tag to compare

Documentation v1.2.0: https://raw.githack.com/uiwjs/react-signature/4bc8890/index.html
Comparing Changes: v1.1.0...v1.2.0

v1.1.0

25 Nov 09:36
Compare
Choose a tag to compare

Documentation v1.1.0: https://raw.githack.com/uiwjs/react-signature/6272ef5/index.html
Comparing Changes: v1.0.0...v1.1.0

v1.0.0

23 Nov 22:20
Compare
Choose a tag to compare

Documentation v1.0.0: https://raw.githack.com/uiwjs/react-signature/ba12040/index.html
Comparing Changes: v0.0.1...v1.0.0

v0.0.1

23 Nov 20:31
Compare
Choose a tag to compare
released v0.0.1