...
createCanvas(containerId: String): This method is used on the constructor to create all. If you want to change the container to other DIV you can use this method. This method has a required paramether, containerId is required and should be a String.
setPath(path: String): With this method can change the path or URL where images are stored. After set a new path you will reload the visualizer with the method reload().
setSize(size: Number): This method can change the size for the viewer and the container. The size should be a Number value. After set a new size you will reload the visualizer with the method reload().
setErrorshowError(val: Boolean): With this method you can show the error message sending a “true” value as paramether and false to remove it.
reload(): This method will reset all the variables used to set states (Not path and size), and will load again the viewer.