The color cloud vc element now maintain its aspect ratio when resized
This commit is contained in:
parent
8339188824
commit
31f63af6fa
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue