@@ -36,6 +36,8 @@ export class TextureLineComponent extends React.Component<ITextureLineComponentP
channel: ChannelToDisplay.All,
face: 0
};
+
+ this.canvasRef = React.createRef();
}
shouldComponentUpdate(nextProps: ITextureLineComponentProps, nextState: { channel: ChannelToDisplay, face: number }): boolean {
@@ -37,7 +37,9 @@ export class AnimationGroupGridComponent extends React.Component<IAnimationGroup
this._onBeforeRenderObserver = this.props.scene.onBeforeRenderObservable.add(() => {
this.updateCurrentFrame(this.props.animationGroup);
- });
+ });
+ this.timelineRef = React.createRef();
disconnect(animationGroup: AnimationGroup) {
@@ -76,6 +76,8 @@ export class AnimationGridComponent extends React.Component<IAnimationGridCompon
});
playOrPause() {
@@ -53,6 +53,8 @@ export class TexturePropertyGridComponent extends React.Component<ITextureProper
this._adtInstrumentation = new AdvancedDynamicTextureInstrumentation(adt);
this._adtInstrumentation!.captureRenderTime = true;
this._adtInstrumentation!.captureLayoutTime = true;
+ this.textureLineRef = React.createRef();
componentWillUnmount() {
@@ -45,6 +45,10 @@ export class EmbedHostComponent extends React.Component<IEmbedHostComponentProps
minSize: [200, 200],
gutterSize: 4
+ this.splitRef = React.createRef();
+ this.topPartRef = React.createRef();
+ this.bottomPartRef = React.createRef();
renderContent() {
@@ -17,6 +17,7 @@ export class ExtensionsComponent extends React.Component<IExtensionsComponentPro
super(props);
this.state = { popupVisible: false };
+ this.extensionRef = React.createRef();
showPopup() {
@@ -71,6 +71,8 @@ export class SceneExplorerComponent extends React.Component<ISceneExplorerCompon
this.state = { filter: null, selectedEntity: null, scene: this.props.scene };
this.sceneMutationFunc = this.processMutation.bind(this);
+ this.sceneExplorerRef = React.createRef();
processMutation() {
@@ -24,6 +24,7 @@ export class PreviewMeshControlComponent extends React.Component<IPreviewMeshCon
constructor(props: IPreviewMeshControlComponent) {
this.colorInputRef = React.createRef();
+ this.filePickerRef = React.createRef();
changeMeshType(newOne: PreviewMeshType) {
@@ -11,6 +11,8 @@ export class FileButtonLineComponent extends React.Component<IFileButtonLineComp
constructor(props: IFileButtonLineComponentProps) {
+ this.uploadRef = React.createRef();
onChange(evt: any) {
displayAlpha: true,
shouldComponentUpdate(nextProps: ITextureLineComponentProps, nextState: { displayRed: boolean, displayGreen: boolean, displayBlue: boolean, displayAlpha: boolean, face: number }): boolean {