/core/shapes/circle #76
Replies: 5 comments 4 replies
-
I insert shapes and text to a board, but they can't be selected when I use mouse to click the shapes. But when I insert image , the image can be selected when mouse click on it .Can you help me to find out why? |
Beta Was this translation helpful? Give feedback.
-
Actuallly in your code sandbox repo , it's OK. But in my project ,it doesn't work. I found the reason, in Selection/index.ts :
The result of find is always false when the node type is not image or label, though the node is exactly same as the e.target's parent node.
|
Beta Was this translation helpful? Give feedback.
-
Ah, I find the reason. It's because of vue3. If I put the Pikaso instance in vue data section, the Pikaso instance will be wrapped by vue3, then the object equation will failed. I just need to assign the Pikaso instance in data section to a function local variable ,and I use the local variable to access insert , then everything will be OK |
Beta Was this translation helpful? Give feedback.
-
I want to change the opacity of the selected shape, and background also.
In console, value is being updated but it doesn't render on canvas. |
Beta Was this translation helpful? Give feedback.
-
Please describe how to add gradeint to any shape or canvas background, I couldn't do it.. |
Beta Was this translation helpful? Give feedback.
-
/core/shapes/circle
Seamless, headless and fully-tested HTML5 canvas library that provides a couple of high level APIs
https://pikaso.app/#/core/shapes/circle
Beta Was this translation helpful? Give feedback.
All reactions