ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { MinimapCharRenderer } from './minimapCharRenderer.js';
import { allCharCodes, Constants } from './minimapCharSheet.js';
import { prebakedMiniMaps } from './minimapPreBaked.js';
import { toUint8 } from '../../../../base/common/uint.js';
/**
* Creates character renderers. It takes a 'scale' that determines how large
* characters should be drawn. Using this, it draws data into a canvas and
* then downsamples the characters as necessary for the current display.
* This makes rendering more efficient, rather than drawing a full (tiny)
* font, or downsampling in real-time.
*/
export class MinimapCharRendererFactory {
private static lastCreated?: MinimapCharRenderer;
private static lastFontFamily?: string;
scale fontFamily
lastCreated scale lastCreatedscale fontFamily lastFontFamily
lastCreated
factory MinimapCharRenderer
prebakedMiniMapsscale
factory prebakedMiniMapsscale scale
factory MinimapCharRendererFactory
MinimapCharRendererFactoryfontFamilydata
scale
lastFontFamily fontFamily
lastCreated factory
factory
fontFamily ImageData
canvas document
ctx canvas
canvasstyleheight
canvasheight Constants
canvaswidth Constants Constants
canvasstylewidth Constants Constants
ctxfillStyle
ctxfont
ctxtextBaseline
x
code allCharCodes
ctxStringcode x Constants
x Constants
ctx Constants Constants Constants
source Uint8ClampedArray scale MinimapCharRenderer
expectedLength
Constants Constants Constants Constants
sourcelength expectedLength
charData MinimapCharRendererFactorysource scale
charData scale
source Uint8ClampedArray
sourceOffset
dest Uint8ClampedArray
destOffset
scale
width Constants scale
height Constants scale
targetIndex destOffset
brightest
y y height y
sourceY1 y height Constants
sourceY2 y height Constants
x x width x
sourceX1 x width Constants
sourceX2 x width Constants
value
samples
sy sourceY1 sy sourceY2 sy
sourceRow sourceOffset Mathsy Constants
yBalance sy Mathsy
sx sourceX1 sx sourceX2 sx
xBalance sx Mathsx
sourceIndex sourceRow Mathsx Constants
weight xBalance yBalance
samples weight
value sourcesourceIndex sourcesourceIndex weight
final value samples
brightest Mathbrightest final
desttargetIndex final
brightest
data Uint8ClampedArray scale Uint8ClampedArray
pixelsPerCharacter Constants scale Constants scale
resultLen pixelsPerCharacter Constants
result resultLen
resultOffset
sourceOffset
brightest
charIndex charIndex Constants charIndex
brightest Mathbrightest data sourceOffset result resultOffset scale
resultOffset pixelsPerCharacter
sourceOffset Constants Constants
brightest
adjust brightest
i i resultLen i
resulti adjust
result