Render the cursor in the WebGL canvas

This commit is contained in:
Albert Safin
2023-06-18 06:34:14 +00:00
parent ac923e55d2
commit 064fe0cfd9
8 changed files with 335 additions and 439 deletions
@@ -18,6 +18,14 @@ export class RenderModel implements IRenderModel {
public cells: Uint32Array;
public lineLengths: Uint32Array;
public selection: ISelectionRenderModel;
public cursor?: {
x: number;
y: number;
width: number;
style: string;
cursorWidth: number;
dpr: number;
};
constructor() {
this.cells = new Uint32Array(0);