Download web/client/node_modules/cssstyle/lib/properties/fontWeight.js from amitesh11/pose: direct link, hf CLI and curl.
- Browser
- Download file 505 Bytes
-
https://huggingface.co/spaces/amitesh11/pose/resolve/main/web/client/node_modules/cssstyle/lib/properties/fontWeight.js
- Command line
-
hf download hf://spaces/amitesh11/pose/web/client/node_modules/cssstyle/lib/properties/fontWeight.js
-
curl -L -o fontWeight.js https://huggingface.co/spaces/amitesh11/pose/resolve/main/web/client/node_modules/cssstyle/lib/properties/fontWeight.js
505 Bytes
| ; | |
| var valid_weights = [ | |
| 'normal', | |
| 'bold', | |
| 'bolder', | |
| 'lighter', | |
| '100', | |
| '200', | |
| '300', | |
| '400', | |
| '500', | |
| '600', | |
| '700', | |
| '800', | |
| '900', | |
| 'inherit', | |
| ]; | |
| module.exports.isValid = function isValid(v) { | |
| return valid_weights.indexOf(v.toLowerCase()) !== -1; | |
| }; | |
| module.exports.definition = { | |
| set: function(v) { | |
| this._setProperty('font-weight', v); | |
| }, | |
| get: function() { | |
| return this.getPropertyValue('font-weight'); | |
| }, | |
| enumerable: true, | |
| configurable: true, | |
| }; | |