Vector Graphics Spec
Typeobject
VGG Vector Graphics Specification is a JSON-based spec for describing vector graphics.
In the coordinate system defined by VGG, the X-axis increases to the right, and the Y-axis increases upwards. For a given coordinate point:
- If it is specified as normalized coordinates, it is normalized relative to the width and height in the
bounds
. - Otherwise, the point is non-normalized and in the same coordinate system as the object
bounds
.
Property | Type | Required |
---|---|---|
version | string | Required |
fileType | integer | Required |
fileName | string | Optional |
frames | Array<Frame> | Required |
references | Array< | Optional |
patternLayerDef | Array<PatternLayerDef> | Optional |
version​
RequiredDescription
Current VGG specs version, conforming to semantic version format like major.minor.patch
.
Type
string
Value
constant: the value of this property must be equal to:
"1.0.19"
fileType​
RequiredDescription
The file type of current file.
Type
integer
Value
enum: the value of this property must be equal to one of the following values:
Value | Explanation |
---|---|
0 | Unknown |
1 | Sketch |
3 | Figma |
4 | Adobe Illustrator |
references​
OptionalDescription
A list of the referenced resources.
Type
Array<
ReferencedStyle
SymbolMaster
>
patternLayerDef​
OptionalDescription
Illustrator-specific pattern definitions.
Type
Array<PatternLayerDef>