|
@@ -14,7 +14,7 @@ import { Scene } from "babylonjs/scene";
|
|
|
import { Color4 } from "babylonjs/Maths/math.color";
|
|
|
import { FreeCamera } from "babylonjs/Cameras/freeCamera";
|
|
|
|
|
|
-require("./graphCanvas.scss");
|
|
|
+require("./workbenchCanvas.scss");
|
|
|
|
|
|
export interface IWorkbenchComponentProps {
|
|
|
globalState: GlobalState
|
|
@@ -286,10 +286,10 @@ export class WorkbenchComponent extends React.Component<IWorkbenchComponentProps
|
|
|
}
|
|
|
|
|
|
componentDidMount() {
|
|
|
- this._hostCanvas = this.props.globalState.hostDocument.getElementById("graph-canvas") as HTMLDivElement;
|
|
|
- this._rootContainer = this.props.globalState.hostDocument.getElementById("graph-container") as HTMLDivElement;
|
|
|
- this._gridCanvas = this.props.globalState.hostDocument.getElementById("graph-canvas-container") as HTMLDivElement;
|
|
|
- this._svgCanvas = this.props.globalState.hostDocument.getElementById("graph-svg-container") as HTMLElement;
|
|
|
+ this._hostCanvas = this.props.globalState.hostDocument.getElementById("workbench-canvas") as HTMLDivElement;
|
|
|
+ this._rootContainer = this.props.globalState.hostDocument.getElementById("workbench-container") as HTMLDivElement;
|
|
|
+ this._gridCanvas = this.props.globalState.hostDocument.getElementById("workbench-canvas-container") as HTMLDivElement;
|
|
|
+ this._svgCanvas = this.props.globalState.hostDocument.getElementById("workbench-svg-container") as HTMLElement;
|
|
|
this._selectionContainer = this.props.globalState.hostDocument.getElementById("selection-container") as HTMLDivElement;
|
|
|
this._frameContainer = this.props.globalState.hostDocument.getElementById("frame-container") as HTMLDivElement;
|
|
|
|
|
@@ -481,7 +481,7 @@ export class WorkbenchComponent extends React.Component<IWorkbenchComponentProps
|
|
|
public createGUICanvas()
|
|
|
{
|
|
|
// Get the canvas element from the DOM.
|
|
|
- const canvas = document.getElementById("graph-canvas") as HTMLCanvasElement;
|
|
|
+ const canvas = document.getElementById("workbench-canvas") as HTMLCanvasElement;
|
|
|
|
|
|
// Associate a Babylon Engine to it.
|
|
|
const engine = new Engine(canvas);
|
|
@@ -520,18 +520,18 @@ export class WorkbenchComponent extends React.Component<IWorkbenchComponentProps
|
|
|
|
|
|
render() {
|
|
|
|
|
|
- return <canvas id="graph-canvas"
|
|
|
+ return <canvas id="workbench-canvas"
|
|
|
onWheel={evt => this.onWheel(evt)}
|
|
|
onPointerMove={evt => this.onMove(evt)}
|
|
|
onPointerDown={evt => this.onDown(evt)}
|
|
|
onPointerUp={evt => this.onUp(evt)}
|
|
|
>
|
|
|
- <div id="graph-container">
|
|
|
- <div id="graph-canvas-container">
|
|
|
+ <div id="workbench-container">
|
|
|
+ <div id="workbench-canvas-container">
|
|
|
</div>
|
|
|
<div id="frame-container">
|
|
|
</div>
|
|
|
- <svg id="graph-svg-container">
|
|
|
+ <svg id="workbench-svg-container">
|
|
|
</svg>
|
|
|
<div id="selection-container">
|
|
|
</div>
|