Fixt highlight order on creation.
This commit is contained in:
parent
116058ba77
commit
28cfdc180c
@ -322,12 +322,11 @@ export default class Highlight extends Object {
|
|||||||
maskImage.setAttribute('width', width)
|
maskImage.setAttribute('width', width)
|
||||||
maskImage.setAttribute('height', height)
|
maskImage.setAttribute('height', height)
|
||||||
maskImage.setAttribute('class', 'addedImage')
|
maskImage.setAttribute('class', 'addedImage')
|
||||||
svgGroup.insertBefore(maskImage, element) // image.nextSibling)
|
|
||||||
TweenLite.set(maskImage, { scale: 1 })
|
TweenLite.set(maskImage, { scale: 1 })
|
||||||
maskImage.style.mask = 'url(#' + maskId + ')'
|
maskImage.style.mask = 'url(#' + maskId + ')'
|
||||||
}
|
}
|
||||||
|
|
||||||
svgGroup.appendChild(maskImage)
|
element.insertAdjacentElement('beforebegin', maskImage) // image.nextSibling)
|
||||||
// svgGroup.appendChild(element)
|
// svgGroup.appendChild(element)
|
||||||
|
|
||||||
return [mask, maskImage]
|
return [mask, maskImage]
|
||||||
|
Loading…
Reference in New Issue
Block a user