Skip to main content

Spacing

class Spacing implements TypeWebGLConvertible

Constructors

constructor

public new Spacing(): Spacing
public new Spacingall: number: Spacing
public new Spacingvertical: numberhorizontal: number: Spacing
public new Spacingtop: numberhorizontal: numberbottom: number: Spacing
public new Spacingtop: numberright: numberbottom: numberleft: number: Spacing

Properties

bottom

public bottom: number = 0

left

public left: number = 0

public right: number = 0

top

public top: number = 0

symbol

static readonly public symbol: typeof symbol = ...

Accessors

x

public get x(): number

y

public get y(): number

Methods

addScalar

public addScalarvalue: number: Spacing

Parameters


lerp

public lerpto: Spacingvalue: number: Spacing

Parameters


scale

public scalevalue: number: Spacing

Parameters


serialize

public serialize(): SerializedSpacing

toString

public toString(): string

toSymbol

public toSymbol(): symbol

toUniform

public toUniformgl: WebGL2RenderingContextlocation: WebGLUniformLocation: void

Parameters

  • gl: WebGL2RenderingContext
  • location: WebGLUniformLocation

createSignal

Parameters


lerp

static public lerpfrom: Spacingto: Spacingvalue: number: Spacing

Parameters