proto

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Version = 1

Version of the protobuf format, increment when the content updates each time.

Variables

View Source
var File_tex2svg_proto_tex2svg_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Key

type Key struct {

	// Version is the content version which could be
	// encoded in the protobuf.
	//
	// Currently the worst result is to regenerate all
	// the content from scratch, which is acceptible.
	Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	// Tex is the content of generated TeX payload.
	Tex []byte `protobuf:"bytes,2,opt,name=tex,proto3" json:"tex,omitempty"`
	// Precision is the precision value sent to the
	// scour SVG optimizer.
	Precision int64 `protobuf:"varint,3,opt,name=precision,proto3" json:"precision,omitempty"`
	// ControlPrecision is the control precision
	// value sent to the scour SVG optimizer.
	ControlPrecision int64 `protobuf:"varint,4,opt,name=controlPrecision,proto3" json:"controlPrecision,omitempty"`
	// contains filtered or unexported fields
}

Key is the encoded content of key for looking up.

func (*Key) Descriptor deprecated

func (*Key) Descriptor() ([]byte, []int)

Deprecated: Use Key.ProtoReflect.Descriptor instead.

func (*Key) GetControlPrecision

func (x *Key) GetControlPrecision() int64

func (*Key) GetPrecision

func (x *Key) GetPrecision() int64

func (*Key) GetTex

func (x *Key) GetTex() []byte

func (*Key) GetVersion

func (x *Key) GetVersion() uint64

func (*Key) ProtoMessage

func (*Key) ProtoMessage()

func (*Key) ProtoReflect

func (x *Key) ProtoReflect() protoreflect.Message

func (*Key) Reset

func (x *Key) Reset()

func (*Key) String

func (x *Key) String() string

type Value

type Value struct {

	// Data is the generated SVG data.
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// Baseline is the baseline value stored.
	Baseline float64 `protobuf:"fixed64,2,opt,name=baseline,proto3" json:"baseline,omitempty"`
	// contains filtered or unexported fields
}

Value is the encoded content of generated result.

func (*Value) Descriptor deprecated

func (*Value) Descriptor() ([]byte, []int)

Deprecated: Use Value.ProtoReflect.Descriptor instead.

func (*Value) GetBaseline

func (x *Value) GetBaseline() float64

func (*Value) GetData

func (x *Value) GetData() []byte

func (*Value) ProtoMessage

func (*Value) ProtoMessage()

func (*Value) ProtoReflect

func (x *Value) ProtoReflect() protoreflect.Message

func (*Value) Reset

func (x *Value) Reset()

func (*Value) String

func (x *Value) String() string

Jump to

Keyboard shortcuts

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