demo.jsx 597 Bytes
Newer Older
1
2
3
/* globals window */
import React, {Component} from 'react';

4
import PartBrowser from './index';
5

6
export default class DemoPartBrowser extends Component {
7
8
9
10
11
12
13
14
    constructor(props) {
        super(props);
        this.gmeClient = new window.GME.classes.Client(window.GME.gmeConfig);
    }

    render() {
        return (
            <div style={{width: '30%'}}>
15
                <PartBrowser
16
                    gmeClient={this.gmeClient}
Patrik Meijer's avatar
Patrik Meijer committed
17
18
19
                    activeNode="/1"
                    scale={1}
                    minimized={false}
20
21
22
23
24
                />
            </div>
        );
    }
}