Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add funding link to npm package #618

Merged
merged 1 commit into from
Dec 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add funding link to npm package
MysteryBlokHed committed Dec 24, 2024
commit 0638edfb9f5644d497b527bc9876647c0e9c3e82
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -76,6 +76,10 @@
"Lea Verou",
"Chris Lilley"
],
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/color"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/LeaVerou/color.js/issues"

Unchanged files with check annotations Beta

return type;
}
return new this(type, ...args);

Check failure on line 124 in src/Type.js

GitHub Actions / Lint & Test Types

A spread argument must either have a tuple type or be passed to a rest parameter.
}
}
/**
* Return an intermediate color between two colors
* @overload

Check failure on line 27 in src/interpolation.js

GitHub Actions / Lint & Test Types

This overload signature is not compatible with its implementation signature.
* @param {ColorTypes} c1
* @param {ColorTypes} c2
* @param {MixOptions} [options]
// Check against both <dashed-ident> and <ident> versions
let alternateId = id.startsWith("--") ? id.substring(2) : `--${id}`;
let ids = [id, alternateId];
format = ColorSpace.findFormat({name, id: ids, type: "function"});

Check failure on line 49 in src/parse.js

GitHub Actions / Lint & Test Types

Property 'findFormat' does not exist on type 'typeof ColorSpace'.
if (!format) {
// Not found
}
}
else {
format = ColorSpace.findFormat({name, type: "function"});

Check failure on line 81 in src/parse.js

GitHub Actions / Lint & Test Types

Property 'findFormat' does not exist on type 'typeof ColorSpace'.
space = format.space;
}
alpha = env.parsed.args.pop();
if (meta) {
meta.alphaType = types.pop();

Check failure on line 95 in src/parse.js

GitHub Actions / Lint & Test Types

Property 'alphaType' does not exist on type 'ArgumentMeta'.
}
}
}
// Convert to Format object
format = space.getFormat(format);

Check failure on line 124 in src/parse.js

GitHub Actions / Lint & Test Types

Type 'import("/home/runner/work/color.js/color.js/src/Format").default' is not assignable to type 'import("/home/runner/work/color.js/color.js/src/ColorSpace").Format'.
let color = format.parse(env.str);
let formatId = format;
if (color.parseMeta && !format) {

Check failure on line 35 in src/serialize.js

GitHub Actions / Lint & Test Types

Property 'parseMeta' does not exist on type 'ColorObject | PlainColorObject'.
if (color.parseMeta.format.canSerialize()) {

Check failure on line 36 in src/serialize.js

GitHub Actions / Lint & Test Types

Property 'parseMeta' does not exist on type 'ColorObject | PlainColorObject'.
format = color.parseMeta.format;

Check failure on line 37 in src/serialize.js

GitHub Actions / Lint & Test Types

Property 'parseMeta' does not exist on type 'ColorObject | PlainColorObject'.
formatId = color.parseMeta.formatId;

Check failure on line 38 in src/serialize.js

GitHub Actions / Lint & Test Types

Property 'parseMeta' does not exist on type 'ColorObject | PlainColorObject'.
}
coordFormat ??= color.parseMeta.types;