Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cognite/react-picture-annotation

Package Overview
Dependencies
Maintainers
2
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cognite/react-picture-annotation

A simple pdf/image annotation component.

  • 3.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

React Picture Annotation

GitHub license

A simple annotation component.

rect

Install

# npm
npm install @cognite/react-picture-annotation

# yarn
yarn add @cognite/react-picture-annotation

Use within Cognite Data Fusion

By default, the PDF.JS worker is loaded in from a public CDN. But because of security concerns, we do not whitelist all domains to access things from public CDN within Fusion. Hence make sure to set the worker to a public hosted one like the ones here https://github.com/cognitedata/cdf-hub/tree/master/packages/root/static/dependencies. Also, make sure to check the version to use from package.json!

Setting the worker.js goes like this:

pdfjs.GlobalWorkerOptions.workerSrc = `//dev.fusion.cogniteapp.com/dependencies/pdfjs-dist@2.6.347/build/pdf.worker.js`;

Do this at the top of the file.

Storybook

Shout out the the orig repo: https://github.com/Kunduin/react-picture-annotation

Keywords

FAQs

Package last updated on 07 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc