| 626 | } |
| 627 | |
| 628 | private onTextHover(e: MouseEvent | PointerEvent | TouchEvent, t: VegaDeckGl.types.VegaTextLayerDatum) { |
| 629 | //return true if highlight color is different |
| 630 | if (!t || !this.options.getTextColor || !this.options.getTextHighlightColor) return false; |
| 631 | return !VegaDeckGl.util.colorIsEqual(this.options.getTextColor(t), this.options.getTextHighlightColor(t)); |
| 632 | } |
| 633 | |
| 634 | private createConfig(c?: VegaDeckGl.types.PresenterConfig): VegaDeckGl.types.ViewGlConfig { |
| 635 | const { getTextColor, getTextHighlightColor, getTextHighlightAlphaCutoff, onTextClick } = this.options; |