Skip to content

Commit 0fe1496

Browse files
committed
fix(itk-wasm): add metadata to PolyData typescript interface
1 parent 1293844 commit 0fe1496

File tree

1 file changed

+6
-1
lines changed
  • packages/core/typescript/itk-wasm/src/interface-types

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import PolyDataType from './poly-data-type.js'
22
import TypedArray from '../typed-array.js'
3+
import Metadata from './metadata.js'
34

45
class PolyData {
56
name: string = 'PolyData'
@@ -25,7 +26,9 @@ class PolyData {
2526
numberOfCellPixels: number
2627
cellData: null | TypedArray
2728

28-
constructor (public readonly polyDataType = new PolyDataType()) {
29+
metadata: Metadata
30+
31+
constructor(public readonly polyDataType = new PolyDataType()) {
2932
this.polyDataType = polyDataType
3033

3134
this.name = 'PolyData'
@@ -50,6 +53,8 @@ class PolyData {
5053

5154
this.numberOfCellPixels = 0
5255
this.cellData = null
56+
57+
this.metadata = new Map()
5358
}
5459
}
5560

0 commit comments

Comments
 (0)