Documentation
¶
Index ¶
- Variables
- func Register(b Behavior, kinds ...string)
- type Behavior
- type Candidate
- type Catalog
- type Choice
- type Config
- type Conn
- type DiffLine
- type Drift
- type Edit
- type Layout
- type Path
- type Piece
- type Point
- type Scene
- type Session
- func (s *Session) Candidate(ctx context.Context, e Edit, version int64) (*Candidate, error)
- func (s *Session) Commit(ctx context.Context, e Edit, version int64) (string, View, error)
- func (s *Session) ExportSVG(ctx context.Context, dark bool) ([]byte, error)
- func (s *Session) Open(source string) (View, error)
- func (s *Session) Plan(t Target, p Point, version int64) ([]Edit, error)
- func (s *Session) Preview(ctx context.Context, t Target, p Point, version int64) (<-chan *Candidate, error)
- func (s *Session) Redo() (View, error)
- func (s *Session) Reload(source string) (View, error)
- func (s *Session) Route(t Target, delta Point, version int64) ([]Path, error)
- func (s *Session) Snapshot() View
- func (s *Session) Text(ctx context.Context, unicode bool) (TextResult, error)
- func (s *Session) Undo() (View, error)
- func (s *Session) Verify(ctx context.Context) (Drift, error)
- func (s *Session) Wait(ctx context.Context, since int64) View
- type Shape
- type Target
- type TextResult
- type ThemeChoice
- type View
- type Writer
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrStale = errors.New("stale version")
)
Functions ¶
Types ¶
type Candidate ¶
type Candidate struct {
Key string `json:"key"`
Label string `json:"label"`
Edit Edit `json:"edit"`
Landing Shape `json:"landing"`
Route [][2]float64 `json:"route,omitempty"`
Diff []DiffLine `json:"diff"`
PinLines int `json:"pinLines"`
MS float64 `json:"ms"`
Cached bool `json:"cached"`
// contains filtered or unexported fields
}
type Catalog ¶
type Catalog struct {
Themes []ThemeChoice `json:"themes"`
DarkThemes []ThemeChoice `json:"darkThemes"`
Engines []Choice `json:"engines"`
Charsets []Choice `json:"charsets"`
Theme int64 `json:"theme"`
DarkTheme int64 `json:"darkTheme"`
}
type Edit ¶
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func NewSession ¶
type TextResult ¶
type ThemeChoice ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.