mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-12 19:59:02 +08:00
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:
20
types/vis/index.d.ts
vendored
20
types/vis/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user