Merge branch 'refactor/maven' into feature/multimeter3

This commit is contained in:
Branislav Stojkovic
2025-03-17 12:15:22 +01:00
13 changed files with 742 additions and 54 deletions
@@ -61,6 +61,7 @@ public interface IPlugInPort extends ISelectionProcessor, IMouseProcessor, IKeyP
public static final String ANTI_ALIASING_KEY = "antiAliasing";
public static final String HI_QUALITY_RENDER_KEY = "hiQualityRender";
public static final String HIGH_DPI_RENDERING = "hiDpiRendering";
public static final String EXPORT_GRID_KEY = "exportGrid";
public static final String STICKY_POINTS_KEY = "stickyPoints";
public static final String METRIC_KEY = "metric";
@@ -120,4 +120,10 @@ public class DatasheetService {
return null;
}
// Add method to clear cache for testing
public void clearCache() {
datasheetCache.clear();
lookupCache.clear();
}
}
@@ -181,6 +181,11 @@ public class DrawingCache {
private CacheValue renderAndCache(IDIYComponent<?> component, G2DWrapper g2d, ComponentState componentState,
boolean outlineMode, Project project, double zoom, double scaleFactor, int zOrder) {
if (!g2d.getClipBounds().intersects(component.getCachingBounds())) {
return null;
}
// if we need to apply caching
Point2D firstPoint = component.getControlPoint(0);
@@ -311,6 +316,7 @@ public class DrawingCache {
this.zoom = zoom;
this.dx = dx;
this.dy = dy;
this.scaleFactor = scaleFactor;
}
public IDIYComponent<?> getComponent() {
@@ -256,6 +256,11 @@
<org.diylc.appframework.update.Change>
<changeType>NEW_FEATURE</changeType>
<description>Added ability to highlight connected switch lugs in selected position in order to illustrate how it works internally.</description>
<description>Configurable 'High DPI Rendering' feature which makes the diagram smoother on high-resolution displays but can affect performance</description>
</org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change>
<changeType>IMPROVEMENT</changeType>
<description>Significantly improved rendering performance</description>
</org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change>
<changeType>IMPROVEMENT</changeType>