From 7a901a294bd8a073cd821803c535574cb0ffcac6 Mon Sep 17 00:00:00 2001 From: Jan Kuehle Date: Tue, 16 Jan 2024 09:55:50 -0800 Subject: [PATCH] No public description PiperOrigin-RevId: 598872928 --- mediapipe/tasks/web/vision/core/drawing_utils.ts | 4 ++-- mediapipe/tasks/web/vision/face_detector/face_detector.ts | 2 +- mediapipe/tasks/web/vision/face_landmarker/face_landmarker.ts | 2 +- mediapipe/tasks/web/vision/face_stylizer/face_stylizer.ts | 2 +- .../tasks/web/vision/gesture_recognizer/gesture_recognizer.ts | 2 +- mediapipe/tasks/web/vision/hand_landmarker/hand_landmarker.ts | 2 +- .../web/vision/holistic_landmarker/holistic_landmarker.ts | 2 +- .../vision/holistic_landmarker/holistic_landmarker_result.ts | 2 +- .../tasks/web/vision/image_classifier/image_classifier.ts | 2 +- mediapipe/tasks/web/vision/image_embedder/image_embedder.ts | 2 +- mediapipe/tasks/web/vision/image_segmenter/image_segmenter.ts | 2 +- .../web/vision/interactive_segmenter/interactive_segmenter.ts | 4 ++-- mediapipe/tasks/web/vision/object_detector/object_detector.ts | 2 +- mediapipe/tasks/web/vision/pose_landmarker/pose_landmarker.ts | 2 +- .../web/vision/pose_landmarker/pose_landmarker_result.ts | 2 +- 15 files changed, 17 insertions(+), 17 deletions(-) diff --git a/mediapipe/tasks/web/vision/core/drawing_utils.ts b/mediapipe/tasks/web/vision/core/drawing_utils.ts index f3c3d5d75b..7a96d641f1 100644 --- a/mediapipe/tasks/web/vision/core/drawing_utils.ts +++ b/mediapipe/tasks/web/vision/core/drawing_utils.ts @@ -30,7 +30,7 @@ import {ImageSource} from '../../../../web/graph_runner/graph_runner'; export type Callback = (input: I) => O; // Used in public API -export {ImageSource}; +export {type ImageSource}; /** Data that a user can use to specialize drawing options. */ export declare interface LandmarkData { @@ -111,7 +111,7 @@ function resolve(value: O|Callback, data: I): O { return value instanceof Function ? value(data) : value; } -export {RGBAColor, CategoryToColorMap}; +export {type RGBAColor, type CategoryToColorMap}; /** Helper class to visualize the result of a MediaPipe Vision task. */ export class DrawingUtils { diff --git a/mediapipe/tasks/web/vision/face_detector/face_detector.ts b/mediapipe/tasks/web/vision/face_detector/face_detector.ts index 1c01097d88..08ab7054a6 100644 --- a/mediapipe/tasks/web/vision/face_detector/face_detector.ts +++ b/mediapipe/tasks/web/vision/face_detector/face_detector.ts @@ -37,7 +37,7 @@ const FACE_DETECTOR_GRAPH = export * from './face_detector_options'; export * from './face_detector_result'; -export {ImageSource}; // Used in the public API +export {type ImageSource}; // Used in the public API // The OSS JS API does not support the builder pattern. // tslint:disable:jspb-use-builder-pattern diff --git a/mediapipe/tasks/web/vision/face_landmarker/face_landmarker.ts b/mediapipe/tasks/web/vision/face_landmarker/face_landmarker.ts index 8c0fa7be45..1131e4d5a4 100644 --- a/mediapipe/tasks/web/vision/face_landmarker/face_landmarker.ts +++ b/mediapipe/tasks/web/vision/face_landmarker/face_landmarker.ts @@ -37,7 +37,7 @@ import {FACE_LANDMARKS_CONTOURS, FACE_LANDMARKS_FACE_OVAL, FACE_LANDMARKS_LEFT_E export * from './face_landmarker_options'; export * from './face_landmarker_result'; -export {ImageSource}; +export {type ImageSource}; // The OSS JS API does not support the builder pattern. // tslint:disable:jspb-use-builder-pattern diff --git a/mediapipe/tasks/web/vision/face_stylizer/face_stylizer.ts b/mediapipe/tasks/web/vision/face_stylizer/face_stylizer.ts index b4916b5320..d4b4168c74 100644 --- a/mediapipe/tasks/web/vision/face_stylizer/face_stylizer.ts +++ b/mediapipe/tasks/web/vision/face_stylizer/face_stylizer.ts @@ -28,7 +28,7 @@ import {ImageSource, WasmModule} from '../../../../web/graph_runner/graph_runner import {FaceStylizerOptions} from './face_stylizer_options'; export * from './face_stylizer_options'; -export {ImageSource}; // Used in the public API +export {type ImageSource}; // Used in the public API const IMAGE_STREAM = 'image_in'; const NORM_RECT_STREAM = 'norm_rect'; diff --git a/mediapipe/tasks/web/vision/gesture_recognizer/gesture_recognizer.ts b/mediapipe/tasks/web/vision/gesture_recognizer/gesture_recognizer.ts index 1a6a43f2d0..f3030f95c0 100644 --- a/mediapipe/tasks/web/vision/gesture_recognizer/gesture_recognizer.ts +++ b/mediapipe/tasks/web/vision/gesture_recognizer/gesture_recognizer.ts @@ -40,7 +40,7 @@ import {GestureRecognizerResult} from './gesture_recognizer_result'; export * from './gesture_recognizer_options'; export * from './gesture_recognizer_result'; -export {ImageSource}; +export {type ImageSource}; // The OSS JS API does not support the builder pattern. // tslint:disable:jspb-use-builder-pattern diff --git a/mediapipe/tasks/web/vision/hand_landmarker/hand_landmarker.ts b/mediapipe/tasks/web/vision/hand_landmarker/hand_landmarker.ts index efb3fc6e11..89f2cd2192 100644 --- a/mediapipe/tasks/web/vision/hand_landmarker/hand_landmarker.ts +++ b/mediapipe/tasks/web/vision/hand_landmarker/hand_landmarker.ts @@ -37,7 +37,7 @@ import {HandLandmarkerResult} from './hand_landmarker_result'; export * from './hand_landmarker_options'; export * from './hand_landmarker_result'; -export {ImageSource}; +export {type ImageSource}; // The OSS JS API does not support the builder pattern. // tslint:disable:jspb-use-builder-pattern diff --git a/mediapipe/tasks/web/vision/holistic_landmarker/holistic_landmarker.ts b/mediapipe/tasks/web/vision/holistic_landmarker/holistic_landmarker.ts index 16c20fdf5b..4866cd3ae6 100644 --- a/mediapipe/tasks/web/vision/holistic_landmarker/holistic_landmarker.ts +++ b/mediapipe/tasks/web/vision/holistic_landmarker/holistic_landmarker.ts @@ -45,7 +45,7 @@ import {HolisticLandmarkerResult} from './holistic_landmarker_result'; export * from './holistic_landmarker_options'; export * from './holistic_landmarker_result'; -export {ImageSource}; +export {type ImageSource}; // The OSS JS API does not support the builder pattern. // tslint:disable:jspb-use-builder-pattern diff --git a/mediapipe/tasks/web/vision/holistic_landmarker/holistic_landmarker_result.ts b/mediapipe/tasks/web/vision/holistic_landmarker/holistic_landmarker_result.ts index d784501728..b6f304f4d7 100644 --- a/mediapipe/tasks/web/vision/holistic_landmarker/holistic_landmarker_result.ts +++ b/mediapipe/tasks/web/vision/holistic_landmarker/holistic_landmarker_result.ts @@ -19,7 +19,7 @@ import {Classifications} from '../../../../tasks/web/components/containers/class import {Landmark, NormalizedLandmark} from '../../../../tasks/web/components/containers/landmark'; import {MPMask} from '../../../../tasks/web/vision/core/mask'; -export {Category, Landmark, NormalizedLandmark}; +export {type Category, type Landmark, type NormalizedLandmark}; /** * Represents the holistic landmarks detection results generated by diff --git a/mediapipe/tasks/web/vision/image_classifier/image_classifier.ts b/mediapipe/tasks/web/vision/image_classifier/image_classifier.ts index 851a69e653..dc1d92977d 100644 --- a/mediapipe/tasks/web/vision/image_classifier/image_classifier.ts +++ b/mediapipe/tasks/web/vision/image_classifier/image_classifier.ts @@ -38,7 +38,7 @@ const CLASSIFICATIONS_STREAM = 'classifications'; export * from './image_classifier_options'; export * from './image_classifier_result'; -export {ImageSource}; // Used in the public API +export {type ImageSource}; // Used in the public API // The OSS JS API does not support the builder pattern. // tslint:disable:jspb-use-builder-pattern diff --git a/mediapipe/tasks/web/vision/image_embedder/image_embedder.ts b/mediapipe/tasks/web/vision/image_embedder/image_embedder.ts index 6c145378cf..30ca5aee45 100644 --- a/mediapipe/tasks/web/vision/image_embedder/image_embedder.ts +++ b/mediapipe/tasks/web/vision/image_embedder/image_embedder.ts @@ -44,7 +44,7 @@ const TEXT_EMBEDDER_CALCULATOR = export * from './image_embedder_options'; export * from './image_embedder_result'; -export {ImageSource}; // Used in the public API +export {type ImageSource}; // Used in the public API /** Performs embedding extraction on images. */ export class ImageEmbedder extends VisionTaskRunner { diff --git a/mediapipe/tasks/web/vision/image_segmenter/image_segmenter.ts b/mediapipe/tasks/web/vision/image_segmenter/image_segmenter.ts index cbd20450b3..f91feed7ff 100644 --- a/mediapipe/tasks/web/vision/image_segmenter/image_segmenter.ts +++ b/mediapipe/tasks/web/vision/image_segmenter/image_segmenter.ts @@ -33,7 +33,7 @@ import {ImageSegmenterResult} from './image_segmenter_result'; export * from './image_segmenter_options'; export * from './image_segmenter_result'; -export {ImageSource}; // Used in the public API +export {type ImageSource}; // Used in the public API const IMAGE_STREAM = 'image_in'; const NORM_RECT_STREAM = 'norm_rect'; diff --git a/mediapipe/tasks/web/vision/interactive_segmenter/interactive_segmenter.ts b/mediapipe/tasks/web/vision/interactive_segmenter/interactive_segmenter.ts index 99e06c2f76..aff4ef32ad 100644 --- a/mediapipe/tasks/web/vision/interactive_segmenter/interactive_segmenter.ts +++ b/mediapipe/tasks/web/vision/interactive_segmenter/interactive_segmenter.ts @@ -34,8 +34,8 @@ import {InteractiveSegmenterResult} from './interactive_segmenter_result'; export * from './interactive_segmenter_options'; export * from './interactive_segmenter_result'; -export {RegionOfInterest}; -export {ImageSource}; +export {type RegionOfInterest}; +export {type ImageSource}; const IMAGE_IN_STREAM = 'image_in'; const NORM_RECT_IN_STREAM = 'norm_rect_in'; diff --git a/mediapipe/tasks/web/vision/object_detector/object_detector.ts b/mediapipe/tasks/web/vision/object_detector/object_detector.ts index 0c0ef86a6b..16d61b00a1 100644 --- a/mediapipe/tasks/web/vision/object_detector/object_detector.ts +++ b/mediapipe/tasks/web/vision/object_detector/object_detector.ts @@ -36,7 +36,7 @@ const OBJECT_DETECTOR_GRAPH = 'mediapipe.tasks.vision.ObjectDetectorGraph'; export * from './object_detector_options'; export * from './object_detector_result'; -export {ImageSource}; // Used in the public API +export {type ImageSource}; // Used in the public API // The OSS JS API does not support the builder pattern. // tslint:disable:jspb-use-builder-pattern diff --git a/mediapipe/tasks/web/vision/pose_landmarker/pose_landmarker.ts b/mediapipe/tasks/web/vision/pose_landmarker/pose_landmarker.ts index c58d4dd081..ad5d6d8836 100644 --- a/mediapipe/tasks/web/vision/pose_landmarker/pose_landmarker.ts +++ b/mediapipe/tasks/web/vision/pose_landmarker/pose_landmarker.ts @@ -36,7 +36,7 @@ import {POSE_CONNECTIONS} from './pose_landmarks_connections'; export * from './pose_landmarker_options'; export * from './pose_landmarker_result'; -export {ImageSource}; +export {type ImageSource}; // The OSS JS API does not support the builder pattern. // tslint:disable:jspb-use-builder-pattern diff --git a/mediapipe/tasks/web/vision/pose_landmarker/pose_landmarker_result.ts b/mediapipe/tasks/web/vision/pose_landmarker/pose_landmarker_result.ts index 92ba804d6c..556d9b572b 100644 --- a/mediapipe/tasks/web/vision/pose_landmarker/pose_landmarker_result.ts +++ b/mediapipe/tasks/web/vision/pose_landmarker/pose_landmarker_result.ts @@ -18,7 +18,7 @@ import {Category} from '../../../../tasks/web/components/containers/category'; import {Landmark, NormalizedLandmark} from '../../../../tasks/web/components/containers/landmark'; import {MPMask} from '../../../../tasks/web/vision/core/mask'; -export {Category, Landmark, NormalizedLandmark}; +export {type Category, type Landmark, type NormalizedLandmark}; /** * Represents the pose landmarks deection results generated by `PoseLandmarker`.