diagram

package
v0.9.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2026 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package diagram contains validation passes for view renderings and diagram layout annotations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LayoutPass

type LayoutPass struct{}

LayoutPass validates the DiagramLayout annotations of a document: a Layout, Route, Style or Note the rendering it applies to cannot draw, a binding that does not read as geometry, a Canvas stated outside the body of the view it annotates, a Picture annotating anything but a view, and two `about` annotations of one kind for one element in one view, of which the first applies; a Note or Picture is never a duplicate, since every one is drawn.

func (LayoutPass) Level

func (LayoutPass) Level() kit.PassLevel

func (LayoutPass) Run

func (LayoutPass) Run(ctx *kit.Context, name string, root *ast.RootNamespace) []diag.Diagnostic

type ViewRenderingPass

type ViewRenderingPass struct{}

ViewRenderingPass checks that a view owns at most one view rendering (SysML v2 §8.3.26); a plain `rendering` member is no view rendering and does not count.

func (ViewRenderingPass) Level

func (ViewRenderingPass) Run

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL