@finos/legend-extension-dsl-diagram 8.1.194 → 8.1.196
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/DiagramRenderer.d.ts +39 -2
- package/lib/components/DiagramRenderer.d.ts.map +1 -1
- package/lib/components/DiagramRenderer.js +83 -61
- package/lib/components/DiagramRenderer.js.map +1 -1
- package/lib/components/DiagramViewer.d.ts +39 -0
- package/lib/components/DiagramViewer.d.ts.map +1 -0
- package/lib/components/DiagramViewer.js +170 -0
- package/lib/components/DiagramViewer.js.map +1 -0
- package/lib/components/DiagramViewerState.d.ts +44 -0
- package/lib/components/DiagramViewerState.d.ts.map +1 -0
- package/lib/components/DiagramViewerState.js +136 -0
- package/lib/components/DiagramViewerState.js.map +1 -0
- package/lib/components/index.d.ts +4 -1
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +4 -1
- package/lib/components/index.js.map +1 -1
- package/lib/graph-manager/index.d.ts +3 -0
- package/lib/graph-manager/index.d.ts.map +1 -1
- package/lib/graph-manager/index.js +3 -0
- package/lib/graph-manager/index.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +0 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +0 -1
- package/lib/index.js.map +1 -1
- package/lib/package.json +1 -2
- package/package.json +3 -4
- package/src/components/DiagramRenderer.ts +221 -103
- package/src/components/DiagramViewer.tsx +650 -0
- package/src/components/DiagramViewerState.ts +171 -0
- package/src/components/index.ts +4 -0
- package/src/graph-manager/index.ts +3 -0
- package/src/index.ts +0 -1
- package/tsconfig.json +2 -12
- package/lib/__lib__/studio/DSL_Diagram_LegendStudioApplicationNavigationContext.d.ts +0 -19
- package/lib/__lib__/studio/DSL_Diagram_LegendStudioApplicationNavigationContext.d.ts.map +0 -1
- package/lib/__lib__/studio/DSL_Diagram_LegendStudioApplicationNavigationContext.js +0 -20
- package/lib/__lib__/studio/DSL_Diagram_LegendStudioApplicationNavigationContext.js.map +0 -1
- package/lib/__lib__/studio/DSL_Diagram_LegendStudioCodeSnippet.d.ts +0 -20
- package/lib/__lib__/studio/DSL_Diagram_LegendStudioCodeSnippet.d.ts.map +0 -1
- package/lib/__lib__/studio/DSL_Diagram_LegendStudioCodeSnippet.js +0 -81
- package/lib/__lib__/studio/DSL_Diagram_LegendStudioCodeSnippet.js.map +0 -1
- package/lib/__lib__/studio/DSL_Diagram_LegendStudioCommand.d.ts +0 -28
- package/lib/__lib__/studio/DSL_Diagram_LegendStudioCommand.d.ts.map +0 -1
- package/lib/__lib__/studio/DSL_Diagram_LegendStudioCommand.js +0 -62
- package/lib/__lib__/studio/DSL_Diagram_LegendStudioCommand.js.map +0 -1
- package/lib/__lib__/studio/DSL_Diagram_LegendStudioDocumentation.d.ts +0 -20
- package/lib/__lib__/studio/DSL_Diagram_LegendStudioDocumentation.d.ts.map +0 -1
- package/lib/__lib__/studio/DSL_Diagram_LegendStudioDocumentation.js +0 -21
- package/lib/__lib__/studio/DSL_Diagram_LegendStudioDocumentation.js.map +0 -1
- package/lib/__lib__/studio/DSL_Diagram_LegendStudioTesting.d.ts +0 -20
- package/lib/__lib__/studio/DSL_Diagram_LegendStudioTesting.d.ts.map +0 -1
- package/lib/__lib__/studio/DSL_Diagram_LegendStudioTesting.js +0 -21
- package/lib/__lib__/studio/DSL_Diagram_LegendStudioTesting.js.map +0 -1
- package/lib/components/studio/ClassDiagramPreview.d.ts +0 -22
- package/lib/components/studio/ClassDiagramPreview.d.ts.map +0 -1
- package/lib/components/studio/ClassDiagramPreview.js +0 -64
- package/lib/components/studio/ClassDiagramPreview.js.map +0 -1
- package/lib/components/studio/DSL_Diagram_LegendStudioApplicationPlugin.d.ts +0 -42
- package/lib/components/studio/DSL_Diagram_LegendStudioApplicationPlugin.d.ts.map +0 -1
- package/lib/components/studio/DSL_Diagram_LegendStudioApplicationPlugin.js +0 -216
- package/lib/components/studio/DSL_Diagram_LegendStudioApplicationPlugin.js.map +0 -1
- package/lib/components/studio/DiagramEditor.d.ts +0 -19
- package/lib/components/studio/DiagramEditor.d.ts.map +0 -1
- package/lib/components/studio/DiagramEditor.js +0 -436
- package/lib/components/studio/DiagramEditor.js.map +0 -1
- package/lib/components/studio/InheritanceDiagramRenderer.d.ts +0 -22
- package/lib/components/studio/InheritanceDiagramRenderer.d.ts.map +0 -1
- package/lib/components/studio/InheritanceDiagramRenderer.js +0 -34
- package/lib/components/studio/InheritanceDiagramRenderer.js.map +0 -1
- package/lib/components/studio/index.d.ts +0 -18
- package/lib/components/studio/index.d.ts.map +0 -1
- package/lib/components/studio/index.js +0 -18
- package/lib/components/studio/index.js.map +0 -1
- package/lib/stores/studio/DSL_Diagram_GraphModifierHelper.d.ts +0 -57
- package/lib/stores/studio/DSL_Diagram_GraphModifierHelper.d.ts.map +0 -1
- package/lib/stores/studio/DSL_Diagram_GraphModifierHelper.js +0 -94
- package/lib/stores/studio/DSL_Diagram_GraphModifierHelper.js.map +0 -1
- package/lib/stores/studio/DiagramEditorState.d.ts +0 -88
- package/lib/stores/studio/DiagramEditorState.d.ts.map +0 -1
- package/lib/stores/studio/DiagramEditorState.js +0 -341
- package/lib/stores/studio/DiagramEditorState.js.map +0 -1
- package/src/__lib__/studio/DSL_Diagram_LegendStudioApplicationNavigationContext.ts +0 -19
- package/src/__lib__/studio/DSL_Diagram_LegendStudioCodeSnippet.ts +0 -88
- package/src/__lib__/studio/DSL_Diagram_LegendStudioCommand.ts +0 -64
- package/src/__lib__/studio/DSL_Diagram_LegendStudioDocumentation.ts +0 -20
- package/src/__lib__/studio/DSL_Diagram_LegendStudioTesting.ts +0 -20
- package/src/components/studio/ClassDiagramPreview.tsx +0 -83
- package/src/components/studio/DSL_Diagram_LegendStudioApplicationPlugin.tsx +0 -313
- package/src/components/studio/DiagramEditor.tsx +0 -1514
- package/src/components/studio/InheritanceDiagramRenderer.ts +0 -50
- package/src/components/studio/index.ts +0 -19
- package/src/stores/studio/DSL_Diagram_GraphModifierHelper.ts +0 -166
- package/src/stores/studio/DiagramEditorState.ts +0 -487
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import { guaranteeNonNullable } from '@finos/legend-shared';
|
|
18
|
+
import { action, computed, makeObservable, observable } from 'mobx';
|
|
19
|
+
import type { ClassView } from '../graph/metamodel/pure/packageableElements/diagram/DSL_Diagram_ClassView.js';
|
|
20
|
+
import {
|
|
21
|
+
type DiagramAnalysisResult,
|
|
22
|
+
type DiagramRenderer,
|
|
23
|
+
DIAGRAM_INTERACTION_MODE,
|
|
24
|
+
} from './DiagramRenderer.js';
|
|
25
|
+
import type { CommandRegistrar } from '@finos/legend-application';
|
|
26
|
+
import type { Class } from '@finos/legend-graph';
|
|
27
|
+
|
|
28
|
+
export abstract class DiagramViewerState implements CommandRegistrar {
|
|
29
|
+
readonly diagrams: DiagramAnalysisResult[];
|
|
30
|
+
readonly queryClass?: ((_class: Class) => void) | undefined;
|
|
31
|
+
|
|
32
|
+
_renderer?: DiagramRenderer | undefined;
|
|
33
|
+
currentDiagram?: DiagramAnalysisResult | undefined;
|
|
34
|
+
contextMenuClassView?: ClassView | undefined;
|
|
35
|
+
showDescription = true;
|
|
36
|
+
expandDescription = false;
|
|
37
|
+
|
|
38
|
+
abstract registerCommands(): void;
|
|
39
|
+
abstract deregisterCommands(): void;
|
|
40
|
+
|
|
41
|
+
constructor(
|
|
42
|
+
diagrams: DiagramAnalysisResult[],
|
|
43
|
+
queryClass?: (_class: Class) => void,
|
|
44
|
+
) {
|
|
45
|
+
makeObservable(this, {
|
|
46
|
+
_renderer: observable,
|
|
47
|
+
currentDiagram: observable,
|
|
48
|
+
contextMenuClassView: observable,
|
|
49
|
+
showDescription: observable,
|
|
50
|
+
expandDescription: observable,
|
|
51
|
+
previousDiagram: computed,
|
|
52
|
+
nextDiagram: computed,
|
|
53
|
+
currentDiagramIndex: computed,
|
|
54
|
+
diagramRenderer: computed,
|
|
55
|
+
setDiagramRenderer: action,
|
|
56
|
+
setCurrentDiagram: action,
|
|
57
|
+
setContextMenuClassView: action,
|
|
58
|
+
setShowDescription: action,
|
|
59
|
+
setExpandDescription: action,
|
|
60
|
+
});
|
|
61
|
+
this.queryClass = queryClass;
|
|
62
|
+
this.diagrams = diagrams;
|
|
63
|
+
this.currentDiagram = diagrams[0];
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
get diagramRenderer(): DiagramRenderer {
|
|
67
|
+
return guaranteeNonNullable(
|
|
68
|
+
this._renderer,
|
|
69
|
+
`Diagram renderer must be initialized (this is likely caused by calling this method at the wrong place)`,
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
get isDiagramRendererInitialized(): boolean {
|
|
74
|
+
return Boolean(this._renderer);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// NOTE: we have tried to use React to control the cursor and
|
|
78
|
+
// could not overcome the jank/lag problem, so we settle with CSS-based approach
|
|
79
|
+
// See https://css-tricks.com/using-css-cursors/
|
|
80
|
+
// See https://developer.mozilla.org/en-US/docs/Web/CSS/cursor
|
|
81
|
+
get diagramCursorClass(): string {
|
|
82
|
+
if (!this.isDiagramRendererInitialized) {
|
|
83
|
+
return '';
|
|
84
|
+
}
|
|
85
|
+
switch (this.diagramRenderer.interactionMode) {
|
|
86
|
+
case DIAGRAM_INTERACTION_MODE.PAN: {
|
|
87
|
+
return this.diagramRenderer.leftClick
|
|
88
|
+
? 'data-space__viewer__diagram-viewer__cursor--grabbing'
|
|
89
|
+
: 'data-space__viewer__diagram-viewer__cursor--grab';
|
|
90
|
+
}
|
|
91
|
+
case DIAGRAM_INTERACTION_MODE.ZOOM_IN: {
|
|
92
|
+
return 'data-space__viewer__diagram-viewer__cursor--zoom-in';
|
|
93
|
+
}
|
|
94
|
+
case DIAGRAM_INTERACTION_MODE.ZOOM_OUT: {
|
|
95
|
+
return 'data-space__viewer__diagram-viewer__cursor--zoom-out';
|
|
96
|
+
}
|
|
97
|
+
case DIAGRAM_INTERACTION_MODE.LAYOUT: {
|
|
98
|
+
if (this.diagramRenderer.mouseOverClassView) {
|
|
99
|
+
return 'data-space__viewer__diagram-viewer__cursor--pointer';
|
|
100
|
+
}
|
|
101
|
+
return '';
|
|
102
|
+
}
|
|
103
|
+
default:
|
|
104
|
+
return '';
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
get previousDiagram(): DiagramAnalysisResult | undefined {
|
|
109
|
+
if (!this.currentDiagram) {
|
|
110
|
+
return undefined;
|
|
111
|
+
}
|
|
112
|
+
const idx = this.diagrams.indexOf(this.currentDiagram);
|
|
113
|
+
if (idx === 0 || idx === -1) {
|
|
114
|
+
return undefined;
|
|
115
|
+
}
|
|
116
|
+
return this.diagrams[idx - 1];
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
get nextDiagram(): DiagramAnalysisResult | undefined {
|
|
120
|
+
if (!this.currentDiagram) {
|
|
121
|
+
return undefined;
|
|
122
|
+
}
|
|
123
|
+
const idx = this.diagrams.indexOf(this.currentDiagram);
|
|
124
|
+
if (idx === this.diagrams.length - 1 || idx === -1) {
|
|
125
|
+
return undefined;
|
|
126
|
+
}
|
|
127
|
+
return this.diagrams[idx + 1];
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
get currentDiagramIndex(): number {
|
|
131
|
+
return this.currentDiagram
|
|
132
|
+
? this.diagrams.indexOf(this.currentDiagram) + 1
|
|
133
|
+
: 0;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
setDiagramRenderer(val: DiagramRenderer): void {
|
|
137
|
+
this._renderer = val;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
setCurrentDiagram(val: DiagramAnalysisResult): void {
|
|
141
|
+
this.currentDiagram = val;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
setContextMenuClassView(val: ClassView | undefined): void {
|
|
145
|
+
this.contextMenuClassView = val;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
setupDiagramRenderer(): void {
|
|
149
|
+
this.diagramRenderer.setIsReadOnly(true);
|
|
150
|
+
this.diagramRenderer.setEnableLayoutAutoAdjustment(true);
|
|
151
|
+
if (this.queryClass) {
|
|
152
|
+
this.diagramRenderer.onClassViewDoubleClick = (
|
|
153
|
+
classView: ClassView,
|
|
154
|
+
): void => this.queryClass?.(classView.class.value);
|
|
155
|
+
}
|
|
156
|
+
this.diagramRenderer.onClassViewRightClick = (
|
|
157
|
+
classView: ClassView,
|
|
158
|
+
): void => {
|
|
159
|
+
this.setContextMenuClassView(classView);
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
setShowDescription(val: boolean): void {
|
|
164
|
+
this.showDescription = val;
|
|
165
|
+
this.setExpandDescription(false);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
setExpandDescription(val: boolean): void {
|
|
169
|
+
this.expandDescription = val;
|
|
170
|
+
}
|
|
171
|
+
}
|
package/src/components/index.ts
CHANGED
|
@@ -20,4 +20,8 @@ export {
|
|
|
20
20
|
DIAGRAM_ZOOM_LEVELS,
|
|
21
21
|
DIAGRAM_INTERACTION_MODE,
|
|
22
22
|
DIAGRAM_RELATIONSHIP_EDIT_MODE,
|
|
23
|
+
DiagramAnalysisResult,
|
|
23
24
|
} from './DiagramRenderer.js';
|
|
25
|
+
export * from './DiagramViewerState.js';
|
|
26
|
+
export * from './DiagramViewer.js';
|
|
27
|
+
export * from './DiagramRenderer.js';
|
|
@@ -26,6 +26,8 @@ export { GeneralizationView } from '../graph/metamodel/pure/packageableElements/
|
|
|
26
26
|
export { Point } from '../graph/metamodel/pure/packageableElements/diagram/geometry/DSL_Diagram_Point.js';
|
|
27
27
|
export { Rectangle } from '../graph/metamodel/pure/packageableElements/diagram/geometry/DSL_Diagram_Rectangle.js';
|
|
28
28
|
export { PositionedRectangle } from '../graph/metamodel/pure/packageableElements/diagram/geometry/DSL_Diagram_PositionedRectangle.js';
|
|
29
|
+
export { RelationshipViewEnd } from '../graph/metamodel/pure/packageableElements/diagram/DSL_Diagram_RelationshipViewEnd.js';
|
|
30
|
+
export { ClassViewReference } from '../graph/metamodel/pure/packageableElements/diagram/DSL_Diagram_ClassViewReference.js';
|
|
29
31
|
|
|
30
32
|
export * from '../graph/helpers/DSL_Diagram_Helper.js';
|
|
31
33
|
export * from './DSL_Diagram_GraphManagerHelper.js';
|
|
@@ -33,3 +35,4 @@ export { V1_DSL_Diagram_PackageableElementPointerType } from './protocol/pure/DS
|
|
|
33
35
|
export { V1_resolveDiagram } from './protocol/pure/v1/transformation/pureGraph/V1_DSL_Diagram_GraphBuilderHelper.js';
|
|
34
36
|
export { V1_transformDiagram } from './protocol/pure/v1/transformation/pureGraph/V1_DSL_Diagram_TransformerHelper.js';
|
|
35
37
|
export * from './protocol/pure/v1/transformation/pureProtocol/V1_DSL_Diagram_ProtocolHelper.js';
|
|
38
|
+
export * from './action/changeDetection/DSL_Diagram_ObserverHelper.js';
|
package/src/index.ts
CHANGED
package/tsconfig.json
CHANGED
|
@@ -52,15 +52,9 @@
|
|
|
52
52
|
],
|
|
53
53
|
"files": [
|
|
54
54
|
"./src/index.ts",
|
|
55
|
-
"./src/__lib__/studio/DSL_Diagram_LegendStudioApplicationNavigationContext.ts",
|
|
56
|
-
"./src/__lib__/studio/DSL_Diagram_LegendStudioCodeSnippet.ts",
|
|
57
|
-
"./src/__lib__/studio/DSL_Diagram_LegendStudioCommand.ts",
|
|
58
|
-
"./src/__lib__/studio/DSL_Diagram_LegendStudioDocumentation.ts",
|
|
59
|
-
"./src/__lib__/studio/DSL_Diagram_LegendStudioTesting.ts",
|
|
60
55
|
"./src/components/DiagramRenderer.ts",
|
|
56
|
+
"./src/components/DiagramViewerState.ts",
|
|
61
57
|
"./src/components/index.ts",
|
|
62
|
-
"./src/components/studio/InheritanceDiagramRenderer.ts",
|
|
63
|
-
"./src/components/studio/index.ts",
|
|
64
58
|
"./src/graph/DSL_Diagram_HashUtils.ts",
|
|
65
59
|
"./src/graph/DSL_Diagram_PureGraphPlugin.ts",
|
|
66
60
|
"./src/graph/helpers/DSL_Diagram_Helper.ts",
|
|
@@ -95,11 +89,7 @@
|
|
|
95
89
|
"./src/graph-manager/protocol/pure/v1/transformation/pureGraph/V1_DSL_Diagram_GraphBuilderHelper.ts",
|
|
96
90
|
"./src/graph-manager/protocol/pure/v1/transformation/pureGraph/V1_DSL_Diagram_TransformerHelper.ts",
|
|
97
91
|
"./src/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_Diagram_ProtocolHelper.ts",
|
|
98
|
-
"./src/
|
|
99
|
-
"./src/stores/studio/DiagramEditorState.ts",
|
|
100
|
-
"./src/components/studio/ClassDiagramPreview.tsx",
|
|
101
|
-
"./src/components/studio/DSL_Diagram_LegendStudioApplicationPlugin.tsx",
|
|
102
|
-
"./src/components/studio/DiagramEditor.tsx"
|
|
92
|
+
"./src/components/DiagramViewer.tsx"
|
|
103
93
|
],
|
|
104
94
|
"include": [
|
|
105
95
|
"src/**/*.ts",
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
export declare enum DSL_DIAGRAM_LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY {
|
|
17
|
-
DIAGRAM_EDITOR = "dsl-diagram.studio.editor.diagram-editor"
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=DSL_Diagram_LegendStudioApplicationNavigationContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DSL_Diagram_LegendStudioApplicationNavigationContext.d.ts","sourceRoot":"","sources":["../../../src/__lib__/studio/DSL_Diagram_LegendStudioApplicationNavigationContext.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,4DAA4D;IACtE,cAAc,6CAA6C;CAC5D"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
export var DSL_DIAGRAM_LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY;
|
|
17
|
-
(function (DSL_DIAGRAM_LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY) {
|
|
18
|
-
DSL_DIAGRAM_LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY["DIAGRAM_EDITOR"] = "dsl-diagram.studio.editor.diagram-editor";
|
|
19
|
-
})(DSL_DIAGRAM_LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY || (DSL_DIAGRAM_LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY = {}));
|
|
20
|
-
//# sourceMappingURL=DSL_Diagram_LegendStudioApplicationNavigationContext.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DSL_Diagram_LegendStudioApplicationNavigationContext.js","sourceRoot":"","sources":["../../../src/__lib__/studio/DSL_Diagram_LegendStudioApplicationNavigationContext.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,4DAEX;AAFD,WAAY,4DAA4D;IACtE,2HAA2D,CAAA;AAC7D,CAAC,EAFW,4DAA4D,KAA5D,4DAA4D,QAEvE"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
export declare const EMPTY_DIAGRAM_SNIPPET = "Diagram ${1:model::NewDiagram}\n{\n ${2:// diagram content: it is highly recommended to create diagrams using\n // diagram editor as it gives better visual guidance and less error-prone}\n}";
|
|
17
|
-
export declare const getDiagramSnippetWithOneClassView: () => string;
|
|
18
|
-
export declare const getDiagramSnippetWithPropertyView: () => string;
|
|
19
|
-
export declare const getDiagramSnippetWithGeneralizationView: () => string;
|
|
20
|
-
//# sourceMappingURL=DSL_Diagram_LegendStudioCodeSnippet.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DSL_Diagram_LegendStudioCodeSnippet.d.ts","sourceRoot":"","sources":["../../../src/__lib__/studio/DSL_Diagram_LegendStudioCodeSnippet.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,eAAO,MAAM,qBAAqB,oMAGhC,CAAC;AAEH,eAAO,MAAM,iCAAiC,QACxC,MAQJ,CAAC;AAEH,eAAO,MAAM,iCAAiC,QAAO,MA0BpD,CAAC;AAEF,eAAO,MAAM,uCAAuC,QAAO,MAyB1D,CAAC"}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import { uuid } from '@finos/legend-shared';
|
|
17
|
-
export const EMPTY_DIAGRAM_SNIPPET = `Diagram \${1:model::NewDiagram}
|
|
18
|
-
{
|
|
19
|
-
\${2:// diagram content: it is highly recommended to create diagrams using\n // diagram editor as it gives better visual guidance and less error-prone}
|
|
20
|
-
}`;
|
|
21
|
-
export const getDiagramSnippetWithOneClassView = () => `Diagram \${1:model::NewDiagram}
|
|
22
|
-
{
|
|
23
|
-
classView ${uuid()}
|
|
24
|
-
{
|
|
25
|
-
class: \${2:model::SomeClass};
|
|
26
|
-
position: (0.0,0.0);
|
|
27
|
-
rectangle: (10.0, 10.0);
|
|
28
|
-
}
|
|
29
|
-
}`;
|
|
30
|
-
export const getDiagramSnippetWithPropertyView = () => {
|
|
31
|
-
const classId1 = uuid();
|
|
32
|
-
const classId2 = uuid();
|
|
33
|
-
return `Diagram \${1:model::NewDiagram}
|
|
34
|
-
{
|
|
35
|
-
classView ${classId1}
|
|
36
|
-
{
|
|
37
|
-
class: \${2:model::Class1};
|
|
38
|
-
position: (0.0,0.0);
|
|
39
|
-
rectangle: (10.0, 10.0);
|
|
40
|
-
}
|
|
41
|
-
classView ${classId2}
|
|
42
|
-
{
|
|
43
|
-
class: \${3:model::Class2};
|
|
44
|
-
position: (0.0,0.0);
|
|
45
|
-
rectangle: (10.0, 10.0);
|
|
46
|
-
}
|
|
47
|
-
propertyView
|
|
48
|
-
{
|
|
49
|
-
property: \${4:model::Class1.prop1};
|
|
50
|
-
source: ${classId1};
|
|
51
|
-
target: ${classId2};
|
|
52
|
-
points: [];
|
|
53
|
-
}
|
|
54
|
-
}`;
|
|
55
|
-
};
|
|
56
|
-
export const getDiagramSnippetWithGeneralizationView = () => {
|
|
57
|
-
const classId1 = uuid();
|
|
58
|
-
const classId2 = uuid();
|
|
59
|
-
return `Diagram \${1:model::NewDiagram}
|
|
60
|
-
{
|
|
61
|
-
classView ${classId1}
|
|
62
|
-
{
|
|
63
|
-
class: \${2:model::Class1};
|
|
64
|
-
position: (0.0,0.0);
|
|
65
|
-
rectangle: (10.0, 10.0);
|
|
66
|
-
}
|
|
67
|
-
classView ${classId2}
|
|
68
|
-
{
|
|
69
|
-
class: \${3:model::Class2};
|
|
70
|
-
position: (0.0,0.0);
|
|
71
|
-
rectangle: (10.0, 10.0);
|
|
72
|
-
}
|
|
73
|
-
generalizationView
|
|
74
|
-
{
|
|
75
|
-
source: ${classId1};
|
|
76
|
-
target: ${classId2};
|
|
77
|
-
points: [];
|
|
78
|
-
}
|
|
79
|
-
}`;
|
|
80
|
-
};
|
|
81
|
-
//# sourceMappingURL=DSL_Diagram_LegendStudioCodeSnippet.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DSL_Diagram_LegendStudioCodeSnippet.js","sourceRoot":"","sources":["../../../src/__lib__/studio/DSL_Diagram_LegendStudioCodeSnippet.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAE5C,MAAM,CAAC,MAAM,qBAAqB,GAAG;;;EAGnC,CAAC;AAEH,MAAM,CAAC,MAAM,iCAAiC,GAC5C,GAAW,EAAE,CAAC;;cAEF,IAAI,EAAE;;;;;;EAMlB,CAAC;AAEH,MAAM,CAAC,MAAM,iCAAiC,GAAG,GAAW,EAAE;IAC5D,MAAM,QAAQ,GAAG,IAAI,EAAE,CAAC;IACxB,MAAM,QAAQ,GAAG,IAAI,EAAE,CAAC;IAExB,OAAO;;cAEK,QAAQ;;;;;;cAMR,QAAQ;;;;;;;;;cASR,QAAQ;cACR,QAAQ;;;EAGpB,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,uCAAuC,GAAG,GAAW,EAAE;IAClE,MAAM,QAAQ,GAAG,IAAI,EAAE,CAAC;IACxB,MAAM,QAAQ,GAAG,IAAI,EAAE,CAAC;IAExB,OAAO;;cAEK,QAAQ;;;;;;cAMR,QAAQ;;;;;;;;cAQR,QAAQ;cACR,QAAQ;;;EAGpB,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import type { CommandConfigData } from '@finos/legend-application';
|
|
17
|
-
export declare enum DSL_DIAGRAM_LEGEND_STUDIO_COMMAND_KEY {
|
|
18
|
-
RECENTER = "dsl-diagram.diagram-editor.recenter",
|
|
19
|
-
USE_ZOOM_TOOL = "dsl-diagram.diagram-editor.use-zoom-tool",
|
|
20
|
-
USE_VIEW_TOOL = "dsl-diagram.diagram-editor.use-view-tool",
|
|
21
|
-
USE_PAN_TOOL = "dsl-diagram.diagram-editor.use-pan-tool",
|
|
22
|
-
USE_PROPERTY_TOOL = "dsl-diagram.diagram-editor.use-property-tool",
|
|
23
|
-
USE_INHERITANCE_TOOL = "dsl-diagram.diagram-editor.use-inheritance-tool",
|
|
24
|
-
ADD_CLASS = "dsl-diagram.diagram-editor.add-class",
|
|
25
|
-
EJECT_PROPERTY = "dsl-diagram.diagram-editor.eject-property"
|
|
26
|
-
}
|
|
27
|
-
export declare const DSL_DIAGRAM_LEGEND_STUDIO_COMMAND_CONFIG: CommandConfigData;
|
|
28
|
-
//# sourceMappingURL=DSL_Diagram_LegendStudioCommand.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DSL_Diagram_LegendStudioCommand.d.ts","sourceRoot":"","sources":["../../../src/__lib__/studio/DSL_Diagram_LegendStudioCommand.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAEnE,oBAAY,qCAAqC;IAC/C,QAAQ,wCAAwC;IAChD,aAAa,6CAA6C;IAC1D,aAAa,6CAA6C;IAC1D,YAAY,4CAA4C;IACxD,iBAAiB,iDAAiD;IAClE,oBAAoB,oDAAoD;IACxE,SAAS,yCAAyC;IAClD,cAAc,8CAA8C;CAC7D;AAED,eAAO,MAAM,wCAAwC,EAAE,iBAkCtD,CAAC"}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
export var DSL_DIAGRAM_LEGEND_STUDIO_COMMAND_KEY;
|
|
17
|
-
(function (DSL_DIAGRAM_LEGEND_STUDIO_COMMAND_KEY) {
|
|
18
|
-
DSL_DIAGRAM_LEGEND_STUDIO_COMMAND_KEY["RECENTER"] = "dsl-diagram.diagram-editor.recenter";
|
|
19
|
-
DSL_DIAGRAM_LEGEND_STUDIO_COMMAND_KEY["USE_ZOOM_TOOL"] = "dsl-diagram.diagram-editor.use-zoom-tool";
|
|
20
|
-
DSL_DIAGRAM_LEGEND_STUDIO_COMMAND_KEY["USE_VIEW_TOOL"] = "dsl-diagram.diagram-editor.use-view-tool";
|
|
21
|
-
DSL_DIAGRAM_LEGEND_STUDIO_COMMAND_KEY["USE_PAN_TOOL"] = "dsl-diagram.diagram-editor.use-pan-tool";
|
|
22
|
-
DSL_DIAGRAM_LEGEND_STUDIO_COMMAND_KEY["USE_PROPERTY_TOOL"] = "dsl-diagram.diagram-editor.use-property-tool";
|
|
23
|
-
DSL_DIAGRAM_LEGEND_STUDIO_COMMAND_KEY["USE_INHERITANCE_TOOL"] = "dsl-diagram.diagram-editor.use-inheritance-tool";
|
|
24
|
-
DSL_DIAGRAM_LEGEND_STUDIO_COMMAND_KEY["ADD_CLASS"] = "dsl-diagram.diagram-editor.add-class";
|
|
25
|
-
DSL_DIAGRAM_LEGEND_STUDIO_COMMAND_KEY["EJECT_PROPERTY"] = "dsl-diagram.diagram-editor.eject-property";
|
|
26
|
-
})(DSL_DIAGRAM_LEGEND_STUDIO_COMMAND_KEY || (DSL_DIAGRAM_LEGEND_STUDIO_COMMAND_KEY = {}));
|
|
27
|
-
export const DSL_DIAGRAM_LEGEND_STUDIO_COMMAND_CONFIG = {
|
|
28
|
-
[DSL_DIAGRAM_LEGEND_STUDIO_COMMAND_KEY.RECENTER]: {
|
|
29
|
-
title: 'Diagram Editor: Recenter',
|
|
30
|
-
defaultKeyboardShortcut: 'KeyR',
|
|
31
|
-
},
|
|
32
|
-
[DSL_DIAGRAM_LEGEND_STUDIO_COMMAND_KEY.USE_ZOOM_TOOL]: {
|
|
33
|
-
title: 'Diagram Editor: Use zoom tool',
|
|
34
|
-
defaultKeyboardShortcut: 'KeyZ',
|
|
35
|
-
},
|
|
36
|
-
[DSL_DIAGRAM_LEGEND_STUDIO_COMMAND_KEY.USE_VIEW_TOOL]: {
|
|
37
|
-
title: 'Diagram Editor: Use view tool',
|
|
38
|
-
defaultKeyboardShortcut: 'KeyV',
|
|
39
|
-
},
|
|
40
|
-
[DSL_DIAGRAM_LEGEND_STUDIO_COMMAND_KEY.USE_PAN_TOOL]: {
|
|
41
|
-
title: 'Diagram Editor: Use pan tool',
|
|
42
|
-
defaultKeyboardShortcut: 'KeyM',
|
|
43
|
-
},
|
|
44
|
-
[DSL_DIAGRAM_LEGEND_STUDIO_COMMAND_KEY.USE_PROPERTY_TOOL]: {
|
|
45
|
-
title: 'Diagram Editor: Use property tool',
|
|
46
|
-
defaultKeyboardShortcut: 'KeyP',
|
|
47
|
-
},
|
|
48
|
-
[DSL_DIAGRAM_LEGEND_STUDIO_COMMAND_KEY.USE_INHERITANCE_TOOL]: {
|
|
49
|
-
title: 'Diagram Editor: Use inheritance tool',
|
|
50
|
-
defaultKeyboardShortcut: 'KeyI',
|
|
51
|
-
},
|
|
52
|
-
[DSL_DIAGRAM_LEGEND_STUDIO_COMMAND_KEY.ADD_CLASS]: {
|
|
53
|
-
title: 'Diagram Editor: Add class',
|
|
54
|
-
defaultKeyboardShortcut: 'KeyC',
|
|
55
|
-
},
|
|
56
|
-
[DSL_DIAGRAM_LEGEND_STUDIO_COMMAND_KEY.EJECT_PROPERTY]: {
|
|
57
|
-
title: 'Diagram Editor: Eject Property',
|
|
58
|
-
defaultKeyboardShortcut: 'ArrowRight',
|
|
59
|
-
when: 'When hovering on a class property',
|
|
60
|
-
},
|
|
61
|
-
};
|
|
62
|
-
//# sourceMappingURL=DSL_Diagram_LegendStudioCommand.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DSL_Diagram_LegendStudioCommand.js","sourceRoot":"","sources":["../../../src/__lib__/studio/DSL_Diagram_LegendStudioCommand.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,MAAM,CAAN,IAAY,qCASX;AATD,WAAY,qCAAqC;IAC/C,yFAAgD,CAAA;IAChD,mGAA0D,CAAA;IAC1D,mGAA0D,CAAA;IAC1D,iGAAwD,CAAA;IACxD,2GAAkE,CAAA;IAClE,iHAAwE,CAAA;IACxE,2FAAkD,CAAA;IAClD,qGAA4D,CAAA;AAC9D,CAAC,EATW,qCAAqC,KAArC,qCAAqC,QAShD;AAED,MAAM,CAAC,MAAM,wCAAwC,GAAsB;IACzE,CAAC,qCAAqC,CAAC,QAAQ,CAAC,EAAE;QAChD,KAAK,EAAE,0BAA0B;QACjC,uBAAuB,EAAE,MAAM;KAChC;IACD,CAAC,qCAAqC,CAAC,aAAa,CAAC,EAAE;QACrD,KAAK,EAAE,+BAA+B;QACtC,uBAAuB,EAAE,MAAM;KAChC;IACD,CAAC,qCAAqC,CAAC,aAAa,CAAC,EAAE;QACrD,KAAK,EAAE,+BAA+B;QACtC,uBAAuB,EAAE,MAAM;KAChC;IACD,CAAC,qCAAqC,CAAC,YAAY,CAAC,EAAE;QACpD,KAAK,EAAE,8BAA8B;QACrC,uBAAuB,EAAE,MAAM;KAChC;IACD,CAAC,qCAAqC,CAAC,iBAAiB,CAAC,EAAE;QACzD,KAAK,EAAE,mCAAmC;QAC1C,uBAAuB,EAAE,MAAM;KAChC;IACD,CAAC,qCAAqC,CAAC,oBAAoB,CAAC,EAAE;QAC5D,KAAK,EAAE,sCAAsC;QAC7C,uBAAuB,EAAE,MAAM;KAChC;IACD,CAAC,qCAAqC,CAAC,SAAS,CAAC,EAAE;QACjD,KAAK,EAAE,2BAA2B;QAClC,uBAAuB,EAAE,MAAM;KAChC;IACD,CAAC,qCAAqC,CAAC,cAAc,CAAC,EAAE;QACtD,KAAK,EAAE,gCAAgC;QACvC,uBAAuB,EAAE,YAAY;QACrC,IAAI,EAAE,mCAAmC;KAC1C;CACF,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
export declare enum DSL_DIAGRAM_LEGEND_STUDIO_DOCUMENTATION_KEY {
|
|
17
|
-
GRAMMAR_PARSER = "dsl-diagram.grammar.parser",
|
|
18
|
-
CONCEPT_ELEMENT_DIAGRAM = "dsl-diagram.concept.element.diagram"
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=DSL_Diagram_LegendStudioDocumentation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DSL_Diagram_LegendStudioDocumentation.d.ts","sourceRoot":"","sources":["../../../src/__lib__/studio/DSL_Diagram_LegendStudioDocumentation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,2CAA2C;IACrD,cAAc,+BAA+B;IAC7C,uBAAuB,wCAAwC;CAChE"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
export var DSL_DIAGRAM_LEGEND_STUDIO_DOCUMENTATION_KEY;
|
|
17
|
-
(function (DSL_DIAGRAM_LEGEND_STUDIO_DOCUMENTATION_KEY) {
|
|
18
|
-
DSL_DIAGRAM_LEGEND_STUDIO_DOCUMENTATION_KEY["GRAMMAR_PARSER"] = "dsl-diagram.grammar.parser";
|
|
19
|
-
DSL_DIAGRAM_LEGEND_STUDIO_DOCUMENTATION_KEY["CONCEPT_ELEMENT_DIAGRAM"] = "dsl-diagram.concept.element.diagram";
|
|
20
|
-
})(DSL_DIAGRAM_LEGEND_STUDIO_DOCUMENTATION_KEY || (DSL_DIAGRAM_LEGEND_STUDIO_DOCUMENTATION_KEY = {}));
|
|
21
|
-
//# sourceMappingURL=DSL_Diagram_LegendStudioDocumentation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DSL_Diagram_LegendStudioDocumentation.js","sourceRoot":"","sources":["../../../src/__lib__/studio/DSL_Diagram_LegendStudioDocumentation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,2CAGX;AAHD,WAAY,2CAA2C;IACrD,4FAA6C,CAAA;IAC7C,8GAA+D,CAAA;AACjE,CAAC,EAHW,2CAA2C,KAA3C,2CAA2C,QAGtD"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
export declare enum DSL_DIAGRAM_TEST_ID {
|
|
17
|
-
CLASS_DIAGRAM_PREVIEW = "class-diagram-preview",
|
|
18
|
-
DIAGRAM_EDITOR = "diagram-editor"
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=DSL_Diagram_LegendStudioTesting.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DSL_Diagram_LegendStudioTesting.d.ts","sourceRoot":"","sources":["../../../src/__lib__/studio/DSL_Diagram_LegendStudioTesting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,mBAAmB;IAC7B,qBAAqB,0BAA0B;IAC/C,cAAc,mBAAmB;CAClC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
export var DSL_DIAGRAM_TEST_ID;
|
|
17
|
-
(function (DSL_DIAGRAM_TEST_ID) {
|
|
18
|
-
DSL_DIAGRAM_TEST_ID["CLASS_DIAGRAM_PREVIEW"] = "class-diagram-preview";
|
|
19
|
-
DSL_DIAGRAM_TEST_ID["DIAGRAM_EDITOR"] = "diagram-editor";
|
|
20
|
-
})(DSL_DIAGRAM_TEST_ID || (DSL_DIAGRAM_TEST_ID = {}));
|
|
21
|
-
//# sourceMappingURL=DSL_Diagram_LegendStudioTesting.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DSL_Diagram_LegendStudioTesting.js","sourceRoot":"","sources":["../../../src/__lib__/studio/DSL_Diagram_LegendStudioTesting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC7B,sEAA+C,CAAA;IAC/C,wDAAiC,CAAA;AACnC,CAAC,EAHW,mBAAmB,KAAnB,mBAAmB,QAG9B"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import { type Class } from '@finos/legend-graph';
|
|
17
|
-
export declare const ClassDiagramPreview: ((props: {
|
|
18
|
-
_class: Class;
|
|
19
|
-
}) => import("react/jsx-runtime").JSX.Element) & {
|
|
20
|
-
displayName: string;
|
|
21
|
-
};
|
|
22
|
-
//# sourceMappingURL=ClassDiagramPreview.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ClassDiagramPreview.d.ts","sourceRoot":"","sources":["../../../src/components/studio/ClassDiagramPreview.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,OAAO,EAAE,KAAK,KAAK,EAAqB,MAAM,qBAAqB,CAAC;AAKpE,eAAO,MAAM,mBAAmB,WAAoB;IAAE,MAAM,EAAE,KAAK,CAAA;CAAE;;CA0DnE,CAAC"}
|