Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change the default thickness of the annotation while drawing new annotation on the image #76

Open
ChickbanurKumar opened this issue Apr 25, 2023 · 0 comments

Comments

@ChickbanurKumar
Copy link

ChickbanurKumar commented Apr 25, 2023

Currently if the thickness is selected and draw annotation then it works. but want to change default thickness because it is very thin.
Below attached image having circle and rectangle annotation with default thickness(marked
Screenshot from 2023-04-25 17-15-38
)

Below is my code:

import PathologyViewingApp from './plugins/PathologyViewingApp';
import PathologyReport from './plugins/PathologyReport';
import miradorAnnotationPlugins from 'mirador-annotations';
import AnnototAdapter from 'mirador-annotations/es/AnnototAdapter';

    <Router>
      <Mirador
        config={{
          annotation: {
            adapter: (canvasId) =>
              new AnnototAdapter(
                canvasId,
                `${base_ehr_crud_url}/pathds/api/v1/annotation/annotot`
              ),
            exportLocalStorageAnnotations: false,
          },
          id: 'mirador',
          osdConfig: {
            crossOriginPolicy: 'use-credentials',
            timeout: 100000,
          },
        }}
        plugins={[
          PathologyReport,
          PathologyViewingApp,
          ...miradorAnnotationPlugins,
        ]}
      />
    </Router>

useEffect(() => {
mirador.viewer(
{
...config,
windows: [{ loadedManifest: json && json.loaded_manifest }],
window: { allowClose: false, defaultSideBarPanel: 'annotations' },
},
[...plugins]
);
}, [config, json, plugins]);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant