StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics
https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.7 KiB
59 lines
1.7 KiB
# is-color-stop
|
|
|
|
Check if a string is CSS color stop
|
|
|
|
[](https://npmjs.org/package/is-color-stop)
|
|
[](https://travis-ci.org/pigcan/is-color-stop)
|
|
[](https://coveralls.io/r/pigcan/is-color-stop)
|
|
[](https://npmjs.org/package/is-color-stop)
|
|
[](https://david-dm.org/pigcan/is-color-stop)
|
|
|
|
|
|
## Install
|
|
|
|
```shell
|
|
$ npm install is-color-stop
|
|
```
|
|
|
|
## Usage
|
|
|
|
```js
|
|
const isColorStop = require('is-color-stop');
|
|
|
|
isColorStop('yellow') // true
|
|
isColorStop('yellow', '12px') // true
|
|
isColorStop('yellow', 'calc(100%)') // true
|
|
isColorStop('yellow', 'px') // false
|
|
|
|
isColorStop.isColor('red') // true
|
|
isColorStop.isColor('rgb(255)') // false
|
|
|
|
isColorStop.isRGB('rgb(255, 0, 0)') // true
|
|
isColorStop.isRGB('rgb(255)') // false
|
|
|
|
isColorStop.isRGBA('rgba(255, 0, 0, .8)') // true
|
|
isColorStop.isRGBA('rgba(255, 0, 0)') // false
|
|
|
|
isColorStop.isHSL('hsl(123, 45%, 67%)') // true
|
|
isColorStop.isHSL('hsl(123, 45%)') // false
|
|
|
|
isColorStop.isHSLA('hsla(123, 45%, 67%, 0.4)') // true
|
|
isColorStop.isHSLA('hsla(123, 45%, 67%)') // false
|
|
|
|
isColorStop.isHex('#fff') // true
|
|
isColorStop.isHex('#ff') // false
|
|
|
|
isColorStop.isCSSColorName('tomato') // true
|
|
isColorStop.isCSSColorName('hoge') // false
|
|
|
|
isColorStop.isCSSLengthUnit('px') // true
|
|
isColorStop.isCSSLengthUnit('x') // false
|
|
|
|
isColorStop.isTransparent('transparent') // true
|
|
```
|
|
|
|
## License
|
|
|
|
The MIT License (MIT)
|
|
|
|
Copyright (c) 2017 Pigcan
|
|
|