@adhiban/three-mesh-ui
Version:
a library on top of three.js to help in creating 3D user interfaces, with minor changes ;)
46 lines (39 loc) • 1.27 kB
JavaScript
/* global global */
import Block from './components/Block.js';
import Text from './components/Text.js';
import InlineBlock from './components/InlineBlock.js';
import Keyboard from './components/Keyboard.js';
import UpdateManager from './components/core/UpdateManager.js';
import FontLibrary from './components/core/FontLibrary.js';
import * as TextAlign from './utils/inline-layout/TextAlign';
import * as Whitespace from './utils/inline-layout/Whitespace';
import * as JustifyContent from './utils/block-layout/JustifyContent';
import * as AlignItems from './utils/block-layout/AlignItems';
import * as ContentDirection from './utils/block-layout/ContentDirection';
const update = () => UpdateManager.update();
const ThreeMeshUI = {
Block,
Text,
InlineBlock,
Keyboard,
FontLibrary,
update,
TextAlign,
Whitespace,
JustifyContent,
AlignItems,
ContentDirection
};
if ( typeof global !== 'undefined' ) global.ThreeMeshUI = ThreeMeshUI;
export { Block };
export { Text };
export { InlineBlock };
export { Keyboard };
export { FontLibrary };
export { update };
export { TextAlign };
export { Whitespace };
export { JustifyContent};
export { AlignItems };
export { ContentDirection };
export default ThreeMeshUI;