@finos/legend-extension-dsl-diagram 7.0.12 → 7.1.1
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/DiagramRenderer.d.ts +2 -2
- package/lib/DiagramRenderer.d.ts.map +1 -1
- package/lib/DiagramRenderer.js +113 -55
- package/lib/DiagramRenderer.js.map +1 -1
- package/lib/components/studio/ClassDiagramPreview.d.ts +1 -0
- package/lib/components/studio/ClassDiagramPreview.d.ts.map +1 -1
- package/lib/components/studio/DiagramEditor.d.ts +1 -0
- package/lib/components/studio/DiagramEditor.d.ts.map +1 -1
- package/lib/index.css +1 -1
- package/lib/package.json +5 -5
- package/package.json +12 -12
- package/src/DiagramRenderer.ts +150 -64
package/lib/DiagramRenderer.d.ts
CHANGED
@@ -78,8 +78,8 @@ export declare class DiagramRenderer {
|
|
78
78
|
zoom: number;
|
79
79
|
interactionMode: DIAGRAM_INTERACTION_MODE;
|
80
80
|
relationshipMode: DIAGRAM_RELATIONSHIP_EDIT_MODE;
|
81
|
-
triangle: Point
|
82
|
-
diamond: Point
|
81
|
+
triangle: [Point, Point, Point];
|
82
|
+
diamond: [Point, Point, Point, Point];
|
83
83
|
fontFamily: string;
|
84
84
|
fontSize: number;
|
85
85
|
lineHeight: number;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DiagramRenderer.d.ts","sourceRoot":"","sources":["../src/DiagramRenderer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAYH,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,
|
1
|
+
{"version":3,"file":"DiagramRenderer.d.ts","sourceRoot":"","sources":["../src/DiagramRenderer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAYH,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,EAeN,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2EAA2E,CAAC;AACzG,OAAO,EAAE,SAAS,EAAE,MAAM,sFAAsF,CAAC;AACjH,OAAO,EA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IAAI;IAOvB,uBAAuB,IAAI,IAAI;IAS/B,0BAA0B,IAAI,IAAI;IASlC,oBAAoB,IAAI,IAAI;IAS5B,aAAa,IAAI,IAAI;IAgCrB,OAAO,CAAC,CAAC,EAAE,aAAa,GAAG,IAAI;IAoM/B,OAAO,CAAC,CAAC,EAAE,UAAU,GAAG,IAAI;IA0J5B,aAAa,CAAC,CAAC,EAAE,UAAU,GAAG,IAAI;IAuElC,SAAS,CAAC,CAAC,EAAE,UAAU,GAAG,IAAI;IAsO9B,UAAU,CAAC,CAAC,EAAE,UAAU,GAAG,IAAI;IAM/B,SAAS,CAAC,CAAC,EAAE,UAAU,GAAG,IAAI;IAgW9B,kBAAkB,CAChB,UAAU,EAAE,SAAS,EAAE,EACvB,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,MAAM,EACpB,eAAe,EAAE,MAAM,GACtB,SAAS,EAAE,EAAE;IAsChB,cAAc,CACZ,eAAe,EAAE,SAAS,EAAE,EAAE,EAC9B,OAAO,EAAE,OAAO,EAChB,oBAAoB,EAAE,OAAO,EAC7B,SAAS,EAAE,OAAO,GACjB,CAAC,SAAS,EAAE,EAAE,kBAAkB,EAAE,CAAC;CAmGvC"}
|
package/lib/DiagramRenderer.js
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
import { uuid, noop, getNullableFirstElement, UnsupportedOperationError, IllegalStateError, guaranteeNonNullable, findLast, uniqBy, } from '@finos/legend-shared';
|
17
|
-
import { Class, Enumeration, PrimitiveType, DerivedProperty, PackageableElementExplicitReference, PropertyExplicitReference, GenericTypeExplicitReference, GenericType, Property, Multiplicity, getAllSuperclasses, getAllOwnClassProperties, generateMultiplicityString, getRawGenericType, } from '@finos/legend-graph';
|
17
|
+
import { Class, Enumeration, PrimitiveType, DerivedProperty, PackageableElementExplicitReference, PropertyExplicitReference, GenericTypeExplicitReference, GenericType, Property, Multiplicity, getAllSuperclasses, getAllOwnClassProperties, generateMultiplicityString, getRawGenericType, AggregationKind, } from '@finos/legend-graph';
|
18
18
|
import { action, makeObservable, observable } from 'mobx';
|
19
19
|
import { Rectangle } from './graph/metamodel/pure/packageableElements/diagram/geometry/DSL_Diagram_Rectangle.js';
|
20
20
|
import { Point } from './graph/metamodel/pure/packageableElements/diagram/geometry/DSL_Diagram_Point.js';
|
@@ -1296,60 +1296,118 @@ export class DiagramRenderer {
|
|
1296
1296
|
});
|
1297
1297
|
this.ctx.stroke();
|
1298
1298
|
this.ctx.lineWidth = 1;
|
1299
|
-
|
1300
|
-
|
1301
|
-
|
1302
|
-
|
1303
|
-
|
1304
|
-
|
1305
|
-
|
1306
|
-
|
1307
|
-
|
1308
|
-
|
1309
|
-
|
1310
|
-
|
1311
|
-
|
1312
|
-
|
1313
|
-
|
1314
|
-
|
1315
|
-
|
1316
|
-
|
1317
|
-
|
1318
|
-
|
1319
|
-
|
1320
|
-
|
1321
|
-
|
1322
|
-
|
1323
|
-
|
1324
|
-
|
1325
|
-
|
1326
|
-
|
1327
|
-
|
1328
|
-
|
1329
|
-
|
1330
|
-
|
1331
|
-
|
1332
|
-
|
1333
|
-
|
1334
|
-
|
1335
|
-
|
1336
|
-
|
1337
|
-
|
1338
|
-
|
1339
|
-
|
1340
|
-
|
1341
|
-
|
1342
|
-
|
1343
|
-
|
1344
|
-
|
1345
|
-
|
1346
|
-
|
1347
|
-
|
1348
|
-
|
1349
|
-
|
1350
|
-
|
1351
|
-
|
1352
|
-
|
1299
|
+
if (toProperty instanceof Property) {
|
1300
|
+
const startPoint = fullPath[1];
|
1301
|
+
const endPoint = fullPath[0];
|
1302
|
+
const startX = startPoint.x;
|
1303
|
+
const startY = startPoint.y;
|
1304
|
+
const endX = endPoint.x;
|
1305
|
+
const endY = endPoint.y;
|
1306
|
+
const to = propertyView.from;
|
1307
|
+
let resultX = 0;
|
1308
|
+
let resultY = 0;
|
1309
|
+
if (endY > startY) {
|
1310
|
+
const x = startX +
|
1311
|
+
((endX - startX) / (endY - startY)) *
|
1312
|
+
(to.classView.value.position.y - startY);
|
1313
|
+
if (x > to.classView.value.position.x &&
|
1314
|
+
x < to.classView.value.position.x + to.classView.value.rectangle.width) {
|
1315
|
+
resultX = (x - this.canvasCenter.x) * this.zoom + this.canvasCenter.x;
|
1316
|
+
resultY =
|
1317
|
+
(to.classView.value.position.y - this.canvasCenter.y) * this.zoom +
|
1318
|
+
this.canvasCenter.y;
|
1319
|
+
}
|
1320
|
+
}
|
1321
|
+
else {
|
1322
|
+
const x = startX +
|
1323
|
+
((endX - startX) / (endY - startY)) *
|
1324
|
+
(to.classView.value.position.y +
|
1325
|
+
to.classView.value.rectangle.height -
|
1326
|
+
startY);
|
1327
|
+
if (x > to.classView.value.position.x &&
|
1328
|
+
x < to.classView.value.position.x + to.classView.value.rectangle.width) {
|
1329
|
+
resultX = (x - this.canvasCenter.x) * this.zoom + this.canvasCenter.x;
|
1330
|
+
resultY =
|
1331
|
+
(to.classView.value.position.y +
|
1332
|
+
to.classView.value.rectangle.height -
|
1333
|
+
this.canvasCenter.y) *
|
1334
|
+
this.zoom +
|
1335
|
+
this.canvasCenter.y;
|
1336
|
+
}
|
1337
|
+
}
|
1338
|
+
if (endX > startX) {
|
1339
|
+
const y = startY +
|
1340
|
+
((endY - startY) / (endX - startX)) *
|
1341
|
+
(to.classView.value.position.x - startX);
|
1342
|
+
if (y > to.classView.value.position.y &&
|
1343
|
+
y <
|
1344
|
+
to.classView.value.position.y + to.classView.value.rectangle.height) {
|
1345
|
+
resultX =
|
1346
|
+
(to.classView.value.position.x - this.canvasCenter.x) * this.zoom +
|
1347
|
+
this.canvasCenter.x;
|
1348
|
+
resultY = (y - this.canvasCenter.y) * this.zoom + this.canvasCenter.y;
|
1349
|
+
}
|
1350
|
+
}
|
1351
|
+
else {
|
1352
|
+
const y = startY +
|
1353
|
+
((endY - startY) / (endX - startX)) *
|
1354
|
+
(to.classView.value.position.x +
|
1355
|
+
to.classView.value.rectangle.width -
|
1356
|
+
startX);
|
1357
|
+
if (y > to.classView.value.position.y &&
|
1358
|
+
y <
|
1359
|
+
to.classView.value.position.y + to.classView.value.rectangle.height) {
|
1360
|
+
resultX =
|
1361
|
+
(to.classView.value.position.x +
|
1362
|
+
to.classView.value.rectangle.width -
|
1363
|
+
this.canvasCenter.x) *
|
1364
|
+
this.zoom +
|
1365
|
+
this.canvasCenter.x;
|
1366
|
+
resultY = (y - this.canvasCenter.y) * this.zoom + this.canvasCenter.y;
|
1367
|
+
}
|
1368
|
+
}
|
1369
|
+
if (toProperty.aggregation === AggregationKind.COMPOSITE ||
|
1370
|
+
toProperty.aggregation === AggregationKind.SHARED) {
|
1371
|
+
// Draw Diamond
|
1372
|
+
let angle = Math.atan((endY - startY) / (endX - startX));
|
1373
|
+
angle = endX >= startX ? angle : angle + Math.PI;
|
1374
|
+
this.ctx.beginPath();
|
1375
|
+
this.ctx.moveTo(resultX +
|
1376
|
+
(this.screenOffset.x + rotatePointX(this.diamond[0], angle)) *
|
1377
|
+
this.zoom, resultY +
|
1378
|
+
(this.screenOffset.y + rotatePointY(this.diamond[0], angle)) *
|
1379
|
+
this.zoom);
|
1380
|
+
this.ctx.lineTo(resultX +
|
1381
|
+
(this.screenOffset.x + rotatePointX(this.diamond[1], angle)) *
|
1382
|
+
this.zoom, resultY +
|
1383
|
+
(this.screenOffset.y + rotatePointY(this.diamond[1], angle)) *
|
1384
|
+
this.zoom);
|
1385
|
+
this.ctx.lineTo(resultX +
|
1386
|
+
(this.screenOffset.x + rotatePointX(this.diamond[2], angle)) *
|
1387
|
+
this.zoom, resultY +
|
1388
|
+
(this.screenOffset.y + rotatePointY(this.diamond[2], angle)) *
|
1389
|
+
this.zoom);
|
1390
|
+
this.ctx.lineTo(resultX +
|
1391
|
+
(this.screenOffset.x + rotatePointX(this.diamond[3], angle)) *
|
1392
|
+
this.zoom, resultY +
|
1393
|
+
(this.screenOffset.y + rotatePointY(this.diamond[3], angle)) *
|
1394
|
+
this.zoom);
|
1395
|
+
this.ctx.lineTo(resultX +
|
1396
|
+
(this.screenOffset.x + rotatePointX(this.diamond[0], angle)) *
|
1397
|
+
this.zoom, resultY +
|
1398
|
+
(this.screenOffset.y + rotatePointY(this.diamond[0], angle)) *
|
1399
|
+
this.zoom);
|
1400
|
+
if (toProperty.aggregation === AggregationKind.SHARED) {
|
1401
|
+
this.ctx.fillStyle = this.propertyViewSharedDiamondColor;
|
1402
|
+
}
|
1403
|
+
if (toProperty.aggregation === AggregationKind.COMPOSITE) {
|
1404
|
+
this.ctx.fillStyle = this.propertyViewOwnedDiamondColor;
|
1405
|
+
}
|
1406
|
+
this.ctx.fill();
|
1407
|
+
this.ctx.stroke();
|
1408
|
+
this.ctx.lineWidth = 1;
|
1409
|
+
}
|
1410
|
+
}
|
1353
1411
|
}
|
1354
1412
|
drawInheritance(inheritance) {
|
1355
1413
|
const rect = inheritance.to.classView.value.rectangle;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DiagramRenderer.js","sourceRoot":"","sources":["../src/DiagramRenderer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,IAAI,EACJ,IAAI,EACJ,uBAAuB,EACvB,yBAAyB,EACzB,iBAAiB,EACjB,oBAAoB,EACpB,QAAQ,EACR,MAAM,GACP,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,KAAK,EACL,WAAW,EACX,aAAa,EACb,eAAe,EACf,mCAAmC,EACnC,yBAAyB,EACzB,4BAA4B,EAC5B,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,kBAAkB,EAClB,wBAAwB,EACxB,0BAA0B,EAC1B,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE1D,OAAO,EAAE,SAAS,EAAE,MAAM,sFAAsF,CAAC;AACjH,OAAO,EAAE,KAAK,EAAE,MAAM,kFAAkF,CAAC;AACzG,OAAO,EAA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C,KAAK,CAAC,eAAe;iBACtC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC;iBAC3B,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,EACpC;gBACA,OAAO,IAAI,kBAAkB,CAC3B,OAAO,EACP,aAAa,EACb,WAAW,CACZ,CAAC;aACH;YACD,OAAO,EAAE,CAAC;QACZ,CAAC,CAAC,CACH,CACF,CAAC;QACJ,OAAO,CAAC,UAAU,EAAE,mBAAmB,CAAC,CAAC;IAC3C,CAAC;CACF"}
|
@@ -13,6 +13,7 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
+
/// <reference types="react" resolution-mode="require"/>
|
16
17
|
import { type Class } from '@finos/legend-graph';
|
17
18
|
export declare const ClassDiagramPreview: ((props: {
|
18
19
|
_class: Class;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ClassDiagramPreview.d.ts","sourceRoot":"","sources":["../../../src/components/studio/ClassDiagramPreview.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG
|
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;;CAiEnE,CAAC"}
|
@@ -13,6 +13,7 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
+
/// <reference types="react" resolution-mode="require"/>
|
16
17
|
export declare const DiagramEditor: (() => JSX.Element) & {
|
17
18
|
displayName: string;
|
18
19
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DiagramEditor.d.ts","sourceRoot":"","sources":["../../../src/components/studio/DiagramEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG
|
1
|
+
{"version":3,"file":"DiagramEditor.d.ts","sourceRoot":"","sources":["../../../src/components/studio/DiagramEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAq4CH,eAAO,MAAM,aAAa;;CAyDxB,CAAC"}
|
package/lib/index.css
CHANGED
package/lib/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-extension-dsl-diagram",
|
3
|
-
"version": "7.
|
3
|
+
"version": "7.1.1",
|
4
4
|
"description": "Legend extension for Diagram DSL",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -50,7 +50,7 @@
|
|
50
50
|
"@finos/legend-shared": "workspace:*",
|
51
51
|
"@finos/legend-storage": "workspace:*",
|
52
52
|
"@types/react": "18.0.25",
|
53
|
-
"mobx": "6.
|
53
|
+
"mobx": "6.7.0",
|
54
54
|
"mobx-react-lite": "3.4.0",
|
55
55
|
"react": "18.2.0",
|
56
56
|
"react-dnd": "16.0.1",
|
@@ -59,15 +59,15 @@
|
|
59
59
|
},
|
60
60
|
"devDependencies": {
|
61
61
|
"@finos/legend-dev-utils": "workspace:*",
|
62
|
-
"@jest/globals": "29.3.
|
62
|
+
"@jest/globals": "29.3.1",
|
63
63
|
"@testing-library/react": "13.4.0",
|
64
64
|
"cross-env": "7.0.3",
|
65
65
|
"eslint": "8.27.0",
|
66
|
-
"jest": "29.3.
|
66
|
+
"jest": "29.3.1",
|
67
67
|
"jest-canvas-mock": "2.4.0",
|
68
68
|
"npm-run-all": "4.1.5",
|
69
69
|
"rimraf": "3.0.2",
|
70
|
-
"sass": "1.56.
|
70
|
+
"sass": "1.56.1",
|
71
71
|
"typescript": "4.8.4"
|
72
72
|
},
|
73
73
|
"peerDependencies": {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-extension-dsl-diagram",
|
3
|
-
"version": "7.
|
3
|
+
"version": "7.1.1",
|
4
4
|
"description": "Legend extension for Diagram DSL",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -43,14 +43,14 @@
|
|
43
43
|
"test:watch": "jest --watch"
|
44
44
|
},
|
45
45
|
"dependencies": {
|
46
|
-
"@finos/legend-application": "10.0.
|
47
|
-
"@finos/legend-application-studio": "20.0.
|
48
|
-
"@finos/legend-art": "5.0.
|
49
|
-
"@finos/legend-graph": "20.
|
50
|
-
"@finos/legend-shared": "6.2.
|
51
|
-
"@finos/legend-storage": "3.0.
|
46
|
+
"@finos/legend-application": "10.0.10",
|
47
|
+
"@finos/legend-application-studio": "20.0.8",
|
48
|
+
"@finos/legend-art": "5.0.6",
|
49
|
+
"@finos/legend-graph": "20.1.1",
|
50
|
+
"@finos/legend-shared": "6.2.3",
|
51
|
+
"@finos/legend-storage": "3.0.18",
|
52
52
|
"@types/react": "18.0.25",
|
53
|
-
"mobx": "6.
|
53
|
+
"mobx": "6.7.0",
|
54
54
|
"mobx-react-lite": "3.4.0",
|
55
55
|
"react": "18.2.0",
|
56
56
|
"react-dnd": "16.0.1",
|
@@ -58,16 +58,16 @@
|
|
58
58
|
"serializr": "3.0.1"
|
59
59
|
},
|
60
60
|
"devDependencies": {
|
61
|
-
"@finos/legend-dev-utils": "2.0.
|
62
|
-
"@jest/globals": "29.3.
|
61
|
+
"@finos/legend-dev-utils": "2.0.26",
|
62
|
+
"@jest/globals": "29.3.1",
|
63
63
|
"@testing-library/react": "13.4.0",
|
64
64
|
"cross-env": "7.0.3",
|
65
65
|
"eslint": "8.27.0",
|
66
|
-
"jest": "29.3.
|
66
|
+
"jest": "29.3.1",
|
67
67
|
"jest-canvas-mock": "2.4.0",
|
68
68
|
"npm-run-all": "4.1.5",
|
69
69
|
"rimraf": "3.0.2",
|
70
|
-
"sass": "1.56.
|
70
|
+
"sass": "1.56.1",
|
71
71
|
"typescript": "4.8.4"
|
72
72
|
},
|
73
73
|
"peerDependencies": {
|
package/src/DiagramRenderer.ts
CHANGED
@@ -40,6 +40,7 @@ import {
|
|
40
40
|
getAllOwnClassProperties,
|
41
41
|
generateMultiplicityString,
|
42
42
|
getRawGenericType,
|
43
|
+
AggregationKind,
|
43
44
|
} from '@finos/legend-graph';
|
44
45
|
import { action, makeObservable, observable } from 'mobx';
|
45
46
|
import type { Diagram } from './graph/metamodel/pure/packageableElements/diagram/DSL_Diagram_Diagram.js';
|
@@ -169,8 +170,8 @@ export class DiagramRenderer {
|
|
169
170
|
relationshipMode: DIAGRAM_RELATIONSHIP_EDIT_MODE;
|
170
171
|
|
171
172
|
// UML specific shapes
|
172
|
-
triangle: Point
|
173
|
-
diamond: Point
|
173
|
+
triangle: [Point, Point, Point];
|
174
|
+
diamond: [Point, Point, Point, Point];
|
174
175
|
|
175
176
|
// Font
|
176
177
|
fontFamily: string;
|
@@ -2064,60 +2065,145 @@ export class DiagramRenderer {
|
|
2064
2065
|
});
|
2065
2066
|
this.ctx.stroke();
|
2066
2067
|
this.ctx.lineWidth = 1;
|
2067
|
-
|
2068
|
-
|
2069
|
-
|
2070
|
-
|
2071
|
-
|
2072
|
-
|
2073
|
-
|
2074
|
-
|
2075
|
-
|
2076
|
-
|
2077
|
-
|
2078
|
-
|
2079
|
-
|
2080
|
-
|
2081
|
-
|
2082
|
-
|
2083
|
-
|
2084
|
-
|
2085
|
-
|
2086
|
-
|
2087
|
-
|
2088
|
-
|
2089
|
-
|
2090
|
-
|
2091
|
-
|
2092
|
-
|
2093
|
-
|
2094
|
-
|
2095
|
-
|
2096
|
-
|
2097
|
-
|
2098
|
-
|
2099
|
-
|
2100
|
-
|
2101
|
-
|
2102
|
-
|
2103
|
-
|
2104
|
-
|
2105
|
-
|
2106
|
-
|
2107
|
-
|
2108
|
-
|
2109
|
-
|
2110
|
-
|
2111
|
-
|
2112
|
-
|
2113
|
-
|
2114
|
-
|
2115
|
-
|
2116
|
-
|
2117
|
-
|
2118
|
-
|
2119
|
-
|
2120
|
-
|
2068
|
+
if (toProperty instanceof Property) {
|
2069
|
+
const startPoint = fullPath[1] as Point;
|
2070
|
+
const endPoint = fullPath[0] as Point;
|
2071
|
+
const startX = startPoint.x;
|
2072
|
+
const startY = startPoint.y;
|
2073
|
+
const endX = endPoint.x;
|
2074
|
+
const endY = endPoint.y;
|
2075
|
+
const to = propertyView.from;
|
2076
|
+
let resultX = 0;
|
2077
|
+
let resultY = 0;
|
2078
|
+
if (endY > startY) {
|
2079
|
+
const x =
|
2080
|
+
startX +
|
2081
|
+
((endX - startX) / (endY - startY)) *
|
2082
|
+
(to.classView.value.position.y - startY);
|
2083
|
+
if (
|
2084
|
+
x > to.classView.value.position.x &&
|
2085
|
+
x < to.classView.value.position.x + to.classView.value.rectangle.width
|
2086
|
+
) {
|
2087
|
+
resultX = (x - this.canvasCenter.x) * this.zoom + this.canvasCenter.x;
|
2088
|
+
resultY =
|
2089
|
+
(to.classView.value.position.y - this.canvasCenter.y) * this.zoom +
|
2090
|
+
this.canvasCenter.y;
|
2091
|
+
}
|
2092
|
+
} else {
|
2093
|
+
const x =
|
2094
|
+
startX +
|
2095
|
+
((endX - startX) / (endY - startY)) *
|
2096
|
+
(to.classView.value.position.y +
|
2097
|
+
to.classView.value.rectangle.height -
|
2098
|
+
startY);
|
2099
|
+
if (
|
2100
|
+
x > to.classView.value.position.x &&
|
2101
|
+
x < to.classView.value.position.x + to.classView.value.rectangle.width
|
2102
|
+
) {
|
2103
|
+
resultX = (x - this.canvasCenter.x) * this.zoom + this.canvasCenter.x;
|
2104
|
+
resultY =
|
2105
|
+
(to.classView.value.position.y +
|
2106
|
+
to.classView.value.rectangle.height -
|
2107
|
+
this.canvasCenter.y) *
|
2108
|
+
this.zoom +
|
2109
|
+
this.canvasCenter.y;
|
2110
|
+
}
|
2111
|
+
}
|
2112
|
+
if (endX > startX) {
|
2113
|
+
const y =
|
2114
|
+
startY +
|
2115
|
+
((endY - startY) / (endX - startX)) *
|
2116
|
+
(to.classView.value.position.x - startX);
|
2117
|
+
if (
|
2118
|
+
y > to.classView.value.position.y &&
|
2119
|
+
y <
|
2120
|
+
to.classView.value.position.y + to.classView.value.rectangle.height
|
2121
|
+
) {
|
2122
|
+
resultX =
|
2123
|
+
(to.classView.value.position.x - this.canvasCenter.x) * this.zoom +
|
2124
|
+
this.canvasCenter.x;
|
2125
|
+
resultY = (y - this.canvasCenter.y) * this.zoom + this.canvasCenter.y;
|
2126
|
+
}
|
2127
|
+
} else {
|
2128
|
+
const y =
|
2129
|
+
startY +
|
2130
|
+
((endY - startY) / (endX - startX)) *
|
2131
|
+
(to.classView.value.position.x +
|
2132
|
+
to.classView.value.rectangle.width -
|
2133
|
+
startX);
|
2134
|
+
if (
|
2135
|
+
y > to.classView.value.position.y &&
|
2136
|
+
y <
|
2137
|
+
to.classView.value.position.y + to.classView.value.rectangle.height
|
2138
|
+
) {
|
2139
|
+
resultX =
|
2140
|
+
(to.classView.value.position.x +
|
2141
|
+
to.classView.value.rectangle.width -
|
2142
|
+
this.canvasCenter.x) *
|
2143
|
+
this.zoom +
|
2144
|
+
this.canvasCenter.x;
|
2145
|
+
resultY = (y - this.canvasCenter.y) * this.zoom + this.canvasCenter.y;
|
2146
|
+
}
|
2147
|
+
}
|
2148
|
+
if (
|
2149
|
+
toProperty.aggregation === AggregationKind.COMPOSITE ||
|
2150
|
+
toProperty.aggregation === AggregationKind.SHARED
|
2151
|
+
) {
|
2152
|
+
// Draw Diamond
|
2153
|
+
let angle = Math.atan((endY - startY) / (endX - startX));
|
2154
|
+
angle = endX >= startX ? angle : angle + Math.PI;
|
2155
|
+
this.ctx.beginPath();
|
2156
|
+
this.ctx.moveTo(
|
2157
|
+
resultX +
|
2158
|
+
(this.screenOffset.x + rotatePointX(this.diamond[0], angle)) *
|
2159
|
+
this.zoom,
|
2160
|
+
resultY +
|
2161
|
+
(this.screenOffset.y + rotatePointY(this.diamond[0], angle)) *
|
2162
|
+
this.zoom,
|
2163
|
+
);
|
2164
|
+
this.ctx.lineTo(
|
2165
|
+
resultX +
|
2166
|
+
(this.screenOffset.x + rotatePointX(this.diamond[1], angle)) *
|
2167
|
+
this.zoom,
|
2168
|
+
resultY +
|
2169
|
+
(this.screenOffset.y + rotatePointY(this.diamond[1], angle)) *
|
2170
|
+
this.zoom,
|
2171
|
+
);
|
2172
|
+
this.ctx.lineTo(
|
2173
|
+
resultX +
|
2174
|
+
(this.screenOffset.x + rotatePointX(this.diamond[2], angle)) *
|
2175
|
+
this.zoom,
|
2176
|
+
resultY +
|
2177
|
+
(this.screenOffset.y + rotatePointY(this.diamond[2], angle)) *
|
2178
|
+
this.zoom,
|
2179
|
+
);
|
2180
|
+
this.ctx.lineTo(
|
2181
|
+
resultX +
|
2182
|
+
(this.screenOffset.x + rotatePointX(this.diamond[3], angle)) *
|
2183
|
+
this.zoom,
|
2184
|
+
resultY +
|
2185
|
+
(this.screenOffset.y + rotatePointY(this.diamond[3], angle)) *
|
2186
|
+
this.zoom,
|
2187
|
+
);
|
2188
|
+
this.ctx.lineTo(
|
2189
|
+
resultX +
|
2190
|
+
(this.screenOffset.x + rotatePointX(this.diamond[0], angle)) *
|
2191
|
+
this.zoom,
|
2192
|
+
resultY +
|
2193
|
+
(this.screenOffset.y + rotatePointY(this.diamond[0], angle)) *
|
2194
|
+
this.zoom,
|
2195
|
+
);
|
2196
|
+
if (toProperty.aggregation === AggregationKind.SHARED) {
|
2197
|
+
this.ctx.fillStyle = this.propertyViewSharedDiamondColor;
|
2198
|
+
}
|
2199
|
+
if (toProperty.aggregation === AggregationKind.COMPOSITE) {
|
2200
|
+
this.ctx.fillStyle = this.propertyViewOwnedDiamondColor;
|
2201
|
+
}
|
2202
|
+
this.ctx.fill();
|
2203
|
+
this.ctx.stroke();
|
2204
|
+
this.ctx.lineWidth = 1;
|
2205
|
+
}
|
2206
|
+
}
|
2121
2207
|
}
|
2122
2208
|
|
2123
2209
|
private drawInheritance(inheritance: GeneralizationView): void {
|
@@ -2217,34 +2303,34 @@ export class DiagramRenderer {
|
|
2217
2303
|
this.ctx.beginPath();
|
2218
2304
|
this.ctx.moveTo(
|
2219
2305
|
resultX +
|
2220
|
-
(this.screenOffset.x + rotatePointX(this.triangle[0]
|
2306
|
+
(this.screenOffset.x + rotatePointX(this.triangle[0], angle)) *
|
2221
2307
|
this.zoom,
|
2222
2308
|
resultY +
|
2223
|
-
(this.screenOffset.y + rotatePointY(this.triangle[0]
|
2309
|
+
(this.screenOffset.y + rotatePointY(this.triangle[0], angle)) *
|
2224
2310
|
this.zoom,
|
2225
2311
|
);
|
2226
2312
|
this.ctx.lineTo(
|
2227
2313
|
resultX +
|
2228
|
-
(this.screenOffset.x + rotatePointX(this.triangle[1]
|
2314
|
+
(this.screenOffset.x + rotatePointX(this.triangle[1], angle)) *
|
2229
2315
|
this.zoom,
|
2230
2316
|
resultY +
|
2231
|
-
(this.screenOffset.y + rotatePointY(this.triangle[1]
|
2317
|
+
(this.screenOffset.y + rotatePointY(this.triangle[1], angle)) *
|
2232
2318
|
this.zoom,
|
2233
2319
|
);
|
2234
2320
|
this.ctx.lineTo(
|
2235
2321
|
resultX +
|
2236
|
-
(this.screenOffset.x + rotatePointX(this.triangle[2]
|
2322
|
+
(this.screenOffset.x + rotatePointX(this.triangle[2], angle)) *
|
2237
2323
|
this.zoom,
|
2238
2324
|
resultY +
|
2239
|
-
(this.screenOffset.y + rotatePointY(this.triangle[2]
|
2325
|
+
(this.screenOffset.y + rotatePointY(this.triangle[2], angle)) *
|
2240
2326
|
this.zoom,
|
2241
2327
|
);
|
2242
2328
|
this.ctx.lineTo(
|
2243
2329
|
resultX +
|
2244
|
-
(this.screenOffset.x + rotatePointX(this.triangle[0]
|
2330
|
+
(this.screenOffset.x + rotatePointX(this.triangle[0], angle)) *
|
2245
2331
|
this.zoom,
|
2246
2332
|
resultY +
|
2247
|
-
(this.screenOffset.y + rotatePointY(this.triangle[0]
|
2333
|
+
(this.screenOffset.y + rotatePointY(this.triangle[0], angle)) *
|
2248
2334
|
this.zoom,
|
2249
2335
|
);
|
2250
2336
|
this.ctx.fillStyle = this.generalizationViewInheritanceTriangeFillColor;
|