-
Notifications
You must be signed in to change notification settings - Fork 5
/
README
102 lines (81 loc) · 2.53 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
Erlang SVG library
******************
Copyright (c) 2012, Dmitry Kolesnikov
This library is free software; you can redistribute it and/or modify
it under the terms of the Apache License, version 2.0 as published by
http://www.apache.org/licenses/LICENSE-2.0
Introduction
============
The library provides interface to render SVG graphics from Erlang
application. The current version targets server-side rendering use-cases
with help of ImageMagic command line tool 'convert'. The library internal
uses xmerl for XML output.
Compile and build
=================
git clone https://github.com/fogfish/svg.git
cd svg
make
Supported features
==================
The following features are supported by current library release
See SVG specification http://www.w3.org/TR/SVG/ for detailed
features descriptions.
* SVG version 1.1
* styling using presentation attributes
- font properties
- text properties
- other visual properties
* grouping element 'g'
* 'path' element
- absolute line-to primitive
- absolute Bezier curve primitive
- closepath primitive
* 'rect' element
* 'circle' element
* 'ellipse' element
* 'text' element
- font styling
- basic text draw at defined point
* 'defs' element
* 'line' element
* 'polyline' element
Feature backlog
===============
The following features to be supported in following releases
* 'symbol' element
* 'use' element
* styling
- gradient, patterns
- 'style' element (css styling)
* 'path' element
- quadratic Bezier curve
- elliptical arc
* 'text' element
- list of coordinates to 'x', 'y' attributes
- inner 'tspan' element
- shift the current text position {dx, dy}
- layout feature
- 'textPath' element
* 'image' element
* common attributes: 'id', 'class'
* coordinate system, transform
* clipping, masking, filtering
* 'color-profile' element
Not supported features
======================
The following features is nice-to-have but they are not required
for server side rending use-cases.
* xsl styling
* svg metadata: 'desc', 'title'
* 'switch' element (conditional processing)
* 'path' element
- horizontal line-to primitive
- vertical line-to primitive
* text
- 'altGlyph', 'altGlyphDef', 'altGlyphItem', 'glyphRef' elements
* 'cursor' element
* animation
Interface and examples
======================
See src/svg.erl for api specification
See test/svg_test.erl for api example