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

4
import PartBrowser, {PartBrowserDragPreview} 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
                <PartBrowserDragPreview scale={1}/>
16
                <PartBrowser
17
                    gmeClient={this.gmeClient}
Patrik Meijer's avatar
Patrik Meijer committed
18
19
20
                    activeNode="/1"
                    scale={1}
                    minimized={false}
21
22
23
24
25
                />
            </div>
        );
    }
}