diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2020-04-04 21:30:40 -0400 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2020-04-04 21:30:40 -0400 |
commit | ece923c838cd14724f9fda9f45c21dc39f6f62ee (patch) | |
tree | 2ef257d45e334413f4b91d5bfb96c50baea4141c /src/client/util/InteractionUtils.tsx | |
parent | c291e8b2c8fb9034916b4eb4b286f99a8cb35a04 (diff) | |
parent | 807743bdd351b639e3328fa1ed6f128738f95b9f (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
Diffstat (limited to 'src/client/util/InteractionUtils.tsx')
-rw-r--r-- | src/client/util/InteractionUtils.tsx | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/client/util/InteractionUtils.tsx b/src/client/util/InteractionUtils.tsx index 2eec02a42..f2d569cf3 100644 --- a/src/client/util/InteractionUtils.tsx +++ b/src/client/util/InteractionUtils.tsx @@ -10,20 +10,6 @@ export namespace InteractionUtils { const REACT_POINTER_PEN_BUTTON = 0; const ERASER_BUTTON = 5; - export function CreatePolyline(points: { X: number, Y: number }[], left: number, top: number, color: string, width: number) { - const pts = points.reduce((acc: string, pt: { X: number, Y: number }) => acc + `${pt.X - left},${pt.Y - top} `, ""); - return ( - <polyline - points={pts} - style={{ - fill: "none", - stroke: color, - strokeWidth: width - }} - /> - ); - } - export class MultiTouchEvent<T extends React.TouchEvent | TouchEvent> { constructor( readonly fingers: number, |