Lil' Vector Project Files

Overview

Lil' Vector saves your work using a custom XML format, dubbed a "Lil Vector Project File", or LVPF document, rather than use the SVG format directly.

There is a simple reason for this: it avoids confusion.

Lil' Vector is meant to be a simple program for simple tasks. Thus it does not support all of the features provided by the SVG standard. At the same time, it will need to store additional data that the SVG standard doesn't provide for.

If SVGs were used for everything, then users who are not familiar with this format would risk being confused or frustrated by the incompatibilities that would inevitably result.

LVPF Tags Listing

Below is a listing of the tags used in a Lil' Vector Project File.
This list is current as of version 0.8a.

Attributes marked in italics are required.

TAG ATTRIBUTES DETAILS
lvpf version Identifies the beginning of the project file's data. Only the first <lvpf> tag is read; any extra ones are silently discarded.

version specifies the version of Lil' Vector that was used to create the file - this allows forward and backward compatibility.
info page_width
page_height
license
title
desc

bg_transparent
bg_color
This describes the image in general, such as the image's dimensions, background color, and metadata.

bg_transparent is a boolean value, either 1 (true) or 0 (false). If this value is 1, then the color specified in bg_color is ignored and the background is considered to be transparent.
path id
fill
stroke
stroke-width
origin-x
origin-y
rotation
scale-x
scale-y

d
This defines a path or line object. The value for d is the array of nodes that makes up the shape, using letters and numbers to encode them. L and C identify straight and curved nodes, while the letters Z and M mark the end of a closed or open path.
ellipse id
fill
stroke
stroke-width
origin-x
origin-y
rotation
scale-x
scale-y

left
top
right
bottom
This defines a circle (or ellipse) object. The left, top, right, and bottom values hold the positions of the shape's bounding box.
rect id
fill
stroke
stroke-width
origin-x
origin-y
rotation
scale-x
scale-y

left
top
right
bottom
This defines a rectangle object. The left, top, right, and bottom values hold the positions of the shape's bounding box.