Changeset e29cc2e for trip-planner-front/node_modules/colord
- Timestamp:
- 11/25/21 22:08:24 (3 years ago)
- Branches:
- master
- Children:
- 8d391a1
- Parents:
- 59329aa
- Location:
- trip-planner-front/node_modules/colord
- Files:
-
- 3 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner-front/node_modules/colord/CHANGELOG.md
r59329aa re29cc2e 1 ### 2.9.1 2 3 - Fix: Make minification lossless 4 - Fix: Minify to name only if color is opaque 5 6 ### 2.9.0 7 8 - New plugin: Color string minification 🗜 9 1 10 ### 2.8.0 2 11 -
trip-planner-front/node_modules/colord/README.md
r59329aa re29cc2e 744 744 </details> 745 745 746 <details> 747 <summary><b><code>.minify(options?)</code></b></summary> 748 749 Converts a color to its shortest string representation. 750 751 ```js 752 import { colord, extend } from "colord"; 753 import minifyPlugin from "colord/plugins/minify"; 754 755 extend([minifyPlugin]); 756 757 colord("black").minify(); // "#000" 758 colord("#112233").minify(); // "#123" 759 colord("darkgray").minify(); // "#a9a9a9" 760 colord("rgba(170,170,170,0.4)").minify(); // "hsla(0,0%,67%,.4)" 761 colord("rgba(170,170,170,0.4)").minify({ alphaHex: true }); // "#aaa6" 762 ``` 763 764 | Option | Default | Description | 765 | ------------- | ------- | ------------------------------------------------------------ | 766 | `hex` | `true` | Enable `#rrggbb` and `#rgb` notations | 767 | `alphaHex` | `false` | Enable `#rrggbbaa` and `#rgba` notations | 768 | `rgb` | `true` | Enable `rgb()` and `rgba()` functional notations | 769 | `hsl` | `true` | Enable `hsl()` and `hsla()` functional notations | 770 | `name` | `false` | Enable CSS color keywords. Requires `names` plugin installed | 771 | `transparent` | `false` | Enable `"transparent"` color keyword | 772 773 </details> 774 746 775 <div><img src="assets/divider.png" width="838" alt="---" /></div> 747 776 … … 884 913 885 914 <details> 915 <summary><b><code>minify</code> (Color string minification)</b> <i>0.5 KB</i></summary> 916 917 A plugin adding color string minification utilities. 918 919 ```js 920 import { colord, extend } from "colord"; 921 import minifyPlugin from "colord/plugins/minify"; 922 923 extend([minifyPlugin]); 924 925 colord("black").minify(); // "#000" 926 colord("#112233").minify(); // "#123" 927 colord("darkgray").minify(); // "#a9a9a9" 928 colord("rgba(170,170,170,0.4)").minify(); // "hsla(0,0%,67%,.4)" 929 colord("rgba(170,170,170,0.4)").minify({ alphaHex: true }); // "#aaa6" 930 ``` 931 932 </details> 933 934 <details> 886 935 <summary><b><code>mix</code> (Color mixing)</b> <i>0.96 KB</i></summary> 887 936 888 A plugin adding acolor mixing utilities.937 A plugin adding color mixing utilities. 889 938 890 939 In contrast to other libraries that perform RGB values mixing, Colord mixes colors through [LAB color space](https://en.wikipedia.org/wiki/CIELAB_color_space). This approach produces better results and doesn't have the drawbacks the legacy way has. -
trip-planner-front/node_modules/colord/package.json
r59329aa re29cc2e 1 1 { 2 "_args": [ 3 [ 4 "colord@2.8.0", 5 "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front" 6 ] 7 ], 8 "_development": true, 9 "_from": "colord@2.8.0", 10 "_id": "colord@2.8.0", 2 "_from": "colord@^2.9.1", 3 "_id": "colord@2.9.1", 11 4 "_inBundle": false, 12 "_integrity": "sha512- kNkVV4KFta3TYQv0bzs4xNwLaeag261pxgzGQSh4cQ1rEhYjcTJfFRP0SDlbhLONg0eSoLzrDd79PosjbltufA==",5 "_integrity": "sha512-4LBMSt09vR0uLnPVkOUBnmxgoaeN4ewRbx801wY/bXcltXfpR/G46OdWn96XpYmCWuYvO46aBZP4NgX8HpNAcw==", 13 6 "_location": "/colord", 14 7 "_phantomChildren": {}, 15 8 "_requested": { 16 "type": " version",9 "type": "range", 17 10 "registry": true, 18 "raw": "colord@ 2.8.0",11 "raw": "colord@^2.9.1", 19 12 "name": "colord", 20 13 "escapedName": "colord", 21 "rawSpec": " 2.8.0",14 "rawSpec": "^2.9.1", 22 15 "saveSpec": null, 23 "fetchSpec": " 2.8.0"16 "fetchSpec": "^2.9.1" 24 17 }, 25 18 "_requiredBy": [ … … 27 20 "/postcss-minify-gradients" 28 21 ], 29 "_resolved": "https://registry.npmjs.org/colord/-/colord-2.8.0.tgz", 30 "_spec": "2.8.0", 31 "_where": "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front", 22 "_resolved": "https://registry.npmjs.org/colord/-/colord-2.9.1.tgz", 23 "_shasum": "c961ea0efeb57c9f0f4834458f26cb9cc4a3f90e", 24 "_spec": "colord@^2.9.1", 25 "_where": "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front\\node_modules\\postcss-colormin", 32 26 "author": { 33 27 "name": "Vlad Shilov", … … 37 31 "url": "https://github.com/omgovich/colord/issues" 38 32 }, 33 "bundleDependencies": false, 39 34 "dependencies": {}, 35 "deprecated": false, 40 36 "description": "👑 A tiny yet powerful tool for high-performance color manipulations and conversions", 41 37 "devDependencies": { … … 112 108 "default": "./plugins/lch.mjs" 113 109 }, 110 "./plugins/minify": { 111 "import": "./plugins/minify.mjs", 112 "require": "./plugins/minify.js", 113 "default": "./plugins/minify.mjs" 114 }, 114 115 "./plugins/mix": { 115 116 "import": "./plugins/mix.mjs", … … 157 158 "cmyk", 158 159 "mix", 160 "minify", 159 161 "harmonies" 160 162 ], … … 212 214 }, 213 215 { 216 "path": "dist/plugins/minify.mjs", 217 "limit": "0.6 KB" 218 }, 219 { 214 220 "path": "dist/plugins/mix.mjs", 215 221 "limit": "1 KB" … … 225 231 ], 226 232 "types": "index.d.ts", 227 "version": "2. 8.0"233 "version": "2.9.1" 228 234 }
Note:
See TracChangeset
for help on using the changeset viewer.