du.widgets.picture

Module implementing the picture widget. The picture widget is just simply a static image.

Requires: d3@v4 du.Widget

Picture

du.widgets.picture.Picture(name[, parent])

The picture widget class.
argtypedescription
namestringIdentifier of the widget.
parentobjectParent element to append widget to. If not specified, widget is appended to body. optional

src

du.widgets.picture.Picture.src(path)

Sets the image source path.
argtypedescription
pathstringPath to the image source.
returndescription
du.widgets.picture.PictureReference to the current Picture.