Delete framework dir

This commit is contained in:
2025-07-23 00:00:25 +01:00
parent ac172e4cd4
commit 4d32146eb3
250 changed files with 0 additions and 14158 deletions

View File

@@ -1,11 +0,0 @@
import { BaseOutput } from './base-output';
export declare class AriaOutput extends BaseOutput {
private container;
private speechDisplay;
private timeout;
constructor(options?: any);
private init;
speak(text: string): void;
stop(): void;
clearDisplay(): void;
}

View File

@@ -1,32 +0,0 @@
import { BaseOutput } from './base-output';
export class AriaOutput extends BaseOutput {
constructor(options = {}) {
super();
this.timeout = 100;
this.timeout = options.timeout || 100;
this.init();
}
init() {
this.container = document.createElement('div');
this.container.setAttribute('aria-live', 'polite');
this.speechDisplay = document.createElement('div');
this.speechDisplay.setAttribute('aria-live', 'polite');
this.container.append(this.speechDisplay);
document.body.appendChild(this.container);
document.body.insertBefore(this.container, document.body.firstChild);
}
speak(text) {
this.clearDisplay();
const node = document.createTextNode(text);
const para = document.createElement('p');
para.appendChild(node);
this.speechDisplay.appendChild(para);
setTimeout(this.clearDisplay.bind(this), this.timeout);
}
stop() {
this.clearDisplay();
}
clearDisplay() {
this.speechDisplay.innerHTML = '';
}
}

View File

@@ -1,5 +0,0 @@
export declare class BaseOutput {
speak(text: string): void;
stop(): void;
setOptions(options: any): void;
}

View File

@@ -1,11 +0,0 @@
export class BaseOutput {
speak(text) {
return;
}
stop() {
return;
}
setOptions(options) {
return;
}
}

View File

@@ -1,3 +0,0 @@
import { BaseOutput } from './base-output';
export declare class WebTTSOutput extends BaseOutput {
}

View File

@@ -1,3 +0,0 @@
import { BaseOutput } from './base-output';
export class WebTTSOutput extends BaseOutput {
}