Searched hist:"1072 ee525dad533b3be798f70f2f831f47df46e1" (Results 1 – 1 of 1) sorted by relevance
| /template/sprintdoc/ |
| H A D | svg.php | 1072ee525dad533b3be798f70f2f831f47df46e1 Tue Jan 10 16:31:34 UTC 2017 Andreas Gohr <gohr@cosmocode.de> first go at a dispatcher to dynamically recolor SVGs
The script accepts the following parameters:
svg - the SVG to load. Either an image in the img directory next to the script or a media file id. ACLs are checked f - wanted fill color s - wanted stroke color fh - wanted fill color on hover sh - wanted stroke color on hover
Colors are to be given in hex in the following formats:
RGB RRGGBB RRGGBBAA
What's missing:
* being able to define what is styled, currently hardcoded to 'path' elements only * caching - no need to do all the processing every time * background setting - that would require wrapping an additional <g> or <rect> element around all content and style. I'm not sure how to do that best. * unit tests
|