@@ -167,7 +167,7 @@ All mathbox arguments are optional. The following options are available for conf
167
167
``` javascript
168
168
{
169
169
// Whether to allow mouse control of the camera.
170
- cameraControls: true ,
170
+ cameraControls: true ,
171
171
// Override the class to use for mouse controls.
172
172
controlClass: ThreeBox .OrbitControls ,
173
173
// Whether to show the mouse cursor.
@@ -176,12 +176,12 @@ All mathbox arguments are optional. The following options are available for conf
176
176
// Whether to track resizing of the containing element.
177
177
elementResize: true ,
178
178
// Enable fullscreen mode with 'f' (browser support is buggy)
179
- fullscreen: true ,
179
+ fullscreen: true ,
180
180
// Render at scaled resolution, e.g. scale 2 is half the width/height.
181
181
// Fractional values allowed.
182
- scale: 1 ,
182
+ scale: 1 ,
183
183
// Enable screenshot taking with 'p'
184
- screenshot: true ,
184
+ screenshot: true ,
185
185
// Show FPS stats in the corner
186
186
stats: true ,
187
187
}
@@ -264,7 +264,7 @@ Each mathbox scene has an associated viewport. This sets up a specific mathemati
264
264
265
265
The following viewport types are available:
266
266
267
- __ Cartesian__
267
+ __ Cartesian__
268
268
Regular linear XYZ.
269
269
270
270
``` javascript
@@ -277,7 +277,7 @@ Regular linear XYZ.
277
277
})
278
278
```
279
279
280
- __ Projective__
280
+ __ Projective__
281
281
Applies a 4x4 homogeneous/projective transform.
282
282
283
283
``` javascript
@@ -294,7 +294,7 @@ Applies a 4x4 homogeneous/projective transform.
294
294
})
295
295
```
296
296
297
- __ Polar__
297
+ __ Polar__
298
298
Polar coordinate grid in radians. X is angle, Y is radius, Z is ordinary depth.
299
299
Also useful for visualizing complex operations in polar representation.
300
300
@@ -312,7 +312,7 @@ Also useful for visualizing complex operations in polar representation.
312
312
})
313
313
```
314
314
315
- __ Sphere__
315
+ __ Sphere__
316
316
Spherical coordinate grid in radians. X is longitude, Y is latitude, Z is radius.
317
317
318
318
``` javascript
@@ -456,6 +456,22 @@ Vector
456
456
})
457
457
```
458
458
459
+ Tests
460
+ -----
461
+
462
+ 1 . You can run them using the web-server:
463
+
464
+ ` npm start `
465
+
466
+ then go to ` localhost:8000/test/test.html `
467
+
468
+ 2 . or if you're feeling lazy :
469
+
470
+ ` npm test `
471
+
472
+ (You will need to have phantomjs installed, please run ` npm install ` first)
473
+
474
+
459
475
Contributions
460
476
-------------
461
477
0 commit comments