docs(ui): update docstrings for helper function

This commit is contained in:
psychedelicious 2024-04-12 17:51:38 +10:00 committed by Kent Keirsey
parent c1aae0815d
commit 0a42d7d510

View File

@ -10,6 +10,8 @@ export const getRegionalPromptLayerBlobs = async (preview: boolean = false): Pro
const state = getStore().getState();
const stage = $stage.get();
assert(stage !== null, 'Stage is null');
// This automatically omits layers that are not rendered. Rendering is controlled by the layer's `isVisible` flag in redux.
const regionalPromptLayers = stage.getLayers().filter((l) => l.name() === REGIONAL_PROMPT_LAYER_NAME);
// We need to reconstruct each layer to only output the desired data. This logic mirrors the logic in