docs: fix some JSDoc errors in `VertexHandler` (#191)

development
CD Yang 2023-05-22 19:58:34 +08:00 committed by GitHub
parent 30bdbe5322
commit fc0b1b77b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -805,7 +805,6 @@ class VertexHandler {
/**
* Hook for rounding the angle. This uses Math.round.
*/
// roundAngle(angle: number): number;
roundAngle(angle: number) {
return Math.round(angle * 10) / 10;
}
@ -883,7 +882,7 @@ class VertexHandler {
}
/**
* Rotates the vertex.
* Moves the vertex.
*/
moveLabel(me: InternalMouseEvent) {
const point = new Point(me.getGraphX(), me.getGraphY());
@ -944,7 +943,7 @@ class VertexHandler {
}
/**
* Rotates the vertex.
* Resizes the vertex.
*/
resizeVertex(me: InternalMouseEvent) {
const ct = new Point(this.state.getCenterX(), this.state.getCenterY());
@ -1275,7 +1274,9 @@ class VertexHandler {
}
/**
* Rotates the given cell to the given rotation.
* Returns the `recursiveResize` status of the given state.
* @param state the given {@link CellState}. This implementation takes the value of this state.
* @param me the mouse event.
*/
isRecursiveResize(state: CellState, me: InternalMouseEvent) {
return this.graph.isRecursiveResize(this.state);
@ -1984,7 +1985,6 @@ class VertexHandler {
/**
* Redraws the preview.
*/
// drawPreview(): void;
drawPreview() {
if (this.preview != null) {
this.preview.bounds = this.bounds;