Remove default exports in webgl char atlas files
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { createProgram, PROJECTION_MATRIX } from './WebglUtils';
|
import { createProgram, PROJECTION_MATRIX } from './WebglUtils';
|
||||||
import WebglCharAtlas from './atlas/WebglCharAtlas';
|
import { WebglCharAtlas } from './atlas/WebglCharAtlas';
|
||||||
import { IWebGL2RenderingContext, IWebGLVertexArrayObject, IRenderModel, IRasterizedGlyph } from './Types';
|
import { IWebGL2RenderingContext, IWebGLVertexArrayObject, IRenderModel, IRasterizedGlyph } from './Types';
|
||||||
import { INDICIES_PER_CELL } from './WebglRenderer';
|
import { INDICIES_PER_CELL } from './WebglRenderer';
|
||||||
import { COMBINED_CHAR_BIT_MASK } from './RenderModel';
|
import { COMBINED_CHAR_BIT_MASK } from './RenderModel';
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import { GlyphRenderer } from './GlyphRenderer';
|
|||||||
import { LinkRenderLayer } from './renderLayer/LinkRenderLayer';
|
import { LinkRenderLayer } from './renderLayer/LinkRenderLayer';
|
||||||
import { CursorRenderLayer } from './renderLayer/CursorRenderLayer';
|
import { CursorRenderLayer } from './renderLayer/CursorRenderLayer';
|
||||||
import { acquireCharAtlas } from './atlas/CharAtlasCache';
|
import { acquireCharAtlas } from './atlas/CharAtlasCache';
|
||||||
import WebglCharAtlas from './atlas/WebglCharAtlas';
|
import { WebglCharAtlas } from './atlas/WebglCharAtlas';
|
||||||
import { RectangleRenderer } from './RectangleRenderer';
|
import { RectangleRenderer } from './RectangleRenderer';
|
||||||
import { IWebGL2RenderingContext } from './Types';
|
import { IWebGL2RenderingContext } from './Types';
|
||||||
import { INVERTED_DEFAULT_COLOR } from './atlas/Types';
|
import { INVERTED_DEFAULT_COLOR } from './atlas/Types';
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
import { IGlyphIdentifier } from './Types';
|
import { IGlyphIdentifier } from './Types';
|
||||||
import { IDisposable } from 'xterm';
|
import { IDisposable } from 'xterm';
|
||||||
|
|
||||||
export default abstract class BaseCharAtlas implements IDisposable {
|
export abstract class BaseCharAtlas implements IDisposable {
|
||||||
private _didWarmUp: boolean = false;
|
private _didWarmUp: boolean = false;
|
||||||
|
|
||||||
public dispose(): void { }
|
public dispose(): void { }
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { generateConfig, configEquals } from './CharAtlasUtils';
|
import { generateConfig, configEquals } from './CharAtlasUtils';
|
||||||
import BaseCharAtlas from './BaseCharAtlas';
|
import { BaseCharAtlas } from './BaseCharAtlas';
|
||||||
import WebglCharAtlas from './WebglCharAtlas';
|
import { WebglCharAtlas } from './WebglCharAtlas';
|
||||||
import { ICharAtlasConfig } from './Types';
|
import { ICharAtlasConfig } from './Types';
|
||||||
import { Terminal } from 'xterm';
|
import { Terminal } from 'xterm';
|
||||||
import { IColorSet } from 'browser/Types';
|
import { IColorSet } from 'browser/Types';
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { DIM_OPACITY, IGlyphIdentifier, INVERTED_DEFAULT_COLOR, ICharAtlasConfig } from './Types';
|
import { DIM_OPACITY, IGlyphIdentifier, INVERTED_DEFAULT_COLOR, ICharAtlasConfig } from './Types';
|
||||||
import BaseCharAtlas from './BaseCharAtlas';
|
import { BaseCharAtlas } from './BaseCharAtlas';
|
||||||
import { IRasterizedGlyph, IBoundingBox, IRasterizedGlyphSet } from '../Types';
|
import { IRasterizedGlyph, IBoundingBox, IRasterizedGlyphSet } from '../Types';
|
||||||
import { FLAGS, DEFAULT_COLOR } from '../../../common/buffer/Constants';
|
import { FLAGS, DEFAULT_COLOR } from '../../../common/buffer/Constants';
|
||||||
import { is256Color } from './CharAtlasUtils';
|
import { is256Color } from './CharAtlasUtils';
|
||||||
@@ -41,7 +41,7 @@ const NULL_RASTERIZED_GLYPH: IRasterizedGlyph = {
|
|||||||
|
|
||||||
const TMP_CANVAS_GLYPH_PADDING = 2;
|
const TMP_CANVAS_GLYPH_PADDING = 2;
|
||||||
|
|
||||||
export default class WebglCharAtlas extends BaseCharAtlas {
|
export class WebglCharAtlas extends BaseCharAtlas {
|
||||||
private _cacheMap: { [code: number]: IRasterizedGlyphSet } = {};
|
private _cacheMap: { [code: number]: IRasterizedGlyphSet } = {};
|
||||||
private _cacheMapCombined: { [chars: string]: IRasterizedGlyphSet } = {};
|
private _cacheMapCombined: { [chars: string]: IRasterizedGlyphSet } = {};
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { IRenderLayer } from './Types';
|
|||||||
import { ICellData } from '../../../common/Types';
|
import { ICellData } from '../../../common/Types';
|
||||||
import { DEFAULT_COLOR } from '../../../common/buffer/Constants';
|
import { DEFAULT_COLOR } from '../../../common/buffer/Constants';
|
||||||
import { DIM_OPACITY, INVERTED_DEFAULT_COLOR, IGlyphIdentifier } from '../atlas/Types';
|
import { DIM_OPACITY, INVERTED_DEFAULT_COLOR, IGlyphIdentifier } from '../atlas/Types';
|
||||||
import BaseCharAtlas from '../atlas/BaseCharAtlas';
|
import { BaseCharAtlas } from '../atlas/BaseCharAtlas';
|
||||||
import { acquireCharAtlas } from '../atlas/CharAtlasCache';
|
import { acquireCharAtlas } from '../atlas/CharAtlasCache';
|
||||||
import { CellData, AttributeData, WHITESPACE_CELL_CHAR, WHITESPACE_CELL_CODE } from '../../../common/buffer/BufferLine';
|
import { CellData, AttributeData, WHITESPACE_CELL_CHAR, WHITESPACE_CELL_CODE } from '../../../common/buffer/BufferLine';
|
||||||
import { Terminal } from 'xterm';
|
import { Terminal } from 'xterm';
|
||||||
|
|||||||
Reference in New Issue
Block a user