SxManager

How to get SxManager

ES2015+:

import SxManager from 'fontoxml-modular-schema-experience/sxManager'

ES5:

define([
	'fontoxml-modular-schema-experience/sxManager'
], function (
	SxManager
) {
});

Type: Class

The SxManager records configuration modules to be used in the creation of SchemaExperience instances. A SchemaExperience uses a subset of the modules configured in the entire application.

A module is automatically created for every package using the dependencies specified in that package's manifest. This module can be configured by creating a configureSxModule.js file in the src root of the package.

define([...], function (...) {
    'use strict';

    return function configureSxModule (sxModule) {
        // Configure sxModule, e.g., using fontoxml-families
    };
});

Methods

Name Description
defineSchemaExperience

Defines a schema experience for lazy loading.


  Arguments
# Name Type Description
1. schemaDataPath String
2. moduleNames Array<String>
  Returns

Type: Function

Function to load the SchemaExperience when it is required

Returns

Type: Promise<SchemaExperience>