diff options
| author | bobzel <zzzman@gmail.com> | 2021-09-28 17:21:24 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2021-09-28 17:21:24 -0400 |
| commit | cad1445ea3fa81363c00908647ed2825c0f34c65 (patch) | |
| tree | 61c5d88ea706fe7843ad12c9b76ab530de72ccd3 /src/client/views/InkControls.tsx | |
| parent | caf4e2e6d14617a4105bd220e8441461c66a2e75 (diff) | |
fixed adding point drag location. fixed broken indices on deleting.
Diffstat (limited to 'src/client/views/InkControls.tsx')
| -rw-r--r-- | src/client/views/InkControls.tsx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/client/views/InkControls.tsx b/src/client/views/InkControls.tsx index 5fe0c0f8a..ee09273e3 100644 --- a/src/client/views/InkControls.tsx +++ b/src/client/views/InkControls.tsx @@ -90,7 +90,6 @@ export class InkControls extends React.Component<InkControlProps> { const formatInstance = InkStrokeProperties.Instance; if (!formatInstance) return (null); - // Accessing the current ink's data and extracting all control points. const scrData = this.props.screenCtrlPoints; const sreenCtrlPoints: ControlPoint[] = []; @@ -111,12 +110,10 @@ export class InkControls extends React.Component<InkControlProps> { const nearestScreenPt = this.props.nearestScreenPt(); return (<svg> - {/* should really have just one circle here that represents the neqraest point on the stroke to the users hover point. - This points should be passed as a prop from InkingStroke's UI which should set it in its onPointerOver method */} {!nearestScreenPt ? (null) : <circle key={"npt"} - cx={(nearestScreenPt.X - left - strokeWidth / 2) * scaleX + strokeWidth / 2} - cy={(nearestScreenPt.Y - top - strokeWidth / 2) * scaleY + strokeWidth / 2} + cx={nearestScreenPt.X} + cy={nearestScreenPt.Y} r={screenSpaceLineWidth * 4} fill={"#00007777"} stroke={"#00007777"} |
