Documentation ¶
Index ¶
- Constants
- func ArrowheadJS(r *Runner, arrowhead d2target.Arrowhead, stroke string, strokeWidth int) (arrowJS, extraJS string)
- func Arrowheads(r *Runner, connection d2target.Connection, srcAdj, dstAdj *geo.Point) (string, error)
- func Class(r *Runner, shape d2target.Shape) (string, error)
- func Connection(r *Runner, connection d2target.Connection, path, attrs string) (string, error)
- func DefineFillPatterns(buf *bytes.Buffer)
- func DoubleOval(r *Runner, shape d2target.Shape) (string, error)
- func DoubleRect(r *Runner, shape d2target.Shape) (string, error)
- func Oval(r *Runner, shape d2target.Shape) (string, error)
- func Paths(r *Runner, shape d2target.Shape, paths []string) (string, error)
- func Rect(r *Runner, shape d2target.Shape) (string, error)
- func Table(r *Runner, shape d2target.Shape) (string, error)
- type Runner
Constants ¶
View Source
const ( BG_COLOR = color.N7 FG_COLOR = color.N1 )
Variables ¶
This section is empty.
Functions ¶
func ArrowheadJS ¶
func Arrowheads ¶
func Connection ¶
func DefineFillPatterns ¶
DefineFillPatterns adds reusable patterns that are overlayed on shapes with fill. This gives it a subtle streaky effect that subtly looks hand-drawn but not distractingly so.
Types ¶
Click to show internal directories.
Click to hide internal directories.