UNPKG

infamous

Version:

A CSS3D/WebGL UI library.

44 lines (40 loc) 1.7 kB
import DeclarativeBase from './DeclarativeBase' import HTMLNode from './HTMLNode' import HTMLPushPaneLayout from './HTMLPushPaneLayout' import HTMLScene from './HTMLScene' import PushPaneLayout from '../components/PushPaneLayout' import WebComponent from './WebComponent' import Scene from '../core/Scene' import Node from '../core/Node' import Mesh from '../core/Mesh' import Box from '../core/Box' import Sphere from '../core/Sphere' import Plane from '../core/Plane' import PointLight from '../core/PointLight' import DOMNode from '../core/DOMNode' import DOMPlane from '../core/DOMPlane' import AmbientLight from '../core/AmbientLight' import Camera from '../core/Camera' function useDefaultNames() { // TODO replace with a loop if (!customElements.get(Scene.defaultElementName)) Scene.define() if (!customElements.get(Node.defaultElementName)) Node.define() if (!customElements.get(Mesh.defaultElementName)) Mesh.define() if (!customElements.get(Box.defaultElementName)) Box.define() if (!customElements.get(Sphere.defaultElementName)) Sphere.define() if (!customElements.get(Plane.defaultElementName)) Plane.define() if (!customElements.get(PointLight.defaultElementName)) PointLight.define() if (!customElements.get(DOMNode.defaultElementName)) DOMNode.define() if (!customElements.get(DOMPlane.defaultElementName)) DOMPlane.define() if (!customElements.get(AmbientLight.defaultElementName)) AmbientLight.define() if (!customElements.get(Camera.defaultElementName)) Camera.define() //PushPaneLayout.define() } export { DeclarativeBase, HTMLNode, HTMLPushPaneLayout, HTMLScene, WebComponent, useDefaultNames, }