mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-06-03 01:04:31 +02:00
22 lines
439 B
TypeScript
22 lines
439 B
TypeScript
export default class Icon {
|
|
protected BUILTIN: string | undefined;
|
|
|
|
getBuiltin(): string | undefined {
|
|
return this.BUILTIN;
|
|
}
|
|
|
|
setBuiltin(value: string): void {
|
|
this.BUILTIN = value;
|
|
}
|
|
|
|
toXml(document: Document): HTMLElement {
|
|
// Set node attributes
|
|
const iconElem = document.createElement('icon');
|
|
if (this.BUILTIN) {
|
|
iconElem.setAttribute('BUILTIN', this.BUILTIN);
|
|
}
|
|
|
|
return iconElem;
|
|
}
|
|
}
|