mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +02:00
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;
|
return container;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected resizeElement(width: number): void {
|
||||||
|
super.resizeElement(width, width);
|
||||||
|
}
|
||||||
|
|
||||||
public createSvgElement(): SVGSVGElement {
|
public createSvgElement(): SVGSVGElement {
|
||||||
const gradientId = `grad_${this.props.id}`;
|
const gradientId = `grad_${this.props.id}`;
|
||||||
// SVG container.
|
// SVG container.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user