Simplify cursor style types in webgl

Fixes #4686
This commit is contained in:
Daniel Imms
2023-08-18 14:11:17 -07:00
parent a35fa611ff
commit 25a78c77f2
+2 -3
View File
@@ -4,6 +4,7 @@
*/
import { ISelectionRenderModel } from 'browser/renderer/shared/Types';
import { CursorInactiveStyle, CursorStyle } from 'common/Types';
export interface IRenderModel {
cells: Uint32Array;
@@ -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;