Skip to content

Commit

Permalink
Merge pull request #537 from MetaCell/release/2.0.0
Browse files Browse the repository at this point in the history
Release 2.0.0
  • Loading branch information
enicolasgomez authored May 20, 2024
2 parents 2ff28c7 + 0d0d64f commit 89141e5
Show file tree
Hide file tree
Showing 24 changed files with 14,456 additions and 105,759 deletions.
2 changes: 0 additions & 2 deletions geppetto-showcase/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ export default class App extends Component {
type: 'dark',
primary: { main: orange[500] },
secondary: { main: blue[500] },
button: { main: '#fc6320' },
toolbarBackground: { main: 'rgb(0,0,0,0.5)' },
},
overrides: {
MuiListItemIcon: {
Expand Down
2 changes: 1 addition & 1 deletion geppetto-showcase/src/components/showcase/Code.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const styles = theme => ({
button: {
padding: theme.spacing(1),
top: theme.spacing(0),
color: theme.palette.button.main,
color: theme.palette.primary,
},
code: {
paddingTop: theme.spacing(0),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class SimpleInstancesExample extends Component {
baseZoom: 1,
cameraControls: {
instance: CameraControls,
props: { wireframeButtonEnabled: false },
props: { wireframeButtonEnabled: false, buttonStyles: { color: '#ff0000', } },
},
initialFlip: ['y', 'z'],
reset: false,
Expand Down Expand Up @@ -128,7 +128,7 @@ class SimpleInstancesExample extends Component {
const captureOptions = {
captureControls: {
instance: CaptureControls,
props: {}
props: { buttonStyles: { color: '#0000ff', } }
},
recorderOptions: {
mediaRecorderOptions: { mimeType: 'video/webm', },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,37 +30,48 @@ class ConnectivityShowcaseForce extends Component {
)[0].getId();
}

matrixHandler = () => {
console.warn('Mock call to SceneController')
console.trace()
}
matrixHandler = () => {
console.warn('Mock call to SceneController')
console.trace()
}

render () {
const data = Instances[0];
const layout = new Force();
const colors = ['#cb0000', '#003398'];
const names = ['pyramidals_48', 'baskets_12'];
const { classes } = this.props;
render () {
const data = Instances[0];
const layout = new Force();
const colors = ['#cb0000', '#003398'];
const themeColor = '#145365'
const names = ['pyramidals_48', 'baskets_12'];
const { classes } = this.props;

return (
<div className={classes.connectivity}>
<ConnectivityComponent
id="ConnectivityContainerForce"
data={data}
colors={colors}
names={names}
layout={layout}
modelFactory={ModelFactory}
resources={Resources}
matrixOnClickHandler={this.matrixHandler}
nodeType={null}
linkWeight={null}
linkType={this.linkType}
library={null}
/>
</div>
);
}
return (
<div className={classes.connectivity}>
<ConnectivityComponent
id="ConnectivityContainerForce"
data={data}
colors={colors}
names={names}
layout={layout}
modelFactory={ModelFactory}
resources={Resources}
matrixOnClickHandler={this.matrixHandler}
nodeType={null}
linkWeight={null}
linkType={this.linkType}
library={null}
toolbarOptions={{
menuButtonStyles: { color: themeColor, },
deckStyles: { color: themeColor },
innerDivStyles: { backgroundColor: 'rgb(0,0,0,0);' },
buttonStyles: {
padding: 8,
top: 0,
color: themeColor
}
}}
/>
</div>
);
}
}

export default withStyles(styles)(ConnectivityShowcaseForce);
Loading

0 comments on commit 89141e5

Please sign in to comment.