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: mark migration of image and mesh io function to packages
Re: InsightSoftwareConsortium#1010 BREAKING_CHANGE: readImageArrayBuffer has been migrated to @itk-wasm/image-io as readImageFile BREAKING_CHANGE: readImageBlob has been migrated to @itk-wasm/image-io as readImageFile BREAKING_CHANGE: readImageFile has been migrated to @itk-wasm/image-io as readImageFile BREAKING_CHANGE: readImageFileSeries has been migrated to @itk-wasm/image-io readImageFileSeries BREAKING_CHANGE: readImageLocalFile has been migrated to @itk-wasm/image-io readImageFileNode BREAKING_CHANGE: readMeshArrayBuffer has been migrated to @itk-wasm/mesh-io readMeshFile BREAKING_CHANGE: readMeshFile has been migrated to @itk-wasm/mesh-io readMeshFile BREAKING_CHANGE: readMeshLocalFile has been migrated to @itk-wasm/mesh-io readMeshFileNode BREAKING_CHANGE: writeImageArrayBuffer has been migrated to @itk-wasm/image-io writeImageFile BREAKING_CHANGE: writeImageLocalFile has been migrated from @itk-wasm/image-io writeImageFileNode
- Loading branch information
Showing
42 changed files
with
253 additions
and
673 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
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
2 changes: 1 addition & 1 deletion
2
src/io/ReadImageArrayBufferOptions.ts → ...ecated/read-image-array-buffer-options.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
13 changes: 13 additions & 0 deletions
13
packages/core/typescript/itk-wasm/src/deprecated/read-image-array-buffer.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 ReadImageResult from "./read-image-result.js" | ||
import ReadImageArrayBufferOptions from "./read-image-array-buffer-options.js" | ||
|
||
/** | ||
* @deprecated Use readImageArrayBuffer from @itk-wasm/image-io instead | ||
*/ | ||
async function readImageArrayBuffer (webWorker: Worker | null, arrayBuffer: ArrayBuffer, fileName: string, options?: ReadImageArrayBufferOptions | string): Promise<ReadImageResult> { | ||
throw new Error('readImageArrayBuffer is deprecated. Use readImageFile from @itk-wasm/image-io instead.') | ||
} | ||
|
||
export default readImageArrayBuffer |
13 changes: 13 additions & 0 deletions
13
packages/core/typescript/itk-wasm/src/deprecated/read-image-blob.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 ReadImageResult from "./read-image-result.js" | ||
import ReadImageArrayBufferOptions from "./read-image-array-buffer-options.js" | ||
|
||
/** | ||
* @deprecated Use readImageBlob from @itk-wasm/image-io instead | ||
*/ | ||
async function readImageBlob (webWorker: Worker | null, blob: Blob, fileName: string, options?: ReadImageArrayBufferOptions | string): Promise<ReadImageResult> { | ||
throw new Error('readImageBlob is deprecated. Use readImageFile from @itk-wasm/image-io instead.') | ||
} | ||
|
||
export default readImageBlob |
2 changes: 1 addition & 1 deletion
2
src/io/ReadImageFileSeriesOptions.ts → ...recated/read-image-file-series-options.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
4 changes: 2 additions & 2 deletions
4
src/io/ReadImageFileSeriesResult.ts → ...precated/read-image-file-series-result.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
18 changes: 18 additions & 0 deletions
18
packages/core/typescript/itk-wasm/src/deprecated/read-image-file-series.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,18 @@ | ||
// @ts-nocheck | ||
|
||
import ReadImageFileSeriesResult from './read-image-file-series-result.js' | ||
import ReadImageFileSeriesOptions from './read-image-file-series-options.js' | ||
|
||
/** | ||
* @deprecated Use readImageFileSeries from @itk-wasm/image-io instead | ||
*/ | ||
async function readImageFileSeries ( | ||
fileList: File[] | FileList, | ||
options?: ReadImageFileSeriesOptions | number, | ||
zOriginBackwardsCompatibility?: number, | ||
sortedSeriesBackwardsCompatibility?: boolean | ||
): Promise<ReadImageFileSeriesResult> { | ||
throw new Error('readImageFileSeries is deprecated. Use readImageFileSeries from @itk-wasm/image-io instead.') | ||
} | ||
|
||
export default readImageFileSeries |
14 changes: 14 additions & 0 deletions
14
packages/core/typescript/itk-wasm/src/deprecated/read-image-file.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 ReadImageResult from "./read-image-result.js" | ||
|
||
import CastImageOptions from "../cast-image-options.js" | ||
|
||
/** | ||
* @deprecated Use readImageFile from @itk-wasm/image-io instead | ||
*/ | ||
async function readImageFile (webWorker: Worker | null, file: File, options?: CastImageOptions): Promise<ReadImageResult> { | ||
throw new Error('readImageFile is deprecated. Use readImageFile from @itk-wasm/image-io instead.') | ||
} | ||
|
||
export default readImageFile |
14 changes: 14 additions & 0 deletions
14
packages/core/typescript/itk-wasm/src/deprecated/read-image-local-file.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 Image from '../interface-types/image.js' | ||
|
||
import CastImageOptions from '../cast-image-options.js' | ||
|
||
/** | ||
* @deprecated Use readImageFileNode from @itk-wasm/image-io instead | ||
*/ | ||
async function readImageLocalFile (filePath: string, options?: CastImageOptions): Promise<Image> { | ||
throw new Error('readImageLocalFile is deprecated. Use readImageFileNode from @itk-wasm/image-io instead.') | ||
} | ||
|
||
export default readImageLocalFile |
2 changes: 1 addition & 1 deletion
2
src/io/ReadImageResult.ts → ...-wasm/src/deprecated/read-image-result.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
12 changes: 12 additions & 0 deletions
12
packages/core/typescript/itk-wasm/src/deprecated/read-mesh-array-buffer.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,12 @@ | ||
// @ts-nocheck | ||
|
||
import ReadMeshResult from './read-mesh-result.js' | ||
|
||
/** | ||
* @deprecated Use readMeshArrayBuffer from @itk-wasm/image-io instead | ||
*/ | ||
async function readMeshArrayBuffer (webWorker: Worker | null, arrayBuffer: ArrayBuffer, fileName: string, mimeType: string): Promise<ReadMeshResult> { | ||
throw new Error('readMeshArrayBuffer is deprecated. Use readMeshFile from @itk-wasm/mesh-io instead.') | ||
} | ||
|
||
export default readMeshArrayBuffer |
12 changes: 12 additions & 0 deletions
12
packages/core/typescript/itk-wasm/src/deprecated/read-mesh-blob.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,12 @@ | ||
// @ts-nocheck | ||
|
||
import ReadMeshResult from './read-mesh-result.js' | ||
|
||
/** | ||
* @deprecated Use readMeshBlob from @itk-wasm/mesh-io instead | ||
*/ | ||
async function readMeshBlob (webWorker: Worker | null, blob: Blob, fileName: string, mimeType: string): Promise<ReadMeshResult> { | ||
throw new Error('readMeshBlob is deprecated. Use readMeshFile from @itk-wasm/mesh-io instead.') | ||
} | ||
|
||
export default readMeshBlob |
12 changes: 12 additions & 0 deletions
12
packages/core/typescript/itk-wasm/src/deprecated/read-mesh-file.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,12 @@ | ||
// @ts-nocheck | ||
|
||
import ReadMeshResult from './read-mesh-result.js' | ||
|
||
/** | ||
* @deprecated Use readMeshFile from @itk-wasm/mesh-io instead | ||
*/ | ||
async function readMeshFile (webWorker: Worker | null, file: File): Promise<ReadMeshResult> { | ||
throw new Error('readMeshFile is deprecated. Use readMeshFile from @itk-wasm/mesh-io instead.') | ||
} | ||
|
||
export default readMeshFile |
12 changes: 12 additions & 0 deletions
12
packages/core/typescript/itk-wasm/src/deprecated/read-mesh-local-file.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,12 @@ | ||
// @ts-nocheck | ||
|
||
import Mesh from '../interface-types/mesh.js' | ||
|
||
/** | ||
* @deprecated Use readMeshFileNode from @itk-wasm/mesh-io instead | ||
*/ | ||
async function readMeshLocalFile (filePath: string): Promise<Mesh> { | ||
throw new Error('readMeshLocalFile is deprecated. Use readMeshFileNode from @itk-wasm/mesh-io instead.') | ||
} | ||
|
||
export default readMeshLocalFile |
2 changes: 1 addition & 1 deletion
2
src/io/ReadMeshResult.ts → ...k-wasm/src/deprecated/read-mesh-result.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
File renamed without changes.
16 changes: 16 additions & 0 deletions
16
packages/core/typescript/itk-wasm/src/deprecated/write-image-array-buffer.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,16 @@ | ||
// @ts-nocheck | ||
|
||
import Image from '../interface-types/image.js' | ||
|
||
import WriteImageOptions from './write-image-options.js' | ||
import WriteArrayBufferResult from './write-array-buffer-result.js' | ||
|
||
/** | ||
* @deprecated Use writeImageFile from @itk-wasm/image-io instead | ||
*/ | ||
async function writeImageArrayBuffer (webWorker: Worker | null, image: Image, fileName: string, options?: WriteImageOptions | string, useCompressionBackwardsCompatibility?: boolean | ||
): Promise<WriteArrayBufferResult> { | ||
throw new Error('writeImageArrayBuffer is deprecated. Use writeImageFile from @itk-wasm/image-io instead.') | ||
} | ||
|
||
export default writeImageArrayBuffer |
15 changes: 15 additions & 0 deletions
15
packages/core/typescript/itk-wasm/src/deprecated/write-image-local-file.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,15 @@ | ||
// @ts-nocheck | ||
|
||
import WriteImageOptions from './write-image-options.js' | ||
|
||
import Image from '../interface-types/image.js' | ||
|
||
/** | ||
* @deprecated Use writeImageFileNode from @itk-wasm/image-io instead | ||
*/ | ||
async function writeImageLocalFile (image: Image, filePath: string, options?: WriteImageOptions | boolean | ||
): Promise<null> { | ||
throw new Error('writeImageLocalFile is deprecated. Use writeImageFileNode from @itk-wasm/image-io instead.') | ||
} | ||
|
||
export default writeImageLocalFile |
2 changes: 1 addition & 1 deletion
2
src/io/WriteImageOptions.ts → ...asm/src/deprecated/write-image-options.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
15 changes: 15 additions & 0 deletions
15
packages/core/typescript/itk-wasm/src/deprecated/write-mesh-array-buffer.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,15 @@ | ||
// @ts-nocheck | ||
|
||
import Mesh from '../interface-types/mesh.js' | ||
|
||
import WriteArrayBufferResult from './write-array-buffer-result.js' | ||
import WriteMeshOptions from './write-mesh-options.js' | ||
|
||
/** | ||
* @deprecated Use writeMeshFile from @itk-wasm/mesh-io instead | ||
*/ | ||
async function writeMeshArrayBuffer (webWorker: Worker | null, mesh: Mesh, fileName: string, mimeType: string, options: WriteMeshOptions): Promise<WriteArrayBufferResult> { | ||
throw new Error('writeMeshArrayBuffer is deprecated. Use writeMeshFile from @itk-wasm/mesh-io instead.') | ||
} | ||
|
||
export default writeMeshArrayBuffer |
14 changes: 14 additions & 0 deletions
14
packages/core/typescript/itk-wasm/src/deprecated/write-mesh-local-file.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 WriteMeshOptions from './write-mesh-options.js' | ||
|
||
import Mesh from '../interface-types/mesh.js' | ||
|
||
/** | ||
* @deprecated Use writeMeshFileNode from @itk-wasm/mesh-io instead | ||
*/ | ||
async function writeMeshLocalFile (mesh: Mesh, filePath: string, options: WriteMeshOptions): Promise<null> { | ||
throw new Error('writeMeshLocalFile is deprecated. Use writeMeshFileNode from @itk-wasm/mesh-io instead.') | ||
} | ||
|
||
export default writeMeshLocalFile |
File renamed without changes.
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
5 changes: 1 addition & 4 deletions
5
src/io/readImageHTTP.ts → ...mage-io/typescript/src/read-image-http.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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.