Home Reference Source
import Attributes from 'potassium-es/src/style/Attributes.js'
public class | source

Attributes

A class that offers a unified API for attributes on an Object3D. Some attributes (listed in Attributes.PassThroughAttributes) are stored as class attributes on Object3D The other attributes are stored in Object3D.userData

Constructor Summary

Public Constructor
public

Method Summary

Public Methods
public

get(attribute: string, defaultValue: string): *

public

has(attribute: *): *

public

set(attribute: *, value: *)

Public Constructors

public constructor() source

Public Methods

public get(attribute: string, defaultValue: string): * source

Params:

NameTypeAttributeDescription
attribute string

texting is case insensitive!

defaultValue string

Return:

*

public has(attribute: *): * source

Params:

NameTypeAttributeDescription
attribute *

Return:

*

public set(attribute: *, value: *) source

Params:

NameTypeAttributeDescription
attribute *
value *