Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.
TypeScript albumsexif-extractiongeocodinglive-photomotion-photophoto-galleryphoto-sharingwebgl-viewer
fix(histogram): 使用实际尺寸计算逻辑宽度和高度
Timothy Yinf67498193399
diff --git a/app/libs/histogram.ts b/app/libs/histogram.tsindex f0fad536..34786fca 100644--- a/app/libs/histogram.ts+++ b/app/libs/histogram.ts@@ -130,9 +130,8 @@ export const drawHistogramToCanvas = (if (maxCount === 0) return- // 使用逻辑尺寸进行计算- const logicalWidth = width / dpr- const logicalHeight = height / dpr+ const logicalWidth = width+ const logicalHeight = heightconst chartWidth = logicalWidth - options.padding * 2const chartHeight = logicalHeight - options.padding * 2