Skip to content

Commit

Permalink
feat: restructure repo
Browse files Browse the repository at this point in the history
  • Loading branch information
agviegas committed Apr 20, 2024
1 parent 74f86ea commit bd3b964
Show file tree
Hide file tree
Showing 19 changed files with 18 additions and 350 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const container = document.getElementById('container');
const components = new OBC.Components();

components.scene = new OBC.SimpleScene(components);
components._renderer = new OBC.SimpleRenderer(components, container);
components._renderer = new OBC.Index(components, container);
components.camera = new OBC.SimpleCamera(components);
components.raycaster = new OBC.SimpleRaycaster(components);

Expand Down
1 change: 0 additions & 1 deletion packages/components/src/core/Cameras/index.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/components/src/core/Cameras/src/index.ts

This file was deleted.

3 changes: 2 additions & 1 deletion packages/components/src/core/Components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import {
disposeBoundsTree,
} from "three-mesh-bvh";
import { Component, Disposable, Event } from "../Types";
import { Disposer, UUID } from "../Utils";
import { Disposer } from "../Disposer";
import { UUID } from "../UUID";

/**
* The entry point of the Components library.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as THREE from "three";
import { Components } from "../../Components";
import { BVHGeometry, Component } from "../../Types";
import { Components } from "../Components";
import { BVHGeometry, Component } from "../Types";

/**
* A tool to safely remove meshes and geometries from memory to
Expand Down
1 change: 0 additions & 1 deletion packages/components/src/core/Renderers/index.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/components/src/core/Renderers/src/index.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/components/src/core/Scenes/index.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/components/src/core/Scenes/src/index.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
import * as THREE from "three";
import CameraControls from "camera-controls";
import {
Component,
Disposable,
Updateable,
Event,
BaseCamera,
} from "../../Types";
import { Components } from "../../Components";
import { Component, Disposable, Updateable, Event, BaseCamera } from "../Types";
import { Components } from "../Components";

/**
* A basic camera that uses
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import {
Resizeable,
BaseRenderer,
Event,
} from "../../Types";
import { Components } from "../../Components";
} from "../Types";
import { Components } from "../Components";

/**
* A basic renderer capable of rendering
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as THREE from "three";
import { BaseScene, Configurable, Event } from "../../Types";
import { Components } from "../../Components";
import { BaseScene, Configurable, Event } from "../Types";
import { Components } from "../Components";

export interface SimpleSceneConfig {
directionalLight: {
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/core/Types/src/base-scene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as THREE from "three";
import { Disposable } from "./interfaces";
import { Event } from "./event";
import { Components } from "../../Components";
import { Disposer } from "../../Utils";
import { Disposer } from "../../Disposer";
import { BaseWorldItem } from "./base-world-item";

export abstract class BaseScene extends BaseWorldItem implements Disposable {
Expand Down
File renamed without changes.
2 changes: 0 additions & 2 deletions packages/components/src/core/Utils/index.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/components/src/core/Worlds/src/simple-world.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { UUID } from "../../Utils";
import { UUID } from "../../UUID";
import {
Event,
Base,
Expand Down
9 changes: 5 additions & 4 deletions packages/components/src/core/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
export * from "./Cameras";
export * from "./SimpleCamera";
export * from "./Components";
export * from "./Utils";
export * from "./Renderers";
export * from "./Scenes";
export * from "./Disposer";
export * from "./UUID";
export * from "./SimpleRenderer";
export * from "./SimpleScene";
export * from "./Types";
export * from "./Worlds";
144 changes: 0 additions & 144 deletions temp/core/SimpleCamera/index.ts

This file was deleted.

Loading

0 comments on commit bd3b964

Please sign in to comment.