Refactoring Coordinate System Completed
This commit is contained in:
1 parent
e54b4186f0
commit
976393bb94
3 files changed
+19
-19
No files matched your search
Binary file not shown.
+11
-11
@@ -170,7 +170,7 @@
|
||||
y: candles[i].open
|
||||
};
|
||||
|
||||
targetPoint = timeLineCoordinateSystem.inverseTransform(targetPoint, thisObject.container.frame.height);
|
||||
targetPoint = timeLineCoordinateSystem.transformThisPoint(targetPoint);
|
||||
targetPoint = transformThisPoint(targetPoint, thisObject.container);
|
||||
|
||||
let targetMax = {
|
||||
@@ -178,7 +178,7 @@
|
||||
y: candles[i].max
|
||||
};
|
||||
|
||||
targetMax = timeLineCoordinateSystem.inverseTransform(targetMax, thisObject.container.frame.height);
|
||||
targetMax = timeLineCoordinateSystem.transformThisPoint(targetMax);
|
||||
targetMax = transformThisPoint(targetMax, thisObject.container);
|
||||
|
||||
let targetMin = {
|
||||
@@ -186,7 +186,7 @@
|
||||
y: candles[i].min
|
||||
};
|
||||
|
||||
targetMin = timeLineCoordinateSystem.inverseTransform(targetMin, thisObject.container.frame.height);
|
||||
targetMin = timeLineCoordinateSystem.transformThisPoint(targetMin);
|
||||
targetMin = transformThisPoint(targetMin, thisObject.container);
|
||||
|
||||
let center = {
|
||||
@@ -469,10 +469,10 @@
|
||||
y: candle.close
|
||||
};
|
||||
|
||||
candlePoint1 = timeLineCoordinateSystem.inverseTransform(candlePoint1, thisObject.container.frame.height);
|
||||
candlePoint2 = timeLineCoordinateSystem.inverseTransform(candlePoint2, thisObject.container.frame.height);
|
||||
candlePoint3 = timeLineCoordinateSystem.inverseTransform(candlePoint3, thisObject.container.frame.height);
|
||||
candlePoint4 = timeLineCoordinateSystem.inverseTransform(candlePoint4, thisObject.container.frame.height);
|
||||
candlePoint1 = timeLineCoordinateSystem.transformThisPoint(candlePoint1);
|
||||
candlePoint2 = timeLineCoordinateSystem.transformThisPoint(candlePoint2);
|
||||
candlePoint3 = timeLineCoordinateSystem.transformThisPoint(candlePoint3);
|
||||
candlePoint4 = timeLineCoordinateSystem.transformThisPoint(candlePoint4);
|
||||
|
||||
candlePoint1 = transformThisPoint(candlePoint1, thisObject.container);
|
||||
candlePoint2 = transformThisPoint(candlePoint2, thisObject.container);
|
||||
@@ -508,10 +508,10 @@
|
||||
y: candle.min
|
||||
};
|
||||
|
||||
stickPoint1 = timeLineCoordinateSystem.inverseTransform(stickPoint1, thisObject.container.frame.height);
|
||||
stickPoint2 = timeLineCoordinateSystem.inverseTransform(stickPoint2, thisObject.container.frame.height);
|
||||
stickPoint3 = timeLineCoordinateSystem.inverseTransform(stickPoint3, thisObject.container.frame.height);
|
||||
stickPoint4 = timeLineCoordinateSystem.inverseTransform(stickPoint4, thisObject.container.frame.height);
|
||||
stickPoint1 = timeLineCoordinateSystem.transformThisPoint(stickPoint1);
|
||||
stickPoint2 = timeLineCoordinateSystem.transformThisPoint(stickPoint2);
|
||||
stickPoint3 = timeLineCoordinateSystem.transformThisPoint(stickPoint3);
|
||||
stickPoint4 = timeLineCoordinateSystem.transformThisPoint(stickPoint4);
|
||||
|
||||
stickPoint1 = transformThisPoint(stickPoint1, thisObject.container);
|
||||
stickPoint2 = transformThisPoint(stickPoint2, thisObject.container);
|
||||
|
||||
+8
-8
@@ -441,10 +441,10 @@
|
||||
y: 0
|
||||
};
|
||||
|
||||
volumePointA1 = plot.inverseTransform(volumePointA1, height);
|
||||
volumePointA2 = plot.inverseTransform(volumePointA2, height);
|
||||
volumePointA3 = plot.inverseTransform(volumePointA3, height);
|
||||
volumePointA4 = plot.inverseTransform(volumePointA4, height);
|
||||
volumePointA1 = plot.transformThisPoint(volumePointA1);
|
||||
volumePointA2 = plot.transformThisPoint(volumePointA2);
|
||||
volumePointA3 = plot.transformThisPoint(volumePointA3);
|
||||
volumePointA4 = plot.transformThisPoint(volumePointA4);
|
||||
|
||||
volumePointA1 = transformThisPoint(volumePointA1, thisObject.container);
|
||||
volumePointA2 = transformThisPoint(volumePointA2, thisObject.container);
|
||||
@@ -506,10 +506,10 @@
|
||||
y: height
|
||||
};
|
||||
|
||||
volumePointB1 = plot.inverseTransform2(volumePointB1, height);
|
||||
volumePointB2 = plot.inverseTransform2(volumePointB2, height);
|
||||
volumePointB3 = plot.inverseTransform2(volumePointB3, height);
|
||||
volumePointB4 = plot.inverseTransform2(volumePointB4, height);
|
||||
volumePointB1 = plot.transformThisPoint2(volumePointB1);
|
||||
volumePointB2 = plot.transformThisPoint2(volumePointB2);
|
||||
volumePointB3 = plot.transformThisPoint2(volumePointB3);
|
||||
volumePointB4 = plot.transformThisPoint2(volumePointB4);
|
||||
|
||||
volumePointB1 = transformThisPoint(volumePointB1, thisObject.container);
|
||||
volumePointB2 = transformThisPoint(volumePointB2, thisObject.container);
|
||||
|
||||
Reference in new issue
Block a user