Asset scale type

Available from: 2.0.0

Import


                                                        
                                                        
                                                            import { AssetScaleType } from "@supernovaio/sdk"
                                                        
                                                            

Cases

The following enumeration cases are available:

  • aspectFill: Represents the "Aspect Fill" scaling type. When applied to an asset, it ensures that the asset fills its container while maintaining its aspect ratio. This may result in parts of the asset being cropped if its aspect ratio does not match the container's aspect ratio.
  • aspectFit: Represents the "Aspect Fit" scaling type. When applied to an asset, it ensures that the entire asset fits within its container while maintaining its aspect ratio. This may result in empty space within the container if the asset's aspect ratio is significantly different from the container's aspect ratio.

Formal definition


                                                        
                                                        
                                                            enum AssetScaleType {
                                                          aspectFill = "AspectFill",
                                                          aspectFit = "AspectFit",
                                                        }