UNPKG

infamous

Version:

A CSS3D/WebGL UI library.

21 lines (16 loc) 513 B
import Class from 'lowclass' import Mesh from './Mesh' export default Class('Sphere').extends( Mesh, () => ({ static: { defaultElementName: 'i-sphere', defaultBehaviors: { 'sphere-geometry': initialBehaviors => { return !initialBehaviors.some( b => b.endsWith( '-geometry' ) ) }, 'phong-material': initialBehaviors => { return !initialBehaviors.some( b => b.endsWith( '-material' ) ) }, }, }, }))