Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 1.41 KB

svg_drawing_react.md

File metadata and controls

47 lines (31 loc) · 1.41 KB

Module: @svg-drawing/react

Type Aliases

UseSvgDrawing

Ƭ UseSvgDrawing: Object

Type declaration

Name Type
ref RefObject<SvgDrawing | null>
changeClose (penwidth: undefined | boolean) => void
changeCurve (penwidth: undefined | boolean) => void
changeDelay (penColor: undefined | number) => void
changeFill (penColor: undefined | string) => void
changePenColor (penColor: undefined | string) => void
changePenWidth (penwidth: undefined | number) => void
clear () => void
download (opt: undefined | DownloadOption) => void
getSvgXML () => null | string
undo () => void

Defined in

react/src/types.ts:4

Functions

useSvgDrawing

useSvgDrawing(option?): [MutableRefObject<null | HTMLDivElement>, UseSvgDrawing]

Parameters

Name Type
option? Partial<DrawingOption>

Returns

[MutableRefObject<null | HTMLDivElement>, UseSvgDrawing]

Defined in

react/src/useDrawing.ts:7