mermaid

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2020 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Overview

Autogenerated by make resources

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode64

func Decode64(src []byte) []byte

func LoadTemplate

func LoadTemplate(mermaidSource string) string

Load template returns a mermaid html page with the input mermaid code embedded.

Types

type Generator added in v0.1.1

type Generator struct {
	// contains filtered or unexported fields
}

func Init added in v0.1.1

func Init() *Generator

// Init returns a new Generator instance which sets up a chrome browser instance to be used by all subsequent calls

func (*Generator) Close added in v0.1.1

func (g *Generator) Close()

Close cancels the root context and closes the chrome browser instance created by chromedp

func (*Generator) EvaluateAndSelectHTML added in v0.1.1

func (g *Generator) EvaluateAndSelectHTML(rawHTML, selector string) string

Execute evaluates raw html (with javascript embedded) and returns the processed HTML.

func (*Generator) Execute added in v0.1.1

func (g *Generator) Execute(mermaidCode string) string

Execute evaluates mermaid code and returns svg string slices.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL