Interface ISvgData
interface ISvgData
Extends com.amazon.apmf.IStandard
Represents an SVG payload that can be rendered by an ISvgView2.
The instance can be passed to ISvgView2::setData to display it.
Obtain one from ISvgModule2::makeSvgData or from
ISvgLoadListener::onSuccess.
Methods
getXml()
string getXml()
Returns the SVG XML markup this payload was created from.
Returns
string
The SVG XML string.
getViewBox()
Returns the viewBox attribute of the SVG payload.com.amazon.kepler.uitoolkit.graphics.Rect?getViewBox()
Returns
com.amazon.kepler.uitoolkit.graphics.Rect?
The return value is optional and might be absent.
The declared viewBox as a Rect in SVG user units, or
null if none is declared.

