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

Audit function parameter and return types (3/2) #461

Merged
merged 10 commits into from Feb 29, 2024
Merged

Conversation

jgerigmeyer
Copy link
Collaborator

Follow-up from #457:

  • Adjusts src and types so that Color.set(), Color.setAll(), and Color.toGamut() consistently return Color objects.
  • Uses getColor for space.from and space.to

lloydk and others added 7 commits February 26, 2024 21:32
Ensure that functions in the following modules have the correct types
and ensure that all color types can be passed as parameters:

- chromaticity
- distance
- get
- getAll
Ensure that functions in the following modules have the correct types
and ensure that all color types can be passed as parameters:

- inGamut
- luminance
- set
- setAll
- space
- toGamut
* audit-types-1:
  Audit function parameter and return types (1/2)
* main:
  Audit function parameter and return types (2/2) (#457)
  Always show delta display to help confirm it is in gamut (#458)
  Final clip is required in Ray tracing
  [apps/gamut-mapping] Add edge seeker algorithm (#448)
  Audit function parameter and return types (1/2) (#456)
  Rework raytracing limiting hue shift to no more than 3 degrees at worst
Copy link

netlify bot commented Feb 28, 2024

Deploy Preview for colorjs ready!

Name Link
🔨 Latest commit bf1d4f2
🔍 Latest deploy log https://app.netlify.com/sites/colorjs/deploys/65e0b9b400bec70008cd3faa
😎 Deploy Preview https://deploy-preview-461--colorjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Collaborator

@lloydk lloydk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jgerigmeyer
Copy link
Collaborator Author

@MysteryBlokHed Would you have a minute to review this PR? I think it's the last PR I'd ideally like to merge before a new release.

types/src/color.d.ts Outdated Show resolved Hide resolved
@MysteryBlokHed
Copy link
Member

@MysteryBlokHed Would you have a minute to review this PR? I think it's the last PR I'd ideally like to merge before a new release.

I'm busy right now, but I'll take a look in a few hours

Copy link
Member

@MysteryBlokHed MysteryBlokHed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything LGTM!

@jgerigmeyer jgerigmeyer merged commit c258d1d into main Feb 29, 2024
6 checks passed
@jgerigmeyer jgerigmeyer deleted the audit-types-3 branch February 29, 2024 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants