Options
All
  • Public
  • Public/Protected
  • All
Menu

Library @swim/constraint

Swim Constraint Library

The Swim Constraint library implements an incremental solver for systems of linear constraint equations.

Index

Type aliases

AnyConstraintExpression

AnyConstraintExpression: ConstraintExpression | number

AnyConstraintStrength

ConstraintAnimatorDescriptor

ConstraintAnimatorDescriptor<O, T, U, I>: ThisType<ConstraintAnimator<O, T, U> & I> & ConstraintAnimatorInit<T, U> & Partial<I>

Type parameters

  • O = unknown

  • T = unknown

  • U = T

  • I = {}

ConstraintPropertyDescriptor

ConstraintPropertyDescriptor<O, T, U, I>: ThisType<ConstraintProperty<O, T, U> & I> & ConstraintPropertyInit<T, U> & Partial<I>

Type parameters

  • O = unknown

  • T = unknown

  • U = T

  • I = {}

ConstraintRelation

ConstraintRelation: "le" | "eq" | "ge"

ConstraintStrength

ConstraintStrength: number

ConstraintStrengthInit

ConstraintStrengthInit: "required" | "strong" | "medium" | "weak"

Variables

ConstraintAnimator

ConstraintAnimator: ConstraintAnimatorFactory<ConstraintAnimator<any, any, any>>

ConstraintExpression

ConstraintExpression: { zero: ConstraintConstant; constant: any; fromAny: any; product: any; sum: any }

Type declaration

ConstraintId

ConstraintId: { next: any }

Type declaration

  • next: function
    • next(): number
    • Returns number

ConstraintProperty

ConstraintProperty: ConstraintPropertyFactory<ConstraintProperty<any, any, any>>

ConstraintScope

ConstraintScope: { is: any }

Type declaration

  • is: function
    • Parameters

      • object: unknown

      Returns object is ConstraintScope

ConstraintStrength

ConstraintStrength: { Medium: number; Required: number; Strong: number; Unbound: number; Weak: number; clip: any; fromAny: any }

Type declaration

  • Readonly Medium: number
  • Readonly Required: number
  • Readonly Strong: number
  • Readonly Unbound: number
  • Readonly Weak: number
  • clip: function
    • clip(strength: number): number
    • Parameters

      • strength: number

      Returns number

  • fromAny: function
    • Parameters

      Returns number

ConstraintSymbol

ConstraintSymbol: { invalid: ConstraintInvalid }

Type declaration

ConstraintTerm

ConstraintTerm: { is: any }

Type declaration

  • is: function
    • Parameters

      • value: unknown

      Returns value is ConstraintTerm

Generated using TypeDoc