jsketcher/web/app/cad/dom/components/View3d.jsx

51 lines
No EOL
1.6 KiB
JavaScript

import React from 'react';
import PlugableControlBar from './PlugableControlBar';
import ls from './View3d.less';
import Abs from 'ui/components/Abs';
import {AuxiliaryToolbar, HeadsUpToolbar, SketcherToolbarConstraints, SketcherToolbarGeneral} from './PlugableToolbar';
import UISystem from './UISystem';
import WizardManager from '../../craft/wizard/components/WizardManager';
import FloatView from './FloatView';
import HistoryTimeline from '../../craft/ui/HistoryTimeline';
import SelectedModificationInfo from '../../craft/ui/SelectedModificationInfo';
import BottomStack from './BottomStack';
import SketcherToolbars from './SketcherToolbars';
import CameraControl from './CameraControl';
import HeadsUpHelper from './HeadsUpHelper';
export default class View3d extends React.Component {
shouldComponentUpdate() {
//we don't want the dom to be updated under any circumstances or we loose the WEB-GL container
return false;
}
render() {
return <UISystem className={ls.root}>
<FloatView />
<div className={ls.mainArea} >
<div id='viewer-container' />
<SketcherToolbars />
<Abs right={5} top={5}>
<HeadsUpToolbar/>
<Abs right={0} top='calc(100% + 15px)'>
<AuxiliaryToolbar small vertical/>
</Abs>
</Abs>
<HeadsUpHelper/>
<BottomStack>
<CameraControl />
<HistoryTimeline />
<PlugableControlBar/>
</BottomStack>
<WizardManager/>
</div>
<SelectedModificationInfo />
</UISystem>;
}
componentWillUnmount() {
throw 'big no-no';
}
}