Coder Social home page Coder Social logo

Comments (8)

alekswebnet avatar alekswebnet commented on June 5, 2024 1

@prabirshrestha Implemented and will be available in the next release

from pdfjs-viewer-element.

prabirshrestha avatar prabirshrestha commented on June 5, 2024 1

It works now. Would be good to have this site updated too. https://alekswebnet.github.io/pdfjs-viewer-element/#api

from pdfjs-viewer-element.

alekswebnet avatar alekswebnet commented on June 5, 2024

@prabirshrestha Since v2.5.0 you can use viewer-css-theme attribute to change viewer theme - AUTOMATIC | LIGHT | DARK

from pdfjs-viewer-element.

prabirshrestha avatar prabirshrestha commented on June 5, 2024

Don't think v2.5.0 is correctly released. Tried both with pnpm and npm and also verified in yarnkpkg site.

https://yarnpkg.com/package?q=pdfjs-viewer-element&name=pdfjs-viewer-element&version=2.5.0&file=%2Fdist%2Fpdfjs-viewer-element.js

  static get observedAttributes() {
    return ["src", "viewer-path", "locale", "page", "search", "phrase", "zoom", "pagemode", "text-layer"];
  }

I don't see the latest change.

['src', 'viewer-path', 'locale', 'page', 'search', 'phrase', 'zoom', 'pagemode', 'text-layer', 'viewer-css-theme', 'viewer-extra-styles']

from pdfjs-viewer-element.

alekswebnet avatar alekswebnet commented on June 5, 2024

@prabirshrestha You are right, it was my mistake. Sorry for that
The latest changes are available in the latest version: https://yarnpkg.com/package?q=pdfjs-viewer-element&name=pdfjs-viewer-element&version=2.5.2&file=%2Fdist%2Fpdfjs-viewer-element.js

from pdfjs-viewer-element.

alekswebnet avatar alekswebnet commented on June 5, 2024

@prabirshrestha You are right, I will update it soon

from pdfjs-viewer-element.

alekswebnet avatar alekswebnet commented on June 5, 2024

@prabirshrestha The website is updated. Thanks for sharing!

from pdfjs-viewer-element.

prabirshrestha avatar prabirshrestha commented on June 5, 2024

Thanks for the quick fix!

from pdfjs-viewer-element.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.