flattern text into several spans

flattern text into several spans (step 1, not finish yet)
This commit is contained in:
Horcrux
2016-09-02 10:24:33 +08:00
parent 13ddd15d09
commit 74b9917bd3
11 changed files with 214 additions and 209 deletions

View File

@@ -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,