This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Convert HTML text to SVG</title> | |
<link href="https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wdth,wght@0,62.5..100,100..900;1,62.5..100,100..900&display=swap" rel="stylesheet" /> | |
<link rel="stylesheet" href="./style.css"> | |
</head> |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"axisRegistry": [ | |
{ | |
"tag": "VOLM", | |
"displayName": "Volume", | |
"min": 0.0, | |
"defaultValue": 0.0, | |
"max": 100.0, | |
"precision": 0, | |
"description": "Expands and exaggerates details of a typeface to emphasize the personality. Understood in a percentage amount, it goes from a neutral state (0%) to a maximum level (100%).", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Convert svg paths using the upcoming getPathData() method | |
* which is expected to be natively supported by browsers | |
* and the successors of the deprecated pathSegList() methods | |
* | |
* Based on the svg working draft | |
* https://svgwg.org/specs/paths/#InterfaceSVGPathData | |
* | |
* Dependency: | |
* Use Jarek Foksa's polyfill |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Random path and shape generator, flattener test base: https://jsfiddle.net/fjm9423q/embedded/result/ | |
Basic usage example: https://jsfiddle.net/nrjvmqur/embedded/result/ | |
Basic usage: flatten(document.getElementById('svg')); | |
What it does: Flattens elements (converts elements to paths and flattens transformations). | |
If the argument element (whose id is above 'svg') has children, or it's descendants has children, | |
these children elements are flattened also. |