Skip to content

Latest commit

 

History

History
67 lines (39 loc) · 2.19 KB

ImageSketchpad.md

File metadata and controls

67 lines (39 loc) · 2.19 KB

image-sketchpad - v1.0.4 / Modules / ImageSketchpad

Module: ImageSketchpad

Table of contents

Classes

Type aliases

Variables

Type aliases

Options

Ƭ Options: Object

Image sketchpad options.

Type declaration

Name Type Description
enabled boolean Enable or disable sketchpad on init. defaultvalue true
lineCap CanvasLineCap Line cap. defaultvalue round
lineColor string Line color. defaultvalue #000
lineJoin CanvasLineJoin Line join. defaultvalue round
lineMaxWidth number Line max width. defaultvalue -1
lineMiterLimit number Line miter limit. defaultvalue 10
lineWidth number Line width. defaultvalue 5
writeJsonToHtmlAttribute boolean Setting this to true(default) will add a data attribute with the sketchpad json data. This is the same string like you would get with ImageSketchpad.toJson(). defaultvalue true

Defined in

ImageSketchpad/Options.ts:4


UserOptions

Ƭ UserOptions: Partial<Options>

Image sketchpad user options setting all properties as not required (Partial).

Defined in

ImageSketchpad/Options.ts:66

Variables

DefaultOptions

Const DefaultOptions: Readonly<Options>

Image sketchpad default options.

Defined in

ImageSketchpad/Options.ts:71