Canvas only GenericComponent disappears
See original GitHub issueHello!) I want to implement canvas-only version of some tooltip:
class VisibleDataAggregationTooltip extends Component {
constructor(props) {
super(props)
this.drawOnCanvas = this.drawOnCanvas.bind(this)
}
drawOnCanvas(ctx, moreProps) {
drawOnCanvas(ctx, this.props, this.context, moreProps)
}
render() {
return <GenericComponent
canvasDraw={this.drawOnCanvas}
clip={false}
drawOnMouseMove
drawOnPan
drawOnMouseExitOfCanvas
/>
}
}
So, I expect the tooltip will be visible all the time. But it is disappearing randomly when mouse leaves the canvas…
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
html5 canvas element disappears - javascript - Stack Overflow
Thanks for this tip. My issue is that the canvas element disappears with or without the text in that div. I have just...
Read more >Create canvas app dataset component in Microsoft Dataverse
In this tutorial, learn how to create a canvas app dataset code component, and deploy, add to a screen, and test the component...
Read more >How to disable (hide) UI elements without disabling them
I'm just moving them to a non-canvas GameObject by changing their parent (I remembered from the vids that GUI objects only get rendered...
Read more >Create a disappearing section on your Retool canvas
This is a technique whereby we make a section disappear and the page shrinks to take up the space. It simulates an expanding...
Read more >Canvas - Scripting API - Unity - Manual
preWillRenderCanvases, Event that is called just before Canvas rendering happens. ... gameObject, The game object this component is attached to.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
in the next branch I am working on creating canvas based interactive components, and I have done the changes suggested earlier there
are you trying this on master?
this must have addressed the inconsistency, so it is cleared everytime mouse exits. I think it was broken in 0.6 but fixed in 0.6.1
can you try this and see if that does not break anything and also addresses this?
https://github.com/rrag/react-stockcharts/blob/master/src/lib/ChartCanvas.jsx#L382-L385
But why tooltip on canvas? I mean, when I wanted a complete canvas version I was having html tooltip in mind. using
div/span
.