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 { RGBA8 } from '../../../common/core/misc/rgba.js';
import { Constants, getCharIndex } from './minimapCharSheet.js';
import { toUint8 } from '../../../../base/common/uint.js';
export class MinimapCharRenderer {
_minimapCharRendererBrand: void = undefined;
private readonly charDataNormal: Uint8ClampedArray;
private readonly charDataLight: Uint8ClampedArray;
constructor(charData: Uint8ClampedArray, public readonly scale: number)
charDataNormal MinimapCharRenderercharData
charDataLight MinimapCharRenderercharData
input Uint8ClampedArray ratio Uint8ClampedArray
result inputlength
i len inputlength i len i
resulti inputi ratio
result
target ImageData
dx
dy
chCode
color
foregroundAlpha
backgroundColor
backgroundAlpha
fontScale
useLighterFont
force1pxHeight
charWidth Constants scale
charHeight Constants scale
renderHeight force1pxHeight charHeight
dx charWidth targetwidth dy renderHeight targetheight
charData useLighterFont charDataLight charDataNormal
charIndex chCode fontScale
destWidth targetwidth Constants
backgroundR backgroundColorr
backgroundG backgroundColorg
backgroundB backgroundColorb
deltaR colorr backgroundR
deltaG colorg backgroundG
deltaB colorb backgroundB
destAlpha MathforegroundAlpha backgroundAlpha
dest targetdata
sourceOffset charIndex charWidth charHeight
row dy destWidth dx Constants
y y renderHeight y
column row
x x charWidth x
c charDatasourceOffset foregroundAlpha
destcolumn backgroundR deltaR c
destcolumn backgroundG deltaG c
destcolumn backgroundB deltaB c
destcolumn destAlpha
row destWidth
target ImageData
dx
dy
color
foregroundAlpha
backgroundColor
backgroundAlpha
force1pxHeight
charWidth Constants scale
charHeight Constants scale
renderHeight force1pxHeight charHeight
dx charWidth targetwidth dy renderHeight targetheight
destWidth targetwidth Constants
c foregroundAlpha
backgroundR backgroundColorr
backgroundG backgroundColorg
backgroundB backgroundColorb
deltaR colorr backgroundR
deltaG colorg backgroundG
deltaB colorb backgroundB
colorR backgroundR deltaR c
colorG backgroundG deltaG c
colorB backgroundB deltaB c
destAlpha MathforegroundAlpha backgroundAlpha
dest targetdata
row dy destWidth dx Constants
y y renderHeight y
column row
x x charWidth x
destcolumn colorR
destcolumn colorG
destcolumn colorB
destcolumn destAlpha
row destWidth