LT-380: Unlocking handle's perpendicular properties to allow modification
This commit is contained in:
parent
04e2701f4b
commit
eee68f8d8d
@ -490,6 +490,8 @@ import { OHIF } from 'meteor/ohif:core';
|
|||||||
data.handles.perpendicularStart.y = movedPoint.y - total * dx;
|
data.handles.perpendicularStart.y = movedPoint.y - total * dx;
|
||||||
data.handles.perpendicularEnd.x = movedPoint.x;
|
data.handles.perpendicularEnd.x = movedPoint.x;
|
||||||
data.handles.perpendicularEnd.y = movedPoint.y;
|
data.handles.perpendicularEnd.y = movedPoint.y;
|
||||||
|
data.handles.perpendicularEnd.locked = false;
|
||||||
|
data.handles.perpendicularStart.locked = false;
|
||||||
|
|
||||||
var longLine = {
|
var longLine = {
|
||||||
start: {
|
start: {
|
||||||
@ -540,14 +542,14 @@ import { OHIF } from 'meteor/ohif:core';
|
|||||||
// Sets position of handles(start, end, perpendicularStart, perpendicularEnd)
|
// Sets position of handles(start, end, perpendicularStart, perpendicularEnd)
|
||||||
function setHandlesPosition(handle, eventData, data) {
|
function setHandlesPosition(handle, eventData, data) {
|
||||||
|
|
||||||
var movedPoint,
|
let movedPoint,
|
||||||
outOfBounds,
|
outOfBounds,
|
||||||
result,
|
result,
|
||||||
intersection,
|
intersection,
|
||||||
d1,
|
d1,
|
||||||
d2;
|
d2;
|
||||||
|
|
||||||
var longLine = {},
|
let longLine = {},
|
||||||
perpendicularLine = {};
|
perpendicularLine = {};
|
||||||
|
|
||||||
if (handle.index === 0) {
|
if (handle.index === 0) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user