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 { getActiveWindow } from '../../../../base/browser/dom.js';
import { BugIndicatingError } from '../../../../base/common/errors.js';
import { NKeyMap } from '../../../../base/common/map.js';
import { ensureNonNullable } from '../gpuUtils.js';
import type { IRasterizedGlyph } from '../raster/raster.js';
import { UsagePreviewColors, type ITextureAtlasAllocator, type ITextureAtlasPageGlyph } from './atlas.js';
export interface TextureAtlasSlabAllocatorOptions
slabW
slabH
_ctx OffscreenCanvasRenderingContext2D
_slabs ITextureAtlasSlab
_activeSlabsByDims NKeyMapITextureAtlasSlab
_unusedRects ITextureAtlasSlabUnusedRect
_openRegionsByHeight Map ITextureAtlasSlabUnusedRect
_openRegionsByWidth Map ITextureAtlasSlabUnusedRect
_allocatedGlyphs SetReadonlyITextureAtlasPageGlyph
_slabW
_slabH
_slabsPerRow
_slabsPerColumn
_nextIndex
_canvas OffscreenCanvas
_textureIndex
options TextureAtlasSlabAllocatorOptions
_ctx _canvas
willReadFrequently
_slabW Math
optionsslabW MathMathdevicePixelRatio
_canvaswidth
_slabH Math
optionsslabH _slabW
_canvasheight
_slabsPerRow Math_canvaswidth _slabW
_slabsPerColumn Math_canvasheight _slabH
rasterizedGlyph IRasterizedGlyph ITextureAtlasPageGlyph
glyphWidth rasterizedGlyphboundingBoxright rasterizedGlyphboundingBoxleft
glyphHeight rasterizedGlyphboundingBoxbottom rasterizedGlyphboundingBoxtop
glyphWidth _canvaswidth glyphHeight _canvasheight
glyphWidth _slabW glyphHeight _slabH
_allocatedGlyphssize
sizeCandidate _canvaswidth
glyphWidth sizeCandidate glyphHeight sizeCandidate
sizeCandidate
_slabW sizeCandidate
_slabH sizeCandidate
_slabsPerRow Math_canvaswidth _slabW
_slabsPerColumn Math_canvasheight _slabH
desiredSlabSize
w glyphWidth
h glyphHeight
slab _activeSlabsByDimsdesiredSlabSizew desiredSlabSizeh
slab
glyphsPerSlab Math_slabW slabentryW Math_slabH slabentryH
slabcount glyphsPerSlab
slab
dx
dy
slab
glyphWidth glyphHeight
openRegions _openRegionsByWidthglyphWidth
openRegionslength
i openRegionslength i i
r openRegionsi
rw glyphWidth rh glyphHeight
dx rx
dy ry
glyphWidth rw
_unusedRects
x rx glyphWidth
y ry
w rw glyphWidth
h glyphHeight
ry glyphHeight
rh glyphHeight
rh
i openRegionslength
openRegions
_unusedRectsi
openRegions _openRegionsByHeightglyphHeight
openRegionslength
i openRegionslength i i
r openRegionsi
rw glyphWidth rh glyphHeight
dx rx
dy ry
glyphHeight rh
_unusedRects
x rx
y ry glyphHeight
w glyphWidth
h rh glyphHeight
rx glyphWidth
rw glyphWidth
rh
i openRegionslength
openRegions
_unusedRectsi
dx dy
slab
_slabslength _slabsPerRow _slabsPerColumn
slab
x Math_slabslength _slabsPerRow _slabW
y Math_slabslength _slabsPerRow _slabH
entryW desiredSlabSizew
entryH desiredSlabSizeh
count
unusedW _slabW slabentryW
unusedH _slabH slabentryH
unusedW
_openRegionsByWidth unusedW
x slabx _slabW unusedW
w unusedW
y slaby
h _slabH unusedH
unusedH
_openRegionsByHeight unusedH
x slabx
w _slabW
y slaby _slabH unusedH
h unusedH
_slabsslab
_activeSlabsByDimsslab desiredSlabSizew desiredSlabSizeh
glyphsPerRow Math_slabW slabentryW
dx slabx Mathslabcount glyphsPerRow slabentryW
dy slaby Mathslabcount glyphsPerRow slabentryH
slabcount
_ctx
rasterizedGlyphsource
rasterizedGlyphboundingBoxleft
rasterizedGlyphboundingBoxtop
glyphWidth
glyphHeight
dx
dy
glyphWidth
glyphHeight
glyph ITextureAtlasPageGlyph
pageIndex _textureIndex
glyphIndex _nextIndex
x dx
y dy
w glyphWidth
h glyphHeight
originOffsetX rasterizedGlyphoriginOffsetx
originOffsetY rasterizedGlyphoriginOffsety
fontBoundingBoxAscent rasterizedGlyphfontBoundingBoxAscent
fontBoundingBoxDescent rasterizedGlyphfontBoundingBoxDescent
_allocatedGlyphsglyph
glyph
Blob
w _canvaswidth
h _canvasheight
canvas w h
ctx canvas
ctxfillStyle UsagePreviewColorsUnused
ctx w h
slabEntryPixels
usedPixels
slabEdgePixels
restrictedPixels
slabW MathdevicePixelRatio
slabH slabW
slab _slabs
x
y
i i slabcount i
x slabentryW slabW
x
y slabentryH
ctxfillStyle UsagePreviewColorsWasted
ctxslabx x slaby y slabentryW slabentryH
slabEntryPixels slabentryW slabentryH
x slabentryW
entriesPerRow MathslabW slabentryW
entriesPerCol MathslabH slabentryH
thisSlabPixels slabentryW entriesPerRow slabentryH entriesPerCol
slabEdgePixels slabW slabH thisSlabPixels
g _allocatedGlyphs
usedPixels gw gh
ctxfillStyle UsagePreviewColorsUsed
ctxgx gy gw gh
unusedRegions _openRegionsByWidth_openRegionsByHeight
r unusedRegions
ctxfillStyle UsagePreviewColorsRestricted
ctxrx ry rw rh
restrictedPixels rw rh
ctxglobalAlpha
ctx_canvas
ctxglobalAlpha
canvas
w _canvaswidth
h _canvasheight
slabEntryPixels
usedPixels
slabEdgePixels
wastedPixels
restrictedPixels
totalPixels w h
slabW MathdevicePixelRatio
slabH slabW
slab _slabs
x
y
i i slabcount i
x slabentryW slabW
x
y slabentryH
slabEntryPixels slabentryW slabentryH
x slabentryW
entriesPerRow MathslabW slabentryW
entriesPerCol MathslabH slabentryH
thisSlabPixels slabentryW entriesPerRow slabentryH entriesPerCol
slabEdgePixels slabW slabH thisSlabPixels
g _allocatedGlyphs
usedPixels gw gh
unusedRegions _openRegionsByWidth_openRegionsByHeight
r unusedRegions
restrictedPixels rw rh
edgeUsedPixels slabEdgePixels restrictedPixels
wastedPixels slabEntryPixels usedPixels edgeUsedPixels
efficiency usedPixels usedPixels wastedPixels restrictedPixels
x
y
entryH
entryW
count
x
y
w
h
map Map key entry
list mapkey
list
list
mapkey list
listentry