Skip to content

Color.js objects cannot be wrapped in a Proxy (and thus, cannot be used with Vue or other Proxy-based libraries) #305

Closed
@LeaVerou

Description

@LeaVerou

Due to using private properties, every time a Color instance is wrapped in a Proxy, errors are just around the corner.

For context, see:

We only use a single private property: #space, and it's primarily to ensure color space is immutable. We can just use Object.defineProperty() instead and be done with it.

Edit: There is actually a bunch more privates in space.js but nothing too hard to refactor out.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions