solar-system
Version:
Solar System with Threejs
36 lines (32 loc) • 781 B
HTML
<!--
solar-system.html
@Description solar-system polymer component.
@link https://github.com/kdaimiel/solar-system#readme
@author Enrique Daimiel Ruiz <k.daimiel@gmail.com>
@license MIT License, http://www.opensource.org/licenses/MIT
-->
<dom-module id="solar-system">
<template>
</template>
<style>
</style>
<script>
require(['solar-system'], function three(SolarSystem) {
'use strict';
// element registration
Polymer({
is: 'solar-system',
properties: {
width: Number,
height: Number,
bodiesSrc: String,
cameraSrc: String,
lightsSrc: String
},
ready: function() {
SolarSystem.init(this);
}
});
});
</script>
</dom-module>