Create a viewer for sketching over an image which can be either a jpg or a png.
Signature:
export default class SketchViewer(containerId: string, file: string, onReady: (viewer: DWGViewer)=>void , onError: (err: string)=>void);
Parameter | Type | Description |
---|---|---|
containerId | string | The id of a DIV DOM which will host the viewer. |
file | string | The URL of the image file. |
onReady | (viewer: SketchViewer)=>void | Callback when the viewer is created. |
onError | (err: string)=>void | Callback when some errors happen. |
Returns:
Modelo.UI.DWGViewer
Method | Modifiers | Description |
---|---|---|
destroy() | --- | Destroy the viewer. |