Skip to content

Commit

Permalink
fix(data-types): change vadjust type to number because that is what i…
Browse files Browse the repository at this point in the history
…t actually is (#243)
  • Loading branch information
aml2610 authored and Thomaash committed Nov 19, 2019
1 parent b7a3baf commit 341aed5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions docs/network/edges.html
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ <h3>Options</h3>
</tr>
<tr parent="font" class="hidden">
<td class="indent">font.vadjust</td>
<td>String</td>
<td>Number</td>
<td><code>0</code></td>
<td>A font-specific correction to the vertical positioning of the base font in the label text. (Positive is down.)</td>
</tr>
Expand Down Expand Up @@ -589,7 +589,7 @@ <h3>Options</h3>
</tr>
<tr parent="bold" class="hidden">
<td class="indent">font.bold.vadjust</td>
<td>String</td>
<td>Number</td>
<td><code>0</code></td>
<td>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.</td>
</tr>
Expand Down Expand Up @@ -627,7 +627,7 @@ <h3>Options</h3>
</tr>
<tr parent="ital" class="hidden">
<td class="indent">font.ital.vadjust</td>
<td>String</td>
<td>Number</td>
<td><code>0</code></td>
<td>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.</td>
</tr>
Expand Down Expand Up @@ -665,7 +665,7 @@ <h3>Options</h3>
</tr>
<tr parent="boldital" class="hidden">
<td class="indent">font.boldital.vadjust</td>
<td>String</td>
<td>Number</td>
<td><code>0</code></td>
<td>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.</td>
</tr>
Expand Down Expand Up @@ -703,7 +703,7 @@ <h3>Options</h3>
</tr>
<tr parent="mono" class="hidden">
<td class="indent">font.mono.vadjust</td>
<td>String</td>
<td>Number</td>
<td><code>2</code></td>
<td>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.</td>
</tr>
Expand Down
14 changes: 7 additions & 7 deletions docs/network/nodes.html
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ <h3>Options</h3>
</tr>
<tr parent="font" class="hidden">
<td class="indent">font.vadjust</td>
<td>String</td>
<td>Number</td>
<td><code>0</code></td>
<td>A font-specific correction to the vertical positioning of the base font in the label text. (Positive is down.)</td>
</tr>
Expand Down Expand Up @@ -538,7 +538,7 @@ <h3>Options</h3>
</tr>
<tr parent="bold" class="hidden">
<td class="indent">font.bold.vadjust</td>
<td>String</td>
<td>Number</td>
<td><code>0</code></td>
<td>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.</td>
</tr>
Expand Down Expand Up @@ -576,7 +576,7 @@ <h3>Options</h3>
</tr>
<tr parent="ital" class="hidden">
<td class="indent">font.ital.vadjust</td>
<td>String</td>
<td>Number</td>
<td><code>0</code></td>
<td>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.</td>
</tr>
Expand Down Expand Up @@ -614,7 +614,7 @@ <h3>Options</h3>
</tr>
<tr parent="boldital" class="hidden">
<td class="indent">font.boldital.vadjust</td>
<td>String</td>
<td>Number</td>
<td><code>0</code></td>
<td>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.</td>
</tr>
Expand Down Expand Up @@ -652,7 +652,7 @@ <h3>Options</h3>
</tr>
<tr parent="mono" class="hidden">
<td class="indent">font.mono.vadjust</td>
<td>String</td>
<td>Number</td>
<td><code>2</code></td>
<td>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.</td>
</tr>
Expand Down Expand Up @@ -745,8 +745,8 @@ <h3>Options</h3>
<td>Object or String</td>
<td><code>undefined</code></td>
<td>When the shape is set to <code>image</code> or <code>circularImage</code>, this option should be the URL
to an image. If the image cannot be found, the brokenImage option can be used.
<br><i>Note: Firefox has a <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=700533">SVG drawing bug</a>,
to an image. If the image cannot be found, the brokenImage option can be used.
<br><i>Note: Firefox has a <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=700533">SVG drawing bug</a>,
there is a <a href="https://stackoverflow.com/a/28692538/469898">workaround</a> - add width/height attributes to root &lt;svg&gt; element of the SVG</a></i>.
</td>
</tr>
Expand Down
6 changes: 3 additions & 3 deletions types/network/Network.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -989,7 +989,7 @@ export interface FontOptions {
size?: number;
face?: string;
mod?: string;
vadjust?: string;
vadjust?: number;
}

export interface OptionsScaling {
Expand Down

0 comments on commit 341aed5

Please sign in to comment.