INNER CODE UNIT · JavaScript

resolvePlotAttributeInfo

genome-spy/genome-spy · packages/app/src/agentApi/index.js:343

async function resolvePlotAttributeInfo(attributeInfoSource, attribute, label) {
    let attributeInfo;
    try {
        attributeInfo = attributeInfoSource.getAttributeInfo(attribute);
    } catch (error) {
        if (error instanceof UnknownAttributeInfoError) {
            return undefined;
        }

        throw error;
    }

    if (!attributeInfo) {
        return undefined;
    }

    if (attributeInfo.ensureAvailability) {
        await attributeInfo.ensureAvailability({});

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…