ailon / markerjs

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

Set Default Marker Tool #60

Open shaneeshpatel1 opened 2 years ago

shaneeshpatel1 commented 2 years ago

Hello @ailon

There are below queries for editor.

  1. We want to setup default marker to FrehandMarker. So any default setting property is there?
  2. We want to set ellipse default fill color to transparent and want to set black fill color for callout (Comment Box) so is there any setting for this?
  3. The color picker on the bottom we have to visible always. No need to click on the icon to expand the color picker.

Please let us know.

Thanks! Shaneesh Patel

shaneeshpatel1 commented 2 years ago

Hello @ailon

We are waiting of your reply.

We want to setup default marker to FrehandMarker. So any default setting property is there? We want to set ellipse default fill color to transparent and want to set black fill color for callout (Comment Box) so is there any setting for this? The color picker on the bottom we have to visible always. No need to click on the icon to expand the color picker.

Please let us know.

Thanks! Shaneesh Patel

ailon commented 2 years ago

Hi @shaneeshpatel1

Sorry, I've answered a similar question over email recently and thought it was you repeating it over a different channel.

  1. You can activate marker creation after you open the marker area by calling createNewMarker() after you call show()
    markerArea.createNewMarker('FreehandMarker');
  2. There's an EllipseFrameMarker which is a version of the EllipseMarker with a transparent background. You can set markerArea.settings.defaultFillColor to change the default background color of the callouts but keep in mind that it's the global background/fill color for all markers. There's no way to set by-marker-type defaults at this point.
  3. There's no way to always show the color picker.

Hope this helps.

Alan.

shaneeshpatel1 commented 2 years ago

Thank you @ailon !!!