Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. 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.

  2. 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().

  3. 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().

  4. setErrorshowError(val: Boolean): With this method you can show the error message sending a “true” value as paramether and false to remove it.

  5. reload(): This method will reset all the variables used to set states (Not path and size), and will load again the viewer.