• Preparing search index...
  • The search index is not available
@xeokit/sdk - v0.1.0
  • @xeokit/sdk
  • inspect
  • sceneModel
  • inspectionReportToJson

Function inspectionReportToJson

  • inspectionReportToJson(
        report: inspect.sceneModel.InspectionReport,
        params?: inspect.sceneModel.InspectionReportToJsonParams,
    ): inspect.sceneModel.InspectionReportJson

    Convert an InspectionReport to a plain JSON-serializable object — counts, per-code aggregation (with friendly labels), and every issue. Suitable for JSON.stringify straight out of the box.

    Sample output:

    {
    "generatedAt": "2026-04-30T12:34:56.789Z",
    "counts": {"error": 0, "warning": 12, "info": 0, "total": 12},
    "byCode": [
    {"code": "GEOMETRY_DUPLICATE", "label": "Duplicate geometry", "count": 8, "severity": "warning"},
    ...
    ],
    "issues": [
    {"severity": "warning", "code": "GEOMETRY_DUPLICATE", "message": "...", "summary": "...", ...},
    ...
    ]
    }

    Parameters

    • report: inspect.sceneModel.InspectionReport
    • params: inspect.sceneModel.InspectionReportToJsonParams = {}

    Returns inspect.sceneModel.InspectionReportJson

    • Defined in packages/sdk/src/inspect/sceneModel/serializers/inspectionReportToJson.ts:103

Settings

Member Visibility
@xeokit/sdk - v0.1.0
  • Loading...

Generated using TypeDoc