Initial ESlint conversion
This commit is contained in:
@ -6,7 +6,7 @@ import { MathBase } from "../n-ary";
|
||||
import { MathBracketProperties } from "./math-bracket-properties";
|
||||
|
||||
export class MathAngledBrackets extends XmlComponent {
|
||||
constructor(options: { readonly children: MathComponent[] }) {
|
||||
public constructor(options: { readonly children: MathComponent[] }) {
|
||||
super("m:d");
|
||||
|
||||
this.root.push(
|
||||
|
@ -6,7 +6,7 @@ class MathBeginningCharacterAttributes extends XmlAttributeComponent<{ readonly
|
||||
}
|
||||
|
||||
export class MathBeginningCharacter extends XmlComponent {
|
||||
constructor(character: string) {
|
||||
public constructor(character: string) {
|
||||
super("m:begChr");
|
||||
|
||||
this.root.push(new MathBeginningCharacterAttributes({ character }));
|
||||
|
@ -5,7 +5,7 @@ import { MathBeginningCharacter } from "./math-beginning-character";
|
||||
import { MathEndingCharacter } from "./math-ending-char";
|
||||
|
||||
export class MathBracketProperties extends XmlComponent {
|
||||
constructor(options?: { readonly beginningCharacter: string; readonly endingCharacter: string }) {
|
||||
public constructor(options?: { readonly beginningCharacter: string; readonly endingCharacter: string }) {
|
||||
super("m:dPr");
|
||||
|
||||
if (!!options) {
|
||||
|
@ -6,7 +6,7 @@ import { MathBase } from "../n-ary";
|
||||
import { MathBracketProperties } from "./math-bracket-properties";
|
||||
|
||||
export class MathCurlyBrackets extends XmlComponent {
|
||||
constructor(options: { readonly children: MathComponent[] }) {
|
||||
public constructor(options: { readonly children: MathComponent[] }) {
|
||||
super("m:d");
|
||||
|
||||
this.root.push(
|
||||
|
@ -6,7 +6,7 @@ class MathEndingCharacterAttributes extends XmlAttributeComponent<{ readonly cha
|
||||
}
|
||||
|
||||
export class MathEndingCharacter extends XmlComponent {
|
||||
constructor(character: string) {
|
||||
public constructor(character: string) {
|
||||
super("m:endChr");
|
||||
|
||||
this.root.push(new MathEndingCharacterAttributes({ character }));
|
||||
|
@ -6,7 +6,7 @@ import { MathBase } from "../n-ary";
|
||||
import { MathBracketProperties } from "./math-bracket-properties";
|
||||
|
||||
export class MathRoundBrackets extends XmlComponent {
|
||||
constructor(options: { readonly children: MathComponent[] }) {
|
||||
public constructor(options: { readonly children: MathComponent[] }) {
|
||||
super("m:d");
|
||||
|
||||
this.root.push(new MathBracketProperties());
|
||||
|
@ -6,7 +6,7 @@ import { MathBase } from "../n-ary";
|
||||
import { MathBracketProperties } from "./math-bracket-properties";
|
||||
|
||||
export class MathSquareBrackets extends XmlComponent {
|
||||
constructor(options: { readonly children: MathComponent[] }) {
|
||||
public constructor(options: { readonly children: MathComponent[] }) {
|
||||
super("m:d");
|
||||
|
||||
this.root.push(
|
||||
|
@ -3,7 +3,7 @@ import { XmlComponent } from "@file/xml-components";
|
||||
import { MathComponent } from "../math-component";
|
||||
|
||||
export class MathDenominator extends XmlComponent {
|
||||
constructor(children: MathComponent[]) {
|
||||
public constructor(children: MathComponent[]) {
|
||||
super("m:den");
|
||||
|
||||
for (const child of children) {
|
||||
|
@ -10,7 +10,7 @@ export interface IMathFractionOptions {
|
||||
}
|
||||
|
||||
export class MathFraction extends XmlComponent {
|
||||
constructor(options: IMathFractionOptions) {
|
||||
public constructor(options: IMathFractionOptions) {
|
||||
super("m:f");
|
||||
|
||||
this.root.push(new MathNumerator(options.numerator));
|
||||
|
@ -3,7 +3,7 @@ import { XmlComponent } from "@file/xml-components";
|
||||
import { MathComponent } from "../math-component";
|
||||
|
||||
export class MathNumerator extends XmlComponent {
|
||||
constructor(children: MathComponent[]) {
|
||||
public constructor(children: MathComponent[]) {
|
||||
super("m:num");
|
||||
|
||||
for (const child of children) {
|
||||
|
@ -3,7 +3,7 @@ import { XmlComponent } from "@file/xml-components";
|
||||
import { MathComponent } from "../math-component";
|
||||
|
||||
export class MathFunctionName extends XmlComponent {
|
||||
constructor(children: MathComponent[]) {
|
||||
public constructor(children: MathComponent[]) {
|
||||
super("m:fName");
|
||||
|
||||
for (const child of children) {
|
||||
|
@ -2,7 +2,7 @@
|
||||
import { XmlComponent } from "@file/xml-components";
|
||||
|
||||
export class MathFunctionProperties extends XmlComponent {
|
||||
constructor() {
|
||||
public constructor() {
|
||||
super("m:funcPr");
|
||||
}
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ export interface IMathFunctionOptions {
|
||||
}
|
||||
|
||||
export class MathFunction extends XmlComponent {
|
||||
constructor(options: IMathFunctionOptions) {
|
||||
public constructor(options: IMathFunctionOptions) {
|
||||
super("m:func");
|
||||
|
||||
this.root.push(new MathFunctionProperties());
|
||||
|
@ -4,7 +4,7 @@ import { XmlComponent } from "@file/xml-components";
|
||||
import { MathText } from "./math-text";
|
||||
|
||||
export class MathRun extends XmlComponent {
|
||||
constructor(text: string) {
|
||||
public constructor(text: string) {
|
||||
super("m:r");
|
||||
|
||||
this.root.push(new MathText(text));
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { XmlComponent } from "@file/xml-components";
|
||||
|
||||
export class MathText extends XmlComponent {
|
||||
constructor(text: string) {
|
||||
public constructor(text: string) {
|
||||
super("m:t");
|
||||
|
||||
this.root.push(text);
|
||||
|
@ -8,7 +8,7 @@ export interface IMathOptions {
|
||||
}
|
||||
|
||||
export class Math extends XmlComponent {
|
||||
constructor(options: IMathOptions) {
|
||||
public constructor(options: IMathOptions) {
|
||||
super("m:oMath");
|
||||
|
||||
for (const child of options.children) {
|
||||
|
@ -6,7 +6,7 @@ class MathAccentCharacterAttributes extends XmlAttributeComponent<{ readonly acc
|
||||
}
|
||||
|
||||
export class MathAccentCharacter extends XmlComponent {
|
||||
constructor(accent: string) {
|
||||
public constructor(accent: string) {
|
||||
super("m:chr");
|
||||
|
||||
this.root.push(new MathAccentCharacterAttributes({ accent }));
|
||||
|
@ -4,7 +4,7 @@ import { XmlComponent } from "@file/xml-components";
|
||||
import { MathComponent } from "../math-component";
|
||||
|
||||
export class MathBase extends XmlComponent {
|
||||
constructor(children: MathComponent[]) {
|
||||
public constructor(children: MathComponent[]) {
|
||||
super("m:e");
|
||||
|
||||
for (const child of children) {
|
||||
|
@ -6,7 +6,7 @@ class MathLimitLocationAttributes extends XmlAttributeComponent<{ readonly value
|
||||
}
|
||||
|
||||
export class MathLimitLocation extends XmlComponent {
|
||||
constructor() {
|
||||
public constructor() {
|
||||
super("m:limLoc");
|
||||
|
||||
this.root.push(new MathLimitLocationAttributes({ value: "undOvr" }));
|
||||
|
@ -7,7 +7,7 @@ import { MathSubScriptHide } from "./math-sub-script-hide";
|
||||
import { MathSuperScriptHide } from "./math-super-script-hide";
|
||||
|
||||
export class MathNAryProperties extends XmlComponent {
|
||||
constructor(accent: string, hasSuperScript: boolean, hasSubScript: boolean) {
|
||||
public constructor(accent: string, hasSuperScript: boolean, hasSubScript: boolean) {
|
||||
super("m:naryPr");
|
||||
|
||||
this.root.push(new MathAccentCharacter(accent));
|
||||
|
@ -6,7 +6,7 @@ class MathSubScriptHideAttributes extends XmlAttributeComponent<{ readonly hide:
|
||||
}
|
||||
|
||||
export class MathSubScriptHide extends XmlComponent {
|
||||
constructor() {
|
||||
public constructor() {
|
||||
super("m:subHide");
|
||||
|
||||
this.root.push(new MathSubScriptHideAttributes({ hide: 1 }));
|
||||
|
@ -4,7 +4,7 @@ import { XmlComponent } from "@file/xml-components";
|
||||
import { MathComponent } from "../math-component";
|
||||
|
||||
export class MathSubScriptElement extends XmlComponent {
|
||||
constructor(children: MathComponent[]) {
|
||||
public constructor(children: MathComponent[]) {
|
||||
super("m:sub");
|
||||
|
||||
for (const child of children) {
|
||||
|
@ -14,7 +14,7 @@ export interface IMathSumOptions {
|
||||
}
|
||||
|
||||
export class MathSum extends XmlComponent {
|
||||
constructor(options: IMathSumOptions) {
|
||||
public constructor(options: IMathSumOptions) {
|
||||
super("m:nary");
|
||||
|
||||
this.root.push(new MathNAryProperties("∑", !!options.superScript, !!options.subScript));
|
||||
|
@ -6,7 +6,7 @@ class MathSuperScriptHideAttributes extends XmlAttributeComponent<{ readonly hid
|
||||
}
|
||||
|
||||
export class MathSuperScriptHide extends XmlComponent {
|
||||
constructor() {
|
||||
public constructor() {
|
||||
super("m:supHide");
|
||||
|
||||
this.root.push(new MathSuperScriptHideAttributes({ hide: 1 }));
|
||||
|
@ -4,7 +4,7 @@ import { XmlComponent } from "@file/xml-components";
|
||||
import { MathComponent } from "../math-component";
|
||||
|
||||
export class MathSuperScriptElement extends XmlComponent {
|
||||
constructor(children: MathComponent[]) {
|
||||
public constructor(children: MathComponent[]) {
|
||||
super("m:sup");
|
||||
|
||||
for (const child of children) {
|
||||
|
@ -6,7 +6,7 @@ class MathDegreeHideAttributes extends XmlAttributeComponent<{ readonly hide: nu
|
||||
}
|
||||
|
||||
export class MathDegreeHide extends XmlComponent {
|
||||
constructor() {
|
||||
public constructor() {
|
||||
super("m:degHide");
|
||||
|
||||
this.root.push(new MathDegreeHideAttributes({ hide: 1 }));
|
||||
|
@ -3,7 +3,7 @@ import { XmlComponent } from "@file/xml-components";
|
||||
import { MathComponent } from "../math-component";
|
||||
|
||||
export class MathDegree extends XmlComponent {
|
||||
constructor(children?: MathComponent[]) {
|
||||
public constructor(children?: MathComponent[]) {
|
||||
super("m:deg");
|
||||
|
||||
if (!!children) {
|
||||
|
@ -3,7 +3,7 @@ import { XmlComponent } from "@file/xml-components";
|
||||
import { MathDegreeHide } from "./math-degree-hide";
|
||||
|
||||
export class MathRadicalProperties extends XmlComponent {
|
||||
constructor(hasDegree: boolean) {
|
||||
public constructor(hasDegree: boolean) {
|
||||
super("m:radPr");
|
||||
|
||||
if (!hasDegree) {
|
||||
|
@ -12,7 +12,7 @@ export interface IMathRadicalOptions {
|
||||
}
|
||||
|
||||
export class MathRadical extends XmlComponent {
|
||||
constructor(options: IMathRadicalOptions) {
|
||||
public constructor(options: IMathRadicalOptions) {
|
||||
super("m:rad");
|
||||
|
||||
this.root.push(new MathRadicalProperties(!!options.degree));
|
||||
|
@ -2,7 +2,7 @@
|
||||
import { XmlComponent } from "@file/xml-components";
|
||||
|
||||
export class MathPreSubSuperScriptProperties extends XmlComponent {
|
||||
constructor() {
|
||||
public constructor() {
|
||||
super("m:sPrePr");
|
||||
}
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ export interface IMathPreSubSuperScriptOptions {
|
||||
}
|
||||
|
||||
export class MathPreSubSuperScript extends XmlComponent {
|
||||
constructor(options: IMathPreSubSuperScriptOptions) {
|
||||
public constructor(options: IMathPreSubSuperScriptOptions) {
|
||||
super("m:sPre");
|
||||
|
||||
this.root.push(new MathPreSubSuperScriptProperties());
|
||||
|
@ -2,7 +2,7 @@
|
||||
import { XmlComponent } from "@file/xml-components";
|
||||
|
||||
export class MathSubScriptProperties extends XmlComponent {
|
||||
constructor() {
|
||||
public constructor() {
|
||||
super("m:sSubPr");
|
||||
}
|
||||
}
|
||||
|
@ -11,7 +11,7 @@ export interface IMathSubScriptOptions {
|
||||
}
|
||||
|
||||
export class MathSubScript extends XmlComponent {
|
||||
constructor(options: IMathSubScriptOptions) {
|
||||
public constructor(options: IMathSubScriptOptions) {
|
||||
super("m:sSub");
|
||||
|
||||
this.root.push(new MathSubScriptProperties());
|
||||
|
@ -2,7 +2,7 @@
|
||||
import { XmlComponent } from "@file/xml-components";
|
||||
|
||||
export class MathSubSuperScriptProperties extends XmlComponent {
|
||||
constructor() {
|
||||
public constructor() {
|
||||
super("m:sSubSupPr");
|
||||
}
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ export interface IMathSubSuperScriptOptions {
|
||||
}
|
||||
|
||||
export class MathSubSuperScript extends XmlComponent {
|
||||
constructor(options: IMathSubSuperScriptOptions) {
|
||||
public constructor(options: IMathSubSuperScriptOptions) {
|
||||
super("m:sSubSup");
|
||||
|
||||
this.root.push(new MathSubSuperScriptProperties());
|
||||
|
@ -2,7 +2,7 @@
|
||||
import { XmlComponent } from "@file/xml-components";
|
||||
|
||||
export class MathSuperScriptProperties extends XmlComponent {
|
||||
constructor() {
|
||||
public constructor() {
|
||||
super("m:sSupPr");
|
||||
}
|
||||
}
|
||||
|
@ -11,7 +11,7 @@ export interface IMathSuperScriptOptions {
|
||||
}
|
||||
|
||||
export class MathSuperScript extends XmlComponent {
|
||||
constructor(options: IMathSuperScriptOptions) {
|
||||
public constructor(options: IMathSuperScriptOptions) {
|
||||
super("m:sSup");
|
||||
|
||||
this.root.push(new MathSuperScriptProperties());
|
||||
|
Reference in New Issue
Block a user