Code formatting

This commit is contained in:
Ryan McCahan 2022-02-19 14:40:51 -07:00
parent 5ac78b9ec6
commit d9ba8b6711

View File

@ -128,17 +128,17 @@ export const resolveThreeValueSyntax = (
absoluteX = getAbsoluteValue(tuple[0], width); absoluteX = getAbsoluteValue(tuple[0], width);
if (tuple[1].type == TokenType.DIMENSION_TOKEN && tuple[0].number == 100) { if (tuple[1].type == TokenType.DIMENSION_TOKEN && tuple[0].number == 100) {
absoluteX = getAbsoluteValue(tuple[0], width) - getAbsoluteValue(tuple[1], width); absoluteX = getAbsoluteValue(tuple[0], width) - getAbsoluteValue(tuple[1], width);
} }
if (tuple[2].type == TokenType.PERCENTAGE_TOKEN) { if (tuple[2].type == TokenType.PERCENTAGE_TOKEN) {
absoluteY = getAbsoluteValue(tuple[2], height); absoluteY = getAbsoluteValue(tuple[2], height);
} }
} }
if (tuple[1].type == TokenType.PERCENTAGE_TOKEN) { if (tuple[1].type == TokenType.PERCENTAGE_TOKEN) {
if (tuple[1].number == 100) { if (tuple[1].number == 100) {
absoluteY = getAbsoluteValue(tuple[1], height) - getAbsoluteValue(tuple[2], height); absoluteY = getAbsoluteValue(tuple[1], height) - getAbsoluteValue(tuple[2], height);
} }
} }