UNPKG

sketch-json-parse

Version:

sketch-json解析

13 lines (12 loc) 720 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.fontSizeLineHeightMap = exports.fontWeightTypes = void 0; /** * 字体类型 */ exports.fontWeightTypes = ["black", "heavy", "ultrabold", "extrabold", "bold", "boldmt", "psboldmt", "semibold", "demibold", "medium", "roman", "regular", "normal", "book", "light", "extralight", "ultralight", "thin"]; /** * 0-60 字体行高映射表 * fontSize => lineHeight */ exports.fontSizeLineHeightMap = [0, 1, 3, 4, 5, 7, 8, 9, 11, 13, 14, 16, 17, 18, 20, 21, 22, 24, 25, 26, 28, 29, 30, 32, 33, 36, 37, 38, 40, 41, 42, 44, 45, 46, 48, 49, 50, 52, 53, 54, 56, 57, 59, 61, 62, 63, 65, 66, 67, 59, 70, 71, 73, 74, 75, 77, 78, 79, 81, 83, 84];