clay
clay copied to clipboard
[Core] Split aspect ratio scaling into its own config
Currently, aspect ratio scaling is only available for image elements. This PR splits aspect ratio scaling into a separate .aspectRatio config option, and removes the .sourceDimensions properties from images. It's expected that if the renderer needs to know the dimensions of an image, they will be passed through in the .imageData pointer.