Type Interfaces
vuer.types#

Here are the basic types for events, html and three.js elements, and others.

vuer.types.IDType#

IDType is either a UUID or a string. Not in use.

alias of Union[UUID, str]

vuer.types.CoroutineFn#

A function that returns a coroutine. Not in use.

alias of Callable[[], Coroutine]

vuer.types.EventHandler#

Defines a function that handles a client event. Second argument is the VuerProxy instance bound to a specific client connected through a websocket session.

alias of Callable[[ClientEvent, VuerProxy], None]

vuer.types.SocketHandler#

Defines a function that spawns a new entity. Argument is the VuerProxy instance.

alias of Callable[[VuerProxy], Coroutine]

class vuer.types.Vector3[source]#

Bases: tuple

Vector3(x, y, z)

x: int#

Alias for field number 0

y: int#

Alias for field number 1

z: int#

Alias for field number 2

static __new__(_cls, x: int, y: int, z: int)#

Create new instance of Vector3(x, y, z)

Parameters:
  • x (int) –

  • y (int) –

  • z (int) –

class vuer.types.Euler[source]#

Bases: tuple

Euler(x, y, z, order)

x: int#

Alias for field number 0

y: int#

Alias for field number 1

z: int#

Alias for field number 2

order: str#

Alias for field number 3

static __new__(_cls, x: int, y: int, z: int, order: str = 'XYZ')#

Create new instance of Euler(x, y, z, order)

Parameters:
  • x (int) –

  • y (int) –

  • z (int) –

  • order (str) –

class vuer.types.EulerDeg[source]#

Bases: Euler

unit: str = 'deg'#
to_rad() Euler[source]#
Return type:

Euler

class vuer.types.Body[source]#

Bases: tuple

Body(position, rotation, scale)

static __new__(_cls, position: Vector3, rotation: Euler, scale: float)#

Create new instance of Body(position, rotation, scale)

Parameters:
  • position (Vector3) –

  • rotation (Euler) –

  • scale (float) –

position: Vector3#

Alias for field number 0

rotation: Euler#

Alias for field number 1

scale: float#

Alias for field number 2