Documentation
¶
Rendered for js/wasm
Index ¶
- Constants
- 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 GetJSVersion(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 CompileOptions
- type CompileRequest
- type CompileResponse
- type CompletionResponse
- type D2API
- type RefRangesResponse
- type RenderOptions
- type RenderRequest
- type WASMError
- type WASMResponse
Constants ¶
View Source
const DEFAULT_INPUT_PATH = "index"
Variables ¶
This section is empty.
Functions ¶
func GetBoardAtPosition ¶
func GetCompletions ¶
func GetELKGraph ¶
func GetJSVersion ¶ added in v0.7.1
func GetObjOrder ¶
func GetParentID ¶
func GetRefRanges ¶
func GetVersion ¶
Types ¶
type BoardPositionResponse ¶
type CompileOptions ¶ added in v0.7.0
type CompileRequest ¶
type CompileRequest struct {
FS map[string]string `json:"fs"`
InputPath *string `json:"inputPath"`
Opts *CompileOptions `json:"options"`
}
type CompileResponse ¶
type CompletionResponse ¶
type CompletionResponse struct {
Items []map[string]interface{} `json:"items"`
}
type RefRangesResponse ¶
type RenderOptions ¶
type RenderOptions struct {
Pad *int64 `json:"pad"`
Sketch *bool `json:"sketch"`
Center *bool `json:"center"`
ThemeID *int64 `json:"themeID"`
DarkThemeID *int64 `json:"darkThemeID"`
ThemeOverrides *d2target.ThemeOverrides `json:"themeOverrides"`
DarkThemeOverrides *d2target.ThemeOverrides `json:"darkThemeOverrides"`
Scale *float64 `json:"scale"`
ForceAppendix *bool `json:"forceAppendix"`
Target *string `json:"target"`
AnimateInterval *int64 `json:"animateInterval"`
Salt *string `json:"salt"`
NoXMLTag *bool `json:"noXMLTag"`
ASCII *bool `json:"ascii"`
ASCIIMode *string `json:"asciiMode"`
}
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.