import Mesh from './Mesh'

export default
class Box extends Mesh {
    static get defaultElementName() { return 'i-box' }
    static get _Class() { return Box }

    static get defaultBehaviors() {
        return {
            'box-geometry': initialBehaviors => {
                return !initialBehaviors.some( b => b.endsWith( '-geometry' ) )
            },
            'phong-material': initialBehaviors => {
                return !initialBehaviors.some( b => b.endsWith( '-material' ) )
            },
        }
    }
}

@@ -1,8 +1,76 @@
+import Class from 'lowclass'%0Aimport %7Bnative%7D from 'lowclass/native'%0A
 import M
@@ -107,30 +107,43 @@
 ult%0A
-c
+C
 lass
- Box 
+('Box').
 extends
- 
+( native(
 Mesh
+),
  %7B%0A 
@@ -143,36 +143,43 @@
 h), %7B%0A    static
- get
+: %7B%0A       
  defaultElementN
@@ -185,27 +185,17 @@
 Name
-() %7B return
+:
  'i-box'
  %7D%0A 
@@ -194,101 +194,36 @@
 box'
- %7D
+,%0A
 %0A    
-static get _Class() %7B return Box %7D%0A%0A    static get defaultBehaviors() %7B%0A        return
+    defaultBehaviors:
  %7B%0A 
@@ -526,13 +526,16 @@
    %7D
+,
 %0A    %7D
+,
 %0A%7D
+)
 %0A

convert Box to lowclass