mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-21 06:15:15 +00:00
Add alignment-baseline aliases to support legacy content.
This commit is contained in:
@@ -175,7 +175,9 @@ const textLength = PropTypes.string;
|
||||
|
||||
/*
|
||||
Name: alignment-baseline
|
||||
Value: baseline | text-bottom | alphabetic | ideographic | middle | central | mathematical | text-top | bottom | center | top
|
||||
|
||||
1.1 Value: auto | baseline | before-edge | text-before-edge | middle | central | after-edge | text-after-edge | ideographic | alphabetic | hanging | mathematical | inherit
|
||||
2.0 Value: baseline | text-bottom | alphabetic | ideographic | middle | central | mathematical | text-top | bottom | center | top
|
||||
Initial: baseline
|
||||
Applies to: inline-level boxes, flex items, grid items, table cells
|
||||
Inherited: no
|
||||
@@ -185,10 +187,11 @@ const textLength = PropTypes.string;
|
||||
Canonical order: per grammar
|
||||
Animation type: discrete
|
||||
https://drafts.csswg.org/css-inline/#propdef-alignment-baseline
|
||||
https://www.w3.org/TR/SVG11/text.html#AlignmentBaselineProperty
|
||||
https://svgwg.org/svg2-draft/text.html#AlignmentBaselineProperty
|
||||
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/alignment-baseline
|
||||
*/
|
||||
const alignmentBaseline = PropTypes.oneOf(['baseline', 'text-bottom', 'alphabetic', 'ideographic', 'middle', 'central', 'mathematical', 'text-top', 'bottom', 'center', 'top']);
|
||||
const alignmentBaseline = PropTypes.oneOf(['baseline', 'text-bottom', 'alphabetic', 'ideographic', 'middle', 'central', 'mathematical', 'text-top', 'bottom', 'center', 'top', 'text-before-edge', 'text-after-edge', 'before-edge', 'after-edge', 'hanging']);
|
||||
|
||||
const textSpecificProps = {
|
||||
...pathProps,
|
||||
|
||||
Reference in New Issue
Block a user