deno.land / x / billboardjs@3.6.0 / Plugin / textoverlap / Options.ts

نووسراو ببینە
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
41
42
43
44
45
46
47
48
49
50
51
52
53
/** * Copyright (c) 2017 ~ present NAVER Corp. * billboard.js project is licensed under the MIT license *//** * TextOverlap plugin option class * @class TextOverlapOptions * @param {Options} options TextOverlap plugin options * @augments Plugin * @returns {TextOverlapOptions} * @private */export default class Options { constructor() { return { /** * Selector string for target text nodes within chart element. * - **NOTE:** If no value is given, defaults to data label text elements. * @name selector * @memberof plugin-textoverlap * @type {string} * @default undefined * @example * // selector for data label text nodes * selector: ".bb-texts text" */ selector: undefined,
/** * Extent of label overlap prevention. * @name extent * @memberof plugin-textoverlap * @type {number} * @default 1 * @example * extent: 1 */ extent: 1,
/** * Minimum area needed to show a data label. * @name area * @memberof plugin-textoverlap * @type {number} * @default 0 * @example * area: 0 */ area: 0 }; }}
billboardjs

Version Info

Tagged at
a year ago