Files
xyflow/src/utils.js
2019-08-19 15:28:51 +02:00

9 lines
206 B
JavaScript

export const isFunction = obj => !!(obj && obj.constructor && obj.call && obj.apply);
export const getDimensions = (node) => {
return {
width: node.offsetWidth,
height: node.offsetHeight
};
};