SVG/src/avd/xml_parsers library
Functions
-
getAttribute(
List< XmlAttribute> attributes, String name, {String? def = '', String? namespace}) → String? - A utility method for getting an XML attribute with a default value.
-
parseColor(
String? colorString) → Color? - Converts a SVG Color String (either a # prefixed color string or a named color) to a Color.
-
parseFill(
List< XmlAttribute> el, Rect bounds) → DrawablePaint? - Parses fill information to a DrawablePaint.
-
parseMiterLimit(
List< XmlAttribute> el) → double? -
Parses AVD
strokeMiterLimitto a double. -
parsePathFillType(
List< XmlAttribute> el) → PathFillType -
Turns a
fillTypeinto a PathFillType. -
parseStroke(
List< XmlAttribute> el, Rect bounds) → DrawablePaint? - Parses an AVD stroke related attributes to a DrawablePaint.
-
parseStrokeCap(
List< XmlAttribute> el) → StrokeCap -
Parses the
strokeLineCapto a StrokeCap. -
parseStrokeJoin(
List< XmlAttribute> el) → StrokeJoin -
Parses AVD
strokeLineJointo a StrokeJoin. -
parseTransform(
List< XmlAttribute> el) → Matrix4 - Parses AVD transform related attributes to a Matrix4.
-
parseViewBox(
List< XmlAttribute> el) → DrawableViewport - Parses an AVD @android:viewportWidth and @android:viewportHeight attributes to a Rect.