mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
Trace cut doesn't affect continuity of vero board traces
This commit is contained in:
@@ -4290,6 +4290,10 @@
|
||||
<changeType>IMPROVEMENT</changeType>
|
||||
<description>Improved find tool usability, make the screen pan to the selected components</description>
|
||||
</org.diylc.appframework.update.Change>
|
||||
<org.diylc.appframework.update.Change>
|
||||
<changeType>BUG_FIX</changeType>
|
||||
<description>Trace cut doesn't affect continuity of vero board traces</description>
|
||||
</org.diylc.appframework.update.Change>
|
||||
<org.diylc.appframework.update.Change>
|
||||
<changeType>BUG_FIX</changeType>
|
||||
<description>DIL IC pin labels incorrect in the netlist</description>
|
||||
@@ -4300,7 +4304,7 @@
|
||||
</org.diylc.appframework.update.Change>
|
||||
<org.diylc.appframework.update.Change>
|
||||
<changeType>BUG_FIX</changeType>
|
||||
<description>Upon starting or opening a project, the ruler is slightly misaligned with the project boundaries</description>
|
||||
<description>Upon starting or opening a project, the ruler is slightly miss-aligned with the project boundaries</description>
|
||||
</org.diylc.appframework.update.Change>
|
||||
</changes>
|
||||
<url>https://github.com/bancika/diy-layout-creator/releases</url>
|
||||
|
||||
@@ -34,6 +34,7 @@ import org.diylc.components.transform.SimpleComponentTransformer;
|
||||
import org.diylc.core.ComponentState;
|
||||
import org.diylc.core.IDIYComponent;
|
||||
import org.diylc.core.IDrawingObserver;
|
||||
import org.diylc.core.ILayer;
|
||||
import org.diylc.core.Project;
|
||||
import org.diylc.core.VisibilityPolicy;
|
||||
import org.diylc.core.annotations.BomPolicy;
|
||||
@@ -47,7 +48,7 @@ import org.diylc.utils.Constants;
|
||||
description = "Designates the place where a trace on the vero board needs to be cut", instanceNamePrefix = "Cut",
|
||||
zOrder = IDIYComponent.BOARD + 1, bomPolicy = BomPolicy.NEVER_SHOW, autoEdit = false,
|
||||
transformer = SimpleComponentTransformer.class, enableCache = true)
|
||||
public class TraceCut extends AbstractComponent<Void> {
|
||||
public class TraceCut extends AbstractComponent<Void> implements ILayer {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@@ -252,5 +253,10 @@ public class TraceCut extends AbstractComponent<Void> {
|
||||
public Rectangle2D getCachingBounds() {
|
||||
double size = getSize().convertToPixels();
|
||||
return new Rectangle2D.Double(point.getX() - size, point.getY() - size, size * 2, size * 2);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getLayerId() {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user