Implement correct path measurement, matrix calculation, getTextAnchorShift, startOffset.

Add method and spacing attributes to textPath.
Correct startOffset calculation.
Implement method="stretch".
This commit is contained in:
Mikael Sand
2017-06-22 17:02:30 +03:00
parent 0aeb68e904
commit bd84f09a96
7 changed files with 109 additions and 271 deletions

View File

@@ -16,6 +16,8 @@ export default class extends Shape {
...pathProps,
...fontProps,
href: PropTypes.string.isRequired,
method: PropTypes.oneOf(['align', 'stretch']),
spacing: PropTypes.oneOf(['auto', 'exact']),
startOffset: numberProp
};