@finos/legend-extension-dsl-diagram 0.1.2 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +14 -0
- package/lib/DSLDiagram_Extension.d.ts +0 -5
- package/lib/DSLDiagram_Extension.d.ts.map +1 -1
- package/lib/DSLDiagram_Extension.js +0 -12
- package/lib/DSLDiagram_Extension.js.map +1 -1
- package/lib/components/studio/ClassDiagramPreview.js +1 -1
- package/lib/components/studio/ClassDiagramPreview.js.map +1 -1
- package/lib/components/studio/{DSLDiagram_StudioPlugin.d.ts → DSLDiagram_LegendStudioPlugin.d.ts} +4 -5
- package/lib/components/studio/DSLDiagram_LegendStudioPlugin.d.ts.map +1 -0
- package/lib/components/studio/{DSLDiagram_StudioPlugin.js → DSLDiagram_LegendStudioPlugin.js} +4 -7
- package/lib/components/studio/DSLDiagram_LegendStudioPlugin.js.map +1 -0
- package/lib/components/studio/{DSLDiagram_StudioPlugin_Extension.d.ts → DSLDiagram_LegendStudioPlugin_Extension.d.ts} +3 -3
- package/lib/components/studio/DSLDiagram_LegendStudioPlugin_Extension.d.ts.map +1 -0
- package/lib/components/studio/{DSLDiagram_StudioPlugin_Extension.js → DSLDiagram_LegendStudioPlugin_Extension.js} +1 -1
- package/lib/components/studio/DSLDiagram_LegendStudioPlugin_Extension.js.map +1 -0
- package/lib/components/studio/DiagramEditor.js +36 -36
- package/lib/components/studio/DiagramEditor.js.map +1 -1
- package/lib/graph/DSLDiagram_PureGraphPlugin.d.ts +1 -2
- package/lib/graph/DSLDiagram_PureGraphPlugin.d.ts.map +1 -1
- package/lib/graph/DSLDiagram_PureGraphPlugin.js +0 -3
- package/lib/graph/DSLDiagram_PureGraphPlugin.js.map +1 -1
- package/lib/graphManager/DSLDiagram_PureGraphManagerPlugin.d.ts +1 -2
- package/lib/graphManager/DSLDiagram_PureGraphManagerPlugin.d.ts.map +1 -1
- package/lib/graphManager/DSLDiagram_PureGraphManagerPlugin.js +0 -3
- package/lib/graphManager/DSLDiagram_PureGraphManagerPlugin.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -1
- package/lib/index.js.map +1 -1
- package/lib/models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin.d.ts +1 -2
- package/lib/models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin.d.ts.map +1 -1
- package/lib/models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin.js +0 -3
- package/lib/models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin.js.map +1 -1
- package/lib/stores/studio/DiagramEditorState.d.ts.map +1 -1
- package/lib/stores/studio/DiagramEditorState.js +3 -3
- package/lib/stores/studio/DiagramEditorState.js.map +1 -1
- package/package.json +16 -17
- package/src/DSLDiagram_Extension.ts +0 -15
- package/src/components/studio/{DSLDiagram_StudioPlugin.tsx → DSLDiagram_LegendStudioPlugin.tsx} +5 -10
- package/src/components/studio/{DSLDiagram_StudioPlugin_Extension.tsx → DSLDiagram_LegendStudioPlugin_Extension.tsx} +3 -3
- package/src/components/studio/DiagramEditor.tsx +2 -2
- package/src/graph/DSLDiagram_PureGraphPlugin.ts +0 -5
- package/src/graphManager/DSLDiagram_PureGraphManagerPlugin.ts +0 -5
- package/src/index.ts +3 -1
- package/src/models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin.ts +0 -5
- package/src/stores/studio/DiagramEditorState.ts +3 -7
- package/tsconfig.json +2 -2
- package/lib/components/studio/DSLDiagram_StudioPlugin.d.ts.map +0 -1
- package/lib/components/studio/DSLDiagram_StudioPlugin.js.map +0 -1
- package/lib/components/studio/DSLDiagram_StudioPlugin_Extension.d.ts.map +0 -1
- package/lib/components/studio/DSLDiagram_StudioPlugin_Extension.js.map +0 -1
@@ -18,7 +18,6 @@ import packageJson from '../../package.json';
|
|
18
18
|
import type { Clazz } from '@finos/legend-shared';
|
19
19
|
import type {
|
20
20
|
DeadReferencesCleaner,
|
21
|
-
GraphPluginManager,
|
22
21
|
PackageableElement,
|
23
22
|
PureModel,
|
24
23
|
} from '@finos/legend-graph';
|
@@ -31,10 +30,6 @@ export class DSLDiagram_PureGraphPlugin extends PureGraphPlugin {
|
|
31
30
|
super(packageJson.extensions.pureGraphPlugin, packageJson.version);
|
32
31
|
}
|
33
32
|
|
34
|
-
install(pluginManager: GraphPluginManager): void {
|
35
|
-
pluginManager.registerPureGraphPlugin(this);
|
36
|
-
}
|
37
|
-
|
38
33
|
override getExtraPureGraphExtensionClasses(): Clazz<PackageableElement>[] {
|
39
34
|
return [Diagram];
|
40
35
|
}
|
@@ -16,7 +16,6 @@
|
|
16
16
|
|
17
17
|
import packageJson from '../../package.json';
|
18
18
|
import type {
|
19
|
-
GraphPluginManager,
|
20
19
|
PackageableElement,
|
21
20
|
PureGrammarElementLabeler,
|
22
21
|
} from '@finos/legend-graph';
|
@@ -31,10 +30,6 @@ export class DSLDiagram_PureGraphManagerPlugin extends PureGraphManagerPlugin {
|
|
31
30
|
super(packageJson.extensions.pureGraphManagerPlugin, packageJson.version);
|
32
31
|
}
|
33
32
|
|
34
|
-
install(pluginManager: GraphPluginManager): void {
|
35
|
-
pluginManager.registerPureGraphManagerPlugin(this);
|
36
|
-
}
|
37
|
-
|
38
33
|
override getExtraPureGrammarParserNames(): string[] {
|
39
34
|
return [PURE_GRAMMAR_DIAGRAM_PARSER_NAME];
|
40
35
|
}
|
package/src/index.ts
CHANGED
@@ -15,7 +15,9 @@
|
|
15
15
|
*/
|
16
16
|
|
17
17
|
export * from './DSLDiagram_Extension';
|
18
|
-
export
|
18
|
+
export { DSLDiagram_LegendStudioPlugin } from './components/studio/DSLDiagram_LegendStudioPlugin';
|
19
|
+
export * from './components/studio/DSLDiagram_LegendStudioPlugin_Extension';
|
20
|
+
|
19
21
|
export { DiagramEditorState } from './stores/studio/DiagramEditorState';
|
20
22
|
|
21
23
|
export { DiagramRenderer, DIAGRAM_INTERACTION_MODE } from './DiagramRenderer';
|
@@ -24,7 +24,6 @@ import {
|
|
24
24
|
V1_DIAGRAM_ELEMENT_PROTOCOL_TYPE,
|
25
25
|
} from './v1/transformation/pureProtocol/V1_DSLDiagram_ProtocolHelper';
|
26
26
|
import type {
|
27
|
-
GraphPluginManager,
|
28
27
|
PackageableElement,
|
29
28
|
V1_ElementProtocolClassifierPathGetter,
|
30
29
|
V1_ElementProtocolDeserializer,
|
@@ -60,10 +59,6 @@ export class DSLDiagram_PureProtocolProcessorPlugin extends PureProtocolProcesso
|
|
60
59
|
);
|
61
60
|
}
|
62
61
|
|
63
|
-
install(pluginManager: GraphPluginManager): void {
|
64
|
-
pluginManager.registerPureProtocolProcessorPlugin(this);
|
65
|
-
}
|
66
|
-
|
67
62
|
override V1_getExtraElementBuilders(): V1_ElementBuilder<V1_PackageableElement>[] {
|
68
63
|
return [
|
69
64
|
new V1_ElementBuilder<V1_Diagram>({
|
@@ -22,7 +22,7 @@ import {
|
|
22
22
|
} from '@finos/legend-shared';
|
23
23
|
import type { DiagramRenderer } from '../../DiagramRenderer';
|
24
24
|
import { DIAGRAM_INTERACTION_MODE } from '../../DiagramRenderer';
|
25
|
-
import { PanelDisplayState } from '@finos/legend-art';
|
25
|
+
import { HotkeyConfiguration, PanelDisplayState } from '@finos/legend-art';
|
26
26
|
import type {
|
27
27
|
PackageableElement,
|
28
28
|
AbstractProperty,
|
@@ -37,11 +37,7 @@ import {
|
|
37
37
|
PropertyExplicitReference,
|
38
38
|
} from '@finos/legend-graph';
|
39
39
|
import type { EditorStore } from '@finos/legend-studio';
|
40
|
-
import {
|
41
|
-
ClassEditorState,
|
42
|
-
EditorHotkey,
|
43
|
-
ElementEditorState,
|
44
|
-
} from '@finos/legend-studio';
|
40
|
+
import { ClassEditorState, ElementEditorState } from '@finos/legend-studio';
|
45
41
|
import type { ClassView } from '../../models/metamodels/pure/packageableElements/diagram/ClassView';
|
46
42
|
import type { Point } from '../../models/metamodels/pure/packageableElements/diagram/geometry/Point';
|
47
43
|
import { Diagram } from '../../models/metamodels/pure/packageableElements/diagram/Diagram';
|
@@ -441,7 +437,7 @@ export class DiagramEditorState extends ElementEditorState {
|
|
441
437
|
DIAGRAM_EDITOR_HOTKEY.EJECT_PROPERTY,
|
442
438
|
].forEach((key) => {
|
443
439
|
this.editorStore.addHotKey(
|
444
|
-
new
|
440
|
+
new HotkeyConfiguration(
|
445
441
|
key,
|
446
442
|
[DIAGRAM_EDITOR_HOTKEY_MAP[key]],
|
447
443
|
this.createDiagramHotKeyAction((event?: KeyboardEvent) => {
|
package/tsconfig.json
CHANGED
@@ -75,8 +75,8 @@
|
|
75
75
|
"./src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDiagram_ProtocolHelper.ts",
|
76
76
|
"./src/stores/studio/DiagramEditorState.ts",
|
77
77
|
"./src/components/studio/ClassDiagramPreview.tsx",
|
78
|
-
"./src/components/studio/
|
79
|
-
"./src/components/studio/
|
78
|
+
"./src/components/studio/DSLDiagram_LegendStudioPlugin.tsx",
|
79
|
+
"./src/components/studio/DSLDiagram_LegendStudioPlugin_Extension.tsx",
|
80
80
|
"./src/components/studio/DiagramEditor.tsx"
|
81
81
|
],
|
82
82
|
"include": [
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"DSLDiagram_StudioPlugin.d.ts","sourceRoot":"","sources":["../../../src/components/studio/DSLDiagram_StudioPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EACV,mBAAmB,EACnB,0BAA0B,EAG1B,yBAAyB,EACzB,iBAAiB,EACjB,mCAAmC,EACnC,iBAAiB,EACjB,qBAAqB,EACrB,0BAA0B,EAE1B,6BAA6B,EAC7B,6BAA6B,EAC7B,oBAAoB,EACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAWpD,qBAAa,uBACX,SAAQ,YACR,YAAW,0BAA0B;;IAMrC,OAAO,CAAC,aAAa,EAAE,mBAAmB,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I,kBAAkB,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;iBACrD;gBACD,OAAO,SAAS,CAAC;YACnB,CAAC;SACF,CAAC;IACJ,CAAC;IAED,4CAA4C;QAC1C,OAAO;YACL,CAAC,OAA2B,EAAsB,EAAE;gBAClD,IAAI,OAAO,YAAY,OAAO,EAAE;oBAC9B,OAAO,yCAAyC,CAAC;iBAClD;gBACD,OAAO,SAAS,CAAC;YACnB,CAAC;SACF,CAAC;IACJ,CAAC;IAED,iCAAiC;QAC/B,OAAO,CAAC,yCAAyC,CAAC,CAAC;IACrD,CAAC;IAED,sCAAsC;QACpC,OAAO;YACL,CAAC,WAAwB,EAAE,OAA2B,EAAQ,EAAE;gBAC9D,oCAAoC;gBACpC,IAAI,WAAW,CAAC,kBAAkB,YAAY,kBAAkB,EAAE;oBAChE,WAAW,CAAC,kBAAkB,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;iBAClD;YACH,CAAC;SACF,CAAC;IACJ,CAAC;IAED,sCAAsC;QACpC,OAAO;YACL,CAAC,WAAwB,EAAE,OAA2B,EAAQ,EAAE;gBAC9D,oCAAoC;gBACpC,IAAI,WAAW,CAAC,kBAAkB,YAAY,kBAAkB,EAAE;oBAChE,WAAW,CAAC,kBAAkB,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;iBAClD;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"DSLDiagram_StudioPlugin_Extension.d.ts","sourceRoot":"","sources":["../../../src/components/studio/DSLDiagram_StudioPlugin_Extension.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAEH,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oEAAoE,CAAC;AACpG,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAEjF,oBAAY,6CAA6C,GAAG;IAC1D,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,CACR,kBAAkB,EAAE,kBAAkB,EACtC,SAAS,EAAE,SAAS,GAAG,SAAS,KAC7B,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;CAClC,CAAC;AAEF,MAAM,WAAW,iCACf,SAAQ,0BAA0B;IAClC;;OAEG;IACH,sDAAsD,CAAC,IAAI,6CAA6C,EAAE,CAAC;CAC5G"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"DSLDiagram_StudioPlugin_Extension.js","sourceRoot":"","sources":["../../../src/components/studio/DSLDiagram_StudioPlugin_Extension.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
|