赣州市洪水风险预警系统三维版本
guoshilong
2023-02-27 4d8c6dd77427e8e581fda17b6b65ba86bfb7a815
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
 
    /**
     * Settings for the generation of signed distance field glyphs
     *
     * @private
     */
    var 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);