webdsky
Version:
Emulation of the DSKY user interface of the Apollo Guidance Computer for the Web platform
22 lines (16 loc) • 467 B
JavaScript
// SPDX-License-Identifier: GPL-2.0-or-later
// SPDX-FileCopyrightText: Copyright 2020 Michael Karl Franzl <public.michael@franzl.name>
import Base from './base.js';
class Sign extends Base {
constructor() {
super();
this.segmentMap = {
a: 'segment_a',
b: 'segment_b',
c: 'segment_c',
};
this.svgFilepath = new URL('./sign.svg', import.meta.url);
this.initialize();
}
}
customElements.define('dsky-display-sign', Sign);