) {
super.update(changedProps);
if (changedProps.has('aspectRatio')) {
this.updateAspectRatio();
}
}
updateAspectRatio() {
const split = this.aspectRatio.split(':');
const x = parseInt(split[0]);
const y = parseInt(split[1]);
this.base.style.paddingBottom = x && y ? `${(y / x) * 100}%` : '';
}
render() {
return html`
this.updateAspectRatio()}>
`;
}
}