Move rest of atlas implementations to atlas dirs
Moves CharAtlas into src/renderer/atlas/ and CharAtlasGenerator into src/shared/atlas/.
This commit is contained in:
@@ -7,7 +7,7 @@ import { IRenderLayer, IColorSet, IRenderDimensions } from './Types';
|
|||||||
import { CharData, ITerminal, ITerminalOptions } from '../Types';
|
import { CharData, ITerminal, ITerminalOptions } from '../Types';
|
||||||
import { DIM_OPACITY, INVERTED_DEFAULT_COLOR } from './atlas/Types';
|
import { DIM_OPACITY, INVERTED_DEFAULT_COLOR } from './atlas/Types';
|
||||||
import { CHAR_ATLAS_CELL_SPACING } from '../shared/atlas/Types';
|
import { CHAR_ATLAS_CELL_SPACING } from '../shared/atlas/Types';
|
||||||
import { acquireCharAtlas } from './CharAtlas';
|
import { acquireCharAtlas } from './atlas/CharAtlas';
|
||||||
import { CHAR_DATA_WIDTH_INDEX, CHAR_DATA_CHAR_INDEX } from '../Buffer';
|
import { CHAR_DATA_WIDTH_INDEX, CHAR_DATA_CHAR_INDEX } from '../Buffer';
|
||||||
|
|
||||||
export abstract class BaseRenderLayer implements IRenderLayer {
|
export abstract class BaseRenderLayer implements IRenderLayer {
|
||||||
|
|||||||
@@ -3,12 +3,12 @@
|
|||||||
* @license MIT
|
* @license MIT
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ITerminal } from '../Types';
|
import { ITerminal } from '../../Types';
|
||||||
import { IColorSet } from './Types';
|
import { IColorSet } from '../Types';
|
||||||
import { ICharAtlasConfig } from './atlas/Types';
|
import { ICharAtlasConfig } from './Types';
|
||||||
import { isFirefox } from '../shared/utils/Browser';
|
import { isFirefox } from '../../shared/utils/Browser';
|
||||||
import { generateCharAtlas, ICharAtlasRequest } from '../shared/CharAtlasGenerator';
|
import { generateCharAtlas, ICharAtlasRequest } from '../../shared/atlas/CharAtlasGenerator';
|
||||||
import { generateConfig, configEquals } from './atlas/CharAtlasUtils';
|
import { generateConfig, configEquals } from './CharAtlasUtils';
|
||||||
|
|
||||||
interface ICharAtlasCacheEntry {
|
interface ICharAtlasCacheEntry {
|
||||||
bitmap: HTMLCanvasElement | Promise<ImageBitmap>;
|
bitmap: HTMLCanvasElement | Promise<ImageBitmap>;
|
||||||
@@ -4,8 +4,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { FontWeight } from 'xterm';
|
import { FontWeight } from 'xterm';
|
||||||
import { CHAR_ATLAS_CELL_SPACING } from './atlas/Types';
|
import { CHAR_ATLAS_CELL_SPACING } from './Types';
|
||||||
import { isFirefox } from './utils/Browser';
|
import { isFirefox } from '../utils/Browser';
|
||||||
|
|
||||||
declare const Promise: any;
|
declare const Promise: any;
|
||||||
|
|
||||||
Reference in New Issue
Block a user