Skip to content

Commit

Permalink
fix: fixed points rendering for devices with DPR < 2 (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
zefirka authored Jan 26, 2024
1 parent 80191b7 commit af61f6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/YagrCore/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const DEFAULT_MAX_TICKS = 5;
export const DEFAULT_Y_AXIS_OFFSET = 0.05;
export const DEFAULT_SCALE_MIN_RANGE = 0.01;
export const DEFAULT_LOGARITHMIC_MIN_SCALE_VALUE = 0.001;
export const DEFAULT_POINT_SIZE = 4;
export const DEFAULT_POINT_SIZE = DEFAULT_CANVAS_PIXEL_RATIO >= 2 ? 4 : 2;

export const DEFAULT_SYNC_KEY = 'sync';
export const DEFAULT_TITLE_FONT_SIZE = 14;
Expand Down
2 changes: 1 addition & 1 deletion src/YagrCore/plugins/markers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export function drawMarkersIfRequired(u: UPlot, i: number, i0: number, i1: numbe
u,
u.data[0][j] as number,
val as number,
pointsSize ?? 2,
pointsSize ?? (DEFAULT_POINT_SIZE / 2),
0,
color,
color,
Expand Down

0 comments on commit af61f6e

Please sign in to comment.