The color cloud vc element now maintain its aspect ratio when resized

This commit is contained in:
Alejandro Gallardo Escobar 2019-06-24 18:44:22 +02:00
parent 8339188824
commit 31f63af6fa
3 changed files with 6 additions and 2 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -53,6 +53,10 @@ export default class ColorCloud extends Item<ColorCloudProps> {
return container;
}
protected resizeElement(width: number): void {
super.resizeElement(width, width);
}
public createSvgElement(): SVGSVGElement {
const gradientId = `grad_${this.props.id}`;
// SVG container.