@sproutsocial/seeds-utils
Advanced tools
Comparing version 0.2.6 to 1.1.0
const mround = require('mround'); | ||
function getLineHeight(prop) { | ||
const {gridSize, lineHeightBase, value, name} = prop; | ||
const lineHeightBase = 1.5; | ||
const gridSize = 8; | ||
const multiplier = parseInt(name.replace('size', ''), 10) / 100 - 3; | ||
function getLineHeight(name, value) { | ||
const multiplier = parseInt(name, 10) / 100 - 3; | ||
// Get the proportional line height based on the multiplier and the grid size | ||
const proportionalLineHeight = (1 - lineHeightBase) / gridSize * multiplier + lineHeightBase; | ||
const proportionalLineHeight = ((1 - lineHeightBase) / gridSize) * multiplier + lineHeightBase; | ||
@@ -11,0 +12,0 @@ // Get the pixel height of three lines of text at the proportional line height, |
{ | ||
"name": "@sproutsocial/seeds-utils", | ||
"version": "0.2.6", | ||
"description": "SEEDS shared utility functions for generating tokens and documentation.", | ||
"version": "1.1.0", | ||
"description": "Seeds utility functions for generating tokens", | ||
"seeds_ignore": true, | ||
@@ -11,3 +11,4 @@ "main": "package.json", | ||
}, | ||
"author": "Sprout Social" | ||
"author": "Sprout Social", | ||
"gitHead": "10a73c208d1b134ae66cbc86d0f8d223e064f8b6" | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
17966
1
17
358
1