|
3 | 3 | * @license MIT |
4 | 4 | */ |
5 | 5 |
|
6 | | -import { FontWeight, Terminal } from '@xterm/xterm'; |
7 | | -import { IColorSet, ITerminal } from 'browser/Types'; |
| 6 | +import { Terminal } from '@xterm/xterm'; |
| 7 | +import { ITerminal } from 'browser/Types'; |
8 | 8 | import { IDisposable } from 'common/Types'; |
9 | 9 | import type { Event } from 'vs/base/common/event'; |
10 | 10 |
|
11 | | -export interface ICharAtlasConfig { |
12 | | - customGlyphs: boolean; |
13 | | - devicePixelRatio: number; |
14 | | - deviceMaxTextureSize: number; |
15 | | - letterSpacing: number; |
16 | | - lineHeight: number; |
17 | | - fontSize: number; |
18 | | - fontFamily: string; |
19 | | - fontWeight: FontWeight; |
20 | | - fontWeightBold: FontWeight; |
21 | | - deviceCellWidth: number; |
22 | | - deviceCellHeight: number; |
23 | | - deviceCharWidth: number; |
24 | | - deviceCharHeight: number; |
25 | | - allowTransparency: boolean; |
26 | | - drawBoldTextInBrightColors: boolean; |
27 | | - minimumContrastRatio: number; |
28 | | - colors: IColorSet; |
29 | | -} |
30 | | - |
31 | 11 | export interface IDimensions { |
32 | 12 | width: number; |
33 | 13 | height: number; |
@@ -87,76 +67,6 @@ export interface IRenderer extends IDisposable { |
87 | 67 | clearTextureAtlas?(): void; |
88 | 68 | } |
89 | 69 |
|
90 | | -export interface ITextureAtlas extends IDisposable { |
91 | | - readonly pages: { canvas: HTMLCanvasElement, version: number }[]; |
92 | | - |
93 | | - onAddTextureAtlasCanvas: Event<HTMLCanvasElement>; |
94 | | - onRemoveTextureAtlasCanvas: Event<HTMLCanvasElement>; |
95 | | - |
96 | | - /** |
97 | | - * Warm up the texture atlas, adding common glyphs to avoid slowing early frame. |
98 | | - */ |
99 | | - warmUp(): void; |
100 | | - |
101 | | - /** |
102 | | - * Call when a frame is being drawn, this will return true if the atlas was cleared to make room |
103 | | - * for a new set of glyphs. |
104 | | - */ |
105 | | - beginFrame(): boolean; |
106 | | - |
107 | | - /** |
108 | | - * Clear all glyphs from the texture atlas. |
109 | | - */ |
110 | | - clearTexture(): void; |
111 | | - getRasterizedGlyph(code: number, bg: number, fg: number, ext: number, restrictToCellHeight: boolean, domContainer: HTMLElement | undefined): IRasterizedGlyph; |
112 | | - getRasterizedGlyphCombinedChar(chars: string, bg: number, fg: number, ext: number, restrictToCellHeight: boolean, domContainer: HTMLElement | undefined): IRasterizedGlyph; |
113 | | -} |
114 | | - |
115 | | -/** |
116 | | - * Represents a rasterized glyph within a texture atlas. Some numbers are |
117 | | - * tracked in CSS pixels as well in order to reduce calculations during the |
118 | | - * render loop. |
119 | | - */ |
120 | | -export interface IRasterizedGlyph { |
121 | | - /** |
122 | | - * The x and y offset between the glyph's top/left and the top/left of a cell |
123 | | - * in pixels. |
124 | | - */ |
125 | | - offset: IVector; |
126 | | - /** |
127 | | - * The index of the texture page that the glyph is on. |
128 | | - */ |
129 | | - texturePage: number; |
130 | | - /** |
131 | | - * the x and y position of the glyph in the texture in pixels. |
132 | | - */ |
133 | | - texturePosition: IVector; |
134 | | - /** |
135 | | - * the x and y position of the glyph in the texture in clip space coordinates. |
136 | | - */ |
137 | | - texturePositionClipSpace: IVector; |
138 | | - /** |
139 | | - * The width and height of the glyph in the texture in pixels. |
140 | | - */ |
141 | | - size: IVector; |
142 | | - /** |
143 | | - * The width and height of the glyph in the texture in clip space coordinates. |
144 | | - */ |
145 | | - sizeClipSpace: IVector; |
146 | | -} |
147 | | - |
148 | | -export interface IVector { |
149 | | - x: number; |
150 | | - y: number; |
151 | | -} |
152 | | - |
153 | | -export interface IBoundingBox { |
154 | | - top: number; |
155 | | - left: number; |
156 | | - right: number; |
157 | | - bottom: number; |
158 | | -} |
159 | | - |
160 | 70 | export interface ISelectionRenderModel { |
161 | 71 | readonly hasSelection: boolean; |
162 | 72 | readonly columnSelectMode: boolean; |
|
0 commit comments