intentful
Version:
Create Custom Skills with less headache
30 lines (29 loc) • 1.25 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AlexaBackground = void 0;
const helpers_1 = require("../../../interfaces/helpers");
const component_1 = require("../../component");
class AlexaBackground extends component_1.APLComponent {
constructor(props) {
super('AlexaBackground', props);
}
componentSpecificModel() {
return {
backgroundAlign: this.props.backgroundAlign,
backgroundBlur: this.props.backgroundBlur,
backgroundColor: this.props.backgroundColor,
backgroundImageSource: this.props.backgroundImageSource,
backgroundScale: this.props.backgroundScale,
backgroundVideoSource: this.props.backgroundVideoSource,
colorOverlay: this.props.colorOverlay,
overlayGradient: this.props.overlayGradient,
overlayNoise: this.props.overlayNoise,
videoAudioTrack: this.props.videoAudioTrack,
videoAutoPlay: this.props.videoAutoPlay
};
}
componentSpecificRequestHandlers() {
return [...(0, helpers_1.convertVideoSourcePropsToRequestHandlers)(this.props.backgroundVideoSource)];
}
}
exports.AlexaBackground = AlexaBackground;