Skip to content

Commit

Permalink
chore: lint fix some more
Browse files Browse the repository at this point in the history
  • Loading branch information
haakonflatval-cognite committed Nov 28, 2024
1 parent 16401b1 commit dbbf553
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { AssetMappingAndNode3DCache } from '../../../components/CacheProvider/As
import { DomainObject } from '../../base/domainObjects/DomainObject';
import { type TranslationInput } from '../../base/utilities/TranslateInput';
import { FdmNodeCache } from '../../../components/CacheProvider/FdmNodeCache';
import { FdmSdkContext } from '../../../components/RevealCanvas/FdmDataProviderContext';
import { FdmSDK } from '../../../data-providers/FdmSDK';
import { type Fdm3dDataProvider } from '../../../data-providers/Fdm3dDataProvider';
import { PointCloudAnnotationCache } from '../../../components/CacheProvider/PointCloudAnnotationCache';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/*!
* Copyright 2024 Cognite AS
*/
import { useMemo, useState } from 'react';
import { useMemo } from 'react';
import { CachesDomainObject } from '../../architecture/concrete/caches/CachesDomainObject';
import { useOnUpdateDomainObject } from '../Architecture/useOnUpdate';
import { useRenderTarget } from '../RevealCanvas';
import { type AssetMappingAndNode3DCache } from './AssetMappingAndNode3DCache';
import { type FdmNodeCache } from './FdmNodeCache';
Expand Down
2 changes: 0 additions & 2 deletions react-components/src/components/RevealCanvas/SDKProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ import React, { useContext, createContext, useMemo } from 'react';
import { type CogniteClient } from '@cognite/sdk';
import { FdmSdkContext } from './FdmDataProviderContext';
import { FdmSDK } from '../../data-providers/FdmSDK';
import { LegacyFdm3dDataProvider } from '../../data-providers/legacy-fdm-provider/LegacyFdm3dDataProvider';
import { type Fdm3dDataProvider } from '../../data-providers/Fdm3dDataProvider';
import { CoreDm3dFdm3dDataProvider } from '../../data-providers/core-dm-provider/CoreDm3dDataProvider';

const SdkContext = createContext<CogniteClient | null>(null);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export const RevealContext = (props: RevealContextProps): ReactElement => {
);
};

const useFdm3dDataProvider = (useCoreDm: boolean, sdk: CogniteClient) => {
const useFdm3dDataProvider = (useCoreDm: boolean, sdk: CogniteClient): Fdm3dDataProvider => {
return useMemo(() => {
const fdmSdk = new FdmSDK(sdk);

Expand Down
7 changes: 0 additions & 7 deletions react-components/src/hooks/cad/useFdmAssetMappings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,11 @@
* Copyright 2023 Cognite AS
*/

import { FdmNodeCache } from '../../components/CacheProvider/FdmNodeCache';
import { type UseQueryResult, useQuery } from '@tanstack/react-query';
import {
type FdmNodeDataPromises,
type ModelRevisionToConnectionMap
} from '../../components/CacheProvider/types';
import assert from 'assert';
import { type DmsUniqueIdentifier } from '../../data-providers/FdmSDK';
import { type CadModelOptions } from '../../components/Reveal3DResources/types';
import { type ThreeDModelFdmMappings } from '../types';
import { DEFAULT_QUERY_STALE_TIME } from '../../utilities/constants';
import { type AnyIntersection } from '@cognite/reveal';
import { useFdmNodeCache } from '../../components/CacheProvider/CacheProvider';

export const useFdmAssetMappings = (
Expand Down
3 changes: 0 additions & 3 deletions react-components/src/hooks/useClickedNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,11 @@ import { MOUSE, Vector2, type Vector3 } from 'three';
import { type DmsUniqueIdentifier, type Source } from '../data-providers/FdmSDK';
import { useRenderTarget, useReveal } from '../components/RevealCanvas/ViewerContext';
import { isActiveEditTool } from '../architecture/base/commands/BaseEditTool';
<<<<<<< Updated upstream
import {
type PointCloudVolumeAssetWithViews,
usePointCloudVolumeMappingForIntersection
} from '../query/core-dm/usePointCloudVolumeMappingForAssetInstances';
=======
import { useAssetMappingForTreeIndex, useFdm3dNodeDataPromises } from './cad';
>>>>>>> Stashed changes

export type AssetMappingDataResult = {
cadNode: Node3D;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,11 @@
* Copyright 2024 Cognite AS
*/

import { type ReactElement, type ReactNode, createContext, useContext, useMemo } from 'react';

import { type UseQueryResult, useQuery } from '@tanstack/react-query';
import { useRevealKeepAlive } from '../components/RevealKeepAlive/RevealKeepAliveContext';
import { Image360AnnotationCache } from '../components/CacheProvider/Image360AnnotationCache';
import {
type Image360AnnotationAssetInfo,
type Image360AnnotationModel
} from '../components/CacheProvider/types';
import { useSDK } from '../components/RevealCanvas/SDKProvider';
import { useImage360AnnotationCache } from '../components/CacheProvider/CacheProvider';

export type Image360AnnotationDataResult = {
Expand Down

0 comments on commit dbbf553

Please sign in to comment.