Skip to content

Commit a71a571

Browse files
committed
a functioning non-reponsive tiling implementation
1 parent 22a6971 commit a71a571

File tree

1 file changed

+4
-1
lines changed
  • src/components/crystal-toolkit/scene

1 file changed

+4
-1
lines changed

src/components/crystal-toolkit/scene/Scene.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,8 @@ export default class Scene {
658658
});
659659
};
660660

661+
const updateMaxTiling = () => {};
662+
661663
// TODO: does it make sense to split this code into two cases?
662664
// set up the threeObjects and containers
663665
let arrayOfTileRoots: number[][][][];
@@ -671,11 +673,12 @@ export default class Scene {
671673
arrayOfTileRoots = _getEmptyTilesArray(maxTilingArray);
672674
traverseTiles(sceneJson, rootObject, tiles, arrayOfTileRoots);
673675
updateTiles(arrayOfTileRoots, this.tiling);
676+
console.log(arrayOfTileRoots);
674677
} else {
675678
rootObject.name = sceneJson.name!;
676679
sceneJson.visible && (rootObject.visible = sceneJson.visible);
677680
traverseScene(sceneJson, rootObject, emptyLattice, '');
678-
}
681+
} // TODO: take this out, hope things dont break, fix if they do
679682

680683
// for demonstration purposes TODO: remove next two lines
681684
// arrayOfTileRoots[1][1][1][0].visible = false;

0 commit comments

Comments
 (0)