Skip to content

Commit 282b906

Browse files
Improve element documentation
1 parent efc5668 commit 282b906

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

docs/types/element.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
It's a 3d element.
2+
It may be a [primitive](/mathics-threejs-backend/primitives) or a light.
23
All elements must have a `type` property with its type.
34

45
## Examples

src/lights.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { scaleCoordinate } from './coordinateUtils.js';
1414
// The 1st parameter is the light object (an element of
1515
// the lighting array).
1616

17-
// The 2nd parameter is the uniforms buffer, read the comment from
17+
// The 2nd parameter is the uniforms buffer, read the comments from
1818
// src/uniforms.js for more information.
1919

2020
// The 3rd parameter is the extent, it is used in e.g. scaleCoordinate.

src/primitives/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// The 1st parameter is the primitive object (an element of
1111
// the elements array).
1212

13-
// The 2nd parameter is the uniforms buffer, read the comment from
13+
// The 2nd parameter is the uniforms buffer, read the comments from
1414
// src/uniforms.js for more information.
1515

1616
// The 3rd parameter is the extent, it is used in scaleCoordinate,

0 commit comments

Comments
 (0)