mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-19 05:25:10 +00:00
flattern text into several spans
flattern text into several spans (step 1, not finish yet)
This commit is contained in:
@@ -80,21 +80,18 @@ const PathAttributes = merge({
|
||||
}
|
||||
}, RenderableAttributes);
|
||||
|
||||
const FontAttributes = merge({
|
||||
const SpanAttributes = merge({
|
||||
fontFamily: true,
|
||||
fontSize: true,
|
||||
fontWeight: true,
|
||||
fontStyle: true
|
||||
}, RenderableAttributes);
|
||||
|
||||
const TSpanAttributes = merge({
|
||||
fontStyle: true,
|
||||
line: true
|
||||
}, FontAttributes);
|
||||
}, RenderableAttributes);
|
||||
|
||||
|
||||
const TextAttributes = merge({
|
||||
alignment: true
|
||||
}, FontAttributes);
|
||||
}, RenderableAttributes);
|
||||
|
||||
const ClipPathAttributes = {
|
||||
name: true
|
||||
@@ -166,7 +163,7 @@ const RectAttributes = merge({
|
||||
export {
|
||||
PathAttributes,
|
||||
TextAttributes,
|
||||
TSpanAttributes,
|
||||
SpanAttributes,
|
||||
GroupAttributes,
|
||||
ClipPathAttributes,
|
||||
CircleAttributes,
|
||||
|
||||
Reference in New Issue
Block a user