UNPKG

plotboilerplate

Version:

A simple javascript plotting boilerplate for 2d stuff.

8 lines 334 B
/** * Internal helper function used to get 'float' properties from elements. * Used to determine border withs and paddings that were defined using CSS. */ export const getFProp = (elem, propName) => { return parseFloat(globalThis.getComputedStyle(elem, null).getPropertyValue(propName)); }; //# sourceMappingURL=getFProp.js.map