function _createMaskConsumer() {
  const element = document.createElementNS(svgNS, 'rect');

  _setAttributes(element, {
    height: '100%',
    width: '100%',
    x: '0',
    y: '0'
  });
  element.setAttribute('mask', `url(#${elementIds.modalOverlayMask})`);

  return element;
}
function _createMaskConsumer() {
  const element = document.createElementNS(svgNS, 'rect');

  _setAttributes(element, {
    height: '100%',
    width: '100%',
    x: '0',
    y: '0'
  });
  element.setAttribute('mask', `url(#${elementIds.modalOverlayMask})`);

  return element;
}
function _createMaskConsumer ( ) { const element = document . createElementNS ( svgNS , 'rect' ) ; _setAttributes ( element , { height : '100%' , width : '100%' , x : '0' , y : '0' } ) ; element . setAttribute ( 'mask' , ` ${ elementIds . modalOverlayMask } ` ) ; return element ; }
<rect x="0" y="0" width="100%" height="100%" mask="url(#shepherdModalMask)"/>
<rect x = 0 y = 0 width = 100% height = 100% mask = url ( #shepherdModalMask ) / >
Creates an element that can be used to display the modal overlay