Documentation
¶
Index ¶
- Constants
- func ArrowheadJS(r jsrunner.JSRunner, arrowhead d2target.Arrowhead, stroke string, ...) (arrowJS, extraJS string)
- func Arrowheads(r jsrunner.JSRunner, connection d2target.Connection, srcAdj, dstAdj *geo.Point) (string, error)
- func Class(r jsrunner.JSRunner, shape d2target.Shape) (string, error)
- func Connection(r jsrunner.JSRunner, connection d2target.Connection, path, attrs string) (string, error)
- func DefineFillPatterns(buf *bytes.Buffer, diagramHash string)
- func DoubleOval(r jsrunner.JSRunner, shape d2target.Shape, diagramHash string) (string, error)
- func DoubleRect(r jsrunner.JSRunner, shape d2target.Shape, diagramHash string) (string, error)
- func LoadJS(runner jsrunner.JSRunner) error
- func Oval(r jsrunner.JSRunner, shape d2target.Shape, diagramHash string) (string, error)
- func Paths(r jsrunner.JSRunner, shape d2target.Shape, diagramHash string, paths []string) (string, error)
- func Rect(r jsrunner.JSRunner, shape d2target.Shape, diagramHash string) (string, error)
- func Table(r jsrunner.JSRunner, shape d2target.Shape) (string, error)
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.
func DoubleOval ¶
func DoubleRect ¶
func Paths ¶
func Paths(r jsrunner.JSRunner, shape d2target.Shape, diagramHash string, paths []string) (string, error)
TODO need to personalize this per shape like we do in Terrastruct app
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.