A class responsible for tracking issues in the current world.

Properties

#moduleTypeMap: Map<string, ModuleSubTypeCounts> = ...

Keep track of valid Documents in the world that are using module-provided sub-types.

#documentValidationFailures: object = {}

Keep track of document validation failures.

#usabilityIssues: Record<string, UsabilityIssue> = {}

Keep track of any usability issues related to browser or technology versions.

#resolutionTooLowNotification: number

Record a reference to a resolution notification ID so that we can remove it if the problem is remedied.

#MIN_RESOLUTION: {
    WIDTH: number;
    HEIGHT: number;
} = ...

The minimum supported resolution.

Type declaration

  • WIDTH: number
  • HEIGHT: number
#BROWSER_TESTS: Record<string, BrowserTest> = ...

The minimum supported client versions.

Accessors

  • get validationFailures(): object
  • Retrieve the tracked validation failures.

    Returns object

Methods

  • Internal

    Detect and display warnings for known performance issues which may occur due to the user's hardware or browser configuration.

    Returns void

  • Internal

    Add an invalid Document to the module-provided sub-type counts.

    Parameters

    • cls: (new () => Document)

      The Document class.

        • new (): Document
        • Returns Document

    • source: object

      The Document's source data.

    • Optional options: {
          decrement: boolean;
      } = {}
      • decrement: boolean

        Decrement the counter rather than incrementing it.

    Returns void

  • Internal

    Track a validation failure that occurred in a WorldCollection.

    Parameters

    • collection: WorldCollection

      The parent collection.

    • source: object

      The Document's source data.

    • error: DataModelValidationError

      The validation error.

    Returns void

  • Internal

    Detect and record certain usability error messages which are likely to result in the user having a bad experience.

    Returns void

  • Add a Document to the count of module-provided sub-types.

    Parameters

    • documentName: string

      The Document name.

    • subType: string

      The Document's sub-type.

    • Optional options: {
          decrement: boolean;
      } = {}
      • decrement: boolean

        Decrement the counter rather than incrementing it.

    Returns void

  • Detect the user's browser and display a notification if it is below the minimum required version.

    Returns void

  • Detect the user's resolution and display a notification if it is too small.

    Returns void