The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms...
Diagrams people draw and programs read: how much structure a diagram should carry, and a Java API that reads, changes and renders Draw.io documents with Draw.io's own viewer.
Minimum price
Free!
$9.00
About the Book
Most diagrams are drawn once, looked at a few times and then left to drift away from what they describe. They don't have to be. A diagram drawn in Draw.io is a structured document, and with a little discipline it can be documentation, configuration, a program's wiring or the source of a model, while it stays a picture anyone can open and change.
The why: the visual communication continuum
The first part needs no code. It places every diagram on a continuum: a picture, an interactive diagram with tooltips, links and layers, a documented diagram, a diagram as data that a program checks and reports from, an executable diagram, and a diagram as a model. It gives rules for choosing a point: start on the left, move right when readers ask the same question twice or when a program needs the answer, and never redraw to move, because each point keeps the file of the point before it.
The how: Draw.io documents from Java
The second part is for Java developers who are handed diagrams and asked to do something with them. It covers the Draw.io module of the Nasdanika SDK Runtime, a small Java library with few dependencies:
* The document model - Pages, layers, nodes and connections, mirroring Draw.io's file format closely enough that what you learn holds for the format itself.
* Navigating and querying - Properties and placeholders, selectors and property paths, and links between pages, elements and documents.
* Creating and changing diagrams - Geometry and order included, saved back as files Draw.io opens.
* Rendering - Pages as PNG and SVG, and videos, drawn by Draw.io's own viewer in a browser driven by Playwright.
The last part shows where the runtime goes next: diagrams as models, generated and laid out diagrams, and diagrams for AI assistants.
Who it is for
- People who draw: architects, analysts and engineers who use Draw.io and want their diagrams to do more than sit in a wiki.
- Java developers who need to check, generate, publish or synchronize diagrams.
- Anyone building tools on diagrams.
How it keeps you honest
Every listing is included from the module's tests and runs when the book is built. Every figure is a PNG with the Draw.io diagram embedded: open it in Draw.io and edit it, or load it with the API and get the document the next listing works on. Status labels mark what is PLANNED and what is a SKETCH.
This is a Nasdanika Zephyr Book, an in-depth manual for one part of the Nasdanika SDK Runtime, and it stands on its own: you don't need to know the runtime to start and finish here. The code needs Java 25. The text is licensed under CC BY 4.0 and the code under EPL-2.0.
About the Author
Over 30 years of experience in Information Technology with 25 of them in the Financial Services industry, which includes 20 years in banking.
Model-Based Systems Engineering, Java, Architecture As Code
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms...
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
Learn more about writing on Leanpub
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them
You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!
Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.
Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.