Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

coloration-lib

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coloration-lib - npm Package Compare versions

Comparing version 0.1.3 to 0.2.0

esm2020/coloration-lib.mjs

35

CHANGELOG.md
# Changelog of coloration-lib
## V0.2.0 (2022-05-30)
### Corrections
- with Ivy partial compilation mode
- use prettier
## V0.1.3 (2020-06-02)

@@ -7,3 +14,3 @@

- tslint `^2.0.0`
- tslint `^2.0.0`

@@ -14,3 +21,3 @@ ## V0.1.2 (2020-05-04)

- fix alpha calculation for `toHEX()`
- fix alpha calculation for `toHEX()`

@@ -21,8 +28,8 @@ ## V0.1.1 (2020-05-02)

- new design for the demo
- new design for the demo
### Corrections
- fix calculation when no alpha
- fix alpha calculation with mask opacity
- fix calculation when no alpha
- fix alpha calculation with mask opacity

@@ -33,10 +40,10 @@ ## V0.1.0 (2020-05-01)

- add alpha support
- add alpha support
### Corrections
- add more control
- fix blue additionnal
- fix bug with float values for rgb
- update demo
- add more control
- fix blue additionnal
- fix bug with float values for rgb
- update demo

@@ -47,3 +54,3 @@ ## V0.0.4 (2019-01-23)

- add `reset()` method
- add `reset()` method

@@ -54,3 +61,3 @@ ## V0.0.3 (2019-01-22)

- add `maskColor` and `maskOpacity` params for `addColor()`
- add `maskColor` and `maskOpacity` params for `addColor()`

@@ -61,6 +68,6 @@ ## V0.0.2 (2019-01-21)

- add `getRGB()` and `getHSV()` methods
- add `getRGB()` and `getHSV()` methods
## V0.0.1 (2019-01-20)
- initial release
- initial release

1

coloration-lib.d.ts
/**
* Generated bundle index. Do not edit.
*/
/// <amd-module name="coloration-lib" />
export * from './public_api';
{
"name": "coloration-lib",
"version": "0.1.3",
"version": "0.2.0",
"license": "MIT",

@@ -24,10 +24,22 @@ "repository": {

],
"main": "bundles/coloration-lib.umd.js",
"module": "fesm2015/coloration-lib.js",
"es2015": "fesm2015/coloration-lib.js",
"esm2015": "esm2015/coloration-lib.js",
"fesm2015": "fesm2015/coloration-lib.js",
"module": "fesm2015/coloration-lib.mjs",
"es2020": "fesm2020/coloration-lib.mjs",
"esm2020": "esm2020/coloration-lib.mjs",
"fesm2020": "fesm2020/coloration-lib.mjs",
"fesm2015": "fesm2015/coloration-lib.mjs",
"typings": "coloration-lib.d.ts",
"metadata": "coloration-lib.metadata.json",
"exports": {
"./package.json": {
"default": "./package.json"
},
".": {
"types": "./coloration-lib.d.ts",
"esm2020": "./esm2020/coloration-lib.mjs",
"es2020": "./fesm2020/coloration-lib.mjs",
"es2015": "./fesm2015/coloration-lib.mjs",
"node": "./fesm2015/coloration-lib.mjs",
"default": "./fesm2020/coloration-lib.mjs"
}
},
"sideEffects": false
}
}

@@ -11,7 +11,11 @@ [![npm version](https://badge.fury.io/js/coloration-lib.svg)](https://badge.fury.io/js/coloration-lib) [![Downloads](https://img.shields.io/npm/dm/coloration-lib.svg)](https://www.npmjs.com/package/coloration-lib) [![MIT license](https://img.shields.io/badge/license-MIT-blue.svg)](https://git.ikilote.net/angular/coloration/raw/master/LICENSE)

- 0.1.3 : for View Engine
- 0.2.0+ : for Ivy
## Requirements
Only for demo:
- Angular 9.1.0 and more
- Angular 13.3.0 and more
## Demo

@@ -23,3 +27,3 @@

### Examples
### Examples

@@ -29,7 +33,7 @@ #### changeLuminosity

```typescript
import {Coloration} from 'coloration-lib';
import { Coloration } from 'coloration-lib';
const color = new Coloration('red');
color.changeLuminosity(0.55);
console.log(color.toHEX()); // #ff8c8c
console.log(color.toHEX()); // #ff8c8c
```

@@ -52,3 +56,3 @@

v: 10,
alpha: -0.2
alpha: -0.2,
});

@@ -62,4 +66,3 @@ console.log(color.toHEX()); // #ff3381cc

npm run build:lib
cd dist/coloration
npm publish
npm run publish:lib
```

@@ -70,3 +73,3 @@

```
ng build --prod
npm run build:demo
```

@@ -73,0 +76,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc