Function add/delete

pull/10616/head
Luke Morris 2018-02-20 12:00:08 -08:00
parent 332fb69aa3
commit 0a4c894d22
1 changed files with 6 additions and 7 deletions

View File

@ -91,7 +91,12 @@ class Annotation extends Component {
return ( return (
<div <div
className="dygraph-annotation" className="dygraph-annotation"
style={style.annotation(annotation, dygraph, isMouseOver, isDragging)} style={style.annotation(
annotation.startTime,
dygraph,
isMouseOver,
isDragging
)}
data-time-ms={annotation.startTime} data-time-ms={annotation.startTime}
data-time-local={humanTime} data-time-local={humanTime}
> >
@ -182,12 +187,6 @@ class Annotation extends Component {
onMouseLeave={this.handleMouseLeave} onMouseLeave={this.handleMouseLeave}
/> />
<div style={style.flag(isMouseOver, isDragging, true, true)} /> <div style={style.flag(isMouseOver, isDragging, true, true)} />
<AnnotationTooltip
isEditing={isEditing}
annotation={annotation}
onMouseLeave={this.handleMouseLeave}
annotationState={this.state}
/>
</div> </div>
) )
} }