settingsTabComponent.tsx 949 B

123456789101112131415161718192021222324
  1. import * as React from "react";
  2. import { PaneComponent, IPaneComponentProps } from "../paneComponent";
  3. import { CheckBoxLineComponent } from '../lines/checkBoxLineComponent';
  4. import { LineContainerComponent } from '../lineContainerComponent';
  5. export class SettingsTabComponent extends PaneComponent {
  6. constructor(props: IPaneComponentProps) {
  7. super(props);
  8. }
  9. render() {
  10. const state = this.props.globalState;
  11. return (
  12. <div className="pane">
  13. <LineContainerComponent globalState={this.props.globalState} title="UI">
  14. <CheckBoxLineComponent label="Only display Euler values" target={state} propertyName="onlyUseEulers" />
  15. <CheckBoxLineComponent label="Ignore backfaces when picking" target={state} propertyName="ignoreBackfacesForPicking" />
  16. </LineContainerComponent>
  17. </div>
  18. );
  19. }
  20. }