Skip to content

Commit 382964e

Browse files
fra dag
2 parents dd07f7a + 4dfdb65 commit 382964e

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

src/akmm/ui_templates.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,14 @@ go.Shape.defineFigureGenerator("Message", function(shape, w, h) {
5959
fig.add(new go.PathSegment(go.PathSegment.Line, w, h));
6060
fig.add(new go.PathSegment(go.PathSegment.Line, 0, h));
6161
fig.add(new go.PathSegment(go.PathSegment.Line, 0, 0).close());
62-
62+
fig.add(new go.PathSegment(go.PathSegment.Line, w, 0));
63+
fig.add(new go.PathSegment(go.PathSegment.Line, 0.5*w, 0.5*h));
64+
fig.add(new go.PathSegment(go.PathSegment.Line, 0, 0.5*h));
65+
6366
// Add a fold line
64-
fig = new go.PathFigure(0.5 * w, 0, false);
65-
geo.add(fig);
66-
fig.add(new go.PathSegment(go.PathSegment.Line, w, h));
67+
// fig = new go.PathFigure(0.5 * w, 0, false);
68+
// geo.add(fig);
69+
// fig.add(new go.PathSegment(go.PathSegment.Line, w, h));
6770

6871
return geo;
6972
});
@@ -129,7 +132,7 @@ let figureNames = [
129132
'Rectangle',
130133
'RoundedRectangle',
131134
'Square',
132-
// 'FivePointedStar',
135+
'FivePointedStar',
133136
// 'ThinX',
134137
// 'ThickX',
135138
// 'ThinCross',

src/components/gojs/GoJSApp.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1349,7 +1349,7 @@ class GoJSApp extends React.Component<{}, AppState> {
13491349
myDiagram.model.setDataProperty(part, "group", goNode.group);
13501350
goNode.scale = goNode.getMyScale(myGoModel);
13511351
part.scale = Number(goNode.scale);
1352-
gjs.scale = part.scale
1352+
gjsNode.scale = part.scale
13531353
myDiagram.model.setDataProperty(node, "scale", part.scale);
13541354
}
13551355
// if (goNode) {

tsconfig.tsbuildinfo

Lines changed: 5 additions & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)