Provides a preserve aspect ratio class for viewports ( TSVGDocument, TSVGCustomViewport, etc). It encapsulates the SVG preserveAspectRatio attribute for defining how the viewport stretches graphics to fill the viewport.
Namespace: FMX.RS.SVGTypes
TPersistent
FMX.RS.SVGTypes.TSVGPreserveAspectRatio
|
Delphi
|
type
TSVGPreserveAspectRatio = class(TPersistent)
end;
|
|
Name
|
Description
|
|
Align
|
Indicates whether to force uniform scaling and, if so, the alignment method to use in case the aspect ratio of the ‘ viewBox’ doesn't match the aspect ratio of the viewport.
|
|
Defer
|
Controls how the aspect ratio is used with TSVGImage elements. If defer is true, then the preserveAspectRatio attribute on the referenced content if present should be used. If the referenced content lacks a value for ‘preserveAspectRatio’ then the ‘preserveAspectRatio’ attribute should be processed as normal (ignoring 'defer'). For ‘preserveAspectRatio’ on all other elements, the defer property is ignored.
|
|
OnChange
|
Represents property OnChange.
|
|
Slice
|
Controls how the stretching covers the viewport
|
Top
|