Coder Social home page Coder Social logo

Comments (6)

krisztianb avatar krisztianb commented on July 21, 2024

I looked this one up. This is a default limitation of PlantUML and not an issue with the plugin itself. It should be possible to bypass this by setting and environment variable on your computer: https://plantuml.com/faq#ta2awl095d7kka3pk8u1

Could you try that?

from typedoc-umlclass.

yboujraf avatar yboujraf commented on July 21, 2024

Dear @krisztianb

Please share the settings I will try it. I have seen with svg, the image is not cut off.

Best Regards,
Youssef

from typedoc-umlclass.

krisztianb avatar krisztianb commented on July 21, 2024

Ok. I copied it from the page I linked, since the HTML anchor is no longer working?!

I want to generate huge diagrams!

PlantUML limits image width and height to 4096. There is a environment variable that you can set to override this limit: PLANTUML_LIMIT_SIZE. You have to define this variable before launching PlantUML, something like:

set PLANTUML_LIMIT_SIZE=8192

or

setenv PLANTUML_LIMIT_SIZE 8192

Another way is an option in the command line:

java -DPLANTUML_LIMIT_SIZE=8192 -jar /path/to/plantuml.jar ...

Note that if you generate very big diagrams, (for example, something like 20 000 x 10 000 pixels), you can have some memory issues. The solution is to add this parameter to the java vm : -Xmx1024m.

from typedoc-umlclass.

krisztianb avatar krisztianb commented on July 21, 2024

This should be resolved.

from typedoc-umlclass.

yboujraf avatar yboujraf commented on July 21, 2024

Dear @krisztianb

The issue stills with png format.

Best Regards,
Youssef

from typedoc-umlclass.

krisztianb avatar krisztianb commented on July 21, 2024

Dear @yboujraf as you can see a few comments above this is not an issue with the plugin itself, but a default limitation in PlantUML. You should be able to resolve this by setting an environment varialbe on the computer.

By the way I'm thinking about dropping PNG support alltogehter. Because I don't see any benefits in having a pixel graphic format used for diagrams. The filesize is not smaller, you have this PlantUML limitation and it gets pixelated when resizing.

What do you thinking? Do you really need PNG graphics or can you use the SVG ones too?

from typedoc-umlclass.

Related Issues (20)

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.