@finos/legend-extension-dsl-diagram
Version:
Legend extension for Diagram DSL
40 lines • 1.83 kB
TypeScript
/**
* Copyright (c) 2025-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 DiagramAnalysisResult } from './DiagramRenderer.js';
import type { DiagramViewerState } from './DiagramViewerState.js';
import { type GenericLegendApplicationStore, type NavigationZone } from '@finos/legend-application';
import type { Class } from '@finos/legend-graph';
export declare const DiagramPlaceholder: React.FC<{
message: string;
}>;
export declare const DiagramViewer: ((props: {
applicationStore: GenericLegendApplicationStore;
diagramViewerState: DiagramViewerState;
title?: string | undefined;
actions: {
onQueryClass?: ((_class: Class) => void) | undefined;
onViewClassDocumentation: (classPath: string) => void;
hasClassDocumentation: (classPath: string) => boolean;
onSyncZoneWithNavigation: (diagram: DiagramAnalysisResult) => void;
onGenerateAnchorForActivity: (activity: string) => string;
onChangeZone: (zone: NavigationZone, force?: boolean) => void;
onSetWikiPageAnchor: (anchorKey: string, element: HTMLElement) => void;
onUnsetWikiPageAnchor: (anchorKey: string) => void;
};
}) => import("react/jsx-runtime").JSX.Element) & {
displayName: string;
};
//# sourceMappingURL=DiagramViewer.d.ts.map