Skip to content

Commit

Permalink
chore: some more code shuffling
Browse files Browse the repository at this point in the history
  • Loading branch information
haakonflatval-cognite committed Jan 7, 2025
1 parent 47667c1 commit 3ca1602
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
* Copyright 2023 Cognite AS
*/

import { DataSourceType } from '@reveal/data-providers';
import { ClassicDataSourceType, DataSourceType } from '@reveal/data-providers';
import { Image360Annotation } from './Image360Annotation';
import { Vector3 } from 'three';

/**
* Describes an intersection with a 360 image annotation
*/
export type Image360AnnotationIntersection<T extends DataSourceType> = {
export type Image360AnnotationIntersection<T extends DataSourceType = ClassicDataSourceType> = {
/**
* The intersection type.
*/
Expand Down
3 changes: 2 additions & 1 deletion viewer/packages/data-providers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ export {
isClassic360Identifier,
isCoreDmImage360Identifier,
isLegacyDM360Identifier,
isFdm360ImageCollectionIdentifier
isFdm360ImageCollectionIdentifier,
isImageAssetLinkAnnotation
} from './src/image-360-data-providers/shared';
export { LocalModelDataProvider } from './src/model-data-providers/LocalModelDataProvider';
export { LocalModelIdentifier } from './src/model-identifiers/LocalModelIdentifier';
Expand Down
2 changes: 1 addition & 1 deletion viewer/packages/data-providers/src/DataSourceType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export type ClassicDataSourceType = {
* Type of classic 360 annotations
*/

image360AnnotationType: ImageAssetLinkAnnotationInfo;
image360AnnotationType: AnnotationModel;
/**
* Marker to make this type inconstructable
*/
Expand Down

0 comments on commit 3ca1602

Please sign in to comment.