Skip to content

Commit

Permalink
fix(Id): Add missing id for add-on rep
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Jan 27, 2021
1 parent e2c57e8 commit dd90c0c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/View.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,8 @@ View.propTypes = {
triggerRender: PropTypes.number,

/**
* Property use to trigger a resetCamera when changing.
*/
* Property use to trigger a resetCamera when changing.
*/
triggerResetCamera: PropTypes.number,

/**
Expand Down
5 changes: 5 additions & 0 deletions src/representations/PointCloudRepresentation.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export default function PointCloudRepresentation(props) {
console.log('nbComponents', nbComponents);
return (
<GeometryRepresentation
id={props.id}
colorMapPreset={props.colorMapPreset}
colorDataRange={props.colorDataRange}
property={props.property}
Expand Down Expand Up @@ -62,6 +63,10 @@ PointCloudRepresentation.defaultProps = {
};

PointCloudRepresentation.propTypes = {
/**
* The ID used to identify this component.
*/
id: PropTypes.string,
/**
* Points coordinates
*/
Expand Down
5 changes: 5 additions & 0 deletions src/representations/VolumeDataRepresentation.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export default function VolumneDataRepresentation(props) {
console.log('nbComponents', nbComponents);
return (
<VolumeRepresentation
id={props.id}
colorMapPreset={props.colorMapPreset}
colorDataRange={props.colorDataRange}
property={props.property}
Expand Down Expand Up @@ -79,6 +80,10 @@ VolumneDataRepresentation.defaultProps = {
};

VolumneDataRepresentation.propTypes = {
/**
* The ID used to identify this component.
*/
id: PropTypes.string,
/**
* Number of points along x, y, z
*/
Expand Down

0 comments on commit dd90c0c

Please sign in to comment.