Merge pull request #4688 from Tyriar/cursor_style
Simplify cursor style types in webgl
This commit is contained in:
+2
-3
@@ -4,6 +4,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { ISelectionRenderModel } from 'browser/renderer/shared/Types';
|
import { ISelectionRenderModel } from 'browser/renderer/shared/Types';
|
||||||
|
import { CursorInactiveStyle, CursorStyle } from 'common/Types';
|
||||||
|
|
||||||
export interface IRenderModel {
|
export interface IRenderModel {
|
||||||
cells: Uint32Array;
|
cells: Uint32Array;
|
||||||
@@ -16,13 +17,11 @@ export interface ICursorRenderModel {
|
|||||||
x: number;
|
x: number;
|
||||||
y: number;
|
y: number;
|
||||||
width: number;
|
width: number;
|
||||||
style: CursorStyle;
|
style: CursorStyle | CursorInactiveStyle;
|
||||||
cursorWidth: number;
|
cursorWidth: number;
|
||||||
dpr: number;
|
dpr: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CursorStyle = 'outline' | 'block' | 'bar' | 'underline' | 'none';
|
|
||||||
|
|
||||||
export interface IWebGL2RenderingContext extends WebGLRenderingContext {
|
export interface IWebGL2RenderingContext extends WebGLRenderingContext {
|
||||||
vertexAttribDivisor(index: number, divisor: number): void;
|
vertexAttribDivisor(index: number, divisor: number): void;
|
||||||
createVertexArray(): IWebGLVertexArrayObject;
|
createVertexArray(): IWebGLVertexArrayObject;
|
||||||
|
|||||||
Reference in New Issue
Block a user