ailon / markerjs

[Deprecated - use markerjs2]: Let your users annotate and mark images
https://markerjs.com
MIT License
103 stars 32 forks source link

Remove Unnecessary Icon from Editor #63

Closed shaneeshpatel1 closed 2 years ago

shaneeshpatel1 commented 2 years ago

Hello @ailon,

We have set the default Marker - FreehandMarker by creating new marker, but there is an issue in editor display. We have already purchased the license. We have to open by default Pen property open in editor thatswhy this is coming.

We have attached a screenshot for the reference. Please suggest how to remove this. Some Icon is coming in editor

Regards, Shaneesh Patel

ailon commented 2 years ago

This looks like controls of an already created marker. Must be that you start and finish creating marker from your code (for example by switching to select mode after you initiate creating a marker or something like that). Hard to say without a repro. Would it be possible for you to create a repro on codesandbox or similar?

You can send it to me privately at info@markerjs.com.

shaneeshpatel1 commented 2 years ago

Hello @ailon

I have sent the email to you. please check and revert.

Thanks Shaneesh Patel

ailon commented 2 years ago

Seems to be some concurrency/timing issue. Still trying to get to the bottom of it, but here's a quick workaround for now. Just adding a minimal delay before creating that first marker helps:

  markerArea.show();
  setTimeout(function () {
    markerArea.createNewMarker("FreehandMarker");
  }, 10);
ailon commented 2 years ago

This should be fixed now in v2.21.2. Thank you for reporting this bug!