new SvgType()
- Description:
Specifies a symbolic drawing type using a segment of the SVG specification.
- This defines the following types:
svg_face
which is the root type of a SVG object.svg_:(face|organ|svgTag|attributes|svgD|svgSegment|coordinatesList|segmentType|transformMatrix|style|color|numeric|)
which are the SVG components of a SVG object.- This thus does NOT define the whole SVG specification.
- Conversion from SVG files to JSON files is performed via the Javascript utilities:
[.../svg2json.js < file.svg > file.json](./global.html#svg2json)
outputing afile.json
JSON file.[.../json2svg.js < file.json > file.svg](./global.html#json2svg)
outputing afile.svg
SVG file.
- An example of visual morphing is available on this demo page, using a command that
generates a
file1-file2.html
file showing a sequence of intermediate images betweenfile1
andfile2
:cd .../visualmorphing ; [make](https://gitlab.inria.fr/line/aide-group/symbolingtype/-/blob/main/public/visualmorphing/makefile) [build|rebuild] i1=file1.svg i2=file2.svg
- The utilities imagemagick convert for SVG image conversion and gifsicle for GIF animation generation are also used at the application level.
Extending the SVG symboling subset
-
If a .svg file is not compliant with this SVG segment an unknown type error will be detected. In that case:
- The SvgType.cpp is to be upgraded.
- The json2svg.js and svg2json.js may have to be upgraded if new SVG compound types are encountered, i.e. string types corresponding to a record of atomic values.
- This defines the following types: