src/stackTools/playClip.js
function stopClip(element) {
  const playClipToolData = getToolState(element, toolType);

  if (
    !playClipToolData ||
    !playClipToolData.data ||
    !playClipToolData.data.length
  ) {
    return;
  }

  stopClipWithData(playClipToolData.data[0]);
}
function stopClip(element) {
  const playClipToolData = getToolState(element, toolType);

  if (
    !playClipToolData ||
    !playClipToolData.data ||
    !playClipToolData.data.length
  ) {
    return;
  }

  stopClipWithData(playClipToolData.data[0]);
}
function stopClip ( element ) { const playClipToolData = getToolState ( element , toolType ) ; if ( ! playClipToolData || ! playClipToolData . data || ! playClipToolData . data . length ) { return ; } stopClipWithData ( playClipToolData . data [ 0 ] ) ; }
Stops an already playing clip.
@param {HTMLElement} element
@returns {void}
Stops an already playing clip .