mirror of
https://github.com/molstar/molstar.git
synced 2026-06-04 13:30:24 +08:00
tighter frame mode image size
This commit is contained in:
@@ -159,7 +159,7 @@ function getFrame(volume: Volume, props: SliceProps) {
|
||||
|
||||
if (mode === 'frame') {
|
||||
const r = Vec3.distance(min, max);
|
||||
const s = Vec3.distance(min, max) * Math.SQRT2;
|
||||
const s = Vec3.distance(min, max);
|
||||
Vec3.set(size, s, s, r);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user