-
Notifications
You must be signed in to change notification settings - Fork 44
Closed
Labels
Description
Hi, by working with your library, I noticed that the values it is returning for text vertical alignment are sometimes wrong.
I think that center and bottom are inverted.
sketch-constructor/utils/maps.js
Lines 52 to 61 in 6766e67
| /** | |
| * Maps vertical alignment int enums to human-readable strings | |
| * @example | |
| * verticalAlignmentMap.top // => 0 | |
| */ | |
| const verticalAlignmentMap = { | |
| top: 0, | |
| bottom: 1, | |
| center: 2, | |
| }; |
From what I observe when manually setting the values from Sketch, center is 1 and bottom is 2.
Here is a Sketch file demonstrating this: vertical-alignment.zip
dbanksdesignkgoedecke