ReactKonva does not support the type "Transformer"
See original GitHub issuewhen i use Transformer like this:
<Transformer>
<Image
image={this.state.image}
draggable
onClick={() => {
this.imageNode.moveToTop();
this.imageNode.getLayer().batchDraw();
}}
y={250}
ref={node => {
this.imageNode = node;
}}
/>
</Transformer>;
i got an error:ReactKonva does not support the type “Transformer” What is the correct usage of the Transformer?
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
How to resize and rotate canvas shapes with react ...
The transformer is always trying to match rotation of the attached node. As you reset it to 0, transformer is reset too. The...
Read more >React Konva Transformer Error "Cannot read property ...
I'm using Konva 4.0.18 within a React 16.8. Application, which works well so far in the Standalone (CRA). When integrating this working ...
Read more >konvajs/konva - Gitter
@lavrton I have a problem now. I have two layers. The lower layer element is added to the transformer, and the upper layer...
Read more >Working with Canvas: Build a diagram tool in ReactJS
We will be using react for managing our DOM view layer, konva.js (and it's React ... Now we need to allow them to...
Read more >React konva whiteboard - Hutton
All the parameters available for Konva objects are valid props for. ... But it has no support of events of shapes. react-konva vs...
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
I know this issue is already closed but I found that using a custom hook to create a transformer worked quite nicely.
What version of
react-konva
are you using? Try to use the last one.Currently, there is no good “react-way” usage of
Transformer
. But there is a way: https://codesandbox.io/s/vv6m43q9y7