UNPKG

@wcardinal/wcardinal-geditor

Version:

WebGL-based graphic editor, tester and viewer for supervisory systems

16 lines 467 B
export function toGraphicTesterSimple(serialized) { var mappings = serialized.mappings; var uuids = []; var objects = []; mappings.forEach(function (object, key) { uuids.push(key); objects.push(object); }); return { id: serialized.id, graphicId: serialized.graphicId, name: serialized.name, mappings: JSON.stringify([uuids, objects]) }; } //# sourceMappingURL=to-graphic-tester-simple.js.map