Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(react-components): factor out Fdm3dDataProvider, in preparations for CoreDM support #4675

Merged
merged 13 commits into from
Jul 26, 2024
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import { Range3 } from '../utilities/geometry/Range3';
import { getBoundingBoxFromPlanes } from '../utilities/geometry/getBoundingBoxFromPlanes';
import { Changes } from '../domainObjectsHelpers/Changes';
import { type CogniteClient } from '@cognite/sdk/dist/src';
import { FdmSDK } from '../../../utilities/FdmSDK';
import { FdmSDK } from '../../../data-providers/FdmSDK';

const DIRECTIONAL_LIGHT_NAME = 'DirectionalLight';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* Copyright 2024 Cognite AS
*/
import { type FdmSDK } from '../../../utilities/FdmSDK';
import { type FdmSDK } from '../../../data-providers/FdmSDK';
import { type ObservationFdmNode, type ObservationProperties } from './models';

import { type Observation } from './types';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { VisualDomainObject } from '../../base/domainObjects/VisualDomainObject'
import { type ThreeView } from '../../base/views/ThreeView';
import { ObservationsView } from './ObservationsView';
import { type TranslateKey } from '../../base/utilities/TranslateKey';
import { type FdmSDK } from '../../../utilities/FdmSDK';
import { type FdmSDK } from '../../../data-providers/FdmSDK';
import { Changes } from '../../base/domainObjectsHelpers/Changes';
import { ObservationsCache } from './ObservationsCache';
import { PanelInfo } from '../../base/domainObjectsHelpers/PanelInfo';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
/*!
* Copyright 2024 Cognite AS
*/
import { type DmsUniqueIdentifier, type FdmNode, type Source } from '../../../utilities/FdmSDK';
import {
type DmsUniqueIdentifier,
type FdmNode,
type Source
} from '../../../data-providers/FdmSDK';

export type ObservationProperties = {
// "ID as the node appears in the Source system"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
type DmsUniqueIdentifier,
type FdmSDK,
type InstanceFilter
} from '../../../utilities/FdmSDK';
} from '../../../data-providers/FdmSDK';
import { type ObservationFdmNode, OBSERVATION_SOURCE, type ObservationProperties } from './models';

import { v4 as uuid } from 'uuid';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
} from '@cognite/reveal';
import { type ObservationProperties } from './models';
import { type Vector3 } from 'three';
import { type FdmNode } from '../../../utilities/FdmSDK';
import { type FdmNode } from '../../../data-providers/FdmSDK';
import { type DomainObjectIntersection } from '../../base/domainObjectsHelpers/DomainObjectIntersection';
import { type ObservationsDomainObject } from './ObservationsDomainObject';

Expand Down
Loading
Loading