value

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2025 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abs

func Abs(calcSum Value) *function

func Acos

func Acos(number Value) *function

func Add

func Add(x1 Value, x2 Value) *operator

func Anchor

func Anchor(params ...Value) *function

func AnchorSize

func AnchorSize(params ...Value) *function

func Asin

func Asin(number Value) *function

func Atan

func Atan(number Value) *function

func Atan2

func Atan2(y Value, x Value) *function

func Attr

func Attr(name Value, params ...Value) *function

func Blur

func Blur(length Value) *function

func Brightness

func Brightness(length Value) *function

func Calc

func Calc(param Value) *function

func Circle

func Circle(param Value) *function

func Clamp

func Clamp(min Value, val Value, max Value) *function

func Color

func Color(params ...Value) *function

func ColorBlend added in v0.0.15

func ColorBlend() *blendMode

func ColorBurnBlend added in v0.0.15

func ColorBurnBlend() *blendMode

func ColorDodgeBlend added in v0.0.15

func ColorDodgeBlend() *blendMode

func ColorMix

func ColorMix(params ...Value) *function

func ConicGradient

func ConicGradient(params ...Value) *function

func Contrast

func Contrast(number Value) *function

func Cos

func Cos(angle Value) *function

func CubicBezier

func CubicBezier(x1 Value, y1 Value, x2 Value, y2 Value) *function

func DarkenBlend added in v0.0.15

func DarkenBlend() *blendMode

func DifferenceBlend added in v0.0.15

func DifferenceBlend() *blendMode

func ExclusionBlend added in v0.0.15

func ExclusionBlend() *blendMode

func HardLightBlend added in v0.0.15

func HardLightBlend() *blendMode

func HueBlend added in v0.0.15

func HueBlend() *blendMode

func Large added in v0.0.15

func Large() *absoluteSize

func LightenBlend added in v0.0.15

func LightenBlend() *blendMode

func LuminosityBlend added in v0.0.15

func LuminosityBlend() *blendMode

func Medium added in v0.0.15

func Medium() *absoluteSize

func Mul

func Mul(x1 Value, x2 Value) *operator

func MultiplyBlend added in v0.0.15

func MultiplyBlend() *blendMode

func Neg

func Neg(x1 Value) *operator

func NormalBlend added in v0.0.15

func NormalBlend() *blendMode

func Number

func Number[T valConstraint](val T) *number[T]

func OverlayBlend added in v0.0.15

func OverlayBlend() *blendMode

func SaturationBlend added in v0.0.15

func SaturationBlend() *blendMode

func ScreenBlend added in v0.0.15

func ScreenBlend() *blendMode

func Small added in v0.0.15

func Small() *absoluteSize

func SoftLightBlend added in v0.0.15

func SoftLightBlend() *blendMode

func Subtract

func Subtract(x1 Value, x2 Value) *operator

func Url added in v0.0.15

func Url(uri string) *url

func XLarge added in v0.0.15

func XLarge() *absoluteSize

func XSmall added in v0.0.15

func XSmall() *absoluteSize

func XXLarge added in v0.0.15

func XXLarge() *absoluteSize

func XXSmall added in v0.0.15

func XXSmall() *absoluteSize

func XXXLarge added in v0.0.15

func XXXLarge() *absoluteSize

Types

type Angle added in v0.0.15

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

func Degree added in v0.0.15

func Degree(degree float32) *Angle

func Gradian added in v0.0.15

func Gradian(gradian float32) *Angle

func Radian added in v0.0.15

func Radian(radian float32) *Angle

func Turn added in v0.0.15

func Turn(turn float32) *Angle

func (*Angle) Value added in v0.0.15

func (a *Angle) Value() string

type CustomProperty added in v0.0.15

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

func Property added in v0.0.15

func Property(name string) *CustomProperty

func (*CustomProperty) Value added in v0.0.15

func (p *CustomProperty) Value() string

type Hexcolor added in v0.0.15

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

func Hex added in v0.0.15

func Hex(hex string) *Hexcolor

func (*Hexcolor) Value added in v0.0.15

func (h *Hexcolor) Value() string

type HslaColor added in v0.0.15

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

func Hsl added in v0.0.15

func Hsl(h, s, l uint32) *HslaColor

func Hsla added in v0.0.15

func Hsla(h, s, l, a uint32) *HslaColor

func (*HslaColor) Value added in v0.0.15

func (h *HslaColor) Value() string

type LiteralValue added in v0.0.15

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

func Literal

func Literal(v string) *LiteralValue

func (*LiteralValue) Value added in v0.0.15

func (l *LiteralValue) Value() string

type PercentageValue added in v0.0.15

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

func Percent

func Percent(value float64) *PercentageValue

func (*PercentageValue) Value added in v0.0.15

func (p *PercentageValue) Value() string

type RatioValue added in v0.0.15

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

func Fraction

func Fraction(x1 Value, x2 Value) *RatioValue

func Ratio added in v0.0.15

func Ratio(x1 Value, x2 Value) *RatioValue

func (*RatioValue) Value added in v0.0.15

func (v *RatioValue) Value() string

type RgbaColor added in v0.0.15

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

func Rgb added in v0.0.15

func Rgb(r, g, b uint32) *RgbaColor

func Rgba added in v0.0.15

func Rgba(r, g, b, a uint32) *RgbaColor

func (*RgbaColor) Value added in v0.0.15

func (r *RgbaColor) Value() string

type Unit added in v0.0.15

type Unit[T valConstraint] struct {
	// contains filtered or unexported fields
}

func E added in v0.0.15

func E() *Unit[string]

func Em

func Em[T valConstraint](value T) *Unit[T]

func Infinity added in v0.0.15

func Infinity() *Unit[string]

func NaN added in v0.0.15

func NaN() *Unit[string]

func NegativeInfinity added in v0.0.15

func NegativeInfinity() *Unit[string]

func Pi

func Pi() *Unit[string]

func Px

func Px[T valConstraint](value T) *Unit[T]

func Rem

func Rem[T valConstraint](value T) *Unit[T]

func (*Unit[T]) LiteralValue added in v0.0.15

func (u *Unit[T]) LiteralValue() T

func (*Unit[T]) Value added in v0.0.15

func (u *Unit[T]) Value() string

type Value

type Value interface {
	Value() string
}

Jump to

Keyboard shortcuts

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