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 { ClickDragMode, MermaidExtensionConfig, ShowControlsMode } from './config';
import diagramStyles from './diagramStyles.css';
import { IDisposable } from './disposable';
const minScale = 0.5;
const maxScale = 10;
const zoomFactor = 0.002;
interface Dimensions {
readonly width: number;
readonly height: number;
}
interface Point {
readonly x: number
y
scale
translate Point
hasInteracted
customHeight
instances
savedStates
diagramStyleSheet HTMLStyleElement
config MermaidExtensionConfig
config MermaidExtensionConfig
config config
diagramStyleSheet document
diagramStyleSheetclassName
diagramStyleSheettextContent diagramStyles
documentheaddiagramStyleSheet
config MermaidExtensionConfig
config config
id mermaidContainer HTMLElement IDisposable
id
parent mermaidContainerparentNode
parent
wrapper document
wrapperclassName
content document
contentclassName
parentwrapper mermaidContainer
contentmermaidContainer
wrappercontent
state savedStatesid
instance wrapper content config state
instancesid instance
instance
id
id
instance instancesid
instance
savedStatesid instance
instance
instancesid
activeIds Set
id savedStates
activeIdsid
savedStatesid
scale
translate Point x y
lastSvgSize Dimensions width height
isPanning
hasDragged
hasInteracted
panModeEnabled
startX
startY
isResizing
resizeStartY
resizeStartHeight
customHeight
panModeButton HTMLButtonElement
resizeHandle HTMLElement
resizeObserver ResizeObserver
showControls ShowControlsMode
clickDrag ClickDragMode
resizable
maxHeight
abortController
container HTMLElement
content HTMLElement
config MermaidExtensionConfig
initialState PanZoomState
showControls configshowControls
clickDrag configclickDrag
resizable configresizable
maxHeight configmaxHeight
initialState
scale initialStatescale
translate x initialStatetranslatex y initialStatetranslatey
hasInteracted initialStatehasInteracted
customHeight initialStatecustomHeight
contentstyletransformOrigin
containerstyleoverflow
containertabIndex
container
maxHeight
sanitizedMaxHeight maxHeight
sanitizedMaxHeight
containerstylemaxHeight sanitizedMaxHeight
showControls ShowControlsModeNever
resizable
resizeHandle
containerresizeHandle
resizeObserver
resizeObservercontainer
hasInteracted
PanZoomState
scale scale
translate x translatex y translatey
hasInteracted hasInteracted
customHeight customHeight
abortController
resizeObserver
signal abortControllersignal
container e e signal
document e e signal
document signal
container e e signal
container e e passive signal
container e e signal
container e e signal
window e e signal
window e e signal
signal abortControllersignal
controls document
controlsclassName
showControls ShowControlsModeOnHoverOrFocus
controlsclassList
controlsinnerHTML
panModeButton controls
panModeButton e
e
e
signal
controls e
e
e
signal
controls e
e
e
signal
controls e
e
e
signal
containercontrols
HTMLElement
signal abortControllersignal
resizeHandle document
resizeHandleclassName
resizeHandletitle
resizeHandletabIndex
resizeHandle
resizeHandle
resizeHandle
resizeHandle e
e
e
isResizing
resizeStartY eclientY
resizeStartHeight containerheight
documentbodystylecursor
signal
document e
isResizing
ebuttons
isResizing
documentbodystylecursor
deltaY eclientY resizeStartY
resizeStartHeight deltaY
signal
resizeHandle e
ekey ekey
e
e
currentHeight customHeight containerheight
direction ekey
step eshiftKey
currentHeight direction step
signal
document
isResizing
isResizing
documentbodystylecursor
signal
resizeHandle
panModeEnabled panModeEnabled
panModeButtonclassList panModeEnabled
panModeButton panModeEnabled
height
newHeight Math height
containerstyleheight
customHeight newHeight
e KeyboardEvent
ekey ekey isPanning
e
ealtKey eshiftKey
e MouseEvent
isPanning
ealtKey eshiftKey
altKey shiftKey
panModeEnabled
containerstylecursor
clickDrag ClickDragModeAlt
altKey shiftKey
containerstylecursor
altKey
containerstylecursor
containerstylecursor
altKey shiftKey
containerstylecursor
altKey shiftKey
containerstylecursor
containerstylecursor
e MouseEvent
ealtKey hasDragged
e
e
rect container
factor eshiftKey
factor eclientX rectleft eclientY recttop
e WheelEvent
isPinchZoom ectrlKey
isPinchZoom ealtKey
e
e
rect container
mouseX eclientX rectleft
mouseY eclientY recttop
pinchMultiplier isPinchZoom
delta edeltaY zoomFactor pinchMultiplier
newScale MathmaxScale MathminScale scale delta
scaleFactor newScale scale
translate
x mouseX mouseX translatex scaleFactor
y mouseY mouseY translatey scaleFactor
scale newScale
hasInteracted
e MouseEvent
ebutton
panModeEnabled clickDrag ClickDragModeAlt ealtKey
e
e
isPanning
hasDragged
startX eclientX translatex
startY eclientY translatey
containerstylecursor
e MouseEvent
isPanning
ebuttons
dx eclientX startX translatex
dy eclientY startY translatey
Mathdx Mathdy
hasDragged
translate
x eclientX startX
y eclientY startY
isPanning
isPanning
hasInteracted
contentstyletransform
hasInteracted
svgAtOriginX translatex scale
svgAtOriginY translatey scale
percentX lastSvgSizewidth svgAtOriginX lastSvgSizewidth
percentY lastSvgSizeheight svgAtOriginY lastSvgSizeheight
newSvgAtOriginX percentX lastSvgSizewidth
newSvgAtOriginY percentY lastSvgSizeheight
translate
x newSvgAtOriginX scale
y newSvgAtOriginY scale
svg content
svg
svg
oldTransform contentstyletransform
contentstyletransform
rect svg
contentstyletransform oldTransform
lastSvgSize width rectwidth height rectheight
containerHeight customHeight lastSvgSizeheight
containerstyleheight
scale
containerRect container
translate
x containerRectwidth lastSvgSizewidth
y
scale
translate x y
hasInteracted
customHeight
rect container
rectwidth rectheight
rect container
rectwidth rectheight
factor x y
newScale MathmaxScale MathminScale scale factor
scaleFactor newScale scale
translate
x x x translatex scaleFactor
y y y translatey scaleFactor
scale newScale
hasInteracted
value
parsed CSSNumericValuevalue
parsed