UNPKG

@metacell/geppetto-meta-ui

Version:

React components from geppetto-meta to create neuroscience applications and visualize data.

96 lines (95 loc) 1.99 kB
/** * * Creates function from string * * @param body */ export function strToFunc(body: any): Function; /** * * Merge the contents of two or more objects together into the first object. * * @param obj1 * @param obj2 */ export function extend(obj1: any, obj2: any): any; /** * * Gets the current coordinates of element relative to the document. * * @param el */ export function offset(el: any): { top: any; left: any; }; /** * * Copies the values of all enumerable own and inherited properties from one or more source objects to a target object. * * @param target * @param sources */ export function _extend(target: any, ...sources: any[]): any; /** * * Converts an array of keys and values to an object. * * @param array */ export function _object(array: any): any; /** * * Produces a duplicate-free version of the array * * @param array */ export function uniq(array: any): any[]; /** * * Creates a new array with the results of getting a property for every element in array. * * @param array * @param property */ export function pluck(array: any, property: any): any; /** * * Creates a new array with the results of calling a function for every array element. * * @param array * @param func */ export function map(array: any, func: any): any; /** * * Creates a new array with all elements that pass the test implemented by the provided function. * * @param array * @param func */ export function filter(array: any, func: any): any; /** * * Sorts a list into groups and returns a count for the number of objects in each group. * * @param list * @param func */ export function countBy(list: any, func: any): {}; /** * * Creates the HTML element specified by tagName, * * @param tagName * @param options */ export function createElement(tagName: any, options: any): any; /** * * Insert child to the end of the target * * @param target * @param child */ export function appendTo(target: any, child: any): void;