Releases: uiwjs/react-signature
v1.3.1
Documentation v1.3.1: https://raw.githack.com/uiwjs/react-signature/503d643/index.html
Comparing Changes: v1.3.1...v1.3.1
v1.3.0
Documentation v1.3.0: https://raw.githack.com/uiwjs/react-signature/bab8ae4/index.html
Comparing Changes: v1.2.3...v1.3.0
- π website: update example. 06fb363 @jaywcjlove
- π feat: Enhance the
renderPath
props. 7dbee61 @jaywcjlove - π feat: add
canvas
component. 1ab8c6e @jaywcjlove
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
Documentation v1.2.3: https://raw.githack.com/uiwjs/react-signature/0c9d693/index.html
Comparing Changes: v1.2.2...v1.2.3
- π feat: enhance
renderPath
props. e718994 @jaywcjlove
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
Documentation v1.2.2: https://raw.githack.com/uiwjs/react-signature/1f5e9bd/index.html
Comparing Changes: v1.2.1...v1.2.2
- π fix: fix ref props issue. ab739dd @jaywcjlove
- π clean: remove svg-pathdata dependency. bf52e9d @jaywcjlove
- π doc: add example. a8645f2 @jaywcjlove
v1.2.1
Documentation v1.2.1: https://raw.githack.com/uiwjs/react-signature/be0508e/index.html
Comparing Changes: v1.2.0...v1.2.1
- π chore: update sponsor badge. 69237b8 @jaywcjlove
- π chore: add
funding
field in package.json 8f82c34 @jaywcjlove
v1.2.0
Documentation v1.2.0: https://raw.githack.com/uiwjs/react-signature/4bc8890/index.html
Comparing Changes: v1.1.0...v1.2.0
- π feat: add
renderPath
props. a8a179d @jaywcjlove
v1.1.0
Documentation v1.1.0: https://raw.githack.com/uiwjs/react-signature/6272ef5/index.html
Comparing Changes: v1.0.0...v1.1.0
- π fix: fix
onPointer
props issue. e73a615 @jaywcjlove - π feat: add
defaultPoints
props. 55f36c6 @jaywcjlove
v1.0.0
Documentation v1.0.0: https://raw.githack.com/uiwjs/react-signature/ba12040/index.html
Comparing Changes: v0.0.1...v1.0.0
- π feat: modify touch -> pointer event. bd8efcc @jaywcjlove
- π website: update document. 8250634 @jaywcjlove
- π feat: support refs. d799d01 @jaywcjlove
- π feat: add
onPointer
props. 8ccef62 @jaywcjlove - π’ ci: update workflows config. 9c274c3 @jaywcjlove
- π feat: add
readonly
props. 92b8129 @jaywcjlove - π doc: Update README.md 25b1522 @jaywcjlove
v0.0.1
released v0.0.1