Reference·Classic JavaScript SDKJavaScript

JavaScript API catalogue

All SDK types and members generated from the source.

The complete extracted API catalogue. Select a type for its signatures, overloads, parameters and documentation.

@bimworks/dsleditor#

Type Kind Description
BuildVersion Variable The build version of this package as baked in at build time, e.g. "DEV" for a development build
DslEditor Class
DslEditorConfiguration Interface
DslEditorElement Interface . Attributes: address, language, readonly, theme, placeholder, and at creation fill, min-lines, max-lines. Events (bubbling): dsl-change {value}, dsl-status …
DslEditorOptions Interface
DslEditorStatus Interface
DslLanguage Type alias The languages the editor knows.
DslProblem Interface
DslServiceError Interface A failed request to the language services.
DslToken Type alias A token for the language services: an API token string as BIM.works issues it, or the signed auth object the BIM.works JS SDK holds after a login. null or un…
LANGUAGES Variable The languages, by id, with what they are for.
configureDslEditor Function
createDslEditor Function
defineDslEditorElement Function
getMonaco Function

@bimworks/jssdk#

Type Kind Description
Ai Class Converts natural-language input to BIM.works actions.
AlignmentPoint Type alias A point for Geometry3d.calculateAlignment in millimetres: [x, y, z] (an array or a vec3) or {x, y, z}
Auth Class Account registration API, available through BimWorksClient.auth.
Bcl Type alias
Bim Class API Namespace BIM is used for BIM related API calls.
BimQueryOptions Interface Options accepted by Bim.query.
BimWorksClient Class The main entry point to the BIM.works API. This is usually a short-lived object, but there is no reason to not use it for longer. For better organization, th…
BimWorksClientFactory Class
BimWorksClientFactorySettings Interface
Bql Type alias
BuildVersion Variable The build version of this package as baked in at build time, e.g. "DEV" for a development build
Bvl Type alias
CallOptions Interface What a caller may say about one call, next to its arguments.
Checks Class API Namespace Checks is used for Model Check related API calls.
CityGML3ExportGeometry Enum
CityGML3ExportLod Interface
CityGML3ExportSettings Interface
CityGML3ExportType Interface
CityGmlDownloadSettings Interface
ClientInfo Interface What the server made of a client's identification (X-BIMworks-Client, the socket's hello, or the User-Agent).
CompareAlignment Interface
CompareBul Interface
CompareCategory Interface
CompareCluster Interface
CompareLayer Interface
CompareModelsRequest Interface What a caller may say about one call, next to its arguments.
CompareOptions Interface
ComparePairOverride Interface
CompareRecord Interface
CompareResult Class A model compare result: the document CompareModels and GetCompareResult answer, with the object sets as QidSets and the correspondence between the sides. Obj…
CompareResultSide Interface
CompareSideInput Type alias One side of a compare: a Version uuid, a Version, or a Version uuid with a condition its objects must meet; or a federation, whose models' objects are matche…
ConvertedDownload Class
CopiedGeoReference Interface What Gis.copyGeoReference stored
Discipline Enum
DisciplineSource Enum
Eid Type alias Error UUID. (Globally) uniquely identifies a specific Error in BIM.works.
FeaturePath Class Reads the values of a query's GET columns from its result records
FeaturePathColumn Interface A result column of a parsed query, see FeaturePath
Fs Class API Namespace Fs is used for BIM.works FileSystem related API calls. A note about "paths" in BIM.works: Paths are relative to your credentials. For example a…
GeoPoint Interface A point on the earth: WGS84 degrees, elevation in metres
GeoReference Class A GeoReference can be attached to a Version to geographically reference a Model.
GeoReferenceExtractionResult Class Return object for extracting geo references from models
GeoReferenceResult Interface What Gis.getGeoReference resolves with
GeoReferenceSource Interface Where a copied georeference came from (Gis.copyGeoReference)
Geometry3d Class API Namespace Geometry3d is used for 3D geometry related API calls.
Gis Class API Namespace Gis is used for GIS related API calls.
Ifc Class API Namespace Ifc is used for IFC related API calls.
IfcType Type alias
IfcTypes Class Display names and icons of IFC entity types
IfcTypesInstance Variable The shared IfcTypes
Info Class
InputFileType Type alias The file type of the original input model
LinkDataResult Interface One entry per item of a link() call: linked (item, links) or refused (error, message)
LinkTarget Type alias One object of a version: by oid, by qid of that version, or by IFC GlobalId
LinkedData Class Files, URLs, texts and identifiers linked to objects, which follow their objects to later versions. Available through BimWorksClient.linkedData. Reading need…
LinkedDataAnchor Interface Where a link was on a span of versions; last_version absent while the span is open
LinkedDataCounts Interface Which objects of a version have linked data (oids of that version, sorted)
LinkedDataDetails Interface
LinkedDataHow Type alias How a link found its object on the first version of a span
LinkedDataItem Interface A linked data item. Times are UTC, without a zone
LinkedDataItemInput Interface One item to link: its value is url, text, identifier or file
LinkedDataKind Type alias
LinkedDataLink Interface One item on one object of a model; the fields from anchor_uuid on describe it on the version listed
LinkedDataList Interface
LinkedDataObject Interface
LinkedDataPolicy Interface What a server accepts as linked data
LinkedDataProgressOptions Interface
LinkedDataState Type alias OK: shown; CHECK: shown, someone should confirm the object; ORPHANED: the object is not on the version
ListLinkedDataOptions Interface
MapConversionResult Interface
MapConversionValues Interface GisApi.getMapConversion: an IfcMapConversion with its IfcProjectedCRS, lengths in the map unit
MatchCandidates Interface
ModelUpload Class
ModelUploader Class
ModelUploaderFactory Class
ModelUploaderSettings Interface
Nid Type alias Node UUID. (Globally) uniquely identifies a specific Node in BIM.works.
Node Class The BIM.works virtual filesystem is built up with Node objects. A Node can either be a folder or not a folder. Folder Nodes can have child Nodes. Non-folder …
NodeVersionDeletedStatus Enum
Oid Type alias Object ID. Object IDs are unique within one model (Version). Object IDs are 32-bit integers and created sequentially, starting at 1. To make an Object ID tru…
Qid Class Qid stands for Unique Identifier. It uniquely (and globally) identifies an object in BIM.works. It's String representation is a concatenation of a Vid and Oi…
QidMap Class QidMap represents a Set of mappings from Qid to some other object. It is like JavaScript Map, but specifically for keys of the Qid
QidSet Class QidSet represents a Set of Qid. The main reasons why this class exists and should be used are: - A regular Set can not handle custom objects such as Qid - Th…
QueryColumn Interface One entry of the columns table of a query answer: a GET item, its alias, and where its value is in a record. Label a column with label and read its values …
QueryColumns Class Reads query records through the columns table of their answer (QueryRecords.columns). Read a value by its alias here, never as record[alias]: an alias name…
QueryHelper Class Builders and transformations for parsed BQL queries (the JSON form): the conditions the BIM.works UI creates when a feature is clicked, and helpers to adapt …
QueryLeafColumn Interface A column of QueryColumns.leaves: a QueryColumn with a relation's items flattened into columns of their own
QueryNode Type alias A node of a parsed BQL query (its JSON form): a feature, an expression or a whole query
QueryRecords Type alias The records of Bim.query: an array, one record per object or group, that also carries (not enumerable, so walking it sees only the records) the columns table…
QueryValidationMessage Interface One finding of Bim.validateQuery: what the editor marks in a query that parses.
Render Class API Namespace Render is used for Rendering related API calls.
SchemaConversionSummary Class The numbers of one schema conversion.
SchemaConversionValidation Class The schema check of a converted file, held against the same check of the model.
Scope Type alias Authorization scopes (docs/api-authorization-scopes-design.md §4.3) — the closed catalog, matching the server enum.
Scopes Variable
TaskNames Type alias
TextToActionResult Type alias The action Ai.textToAction answers.
TilesSettings Interface Either node_uuid or version_uuids is required. bql, bvl, bql_uuid and bvl_uuid are all optional, at most one can be provided
Tokens Class
TreeNodeDeletedStatus Enum
TreeNodeStatus Enum
TreeNodeType Enum
TreeNodeVersionStatus Enum
UUID Type alias UUID is string value in form like: 227e071d-4909-4b5c-8d48-46f44d027c46
Upload Class
Vector3d Class Vector3d is a 3 dimensional vector of number
Version Class In BIM.works a "Version" refers to a specific version of a Model.
VersionAuthToken Interface
VersionChange Interface
Vid Type alias Version UUID. (Globally) uniquely identifies a specific (Model) Version in BIM.works.
ViewPoint Type alias
ViewPort Type alias

@bimworks/viewer2d#

Type Kind Description
BuildVersion Variable The build version of this package as baked in at build time, e.g. "DEV" for a development build
CameraTrackingMode Type alias
Control Class
ScreenshotOptions Type alias
Viewer2d Class 2D viewer based on WebGL.
Viewer2dSettings Type alias 2D Viewer Settings

@bimworks/viewer3d#

Type Kind Description
AUX_MOUSE_BUTTON Variable
ActiveTool Interface The running tool (Measuring.getActiveTool): the measurement kinds plus "move" and "rotate" for the transform tool
AngleMeasurement Class
AreaMeasurement Class
AreaMode Type alias What an area measurement reports and draws: "gross" the polygon as it stands, "net" the openings of the face it was taken from subtracted, "hull" the convex …
AxisAlignedBoundingBox3D Class An axis-aligned box in mm; the frame is the one of the member that returns it (render space for the viewer's bounds)
BuildVersion Variable The build version of this package as baked in at build time, e.g. "DEV" for a development build
Camera Class
CameraLink Interface What Viewer3d.linkCamera returns
CameraLinkBridge Interface Converts points between the measurement frames of two linked viewers (Viewer3d.linkCamera). Points are millimetres; the conversion must be rigid (a move and …
CapStyle Type alias A section cap style (docs/section-cap-patterns.md): the pattern a cut object's cap gets with SectionPlanes.capStyles. "plain" draws no strokes over a neutral…
CoordinateFrame Type alias The coordinate frames points cross the API in, all in millimetres unless a member says otherwise (docs/ui-api-wp4/1-frames-and-placement.md): - model: a …
CurrentSpace Interface A space containing the tracked point.
CurrentSpaceFeature Interface One row of the extra GET features of a located space.
CurrentSpaceResult Interface
CurrentSpaceTracker Interface Locates the camera in the loaded models' spaces without server round trips (docs/current-space-design.md §8). Obtain it with Viewer3d.ensureCurrentSpaceTrack…
CurrentSpaceTrackerSettings Type alias Settings of the current-space tracker (docs/current-space-design.md §8).
CurrentZone Interface A zone (IfcZone) of a located space, from the space record's zone path.
DEFAULT_SECTION_PLANE_ICON Variable SVG markup of the section planes' default drag icon (a pair of scissors)
DistanceMeasurement Class
DwgLayer Interface One layer of a DWG model's layer table
DwgLayout Interface One layout (model space or a sheet) of a DwgSemantics
DwgSemantics Interface The layouts of a DWG model, as the server derived them (DWG_SEMANTIC_JSON_1), and of a geometry PDF, whose pages the viewer maps onto layouts (PDF_SEMANTIC_J…
ExtrusionDrawingOptions Interface Options of Viewer3d.startExtrusionDrawing
ExtrusionDrawingResult Interface What ExtrusionDrawingOptions.onCommit receives; points in the measurement frame, mm
FIGURE_STATES Variable How each FigureState is drawn: its overlay role (a design-system token) and, for excluded, fill 0
FaceAndWireframeSelectionVisualization Class Draw opaque selected faces using a shared base color and optional thin edges in another color. Faces retain normal surface lighting and two-sided shading; th…
FatWireframeSelectionVisualization Class Thick selection edges. Requires settings.fatWireframes.enabled; available through the SDK.
FigureEntry Interface
FigureLayerHandle Interface
FigureLayerOptions Interface
FigureLayers Interface
FigureState Type alias How a figure is drawn: rule --bw-blue, changed --bw-warning, added --bw-pill-ok, manual --bw-blue-light, excluded an outline in --bw-text-quiet (hidden unles…
FollowRouteOptions Type alias
FrameMeasurement Interface The outcome of Viewer3d.measureFrames
FrameMeasurementOptions Interface What Viewer3d.measureFrames draws
FrameTimes Interface Times in milliseconds
GeometryNotAvailableError Class The server has no 3D geometry for a model in the geometry protocol the viewer asked for: Viewer3d.addModels, and so ModelManager.addModels and setModels, rej…
GisLayer Type alias A GIS layer definition for Viewer3d.addGisLayer
GisLayerState Interface What the viewer knows about a GIS layer (Viewer3d.getGisLayer): a copy
GridOptions Interface
KeyBinding Type alias
KeyBindingAction Type alias Actions that can be configured through Viewer3d key bindings.
Labeler Type alias
LaserMeasurement Class Represents one LaserMeasurement. There can be multiple LaserMeasurements in one viewer, but only one can be active (moving around) at a time.
LoadProgressHandler Interface Load progress of the models of a viewer's ModelManager. managerIndex is that ModelManager's index (@bimworks/viewercommon!ModelManagerSettings.index), so one…
MAIN_MOUSE_BUTTON Variable The mouse buttons as MouseEvent.button numbers them, for key bindings
Measurement Class
Measuring Class All measuring related methods are available on this class. Generally the Viewer3d has a reference to an instance of this class. There can only be one measure…
MeasuringListener Interface
MeshPlacementOptions Interface Options of Viewer3d.startMeshPlacement
MeshPlacementResult Interface Where a placed mesh went (MeshPlacementOptions.onCommit)
ModelCluster Interface A group of models near each other (Viewer3d.getModelClusters)
ModelClusterListener Interface
ModelNotAvailableOfflineError Class Thrown when a model is requested in offline mode that has not been prepared with Viewer3d.prepareOfflineModels
MovablePlane Class A plane with a drag icon that does not cut anything: the user drags it along its normal (left button on the icon or the rectangle), the middle button on the …
MovablePlaneEvent Interface
MovablePlanes Class
MultiSelectMode Type alias "SHIFT": multiselection requires the shift key to be pressed. Not using the shift key resets the selection to the clicked object. Empty-space clicks also res…
NAVIGATION_MODE_DEFAULT Variable
NAVIGATION_MODE_DRONE Variable
NAVIGATION_MODE_GAME Variable
NAVIGATION_MODE_WALK Variable
NavigationAction Type alias Camera-navigation actions that can also be used inside custom navigation modes.
NavigationKeyBindings Type alias Mouse and keyboard combinations for navigation-related actions.
NavigationMode Type alias A predefined navigation mode or the name of a custom mode declared in Viewer3dSettings.navigationModes.
NavigationModeSettings Type alias Defines one custom navigation mode. The four predefined modes are available as presets through extends: - default: regular orbit/pan/zoom mouse navigatio…
NearPlane Type alias
NoneSelectionVisualization Class No face or object-edge highlighting. Extended OBB highlighting can still be enabled independently.
Obb Interface An oriented box in render space: a centre, three unit axes and the half extents along them, in mm
ObjectDistanceMeasurement Class
ObjectDistanceMode Type alias Which distance an object distance measurement reports: "shortest" the 3D distance between the surfaces; "vertical" the shortest segment parallel to Z (the fo…
ObjectDistanceResult Interface The result of an object distance measurement (docs/object-distance-measurement-design.md §6)
ObjectReference Interface The reference geometry of an object (docs/reference-geometry-measurement-design.md §5): its centre line ("line") or a wall's axis plane ("plane"), in viewer …
ObjectTransformModelResult Interface The change of ObjectTransformResult.models for one model
ObjectTransformObjectResult Interface One object's change of ObjectTransformModelResult.each, in its model's coordinates
ObjectTransformOptions Interface Options of Viewer3d.startObjectTransform
ObjectTransformResult Interface What ObjectTransformOptions.onCommit receives: a move, preceded by an optional rotation around a pivot
OfflineModelInfo Type alias Information about one offline-prepared model, see Viewer3d.getOfflineModels
OfflinePrepareOptions Type alias Options for Viewer3d.prepareOfflineModels
OfflinePrepareResult Type alias Result of Viewer3d.prepareOfflineModels
Overlay Interface The overlay envelope; coordinates are raw world mm of bind.versionUuid
OverlayAreaItem Interface Planar polygons (flat x,y rings, not closed) and circles, on the plane z or in plane
OverlayArrowItem Interface A 3D arrow; lengths in mm. size "screen" keeps ~48 px on screen and ignores length
OverlayGltfItem Interface A glTF 2.0 model (.glb, or .gltf with embedded buffers; no Draco or meshopt) in the overlay's frame: its coordinates taken as raw world mm of the bound model…
OverlayHandle Interface
OverlayItem Type alias
OverlayItemCommon Interface Fields common to every overlay item (docs/check-overlays-design.md §3.1)
OverlayItemEvent Interface What overlay_hover / overlay_click report
OverlayLabelItem Interface Fields common to every overlay item (docs/check-overlays-design.md §3.1)
OverlayManager Interface
OverlayMeshItem Interface A prebuilt triangle mesh drawn like an area (fill and outline): many figures merged into one draw (FigureLayers). Positions are relative to anchor, raw wor…
OverlayPathItem Interface A 3D polyline on the walking surface (an escape route), drawn as a tube ("snake") raised by lift, in front of the model by default (depth "always"). Length…
OverlayRole Type alias Semantic item roles; the viewer maps them to the design-system palette
PathFollowerHandle Interface
PathMeasurement Class
PathVisualizationHandle Interface
PickResult Interface What is under a position on the canvas, from Viewer3d.pick or the third argument of the rightMouseClick setting. The vectors are copies, they stay valid af…
PlacementMesh Interface A mesh to place (Viewer3d.startMeshPlacement): triangles in the measurement frame, mm
PlacementTool Interface The move/rotate tool while it runs (Viewer3d.startObjectTransform; ActiveTool.measurement for "move" and "rotate"): what the mode bar shows and switches. The…
PointMeasurement Class
PredefinedNavigationMode Type alias Predefined navigation modes shipped with Viewer3d. Custom modes can extend one of these modes.
QuantityFigure Interface The verification geometry of a calculated quantity, as the server stores it (docs/quantity-figures-design.md §3.1)
QuantityFigureOptions Interface
ReferenceMode Type alias What one of the two objects of an object distance is measured on: its surface, or its reference (centre line, axis plane)
ReferenceObject Interface A level (building storey elevation) or a grid line the measurement tools can target
ReferenceToggleState Interface One object's Centre line toggle of an object distance (ObjectDistanceMeasurement.referenceToggleState)
SECONDARY_MOUSE_BUTTON Variable
SELECTION_DIRECT_PICKING Variable Direct selection mode, clicking/touching an object changes the selection state
SELECTION_RECTANGULAR Variable A 2D rectangular shape can be drawn by the user, any objects within this shape will be the new selection state
ScaleMeasurement Class The two clicks of a drawing's scale (Measuring.startScaleMeasurement)
ScanStation Interface A scanner station of a point cloud (Viewer3d.getScanStations; Viewer3D-Next only)
ScreenshotOptions Type alias
SectionBox Class
SectionPlane Class
SectionPlaneAnnotationDefaults Interface What every newly started section plane or box begins with (SectionPlanes.annotationDefaults)
SectionPlaneAnnotationMode Type alias What a section plane does with the annotations on the side it cuts away: - "hide": they are hidden (the default) - "ignore": this plane does not hide them; a…
SectionPlaneIconOrientation Type alias How a section plane's drag icon is drawn (SectionPlanes.iconOrientation). "billboard": a disc facing the screen, the same for every plane. "plane": laid flat…
SectionPlaneWidget Class
SectionPlanes Class
SectionPlanesState Interface How section planes cut the model, SectionPlanes.getState and SectionPlanes.setState. Render frame, mm
SelectedVertex Interface A point clicked in Viewer3d.selectVertex
SelectionColor Type alias Selection colors accept Color values (e.g. "#ff8000") or normalized RGBA arrays (four channels, 0..1).
SelectionMode Type alias
SelectionVisualization Class Base type for visualization selection
ShadowOptions Interface
ShadowState Interface
ShowRouteOptions Type alias
SpatialQueryingPreference Type alias
StandardSectionPlane Type alias The six standard planes of SectionPlanes.startStandardPlane: the faces of the oriented box around the loaded models. "top" cuts away what lies above the mode…
SunOptions Interface
SunState Interface
VertexSelector Interface Returned by Viewer3d.selectVertex
ViewPoint Interface A camera viewpoint in the measurement frame, in metres (see CoordinateFrame)
ViewSide Type alias A side Viewer3d.set2dMode shows the scene from, straight on along an axis of the render frame (CoordinateFrame), named as the faces of StandardSectionPlane: …
ViewStateSnapshot Interface A view as Viewer3d.captureViewState took it; a value, not live
Viewer3d Class A 3D BIM viewer. Minimal example:
Viewer3dEngineUnavailableError Class Viewer3D-Next could not start in this browser: its initializeViewer rejects with this. The same class as @bimworks/viewercommon!Viewer3dEngineUnavailableErro…
Viewer3dSettings Type alias The settings available for the 3D Viewer
ViewerKeyBindings Type alias Mouse and keyboard combinations for all actions supported by NavigationModeSettings.
ViewerMode Type alias
ViewerQuantityFigure Interface A QuantityFigure converted by Viewer3d.quantityFigureToViewer: points in millimetres in the measurement frame
WalkStart Type alias Viewer3d.getWalkStart
WalkableRoute Type alias The route polyline produced by the ComputeRoute API task (walkable-surfaces design).
WalkableRoutePoint Type alias One point of a walkable route, in render-frame millimetres; z is the floor height.
WalkableSurfacesLayer Type alias The layers of the walkable-surfaces view, each switched on its own
WalkableSurfacesSpan Type alias What a click on one of the view's polygons says about the span under it
WalkableSurfacesState Type alias The states of the walkable-surfaces view, keys of WalkableSurfacesViewHandle.statistics: - layer walkable: flat, ramp, stair, door; - layer `limits…
WalkableSurfacesViewHandle Interface
WalkableSurfacesViewOptions Type alias
WireframeRendering Type alias
WireframeSelectionVisualization Class Draw selected object edges over the scene, including occluded edges. Face colors are unchanged.
XRaySelectionVisualization Class Translucent selected faces and bright edges drawn through the scene, respecting section planes and object visibility. Defaults to green faces (12% opacity) a…
XRayVisualization Class How the ObjectStateManager's x-ray set is drawn (Viewer3d.setXRayVisualization): translucent faces and edges through the scene, independent of selection and …
figureToOverlayItems Function
versionOfQid Function

@bimworks/viewercommon#

Type Kind Description
ALIGNMENT_PAIRS_NEEDED Variable The pairs each kind of fit needs: 1 to move, 2 to turn
AUX_MOUSE_BUTTON Variable
AlignmentFit Interface What fitAlignment found
AlignmentFitKind Type alias What an alignment fit may change (BimRepository/docs/model-alignment-design.md §4.5): "move" a translation; "turn" a turn about the vertical axis and a trans…
AlignmentPair Interface One point picked on two models, in mm: onto where it must land (on the model the other goes onto, as that model is shown, its alignment applied), move the sa…
Annotation Class Abstract super class for all annotations, there are currently SvgAnnotation, ImageAnnotation and TextAnnotation
AnnotationAlign Type alias Which side of its anchor an annotation is drawn on, on screen: centred, or beside it above, below, left or right
AnnotationAnchor Type alias A point of an object's box in its model's own axes (docs/annotation-anchors-design.md §3.1): "center", or up to three words in the order vertical, depth, sid…
AnnotationAnchorDepth Type alias The depth word of an AnnotationAnchor: the model's −Y / +Y (near and far in its opening 3D view)
AnnotationAnchorSide Type alias The side word of an AnnotationAnchor: the model's −X / +X
AnnotationAnchorVertical Type alias The vertical word of an AnnotationAnchor: the model's +Z / −Z
AnnotationLayer Class A set of annotations drawn by one template. Events: "loaded" (the query's rows are in), "error" (detail.error), "action" (detail: {action, row, event}), "exp…
AnnotationLayerOptions Interface
AnnotationRow Interface
AnnotationTemplate Class
AnnotationTemplateKit Variable What the built-in card templates share, for an application's own template: include css in the template's css for the card (.card, .head, .eyebrow, h3, .pill,…
AnnotationTemplates Variable The templates that ship with the viewer, registered under these names
BuildVersion Variable The build version of this package as baked in at build time, e.g. "DEV" for a development build
BuildingStorey Interface
BvlHelper Class The BVL runtime: shows resolved BVL actions (the server's ResolvedActions JSON, documented with the BVL language) in the viewers - colours, visibility, selec…
BvlProcessOptions Interface
BvlUndo Interface What BvlHelper.applyDelta returns; only BvlHelper.undoDelta reads it
ChangedGeometry Interface How a commit changed geometry, as ModelManager.swapVersion and ModelListener.swapVersion take it
Color Type alias
ColorChangeMap Class
ColorChanges Interface What ObjectStateListener.colorChangedMulti receives: the objects whose colour changed, per colour
DeletedObjects Interface The objects a committed transaction deleted, as ModelListener.swapVersion receives them
DrawingScaleResult Interface A drawing's alignment with a new scale (docs/drawing-scale-design.md §3)
ENGINE_WEBGL Variable
ENGINE_WEBGPU Variable
FaceAndWireframeSelectionVisualization Class Draw opaque selected faces in a shared base color and optional thin edges in another color
FatWireframeSelectionVisualization Class Thick selection edges. Requires the viewer setting fatWireframes.enabled
GeometryNotAvailableError Class The server has no 3D geometry for a model in the geometry protocol the viewer asked for. Viewer3d.addModels, and so ModelManager.addModels and setModels, rej…
ImageAnnotation Class Raster Image based Annotation
IncompleteVersionError Class Thrown when a @bimworks/jssdk!Version without im_metadata is passed to the ModelManager. This typically means a summary version object was used, or the model…
IndexedCollection Interface
InlineSvg Class SVG markup to show inline, for example as an annotation template's icon
Label Type alias
MAIN_MOUSE_BUTTON Variable The mouse buttons as MouseEvent.button numbers them, for key bindings
Model Class
ModelListener Interface What a ModelManager calls on a listener added with ModelManager.addListener, for example a viewer. Every method is optional. Listeners are called one at a ti…
ModelListenerType Enum The listener sets of a ModelManager besides ModelManager.addListener
ModelManager Class A ModelManager keeps track of the models that have been loaded. A ModelManager is required when using the Viewer2d or Viewer3d. Most application will only ne…
ModelManagerSettings Interface Settings for a ModelManager, all optional
ModelNotAvailableOfflineError Class Thrown when a model is requested in offline mode that has not been prepared with Viewer3d.prepareOfflineModels
ModelVisibilityListener Interface What a ModelManager calls on a listener added with ModelManager.addVisibilityListener: models shown or hidden as a whole (ModelManager.showModels, ModelManag…
NoneSelectionVisualization Class No face or object-edge highlighting. Extended OBB highlighting can still be enabled independently.
ObjectInfo Interface
ObjectStateListener Interface What an ObjectStateManager calls on its listeners, usually viewers: one interface for every ObjectStateListenerType, so one object can listen to all of them …
ObjectStateListenerType Enum The listener types of an ObjectStateManager (ObjectStateManager.addListener), with the ObjectStateListener methods each type receives and the add…Listener me…
ObjectStateManager Class An instance of ObjectStateManager keeps track of all the viewer-related state and distributes this state to other components, usually viewers. This state inc…
ObjectStateManagerSettings Interface
ObjectStateSnapshot Interface The object state as ObjectStateManager.captureObjectState took it: copies, not the live sets
Output Interface
PDF_POINT_MM Variable Paper millimetres in a PDF point (25.4 / 72): the model unit of a raster PDF
PlanCircle Type alias A maximum inscribed circle in mm; x and y are NaN when only the radius is known
PlanRectangle Type alias An object's rectangle in the plan: centre, unit long axis (ux, uy) and the half extents along and across it, mm
Pose Type alias A camera pose in the 3D viewer's render frame, in mm
Quantity Class A value with a unit, as BQL returns it. Compares as its number (d.width > 1.05) and prints with its unit (${d.width} gives "1.05 m"); for strict equality u…
QueryVisualizer Class Shows the results of a query in the viewers: visibility, selection and colours as the query asks
ReadonlyMat2 Type alias
ReadonlyMat2d Type alias
ReadonlyMat3 Type alias
ReadonlyMat4 Type alias
ReadonlyQuat Type alias
ReadonlyQuat2 Type alias
ReadonlyVec2 Type alias
ReadonlyVec3 Type alias
ReadonlyVec4 Type alias
RecipeExecutor Class The RecipeExecutor can be used to visualize the results of BIM.works model checks in both the Viewer2d and Viewer3d. Anything the RecipeExecutor does, can al…
RowAnnotation Class One row of a layer as the model-level annotation its viewers draw; its options are the layer's
SECONDARY_MOUSE_BUTTON Variable
SELECTION_DIRECT_PICKING Variable Direct selection mode (Viewer3d.setSelectionMode): clicking/touching an object changes the selection state
SELECTION_RECTANGULAR Variable Rectangular selection mode (Viewer3d.setSelectionMode): the objects within a rectangle the user draws become the selection
SPACE_LABEL_FIELDS Variable The fields of a space's default plan label (Name, LongName, floor area)
SelectionColor Type alias Selection colors accept Color values (e.g. "#ff8000") or normalized RGBA arrays (four channels, 0..1).
SelectionVisualization Class Base type for visualization selection (Viewer3d.setSelectionVisualization)
ShapeOverlayItem Interface An item for Viewer3d.overlays (viewer3d.d.ts OverlayItem): a "mesh", or an "arrow" of a dimension
Sid Type alias Sequential ID, only used internally
StateChangeOptions Interface Passed as the last argument of the addedTo…Set methods of an ObjectStateListener when the ObjectStateManager replays its state for geometry that just arrived…
Styling Class The colours of the BIM.works UI per kind of data, action and result, as "#rrggbb"
SvgAnnotation Class SVG based Annotation
TemplateContext Interface The second argument of a template's render
TemplateResult Interface What the html and svg literals return: rendered by the viewer, reusing the DOM of an earlier render of the same literal
TemplateSpec Interface
TextAnnotation Class Text based Annotation
Transition Interface A transition submitted with ObjectStateManager.transition
TransitionCameraFit Interface A camera change of a TransitionStep: fit objects, as ObjectStateManager.viewFit does
TransitionCameraPose Interface A camera change of a TransitionStep: move to a pose (render frame, mm, as Camera.interpolateView takes it). Only viewers that animate transitions apply it; a…
TransitionCameraProjection Interface A camera change of a TransitionStep: the projection alone. The camera stays where it is and what it looks at keeps its size. Only viewers that animate transi…
TransitionCameraProjectionChange Interface The projection a camera change of a TransitionStep ends in. Viewers that animate transitions change it smoothly, in the same flight as the rest of the change…
TransitionEasing Type alias The CSS easing curves of these names
TransitionEnd Type alias How a transition leaves the state when it is stopped before its end
TransitionOptions Interface
TransitionStep Interface One step of ObjectStateManager.transition: these changes at once, as the methods of the same meaning make them. They apply in this order: unghost, visible, s…
TransitionStepChange Interface For viewers: what ObjectStateListener.transitionStep receives, the net changes of one step
Translator Class Display names and help texts of BIM terms and feature paths
Units Class Formats values with their units as the BIM.works UI shows them
VIEWER3D_NEXT_REQUIRED_LIMITS Variable The limits Viewer3D-Next needs at the least: core WebGPU's defaults, except for 10 storage buffers per shader stage
VIEWER_VIEWPOINT_PARTS Variable The parts the viewer captures and restores itself: camera, visibility, colours, sections, selection and measurements
VIEWPOINT_SCHEMA Variable The schema a value of Viewpoints.capture names in bimworks.schema
VersionFrames Class viewer3d.frames of both 3D viewers: a loaded version's own frame (its coordinates before alignment and placement, in metres) and the render frame (the camera…
ViewFitOptions Type alias
ViewFitRotation Type alias
Viewer3dEngine Type alias The two 3D viewers: Viewer3D (WebGL2) and Viewer3D-Next (WebGPU)
Viewer3dEngineFailure Interface A 3D viewer gave up on the GPU (Viewer3d.addEngineFailureListener). Viewer3D-Next ("webgpu"): the device kept getting lost, or no new one could be made. View…
Viewer3dEnginePolicy Interface Which viewer a capable browser gets: the first rule that matches decides, without one it is Viewer3D-Next
Viewer3dEngineProbe Interface
Viewer3dEngineRule Interface One rule: when every field of match fits, the engine is the rule's. mobile compares as a boolean; the other fields are found inside the platform's value, ign…
Viewer3dEngineUnavailableError Class Viewer3D-Next could not start in this browser: its initializeViewer rejects with this, and an application builds a Viewer3D instead (@bimworks/viewer3d-auto …
Viewer3dEngineUnavailableReason Type alias Why Viewer3D-Next could not start: no WebGPU API, no adapter, no device, or its start-up failed
Viewer3dPlatformFacts Interface What the rules of a Viewer3dEnginePolicy know a browser by: the platform, and the WebGPU adapter when there is one
ViewerListener Interface What an ObjectStateManager calls on a listener registered for ObjectStateListenerType.VIEWER (ObjectStateManager.addViewerListener): viewers announcing thems…
ViewpointCamera Interface The camera members BCF's perspective and orthogonal cameras share
ViewpointMeasurement Type alias A finished measurement as a viewpoint keeps it (bimworks.measurements), its kind as Measuring.kindOf names it. An object distance keeps its result and is not…
ViewpointModel Interface A model a viewpoint was stored with (bimworks.model_set.models)
ViewpointPart Type alias The parts a stored viewpoint can hold, most used first (BimRepository/docs/viewpoint-contents-design.md §3). The viewer captures and restores VIEWER_VIEWPOIN…
ViewpointPoint Type alias A point of a viewpoint's bimworks members: metres, in the version frame of bimworks.version_uuid
ViewpointQids Type alias Objects of a viewpoint: per model version its object ids, ascending, runs of consecutive ones as from-to: {vid: "1-40,52"}
ViewpointRestoreReport Interface What Viewpoints.restore did and could not do
ViewpointValue Interface A stored viewpoint (docs/markup-components-design.md §3.4): the buildingSMART BCF-API 3.0 viewpoint JSON with a bimworks member for what BCF cannot hold. E…
ViewpointXyz Interface A point or direction of a BCF member: metres, in the version frame of the value's bimworks.version_uuid
Viewpoints Class viewer3d.viewpoints of both 3D viewers: a view as a ViewpointValue and back
WebGpuAdapterInfo Interface The WebGPU adapter as probeViewer3dEngine saw it
WebGpuProbe Interface
WebGpuProbeReason Type alias Why WebGPU can or cannot run Viewer3D-Next here
WireframeSelectionVisualization Class Draw selected object edges over the scene, including occluded edges. Face colors are unchanged.
XRaySelectionVisualization Class Translucent selected faces and bright edges drawn through the scene. Defaults to green faces (12% opacity) and pale green edges
adapterInfo Function
alignmentScale Function
alignmentTurnDegrees Function
cachedViewer3dEngine Function
defineTemplate Function
fitAlignment Function
fitDataFromRecord Function
fitPlanLabel Function
getAnnotationTemplate Function
glMatrix.equals Function
glMatrix.toRadian Function
html Function
mat2 Type alias
mat2.create Function
mat2d Type alias
mat3 Type alias
mat3.create Function
mat4 Type alias
mat4.add Function
mat4.adjoint Function
mat4.clone Function
mat4.copy Function
mat4.create Function
mat4.determinant Function
mat4.equals Function
mat4.exactEquals Function
mat4.exactEqualsWithNan Function
mat4.frob Function
mat4.fromQuat Function
mat4.fromQuat2 Function
mat4.fromRotation Function
mat4.fromRotationTranslation Function
mat4.fromRotationTranslationScale Function
mat4.fromRotationTranslationScaleOrigin Function
mat4.fromScaling Function
mat4.fromTranslation Function
mat4.fromValues Function
mat4.fromXRotation Function
mat4.fromYRotation Function
mat4.fromZRotation Function
mat4.frustum Function
mat4.getRotation Function
mat4.getScaling Function
mat4.getTranslation Function
mat4.identity Function
mat4.invert Function
mat4.lookAt Function
mat4.mul Function
mat4.multiply Function
mat4.multiplyScalar Function
mat4.multiplyScalarAndAdd Function
mat4.ortho Function
mat4.perspective Function
mat4.perspectiveFromFieldOfView Function
mat4.rotate Function
mat4.rotateX Function
mat4.rotateY Function
mat4.rotateZ Function
mat4.scale Function
mat4.set Function
mat4.str Function
mat4.sub Function
mat4.subtract Function
mat4.targetTo Function
mat4.translate Function
mat4.transpose Function
matchingRule Function
normalizeSvgIcon Function
parseSheetScale Function
planFitQuery Function
planLabelLines Function
platformFacts Function
probeViewer3dEngine Function
probeWebGpu Function
quat Type alias
quat.create Function
quat2 Type alias
quat2.create Function
recordViewer3dEngineFailure Function
rectangleFromBounds Function
rectangleFromObb Function
registerAnnotationTemplate Function
renderTemplateResult Function
scaleAlignment Function
scaleAlignmentAbout Function
scaleAlignmentTo Function
selectionColor Function
shapeToOverlayItems Function
sheetScaleOf Function
spaceLabelLines Function
standardScaleNear Function
svg Function
takeProbedAdapter Function
templateAnnotationImages Function
transformAlignmentPoint Function
unitFactorNear Function
unsafeHTML Function
untransformAlignmentPoint Function
vec2 Type alias
vec2.create Function
vec3 Type alias
vec3.add Function
vec3.angle Function
vec3.bezier Function
vec3.ceil Function
vec3.clone Function
vec3.copy Function
vec3.create Function
vec3.cross Function
vec3.dist Function
vec3.distance Function
vec3.div Function
vec3.divide Function
vec3.dot Function
vec3.equals Function
vec3.equalsAsInt Function
vec3.exactEquals Function
vec3.floor Function
vec3.forEach Function
vec3.fromValues Function
vec3.hermite Function
vec3.inverse Function
vec3.len Function
vec3.length Function
vec3.lerp Function
vec3.max Function
vec3.min Function
vec3.mul Function
vec3.multiply Function
vec3.negate Function
vec3.normalize Function
vec3.random Function
vec3.rotateX Function
vec3.rotateY Function
vec3.rotateZ Function
vec3.round Function
vec3.scale Function
vec3.scaleAndAdd Function
vec3.set Function
vec3.sqrDist Function
vec3.sqrLen Function
vec3.squaredDistance Function
vec3.squaredLength Function
vec3.str Function
vec3.sub Function
vec3.subtract Function
vec3.transformMat3 Function
vec3.transformMat4 Function
vec3.transformQuat Function
vec3.zero Function
vec4 Type alias
vec4.add Function
vec4.ceil Function
vec4.clone Function
vec4.copy Function
vec4.create Function
vec4.cross Function
vec4.dist Function
vec4.distance Function
vec4.div Function
vec4.divide Function
vec4.dot Function
vec4.equals Function
vec4.exactEquals Function
vec4.floor Function
vec4.forEach Function
vec4.fromValues Function
vec4.inverse Function
vec4.len Function
vec4.length Function
vec4.lerp Function
vec4.max Function
vec4.min Function
vec4.mul Function
vec4.multiply Function
vec4.negate Function
vec4.normalize Function
vec4.random Function
vec4.round Function
vec4.scale Function
vec4.scaleAndAdd Function
vec4.set Function
vec4.sqrDist Function
vec4.sqrLen Function
vec4.squaredDistance Function
vec4.squaredLength Function
vec4.str Function
vec4.sub Function
vec4.subtract Function
vec4.transformMat4 Function
vec4.transformQuat Function
vec4.zero Function
versionOfQid Function

@sascom/commonjs#

Type Kind Description
@sascom/commonjs/logger.js.log Variable
BitSetFactory Class Chooses the bitset implementation behind QidSet and friends
Context Class The shared runtime context of the common library: its worker pool and WebAssembly modules
EncodingUtils Class Base64 helpers for binary data
FormatQuantityOptions Interface Options of formatQuantity
Formatters Class Commonly used formatting methods. Explicitly not part of the public API
GroupStat Class A group of statistics
ParsedQuantity Interface A quantity that parsed
QuantityKind Type alias The kinds of quantity parseQuantity reads. Values are in mm, degrees, mm² and mm³
QuantityListOptions Interface Options of parseQuantityList
QuantityOptions Interface Options of parseQuantity
QuantityParseError Interface Text that did not parse
QuantityUnit Interface A unit the quantity parser knows
RootStat Class The root of a statistics tree
Sets Class Set helpers that also accept sets offering their own difference() (QidSet)
Stat Interface A node in the statistics tree shown by StatsOverlay (a type only: the base class is not exported)
StatsOverlay Class A small overlay that shows a statistics tree
TinyColor Class
UNITS Variable Every unit the quantity parser knows
Utils Class
XmlUtils Class XML helpers
bimworks.LogProxy Interface
formatQuantity Function
log Variable
parseQuantity Function
parseQuantityList Function
tinycolor.ColorFormats.Alpha Interface
tinycolor.ColorFormats.HSL Interface
tinycolor.ColorFormats.HSLA Interface
tinycolor.ColorFormats.HSV Interface
tinycolor.ColorFormats.HSVA Interface
tinycolor.ColorFormats.PRGB Interface
tinycolor.ColorFormats.PRGBA Interface
tinycolor.ColorFormats.RGB Interface
tinycolor.ColorFormats.RGBA Interface
tinycolor.ColorInput Type alias
tinycolor.ColorInputWithoutInstance Type alias
tinycolor.ConstructorOptions Interface
tinycolor.MostReadableArgs Interface
tinycolor.WCAG2Options Interface
toBulAngle Function
toBulLength Function
unitOf Function

@sascom/jsclient#

Type Kind Description
AuthToken Interface
BimWorksTaskError Interface
CLIENT_HEADER Variable The X-BIMworks-Client header.
Client Class
ClientFactory Class
ClientFactorySettings Interface
ClientIdentity Class What a client says it is, on every request (the X-BIMworks-Client header) and as the first message of its WebSocket. Immutable: every with… returns a new i…
DataInputStream Class
NetworkUsageReporter Class Client-side network accounting. Inert until enable is called — the BIM.works app does that only when the server reports client reporting is switched on.
NetworkUsageSettings Interface
ResourceTimingEntry Interface The fields of a PerformanceResourceTiming the reporter reads, as a worker can post them.
ServerInfo Interface Which fleet node a socket is on, and which boot of it (docs/multi-node-plan.md §5.7.2).
Task Class