diff options
| author | Bob Zeleznik <zzzman@gmail.com> | 2020-07-11 19:52:33 -0400 |
|---|---|---|
| committer | Bob Zeleznik <zzzman@gmail.com> | 2020-07-11 19:52:33 -0400 |
| commit | 97456cca47bfe37d8c0b78770d0db88b75289d56 (patch) | |
| tree | 1d4cf06649538c1283b8875e2e317ef5c36c0df3 /src/client/views/InkingStroke.tsx | |
| parent | 6b5c11a26e114f26f3907342f9afbd47b27cecf4 (diff) | |
| parent | bf8c338e662327b39cdef3f90c436447e48d2807 (diff) | |
merged with master & cleaned up formatShapePane
Diffstat (limited to 'src/client/views/InkingStroke.tsx')
| -rw-r--r-- | src/client/views/InkingStroke.tsx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/client/views/InkingStroke.tsx b/src/client/views/InkingStroke.tsx index 224abfd77..46f714875 100644 --- a/src/client/views/InkingStroke.tsx +++ b/src/client/views/InkingStroke.tsx @@ -80,10 +80,12 @@ export class InkingStroke extends ViewBoxBaseComponent<FieldViewProps, InkDocume overflow: "visible", }} onContextMenu={() => { - ContextMenu.Instance.addItem({ description: "Analyze Stroke", event: this.analyzeStrokes, icon: "paint-brush" }); - ContextMenu.Instance.addItem({ description: "Make Mask", event: this.makeMask, icon: "paint-brush" }); - ContextMenu.Instance.addItem({ description: "Format Shape", event: this.formatShape, icon: "paint-brush" }); - + const cm = ContextMenu.Instance; + if (cm) { + cm.addItem({ description: "Analyze Stroke", event: this.analyzeStrokes, icon: "paint-brush" }); + cm.addItem({ description: "Make Mask", event: this.makeMask, icon: "paint-brush" }); + cm.addItem({ description: "Format Shape", event: this.formatShape, icon: "paint-brush" }); + } }} ><defs> </defs> |
