-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #497 from react-native-community/6.0.0
6.0.0
- Loading branch information
Showing
129 changed files
with
7,062 additions
and
1,762 deletions.
There are no files selected for viewing
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
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
76 changes: 76 additions & 0 deletions
76
android/src/main/java/com/horcrux/svg/AlignmentBaseline.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
package com.horcrux.svg; | ||
|
||
import com.facebook.common.internal.ImmutableMap; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
/* | ||
https://drafts.csswg.org/css-inline/#propdef-alignment-baseline | ||
2.2.1. Alignment Point: alignment-baseline longhand | ||
Name: alignment-baseline | ||
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 | ||
Percentages: N/A | ||
Media: visual | ||
Computed value: as specified | ||
Canonical order: per grammar | ||
Animation type: discrete | ||
*/ | ||
enum AlignmentBaseline { | ||
baseline("baseline"), | ||
textBottom("text-bottom"), | ||
alphabetic("alphabetic"), | ||
ideographic("ideographic"), | ||
middle("middle"), | ||
central("central"), | ||
mathematical("mathematical"), | ||
textTop("text-top"), | ||
bottom("bottom"), | ||
center("center"), | ||
top("top"), | ||
/* | ||
SVG implementations may support the following aliases in order to support legacy content: | ||
text-before-edge = text-top | ||
text-after-edge = text-bottom | ||
*/ | ||
textBeforeEdge("text-before-edge"), | ||
textAfterEdge("text-after-edge"), | ||
// SVG 1.1 | ||
beforeEdge("before-edge"), | ||
afterEdge("after-edge"), | ||
hanging("hanging"), | ||
; | ||
|
||
private final String alignment; | ||
|
||
AlignmentBaseline(String alignment) { | ||
this.alignment = alignment; | ||
} | ||
|
||
public static AlignmentBaseline getEnum(String strVal) { | ||
if (!alignmentToEnum.containsKey(strVal)) { | ||
throw new IllegalArgumentException("Unknown String Value: " + strVal); | ||
} | ||
return alignmentToEnum.get(strVal); | ||
} | ||
|
||
private static final Map<String, AlignmentBaseline> alignmentToEnum; | ||
|
||
static { | ||
final Map<String, AlignmentBaseline> tmpMap = new HashMap<>(); | ||
for (final AlignmentBaseline en : AlignmentBaseline.values()) { | ||
tmpMap.put(en.alignment, en); | ||
} | ||
alignmentToEnum = ImmutableMap.copyOf(tmpMap); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return alignment; | ||
} | ||
} |
141 changes: 0 additions & 141 deletions
141
android/src/main/java/com/horcrux/svg/BezierTransformer.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.