Home
|
Primer
|
File
|
View
|
Snap
|
Modes
File: Main
Settings
Save Format
Save Format
Cap uses XML to save all drawing data, including images. Therefore, the file save format is open source. The current file version is 1.0.
Cap File
Attributes
File Version
: Number
File Generator
: String
Elements
Settings
Layers
Attributes
Current Layer
: String
Elements
Layer
Attributes
Name
: String
Blocked
: Boolean
Visible
: Boolean
Root Object
Elements
Child elements
(see below)
Most of the objects can have the following attributes: Color, Stroke, Layer. Some objects may have a font attribute.
Custom Group
Elements
Child elements
Line
Elements
Point 1
: Point
Point 2
: Point
Line Vector
Attributes
Double Vector
: Boolean
Elements
Point 1
: Point
Point 2
: Point
Arrow
Attributes
Size
: Distance > 0
Point
Elements
Value
: Point
Circle
Elements
Center
: Point
Radius
: Distance > 0
Ellipse
Elements
Center
: Point
Radius A
: Distance > 0
Radius B
: Distance > 0
Rotation
: Angle
Circular Arc
Attributes
Clockwise
: Boolean
Elements
Center
: Point
Radius
: Distance > 0
Angle Start
: Angle
Angle Extent
: Angle
Circular Arc Vector
Attributes
Clockwise
: Boolean
Elements
Center
: Point
Radius
: Distance > 0
Angle Start
: Angle
Angle Extent
: Angle
Arrow
Attributes
Size
: Distance > 0
Elliptical Arc
Attributes
Clockwise
: Boolean
Elements
Center
: Point
Radius A
: Distance > 0
Radius B
: Distance > 0
Angle Start
: Angle
Angle Extent
: Angle
Rotation
: Angle
Text
Attributes
Horizontal Alignment
: Left | Center | Right
Vertical Alignment
: Bottom | Center | Top
Elements
Text
: String
Location
: Point
Rotation
: Angle
Rectangle
Elements
Location
: Point
Width
: Distance > 0
Height
: Distance > 0
Rotation
: Angle
Image
Elements
Location
: Point
Width
: Distance > 0
Height
: Distance > 0
Rotation
: Angle
Bytes
: Base64 encoding
Polyline
Elements
Point
: Point
Natural Cubic Spline
Attributes
Closed
: Boolean
Elements
Point
: Point
Cubic Basis Spline
Attributes
Closed
: Boolean
Elements
Point
: Point
Polygon
Elements
Center
: Point
Radius
: Distance > 0
Sides
: Integer > 2
Rotation
: Angle
Leader
Elements
Text
: String
Point 1
: Point
Point 2
: Point
Point 2 Extension
: Distance != 0
Arrow
Attributes
Type
: Arrow | Point | None
Dimension
Elements
Text
: String
Point 1
: Point
Point 2
: Point
Point 1 Friend
: Point
Point 2 Friend
: Point