ipysketch_lite package#
Module contents#
- class ipysketch_lite.AnnotationSketch(**kwargs: Any)#
Bases:
SketchAnnotationSketch class to create a sketch instance with a base image This includes a template that allows for basic drawing utilities The base image is drawn on the canvas and can be annotated
- class ipysketch_lite.Sketch(**kwargs: Any)#
Bases:
AnyWidgetSketch class to create a sketch instance This includes a template that allows for basic drawing utilities Sketch image data is stored as a base64 encoded string
- property data: str#
Get the sketch image data as a base64 encoded string
- get_template() str#
Get the template JavaScript for the sketch widget
- property image#
Get the sketch image data as a PIL image
- save(fp, file_format=None) None#
Save the sketch image data to a file
- class ipysketch_lite.VectorSketch(**kwargs: Any)#
Bases:
SketchVectorSketch class to create a sketch instance with vector drawing capabilities This includes a template that allows for basic vector drawing utilities Sketch image data is stored as a base64 encoded string, and SVG data is also available
- get_template()#
Get the template JavaScript for the vector sketch widget
- property svg: str#
Get the sketch SVG data as a string