Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{
FontPath: "",
OutputSVGPath: "out.svg",
}
View Source
var DefaultDiagramConfig = DiagramConfig{ Margin: 10.0, LineSpacing: 80.0, TimeSpacing: 100.0, GateBlockSize: 40.0, FontName: "Noto Sans Math", FontSize: 20, ShowBarriers: true, BarrierLineOffset: 2.5, CxRadius: 15.0, MeasureRadius: 12.0, MeasureCenterOffsetY: 10.0, MeasureZeroOffset: math.Pi / 10.0, MeasurePointerOffset: math.Pi / 3.0, MeasurePointerLength: 15.0, Scale: 1.0, }
Functions ¶
func Draw ¶
func Draw(qc *QC, config *Config, dConfigParam *DiagramConfig)
Types ¶
type DiagramConfig ¶
type DiagramConfig struct {
Margin float64
LineSpacing float64
TimeSpacing float64
GateBlockSize float64
FontName string
FontSize int
ShowBarriers bool
BarrierLineOffset float64
CxRadius float64
MeasureRadius float64
MeasureCenterOffsetY float64
MeasureZeroOffset float64
MeasurePointerOffset float64
MeasurePointerLength float64
Scale float64
}
type Gate ¶
type Measure ¶
Click to show internal directories.
Click to hide internal directories.