Accessors
configuration
- get configuration(): TConfiguration
- set configuration(conf): void
Returns void
currentPenStyle
- get currentPenStyle(): TStyle
model
- get model(): IModel
penStyle
- get penStyle(): TStyle
penStyleClasses
- get penStyleClasses(): string
Returns string
theme
- get theme(): TTheme
Methods
clear
- clear(): Promise<IModel>
Returns Promise<IModel>
convert
- convert(conversionState?, requestedMimeTypes?): Promise<IModel>
Parameters
Optional
requestedMimeTypes: string[]
Returns Promise<IModel>
destroy
- destroy(): Promise<void>
Returns Promise<void>
export
- export(mimeTypes?): Promise<IModel>
Parameters
Optional
mimeTypes: string[]
Returns Promise<IModel>
Optional
import
- import(data, mimeType?): Promise<IModel>
Parameters
data: Blob
Optional
mimeType: string
Returns Promise<IModel>
importPointEvents
- importPointEvents(strokes): Promise<IModel>
Parameters
strokes: {
creationTime?: number;
id?: string;
length?: number;
modificationDate?: number;
pointerType?: string;
pointers?: (undefined | ({ x?: number | undefined; y?: number | undefined; t?: number | undefined; p?: number | undefined; }))[];
style?: { width?: number | undefined; color?: string | undefined; opacity?: number | undefined; fill?: string | undefined; };
type?: string;
}[]
Returns Promise<IModel>
init
- init(element): Promise<void>
Returns Promise<void>
redo
- redo(): Promise<IModel>
Returns Promise<IModel>
resize
- resize(height, width): Promise<IModel>
Parameters
height: number
width: number
Returns Promise<IModel>
setPenStyle
- setPenStyle(penStyle?): Promise<void>
Parameters
Optional
penStyle: {
color?: string;
fill?: string;
opacity?: number;
width?: number;
}
Optional
color?: string
Optional
fill?: string
Optional
opacity?: number
Optional
width?: number
Returns Promise<void>
setPenStyleClasses
- setPenStyleClasses(penStyleClasses?): Promise<void>
Parameters
Optional
penStyleClasses: string
Returns Promise<void>
setTheme
- setTheme(theme?): Promise<void>
Parameters
Optional
theme: {
.math?: { "font-family"?: string | undefined; };
.math-solved?: { "font-family"?: string | undefined; color?: string | undefined; };
.text?: { "font-family"?: string | undefined; "font-size"?: number | undefined; };
ink?: { width?: number | undefined; color?: string | undefined; opacity?: number | undefined; fill?: string | undefined; "-myscript-pen-width"?: number | undefined; "-myscript-pen-fill-style"?: string | undefined; "-myscript-pen-fill-color"?: string | undefined; };
}
Optional
.math?: { "font-family"?: string | undefined; }
Optional
.math-solved?: { "font-family"?: string | undefined; color?: string | undefined; }
Optional
.text?: { "font-family"?: string | undefined; "font-size"?: number | undefined; }
Optional
ink?: { width?: number | undefined; color?: string | undefined; opacity?: number | undefined; fill?: string | undefined; "-myscript-pen-width"?: number | undefined; "-myscript-pen-fill-style"?: string | undefined; "-myscript-pen-fill-color"?: string | undefined; }
Returns Promise<void>
undo
- undo(): Promise<IModel>
Returns Promise<IModel>
Optional
waitForIdle
- waitForIdle(): Promise<void>
Returns Promise<void>
Properties
grabber
history
intention
name
name: string