diagnostics
Functions
computeChecks()
function computeChecks(__namedParameters): object;
Parameters
| Parameter | Type |
|---|---|
__namedParameters | DiagnosticInput |
Returns
object
| Name | Type |
|---|---|
checks | Check[] |
overall | CheckState |
summarizeInternalNodes()
function summarizeInternalNodes(summary?): object;
Parameters
| Parameter | Type |
|---|---|
summary? | { materials: object[]; nodes: object[]; } |
summary.materials | object[] |
summary.nodes | object[] |
Returns
object
| Name | Type |
|---|---|
types | [string, number][] |
count | number |
Interfaces
Check
Properties
| Property | Type |
|---|---|
name | string |
state | CheckState |
messages | string[] |
ValidationIssue
Properties
| Property | Type |
|---|---|
level | "error" | "warning" |
rule? | string |
code? | string |
location | string |
message | string |
PreviewReport
Properties
| Property | Type |
|---|---|
state | "error" | "idle" | "loading" | "ready" |
resources | "unchecked" | "loading" | "loaded" |
failedResources | string[] |
DiagnosticInput
Properties
| Property | Type |
|---|---|
issues | ValidationIssue[] |
parseError? | string |
viewerError? | string | null |
preview? | PreviewReport |
resourcesChecked? | boolean |
dependencyHint? | string |
Type Aliases
CheckState
type CheckState = "passed" | "failed" | "warning" | "pending" | "unchecked";
Framework-independent diagnostics shared by the website and editor webview.