forked from InsightSoftwareConsortium/ITK-Wasm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: deprecate mesh-to-poly-data and point to new package
Following InsightSoftwareConsortium#716 BREAKING_CHANGE: meshToPolyData, meshToPolyDataNode, polyDataToMesh, polyDataToMeshNode have been migrated to @itk-wasm/mesh-to-poly-data
- Loading branch information
Showing
11 changed files
with
84 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 10 additions & 1 deletion
11
packages/core/typescript/itk-wasm/src/deprecated/index-node.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,11 @@ | ||
import readDICOMTagsLocalFile from './read-dicom-tags-local-file.js' | ||
import readDICOMTagsLocalFile from "./read-dicom-tags-local-file.js" | ||
export { readDICOMTagsLocalFile } | ||
|
||
import readImageLocalDICOMFileSeries from "./read-image-local-dicom-file-series.js" | ||
export { readImageLocalDICOMFileSeries } | ||
|
||
import meshToPolyDataNode from "./mesh-to-poly-data-node.js" | ||
export { meshToPolyDataNode } | ||
|
||
import polyDataToMeshNode from "./poly-data-to-mesh-node.js" | ||
export { polyDataToMeshNode } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,23 @@ | ||
import ReadDICOMTagsResult from './read-dicom-tags-result.js' | ||
export type { ReadDICOMTagsResult } | ||
|
||
import readDICOMTags from './read-dicom-tags.js' | ||
export { readDICOMTags } | ||
|
||
import readDICOMTagsArrayBuffer from './read-dicom-tags-array-buffer.js' | ||
export { readDICOMTagsArrayBuffer } | ||
|
||
import readImageDICOMFileSeries from './read-image-dicom-file-series.js' | ||
export { readImageDICOMFileSeries } | ||
|
||
import ReadImageDICOMFileSeriesResult from './read-image-dicom-file-series-result.js' | ||
export type { ReadImageDICOMFileSeriesResult } | ||
|
||
import readImageDICOMArrayBufferSeries from './read-image-dicom-array-buffer-series.js' | ||
export type { ReadDICOMTagsResult } | ||
export { readDICOMTags } | ||
export { readDICOMTagsArrayBuffer } | ||
export { readImageDICOMFileSeries } | ||
export type { ReadImageDICOMFileSeriesResult } | ||
export { readImageDICOMArrayBufferSeries } | ||
|
||
import meshToPolyData from './mesh-to-poly-data.js' | ||
export { meshToPolyData } | ||
|
||
import polyDataToMesh from './poly-data-to-mesh.js' | ||
export { polyDataToMesh } |
14 changes: 14 additions & 0 deletions
14
packages/core/typescript/itk-wasm/src/deprecated/mesh-to-poly-data-node.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// @ts-nocheck | ||
|
||
import Mesh from '../interface-types/mesh.js' | ||
import PolyData from '../interface-types/poly-data.js' | ||
|
||
|
||
/** | ||
* @deprecated Use meshToPolyDataNode from @itk-wasm/mesh-to-poly-data instead | ||
*/ | ||
async function meshToPolyDataNode (mesh: Mesh): Promise<PolyData> { | ||
throw new Error('This function has been migrated to the @itk-wasm/mesh-to-poly-data package.') | ||
} | ||
|
||
export default meshToPolyDataNode |
13 changes: 13 additions & 0 deletions
13
packages/core/typescript/itk-wasm/src/deprecated/mesh-to-poly-data.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// @ts-nocheck | ||
|
||
import Mesh from '../interface-types/mesh.js' | ||
import PolyData from '../interface-types/poly-data.js' | ||
|
||
/** | ||
* @deprecated Use meshToPolyData from @itk-wasm/mesh-to-poly-data instead | ||
*/ | ||
async function meshToPolyData (webWorker: Worker | null, mesh: Mesh): Promise<{ polyData: PolyData, webWorker: Worker }> { | ||
throw new Error('This function has been migrated to the @itk-wasm/mesh-to-poly-data package.') | ||
} | ||
|
||
export default meshToPolyData |
16 changes: 7 additions & 9 deletions
16
src/io/polyDataToMeshNode.ts → .../src/deprecated/poly-data-to-mesh-node.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
packages/core/typescript/itk-wasm/src/deprecated/poly-data-to-mesh.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// @ts-nocheck | ||
|
||
import Mesh from '../interface-types/mesh.js' | ||
import PolyData from '../interface-types/poly-data.js' | ||
|
||
|
||
/** | ||
* @deprecated Use polyDataToMesh from @itk-wasm/mesh-to-poly-data instead | ||
*/ | ||
async function polyDataToMesh (webWorker: Worker | null, polyData: PolyData): Promise<{ mesh: Mesh, webWorker: Worker }> { | ||
throw new Error('This function has been migrated to the @itk-wasm/mesh-to-poly-data package.') | ||
} | ||
|
||
export default polyDataToMesh |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.