Appearance
Home › Overview › ink
Returns the largest rect with the given aspect ratio (width over height) that fits inside the specified container.
aspect_fit
aspect_fit(container: Rect, aspect: number, align_x: number?, align_y: number?): Rect