GSVG class

A SVG shape.

Supports basic SVG operations (including path tags).

Inheritance
Available Extensions

Constructors

GSVG(int x, int y, int width, int height, List<GShape> elements, {PColor? strokeColor, int? strokeSize, PColor? fillColor, num? scaleX, num? scaleY})
GSVG.fromJson(Map<String, dynamic> json)
factory
GSVG.fromSVG(int x, int y, int width, int height, String svg, {PColor? strokeColor, int? strokeSize, PColor? fillColor, num? scaleX, num? scaleY})
factory

Properties

backgroundColor PColor?
getter/setter pairinherited
className String
no setteroverride
elements List<GShape>
getter/setter pairinherited
fillColor PColor?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
height int
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scaleX num?
getter/setter pair
scaleY num?
getter/setter pair
shapeBoundingBox PRectangle
no setterinherited
shapeName String
no setteroverride
strokeColor PColor?
getter/setter pair
strokeSize int?
getter/setter pair
width int
getter/setter pairinherited
x int
getter/setter pairinherited
y int
getter/setter pairinherited

Methods

containsPoint(Point p) bool
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paint(PCanvas pCanvas, [GraphicContext? graphicContext]) → void
inherited
resolveGraphicContext([GraphicContext? parentContext]) GraphicContext
override
selectShapesAtPoint(Point p, {bool recursive = false}) List<GShape>
inherited
toJson() Map<String, dynamic>
override
toJsonEncoded({bool pretty = false}) String
inherited
toString() String
A string representation of this object.
inherited
translate(Point p) → void
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited