@finos/legend-application-pure-ide
Version:
Legend Pure IDE application core
50 lines • 2.31 kB
TypeScript
/**
* Copyright (c) 2020-present, Goldman Sachs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import type { CommandRegistrar } from '@finos/legend-application';
import { type Diagram, type Point } from '@finos/legend-extension-dsl-diagram/graph';
import { type PureModel } from '@finos/legend-graph';
import { type GeneratorFn } from '@finos/legend-shared';
import { type DiagramInfo, type DiagramClassMetadata } from '../server/models/DiagramInfo.js';
import type { PureIDEStore } from './PureIDEStore.js';
import { PureIDETabState } from './PureIDETabManagerState.js';
import type { TabState } from '@finos/legend-lego/application';
import { type DiagramRenderer } from '@finos/legend-extension-dsl-diagram/application';
export declare class DiagramEditorState extends PureIDETabState implements CommandRegistrar {
diagramInfo: DiagramInfo;
_renderer?: DiagramRenderer | undefined;
diagram: Diagram;
diagramClasses: Map<string, DiagramClassMetadata>;
graph: PureModel;
diagramPath: string;
filePath: string;
fileLine: number;
fileColumn: number;
constructor(ideStore: PureIDEStore, diagramInfo: DiagramInfo, diagramPath: string, filePath: string, fileLine: number, fileColumn: number);
get label(): string;
get description(): string | undefined;
get diagramName(): string;
match(tab: TabState): boolean;
get renderer(): DiagramRenderer;
get isDiagramRendererInitialized(): boolean;
get diagramCursorClass(): string;
rebuild(value: DiagramInfo): void;
setupRenderer(): void;
setRenderer(val: DiagramRenderer): void;
addClassView(path: string, position: Point | undefined): GeneratorFn<void>;
registerCommands(): void;
deregisterCommands(): void;
}
//# sourceMappingURL=DiagramEditorState.d.ts.map