Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions projects/_shared/src/custom-shapes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class CustomRectangleShape extends RectangleShape {
this.isRounded = true; // force rounded shape
}

paintBackground(
override paintBackground(
c: AbstractCanvas2D,
x: number,
y: number,
Expand All @@ -24,7 +24,7 @@ class CustomRectangleShape extends RectangleShape {
super.paintBackground(c, x, y, w, h);
}

paintVertexShape(
override paintVertexShape(
c: AbstractCanvas2D,
x: number,
y: number,
Expand All @@ -41,7 +41,7 @@ class CustomEllipseShape extends EllipseShape {
super(bounds, fill, stroke, 5);
}

paintVertexShape(
override paintVertexShape(
c: AbstractCanvas2D,
x: number,
y: number,
Expand Down
1 change: 1 addition & 0 deletions projects/_shared/src/generate-graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class CustomGraph extends BaseGraph {
// Register builtin styles
PerimeterRegistry.add('ellipsePerimeter', Perimeter.EllipsePerimeter);
PerimeterRegistry.add('rectanglePerimeter', Perimeter.RectanglePerimeter); // declared in the default vertex style, so must be registered to be used

EdgeStyleRegistry.add('orthogonalEdgeStyle', EdgeStyle.OrthConnector, {handlerKind: 'segment', isOrthogonal: true});

const arrowFunction = EdgeMarker.createArrow(2);
Expand Down
3 changes: 2 additions & 1 deletion projects/_shared/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"declaration": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true
"noImplicitOverride": true,
"noImplicitReturns": true,
},
"include": ["src"]
}