From 22e62ed95087b37b8e9cb2037e8374b0e0b144fc Mon Sep 17 00:00:00 2001 From: Tom Hunkapiller Date: Mon, 24 May 2021 21:05:29 +0300 Subject: [PATCH] add NumberValueElement, representing a simple element with a single number value --- src/file/xml-components/simple-elements.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/file/xml-components/simple-elements.ts b/src/file/xml-components/simple-elements.ts index 64d45819e3..07f188f622 100644 --- a/src/file/xml-components/simple-elements.ts +++ b/src/file/xml-components/simple-elements.ts @@ -44,3 +44,11 @@ export class StringValueElement extends XmlComponent { this.root.push(new Attributes({ val })); } } + +// This represents various number element types. +export class NumberValueElement extends XmlComponent { + constructor(name: string, val: number) { + super(name); + this.root.push(new Attributes({ val })); + } +}