@sweco-ps/embedded
Index
Classes
- ArbitraryShapePoint
- BimApi
- BimApiLoadOptionsFactory
- BimCamera
- BimCoreApi
- BimIfcBuildingStorey
- BimIfcClass
- BimIfcDoor
- BimIfcLoader
- BimIfcMesh
- BimIfcObject
- BimIfcSpace
- BimPropertySets
- BimQuery
- BimTransformsRepository
- BimTwinfinityApiClient
- BoundingClientRectCache
- ChangeRecorder
- ClipPlane
- CoordinateTracker
- Discipline
- DynamicPolygon
- DynamicPolygonPoint
- DynamicPolygonWithArbitraryPoints
- FastTransform
- GeometryTools
- Html2CanvasPlane
- Html2CanvasPoint
- Http
- HttpResponseType
- Icon
- IconHandler
- Layer
- LayerApi
- LineShading
- LineUtil
- MarkupArea
- MarkupArrow
- MarkupCircle
- MarkupEntity
- MarkupEntityBase
- MarkupLine
- MarkupSheet2D
- MarkupSheet2DCollection
- MarkupSheets2DApi
- MarkupText
- Materials
- MeasureHandler
- MergableObjectWithState
- PickResultEmpty
- PickResultIcon
- PickResultIfcProductMesh
- PickResultMesh
- PlaneUtil
- PolyLine
- PostProcessEffects
- PredefinedBimChangeMetadataQuery
- Shapes
- StopWatch
- TwinfinityDefaultCameraStateSnapshot
- TwinfinityIfcMeshExtension
- TwinfinityPostProcess
- TwinfinityTargetCameraStateSnapshot
- TwinfinityViewer
- ViewerCamera
Enumerations
- AuthenticationEventType
- BimChangeStatus
- BimChangeType
- BimPropertiesType
- DynamicPolygonPointDeleteResult
- DynamicPolygonPointMoveResult
- DynamicPolygonPointValidationResult
- HttpMethod
- HttpStatusCode
- IfcMaterialHighlightIndex
- IfcMaterialRenderProperty
- Lcid
- MarkupEntityTypes
- MarkupEventTypes
- MergableObjectConflict
- MergableObjectEventSource
- MergableObjectState
- Permission
- PickOptionType
- PickResultType
- PivotMode
- PointMoveResult
- PredefinedCanvasPosition
- PredefinedPointerButtonId
- Projection
- TrackCoordinate2DState
- TransformType
- TransparencyMode
- VisibleSelectableType
Functions
- DefaultBimIfcObjectForEachPredicate
- Fail
- Ok
- clone
- convertToCanvasCoordinatesToRef
- copyVertex3ToRef
- createMockTypedResponse
- createNullFrustum
- equalsWithEpsilonVertex3
- getCanvasCenterCoordinatesToRef
- getMouseEventPressedButtons
- getTexture
- intersectsPlaneAtToRef
- isBimChangeBlob
- isBimChangeDwg
- isBimChangeIfc
- isBimFolder
- isFailure
- isPointInFrustum
- measureAsync
- setMax
- setMin
- setValue
- timeoutAsync
- yieldThreadFor
Interfaces
- ArbitraryShapePointFactoryHandler
- AreaDto
- ArrowDto
- BearerTokenProvider
- BimApiIfcObjectsLoadOptions
- BimApiLoadOptionsWithExplicitIfcChanges
- BimApiLoadOptionsWithIfcChangePredicate
- BimChangeBase
- BimChangeBlob
- BimChangeDiscipline
- BimChangeDwg
- BimChangeIdQuery
- BimChangeIfc
- BimChangeIfcMetadata
- BimChangeLayer
- BimChangeLayerData
- BimChangeLayerMetadata
- BimChangeMetadataQuery
- BimContainer
- BimContainerInfo
- BimCoreApiClient
- BimFolder
- BimGeometry
- BimIfcIndex
- BimIfcLoaderElementParent
- BimIfcMeshIntersectionCameraOptions
- BimIfcMeshIntersectionRayOptions
- BimIfcObjectForEachAction
- BimIfcObjectForEachActionAsync
- BimIfcObjectForEachPredicate
- BimIfcObjectRecursionOptions
- BimIfcPropertiesResponse
- BimIfcStyleDTO
- BimProduct
- BimProductAndMesh
- BimProductMesh
- BimProductMeshDTO
- BimProductMeshDescriptor
- BimPropertySet
- BimRegion
- BimTransform
- BimUserInfo
- BimVertexData
- BuildInfo
- CameraLookAt
- CameraOptions
- CircleDto
- ClickEventHandler
- DOMRectCached
- DwgMetadata
- DwgMetadata2D
- DwgMetadata3D
- DwgMetadataBase
- DynamicPolygonPointFactoryHandler
- DynamicPolygonPointParent
- EntityBaseDto
- GetVisibleInSightOptions
- GridOptions
- Html2CanvasPointFactoryHandler
- HtmlPointParent
- HttpIfcResource
- HttpIfcResourceUrls
- IFCLightingEnvironment
- IfcFloor
- IfcMetadata
- Intersection
- LabelUpdateEventData
- LabelUpdateHandler
- LayerApiClient
- LayerInterface
- LineDto
- LoginFailureAuthenticationEvent
- LoginSuccessfulAuthenticationEvent
- Lookup
- MailMessage
- MarkupAreaStyle
- MarkupArrowStyle
- MarkupCircleStyle
- MarkupDto
- MarkupEntityConstructorArgs
- MarkupLineStyle
- MarkupStyle
- MarkupTextStyle
- MessageApiClient
- OpenIdConnectClientOptions
- PickOptionCamera
- PickOptionCanvas
- PickOptionFlags
- PickOptionIntersection
- PickOptionRay
- PointerInfoWithTimings
- RgbaDTO
- RunRenderLoopHandler
- Selectables
- SelectablesRenderOperation
- Serialize
- SessionTerminatedAuthenticationEvent
- SettingsApiClient
- SheetDto
- StopWatchDeadlineOptions
- Stream
- TextDto
- TrackCoordinate2D
- TrackCoordinate2DData
- TrackCoordinate3D
- TwinfinityApiClient
- TwinfinityCameraExtensions
- TwinfinityCameraPivot
- TwinfinityCameraStateSnapshot
- TwinfinityInfo
- TwinfinityMeshExtensions
- TwinfinityParserMetadata
- TwinfinitySceneExtensions
- TwinfinityTargetCameraExtensions
- TwinfinityThinEngineExtensions
- TypedArrayLike
- TypedResponse
- UploadApiClient
- UploadApiClientContentOptions
- UploadApiTask
- UploadClientOperationAppendFileVersion
- UploadClientOperationCreateFile
- VersionInfo
- Vertex2
- Vertex3
- VisibleIcon
- VisibleIfcProductAndMesh
- VisibleMesh
Type Aliases
- AABB
- AttachOption
- AuthenticationEvent
- BimApiClient
- BimApiLoadOptions
- BimApiOpenIdConnectClientOptions
- BimApiOptions
- BimBackendApi
- BimChange
- BimChangeUploadable
- BimIfcChangeLoader
- BimIfcClassType
- BimIfcMeshIntersectionCameraCommonOptions
- BimIfcMeshIntersectionOptions
- BimProductAndMeshAndHitInfo
- BimPropertySetScalarValueType
- BimPropertySetValueType
- BimPropertySetWritable
- BlobData
- BuildType
- CameraDirection
- CameraMode
- CameraProjection
- CanvasPosition
- ClipPlaneName
- ClipPlaneOptions
- ClipPlanes
- Container
- CoordinateTrackerId
- DragPointPositioningFunction
- DragPointPositioningFunctionOrIndex
- Failure
- FrustumPlanes
- HttpRequestInit
- ImmutableMergableObjectWithState
- LayerFailure
- MailMessageId
- MarkupEntityDto
- MarkupLayerEvent2D
- MarkupProperty
- MergableObject
- MergableObjectEventArgs
- Mutable
- MutableShallow
- Optional
- PackedIndices
- PackedNormals
- PackedPositions
- PickOption
- PickResult
- PointerButtonInfo
- PolyLinePoint
- SimpleBoundingBox
- SimpleBoundingInfo
- TypedArray
- UploadApiClientContentOperation
- UploadApiClientFailure
- Viewer
- VisibleSelectable
Variables
Type Aliases
AABB
AttachOption
AuthenticationEvent
BimApiClient
Alias for TwinfinityApiClient
BimApiLoadOptions
Options which can be used when loading IFC’s. For example when calling setContainer.
BimApiOpenIdConnectClientOptions
BimApiOptions
Creation options for BimApi
BimBackendApi
Alias for backwards compatibility
BimChange
Discriminant union type (look at type
property) representing a Twinfinity change.
A change can be a file (IFC, DWG etc), layer or folder. Further types will be added in the future.
Common for all changes are that they have a unique id and a version.
BimChangeUploadable
Defines changes that it is possible to upload files/content for using the UploadApiClient api.
BimIfcChangeLoader
BimIfcClassType
BimIfcMeshIntersectionCameraCommonOptions
Common BimIfcMesh intersection options
BimIfcMeshIntersectionOptions
BimIfcMesh intersection options
BimProductAndMeshAndHitInfo
Alias for PickResult for backwards compatibility.
BimPropertySetScalarValueType
BimPropertySetValueType
BimPropertySetWritable
BlobData
Represents generic data type. Intended use is to handle data which can be in a file, blob, arraybuffer or js object, js primitive form etc. For example, to pass data into a method that shall store the data but does not care about how the data is represented. This is useful for storing binary data, primitive types and js objects.
BuildType
Represents either production or development build type
CameraDirection
Consists of different strings explaining a viewing direction for the camera.
CameraMode
CameraMode can have one of three values
- ‘fps’ = first person camera, mouse control the rotation of the camera pivoting around itself. Move around with keyboard keys W, A, S and D.
- ‘pivot’ = Left mouse button intersects BIM model for finding a pivot point. This point is then used for rotation calculation camera about pivot.
- ‘all’ = ‘pivot’ by default, ‘fps’ when holding the right mouse button.
Middle mouse button pans the camera view and scroll wheel controls zoom.
CameraProjection
CameraProjection can have one of two strings.
- ‘perspective’ = normal geometry scale by distance.
- ‘orthographic’ = isometric view projection where distance to camera does not affect object scale.
CanvasPosition
Options to use when referencing a coordinate on the canvas.
ClipPlaneName
ClipPlaneOptions
ClipPlanes
Type parameters
- T = ClipPlane
Container
Alias for backwards compatibility
CoordinateTrackerId
Id of a tracked 3D coordinate.
DragPointPositioningFunction
DragPointPositioningFunctionOrIndex
Failure
Represents a failure or error if you will. Use function Fail to create a failure instance.
Type parameters
- T
FrustumPlanes
Represents a frustum.
HttpRequestInit
Same as RequestInit but without the method. Used with methods on Http
ImmutableMergableObjectWithState
Type parameters
- P
LayerFailure
Represents a layer failure.
MailMessageId
Id of the sent message.
MarkupEntityDto
MarkupLayerEvent2D
Type which represents an event on a 2d MarkupLayer.
MarkupProperty
MergableObject
Makes it possible to work with local objects to which there are (possibly) remote counterparts. Will automatically resolve most conflicts except those that occur when both the local and remote object have been modified in some way that will result in a conflict. Example: Local object is modified (which means it must have existed remotely) but the remote no longer exists.
Type parameters
- T: MergableObjectProps
MergableObjectEventArgs
Represents event for change in local or remote object. Use the eventSource property to determine if the event is local or remote.
Type parameters
- T
Mutable
Type parameters
- T
MutableShallow
Strip readonly from all properties
Type parameters
- T
Optional
Type parameters
- T
- K: keyof T
PackedIndices
PackedNormals
PackedPositions
PickOption
Options for pick operation.
PickResult
The result of a “pick” operation. For example if user clicks something on screen a pick
operation can be issued to determine what the click, if anything, hit.
It is a discriminant union. Use the type
property or instanceof
to determine what
kind of result the pick operation gives. It can be
PointerButtonInfo
Represents pointer button events and timings.
PolyLinePoint
A polyline point type
SimpleBoundingBox
SimpleBoundingInfo
TypedArray
UploadApiClientContentOperation
Defines available operations for the createFileSession method.
Type parameters
- Change: BimChangeUploadable
UploadApiClientFailure
Represents the failure type.
Viewer
VisibleSelectable
Represents something that is visible. Such as a BabylonJS mesh, a Icon or a BimProductAndMesh.
Variables
constDEPTH_DIMENSIONS
constEXPENSIVE_NORMALS
constINVERTED_PROJECTION_MATRIX
constNEAR_FAR
constNORMALS_FROM_DEPTH
constVIEWSPACE_POSITION_FROM_LINEAR_DEPTH
constVIEWSPACE_POSITION_FROM_LOGARITHMIC_DEPTH
constboundingClientRectCache
Predefined cache for bounding client rectangles. This is useful when cost of HTMLElement.getBoundingClientRect()
becomes a problem (it causes browser reflow which in some situations can be very costly.). By caching
the information we get from the DOMRect
we can avoid this cost.
constbuildInfo
constendianess
Stores the platform endianess.
consttelemetry
Use for telemetry logging. Use this instead of console.log and similiar. It is used internally by
the Twinfinity Client API.
By default logs are output to console. If application insights is detected in the page,
when telemetry
is first accessed, then it will also automatically log to application insights.
Simplest way to forward logs to application insights is to use the “Snippet based setup” from https://docs.microsoft.com/en-us/azure/azure-monitor/app/javascript. Ensure that the snippet comes before all other scripts in the page.
Options for attach operation.