import type { IView, IViewArgs, RenderingContext, ViewerOptions } from "sprotty"; import type { VNode } from "snabbdom"; import type { SRoot } from "../model/sRoot.js"; import type { CursorProvider } from "../features/cursor/cursor.js"; import type { BoxSelectProvider } from "../features/select/boxSelectProvider.js"; import type { KeyState } from "../features/key-state/keyState.js"; import { CanvasLikeView } from "./canvas/canvasLikeView.js"; import type { ConfigManager } from "../features/config/configManager.js"; /** * IView that is the parent which handles */ export declare class RootView extends CanvasLikeView implements IView { /** * ID of the arrow marker */ static readonly ARROW_MARKER_ID = "arrow"; /** * ID of the background pattern */ get backgroundPatternId(): string; /** * Viewer options, used to get id of viewer element */ protected options: ViewerOptions; /** * MoveCursorProvider used to get the cursor to use while moving */ protected moveCursorProvider: CursorProvider; /** * BoxSelectProvider used to get the box selection box */ protected boxSelectProvider: BoxSelectProvider; /** * KeyState used to check if space is pressed */ protected keyState: KeyState; /** * ConfigManager used to get the editor config */ protected configManager: ConfigManager; render(model: Readonly, context: RenderingContext, _args?: IViewArgs | undefined): VNode; /** * Renders the style element for the fonts * * @param model the SRoot model * @returns the VNode for the style element */ private renderStyles; /** * Renders the background of the diagram * * @param model the SRoot model * @returns the VNode for the background or undefined if in preview mode */ private renderBackground; /** * Computes the root classes * * @returns the root classes */ private computeRootClass; /** * Generates the attributes for the SVG element * If the targetKind is not "main", the viewBox attribute is set to the canvas bounds * * @param model the SRoot model * @param context the rendering context * @returns the attributes for the SVG element */ private generateAttributes; /** * Renders the box select select box, if available * * @returns the VNode for the select box */ private renderSelectBox; /** * Renders the defs section of the SVG * * @param model the SRoot model * @returns the VNode for the defs section */ private renderDefs; /** * Renders the background pattern * * @param model the SRoot model * @returns the VNode for the background pattern or undefined if in preview mode */ private renderBackgroundPattern; /** * Renders the arrow marker * * @param id the id of the marker * @param pathClass the class of the path * @returns the VNode for the arrow marker */ private renderArrowMarker; } //# sourceMappingURL=rootView.d.ts.map