intentful
Version:
Create Custom Skills with less headache
29 lines (28 loc) • 1.05 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.APLImage = void 0;
const helpers_1 = require("../../interfaces/helpers");
const component_1 = require("../component");
class APLImage extends component_1.APLComponent {
constructor(props) {
super('Image', props);
}
componentSpecificModel() {
return {
sources: this.props.sources,
source: this.props.source,
scale: this.props.scale,
align: this.props.align,
borderRadius: this.props.borderRadius,
overlayColor: this.props.overlayColor,
filters: this.props.filters,
overlayGradient: this.props.overlayGradient,
onLoad: this.props.onLoad,
onFail: this.props.onFail
};
}
componentSpecificRequestHandlers() {
return [...(0, helpers_1.convertCommandListToRequestHandlers)(this.props.onLoad), ...(0, helpers_1.convertCommandListToRequestHandlers)(this.props.onFail)];
}
}
exports.APLImage = APLImage;