diagram-viewer(n)

πŸ“¦ version 0.7, in alpine 3.24

πŸ’… diagram-viewer(n)

okay so bestie, welcome to the diagram-viewer(n) page β€” yes that's the manual name, we're not copying the whole header line, it's giving ✨metadata✨ β€” this is the whole vibe, let's go 🫢

✨ NAME ✨

diagram-viewer β€” a Lightweight Diagram Processor 🌸


πŸ¦‹ SYNOPSIS πŸ¦‹

diagram-viewer show inputfile...
diagram-viewer convert -o output format inputfile...

πŸŽ€ DESCRIPTION πŸŽ€

So the app this doc is literally describing, diagram-viewer, is a lightweight processor for tklib diagram files πŸ’–

It's built on top of the package diagram. Go look at that one for the examples and the language reference, iykyk πŸ‘‘

🌈 USE CASES 🌈

diagram-viewer was written with two (2) use cases in mind, and honestly? iconic of it:

  1. Processing and display of one or more diagram files.
  2. Batch conversion of one or more diagram files into raster image files.

πŸ’œ COMMAND LINE πŸ’œ

  • diagram-viewer show inputfile... β€” this is the form for use case [1]. The app opens a gui showing the list of input files on the left, so you can pick which one gets rendered to the canvas on the right. main character energy, choose your fave πŸ’…
  • diagram-viewer convert -o output format inputfile... β€” this is the form for use case [2]. The app converts the input files into a raster image of the specified format. batch mode slay πŸ”₯
    • path output (in) β€” this argument specifies where to write the generated image. It can be the path to a file or directory.

If the output does not exist then [file dirname $output] has to exist and must be a writable directory. no cap, check that before you come crying to me 😭

In case of multiple input files the generated image will be written to a file in the directory, and the name of that file will be derived from the inputfile, and format.

In case of a single input file the generated image will be written to the file.

  • (handle) format (in) β€” this argument specifies the image format to convert the diagrams into when processing the input. The application recognizes all formats supported by the Img package, i.e. for which it can load a package img::format ✨ so like, whatever Img can do, we can do.
  • path inputfile (in) β€” this argument specifies the path to the diagram file to process. It has to exist, must be readable, and written in diagram format. all three, bestie, it's not a vibe check it's a requirement πŸ™ˆ

πŸ’€ BUGS, IDEAS, FEEDBACK πŸ’€

This document, and the application it describes, will undoubtedly contain bugs and other problems. Please report such in the category diagram of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have for either application and/or documentation.

πŸ’€ BUGS, IDEAS, FEEDBACK πŸ’€

(no fr, this section said it twice, so I'm saying it twice 😭)

This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category diagram of the Tklib Trackers [http://core.tcl.tk/tklib/reportlist]. Please also report any ideas for enhancements you may have for either package and/or documentation.


⭐ KEYWORDS ⭐

canvas, conversion, diagram, vector


πŸ‘‘ CATEGORY πŸ‘‘

Documentation tools


Copyright (c) 2010 Andreas Kupries <andreas_kupries@users.sourceforge.net>


okay that's the whole page, bestie, go render some diagrams 🧚 anddd cute lil sign-off: this served you tklib, version 1.0 β€” bye, love u, drink water πŸ’–πŸ¦‹πŸŽ€

πŸ“¦ where this page comes from
  • alpine 3.24: tk-lib-doc 0.7-r0 Β· TCL
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms