codeCoverChart

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComponentAction

type ComponentAction struct {
	base.DefaultProvider

	Name       string                 `json:"name,omitempty"`
	Type       string                 `json:"type,omitempty"`
	Props      map[string]interface{} `json:"props,omitempty"`
	State      State                  `json:"state,omitempty"`
	Operations map[string]interface{} `json:"operations,omitempty"`
	Data       map[string]interface{}
	// contains filtered or unexported fields
}

func (*ComponentAction) GenComponentState

func (i *ComponentAction) GenComponentState(c *cptype.Component) error

GenComponentState 获取state

func (*ComponentAction) Render

type Meta

type Meta struct {
	Data struct {
		Data PointValue `json:"data"`
	} `json:"data"`
}

type Operation

type Operation struct {
	Key      string                 `json:"key"`
	Reload   bool                   `json:"reload"`
	FillMeta string                 `json:"fillMeta"`
	Meta     map[string]interface{} `json:"meta"`
}

type PointValue

type PointValue struct {
	RecordID   uint64  `json:"recordId"`
	Value      float64 `json:"value"`
	SymbolSize int     `json:"symbolSize"`
	Symbol     string  `json:"symbol"`
}

type State

type State struct {
	Value    []int64 `json:"value"`
	RecordID uint64  `json:"recordID"`
}

Jump to

Keyboard shortcuts

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