get button to work

This commit is contained in:
meganrogge
2022-01-29 00:07:51 -06:00
parent c5810e6d54
commit ebdd07b8ae
12 changed files with 199 additions and 10 deletions
+5
View File
@@ -12,6 +12,7 @@ import { addDisposableDomListener } from 'browser/Lifecycle';
import { IColorSet, IRenderDebouncer } from 'browser/Types';
import { IOptionsService, IBufferService } from 'common/services/Services';
import { ICharSizeService, IRenderService } from 'browser/services/Services';
import { IDecorationOptions, IDecoration, IGutterDecorationOptions, IBufferDecorationOptions } from 'xterm';
interface ISelectionState {
start: [number, number] | undefined;
@@ -85,6 +86,10 @@ export class RenderService extends Disposable implements IRenderService {
}
}
public registerDecoration(decorationOptions: IBufferDecorationOptions | IGutterDecorationOptions): IDecoration {
return this._renderer.registerDecoration(decorationOptions);
}
private _onIntersectionChange(entry: IntersectionObserverEntry): void {
this._isPaused = entry.isIntersecting === undefined ? (entry.intersectionRatio === 0) : !entry.isIntersecting;