Releases: influxdata/giraffe
Releases · influxdata/giraffe
v2.7.1
Annotations Are Ludicrously Clickable
- Fixes an issue with the triangular annotation click targets being hard to click
- Makes the annotation line clickable
v2.7.0
Annotations Are More Clickable Than Ever Before
-
Annotations with pins of start type have been spruced up. They now have a larger click target and a click handler (
handleAnnotationClick) associated with them. -
AnnotationLayerConfignow has ahandleAnnotationClickclick handler which receives the id of the annotation clicked.
v2.6.3
v2.6.2
v2.6.1
v2.6.0
v2.5.0
v2.4.0
v2.3.0
Beta Release of exportImage
The top level Giraffe interface exports a new function: exportImage. This function lets you export screenshots of your graphs.
exportImagetakes your Giraffe graphs and produces a png screenshot from them.- Beta: The interface of this function and how it works might change without a breaking release and without warning
- takes three arguments: Two required canvas elements: one representing the Axes, the other representing the main plot layer; and an optional margins structure to offset the two graphs for compositing
const axesCanvasRef: React.RefObject<HTMLCanvasElement> = React.createRef()
const layerCanvasRef: React.RefObject<HTMLCanvasElement> = React.createRef()
<>
<button onClick={produceScreenshot}>Open a Screenshot in a new Window</button>
<Plot
config={config}
axesCanvasRef={axesCanvasRef}
layerCanvasRef={layerCanvasRef}
/>
</>
produceScreenshot = async () => {
const base64Image = exportImage(layerCanvasRef, axesCanvasRef)
window.open(base64Image, '_blank')
}v2.2.0
Say hello to InteractionHandlerArguments
- Publishes a previously private interface,
InteractionHandlerArguments.
export interface InteractionHandlerArguments {
hoverX: number
hoverY: number
valueX: number | string
valueY: number | string
xDomain: number[]
yDomain: number[]
resetDomains: () => void
}