Skip to content

Commit

Permalink
using CONTAINER_THREEJS_ID
Browse files Browse the repository at this point in the history
  • Loading branch information
GiovannyJTT committed Aug 21, 2023
1 parent b432216 commit b29e8cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// get or create canvas container for threejs
import Common from '../libgptjs/scene-dragon/Common';

const _id_c = Common.CANVAS_CONTAINER_NAME_FOR_THREEJS;
const _id_c = Common.CONTAINER_THREEJS_ID;
let _c = document.getElementById(_id_c);
if (_c == null) {
_c = document.createElement("div");
Expand Down Expand Up @@ -40,7 +40,7 @@ import GPT_App from '../libgptjs/core/GPT_App'

// declared as "const" because: block-scoped, cannot be updated but its properties yes, cannot be redeclared
const sce = new SceneDragon();
const ren = new GPT_Renderer(Common.CANVAS_CONTAINER_WIDTH, Common.CANVAS_CONTAINER_HEIGHT, sce);
const ren = new GPT_Renderer(Common.CONTAINER_THREEJS_WIDTH, Common.CONTAINER_THREEJS_HEIGHT, sce);
const app = new GPT_App(ren);

app.init(_id_c);
Expand Down

0 comments on commit b29e8cd

Please sign in to comment.