mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
vis: update network nodes image option (v4.21)
This commit is contained in:
Vendored
+8
-2
@@ -8,6 +8,7 @@
|
||||
// Matthieu Maitre <https://github.com/mmaitre314>
|
||||
// Adam Lewis <https://github.com/supercargo>
|
||||
// Alex Soh <https://github.com/takato1314>
|
||||
// Oleksii Kachura <https://github.com/alex-kachura>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
import { MomentInput, MomentFormatSpecification, Moment } from 'moment';
|
||||
@@ -1691,7 +1692,7 @@ export interface Node {
|
||||
x?: number;
|
||||
y?: number;
|
||||
fixed?: boolean;
|
||||
image?: string;
|
||||
image?: string | Image;
|
||||
shape?: string;
|
||||
color?: string | Color;
|
||||
}
|
||||
@@ -1760,6 +1761,11 @@ export interface Options {
|
||||
physics?: any; // http://visjs.org/docs/network/physics.html#
|
||||
}
|
||||
|
||||
export interface Image {
|
||||
unselected?: string;
|
||||
selected?: string;
|
||||
}
|
||||
|
||||
export interface Color {
|
||||
border?: string;
|
||||
|
||||
@@ -1819,7 +1825,7 @@ export interface NodeOptions {
|
||||
|
||||
id?: string;
|
||||
|
||||
image?: string;
|
||||
image?: string | Image;
|
||||
|
||||
label?: string;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user