Function add/delete
parent
332fb69aa3
commit
0a4c894d22
|
@ -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>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue