Typescript exports

There are a couple of symbols that are part of the public api that are not exported, making it difficult to work with in typescript.

  • FaceType - this is returned by Face::type(), which is in turn returned by getFaceProperty
  • EdgeType - same idea as above
  • The individual types of Face & Edge unions - e.g. Face is exported, but none of the union members, e.g. PlaneElement

workaround is to hand type an interface and cast it, which isn’t idea if the hoops interface changes.

Hello @zak,

I can tell you that we have received requests to effectively “un-deprecate” the Subentity properties which was previously available in the public API. For now, while less than ideal, you will need to define your own enums corresponding to the SubentityProperties enums found in:

HOOPS_Communicator_2024.X.x\web_viewer@hoops\web-viewer\lib\internal\SubentityProperties.d.ts

Thanks,
Tino

Thanks, yep that’s my workaround for now. Looking forwarding to seeing those entities published in the public api :slight_smile: