Modified file structure.
Modified the file structure to have the `index.html` at the root of the repository. Needed for Github Pages.
0
public/main/main.js → dist/main/main.js
vendored
@@ -6,9 +6,9 @@ export class FlybySequenceGenerator {
|
|||||||
this.system = system;
|
this.system = system;
|
||||||
this.config = config;
|
this.config = config;
|
||||||
this.totalFeasible = 0;
|
this.totalFeasible = 0;
|
||||||
this._workerPool = new WorkerPool("dedicated-workers/sequence-evaluator.js", this.config);
|
this._workerPool = new WorkerPool("dist/dedicated-workers/sequence-evaluator.js", this.config);
|
||||||
this._workerPool.initialize({ system: this.system.data, config: this.config });
|
this._workerPool.initialize({ system: this.system.data, config: this.config });
|
||||||
this._sequenceWorker = new ComputeWorker("dedicated-workers/sequence-generator.js");
|
this._sequenceWorker = new ComputeWorker("dist/dedicated-workers/sequence-generator.js");
|
||||||
this._sequenceWorker.initialize(this.config);
|
this._sequenceWorker.initialize(this.config);
|
||||||
}
|
}
|
||||||
cancel() {
|
cancel() {
|
||||||
@@ -14,7 +14,7 @@ export class TrajectorySolver {
|
|||||||
this._chunkIndices = [];
|
this._chunkIndices = [];
|
||||||
this.bestTrajectorySteps = [];
|
this.bestTrajectorySteps = [];
|
||||||
this.bestDeltaV = 0;
|
this.bestDeltaV = 0;
|
||||||
this._workerPool = new WorkerPool("dedicated-workers/trajectory-optimizer.js", this.config);
|
this._workerPool = new WorkerPool("dist/dedicated-workers/trajectory-optimizer.js", this.config);
|
||||||
this._workerPool.initialize({ system: this.system.data, config: this.config });
|
this._workerPool.initialize({ system: this.system.data, config: this.config });
|
||||||
}
|
}
|
||||||
_initPlot() {
|
_initPlot() {
|
||||||
|
Before Width: | Height: | Size: 97 B After Width: | Height: | Size: 97 B |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
@@ -407,6 +407,6 @@
|
|||||||
<script src="includes/LineMaterial.js"></script>
|
<script src="includes/LineMaterial.js"></script>
|
||||||
<script src="includes/Line2.js"></script>
|
<script src="includes/Line2.js"></script>
|
||||||
<script src="includes/OrbitControls.js"></script>
|
<script src="includes/OrbitControls.js"></script>
|
||||||
<script src="main/main.js" type="module"></script>
|
<script src="dist/main/main.js" type="module"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
@@ -11,10 +11,10 @@ export class FlybySequenceGenerator {
|
|||||||
public totalFeasible: number = 0;
|
public totalFeasible: number = 0;
|
||||||
|
|
||||||
constructor(public readonly system: SolarSystem, public readonly config: Config) {
|
constructor(public readonly system: SolarSystem, public readonly config: Config) {
|
||||||
this._workerPool = new WorkerPool("dedicated-workers/sequence-evaluator.js", this.config);
|
this._workerPool = new WorkerPool("dist/dedicated-workers/sequence-evaluator.js", this.config);
|
||||||
this._workerPool.initialize({system: this.system.data, config: this.config});
|
this._workerPool.initialize({system: this.system.data, config: this.config});
|
||||||
|
|
||||||
this._sequenceWorker = new ComputeWorker("dedicated-workers/sequence-generator.js");
|
this._sequenceWorker = new ComputeWorker("dist/dedicated-workers/sequence-generator.js");
|
||||||
this._sequenceWorker.initialize(this.config);
|
this._sequenceWorker.initialize(this.config);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ export class TrajectorySolver {
|
|||||||
public bestDeltaV: number = 0;
|
public bestDeltaV: number = 0;
|
||||||
|
|
||||||
constructor(public readonly system: SolarSystem, public readonly config: Config, public readonly plot: EvolutionPlot) {
|
constructor(public readonly system: SolarSystem, public readonly config: Config, public readonly plot: EvolutionPlot) {
|
||||||
this._workerPool = new WorkerPool("dedicated-workers/trajectory-optimizer.js", this.config);
|
this._workerPool = new WorkerPool("dist/dedicated-workers/trajectory-optimizer.js", this.config);
|
||||||
this._workerPool.initialize({system: this.system.data, config: this.config});
|
this._workerPool.initialize({system: this.system.data, config: this.config});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
"target": "ES2019",
|
"target": "ES2019",
|
||||||
"module": "ES6",
|
"module": "ES6",
|
||||||
"lib": ["ES2019", "DOM", "DOM.Iterable", "webworker"],
|
"lib": ["ES2019", "DOM", "DOM.Iterable", "webworker"],
|
||||||
"outDir": "../public",
|
"outDir": "../dist",
|
||||||
"rootDir": ".",
|
"rootDir": ".",
|
||||||
"removeComments": true,
|
"removeComments": true,
|
||||||
"strict": true,
|
"strict": true,
|
||||||
|
|||||||