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: RSSVGTypes
TPersistent
RSSVGTypes.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.
|
|
DefaultAlign
|
Represents property DefaultAlign.
|
|
DefaultDefer
|
Represents property DefaultDefer.
|
|
DefaultSlice
|
Represents property DefaultSlice.
|
|
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
|
Occurs when the aspect ratio changes
Write an event handler to respond to aspect ratio changes.
|
|
Slice
|
Controls how the stretching covers the viewport
|
Top
|