UNPKG

@speckle/viewer

Version:

A 3d viewer for Speckle, based on threejs.

12 lines (11 loc) 460 B
/** * Flattens a speckle object. It will ignore arrays, null and undefined valuesm, as well as various 'safe to ignore' speckle properties, such as * bbox, __closure, __parents, totalChildrenCount. * @param obj object to flatten * @returns an object with all its props flattened into `prop.subprop.subsubprop`. */ declare const flattenObject: (obj: { [x: string]: unknown; id: unknown; }) => Record<string, unknown>; export default flattenObject;