Changes

Jump to: navigation, search

Canvas SVG Parser

710 bytes added, 18:38, 28 June 2014
Known Limitations
{{FGCquote
|Referring to the [https://gitorious.org/fg/canvas-hackers-fgdata/commit/7d249ce9556d52fb7ae066775023087fbd4daa2f#c106578 gitorious discussion about having a styleable SVGSymbol class] - that is something that will be hard to support/integrate with pre-defined styling unless we patch svg.nas to accept a list of optional SVG attributes that are mapped to a transformation/rewrite-callback so that SVG attributes can be dynamically "rewritten" by the parser based on looking up a certain id (e.g. "background-color") and changing CSS stuff there.
|{{cite web |url=http://forum.flightgear.org/viewtopic.php?p=209061#p209061
|title=<nowiki>MapStructure styling</nowiki>
|author=<nowiki>Hooray</nowiki>
|date=<nowiki>Sun May 11</nowiki>
}}
}}
 
{{FGCquote
|This could then use id settings like "glideslope" and "localize" to make those elements accessible, the parser would check its lookup map if the current element matches any key, and if so applies the callback to rewrite the corresponding tag to transparently re-style things without having to modify the actual file. People wanting to change the representation would then merely need to copy the SVG file and ensure that they use the same IDs that are required by the layer's style
|{{cite web |url=http://forum.flightgear.org/viewtopic.php?p=209061#p209061
|title=<nowiki>MapStructure styling</nowiki>
18,603
edits

Navigation menu