-
Notifications
You must be signed in to change notification settings - Fork 21
Circle and eclipse selectors don't have a widget #24
Comments
Not sure if this is a copy and paste error. But are you passing the undefined anno variable to the SelectorPack before you are initializing anno? |
I tried to pass it after the init like this :
but still circle and eclipse don't show any widget . |
Are any error messages showing up in the browser console? |
yes there is this error for the circle:
and these ones for the eclipse
maybe i did mistake importing the scripts :
|
Not sure - the same setup seems to be working fine. I just note that you seem to have two copies of |
you are right , even the formatter of the shape labels cause this promblem (the formatter work fine with rect and poly), the error always n.reduce not a function . |
I can't reproduce this behavior locally I'm afraid. Can you set up an online example so I can take a look? |
here is an example with the same problem https://codepen.io/yaz11/pen/WNPMLWB |
Hm, not sure why this isn't working as it should & I don't have the time to look into the details right now. But it seems that the following workaround will work: provide an array of formatters as the
|
This error occurs in version 0.6.0. |
I add the plugin of toolbar and selector pack , for the defaul selector rect and polygon they have the widget but the circle and eclipse selectors doesn't have it , how can I add it to them ?
edit : in the basic example it work good but by adding anything to the anno init , the eclipse and circle stop having widget , right now i just tried to add formatter of shape label and it didn't work , always there is error n.reduce is not a function.
here my code :
The text was updated successfully, but these errors were encountered: