Skip to content

Commit

Permalink
SceneModel Typescript definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
xeolabs committed Nov 22, 2023
1 parent 1eddfd3 commit 81bd841
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
7 changes: 7 additions & 0 deletions types/viewer/scene/mesh/Mesh.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -783,4 +783,11 @@ export declare class Mesh extends Component implements Omit<Entity, 'parent'> {
* @returns {number}
*/
stateSortCompare(mesh1: Mesh, mesh2: Mesh): number;

/**
* Gets the World, View and Canvas-space positions of each vertex in a callback.
*
* @param callback
*/
getEachVertex(callback: any): void;
}
9 changes: 8 additions & 1 deletion types/viewer/scene/models/index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
export * from "./VBOSceneModel/";
export * from "./VBOSceneModel/";
export * from "./PerformanceModel/";
export * from "./SceneModel";
export * from "./SceneModelMesh";
export * from "./SceneModelTransform";
export * from "./SceneModelTexture";
export * from "./SceneModelTextureSet";
export * from "./SceneModelEntity";

0 comments on commit 81bd841

Please sign in to comment.