@easyv/utils
Advanced tools
Comparing version 0.0.35 to 0.0.38
@@ -65,3 +65,3 @@ "use strict"; | ||
result += (opacity == 0 ? color : 'rgba(' + r + ', ' + g + ', ' + b + ', ' + a * opacity + ') ') + offset + (i !== j - 1 ? '%, ' : '%)'); | ||
result += (a == 0 ? color : 'rgba(' + r + ', ' + g + ', ' + b + ', ' + a * opacity + ') ') + offset + (i !== j - 1 ? '%, ' : '%)'); | ||
} | ||
@@ -68,0 +68,0 @@ |
@@ -13,9 +13,14 @@ "use strict"; | ||
var getFontStyle = function getFontStyle(_ref, type) { | ||
var _ref2; | ||
var color = _ref.color, | ||
bold = _ref.bold, | ||
italic = _ref.italic, | ||
fontSize = _ref.fontSize, | ||
_ref$fontSize = _ref.fontSize, | ||
fontSize = _ref$fontSize === void 0 ? 12 : _ref$fontSize, | ||
fontFamily = _ref.fontFamily, | ||
letterSpacing = _ref.letterSpacing; | ||
return (0, _defineProperty2["default"])({ | ||
letterSpacing = _ref.letterSpacing, | ||
_ref$lineHeight = _ref.lineHeight, | ||
lineHeight = _ref$lineHeight === void 0 ? fontSize : _ref$lineHeight; | ||
return _ref2 = { | ||
fontSize: fontSize, | ||
@@ -26,5 +31,5 @@ fontFamily: fontFamily, | ||
fontStyle: italic ? 'italic' : 'normal' | ||
}, type == 'svg' ? 'fill' : 'color', color); | ||
}, (0, _defineProperty2["default"])(_ref2, type == 'svg' ? 'fill' : 'color', color), (0, _defineProperty2["default"])(_ref2, "lineHeight", lineHeight + 'px'), _ref2; | ||
}; | ||
exports.getFontStyle = getFontStyle; |
{ | ||
"name": "@easyv/utils", | ||
"version": "0.0.35", | ||
"version": "0.0.38", | ||
"description": "", | ||
@@ -10,3 +10,6 @@ "main": "index.js", | ||
"scripts": { | ||
"make": "babel src -d lib" | ||
"make": "babel src -d lib", | ||
"release": "standard-version", | ||
"publish": "npm run make && npm run release && npm publish --access public", | ||
"prepare": "husky install" | ||
}, | ||
@@ -27,6 +30,16 @@ "keywords": [], | ||
"@babel/preset-react": "^7.10.4", | ||
"@commitlint/cli": "^16.2.3", | ||
"@commitlint/config-conventional": "^16.2.1", | ||
"babel-cli": "^6.26.0", | ||
"babel-plugin-transform-import-styles": "0.0.11", | ||
"babel-preset-env": "^1.7.0" | ||
"babel-preset-env": "^1.7.0", | ||
"cz-conventional-changelog": "^3.3.0", | ||
"husky": "^7.0.4", | ||
"standard-version": "^9.3.2" | ||
}, | ||
"config": { | ||
"commitizen": { | ||
"path": "./node_modules/cz-conventional-changelog" | ||
} | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
179661
78
4635
15