MCPcopy Create free account
hub / github.com/microsoft/SandDance / Stylesheet1

Function Stylesheet1

docs/app/js/sanddance-app.js:21752–21767  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

21750 * @public
21751 */ var Stylesheet = /** @class */ function() {
21752 function Stylesheet1(config) {
21753 this._rules = [];
21754 this._preservedRules = [];
21755 this._rulesToInsert = [];
21756 this._counter = 0;
21757 this._keyToClassName = {};
21758 this._onResetCallbacks = [];
21759 this._classNameToArgs = {};
21760 this._config = (0, _tslib.__assign)({
21761 injectionMode: InjectionMode.insertNode,
21762 defaultPrefix: "css",
21763 namespace: undefined,
21764 cspSettings: undefined
21765 }, config);
21766 this._keyToClassName = this._config.classNameCache || {};
21767 }
21768 /**
21769 * Gets the singleton instance.
21770 */ Stylesheet1.getInstance = function() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected