File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 1
- import * as React from "react" ;
1
+ import * as React from "react"
2
2
import { Query } from "react-apollo"
3
3
import gql from "graphql-tag"
4
4
@@ -37,7 +37,9 @@ export const childrenFragment = gql`
37
37
fontFamily
38
38
fontWeight
39
39
letterSpacing
40
- lineHeightPx
40
+ lineHeight
41
+ textAlign
42
+ verticalAlign
41
43
}
42
44
fill {
43
45
r
@@ -95,8 +97,8 @@ const FIGMA_FILE_SUBSCRIPTION = gql`
95
97
`
96
98
97
99
interface IFile {
98
- fileId : string ,
99
- pageName : string ,
100
+ fileId : string
101
+ pageName : string
100
102
children ?: any
101
103
}
102
104
Original file line number Diff line number Diff line change 1
- import * as React from "react" ;
1
+ import * as React from "react"
2
2
import styled from "styled-components"
3
3
import { rgba } from "polished"
4
4
import GoogleFontLoader from "react-google-font-loader"
5
5
import Query from "./Query"
6
- import { INode } from "./Frame" ;
6
+ import { INode } from "./Frame"
7
7
8
8
const NodeWrapper = styled ( "div" ) `
9
9
position: absolute;
10
10
`
11
11
12
- export default function Text ( { nodeName, children } :INode ) {
12
+ export default function Text ( { nodeName, children } : INode ) {
13
13
return (
14
14
< Query
15
15
variables = { {
@@ -49,7 +49,6 @@ export default function Text({ nodeName, children }:INode) {
49
49
style = { {
50
50
...style ,
51
51
...size ,
52
- lineHeight : `${ style . lineHeightPx } px` ,
53
52
left : relativeX ,
54
53
top : relativeY ,
55
54
color
You can’t perform that action at this time.
0 commit comments