Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
xeolabs committed Jul 28, 2024
1 parent da6140f commit 780d8fd
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 17 deletions.
5 changes: 2 additions & 3 deletions packages/bcf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,8 @@
"keywords": [],
"dependencies": {
"@xeokit/config": "^0.1.0",
"@xeokit/testutils": "^0.1.0",

"@xeokit/core": "^0.1.0",
"@xeokit/scene": "^0.1.0",
"@xeokit/webglrenderer": "^0.1.0",
"@xeokit/matrix": "^0.1.0",
"@xeokit/data": "^0.1.0",
"@xeokit/constants": "^0.1.0",
Expand All @@ -44,6 +42,7 @@
"@xeokit/viewer": "^0.1.0"
},
"devDependencies": {
"@xeokit/testutils": "^0.1.0",
"jest-electron": "^0.1.12",
"@kayahr/jest-electron-runner": "^29.11.0"
}
Expand Down
8 changes: 4 additions & 4 deletions packages/bcf/src/BCFSnapshot.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/**
* TODO
* A bitmap snapshot of the viewpoint.
*/
export interface BCFSnapshot {

/**
* TODO
* Format of the snapshot.
*/
snapshot_type: "png" | "jpeg",

/**
* TODO
* Snapshot image data.
*/
snapshot_data: string
}
}
16 changes: 8 additions & 8 deletions packages/bcf/src/BCFViewSetupHints.ts
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
/**
* TODO
* Setup hints.
*/
export interface BCFViewSetupHints {

/**
* TODO
* Translucency of openings.
*/
openings_translucent: boolean;

/**
* TODO
* Translucency of space boundaries.
*/
space_boundaries_translucent: boolean;

/**
* TODO
* Visibility of openings.
*/
openings_visible: boolean;

/**
* TODO
* Visibility of space boundaries.
*/
space_boundaries_visible: boolean;

/**
* TODO
* Translucency of spaces.
*/
spaces_translucent: boolean;

/**
* TODO
* Visibility of spaces.
*/
spaces_visible: boolean;
}
}
3 changes: 1 addition & 2 deletions packages/boundaries/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@
*
* @module @xeokit/boundaries
*/
import type {FloatArrayParam, IntArrayParam, } from "@xeokit/math";
import {MAX_DOUBLE, MIN_DOUBLE, newFloatArray} from "@xeokit/math";
import {FloatArrayParam, IntArrayParam, MAX_DOUBLE, MIN_DOUBLE, newFloatArray} from "@xeokit/math";
import {createMat4, createVec2, createVec3, lenVec3, mulMat4, subVec3} from "@xeokit/matrix";
import {decompressPoint3WithMat4} from "@xeokit/compression";

Expand Down
20 changes: 20 additions & 0 deletions packages/scene/src/SceneTile.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import {Scene} from "./Scene";
import {FloatArrayParam} from "@xeokit/math";
import {SceneModel} from "./SceneModel";
import {SceneObject} from "./SceneObject";

/**
* A tile in a {@link @xeokit/scene!SceneModel}.
Expand All @@ -16,10 +18,28 @@ export class SceneTile {
public readonly origin: FloatArrayParam;
public numObjects: number;

/**
* The {@link @xeokit/scene!SceneModel | SceneModels} belonging to this SceneTile, each keyed to
* its {@link @xeokit/scene!SceneModel.id | SceneModel.id}.
*
* A SceneModel can belong to more than one SceneTile.
*/
public readonly models: { [key: string]: SceneModel };

/**
* The {@link @xeokit/scene!SceneObject | SceneObjects} in this TiSceneTilele,
* mapped to {@link @xeokit/scene!SceneObject.id | SceneObject.id}.
*
* A SceneObject can belong to more than one SceneTile.
*/
public readonly objects: { [key: string]: SceneObject };

constructor(scene: Scene, id: string, origin: FloatArrayParam) {
this.scene = scene;
this.id = id;
this.origin = origin;
this.numObjects = 0;
this.models = {};
this.objects = {};
}
}

0 comments on commit 780d8fd

Please sign in to comment.