MyNixOS website logo
Description

Embedded domain-specific language for declarative vector graphics.

Diagrams is a full-featured framework and embedded domain-specific langauge for creating declarative vector graphics and animations.

This package is just a convenient wrapper around the diagrams-core, diagrams-lib and diagrams-contrib packages, so they can be installed with a single cabal install diagrams command.

The package also comes with flags to enable six different backends. A Haskell-native SVG backend (the diagrams-svg package) can be selected with -fsvg. This flag is enabled by default, so if you do not want the SVG backend, you must explicitly disable it with -f-svg. The SVG backend does not yet quite support all the features of the cairo backend: text alignment and embedded images are the two main missing features at this point, and of course it can only produce SVG images. It is, however, much easier to install, so it is the out-of-the-box default.

There is also a cairo backend (the diagrams-cairo package) which can be selected with the -fcairo flag. It is fully-featured and can produce PNG, PS, PDF, SVG, or animated GIF output; however, due to its dependencies it can be difficult to install on some platforms (notably OS X).

In addition, there is a GTK backend based on the cairo backend, for rendering diagrams directly to GTK windows. You can enable it with the -fgtk flag.

The Haskell-native postscript backend (the diagrams-postscript package) can be selected with the -fpostscript flag. The only feature it does not support is transparency.

There is a Rasterific backend which is also Haskell-native (the diagrams-rasterific package) which can be selected with the -frasterific flag. This is a fully featured backend with the ability to produce PNG, JPG, TIFF, BMP and animated GIF output.

There is a Canvas backend, also haskell native, which can be selected with the -fcanvas flag. This backend allows users to write interactive images onto their web browsers.

Finally there is a PGF backend, suitable for producing diagrams that can be natively embedded in LaTeX documents, which can be selected with the -fpgf flag.

For more information, including a gallery of examples, tutorial, and user manual, see the diagrams website: http://diagrams.github.io. For help, join the #diagrams IRC channel on Freenode or the mailing list: http://groups.google.com/group/diagrams-discuss.

Metadata

Version

1.4.1

Maintainers (1)

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows