wrong type in defaultColor in OutlineEffect

Open
#379 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
three.js, typescript

Research direction

Start at the OutlineEffectParameters definition and inspect how defaultColor is typed and used by OutlineEffect. Change the parameter type to Color, then verify that the declaration accepts the intended value and that the project's relevant type checks pass.

Written by the indexing model from the issue text.

Description

bug
  • three version: 0.150.1
  • @types/three version: 0.163
  • three-stdlib version: 2.33.0
Problem description:

defaultColor in OutlineEffectParameters for the OutlineEffect class is set to number[]. It should probably be Color

Relevant code:

export interface OutlineEffectParameters {
defaultThickness?: number | undefined
defaultColor?: number[] | undefined
defaultAlpha?: number | undefined
defaultKeepAlive?: boolean | undefined
}

Suggested solution:

Change it to be Color type.
Thank you for providing this library for us developers.

Dominant language
JavaScript
Stars
863
Forks
146
PR merge metrics
No merged PRs in 30d

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from pmndrs/three-stdlib

All issues in pmndrs/three-stdlib

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.