Documentation
¶
Rendered for js/wasm
Index ¶
- func Compile(args []js.Value) (interface{}, error)
- func Decode(args []js.Value) (interface{}, error)
- func Encode(args []js.Value) (interface{}, error)
- func GetBoardAtPosition(args []js.Value) (interface{}, error)
- func GetCompletions(args []js.Value) (interface{}, error)
- func GetELKGraph(args []js.Value) (interface{}, error)
- func GetObjOrder(args []js.Value) (interface{}, error)
- func GetParentID(args []js.Value) (interface{}, error)
- func GetRefRanges(args []js.Value) (interface{}, error)
- func GetVersion(args []js.Value) (interface{}, error)
- func Render(args []js.Value) (interface{}, error)
- type BoardPositionResponse
- type CompileRequest
- type CompileResponse
- type CompletionResponse
- type D2API
- type RefRangesResponse
- type RenderOptions
- type RenderRequest
- type WASMError
- type WASMResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBoardAtPosition ¶
func GetCompletions ¶
func GetELKGraph ¶
func GetObjOrder ¶
func GetParentID ¶
func GetRefRanges ¶
func GetVersion ¶
Types ¶
type BoardPositionResponse ¶
type BoardPositionResponse struct {
BoardPath []string `json:"boardPath"`
}
type CompileRequest ¶
type CompileRequest struct {
FS map[string]string `json:"fs"`
Opts *RenderOptions `json:"options"`
}
type CompileResponse ¶
type CompletionResponse ¶
type CompletionResponse struct {
Items []map[string]interface{} `json:"items"`
}
type RefRangesResponse ¶
type RenderOptions ¶
type RenderRequest ¶
type RenderRequest struct {
Diagram *d2target.Diagram `json:"diagram"`
Opts *RenderOptions `json:"options"`
}
type WASMResponse ¶
type WASMResponse struct {
Data interface{} `json:"data,omitempty"`
Error *WASMError `json:"error,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.