English
About this handbook

This handbook belongs to the template Example for QuartzControl. It explains the template and, at the same time, shows everything it can do.

The text here comes from a Markdown file, not from the configuration.

How a canvas is built

A .canvas file is JSON with exactly two lists:

{
  "nodes": [
    {
      "id": "a1",
      "type": "text",
      "text": "## A card\n\nWith Markdown in it.",
      "x": 0, "y": 0, "width": 320, "height": 160,
      "color": "4"
    }
  ],
  "edges": [
    { "id": "e1", "fromNode": "a1", "fromSide": "right", "toNode": "b2", "toSide": "left" }
  ]
}

Kinds of node

typeContentAdditional fields
textMarkdown directly in the cardtext
filea note from the vaultfile, optionally subpath
linka web page as an embedded viewurl
groupa labelled frame around other cardslabel

Geometry and colour

x and y are the coordinates of the top left corner — negative values are normal, the origin lies somewhere in the middle. width and height in pixels.

color is either a digit from "1" to "6" (Obsidian’s palette: red, orange, yellow, green, cyan, purple) or a hex value.

Edges

An edge connects two nodes and names the sides it docks to: top, right, bottom, left. Optionally with label, color and arrowheads through fromEnd/toEnd.

By hand or in Obsidian

The format is simple enough to write — but arranging by hand is tedious. In Obsidian you drag the cards; the file is kept up to date while you do.

Linking to one

A wikilink to such a file needs the extension:

[[en/3-obsidian-formats/01-bases/Formatting-Pages.base|Formatting pages]]
[[en/3-obsidian-formats/02-canvas/Structure of the template.canvas|Structure of the template]]

Quartz keeps the extension in the address of the page (…/formatting-pages.base), unlike with Markdown files. Without it the link leads nowhere — and that does not stand out, because an unresolved wikilink gets no special marking here.

Read on

This page belongs to Example — the example template for QuartzControl. An overview of every area is on the English home page.

On a narrow screen the navigation is collapsed at the top.