function getPropertyValue(style, prop) {
  let value = style.getPropertyValue(prop);
  value = value ? value.replace(/[^0-9.]/g, '') : '0';
  return parseFloat(value);
}
Get a property value of an element.
@param {CSSStyleDeclaration} style - The style element to get the property value from.
@param {string} prop - The property to get the value for.
@returns {number} - The value of the property.