import * as React from "react"; import { Observable } from "babylonjs/Misc/observable"; import { Light } from "babylonjs/Lights/light"; import { PropertyChangedEvent } from "../../../../propertyChangedEvent"; import { LineContainerComponent } from "../../../lineContainerComponent"; import { FloatLineComponent } from "../../../lines/floatLineComponent"; import { TextLineComponent } from "../../../lines/textLineComponent"; import { LockObject } from "../lockObject"; import { GlobalState } from '../../../../globalState'; import { CustomPropertyGridComponent } from '../customPropertyGridComponent'; import { ButtonLineComponent } from '../../../../../sharedUiComponents/lines/buttonLineComponent'; import { TextInputLineComponent } from '../../../lines/textInputLineComponent'; import { AnimationGridComponent } from '../animations/animationPropertyGridComponent'; interface ICommonLightPropertyGridComponentProps { globalState: GlobalState, light: Light, lockObject: LockObject, onPropertyChangedObservable?: Observable } export class CommonLightPropertyGridComponent extends React.Component { constructor(props: ICommonLightPropertyGridComponentProps) { super(props); } render() { const light = this.props.light; return (
{ light.dispose(); this.props.globalState.onSelectionChangedObservable.notifyObservers(null); }} />
); } }