|
MediaWiki master
|
Public Member Functions | |
| __construct ( $source) | |
| Creates an SVGReader drawing from the source provided. | |
| getMetadata () | |
Static Public Member Functions | |
| static | scaleSVGUnit ( $length, $viewportSize=512) |
| Return a rounded pixel equivalent for a labeled CSS/SVG length. | |
Public Attributes | |
| const | LANG_FULL_MATCH = 2 |
| const | LANG_PREFIX_MATCH = 1 |
Protected Member Functions | |
| read () | |
| Read the SVG. | |
Definition at line 23 of file SVGReader.php.
| MediaWiki\Media\SVGReader::__construct | ( | $source | ) |
Creates an SVGReader drawing from the source provided.
| string | $source | URI from which to read |
| InvalidSVGException |
Definition at line 48 of file SVGReader.php.
References $source, MediaWiki\MediaWikiServices\getInstance(), MediaWiki\Media\SVGReader\read(), and MediaWiki\MainConfigNames\SVGMetadataCutoff.
| MediaWiki\Media\SVGReader::getMetadata | ( | ) |
Definition at line 111 of file SVGReader.php.
|
protected |
Read the SVG.
| InvalidSVGException |
Definition at line 120 of file SVGReader.php.
Referenced by MediaWiki\Media\SVGReader\__construct().
|
static |
Return a rounded pixel equivalent for a labeled CSS/SVG length.
https://www.w3.org/TR/SVG11/coords.html#Units https://www.w3.org/TR/css-values-3/#lengths
| string | $length | CSS/SVG length. |
| float | int | $viewportSize | Optional scale for percentage units... |
Definition at line 366 of file SVGReader.php.
References $matches.
| const MediaWiki\Media\SVGReader::LANG_FULL_MATCH = 2 |
Definition at line 28 of file SVGReader.php.
Referenced by MediaWiki\Media\SvgHandler\getAvailableLanguages().
| const MediaWiki\Media\SVGReader::LANG_PREFIX_MATCH = 1 |
Definition at line 27 of file SVGReader.php.