diff --git a/packages/bcf/package.json b/packages/bcf/package.json index 36939a83e..97d4d4753 100644 --- a/packages/bcf/package.json +++ b/packages/bcf/package.json @@ -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", @@ -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" } diff --git a/packages/bcf/src/BCFSnapshot.ts b/packages/bcf/src/BCFSnapshot.ts index db476747a..b482e6e5c 100644 --- a/packages/bcf/src/BCFSnapshot.ts +++ b/packages/bcf/src/BCFSnapshot.ts @@ -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 -} \ No newline at end of file +} diff --git a/packages/bcf/src/BCFViewSetupHints.ts b/packages/bcf/src/BCFViewSetupHints.ts index 3575da71c..ecbce08b4 100644 --- a/packages/bcf/src/BCFViewSetupHints.ts +++ b/packages/bcf/src/BCFViewSetupHints.ts @@ -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; -} \ No newline at end of file +} diff --git a/packages/boundaries/src/index.ts b/packages/boundaries/src/index.ts index 70afbe263..da6fa534f 100755 --- a/packages/boundaries/src/index.ts +++ b/packages/boundaries/src/index.ts @@ -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"; diff --git a/packages/scene/src/SceneTile.ts b/packages/scene/src/SceneTile.ts index f5cbc51bc..ce9e2615f 100644 --- a/packages/scene/src/SceneTile.ts +++ b/packages/scene/src/SceneTile.ts @@ -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}. @@ -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 = {}; } }