reset()

in lib/@uncharted/cards/src/components/headerImage/headerImage.js [14:29]


    reset(spec) {
        this.MAX_NUM_IMAGES = 4;
        this.DEFAULT_IMAGE_HEIGHT = 100;
        this.DEFAULT_IMAGE_BG_COLOR = '#FFF';

        this._config = Object.assign({}, DEFAULT_CONFIG, spec.config);
        this.imageUrls = [].concat(spec.imageUrls || []).slice(0, this.MAX_NUM_IMAGES);
        this.loadedImagePromises = this.imageUrls.map(imageUrl => loadImage(imageUrl));
        this._mirrorLastImage = Boolean(spec.mirrorLastImage);
        this._mirrorImageGradientColor = spec.mirrorImageGradientColor || '#555';
        this.imageHeight = spec.imageHeight || this.DEFAULT_IMAGE_HEIGHT;
        this.imgMaxWidth = `${spec.imageMaxWidth}px` || 'none';

        this.portraitImageMaxWidth = '100px';
        return this;
    }