Socket
Socket
Sign inDemoInstall

@types/vis

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/vis - npm Package Compare versions

Comparing version 4.21.20 to 4.21.21

126

vis/index.d.ts

@@ -240,3 +240,3 @@ // Type definitions for vis.js 4.21

locale?: string;
locales?: any; // TODO
locales?: Locales;
moment?: MomentConstructor;

@@ -468,3 +468,3 @@ margin?: TimelineOptionsMarginType;

*/
get(id: IdType, options?: DataSelectionOptions<T>): T|null;
get(id: IdType, options?: DataSelectionOptions<T>): T | null;

@@ -690,3 +690,3 @@ /**

locale?: string;
locales?: any; // TODO
locales?: Locales;
moment?: MomentConstructor;

@@ -1021,2 +1021,4 @@ max?: DateType;

'dragEnd' |
'controlNodeDragging' |
'controlNodeDragEnd' |
'hoverNode' |

@@ -1768,3 +1770,3 @@ 'blurNode' |

configure?: any; // http://visjs.org/docs/network/configure.html#
configure?: NetworkConfigure;

@@ -1791,2 +1793,9 @@ edges?: EdgeOptions;

export interface NetworkConfigure {
enabled?: boolean;
filter?: string | string[] | boolean; // please note, filter could be also a function. This case is not represented here
container?: any;
showButton?: boolean;
}
export interface Color {

@@ -1822,17 +1831,3 @@ border?: string;

font?: string | {
color?: string,
size?: number, // px
face?: string,
background?: string,
strokeWidth?: number, // px
strokeColor?: string,
align?: string,
vadjust?: string,
multi?: string,
bold?: string | FontOptions,
ital?: string | FontOptions,
boldital?: string | FontOptions,
mono?: string | FontOptions,
};
font?: string | Font;

@@ -1903,21 +1898,19 @@ group?: string;

arrows?: string | {
to?: boolean | {
enabled?: boolean,
scaleFactor?: number,
type?: string
},
middle?: boolean | {
enabled?: boolean,
scaleFactor?: number,
type?: string
},
from?: boolean | {
enabled?: boolean,
scaleFactor?: number,
type?: string
}
to?: boolean | ArrowHead
middle?: boolean | ArrowHead
from?: boolean | ArrowHead
};
endPointOffset?: {
from?: number,
to?: number
};
arrowStrikethrough?: boolean;
chosen?: boolean | {
edge?: boolean, // please note, chosen.edge could be also a function. This case is not represented here
label?: boolean, // please note, chosen.label could be also a function. This case is not represented here
};
color?: string | {

@@ -1933,17 +1926,3 @@ color?: string,

font?: string | {
color?: string,
size?: number, // px
face?: string,
background?: string,
strokeWidth?: number, // px
strokeColor?: string,
align?: string,
vadjust?: string,
multi?: string,
bold?: string | FontOptions,
ital?: string | FontOptions,
boldital?: string | FontOptions,
mono?: string | FontOptions,
};
font?: string | Font;

@@ -1968,2 +1947,8 @@ hidden?: boolean;

selfReference?: {
size?: number,
angle?: number,
renderBehindTheNode?: boolean
};
shadow?: boolean | OptionsShadow;

@@ -1983,10 +1968,39 @@

width?: number;
widthConstraint?: number | boolean | {
maximum?: number;
};
}
export interface FontOptions {
export interface ArrowHead {
enabled?: boolean;
imageHeight?: number;
imageWidth?: number;
scaleFactor?: number;
src?: string;
type?: string;
}
export interface Font {
color?: string;
size?: number; // px
face?: string;
background?: string;
strokeWidth?: number; // px
strokeColor?: string;
align?: string;
vadjust?: number;
multi?: boolean | string;
bold?: string | FontStyles;
ital?: string | FontStyles;
boldital?: string | FontStyles;
mono?: string | FontStyles;
}
export interface FontStyles {
color?: string;
size?: number;
face?: string;
mod?: string;
vadjust?: string;
vadjust?: number;
}

@@ -2008,9 +2022,9 @@

export interface OptionsShadow {
enabled: boolean;
color: string;
size: number;
x: number;
y: number;
enabled?: boolean;
color?: string;
size?: number;
x?: number;
y?: number;
}
export as namespace vis;
{
"name": "@types/vis",
"version": "4.21.20",
"version": "4.21.21",
"description": "TypeScript definitions for vis.js",

@@ -89,4 +89,4 @@ "license": "MIT",

},
"typesPublisherContentHash": "92e8ab7243ac1dd8edd8edb9be0104af27e5e545b7698e30714769f86414b3f3",
"typeScriptVersion": "3.0"
"typesPublisherContentHash": "4e91cff0a0637b646570e63c72efd01586dc492e30e71c98679f97c83fcc22fd",
"typeScriptVersion": "3.2"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Fri, 15 May 2020 13:12:53 GMT
* Last updated: Sun, 11 Oct 2020 18:18:08 GMT
* Dependencies: [@types/moment](https://npmjs.com/package/@types/moment)

@@ -14,0 +14,0 @@ * Global values: `vis`

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc