Additional font options for NodeOptions and EdgeOptions according to http://visjs.org/docs/network/nodes.html and http://visjs.org/docs/network/edges.html

This commit is contained in:
EpixZhang
2018-03-17 02:46:36 +08:00
committed by Epix Zhang
parent 17c3e0a996
commit eb690e38f0
+20
View File
@@ -1793,6 +1793,12 @@ export interface NodeOptions {
strokeWidth?: number, // px
strokeColor?: string,
align?: string,
vadjust?: string,
multi?: string,
bold?: string | FontOptions,
ital?: string | FontOptions,
boldital?: string | FontOptions,
mono?: string | FontOptions,
};
group?: string;
@@ -1881,6 +1887,12 @@ export interface EdgeOptions {
strokeWidth?: number, // px
strokeColor?: string,
align?: string,
vadjust?: string,
multi?: string,
bold?: string | FontOptions,
ital?: string | FontOptions,
boldital?: string | FontOptions,
mono?: string | FontOptions,
};
from?: number | string;
@@ -1923,6 +1935,14 @@ export interface EdgeOptions {
width?: number;
}
export interface FontOptions {
color?: string;
size?: number;
face?: string;
mod?: string;
vadjust?: string;
}
export interface OptionsScaling {
min?: number;
max?: number;