Home Reference Source
public class | source

Evaluators

You can directly use an instance of this class. Singleton

Extends:

Set → Evaluators

Evaluators match and parse declaration values like rgb(124, 23, 99) or 1cm

Method Summary

Public Methods
public
public

parse(value: string, node: THREE.Object3D): Array<> | undefined

Public Methods

public getEvaluator(value: string): Evaluator source

Params:

NameTypeAttributeDescription
value string

the value element of a KSS {Declaration}

Return:

Evaluator

public parse(value: string, node: THREE.Object3D): Array<> | undefined source

Params:

NameTypeAttributeDescription
value string
node THREE.Object3D

Return:

Array<> | undefined

the evaluated value of the specific value type, like [r, g, b] for 'color' or [x, y, z] for 'centroid'