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"
22import { Query } from "react-apollo"
33import gql from "graphql-tag"
44
@@ -37,7 +37,9 @@ export const childrenFragment = gql`
3737 fontFamily
3838 fontWeight
3939 letterSpacing
40- lineHeightPx
40+ lineHeight
41+ textAlign
42+ verticalAlign
4143 }
4244 fill {
4345 r
@@ -95,8 +97,8 @@ const FIGMA_FILE_SUBSCRIPTION = gql`
9597`
9698
9799interface IFile {
98- fileId : string ,
99- pageName : string ,
100+ fileId : string
101+ pageName : string
100102 children ?: any
101103}
102104
Original file line number Diff line number Diff line change 1- import * as React from "react" ;
1+ import * as React from "react"
22import styled from "styled-components"
33import { rgba } from "polished"
44import GoogleFontLoader from "react-google-font-loader"
55import Query from "./Query"
6- import { INode } from "./Frame" ;
6+ import { INode } from "./Frame"
77
88const NodeWrapper = styled ( "div" ) `
99 position: absolute;
1010`
1111
12- export default function Text ( { nodeName, children } :INode ) {
12+ export default function Text ( { nodeName, children } : INode ) {
1313 return (
1414 < Query
1515 variables = { {
@@ -49,7 +49,6 @@ export default function Text({ nodeName, children }:INode) {
4949 style = { {
5050 ...style ,
5151 ...size ,
52- lineHeight : `${ style . lineHeightPx } px` ,
5352 left : relativeX ,
5453 top : relativeY ,
5554 color
You can’t perform that action at this time.
0 commit comments