@cesium/engine
Version:
CesiumJS is a JavaScript library for creating 3D globes and 2D maps in a web browser without a plugin.
40 lines (36 loc) • 651 B
JavaScript
/**
* Settings for the generation of signed distance field glyphs
*
* @private
*/
const SDFSettings = {
/**
* The font size in pixels
*
* @type {number}
* @constant
*/
FONT_SIZE: 48.0,
/**
* Whitespace padding around glyphs.
*
* @type {number}
* @constant
*/
PADDING: 10.0,
/**
* How many pixels around the glyph shape to use for encoding distance
*
* @type {number}
* @constant
*/
RADIUS: 8.0,
/**
* How much of the radius (relative) is used for the inside part the glyph.
*
* @type {number}
* @constant
*/
CUTOFF: 0.25,
};
export default Object.freeze(SDFSettings);