MCPcopy Index your code
hub / github.com/microsoft/SandDance / onTextHover

Method onTextHover

packages/sanddance/src/viewer.ts:628–632  ·  view source on GitHub ↗
(e: MouseEvent | PointerEvent | TouchEvent, t: VegaDeckGl.types.VegaTextLayerDatum)

Source from the content-addressed store, hash-verified

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;

Callers 1

newTextLayerFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected