aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/InteractionUtils.tsx
diff options
context:
space:
mode:
authoranika-ahluwalia <anika.ahluwalia@gmail.com>2020-06-10 17:09:20 -0500
committeranika-ahluwalia <anika.ahluwalia@gmail.com>2020-06-10 17:09:20 -0500
commitefb6c50a4ed80554ccf9163ad0bbb144d6d75ff7 (patch)
tree15150925d68aa507ac4edb79b5ea317383a2113a /src/client/util/InteractionUtils.tsx
parent4aef738968b0d54caf3fb8cb511ae803463c10f6 (diff)
parent4ec18458fd21bd7d7307a3bab2e787346fc3ed0d (diff)
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into script_documents
Diffstat (limited to 'src/client/util/InteractionUtils.tsx')
-rw-r--r--src/client/util/InteractionUtils.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/util/InteractionUtils.tsx b/src/client/util/InteractionUtils.tsx
index 3948611f0..81f9b9362 100644
--- a/src/client/util/InteractionUtils.tsx
+++ b/src/client/util/InteractionUtils.tsx
@@ -89,7 +89,7 @@ export namespace InteractionUtils {
return myTouches;
}
- export function CreatePolyline(points: { X: number, Y: number }[], left: number, top: number, color: string, width: string, bezier: string, scalex: number, scaley: number, shape: string) {
+ export function CreatePolyline(points: { X: number, Y: number }[], left: number, top: number, color: string, width: string, bezier: string, scalex: number, scaley: number, shape: string, pevents: string, drawHalo: boolean) {
var pts = "";
if (shape) {
//if any of the shape are true
@@ -120,7 +120,9 @@ export namespace InteractionUtils {
<polyline
points={pts}
style={{
+ filter: drawHalo ? "url(#dangerShine)" : undefined,
fill: "none",
+ pointerEvents: pevents as any,
stroke: color ?? "rgb(0, 0, 0)",
strokeWidth: parseInt(width),
strokeLinejoin: "round",