feat(ui): render the Display panel's bloom and sharpen from a store

This commit is contained in:
Sameh Khamis committed 2026-10-30 22:41:07 -07:00
1 parent 5707a8a151
commit 343bdebe98
18 files changed
+453 -311

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
import { defineStore } from 'pinia';
import { markRaw, shallowRef } from 'vue';
/**
* The Display panel as its view renders it. VisualSettings presents the
* post-processing groups (`_presentDisplay()`) and publishes them here;
* it keeps its listeners on the panel's controls.
*/
export const useDisplayStore = defineStore('gev-display', () => {
/** The presented panel; null until VisualSettings first renders. */
const view = shallowRef(null);
/** @param {object} next A fresh presentation; every publish re-renders. */
function publish(next) {
view.value = markRaw(next);
}
return { view, publish };
});