Debian Codegraph @

ts/highlighter/mml_css_highlighter.ts

raw symbols SCIP
1 //
2 // Copyright 2015-2021 Volker Sorge
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15
16 /**
17 * @file Highlighter for native MathML implementations that fully
18 * support CSS.
19 * @author [email protected] (Volker Sorge)
20 */
21
22 import { CssHighlighterscip-typescript npm . . highlighter/`css_highlighter.ts`/CssHighlighter# } from './css_highlighter.js'scip-typescript npm . . highlighter/`css_highlighter.ts`/;
23
24 export class MmlCssHighlighterscip-typescript npm . . highlighter/`mml_css_highlighter.ts`/MmlCssHighlighter# extends CssHighlighterscip-typescript npm . . highlighter/`css_highlighter.ts`/CssHighlighter# {
25 /**
26 * @override
27 */
28 constructorscip-typescript npm . . highlighter/`mml_css_highlighter.ts`/MmlCssHighlighter#`<constructor>`().() {
29 super();
30 this.mactionNamescip-typescript npm . . highlighter/`abstract_highlighter.ts`/AbstractHighlighter#mactionName. = 'maction';
31 }
32
33 /**
34 * @override
35 */
36 public getMactionNodesscip-typescript npm . . highlighter/`mml_css_highlighter.ts`/MmlCssHighlighter#getMactionNodes().(nodescip-typescript npm . . highlighter/`mml_css_highlighter.ts`/MmlCssHighlighter#getMactionNodes().(node): HTMLElementscip-typescript npm typescript 5.9.3 lib/`lib.dom.d.ts`/HTMLElement#) {
37 return Arrayscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/Array#.fromscip-typescript npm typescript 5.9.3 lib/`lib.es2015.core.d.ts`/ArrayConstructor#from().(
38 nodescip-typescript npm . . highlighter/`mml_css_highlighter.ts`/MmlCssHighlighter#getMactionNodes().(node).getElementsByTagNamescip-typescript npm typescript 5.9.3 lib/`lib.dom.d.ts`/Element#getElementsByTagName().(this.mactionNamescip-typescript npm . . highlighter/`abstract_highlighter.ts`/AbstractHighlighter#mactionName.)
39 ) as HTMLElementscip-typescript npm typescript 5.9.3 lib/`lib.dom.d.ts`/HTMLElement#[];
40 }
41
42 /**
43 * @override
44 */
45 public isMactionNodescip-typescript npm . . highlighter/`mml_css_highlighter.ts`/MmlCssHighlighter#isMactionNode().(nodescip-typescript npm . . highlighter/`mml_css_highlighter.ts`/MmlCssHighlighter#isMactionNode().(node): HTMLElementscip-typescript npm typescript 5.9.3 lib/`lib.dom.d.ts`/HTMLElement#) {
46 return nodescip-typescript npm . . highlighter/`mml_css_highlighter.ts`/MmlCssHighlighter#isMactionNode().(node).tagNamescip-typescript npm typescript 5.9.3 lib/`lib.dom.d.ts`/Element#tagName. === this.mactionNamescip-typescript npm . . highlighter/`abstract_highlighter.ts`/AbstractHighlighter#mactionName.;
47 }
48 }