Skip to content

Commit ebe279b

Browse files
committed
docs(typescript): link to model
1 parent cc1a8ab commit ebe279b

16 files changed

+53
-24
lines changed

docs/typescript/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# API Overview
22

3-
This documentation provides more detailed information about the *itk-wasm* JavaScript and TypeScript interface.
3+
This documentation provides more detailed information about the *ITK-Wasm* JavaScript and TypeScript interface.
44

55
The **Interface Types** section describes data structures produced and consumed
66
by both the *Input/Output* and *Processing Pipelines* functions.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# BinaryFile
22

3-
A `BinaryFile` represents a binary file. For performance reasons, use [`BinaryStream`](./BinaryStream), when possible, instead. `BinaryFile` is a JavaScript object with the following properties:
3+
A [`BinaryFile`] represents a binary file. For performance reasons, use [`BinaryStream`](./BinaryStream), when possible, instead. [`BinaryFile`] is a JavaScript object with the following properties:
44

55
- `data`: `Uint8Arrray` with the binary data.
66
- `path`: File path string.
7+
8+
[`BinaryFile`]: ../../model/BinaryFile.md
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# BinaryStream
22

3-
A `BinaryStream` provides a stream of binary data. `BinaryStream` is a JavaScript object with the following properties:
3+
A [`BinaryStream`] provides a stream of binary data. [`BinaryStream`] is a JavaScript object with the following properties:
44

55
- `data`: `Uint8Array` with the binary data.
6+
7+
[`BinaryStream`]: ../../model/BinaryStream.md

docs/typescript/interface_types/Image.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Image
22

3-
An `Image` is the N-dimensional image data structure for *ITK-Wasm*.
3+
An [`Image`] is the N-dimensional image data structure for *ITK-Wasm*.
44

5-
`Image` is a JavaScript object with the following properties:
5+
[`Image`] is a JavaScript object with the following properties:
66

77
- `imageType`: The [ImageType](./ImageType) for this image.
88
- `name`: An optional name string that describes this image.
@@ -20,3 +20,5 @@ Note that the `origin`, `spacing`, `direction`, and `size` are indexed with an `
2020
```
2121
const tensor = tf.tensor(image.data, image.size.reverse())
2222
```
23+
24+
[`Image`]: ../../model/Image.md
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ImageType
22

3-
An `ImageType` describes the type of an [`Image`](./Image). It is a
3+
An [`ImageType`] describes the type of an [`Image`](./Image). It is a
44
JSON object with the following attributes:
55

66
- `dimension`: An integer that describes the dimension for the image, typically 2 or 3.
@@ -10,4 +10,6 @@ JSON object with the following attributes:
1010

1111
[`PixelType`]: https://github.com/InsightSoftwareConsortium/ITK-Wasm/blob/main/packages/core/typescript/itk-wasm/src/interface-types/pixel-types.ts
1212
[`IntTypes`]: https://github.com/InsightSoftwareConsortium/ITK-Wasm/blob/main/packages/core/typescript/itk-wasm/src/interface-types/int-types.ts
13-
[`FloatTypes`]: https://github.com/InsightSoftwareConsortium/ITK-Wasm/blob/main/packages/core/typescript/itk-wasm/src/interface-types/float-types.ts
13+
[`FloatTypes`]: https://github.com/InsightSoftwareConsortium/ITK-Wasm/blob/main/packages/core/typescript/itk-wasm/src/interface-types/float-types.ts
14+
15+
[`ImageType`]: ../../model/ImageType.md
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# JsonCompatible
22

3-
A `JsonCompatible` interface type represents an object, array, null, number, boolean, or nested version of the same that can be parsed from an arbitrary JSON string.
3+
A [`JsonCompatible`] interface type represents an object, array, null, number, boolean, or nested version of the same that can be parsed from an arbitrary JSON string.
4+
5+
[`JsonCompatible`]: ../../model/JsonCompatible.md

docs/typescript/interface_types/Mesh.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Mesh
22

3-
An `Mesh` is the N-dimensional data structure to represent points sets and meshes for *itk-wasm*. It is intended to be used for data transfer and exchange as opposed to processing.
3+
An [`Mesh`] is the N-dimensional data structure to represent points sets and meshes for *itk-wasm*. It is intended to be used for data transfer and exchange as opposed to processing.
44

55
A Mesh is a JavaScript object with the following properties:
66

@@ -18,4 +18,6 @@ A Mesh is a JavaScript object with the following properties:
1818

1919
For more information, see [the description](https://itk.org/ITKSoftwareGuide/html/Book1/ITKSoftwareGuide-Book1ch4.html#x38-640004.3) of an `itk::Mesh` in the ITK Software Guide.
2020

21-
`TypedArray`: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray
21+
`TypedArray`: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray
22+
23+
[`Mesh`]: ../../model/Mesh.md

docs/typescript/interface_types/MeshType.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# MeshType
22

3-
A `MeshType` describes the type of an [`Mesh`](/api/Mesh). It is a JSON object with the following attributes:
3+
A [`MeshType`] describes the type of an [`Mesh`](/api/Mesh). It is a JSON object with the following attributes:
44

55
- `dimension`: The spatial dimension of the mesh.
66
- `pointComponentType`: The type of the components used to represent a point. This is one of the [`FloatTypes`].
@@ -14,4 +14,6 @@ A `MeshType` describes the type of an [`Mesh`](/api/Mesh). It is a JSON object w
1414

1515
[`PixelType`]: https://github.com/InsightSoftwareConsortium/ITK-Wasm/blob/main/packages/core/typescript/itk-wasm/src/interface-types/pixel-types.ts
1616
[`IntTypes`]: https://github.com/InsightSoftwareConsortium/ITK-Wasm/blob/main/packages/core/typescript/itk-wasm/src/interface-types/int-types.ts
17-
[`FloatTypes`]: https://github.com/InsightSoftwareConsortium/ITK-Wasm/blob/main/packages/core/typescript/itk-wasm/src/interface-types/float-types.ts
17+
[`FloatTypes`]: https://github.com/InsightSoftwareConsortium/ITK-Wasm/blob/main/packages/core/typescript/itk-wasm/src/interface-types/float-types.ts
18+
19+
[`MeshType`]: ../../model/MeshType.md

docs/typescript/interface_types/PolyData.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# PolyData
22

3-
A `PolyData` is represents renderable geometry.
3+
A [`PolyData`] is represents renderable geometry.
44

55
A PolyData is a JavaScript object with the following properties:
66

@@ -25,4 +25,6 @@ A PolyData is a JavaScript object with the following properties:
2525
- `pointData`: `null | TypedArray` data associated with points.
2626

2727
- `numberOfCellPixels`: Integer number of cell pixels.
28-
- `cellData`: `null | TypedArray` data associated with cells.
28+
- `cellData`: `null | TypedArray` data associated with cells.
29+
30+
[`PolyData`]: ../../model/PolyData.md
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# TextFile
22

3-
A `TextFile` represents a text file. For performance reasons, use [`TextStream`](./TextStream), when possible, instead. `TextFile` is a JavaScript object with the following properties:
3+
A [`TextFile`] represents a text file. For performance reasons, use [`TextStream`](./TextStream), when possible, instead. [`TextFile`] is a JavaScript object with the following properties:
44

55
- `data`: String with the text data.
66
- `path`: File path string.
7+
8+
[`TextFile`]: ../../model/TextFile.md

0 commit comments

Comments
 (0)