Reference·JavaScript · @bimworks/viewercommonJavaScript

matchingRule

Function in @bimworks/viewercommon.

API catalogue · @bimworks/viewercommon · Function

TypeScript#
function matchingRule

Members#

Member Kind Description
matchingRule Method The first rule of the list that fits the facts, or null

matchingRule#

TypeScript#
matchingRule(rules: (Viewer3dEngineRule)[] | null | undefined, facts: Viewer3dPlatformFacts): Viewer3dEngineRule | null

The first rule of the list that fits the facts, or null

Parameters#

Name Type Description
rules (Viewer3dEngineRule)[] | null | undefined
facts Viewer3dPlatformFacts