model

package
v0.0.0-...-7af0584 Latest Latest
Warning

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

Go to latest
Published: May 16, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Undo = iota + 1
	Redo
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AbstractConnector

type AbstractConnector interface {
}

type AbstractPersistence

type AbstractPersistence interface {
	// contains filtered or unexported methods
}

type Array

type Array[K string, V any] map[K]V

type OperationType

type OperationType int

type StackEventArgs

type StackEventArgs struct {
	StackItem          StackItem
	Type               OperationType
	ChangedParentTypes map[*types.AbstractType][]YEvent // public IDictionary<AbstractType,
	// IList<YEvent>> ChangedParentTypes { get; }
	Origin any
}

type StackItem

type StackItem struct {
	BeforeState map[int]int
	AfterState  map[int]int
	Meta        map[string]any
	DeleteSet   utils.DeleteSet
}

type Text

type Text string

type Transaction

type Transaction struct {
}

type Uint8Array

type Uint8Array []uint8

type UndoManager

type UndoManager struct {
	Scope          []any
	DeleteFilter   func(item structs.Item) bool
	TrackedOrigins map[any]struct{}
	UndoStack      list.List
	RedoStack      list.List
	// Whether the client is currently undoing (calling UndoManager.Undo()).
	Undoing        bool
	Redoing        bool
	Doc            YDoc
	LastChange     time.Time
	CaptureTimeout int
}

type Y

type Y[K string, V any] struct {
	// contains filtered or unexported fields
}

type YArray

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

type YArrayEvent

type YArrayEvent struct {
}

type YDoc

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

type YEvent

type YEvent struct {
}

Jump to

Keyboard shortcuts

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