File tree Expand file tree Collapse file tree 7 files changed +53
-10
lines changed Expand file tree Collapse file tree 7 files changed +53
-10
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,14 @@ import {CameraContextWrapper} from '@materialsproject/mp-react-components';
2
2
import React from 'react' ;
3
3
import { Component } from 'react' ;
4
4
5
+
6
+ /**
7
+ *
8
+ * Use this component to synchronize the camera of multiple
9
+ * SimpleSceneComponent
10
+ *
11
+ *
12
+ */
5
13
export default class CameraContext extends Component {
6
14
render ( ) {
7
15
if ( ! ! this . props . children ) {
@@ -17,6 +25,9 @@ export default class CameraContext extends Component {
17
25
}
18
26
19
27
CameraContext . propTypes = {
28
+ /**
29
+ * The ID used to identify this component in Dash callbacks
30
+ */
20
31
id : PropTypes . string ,
21
32
children : PropTypes . any ,
22
33
} ;
Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ import {Component} from 'react';
3
3
import React from 'react' ;
4
4
import PropTypes from 'prop-types' ;
5
5
6
+
7
+ /**
8
+ *
9
+ * Material navigation bar
10
+ *
11
+ */
6
12
export default class MatSidebar extends Component {
7
13
render ( ) {
8
14
return (
Original file line number Diff line number Diff line change @@ -5,6 +5,13 @@ import React from 'react';
5
5
import { MatPrintViewContext } from './MatPrintViewContext.react' ;
6
6
7
7
const emptyArray = [ ] ;
8
+
9
+
10
+ /**
11
+ *
12
+ * Display a table of materials
13
+ *
14
+ */
8
15
export default class MatMaterialsTable extends Component {
9
16
10
17
render ( ) {
Original file line number Diff line number Diff line change @@ -5,6 +5,14 @@ import {Component} from 'react';
5
5
import React from 'react' ;
6
6
import PropTypes from 'prop-types' ;
7
7
8
+
9
+ /**
10
+ *
11
+ * Print view context pass a boolean prop that allows children component to know if
12
+ * they are in print-view. Those components can react in various ways ( hidding some elements, changing
13
+ * their layouts, and so on... )
14
+ *
15
+ */
8
16
export default class MatPrintViewContext extends Component {
9
17
render ( ) {
10
18
if ( ! ! this . props . children ) {
Original file line number Diff line number Diff line change @@ -3,6 +3,13 @@ import {MTGrid} from '@materialsproject/mp-react-components';
3
3
import PropTypes from 'prop-types' ;
4
4
import React from 'react' ;
5
5
6
+
7
+ /**
8
+ *
9
+ * Use this search grid component if you do not use a periodic table
10
+ *
11
+ *
12
+ */
6
13
export default class MatSearchGrid extends Component {
7
14
render ( ) {
8
15
return (
@@ -24,11 +31,4 @@ MatSearchGrid.propTypes = {
24
31
* to Dash, to make them available for callbacks.
25
32
*/
26
33
setProps : PropTypes . func ,
27
- /**
28
- * An array of object describing the behavior/content of each card
29
- *
30
- */
31
- /**
32
- * The ID used to identify this component in Dash callbacks.
33
- */
34
34
} ;
Original file line number Diff line number Diff line change @@ -4,8 +4,13 @@ import React from 'react';
4
4
import PropTypes from 'prop-types' ;
5
5
6
6
7
- // this a search funnel
8
-
7
+ /**
8
+ *
9
+ * This search grid is using the periodic context provider. This allows the grid
10
+ * to be notified of changes happening in the periodic table. Use it if you intend
11
+ * to use the periodic table
12
+ *
13
+ */
9
14
export default class Search extends Component {
10
15
render ( ) {
11
16
return (
Original file line number Diff line number Diff line change @@ -3,8 +3,14 @@ import {Component} from 'react';
3
3
import React from 'react' ;
4
4
import PropTypes from 'prop-types' ;
5
5
6
- // this is the whole search page, wrapped in a component
7
6
7
+
8
+ /**
9
+ *
10
+ * This is the whole search page, wrapped in a component
11
+ *
12
+ *
13
+ */
8
14
export default class SearchGrid extends Component {
9
15
render ( ) {
10
16
return (
You can’t perform that action at this time.
0 commit comments