Returns a list of binders that can be applied to an svg element in order
to make that svg element update the HoverController on mouseenter and
mouseleave events.
Returns a list of binders that can be applied to an svg element in order
to make that svg element update the HoverController on mouseenter and
mouseleave events.
Example use:
svg.rect(
hover.hoverable(ent)
)
Attributes
ent
the Entity which should be recorded as being hovered
def switchState[A](ent: Entity, caseHovered: A, caseUnhovered: A): Signal[A]
Returns a laminar.Signal that either has the state caseHovered or
caseUnhovered depending on whether ent is hovered or not.
Returns a laminar.Signal that either has the state caseHovered or
caseUnhovered depending on whether ent is hovered or not.
Attributes
caseHovered
the value the signal should have when ent is hovered
caseUnhovered
the value the signal should have when ent is not hovered