package d2sketch
Import Path
oss.terrastruct.com/d2/d2renderers/d2sketch (on go.dev)
Dependency Relation
imports 14 packages, and imported by one package
Involved Source Files
sketch.go
Package-Level Functions (total 12)
func ArrowheadJS(r jsrunner.JSRunner, arrowhead d2target.Arrowhead, stroke string, strokeWidth int) (arrowJS, extraJS string) func Arrowheads(r jsrunner.JSRunner, connection d2target.Connection, srcAdj, dstAdj *geo.Point) (string, error) func Connection(r jsrunner.JSRunner, connection d2target.Connection, path, attrs string) (string, error)
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.
TODO need to personalize this per shape like we do in Terrastruct app
TODO cleanup
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |