updateConfiguration (configuration, options = { layouts: null, templates: null, themes: null }, rerender = true) {
    this.configuration = configuration;

    this._configureOptions(options);

    if (rerender) {
      const renderers = this.getRenderers();

      renderers.forEach((renderer) => {
        switch (renderer.constructor.name) {
          case 'CardKitDOM':
            renderer.rerender();
            break;
        }
      });
    }
  }
/**
   * Updates the configuration, and optionally rerenders the image (if previously rendered)
   *
   * @param {object} configuration - The configuration object to update to
   * @param {object} options - Any options to supply (templates, themes, layouts)
   * @param {boolean} rerender - Whether or not to attempt to rerender the image
   */
Updates the configuration, and optionally rerenders the image (if previously rendered)
@param {object} configuration - The configuration object to update to
@param {object} options - Any options to supply (templates, themes, layouts)
@param {boolean} rerender - Whether or not to attempt to rerender the image
Updates the configuration and optionally rerenders the image ( if previously rendered ) @param { object } configuration - The configuration object to update to @param { object } options - Any options to supply ( templates themes layouts ) @param { boolean } rerender - Whether or not to attempt to rerender the image
updateConfiguration (configuration, options = { layouts: null, templates: null, themes: null }, rerender = true) {
    this.configuration = configuration;
    this._configureOptions(options);
    if (rerender) {
      const renderers = this.getRenderers();
      renderers.forEach((renderer) => {
        switch (renderer.constructor.name) {
          case 'CardKitDOM':
            renderer.rerender();
            break;
        }
      });
    }
  }
updateConfiguration ( configuration , options = { layouts : null , templates : null , themes : null } , rerender = true ) { this . configuration = configuration ; this . _configureOptions ( options ) ; if ( rerender ) { const renderers = this . getRenderers ( ) ; renderers . forEach ( ( renderer ) => { switch ( renderer . constructor . name ) { case 'CardKitDOM' : renderer . rerender ( ) ; break ; } } ) ; } }
Updates the configuration, and optionally rerenders the image (if previously rendered)
 @param {object} configuration - The configuration object to update to
 @param {object} options - Any options to supply (templates, themes, layouts)
 @param {boolean} rerender - Whether or not to attempt to rerender the image
Updates the configuration and optionally rerenders the image ( if previously rendered ) @param { object } configuration - The configuration object to update to @param { object } options - Any options to supply ( templates themes layouts ) @param { boolean } rerender - Whether or not to attempt to rerender the image