Commit d1d571dd authored by Bas Lijnse's avatar Bas Lijnse

Merge branch 'coordinates-mouseevents-svg' into 'master'

Extend the mousehandlers with coordinates

See merge request !279
parents 5800f9ba 5b932dc4
Pipeline #29999 passed with stage
in 3 minutes and 10 seconds
......@@ -54,13 +54,13 @@ instance == LineMarkerPos
:: YAlign = AtTop | AtMiddleY | AtBottom
:: XYAlign :== (!XAlign, !YAlign)
:: OnClickAttr m = { onclick :: !(m -> m), local :: !Bool } // handle single mouse click, without delay
:: OnNClickAttr m = { onNclick :: !(Int m -> m), local :: !Bool } // handle multiple mouse clicks, this comes with a brief (client dependent) delay
:: OnMouseDownAttr m = { onmousedown :: !(m -> m), local :: !Bool } // handle mouse down event
:: OnMouseUpAttr m = { onmouseup :: !(m -> m), local :: !Bool } // handle mouse up event
:: OnMouseOverAttr m = { onmouseover :: !(m -> m), local :: !Bool } // handle mouse over event (move into associated image)
:: OnMouseMoveAttr m = { onmousemove :: !(m -> m), local :: !Bool } // handle mouse move event (move inside associated image)
:: OnMouseOutAttr m = { onmouseout :: !(m -> m), local :: !Bool } // handle mouse out event (move away from associated image)
:: OnClickAttr m = { onclick :: !((Span, Span) m -> m), local :: !Bool } // handle single mouse click, without delay
:: OnNClickAttr m = { onNclick :: !( Int m -> m), local :: !Bool } // handle multiple mouse clicks, this comes with a brief (client dependent) delay
:: OnMouseDownAttr m = { onmousedown :: !((Span, Span) m -> m), local :: !Bool } // handle mouse down event
:: OnMouseUpAttr m = { onmouseup :: !((Span, Span) m -> m), local :: !Bool } // handle mouse up event
:: OnMouseOverAttr m = { onmouseover :: !((Span, Span) m -> m), local :: !Bool } // handle mouse over event (move into associated image)
:: OnMouseMoveAttr m = { onmousemove :: !((Span, Span) m -> m), local :: !Bool } // handle mouse move event (move inside associated image)
:: OnMouseOutAttr m = { onmouseout :: !((Span, Span) m -> m), local :: !Bool } // handle mouse out event (move away from associated image)
:: DraggableAttr m = { draggable :: !(SVGDragFun m) }
:: SVGDragFun m :== (Set ImageTag) (Real,Real) m -> m // \tags (x,y) model: tags is the set of ImageTag-s associated with the 'dragged-on' image, (x,y) the location within that image
:: RGB = { r :: !Int, g :: !Int, b :: !Int }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment