value

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 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

func ColorBlend() *blendMode

func ColorBurnBlend

func ColorBurnBlend() *blendMode

func ColorDodgeBlend

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

func DarkenBlend() *blendMode

func DifferenceBlend

func DifferenceBlend() *blendMode

func ExclusionBlend

func ExclusionBlend() *blendMode

func HardLightBlend

func HardLightBlend() *blendMode

func HueBlend

func HueBlend() *blendMode

func Large

func Large() *absoluteSize

func LightenBlend

func LightenBlend() *blendMode

func LuminosityBlend

func LuminosityBlend() *blendMode

func Medium

func Medium() *absoluteSize

func Mul

func Mul(x1 Value, x2 Value) *operator

func MultiplyBlend

func MultiplyBlend() *blendMode

func Neg

func Neg(x1 Value) *operator

func NormalBlend

func NormalBlend() *blendMode

func Number

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

func OverlayBlend

func OverlayBlend() *blendMode

func SaturationBlend

func SaturationBlend() *blendMode

func ScreenBlend

func ScreenBlend() *blendMode

func Small

func Small() *absoluteSize

func SoftLightBlend

func SoftLightBlend() *blendMode

func Subtract

func Subtract(x1 Value, x2 Value) *operator

func Url

func Url(uri string) *url

func XLarge

func XLarge() *absoluteSize

func XSmall

func XSmall() *absoluteSize

func XXLarge

func XXLarge() *absoluteSize

func XXSmall

func XXSmall() *absoluteSize

func XXXLarge

func XXXLarge() *absoluteSize

Types

type Angle

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

func Degree

func Degree(degree float32) *Angle

func Gradian

func Gradian(gradian float32) *Angle

func Radian

func Radian(radian float32) *Angle

func Turn

func Turn(turn float32) *Angle

func (*Angle) Value

func (a *Angle) Value() string

type CustomProperty

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

func Property

func Property(name string) *CustomProperty

func (*CustomProperty) Value

func (p *CustomProperty) Value() string

type Hexcolor

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

func Hex

func Hex(hex string) *Hexcolor

func (*Hexcolor) Value

func (h *Hexcolor) Value() string

type HslaColor

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

func Hsl

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

func Hsla

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

func (*HslaColor) Value

func (h *HslaColor) Value() string

type LiteralValue

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

func Literal

func Literal(v string) *LiteralValue

func (*LiteralValue) Value

func (l *LiteralValue) Value() string

type PercentageValue

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

func Percent

func Percent(value float64) *PercentageValue

func (*PercentageValue) Value

func (p *PercentageValue) Value() string

type RatioValue

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

func Fraction

func Fraction(x1 Value, x2 Value) *RatioValue

func Ratio

func Ratio(x1 Value, x2 Value) *RatioValue

func (*RatioValue) Value

func (v *RatioValue) Value() string

type RgbaColor

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

func Rgb

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

func Rgba

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

func (*RgbaColor) Value

func (r *RgbaColor) Value() string

type Unit

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

func E

func E() *Unit[string]

func Em

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

func Infinity

func Infinity() *Unit[string]

func NaN

func NaN() *Unit[string]

func NegativeInfinity

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

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

func (*Unit[T]) Value

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