Skip to content

Commit 98208aa

Browse files
committed
feat(InterfaceTypes): add Transform
Also make the Python Enum a string Enum and shorten the string value.
1 parent f8dcb3e commit 98208aa

File tree

4 files changed

+99
-17
lines changed

4 files changed

+99
-17
lines changed

docs/cxx/interface_types.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ itk-wasm execution pipelines support the following [interface types](https://git
99
- [Image](../typescript/interface_types/Image)
1010
- [Mesh](../typescript/interface_types/Mesh)
1111
- [PolyData](../typescript/interface_types/PolyData)
12+
- [Transform](../typescript/interface_types/Transform)
1213
- [JsonCompatible](../typescript/interface_types/JsonCompatible)
1314

1415
These interfaces types are supported in the [Emscripten interface](../typescript/browser_pipelines), [WASI](https://wasi.dev/) embedding interfaces, and native or virtual [filesystem IO](../introduction/file_formats/index). They are intended to be forward-compatible with the [WebAssembly Component Model](https://github.com/WebAssembly/component-model).
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
from enum import Enum
22

3-
4-
class InterfaceTypes(Enum):
5-
TextFile = "InterfaceTextFile"
6-
BinaryFile = "InterfaceBinaryFile"
7-
TextStream = "InterfaceTextStream"
8-
BinaryStream = "InterfaceBinaryStream"
9-
Image = "InterfaceImage"
10-
Mesh = "InterfaceMesh"
11-
PolyData = "InterfacePolyData"
12-
JsonCompatible = "InterfaceJsonCompatible"
3+
class InterfaceTypes(str, Enum):
4+
TextFile = "TextFile"
5+
BinaryFile = "BinaryFile"
6+
TextStream = "TextStream"
7+
BinaryStream = "BinaryStream"
8+
Image = "Image"
9+
Mesh = "Mesh"
10+
PolyData = "PolyData"
11+
Transform = "Transform"
12+
JsonCompatible = "JsonCompatible"

packages/core/typescript/itk-wasm/src/interface-types/interface-types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const InterfaceTypes = {
66
Image: 'Image',
77
Mesh: 'Mesh',
88
PolyData: 'PolyData',
9+
Transform: 'Transform',
910
JsonCompatible: 'JsonCompatible'
1011
} as const
1112

pnpm-lock.yaml

Lines changed: 87 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)