Skip to content

Documentation / @ripl/vue-3d / Ripl3DElementProps

Type Alias: Ripl3DElementProps<TState> ​

Ripl3DElementProps<TState> = Partial<TState> & RiplElementOptionProps & RiplShapeProps & RiplElementListeners & object

Defined in: vue-3d/src/types.ts:65

The full prop surface of a 3D shape component: the shape's own state, the shared construction options and paint flags, and its event listeners.

Type Declaration ​

material? ​

optional material?: Material

How the surface responds to light. When omitted, the shape shades from its fill alone.

scale? ​

optional scale?: number

A uniform scale applied to all three axes. Overridden by any per-axis scale also given.

Type Parameters ​

Type ParameterDescription
TState extends Ripl3DBaseStateThe shape's state interface, e.g. CubeState.