UNPKG

@launchmenu/core

Version:

An environment for visual keyboard controlled applets

14 lines 1.18 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.extractSettings = void 0; const ExtendedObject_1 = require("../../utils/ExtendedObject"); /** * Flattens the renderable settings structure in order to only be left with the settings themselves * @param renderableSettings The renderable settings to extract the settings from * @returns The settings tree */ function extractSettings(renderableSettings) { return ExtendedObject_1.ExtendedObject.map(renderableSettings.children, v => "children" in v ? extractSettings(v) : v); } exports.extractSettings = extractSettings; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXh0cmFjdFNldHRpbmdzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL3NldHRpbmdzL3V0aWxzL2V4dHJhY3RTZXR0aW5ncy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFFQSwrREFBMEQ7QUFFMUQ7Ozs7R0FJRztBQUNILFNBQWdCLGVBQWUsQ0FBb0Msa0JBRWxFO0lBQ0csT0FBTywrQkFBYyxDQUFDLEdBQUcsQ0FBQyxrQkFBa0IsQ0FBQyxRQUFtQyxFQUFFLENBQUMsQ0FBQyxFQUFFLENBQ2xGLFVBQVUsSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFDLGVBQWUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUN2QixDQUFDO0FBQzFCLENBQUM7QUFORCwwQ0FNQyJ9