UNPKG

aia-kit

Version:

Read, Parse, Edit, Write, Analyze AIA/AIX/AIS files.

30 lines 869 B
/** * A function that maps two JSON arrays. * * * @file This file defines the property_processor web worker used in * ai_project::Component::loadProperties. * @author vishwas@kodular.io (Vishwas Adiga) * @since 1.0.0 * @license */ export function process_properties(propertyJSON, descriptorJSON) { const properties = []; for (let property of descriptorJSON) { if (propertyJSON.hasOwnProperty(property.name)) { properties.push({ name: property.name, value: propertyJSON[property.name] }); } else { properties.push({ name: property.name, value: property.defaultValue, editorType: property.editorType }); } } return properties; } //# sourceMappingURL=property_processor.js.map