@spider-analyzer/timeline
Advanced tools
Comparing version 3.3.1 to 3.3.2
@@ -0,1 +1,5 @@ | ||
## 3.3.2 | ||
- Fix: Provide default function in Cursor element for setTooltipVisible, setBarHovered and setDragging so that it | ||
works on standalone (without hovering feature) -> range filters on Spider. | ||
## 3.3.1 | ||
@@ -2,0 +6,0 @@ - Fix: do not display bar being hovered and tooltip will drawing, dragging or resizing cursor |
@@ -313,3 +313,6 @@ "use strict"; | ||
onMoveDomain: function onMoveDomain() {}, | ||
onMovedDomain: function onMovedDomain() {} | ||
onMovedDomain: function onMovedDomain() {}, | ||
setBarHovered: function setBarHovered() {}, | ||
setTooltipVisible: function setTooltipVisible() {}, | ||
setDragging: function setDragging() {} | ||
}; |
@@ -82,10 +82,10 @@ "use strict"; | ||
tooltipVisible = _ref2.tooltipVisible, | ||
setToolTipVisible = _ref2.setToolTipVisible, | ||
setBarHovered = _ref2.setBarHovered, | ||
items = _ref2.items, | ||
showHistoToolTip = _ref2.showHistoToolTip, | ||
dragging = _ref2.dragging, | ||
barHovered = _ref2.barHovered, | ||
marginBottom = _ref2.marginBottom, | ||
setDragging = _ref2.setDragging, | ||
barHovered = _ref2.barHovered, | ||
marginBottom = _ref2.marginBottom; | ||
setBarHovered = _ref2.setBarHovered, | ||
setToolTipVisible = _ref2.setToolTipVisible; | ||
var defaultClasses = useStyles({ | ||
@@ -92,0 +92,0 @@ maxSize: maxSize |
@@ -66,10 +66,10 @@ "use strict"; | ||
tooltipVisible = _ref.tooltipVisible, | ||
setToolTipVisible = _ref.setToolTipVisible, | ||
setBarHovered = _ref.setBarHovered, | ||
items = _ref.items, | ||
showHistoToolTip = _ref.showHistoToolTip, | ||
dragging = _ref.dragging, | ||
barHovered = _ref.barHovered, | ||
cursorSelection = _ref.cursorSelection, | ||
setDragging = _ref.setDragging, | ||
barHovered = _ref.barHovered, | ||
cursorSelection = _ref.cursorSelection; | ||
setToolTipVisible = _ref.setToolTipVisible, | ||
setBarHovered = _ref.setBarHovered; | ||
var dragOverlayContainer = (0, _react.useRef)(); | ||
@@ -76,0 +76,0 @@ |
@@ -33,5 +33,5 @@ "use strict"; | ||
timer = _ref.timer, | ||
barHovered = _ref.barHovered, | ||
setTimer = _ref.setTimer, | ||
setToolTipVisible = _ref.setToolTipVisible, | ||
barHovered = _ref.barHovered, | ||
setBarHovered = _ref.setBarHovered; | ||
@@ -38,0 +38,0 @@ |
{ | ||
"name": "@spider-analyzer/timeline", | ||
"version": "3.3.1", | ||
"version": "3.3.2", | ||
"description": "React graphical component to display metric over time with a time selection feature.", | ||
@@ -5,0 +5,0 @@ "author": "Thibaut Raballand <spider.analyzer@gmail.com> (https://spider-analyzer.io)", |
@@ -272,3 +272,6 @@ import React, {useRef, useState} from 'react'; | ||
onMoveDomain: () => {}, | ||
onMovedDomain: () => {} | ||
onMovedDomain: () => {}, | ||
setBarHovered: () => {}, | ||
setTooltipVisible: () => {}, | ||
setDragging: () => {}, | ||
} |
@@ -33,5 +33,5 @@ import React, {forwardRef, useCallback, useEffect, useRef, useState} from 'react'; | ||
tooltipVisible, setToolTipVisible, | ||
setBarHovered, items, showHistoToolTip, | ||
dragging, setDragging, barHovered, marginBottom | ||
tooltipVisible, items, showHistoToolTip, | ||
dragging, barHovered, marginBottom, | ||
setDragging, setBarHovered, setToolTipVisible, | ||
}) { | ||
@@ -38,0 +38,0 @@ const defaultClasses = useStyles({maxSize}); |
@@ -25,6 +25,5 @@ import React, {forwardRef, useCallback, useEffect, useRef, useState} from 'react'; | ||
onEndCursor, dragOverlayRef, | ||
tooltipVisible, setToolTipVisible, | ||
setBarHovered, items, showHistoToolTip, | ||
dragging, setDragging, barHovered, | ||
cursorSelection | ||
tooltipVisible, items, showHistoToolTip, | ||
dragging, barHovered, cursorSelection, | ||
setDragging, setToolTipVisible, setBarHovered, | ||
}){ | ||
@@ -31,0 +30,0 @@ const dragOverlayContainer = useRef(); |
import {pointer} from 'd3-selection'; | ||
export function handleHistoOver({showHistoToolTip, dragging, event, dragOverlay, marginBottom, items, height, tooltipVisible, timer, setTimer, setToolTipVisible, barHovered, setBarHovered}) { | ||
export function handleHistoOver({ | ||
showHistoToolTip, dragging, event, dragOverlay, marginBottom, | ||
items, height, tooltipVisible, timer, barHovered, | ||
setTimer, setToolTipVisible, setBarHovered | ||
}) { | ||
if (showHistoToolTip && !dragging && dragOverlay) { | ||
@@ -5,0 +9,0 @@ const [x, y] = pointer(event, dragOverlay.current); |
330479
7016