Debian Codegraph @

ts/output/svg/Wrappers/msubsup.ts

raw symbols SCIP
1 /*************************************************************
2 *
3 * Copyright (c) 2018-2022 The MathJax Consortium
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18 /**
19 * @fileoverview Implements the SVGmsubsup wrapper for the MmlMsubsup object
20 * and the special cases SVGmsub and SVGmsup
21 *
22 * @author [email protected] (Davide Cervone)
23 */
24
25 import {SVGWrapperscip-typescript npm mathjax-full 3.2.2 ts/output/svg/`Wrapper.ts`/SVGWrapper#, Constructorscip-typescript npm mathjax-full 3.2.2 ts/output/common/`Wrapper.ts`/Constructor#} from '../Wrapper.js'scip-typescript npm mathjax-full 3.2.2 ts/output/svg/`Wrapper.ts`/;
26 import {SVGscriptbasescip-typescript npm mathjax-full 3.2.2 ts/output/svg/Wrappers/`scriptbase.ts`/SVGscriptbase#} from './scriptbase.js'scip-typescript npm mathjax-full 3.2.2 ts/output/svg/Wrappers/`scriptbase.ts`/;
27 import {CommonMsubMixinscip-typescript npm mathjax-full 3.2.2 ts/output/common/Wrappers/`msubsup.ts`/CommonMsubMixin().} from '../../common/Wrappers/msubsup.js'scip-typescript npm mathjax-full 3.2.2 ts/output/common/Wrappers/`msubsup.ts`/;
28 import {CommonMsupMixinscip-typescript npm mathjax-full 3.2.2 ts/output/common/Wrappers/`msubsup.ts`/CommonMsupMixin().} from '../../common/Wrappers/msubsup.js'scip-typescript npm mathjax-full 3.2.2 ts/output/common/Wrappers/`msubsup.ts`/;
29 import {CommonMsubsupMixinscip-typescript npm mathjax-full 3.2.2 ts/output/common/Wrappers/`msubsup.ts`/CommonMsubsupMixin().} from '../../common/Wrappers/msubsup.js'scip-typescript npm mathjax-full 3.2.2 ts/output/common/Wrappers/`msubsup.ts`/;
30 import {MmlMsubsupscip-typescript npm mathjax-full 3.2.2 ts/core/MmlTree/MmlNodes/`msubsup.ts`/MmlMsubsup#, MmlMsubscip-typescript npm mathjax-full 3.2.2 ts/core/MmlTree/MmlNodes/`msubsup.ts`/MmlMsub#, MmlMsupscip-typescript npm mathjax-full 3.2.2 ts/core/MmlTree/MmlNodes/`msubsup.ts`/MmlMsup#} from '../../../core/MmlTree/MmlNodes/msubsup.js'scip-typescript npm mathjax-full 3.2.2 ts/core/MmlTree/MmlNodes/`msubsup.ts`/;
31
32 /*****************************************************************/
33 /**
34 * The SVGmsub wrapper for the MmlMsub object
35 *
36 * @template N The HTMLElement node class
37 * @template T The Text node class
38 * @template D The Document class
39 */
40 // @ts-ignore
41 export class SVGmsubscip-typescript npm mathjax-full 3.2.2 ts/output/svg/Wrappers/`msubsup.ts`/SVGmsub#<Nscip-typescript npm mathjax-full 3.2.2 ts/output/svg/Wrappers/`msubsup.ts`/SVGmsub#[N], Tscip-typescript npm mathjax-full 3.2.2 ts/output/svg/Wrappers/`msubsup.ts`/SVGmsub#[T], Dscip-typescript npm mathjax-full 3.2.2 ts/output/svg/Wrappers/`msubsup.ts`/SVGmsub#[D]> extends
42 CommonMsubMixinscip-typescript npm mathjax-full 3.2.2 ts/output/common/Wrappers/`msubsup.ts`/CommonMsubMixin().<SVGWrapperscip-typescript npm mathjax-full 3.2.2 ts/output/svg/`Wrapper.ts`/SVGWrapper#<any, any, any>, Constructorscip-typescript npm mathjax-full 3.2.2 ts/output/common/`Wrapper.ts`/Constructor#<SVGscriptbasescip-typescript npm mathjax-full 3.2.2 ts/output/svg/Wrappers/`scriptbase.ts`/SVGscriptbase#<any, any, any>>>(SVGscriptbasescip-typescript npm mathjax-full 3.2.2 ts/output/svg/Wrappers/`scriptbase.ts`/SVGscriptbase#) {
43
44 /**
45 * The msub wrapper
46 */
47 public static kindscip-typescript npm mathjax-full 3.2.2 ts/output/svg/Wrappers/`msubsup.ts`/SVGmsub#kind. = MmlMsubscip-typescript npm mathjax-full 3.2.2 ts/core/MmlTree/MmlNodes/`msubsup.ts`/MmlMsub#.prototype.kindscip-typescript npm mathjax-full 3.2.2 ts/core/MmlTree/MmlNodes/`msubsup.ts`/MmlMsub#`<get>kind`().;
48
49 }
50
51 /*****************************************************************/
52 /**
53 * The SVGmsup wrapper for the MmlMsup object
54 *
55 * @template N The HTMLElement node class
56 * @template T The Text node class
57 * @template D The Document class
58 */
59 // @ts-ignore
60 export class SVGmsupscip-typescript npm mathjax-full 3.2.2 ts/output/svg/Wrappers/`msubsup.ts`/SVGmsup#<Nscip-typescript npm mathjax-full 3.2.2 ts/output/svg/Wrappers/`msubsup.ts`/SVGmsup#[N], Tscip-typescript npm mathjax-full 3.2.2 ts/output/svg/Wrappers/`msubsup.ts`/SVGmsup#[T], Dscip-typescript npm mathjax-full 3.2.2 ts/output/svg/Wrappers/`msubsup.ts`/SVGmsup#[D]> extends
61 CommonMsupMixinscip-typescript npm mathjax-full 3.2.2 ts/output/common/Wrappers/`msubsup.ts`/CommonMsupMixin().<SVGWrapperscip-typescript npm mathjax-full 3.2.2 ts/output/svg/`Wrapper.ts`/SVGWrapper#<any, any, any>, Constructorscip-typescript npm mathjax-full 3.2.2 ts/output/common/`Wrapper.ts`/Constructor#<SVGscriptbasescip-typescript npm mathjax-full 3.2.2 ts/output/svg/Wrappers/`scriptbase.ts`/SVGscriptbase#<any, any, any>>>(SVGscriptbasescip-typescript npm mathjax-full 3.2.2 ts/output/svg/Wrappers/`scriptbase.ts`/SVGscriptbase#) {
62
63 /**
64 * The msup wrapper
65 */
66 public static kindscip-typescript npm mathjax-full 3.2.2 ts/output/svg/Wrappers/`msubsup.ts`/SVGmsup#kind. = MmlMsupscip-typescript npm mathjax-full 3.2.2 ts/core/MmlTree/MmlNodes/`msubsup.ts`/MmlMsup#.prototype.kindscip-typescript npm mathjax-full 3.2.2 ts/core/MmlTree/MmlNodes/`msubsup.ts`/MmlMsup#`<get>kind`().;
67
68 }
69
70 /*****************************************************************/
71 /**
72 * The SVGmsubsup wrapper for the MmlMsubsup object
73 *
74 * @template N The HTMLElement node class
75 * @template T The Text node class
76 * @template D The Document class
77 */
78 // @ts-ignore
79 export class SVGmsubsupscip-typescript npm mathjax-full 3.2.2 ts/output/svg/Wrappers/`msubsup.ts`/SVGmsubsup#<Nscip-typescript npm mathjax-full 3.2.2 ts/output/svg/Wrappers/`msubsup.ts`/SVGmsubsup#[N], Tscip-typescript npm mathjax-full 3.2.2 ts/output/svg/Wrappers/`msubsup.ts`/SVGmsubsup#[T], Dscip-typescript npm mathjax-full 3.2.2 ts/output/svg/Wrappers/`msubsup.ts`/SVGmsubsup#[D]> extends
80 CommonMsubsupMixinscip-typescript npm mathjax-full 3.2.2 ts/output/common/Wrappers/`msubsup.ts`/CommonMsubsupMixin().<SVGWrapperscip-typescript npm mathjax-full 3.2.2 ts/output/svg/`Wrapper.ts`/SVGWrapper#<any, any, any>, Constructorscip-typescript npm mathjax-full 3.2.2 ts/output/common/`Wrapper.ts`/Constructor#<SVGscriptbasescip-typescript npm mathjax-full 3.2.2 ts/output/svg/Wrappers/`scriptbase.ts`/SVGscriptbase#<any, any, any>>>(SVGscriptbasescip-typescript npm mathjax-full 3.2.2 ts/output/svg/Wrappers/`scriptbase.ts`/SVGscriptbase#) {
81
82 /**
83 * The msubsup wrapper
84 */
85 public static kindscip-typescript npm mathjax-full 3.2.2 ts/output/svg/Wrappers/`msubsup.ts`/SVGmsubsup#kind. = MmlMsubsupscip-typescript npm mathjax-full 3.2.2 ts/core/MmlTree/MmlNodes/`msubsup.ts`/MmlMsubsup#.prototype.kindscip-typescript npm mathjax-full 3.2.2 ts/core/MmlTree/MmlNodes/`msubsup.ts`/MmlMsubsup#`<get>kind`().;
86
87 /**
88 * @override
89 */
90 public toSVGscip-typescript npm mathjax-full 3.2.2 ts/output/svg/Wrappers/`msubsup.ts`/SVGmsubsup#toSVG().(parentscip-typescript npm mathjax-full 3.2.2 ts/output/svg/Wrappers/`msubsup.ts`/SVGmsubsup#toSVG().(parent): Nscip-typescript npm mathjax-full 3.2.2 ts/output/svg/Wrappers/`msubsup.ts`/SVGmsubsup#[N]) {
91 const svg = this.standardSVGnodescip-typescript npm mathjax-full 3.2.2 ts/output/svg/`Wrapper.ts`/SVGWrapper#standardSVGnode().(parentscip-typescript npm mathjax-full 3.2.2 ts/output/svg/Wrappers/`msubsup.ts`/SVGmsubsup#toSVG().(parent));
92 const [base, sup, sub] = [this.baseChildscip-typescript npm mathjax-full 3.2.2 ts/output/common/Wrappers/`scriptbase.ts`/CommonScriptbase#baseChild., this.supChildscip-typescript npm mathjax-full 3.2.2 ts/output/common/Wrappers/`msubsup.ts`/CommonMsubsup#supChild., this.subChildscip-typescript npm mathjax-full 3.2.2 ts/output/common/Wrappers/`msubsup.ts`/CommonMsubsup#subChild.];
93 const w = this.getBaseWidthscip-typescript npm mathjax-full 3.2.2 ts/output/common/Wrappers/`scriptbase.ts`/CommonScriptbase#getBaseWidth().();
94 const x = this.getAdjustedIcscip-typescript npm mathjax-full 3.2.2 ts/output/common/Wrappers/`scriptbase.ts`/CommonScriptbase#getAdjustedIc().();
95 const [u, v] = this.getUVQscip-typescript npm mathjax-full 3.2.2 ts/output/common/Wrappers/`msubsup.ts`/CommonMsubsup#getUVQ().();
96
97 base.toSVGscip-typescript npm mathjax-full 3.2.2 ts/output/svg/`Wrapper.ts`/SVGWrapper#toSVG().(svg);
98 sup.toSVGscip-typescript npm mathjax-full 3.2.2 ts/output/svg/`Wrapper.ts`/SVGWrapper#toSVG().(svg);
99 sub.toSVGscip-typescript npm mathjax-full 3.2.2 ts/output/svg/`Wrapper.ts`/SVGWrapper#toSVG().(svg);
100
101 sub.placescip-typescript npm mathjax-full 3.2.2 ts/output/svg/`Wrapper.ts`/SVGWrapper#place().(w, v);
102 sup.placescip-typescript npm mathjax-full 3.2.2 ts/output/svg/`Wrapper.ts`/SVGWrapper#place().(w + x, u);
103 }
104
105 }