package jsrunner

Import Path
	oss.terrastruct.com/d2/lib/jsrunner (on go.dev)

Dependency Relation
	imports 5 packages, and imported by 5 packages

Involved Source Files goja.go jsrunner.go
Package-Level Type Names (total 4)
/* sort by: | */
func JSRunner.Engine() Engine const Goja const Native
( JSObject) Export() interface{} ( JSObject) String() string JSValue (interface) *github.com/dop251/goja.Object github.com/dop251/goja.String (interface) *github.com/dop251/goja.Symbol github.com/dop251/goja.Value (interface) JSObject : JSValue JSObject : expvar.Var JSObject : fmt.Stringer func JSRunner.NewObject() JSObject
( JSRunner) Engine() Engine ( JSRunner) MustGet(string) (JSValue, error) ( JSRunner) NewObject() JSObject ( JSRunner) RunString(code string) (JSValue, error) ( JSRunner) Set(name string, value interface{}) error ( JSRunner) WaitPromise(ctx context.Context, val JSValue) (interface{}, error) func NewJSRunner() JSRunner func oss.terrastruct.com/d2/d2renderers/d2sketch.ArrowheadJS(r JSRunner, arrowhead d2target.Arrowhead, stroke string, strokeWidth int) (arrowJS, extraJS string) func oss.terrastruct.com/d2/d2renderers/d2sketch.Arrowheads(r JSRunner, connection d2target.Connection, srcAdj, dstAdj *geo.Point) (string, error) func oss.terrastruct.com/d2/d2renderers/d2sketch.Class(r JSRunner, shape d2target.Shape) (string, error) func oss.terrastruct.com/d2/d2renderers/d2sketch.Connection(r JSRunner, connection d2target.Connection, path, attrs string) (string, error) func oss.terrastruct.com/d2/d2renderers/d2sketch.DoubleOval(r JSRunner, shape d2target.Shape) (string, error) func oss.terrastruct.com/d2/d2renderers/d2sketch.DoubleRect(r JSRunner, shape d2target.Shape) (string, error) func oss.terrastruct.com/d2/d2renderers/d2sketch.LoadJS(runner JSRunner) error func oss.terrastruct.com/d2/d2renderers/d2sketch.Oval(r JSRunner, shape d2target.Shape) (string, error) func oss.terrastruct.com/d2/d2renderers/d2sketch.Paths(r JSRunner, shape d2target.Shape, paths []string) (string, error) func oss.terrastruct.com/d2/d2renderers/d2sketch.Rect(r JSRunner, shape d2target.Shape) (string, error) func oss.terrastruct.com/d2/d2renderers/d2sketch.Table(r JSRunner, shape d2target.Shape) (string, error)
( JSValue) Export() interface{} ( JSValue) String() string JSObject (interface) *github.com/dop251/goja.Object github.com/dop251/goja.String (interface) *github.com/dop251/goja.Symbol github.com/dop251/goja.Value (interface) JSValue : JSObject JSValue : expvar.Var JSValue : fmt.Stringer func JSRunner.MustGet(string) (JSValue, error) func JSRunner.RunString(code string) (JSValue, error) func JSRunner.WaitPromise(ctx context.Context, val JSValue) (interface{}, error)
Package-Level Functions (only one)
Package-Level Constants (total 2)
const Goja Engine = 0
const Native Engine = 1