getQualityFromSize() function

Given a size, find the nearest quality.

Signature:

declare function getQualityFromSize(size: number): (typeof Quality)["0.25k"] | (typeof Quality)["0.5k"] | (typeof Quality)["1k"] | (typeof Quality)["2k"] | (typeof Quality)["4k"] | (typeof Quality)["8k"];

Parameters

Parameter

Type

Description

size

number

Returns:

(typeof Quality)["0.25k"] | (typeof Quality)["0.5k"] | (typeof Quality)["1k"] | (typeof Quality)["2k"] | (typeof Quality)["4k"] | (typeof Quality)["8k"]

Get in touch

We'd love to learn more about your vision and how we can help.

PressPrivacyTermsSupportCopyright © 2026 Core3D, Inc. All Rights Reserved.