solaris-js
Version:
A reusable component for interactive visualization of the Solar System
15 lines (11 loc) • 364 B
text/coffeescript
import publicize from './helpers/publicizer'
class $Scale
constructor: (maxLength) ->
= 1000 / maxLength
= (maxLength)
convert: (v) ->
if v instanceof Array then v.map (item) => item *
else v *
export default class Scale extends publicize $Scale,
methods: ['convert']
properties: ['sceneSize']