aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/InkingStroke.tsx
diff options
context:
space:
mode:
authoryipstanley <stanley_yip@brown.edu>2019-03-07 23:53:13 -0500
committeryipstanley <stanley_yip@brown.edu>2019-03-07 23:53:13 -0500
commit9e33d53b7dfe1a7e8bd515a0a985c9b37057aca1 (patch)
tree7e6d52e37b8858164f86b8232aca28461c627802 /src/client/views/InkingStroke.tsx
parentd8e05fd07702143737129d3cccabdd47c7122578 (diff)
fixes/changes
Diffstat (limited to 'src/client/views/InkingStroke.tsx')
-rw-r--r--src/client/views/InkingStroke.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/InkingStroke.tsx b/src/client/views/InkingStroke.tsx
index bab9f3a60..d724421d3 100644
--- a/src/client/views/InkingStroke.tsx
+++ b/src/client/views/InkingStroke.tsx
@@ -6,12 +6,12 @@ import React = require("react");
interface StrokeProps {
- id: number;
+ id: string;
line: Array<{ x: number, y: number }>;
color: string;
width: string;
tool: InkTool;
- deleteCallback: (index: number) => void;
+ deleteCallback: (index: string) => void;
}
@observer
@@ -24,7 +24,7 @@ export class InkingStroke extends React.Component<StrokeProps> {
private _canvasColor: string = "#cdcdcd";
deleteStroke = (e: React.MouseEvent): void => {
- if (InkingControl.getInstance().selectedTool === InkTool.Eraser && e.buttons === 1) {
+ if (InkingControl.Instance.selectedTool === InkTool.Eraser && e.buttons === 1) {
this.props.deleteCallback(this.props.id);
}
}