openpencil/tests/engine/color
Danila Poyarkov e2de2471b9
fix(core): store picker colours in the document's colour profile (#724)
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.
2026-09-18 13:08:49 +03:00
..
okhcl fix(core): store picker colours in the document's colour profile (#724) 2026-09-18 13:08:49 +03:00
basic.test.ts
color-model.test.ts feat(vue): consolidate color model 2026-07-13 21:48:36 +03:00
document-space-conversion.test.ts fix: convert document colour profiles, keep text edits live, and fix .fig exports (#716) 2026-09-18 00:43:10 +03:00
solid-commit.test.ts