1 |
- {"ast":null,"code":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.FontCache = void 0;\nvar FontCache = function () {\n function FontCache(jax) {\n this.cache = new Map();\n this.defs = null;\n this.localID = '';\n this.nextID = 0;\n this.jax = jax;\n }\n FontCache.prototype.cachePath = function (variant, C, path) {\n var id = 'MJX-' + this.localID + (this.jax.font.getVariant(variant).cacheID || '') + '-' + C;\n if (!this.cache.has(id)) {\n this.cache.set(id, path);\n this.jax.adaptor.append(this.defs, this.jax.svg('path', {\n id: id,\n d: path\n }));\n }\n return id;\n };\n FontCache.prototype.clearLocalID = function () {\n this.localID = '';\n };\n FontCache.prototype.useLocalID = function (id) {\n if (id === void 0) {\n id = null;\n }\n this.localID = (id == null ? ++this.nextID : id) + (id === '' ? '' : '-');\n };\n FontCache.prototype.clearCache = function () {\n this.cache = new Map();\n this.defs = this.jax.svg('defs');\n };\n FontCache.prototype.getCache = function () {\n return this.defs;\n };\n return FontCache;\n}();\nexports.FontCache = FontCache;","map":{"version":3,"names":["Object","defineProperty","exports","value","FontCache","jax","cache","Map","defs","localID","nextID","prototype","cachePath","variant","C","path","id","font","getVariant","cacheID","has","set","adaptor","append","svg","d","clearLocalID","useLocalID","clearCache","getCache"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/mathjax-full/js/output/svg/FontCache.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.FontCache = void 0;\nvar FontCache = (function () {\n function FontCache(jax) {\n this.cache = new Map();\n this.defs = null;\n this.localID = '';\n this.nextID = 0;\n this.jax = jax;\n }\n FontCache.prototype.cachePath = function (variant, C, path) {\n var id = 'MJX-' + this.localID + (this.jax.font.getVariant(variant).cacheID || '') + '-' + C;\n if (!this.cache.has(id)) {\n this.cache.set(id, path);\n this.jax.adaptor.append(this.defs, this.jax.svg('path', { id: id, d: path }));\n }\n return id;\n };\n FontCache.prototype.clearLocalID = function () {\n this.localID = '';\n };\n FontCache.prototype.useLocalID = function (id) {\n if (id === void 0) { id = null; }\n this.localID = (id == null ? ++this.nextID : id) + (id === '' ? '' : '-');\n };\n FontCache.prototype.clearCache = function () {\n this.cache = new Map();\n this.defs = this.jax.svg('defs');\n };\n FontCache.prototype.getCache = function () {\n return this.defs;\n };\n return FontCache;\n}());\nexports.FontCache = FontCache;\n"],"mappings":"AAAA,YAAY;;AACZA,MAAM,CAACC,cAAc,CAACC,OAAO,EAAE,YAAY,EAAE;EAAEC,KAAK,EAAE;AAAK,CAAC,CAAC;AAC7DD,OAAO,CAACE,SAAS,GAAG,KAAK,CAAC;AAC1B,IAAIA,SAAS,GAAI,YAAY;EACzB,SAASA,SAASA,CAACC,GAAG,EAAE;IACpB,IAAI,CAACC,KAAK,GAAG,IAAIC,GAAG,CAAC,CAAC;IACtB,IAAI,CAACC,IAAI,GAAG,IAAI;IAChB,IAAI,CAACC,OAAO,GAAG,EAAE;IACjB,IAAI,CAACC,MAAM,GAAG,CAAC;IACf,IAAI,CAACL,GAAG,GAAGA,GAAG;EAClB;EACAD,SAAS,CAACO,SAAS,CAACC,SAAS,GAAG,UAAUC,OAAO,EAAEC,CAAC,EAAEC,IAAI,EAAE;IACxD,IAAIC,EAAE,GAAG,MAAM,GAAG,IAAI,CAACP,OAAO,IAAI,IAAI,CAACJ,GAAG,CAACY,IAAI,CAACC,UAAU,CAACL,OAAO,CAAC,CAACM,OAAO,IAAI,EAAE,CAAC,GAAG,GAAG,GAAGL,CAAC;IAC5F,IAAI,CAAC,IAAI,CAACR,KAAK,CAACc,GAAG,CAACJ,EAAE,CAAC,EAAE;MACrB,IAAI,CAACV,KAAK,CAACe,GAAG,CAACL,EAAE,EAAED,IAAI,CAAC;MACxB,IAAI,CAACV,GAAG,CAACiB,OAAO,CAACC,MAAM,CAAC,IAAI,CAACf,IAAI,EAAE,IAAI,CAACH,GAAG,CAACmB,GAAG,CAAC,MAAM,EAAE;QAAER,EAAE,EAAEA,EAAE;QAAES,CAAC,EAAE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