From 341aed597e96d946518aeb4dc2916da6629b7631 Mon Sep 17 00:00:00 2001 From: Andrei-Marius Longhin Date: Tue, 19 Nov 2019 18:49:48 +0000 Subject: [PATCH] fix(data-types): change vadjust type to number because that is what it actually is (#243) --- docs/network/edges.html | 10 +++++----- docs/network/nodes.html | 14 +++++++------- types/network/Network.d.ts | 6 +++--- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/docs/network/edges.html b/docs/network/edges.html index 8d55671f5c..57418daa83 100644 --- a/docs/network/edges.html +++ b/docs/network/edges.html @@ -544,7 +544,7 @@

Options

font.vadjust - String + Number 0 A font-specific correction to the vertical positioning of the base font in the label text. (Positive is down.) @@ -589,7 +589,7 @@

Options

font.bold.vadjust - String + Number 0 A font-specific correction to the vertical positioning of the bold italic font in the label text. (Positive is down.) Defaults to the base font's valign. @@ -627,7 +627,7 @@

Options

font.ital.vadjust - String + Number 0 A font-specific correction to the vertical positioning of the italic font in the label text. (Positive is down.) Defaults to the base font's valign. @@ -665,7 +665,7 @@

Options

font.boldital.vadjust - String + Number 0 A font-specific correction to the vertical positioning of the bold italic font in the label text. (Positive is down.) Defaults to the base font's valign. @@ -703,7 +703,7 @@

Options

font.mono.vadjust - String + Number 2 A font-specific correction to the vertical positioning of the monospaced font in the label text. (Positive is down.) Defaults to the base font's valign. diff --git a/docs/network/nodes.html b/docs/network/nodes.html index fe6f419803..8f77a7e730 100644 --- a/docs/network/nodes.html +++ b/docs/network/nodes.html @@ -493,7 +493,7 @@

Options

font.vadjust - String + Number 0 A font-specific correction to the vertical positioning of the base font in the label text. (Positive is down.) @@ -538,7 +538,7 @@

Options

font.bold.vadjust - String + Number 0 A font-specific correction to the vertical positioning of the bold italic font in the label text. (Positive is down.) Defaults to the base font's valign. @@ -576,7 +576,7 @@

Options

font.ital.vadjust - String + Number 0 A font-specific correction to the vertical positioning of the italic font in the label text. (Positive is down.) Defaults to the base font's valign. @@ -614,7 +614,7 @@

Options

font.boldital.vadjust - String + Number 0 A font-specific correction to the vertical positioning of the bold italic font in the label text. (Positive is down.) Defaults to the base font's valign. @@ -652,7 +652,7 @@

Options

font.mono.vadjust - String + Number 2 A font-specific correction to the vertical positioning of the monospaced font in the label text. (Positive is down.) Defaults to the base font's valign. @@ -745,8 +745,8 @@

Options

Object or String undefined When the shape is set to image or circularImage, this option should be the URL - to an image. If the image cannot be found, the brokenImage option can be used. -
Note: Firefox has a SVG drawing bug, + to an image. If the image cannot be found, the brokenImage option can be used. +
Note: Firefox has a SVG drawing bug, there is a workaround - add width/height attributes to root <svg> element of the SVG. diff --git a/types/network/Network.d.ts b/types/network/Network.d.ts index 9d722a4515..3be7d045b9 100644 --- a/types/network/Network.d.ts +++ b/types/network/Network.d.ts @@ -832,7 +832,7 @@ export interface NodeOptions { strokeWidth?: number, // px strokeColor?: string, align?: string, - vadjust?: string, + vadjust?: number, multi?: string, bold?: string | FontOptions, ital?: string | FontOptions, @@ -942,7 +942,7 @@ export interface EdgeOptions { strokeWidth?: number, // px strokeColor?: string, align?: string, - vadjust?: string, + vadjust?: number, multi?: string, bold?: string | FontOptions, ital?: string | FontOptions, @@ -989,7 +989,7 @@ export interface FontOptions { size?: number; face?: string; mod?: string; - vadjust?: string; + vadjust?: number; } export interface OptionsScaling {