static isLayer (elem) {
    return elem && elem.tagName === 'g' && Layer.CLASS_REGEX.test(elem.getAttribute('class'))
  }
Test whether an element is a layer or not.
@param {SVGGElement} elem - The SVGGElement to test.
@returns {boolean} True if the element is a layer