diagram-viewer(n)
π 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:
- Processing and display of one or more diagram files.
- 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 theImgpackage, i.e. for which it can load a packageimg::formatβ¨ so like, whateverImgcan 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 πΈ
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
- Copyright (c) 2010 Andreas Kupries <andreas_kupries@users\&.sourceforge\&.net>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms