monaco-editor
Version:
A browser based code editor
20 lines (17 loc) • 881 B
JavaScript
import { ViewEventHandler } from '../../../common/viewEventHandler.js';
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
class BaseRenderStrategy extends ViewEventHandler {
get glyphRasterizer() { return this._glyphRasterizer.value; }
constructor(_context, _viewGpuContext, _device, _glyphRasterizer) {
super();
this._context = _context;
this._viewGpuContext = _viewGpuContext;
this._device = _device;
this._glyphRasterizer = _glyphRasterizer;
this._context.addEventHandler(this);
}
}
export { BaseRenderStrategy };