Download web/client/node_modules/cssstyle/lib/properties/lineHeight.js from amitesh11/pose: direct link, hf CLI and curl.
- Browser
- Download file 602 Bytes
-
https://huggingface.co/spaces/amitesh11/pose/resolve/main/web/client/node_modules/cssstyle/lib/properties/lineHeight.js
- Command line
-
hf download hf://spaces/amitesh11/pose/web/client/node_modules/cssstyle/lib/properties/lineHeight.js
-
curl -L -o lineHeight.js https://huggingface.co/spaces/amitesh11/pose/resolve/main/web/client/node_modules/cssstyle/lib/properties/lineHeight.js
602 Bytes
| ; | |
| var TYPES = require('../parsers').TYPES; | |
| var valueType = require('../parsers').valueType; | |
| module.exports.isValid = function isValid(v) { | |
| var type = valueType(v); | |
| return ( | |
| (type === TYPES.KEYWORD && v.toLowerCase() === 'normal') || | |
| v.toLowerCase() === 'inherit' || | |
| type === TYPES.NUMBER || | |
| type === TYPES.LENGTH || | |
| type === TYPES.PERCENT | |
| ); | |
| }; | |
| module.exports.definition = { | |
| set: function(v) { | |
| this._setProperty('line-height', v); | |
| }, | |
| get: function() { | |
| return this.getPropertyValue('line-height'); | |
| }, | |
| enumerable: true, | |
| configurable: true, | |
| }; | |