The OKHCL picker baked every colour to sRGB coordinates, so editing a fill in a Display-P3 document stored sRGB numbers in a document that declares P3: rendering stayed correct because the perceptual payload drives it, but the stored value and any export disagreed with the profile. `okhclToRGBA` and `rgbaToOkHCL` now take the colour space to read or write, and both storage paths — the Figma API proxy and the picker actions — pass the document's profile. sRGB documents are unchanged, since that is the default. |
||
|---|---|---|
| .. | ||
| okhcl | ||
| basic.test.ts | ||
| color-model.test.ts | ||
| document-space-conversion.test.ts | ||
| solid-commit.test.ts | ||