Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added "none" as a possible return value of getCoordinateDisplaySystem #174

Closed
Closed
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
4 changes: 4 additions & 0 deletions src/Goban/CanvasRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2822,6 +2822,8 @@ export class GobanCanvas extends Goban implements GobanCanvasInterface {
place("" + (c + 1), x, y);
}
break;
case "none":
break;
}
};

Expand Down Expand Up @@ -2878,6 +2880,8 @@ export class GobanCanvas extends Goban implements GobanCanvasInterface {
v_place(chinese_japanese_numbers[c], x, y);
}
break;
case "none":
break;
}
};

Expand Down
2 changes: 1 addition & 1 deletion src/Goban/InteractiveBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ export abstract class GobanInteractive extends GobanBase {
return ret;
}

protected getCoordinateDisplaySystem(): "A1" | "1-1" {
protected getCoordinateDisplaySystem(): "A1" | "1-1" | "none" {
if (callbacks.getCoordinateDisplaySystem) {
return callbacks.getCoordinateDisplaySystem();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Goban/callbacks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { GobanSelectedThemes } from "./Goban";

export interface GobanCallbacks {
defaultConfig?: () => any;
getCoordinateDisplaySystem?: () => "A1" | "1-1";
getCoordinateDisplaySystem?: () => "A1" | "1-1" | "none";
isAnalysisDisabled?: (goban: GobanBase, perGameSettingAppliesToNonPlayers: boolean) => boolean;

getClockDrift?: () => number;
Expand Down
Loading