---
title: platformFacts
summary: Function in @bimworks/viewercommon.
order: 10
languages: [javascript]
sdk-package: JavaScript · @bimworks/viewercommon
---

# platformFacts

[[page:reference/javascript/api|API catalogue]] · `@bimworks/viewercommon` · Function

````typescript sdk=js sdk-namespace="@bimworks/viewercommon"
function platformFacts
````



## Members

| Member | Kind | Description |
|---|---|---|
| [[page:reference/javascript/bimworks-viewercommon/platformfacts-511928e7#member-bimworks-viewercommon-platformfacts-2895b75e0a28|platformFacts]] | Method | The facts the rules match on: the platform's, plus the adapter's when given |

## `platformFacts` {#member-bimworks-viewercommon-platformfacts-2895b75e0a28}

````typescript sdk=js sdk-namespace="@bimworks/viewercommon"
platformFacts(info?: WebGpuAdapterInfo | null): Viewer3dPlatformFacts
````

The facts the rules match on: the platform's, plus the adapter's when given

### Parameters

| Name | Type | Description |
|---|---|---|
| `info` | `WebGpuAdapterInfo \| null` |  |
