Skip to content

Commit

Permalink
Simplify cursor style types in webgl
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed Aug 18, 2023
1 parent a35fa61 commit 25a78c7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions addons/xterm-addon-webgl/src/Types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

import { ISelectionRenderModel } from 'browser/renderer/shared/Types';
import { CursorInactiveStyle, CursorStyle } from 'common/Types';

export interface IRenderModel {
cells: Uint32Array;
Expand All @@ -16,13 +17,11 @@ export interface ICursorRenderModel {
x: number;
y: number;
width: number;
style: CursorStyle;
style: CursorStyle | CursorInactiveStyle;
cursorWidth: number;
dpr: number;
}

export type CursorStyle = 'outline' | 'block' | 'bar' | 'underline' | 'none';

export interface IWebGL2RenderingContext extends WebGLRenderingContext {
vertexAttribDivisor(index: number, divisor: number): void;
createVertexArray(): IWebGLVertexArrayObject;
Expand Down

0 comments on commit 25a78c7

Please sign in to comment.