mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 09:12:09 +10:00
redo relaxed validation
This commit is contained in:
@@ -1258,15 +1258,15 @@ public class Presenter implements IPlugInPort {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// for (int i = 0; i < controlPoints.length - 1; i++) {
|
for (int i = 0; i < controlPoints.length - 1; i++) {
|
||||||
// for (int j = i + 1; j < controlPoints.length; j++) {
|
for (int j = i + 1; j < controlPoints.length; j++) {
|
||||||
// if (controlPoints[i] != null && controlPoints[j] != null && controlPoints[i].equals(controlPoints[j])) {
|
if (controlPoints[i] != null && controlPoints[j] != null && controlPoints[i].equals(controlPoints[j])) {
|
||||||
// // Control points collision detected, cannot make
|
// Control points collision detected, cannot make
|
||||||
// // this move.
|
// this move.
|
||||||
// return null;
|
return null;
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update all points to new location.
|
// Update all points to new location.
|
||||||
|
|||||||
@@ -265,6 +265,11 @@ public abstract class Abstract3LegSymbol extends AbstractComponent<String> {
|
|||||||
return pointIndex == 3;
|
return pointIndex == 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean canControlPointOverlap(int index) {
|
||||||
|
return index >= 3;
|
||||||
|
}
|
||||||
|
|
||||||
@EditableProperty
|
@EditableProperty
|
||||||
public SymbolFlipping getFlip() {
|
public SymbolFlipping getFlip() {
|
||||||
return flip;
|
return flip;
|
||||||
|
|||||||
@@ -537,6 +537,11 @@ public abstract class AbstractLeadedComponent<T> extends AbstractTransparentComp
|
|||||||
return getMoveLabel() || index < 2 ? VisibilityPolicy.ALWAYS : VisibilityPolicy.NEVER;
|
return getMoveLabel() || index < 2 ? VisibilityPolicy.ALWAYS : VisibilityPolicy.NEVER;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean canControlPointOverlap(int index) {
|
||||||
|
return index >= 2;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setControlPoint(Point point, int index) {
|
public void setControlPoint(Point point, int index) {
|
||||||
// when moving one of the ending points, try to retain the angle and distance from the center point to label point
|
// when moving one of the ending points, try to retain the angle and distance from the center point to label point
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user